From feb6205a53e016695f9aa39ed90cae3cb0096a7d Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Fri, 25 Oct 2024 14:30:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=9A=E7=A0=81=E8=9E=8D=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic/product/drug/drugAdd.vue | 13 +++++++------ src/views/basic/product/productEdit.vue | 12 +++++------- .../supplier/products/supAddDiProductSelectUdi.vue | 9 +++++---- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/views/basic/product/drug/drugAdd.vue b/src/views/basic/product/drug/drugAdd.vue index f45c49f..3e21bab 100644 --- a/src/views/basic/product/drug/drugAdd.vue +++ b/src/views/basic/product/drug/drugAdd.vue @@ -1019,13 +1019,14 @@ export default { //如果都为空 进行补充 if (!this.$isNotBlank(this.newProductData.sptm) && !this.$isNotBlank(this.newProductData.ybbm)) { - getCodeRelDetail({drugcode:row.nameCode}).then((response) => { - if (response.code == 20000) { - if (this.response.data != null && this.response.data.length > 0) { - this.newProductData.sptm = this.response.data[0].sptm; - this.newProductData.ybbm = this.response.data[0].ybbm; + getCodeRelDetail({drugCode:row.nameCode}).then((response) => { + if (response.code == 20000) { + if (response.data != null && response.data.length > 0) { + this.newProductData.sptm = response.data[0].sptm; + this.newProductData.ybbm = response.data[0].ybbm; + this.getYbDrugData() + } } - } }).catch(() => { }) } diff --git a/src/views/basic/product/productEdit.vue b/src/views/basic/product/productEdit.vue index 982fb00..6e36212 100644 --- a/src/views/basic/product/productEdit.vue +++ b/src/views/basic/product/productEdit.vue @@ -1748,21 +1748,19 @@ export default { this.getDetailList() this.getDiLevel(); - //如果都为空 进行补充 if (!this.$isNotBlank(this.editQuery.sptm) && !this.$isNotBlank(this.editQuery.ybbm)) { - getCodeRelDetail({dinamecode:row.nameCode}).then((response) => { + getCodeRelDetail({diNameCode:row.nameCode}).then((response) => { if (response.code == 20000) { - if (this.response.data != null && this.response.data.length > 0) { - this.editQuery.sptm = this.response.data[0].sptm; - this.editQuery.ybbm = this.response.data[0].ybbm; + if (response.data != null && response.data.length > 0) { + this.editQuery.sptm = response.data[0].sptm; + this.editQuery.ybbm = response.data[0].ybbm; + this.getYbHcData() } } }).catch(() => { }) } - - } else { this.isSave = true this.$message.error(res.message) diff --git a/src/views/supplier/products/supAddDiProductSelectUdi.vue b/src/views/supplier/products/supAddDiProductSelectUdi.vue index c82f1dd..63bbab8 100644 --- a/src/views/supplier/products/supAddDiProductSelectUdi.vue +++ b/src/views/supplier/products/supAddDiProductSelectUdi.vue @@ -708,11 +708,12 @@ export default { this.editQuery.cpms = this.currentRow.cpms; if (!this.$isNotBlank(this.currentRow.sptm) && !this.$isNotBlank(this.currentRow.ybbm)) { - getCodeRelDetail({dinamecode:this.currentRow.nameCode}).then((response) => { + getCodeRelDetail({diNameCode:this.currentRow.nameCode}).then((response) => { if (response.code == 20000) { - if (this.response.data != null && this.response.data.length > 0) { - this.editQuery.sptm = this.response.data[0].sptm; - this.editQuery.ybbm = this.response.data[0].ybbm; + if (response.data != null && response.data.length > 0) { + this.editQuery.sptm = response.data[0].sptm; + this.editQuery.ybbm = response.data[0].ybbm; + this.getYbHcData() } } }).catch(() => {