Browse Source

计算结算单价

zxz 3 years ago
parent
commit
dc9712c14b

+ 8 - 0
src/views/statisticalReport/purchaseReceiptStatisticsList.vue

@@ -1006,6 +1006,7 @@ export default {
           .toPromise()
           .then((response) => {
             this.$message.success('结转成功')
+            this.dialogFormVisible11 = false
             this.getList()
           })
       } else if (this.carryovercontractnolist.length <=0){
@@ -1144,6 +1145,7 @@ export default {
       // }else if(this.roleId=="4ef070439cd64784bce8844fd3f0f8e1"){
       //   this.roleFlag=''
       // }
+      
       getpurchreceipt({
         compId: sessionStorage.getItem('ws-pf_compId'),
         currentPage: this.currentPage,
@@ -1156,7 +1158,13 @@ export default {
         .then((response) => {
           for (var i = 0; i < response.records.length; i++) {
             response.records[i].identification = 'false'
+            response.records[i].settlementPrice = response.records[i].unitPrice 
+            - Math.abs(response.records[i].basisPrice)
+            - Math.abs(response.records[i].unloadingCharge)
+            - Math.abs(response.records[i].invoiceFee)
+            - Math.abs(response.records[i].deductionAmount)
           }
+          
           this.deptBudgetTotal=response.total
           this.warehouseList = response
         })

+ 5 - 0
src/views/statisticalReport/salesDeliveryReportList.vue

@@ -833,6 +833,11 @@ export default {
       })
         .toPromise()
         .then(response => {
+          for (var i = 0; i < response.records.length; i++) {
+            response.records[i].settlementPrice = response.records[i].unitPrice 
+            + response.records[i].basisPrice
+            + response.records[i].invoiceFee
+          }
           this.deptBudgetTotal=response.total
           this.warehouseList = response
         })