运单修改备注调整
This commit is contained in:
parent
0e54ecc624
commit
2b0154eee6
@ -2441,9 +2441,12 @@ methods: {
|
|||||||
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';
|
|
||||||
//生成备注
|
//生成备注
|
||||||
|
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}`;
|
this.form.remark = `该单为虚拟单:对应主单为${this.form.masterBillCode}`;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//清空
|
//清空
|
||||||
this.form.masterBillCode = null;
|
this.form.masterBillCode = null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user