zhouhao 2 роки тому
батько
коміт
7134720a18
1 змінених файлів з 12 додано та 0 видалено
  1. 12 0
      src/views/finance/change_apply.vue

+ 12 - 0
src/views/finance/change_apply.vue

@@ -176,6 +176,7 @@ import {
   getTransferSubmit,
   getCustomerGroupList
 } from '@/api/finance/change_apply'
+import ret from 'bluebird/js/release/util'
 
 export default {
   data() {
@@ -258,6 +259,17 @@ export default {
     //   return null;
     // },
     changeCustomerNumber(e,index){
+      if (!index) {
+      this.searchForm.customerName = this.customerData.find(k=>{
+       return  k.number === e
+      }).name
+      }else{
+        const id = this.customerData.find(k=>{
+       return  k.number === e
+      }).id
+      this.$set(this.dataList[index],'customerId',id)
+
+      }
       this.$set(this.dataList[index],'customerNumber',e)
     },
     resetFn() {