3/11 优化1.0

Lhdev2.0
wangwei 4 weeks ago
parent 6110113c71
commit a05541450d

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

Loading…
Cancel
Save