From f499bf68685554bd06577f3a78313941ce27ab51 Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Sat, 21 Jun 2025 17:32:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=B9=E7=94=A8=E7=94=B3=E8=AF=B7=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/emisWaybillAjustApply/adjustPanel.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/views/emis/emisWaybillAjustApply/adjustPanel.vue b/src/views/emis/emisWaybillAjustApply/adjustPanel.vue index 81b69289..7955a8a8 100644 --- a/src/views/emis/emisWaybillAjustApply/adjustPanel.vue +++ b/src/views/emis/emisWaybillAjustApply/adjustPanel.vue @@ -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; } }, //虚拟单变化