zxz 1 年之前
父节点
当前提交
7a8f3e4db9
共有 1 个文件被更改,包括 4 次插入1 次删除
  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){