zhangyuewww 3 lat temu
rodzic
commit
609875948f

+ 11 - 0
src/views/statisticalReport/purchaseClosingCashierList.vue

@@ -469,6 +469,17 @@ export default {
       })
         .toPromise()
         .then(response => {
+          for (var i = 0; i < response.records.length; i++) {
+            if((response.records[i].transactionPrice-response.records[i].closeRate+response.records[i].basisPrice)*response.records[i].closingQuantity>0){
+              response.records[i].amountIngPayable=(response.records[i].transactionPrice-response.records[i].closeRate+response.records[i].basisPrice)*response.records[i].closingQuantity
+            }
+            else{
+              response.records[i].collectionIngPayable=response.records[i].collectionIngPayable+Math.abs((response.records[i].transactionPrice-response.records[i].closeRate+response.records[i].basisPrice)*response.records[i].closingQuantity)
+              response.records[i].amountIngPayable=0
+              response.records[i].amountEdPayable=0
+              response.records[i].amountNotPayable=0
+            }
+          }
           this.warehouseList = response
           this.deptBudgetTotal=response.total
         })