From 8ce6ecc1fc4f8ca0ab90d53b73e1fb064f3579ff Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Tue, 2 Jul 2024 11:45:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=200702-=E6=89=AB=E7=A0=81=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/thrsys/thrProductsAdd.js | 8 + src/views/basic/busType/bussinessType.vue | 1 + .../basic/busType/bussinessTypeModify.vue | 13 + src/views/basic/product/productEdit.vue | 8 +- .../company/basicCompanyProductsImport.vue | 9 +- .../company/basicCompanyproductEdit.vue | 7 +- .../products/supAddDiProductSelectUdi.vue | 1 + .../supplier/products/supProductsAdd.vue | 6 +- .../supplier/products/supProductsAddDi.vue | 16 +- .../supplier/products/supProductsOptinDi.vue | 640 ++++++++++++++++++ 10 files changed, 694 insertions(+), 15 deletions(-) create mode 100644 src/views/supplier/products/supProductsOptinDi.vue diff --git a/src/api/thrsys/thrProductsAdd.js b/src/api/thrsys/thrProductsAdd.js index 03ddab4..270e32d 100644 --- a/src/api/thrsys/thrProductsAdd.js +++ b/src/api/thrsys/thrProductsAdd.js @@ -32,3 +32,11 @@ export function addProduct(data) { }) } +export function addThrAddProductsNew(data) { + return axios({ + url: '/udiwms/thrsys/addThrAddProductsNew', + method: 'post', + data: data + }) +} + diff --git a/src/views/basic/busType/bussinessType.vue b/src/views/basic/busType/bussinessType.vue index dfdcc07..c67a6a3 100644 --- a/src/views/basic/busType/bussinessType.vue +++ b/src/views/basic/busType/bussinessType.vue @@ -278,6 +278,7 @@ export default { checkSp: null, secCheckCopy: null, corpType: null, + codeCheck: null, storageCode: null, supplementOrderType: null, defaultUnit: null, diff --git a/src/views/basic/busType/bussinessTypeModify.vue b/src/views/basic/busType/bussinessTypeModify.vue index f0971b9..e047b50 100644 --- a/src/views/basic/busType/bussinessTypeModify.vue +++ b/src/views/basic/busType/bussinessTypeModify.vue @@ -217,6 +217,19 @@ + + + + + + + + + + + + + @@ -855,11 +854,13 @@ export default { if (this.editQuery.basicPrductRemak7 != null) { this.findThrTypeMethod(this.editQuery.basicPrductRemak7); } - this.classifySearch() + this.classifySearch("") }, methods: { classifyChange(){ - this.editQuery.requireScanCode = this.classifyList.find(item => item.code == this.editQuery.flbm).requireScanCode; + this.classifySearch(this.editQuery.flbm) + let item = this.classifyList.find(item => item.code == this.editQuery.flbm) + if (item != null) this.editQuery.requireScanCode = item.requireScanCode; }, classifySearch(key) { let query = { @@ -869,6 +870,7 @@ export default { .then(response => { this.loading = false; this.classifyList = response.data.list || []; + return }) .catch(() => { this.loading = false; diff --git a/src/views/supplier/company/basicCompanyProductsImport.vue b/src/views/supplier/company/basicCompanyProductsImport.vue index 2d4373d..6584310 100644 --- a/src/views/supplier/company/basicCompanyProductsImport.vue +++ b/src/views/supplier/company/basicCompanyProductsImport.vue @@ -569,8 +569,8 @@ style="width: 65%" reserve-keyword placeholder="请选择" - :remote-method="classifySearch" :loading="loading" + @change="classifyChange()" > item.code == this.repEditQuery.flbm) + if (item != null) this.repEditQuery.requireScanCode = item.requireScanCode; + }, classifySearch(key) { let query = { key: key, diff --git a/src/views/supplier/company/basicCompanyproductEdit.vue b/src/views/supplier/company/basicCompanyproductEdit.vue index cd5d425..34b3935 100644 --- a/src/views/supplier/company/basicCompanyproductEdit.vue +++ b/src/views/supplier/company/basicCompanyproductEdit.vue @@ -332,8 +332,8 @@ style="width: 80%" reserve-keyword placeholder="请选择" - :remote-method="classifySearch" :loading="loading" + @change="classifyChange()" > item.code == this.editQuery.flbm) + if (item != null) this.editQuery.requireScanCode = item.requireScanCode; + }, classifySearch(key) { let query = { key: key, diff --git a/src/views/supplier/products/supAddDiProductSelectUdi.vue b/src/views/supplier/products/supAddDiProductSelectUdi.vue index 1194127..36e36a7 100644 --- a/src/views/supplier/products/supAddDiProductSelectUdi.vue +++ b/src/views/supplier/products/supAddDiProductSelectUdi.vue @@ -711,6 +711,7 @@ export default { devKeys.push(this.curSelectDi.deviceRecordKey) this.editQuery.uuids = uuids this.editQuery.devKeys = devKeys + this.editQuery.sourceType = 0 addDiProduct(this.editQuery).then((res) => { if (res.code === 20000) { this.$message.success('添加成功') diff --git a/src/views/supplier/products/supProductsAdd.vue b/src/views/supplier/products/supProductsAdd.vue index db6aac5..95c9a69 100644 --- a/src/views/supplier/products/supProductsAdd.vue +++ b/src/views/supplier/products/supProductsAdd.vue @@ -291,7 +291,7 @@ import {saveNewProduct} from "@/api/thrsys/thrProducts"; import {getBasicThirdSys} from "@/api/basic/basicThirdSys"; -import {addProduct} from "@/api/thrsys/thrProductsAdd"; +import {addProduct,addThrAddProductsNew} from "@/api/thrsys/thrProductsAdd"; import {getHslbs, getThrProductType} from "@/api/thrsys/thrHsfl"; import {finProductSet} from "@/api/param/systemParamConfig"; @@ -467,6 +467,7 @@ export default { // } + this.newProductData.sourceType = 1 if (this.newType == 1) { saveNewProduct(this.newProductData).then((res) => { if (res.code == 20000) { @@ -481,7 +482,8 @@ export default { this.$message.error(error.message); }) } else if (this.newType == 2) { - addProduct(this.newProductData).then((res) => { + // addProduct(this.newProductData).then((res) => { + addThrAddProductsNew(this.newProductData).then((res) => { if (res.code == 20000) { this.$message.success("添加成功"); //清空弹窗数据 diff --git a/src/views/supplier/products/supProductsAddDi.vue b/src/views/supplier/products/supProductsAddDi.vue index e9a32ee..a21a0b6 100644 --- a/src/views/supplier/products/supProductsAddDi.vue +++ b/src/views/supplier/products/supProductsAddDi.vue @@ -173,13 +173,13 @@ >查询 - 选入DI信息 - + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 显示/隐藏搜索栏 + + 重置 + + 查询 + + 选入DI信息 + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +