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