diff --git a/src/views/supplier/products/selectDIDetailDialog.vue b/src/views/supplier/products/selectDIDetailDialog.vue index be0df82..f500ffc 100644 --- a/src/views/supplier/products/selectDIDetailDialog.vue +++ b/src/views/supplier/products/selectDIDetailDialog.vue @@ -671,6 +671,7 @@ import {updateDiProduct} from '@/api/supplier/supProductsAddDi' import {finProductSet} from '@/api/param/systemParamConfig' import {selectOriginuuid} from '@/api/basic/product/udiInfo' +import { isBlank } from '@/utils/strUtil' export default { name: "SelectDIDetailDialog", @@ -703,7 +704,8 @@ export default { }, data(){ return{ - productRemarkSet: {} + productRemarkSet: {}, + cowData: {} } }, methods: { @@ -743,6 +745,9 @@ export default { .then((response) => { this.detailList = response.data || []; this.editQuery = { ...this.pQuery,...this.detailList[0]}; + if (isBlank(this.editQuery.ybbm )){ + this.editQuery.ybbm = this.cowData.ybbm + } }) .catch(() => { this.detailList = []; @@ -757,6 +762,7 @@ export default { originUuid: this.editQuery.uuid, }; this.pQuery = this.editQuery + this.cowData = this.editQuery this.getDetailList(ttquery); if (this.editQuery.basicPrductRemak6 != null){ this.editQuery.basicPrductRemak6 = Number(this.editQuery.basicPrductRemak6) @@ -776,6 +782,8 @@ export default { if (this.editQuery.basicPrductRemak13 != null){ this.editQuery.basicPrductRemak13 = Number(this.editQuery.basicPrductRemak13) } + + }, };