gjy преди 3 години
родител
ревизия
1962e77c7d
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/views/houseSelfCollect/inspectionManagementNew.vue

+ 2 - 1
src/views/houseSelfCollect/inspectionManagementNew.vue

@@ -1934,6 +1934,7 @@
           })
           })
           .toPromise()
           .toPromise()
           .then((response) => {
           .then((response) => {
+            // console.log(response)
             this.warehouseList1 = response
             this.warehouseList1 = response
             this.warehouseList = []
             this.warehouseList = []
             let _wareHouse = localStorage.getItem('houseSelfCollect_house1')
             let _wareHouse = localStorage.getItem('houseSelfCollect_house1')
@@ -1968,7 +1969,7 @@
                 if (this.warehouseList.length > 0 && !this.cangid) {
                 if (this.warehouseList.length > 0 && !this.cangid) {
                   this.warehouseName = this.warehouseList[0].value
                   this.warehouseName = this.warehouseList[0].value
                   this.warehouseCount = this.warehouseList[0].count
                   this.warehouseCount = this.warehouseList[0].count
-                  this.warehouseTradeCount = this.warehouseList[0][0].tradeCount
+                  this.warehouseTradeCount = this.warehouseList[0].tradeCount
                   this.warehouseNo = this.warehouseList[0].No
                   this.warehouseNo = this.warehouseList[0].No
                   this.cangid = this.warehouseList[0].warehouseId
                   this.cangid = this.warehouseList[0].warehouseId
                   this.allowEdit = this.warehouseList[0].allowEdit
                   this.allowEdit = this.warehouseList[0].allowEdit