zxz 2 年之前
父节点
当前提交
84180b7b4f

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

@@ -142,7 +142,7 @@
         <ws-select v-if='(deptBudgetList.purpose == "库点费用"  &&mode != "暂不分配"&& deptBudgetList.storageFeeFlag==0)'  v-model="goodsSource" placeholder="全部客户" 
             @change='sourceChange'>
             <ws-option key="全部客户" label="全部客户" value="全部客户" style="color: #8890b1" />
-            <ws-option v-for="item in customerList" :key="item.goodsSource" :label="item.goodsSource" :value="item.goodsSource"
+            <ws-option v-for="item in customerList" :key="item.orderId" :label="item.goodsSource" :value="item.orderId"
               style="color: #8890b1" />
         </ws-select>
         <span style="margin-top:5px" v-if='mode!="暂不分配"'>合计分配:{{amount}}元</span>
@@ -336,7 +336,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()
     },
@@ -389,7 +396,7 @@
             }
             //
             for (let z = 0; z < this.datas.length; z++) {
-              arr.push({ receiptDocDate: this.datas[z].issuingTime, goodsSource: this.datas[z].goodsSource , 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 {

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

@@ -88,7 +88,7 @@
         <ws-select v-if='(deptBudgetList.purpose == "库点费用"  &&mode != "暂不分配"&& deptBudgetList.storageFeeFlag==0)'  v-model="goodsSource" placeholder="全部客户" 
             @change='sourceChange'>
             <ws-option key="全部客户" label="全部客户" value="全部客户" style="color: #8890b1" />
-            <ws-option v-for="item in customerList" :key="item.goodsSource" :label="item.goodsSource" :value="item.goodsSource"
+            <ws-option v-for="item in customerList" :key="item.orderId" :label="item.goodsSource" :value="item.orderId"
               style="color: #8890b1" />
         </ws-select>
         <span style="margin-top:5px" v-if='mode!="暂不分配"'>合计分配:{{amount}}元</span>  
@@ -267,7 +267,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()
     },
@@ -330,7 +337,7 @@
             }
             for (let z = 0; z < this.datas.length; z++) {
               // this.datas[z].id
-              arr.push({ receiptDocDate: this.datas[z].issuingTime, goodsSource: this.datas[z].goodsSource, 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 {

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

@@ -126,7 +126,7 @@
         <ws-select v-if='(deptBudgetList.purpose == "库点费用"  &&mode != "暂不分配"&& deptBudgetList.storageFeeFlag==0)'  v-model="goodsSource" placeholder="全部客户" 
             @change='sourceChange'>
             <ws-option key="全部客户" label="全部客户" value="全部客户" style="color: #8890b1" />
-            <ws-option v-for="item in customerList" :key="item.goodsSource" :label="item.goodsSource" :value="item.goodsSource"
+            <ws-option v-for="item in customerList" :key="item.orderId" :label="item.goodsSource" :value="item.orderId"
               style="color: #8890b1" />
         </ws-select>
         <span style="margin-top:5px" v-if='mode!="暂不分配"'>合计分配:{{amount}}元</span>  
@@ -313,7 +313,14 @@ weight: 4000}]],
       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()
     },
@@ -372,7 +379,7 @@ weight: 4000}]],
               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: '', 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 {