From 7d35407ee1dd27ad20b3f842fb84bd71c01fca12 Mon Sep 17 00:00:00 2001 From: zelian_wu Date: Mon, 18 Mar 2024 09:35:53 +0800 Subject: [PATCH] 2024-03-18 --- .../modules/quotation/sellForQuotation.vue | 25 ++++- .../sellForQuotation/quoteDetail.vue | 92 +++++++++---------- 2 files changed, 66 insertions(+), 51 deletions(-) diff --git a/src/views/modules/quotation/sellForQuotation.vue b/src/views/modules/quotation/sellForQuotation.vue index f43845a..f1f974c 100644 --- a/src/views/modules/quotation/sellForQuotation.vue +++ b/src/views/modules/quotation/sellForQuotation.vue @@ -146,7 +146,7 @@ 客户编码 - + @@ -909,6 +909,10 @@ export default { getBaseData (val) { if (this.tagNo === 102) { if(this.tagNo1 === 1) { + if (this.insertData.customerNo !== val.Customer_no){ + this.insertData.projectId = ''; + this.insertData.projectName = ''; + } this.insertData.customerNo = val.Customer_no this.insertData.customerName = val.Customer_desc } @@ -1039,14 +1043,29 @@ export default { } }, clearCustomer(){ - this.insertData.customerNo = ''; - this.insertData.customerName = ''; this.insertData.projectId = ''; this.insertData.projectName = ''; } }, computed:{ + }, + watch:{ + "insertData.customerNo":{ + handler(){ + if (!this.insertData.customerNo || this.insertData.customerNo.length === 0){ + this.insertData.customerName = ''; + this.insertData.projectId = ''; + } + } + }, + "insertData.projectId":{ + handler(){ + if (!this.insertData.projectId || this.insertData.projectId.length === 0){ + this.insertData.projectName = ''; + } + } + }, }, mounted () { this.$nextTick(() => { diff --git a/src/views/modules/quotation/sellForQuotation/quoteDetail.vue b/src/views/modules/quotation/sellForQuotation/quoteDetail.vue index 3b624c2..f6590ab 100644 --- a/src/views/modules/quotation/sellForQuotation/quoteDetail.vue +++ b/src/views/modules/quotation/sellForQuotation/quoteDetail.vue @@ -515,65 +515,61 @@ export default { header-align="center" label="序号" width="55" - align="right" + align="center" type="index"> + width="200" align="center"> + width="200" align="left"> - - - - - - - - - - - + - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + - + - +