|
@@ -85,8 +85,8 @@
|
|
|
<!-- 合计 -->
|
|
|
<a-alert type="info" showIcon style="margin-bottom:15px">
|
|
|
<div class="ftext" slot="message">
|
|
|
- 现有库存总数量(个):<strong> {{ (currentStock && (currentStock.totalQty || currentStock.totalQty==0)) ? currentStock.totalQty : '--' }} </strong>;
|
|
|
- 现有库存总成本(¥):<strong> {{ (currentStock && (currentStock.totalCost || currentStock.totalCost==0)) ? currentStock.totalCost : '--' }} </strong>。
|
|
|
+ 现有库存总数量(个):<strong> {{ (totalData && (totalData.totalQty || totalData.totalQty==0)) ? totalData.totalQty : '--' }} </strong>;
|
|
|
+ 现有库存总成本(¥):<strong> {{ (totalData && (totalData.totalCost || totalData.totalCost==0)) ? totalData.totalCost : '--' }} </strong>。
|
|
|
</div>
|
|
|
</a-alert>
|
|
|
<!-- 列表 -->
|
|
@@ -196,7 +196,7 @@ export default {
|
|
|
productBrandList: [], // 品牌下拉数据
|
|
|
productTypeList: [], // 分类下拉数据
|
|
|
allocateTypeList: [], // 调拨类型
|
|
|
- currentStock: null, // 合计
|
|
|
+ totalData: null, // 合计
|
|
|
productSn: '',
|
|
|
openModal: false // 弹框
|
|
|
}
|
|
@@ -206,9 +206,9 @@ export default {
|
|
|
getCount (params) {
|
|
|
reportStockCount(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- this.currentStock = res.data
|
|
|
+ this.totalData = res.data
|
|
|
} else {
|
|
|
- this.currentStock = null
|
|
|
+ this.totalData = null
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -236,7 +236,7 @@ export default {
|
|
|
this.queryParam.productTypeSn3 = ''
|
|
|
this.productType = []
|
|
|
this.$refs.ruleForm.resetFields()
|
|
|
- this.currentStock = null
|
|
|
+ this.totalData = null
|
|
|
this.$refs.table.clearTable()
|
|
|
},
|
|
|
// 详情
|