diff --git a/src/views/basic/product/drug/drugMaintain.vue b/src/views/basic/product/drug/drugMaintain.vue index ef5a07d..b792dc7 100644 --- a/src/views/basic/product/drug/drugMaintain.vue +++ b/src/views/basic/product/drug/drugMaintain.vue @@ -338,7 +338,7 @@ export default { }; deletetUdiInfos(tquery).then(res => { if (res.code != 20000) { - this.$message.error("删除错误") + this.$message.error(res.message) this.getList() } else { this.$message.success("删除成功!") diff --git a/src/views/basic/product/udiInfoselectErpUdi.vue b/src/views/basic/product/udiInfoselectErpUdi.vue index 47a1526..24ec748 100644 --- a/src/views/basic/product/udiInfoselectErpUdi.vue +++ b/src/views/basic/product/udiInfoselectErpUdi.vue @@ -273,7 +273,7 @@ export default { measname: null, page: 1, limit: 10, - + productType:1 }, thisData: null, thrProductsDetailVisible: false, diff --git a/src/views/supplier/companyDrug/basicCompanyDrugProducts.vue b/src/views/supplier/companyDrug/basicCompanyDrugProducts.vue index 9b83b03..8e19773 100644 --- a/src/views/supplier/companyDrug/basicCompanyDrugProducts.vue +++ b/src/views/supplier/companyDrug/basicCompanyDrugProducts.vue @@ -360,13 +360,18 @@ v-if="editDialogVisible" :before-close="refresh" > + + @@ -387,6 +392,7 @@ :type="type" > + @@ -546,13 +552,19 @@ export default { addProductVisible: false, selectVersionVisible: false, editQuery: null, + rowData: null, productRemarkSet: {}, relevanceEdit: { id: null, thirdId: "", isDisable: null, isUseDy: false, + isLock: null, isAdavence: null, + allowNoBatch: null, + allowNoExpire: null, + allowNoProduct: null, + allowNoSerial: null, pId: null, }, pId: 0, @@ -607,7 +619,7 @@ export default { isUseDyCheck: false, loading: false, activeNames: ['1'], - type: 2 + type: null }; }, @@ -941,6 +953,23 @@ export default { }); }, handleModifyClick(row) { + this.fromName = 'edit' + + this.type = 2 + this.uuid = row.uuid; + this.relId = row.rlId; + this.isImport = false; + this.thisData = row; + this.pId = row.rlId; + this.relevanceEdit = { + id: row.rlId, + isUseDy: row.isUseDy, + isDisable: row.isDisable, + isLock: row.isLock, + isAdavence: row.isAdavence, + }; + this.editFormat = JSON.parse(JSON.stringify(row)); + this.rowData = row this.editQuery = row; this.type = 1 this.editDialogVisible = true; diff --git a/src/views/supplier/companyDrug/basicCompanyProductsImport.vue b/src/views/supplier/companyDrug/basicCompanyProductsImport.vue index 5dc20b9..e5568c3 100644 --- a/src/views/supplier/companyDrug/basicCompanyProductsImport.vue +++ b/src/views/supplier/companyDrug/basicCompanyProductsImport.vue @@ -4,8 +4,8 @@ - - + @@ -16,27 +16,32 @@ - - + + - - + - - + + - - + + + + + + + + @@ -59,17 +64,19 @@ :header-cell-class-name="cellClass" @current-change="handleSelectionChange"> - + - + + + @@ -141,7 +148,7 @@ - + @@ -353,6 +360,13 @@ + + + + + + + + + + + + + + + - + + + + + + @@ -377,23 +408,23 @@ - + - + - + @@ -425,9 +456,9 @@ - + @@ -1022,7 +1053,7 @@ export default { }); }, handleSelectionChange(selection) { - this.radioCheck = selection.nameCode; + this.radioCheck = selection.mainId; this.curSelectDi = selection; if (selection.length > 1) { this.$refs.diList.clearSelection(); @@ -1041,8 +1072,12 @@ export default { this.repEditQuery.flbm = this.currentRow.flbm; this.repEditQuery.prepnUnit = this.currentRow.prepnUnit; this.repEditQuery.prepnSpec = this.currentRow.prepnSpec; - this.repEditQuery.ggxh = this.currentRow.ggxh; + this.repEditQuery.bzgg = this.currentRow.bzgg; this.repEditQuery.price = this.currentRow.price; + this.repEditQuery.cpmctymc = this.currentRow.cpmctymc; + this.repEditQuery.zczbhhzbapzbh = this.currentRow.zczbhhzbapzbh; + this.repEditQuery.packMatrial = this.currentRow.packMatrial; + this.repEditQuery.measname = this.currentRow.measname; this.getYbHcData() this.classifySearch() // if (isBlank(this.relevanceEdit.cpms)) { @@ -1206,6 +1241,7 @@ export default { // } // if (this.editQuery.basicPrductRemak7 != null) { this.findThrTypeMethod(this.repEditQuery.basicPrductRemak7); + this.getList(); }, directives: { 'debounce-input': { diff --git a/src/views/supplier/companyDrug/basicCompanyproductEdit.vue b/src/views/supplier/companyDrug/basicCompanyproductEdit.vue index 5f7ae9b..914fe20 100644 --- a/src/views/supplier/companyDrug/basicCompanyproductEdit.vue +++ b/src/views/supplier/companyDrug/basicCompanyproductEdit.vue @@ -1,149 +1,283 @@