运单修改备注调整

This commit is contained in:
wuteng 2025-06-23 16:55:12 +08:00
parent 0e54ecc624
commit 2b0154eee6

View File

@ -2436,14 +2436,17 @@ methods: {
this.form.billCode=""
}
},
//获取虚拟运单关联主单
//获取虚拟运单关联主单
onMasterBillCodeChange(val) {
if (val) {
this.form.masterBillCode = val.value;
this.masterBillProductType = val.productType;
// this.masterBillProductType = '242011';
//生成备注
this.form.remark = `该单为虚拟单:对应主单为${this.form.masterBillCode}`;
if (val && this.form.remark && this.form.remark.trim() !== '') {
this.form.remark = this.form.remark.replace(/主单为[\da-zA-Z]+/g, '主单为' + val.value);
} else {
this.form.remark = `该单为虚拟单:对应主单为${this.form.masterBillCode}`;
}
} else {
//清空
this.form.masterBillCode = null;