From c437f8a9df9e5472668fc113b6756d263a774793 Mon Sep 17 00:00:00 2001 From: qiuyt Date: Tue, 31 Dec 2024 15:54:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E5=85=A5=E8=8D=AF=E5=93=81=E9=80=89?= =?UTF-8?q?=E5=85=A5=E6=94=B9=E7=9A=84=E9=97=AE=E9=A2=98=E6=90=AC=E5=88=B0?= =?UTF-8?q?=E5=86=85=E7=BD=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic/product/drug/drugAdd.vue | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/views/basic/product/drug/drugAdd.vue b/src/views/basic/product/drug/drugAdd.vue index 9ba1bba..d3b55da 100644 --- a/src/views/basic/product/drug/drugAdd.vue +++ b/src/views/basic/product/drug/drugAdd.vue @@ -1000,14 +1000,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 (response.data != null && response.data.length > 0) { - this.newProductData.sptm = response.data[0].sptm; - this.newProductData.ybbm = response.data[0].ybbm; - this.getYbDrugData() - } + 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(() => { }) } @@ -1047,7 +1047,7 @@ export default { }, selectDrugLevelItem(row){ this.filterQueryDrugLevel.uuid = this.newProductData.uuid - this.filterQueryDrugLevel.ybbm = this.newProductData.ybbm + this.filterQueryDrugLevel.ybbm = this.newProductData.ybbm this.filterQueryDrugLevel.nameCodeRow = row.nameCode // console.log('drug',drug) updateLevelDrugAli(this.filterQueryDrugLevel).then((response) => { @@ -1060,7 +1060,6 @@ export default { this.getDetailList() this.getThirdSysDetail() this.filterQueryDrugLevel = filterQueryDrugLevelNew - this.newProductData.detailSort = response.data } }).catch(() => { })