浏览代码

库存查询 合计 更改字段名

chenrui 3 年之前
父节点
当前提交
729d7e7ba6
共有 1 个文件被更改,包括 4 次插入10 次删除
  1. 4 10
      src/views/inventoryManagement/inventoryQuery/list.vue

+ 4 - 10
src/views/inventoryManagement/inventoryQuery/list.vue

@@ -77,8 +77,8 @@
       <!-- 合计 -->
       <a-alert type="info" showIcon style="margin-bottom:15px">
         <div class="ftext" slot="message">
-          现有库存总数量(个):<strong>{{ currentStock&&(currentStock.currentStockQty || currentStock.currentStockQty==0) ? currentStock.currentStockQty : '--' }}</strong>;
-          现有库存总成本(¥):<strong>{{ currentStock&&(currentStock.currentStockCost || currentStock.currentStockCost==0) ? currentStock.currentStockCost : '--' }}</strong>。
+          现有库存总数量(个):<strong>{{ currentStock&&(currentStock.totalCurrentStockQty || currentStock.totalCurrentStockQty==0) ? currentStock.totalCurrentStockQty : '--' }}</strong>;
+          现有库存总成本(¥):<strong>{{ currentStock&&(currentStock.totalCurrentStockCost || currentStock.totalCurrentStockCost==0) ? currentStock.totalCurrentStockCost : '--' }}</strong>。
         </div>
       </a-alert>
       <!-- 列表 -->
@@ -210,10 +210,7 @@ export default {
       },
       openModal: false, //  查看库存详情  弹框
       itemId: '', //  当前库存记录id
-      currentStock: { // 合计信息
-        currentStockQty: '',
-        currentStockCost: ''
-      }
+      currentStock: null
     }
   },
   methods: {
@@ -238,10 +235,7 @@ export default {
         if (res.status == 200 && res.data) {
           this.currentStock = res.data
         } else {
-          this.currentStock = { // 合计信息
-            currentStockQty: '',
-            currentStockCost: ''
-          }
+          this.currentStock = null
         }
       })
     },