gjy 3 anos atrás
pai
commit
bd4c4e0bf8
2 arquivos alterados com 22 adições e 22 exclusões
  1. 1 1
      .env
  2. 21 21
      src/views/statisticalReport/stockPurchaseReceiptReportList.vue

+ 1 - 1
.env

@@ -14,7 +14,7 @@ VUE_APP_VS = '6.0.0'
 VUE_APP_WITHCREDENTIALS = true
 
 # ajax请求超时时间
-VUE_APP_AJAX_TIMEOUT = 40000
+VUE_APP_AJAX_TIMEOUT = 400000
 # base api
 
 VUE_APP_BASE_API = ''

+ 21 - 21
src/views/statisticalReport/stockPurchaseReceiptReportList.vue

@@ -70,7 +70,7 @@
           </div>
         </div>
       </el-row>
-      <el-table class="wenzi" :data="warehouseList.records" style="width: 100%; margin-top: 20px" ref="warehouseList"
+      <el-table class="wenzi" :data="warehouseList" style="width: 100%; margin-top: 20px" ref="warehouseList"
         border :summary-method="getSummaries" show-summary @row-click="handleRowClick"
         @selection-change="handleSelectionChange">
         <el-table-column :selectable="selectInit" type="selection" width="55"></el-table-column>
@@ -567,8 +567,8 @@
         this.amountNotPayable = 0
         this.money = this.money
         this.stockPurchaseReceiptReportList =
-          this.warehouseList.records[0].stockPurchaseReceiptReportList
-        this.amountEdPayable = this.warehouseList.records[0].amountEdPayable
+          this.warehouseList[0].stockPurchaseReceiptReportList
+        this.amountEdPayable = this.warehouseList[0].amountEdPayable
         this.paymentDate = this.paymentDate
         if (this.modification.length == 0) {
           this.$message.warning('请选择一条要付款的条目')
@@ -862,24 +862,24 @@
           })
           .toPromise()
           .then((response) => {
-            this.payingMoney = 0
-            this.payedMoney = 0
-            this.payNotMoney = 0
-            this.settlementWeight1 = 0
-            for (var i = 0; i < response.records.length; i++) {
-              response.records[i].identification = 'false'
-              response.records[i].identification1 = 'false'
-              this.payingMoney += response.records[i].amountIngPayable
-              this.payedMoney += response.records[i].amountEdPayable
-              this.payNotMoney += response.records[i].amountNotPayable
-              this.settlementWeight1 += response.records[i].settlementWeight
-            }
-            this.payingMoney = this.payingMoney.toFixed(2)
-            this.payedMoney = this.payedMoney.toFixed(2)
-            this.payNotMoney = this.payNotMoney.toFixed(2)
-            this.settlementWeight1 = this.settlementWeight1.toFixed(2)
+            // this.payingMoney = 0
+            // this.payedMoney = 0
+            // this.payNotMoney = 0
+            // this.settlementWeight1 = 0
+            // for (var i = 0; i < response.records.length; i++) {
+            //   response.records[i].identification = 'false'
+            //   response.records[i].identification1 = 'false'
+            //   this.payingMoney += response.records[i].amountIngPayable
+            //   this.payedMoney += response.records[i].amountEdPayable
+            //   this.payNotMoney += response.records[i].amountNotPayable
+            //   this.settlementWeight1 += response.records[i].settlementWeight
+            // }
+            // this.payingMoney = this.payingMoney.toFixed(2)
+            // this.payedMoney = this.payedMoney.toFixed(2)
+            // this.payNotMoney = this.payNotMoney.toFixed(2)
+            // this.settlementWeight1 = this.settlementWeight1.toFixed(2)
             this.deptBudgetTotal = response.total
-            this.warehouseList = response
+            // this.warehouseList = response.records
           })
       },
       getContractList() {
@@ -896,7 +896,7 @@
             this.option = this.contractNoList
             this.contractNo = this.option[0].contractNo
             this.contractchange(this.contractNo)
-            this.getList()
+            // this.getList()
           })
       },
       handleRemove(file) {