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; } }, //虚拟单变化