Browse Source

编辑的时候不触发 客户编码变化会清空项目号

master
han\hanst 9 months ago
parent
commit
f7c17bb797
  1. 6
      src/views/modules/quotation/requestForQuote.vue

6
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 = ''
}

Loading…
Cancel
Save