|
|
@ -874,7 +874,8 @@ export default { |
|
|
this.getApprovalList(); |
|
|
this.getApprovalList(); |
|
|
}, |
|
|
}, |
|
|
'modalData.customerNo'(newV, oldV) { |
|
|
'modalData.customerNo'(newV, oldV) { |
|
|
if (oldV) { |
|
|
|
|
|
|
|
|
// 修复:编辑模式(flag === '2')时不触发清空,避免回填数据时误清空项目号 |
|
|
|
|
|
if (oldV && this.modalData.flag !== '2') { |
|
|
if (!newV) { |
|
|
if (!newV) { |
|
|
this.modalData.customerDesc = '' |
|
|
this.modalData.customerDesc = '' |
|
|
} |
|
|
} |
|
|
@ -885,7 +886,8 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
'modalData.projectId'(newV, oldV) { |
|
|
'modalData.projectId'(newV, oldV) { |
|
|
if (oldV) { |
|
|
|
|
|
|
|
|
// 修复:编辑模式(flag === '2')时不触发清空,避免回填数据时误清空相关字段 |
|
|
|
|
|
if (oldV && this.modalData.flag !== '2') { |
|
|
if (!newV) { |
|
|
if (!newV) { |
|
|
this.modalData.projectName = '' |
|
|
this.modalData.projectName = '' |
|
|
} |
|
|
} |
|
|
|