From 2b0154eee69af6ec6619f9cb204ba56d31da34be Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Mon, 23 Jun 2025 16:55:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E5=8D=95=E4=BF=AE=E6=94=B9=E5=A4=87?= =?UTF-8?q?=E6=B3=A8=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/emis/emisWaybill/waybillModify.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/emis/emisWaybill/waybillModify.vue b/src/views/emis/emisWaybill/waybillModify.vue index 56db2c88..10f067e8 100644 --- a/src/views/emis/emisWaybill/waybillModify.vue +++ b/src/views/emis/emisWaybill/waybillModify.vue @@ -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;