|
@@ -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
|
|
|
}
|
|
|
})
|
|
|
},
|