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(() => { })