diff --git a/jshERP-web/src/views/report/InOutStockReport.vue b/jshERP-web/src/views/report/InOutStockReport.vue
index 8a5070e3..c7f865e7 100644
--- a/jshERP-web/src/views/report/InOutStockReport.vue
+++ b/jshERP-web/src/views/report/InOutStockReport.vue
@@ -40,7 +40,7 @@
- 本月合计金额:{{totalCountMoneyStr}}
+ 总结存金额:{{totalCountMoneyStr}}
diff --git a/jshERP-web/src/views/report/MaterialStock.vue b/jshERP-web/src/views/report/MaterialStock.vue
index 94a3fcf5..983c889b 100644
--- a/jshERP-web/src/views/report/MaterialStock.vue
+++ b/jshERP-web/src/views/report/MaterialStock.vue
@@ -7,13 +7,14 @@
-
+
+ v-model="depotSelected">
{{ depot.depotName }}
@@ -40,7 +41,7 @@
-
+
查询
打印
@@ -49,7 +50,7 @@
- 当前总库存:{{currentStock}},当前总库存金额:{{currentStockPrice}}
+ 总库存:{{currentStock}},总库存金额:{{currentStockPrice}}
@@ -123,7 +124,6 @@
},
// 查询条件
queryParam: {
- depotId:'',
categoryId:'',
materialParam:'',
zeroStock: '0',
@@ -133,6 +133,7 @@
pageSize: 11,
pageSizeOptions: ['11', '21', '31', '101', '201']
},
+ depotSelected:[],
depotList: [],
categoryTree:[],
currentStock: '',
@@ -154,8 +155,8 @@
{title: '单位', dataIndex: 'unitName', width: 60},
{title: '单价', dataIndex: 'purchaseDecimal', sorter: (a, b) => a.purchaseDecimal - b.purchaseDecimal, width: 60},
{title: '初始库存', dataIndex: 'initialStock', sorter: (a, b) => a.initialStock - b.initialStock, width: 60},
- {title: '当前库存', dataIndex: 'currentStock', sorter: (a, b) => a.currentStock - b.currentStock, width: 60},
- {title: '当前库存金额', dataIndex: 'currentStockPrice', sorter: (a, b) => a.currentStockPrice - b.currentStockPrice, width: 80},
+ {title: '库存', dataIndex: 'currentStock', sorter: (a, b) => a.currentStock - b.currentStock, width: 60},
+ {title: '库存金额', dataIndex: 'currentStockPrice', sorter: (a, b) => a.currentStockPrice - b.currentStockPrice, width: 80},
{ title: '库存流水', dataIndex: 'action', align:"center", width: 100,
scopedSlots: { customRender: 'action' }
}
@@ -173,6 +174,9 @@
moment,
getQueryParams() {
let param = Object.assign({}, this.queryParam, this.isorter);
+ if(this.depotSelected && this.depotSelected.length>0) {
+ param.depotIds = this.depotSelected.join()
+ }
param.field = this.getQueryField();
param.currentPage = this.ipagination.current;
param.pageSize = this.ipagination.pageSize-1;
@@ -205,15 +209,11 @@
this.loadData(1);
},
loadData(arg) {
- if(!this.url.list){
- this.$message.error("请设置url.list属性!")
- return
- }
//加载数据 若传入参数1则加载第一页的内容
if (arg === 1) {
this.ipagination.current = 1;
}
- var params = this.getQueryParams();//查询条件
+ let params = this.getQueryParams();//查询条件
this.loading = true;
getAction(this.url.list, params).then((res) => {
if (res.code===200) {