费用申请备注调整

This commit is contained in:
wuteng 2025-06-21 17:32:17 +08:00
parent 54b0b782d2
commit f499bf6868

View File

@ -2095,6 +2095,15 @@ export default {
onMasterBillCodeChange(val) {
if (val) {
this.masterBillProductType = val.productType;
//调整虚拟单备注 把此单为虚拟单之后的单号替换
if (this.form.remark && this.form.remark.trim() !== ''
) {
this.form.remark = this.form.remark.replace(/主单为[\da-zA-Z]+/g, '主单为' + val.value);;
} else {
this.form.remark = `该单为虚拟单:对应主单为${val.value}`;
}
} else {
this.form.remark = this.billDetail.remark;
}
},
//虚拟单变化