zxz 1 anno fa
parent
commit
7a8f3e4db9
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      src/views/warehousenew/warehouseManagementList.vue

+ 4 - 1
src/views/warehousenew/warehouseManagementList.vue

@@ -1213,6 +1213,7 @@
                 this.totalMoney = (Number(this.totalMoney) + Number(this.totalReserves[j].totalMoney)).toFixed(3)
               }
             }
+            // debugger
             if(response.warehouseNumViewList.length != 0){
               var result = []
             for(let i = 0; i < response.warehouseNumViewList.length ; i++){
@@ -1230,6 +1231,7 @@
             }
             else{
               this.$message.error('当前仓库无潮粮库存,无需折算!')
+              this.value = '0'
                 return
             }
           })
@@ -1268,7 +1270,8 @@
             }else{
               this.totalReserves = response.warehouseViewList[0].warehouseNumViewList
             }
-            this.totalMoney = Number(this.totalReserves[0].stockNum * this.totalReserves[0].cost).toFixed(3)
+            // this.totalMoney = Number(this.totalReserves[0].stockNum * this.totalReserves[0].cost).toFixed(3)
+            this.value = '0'
             this.initCharts()
             this.warehouseList = response.warehouseViewList
             if(this.warehouseList.length>0){