运单修改备注调整
This commit is contained in:
parent
0e54ecc624
commit
2b0154eee6
@ -2436,14 +2436,17 @@ methods: {
|
|||||||
this.form.billCode=""
|
this.form.billCode=""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//获取虚拟运单关联主单
|
//获取虚拟运单关联主单
|
||||||
onMasterBillCodeChange(val) {
|
onMasterBillCodeChange(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.form.masterBillCode = val.value;
|
this.form.masterBillCode = val.value;
|
||||||
this.masterBillProductType = val.productType;
|
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 {
|
} else {
|
||||||
//清空
|
//清空
|
||||||
this.form.masterBillCode = null;
|
this.form.masterBillCode = null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user