ccj 2 years ago
parent
commit
7b20896af6
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/views/houseSelfCollect/inspectionManagementNew.vue

+ 4 - 3
src/views/houseSelfCollect/inspectionManagementNew.vue

@@ -968,15 +968,16 @@ export default {
     },
     customerChange(e) {
       let customers = e.split('(')
+      this.deptBudgetList.bankCard = customers[1].split(')')[0]
       this.deptBudgetList.customerName = customers[0]
+      
       for (let i = 0; i < this.customerList1.length; i++) {
-        // console.log(this.customerList1[i].customerName, this.customerList1[i])
-        if (this.customerList1[i].customerName == this.deptBudgetList.customerName) {
+        if (this.customerList1[i].customerName == this.deptBudgetList.customerName && this.customerList1[i].bankCard == this.deptBudgetList.bankCard) {
           // console.log(this.customerList1[i])
           this.deptBudgetList.customerNumberCard = this.customerList1[i].customerNumberCard
+          this.deptBudgetList.customerPhone = this.customerList1[i].customerPhone
         }
       }
-      this.deptBudgetList.customerPhone = customers[1].split(')')[0]
     },
     waterContentChange(type) {
           //客户