zxz 2 éve
szülő
commit
84b4885d8b
1 módosított fájl, 10 hozzáadás és 3 törlés
  1. 10 3
      src/views/profitable/cashout.vue

+ 10 - 3
src/views/profitable/cashout.vue

@@ -313,7 +313,14 @@
       if (e == '') {
         this.goodsSource = '全部客户'
       } else {
-        this.goodsSource  = e
+        for(let i=0;i<this.customerList.length;i++){
+          if(this.customerList[i].orderId == e){
+            this.orderId = this.customerList[i].orderId
+            this.goodsSource  = this.customerList[i].goodsSource
+            break;
+          }
+        }
+        
       }
         this.selectOrderList()
     },
@@ -542,7 +549,7 @@
               this.datas.push(response.records[i])
             }
             for (let z = 0; z < this.datas.length; z++) {
-              arr.push({ receiptDocDate: this.datas[z].issuingTime, goodsSource: this.datas[z].goodsSource, id: this.datas[z].id, weight: this.datas[z].inWarehouseWeight, goodsName: this.datas[z].goodsName, goodsNameKey: this.datas[z].goodsNameKey })
+              arr.push({ receiptDocDate: this.datas[z].issuingTime, goodsSource: this.datas[z].goodsSource,orderId:this.datas[z].id, id:'', weight: this.datas[z].inWarehouseWeight, goodsName: this.datas[z].goodsName, goodsNameKey: this.datas[z].goodsNameKey })
             }
             this.feeDetailsDistributions = arr
           } else {
@@ -552,7 +559,7 @@
               }
             }
             for (let z = 0; z < this.datas.length; z++) {
-              arr.push({ receiptDocDate: this.datas[z].issuingTime, goodsSource: this.datas[z].goodsSource,orderId:this.datas[z].id, id: this.datas[z].id, weight: this.datas[z].inWarehouseWeight, goodsName: this.datas[z].goodsName, goodsNameKey: this.datas[z].goodsNameKey })
+              arr.push({ receiptDocDate: this.datas[z].issuingTime, goodsSource: this.datas[z].goodsSource,orderId:this.datas[z].id, id:'', weight: this.datas[z].inWarehouseWeight, goodsName: this.datas[z].goodsName, goodsNameKey: this.datas[z].goodsNameKey })
             }
             this.feeDetailsDistributions = arr