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">
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+