diff --git a/jshERP-web/src/views/report/InOutStockReport.vue b/jshERP-web/src/views/report/InOutStockReport.vue index c7f865e7..df513939 100644 --- a/jshERP-web/src/views/report/InOutStockReport.vue +++ b/jshERP-web/src/views/report/InOutStockReport.vue @@ -10,10 +10,11 @@ + v-model="depotSelected"> {{ depot.depotName }} @@ -118,7 +119,7 @@ pageSize: 11, pageSizeOptions: ['11', '21', '31', '101', '201'] }, - tabKey: "1", + depotSelected:[], depotList: [], totalCountMoneyStr: '', // 表头 @@ -157,6 +158,9 @@ moment, getQueryParams() { let param = Object.assign({}, this.queryParam, this.isorter); + if(this.depotSelected && this.depotSelected.length>0) { + param.depotIds = this.depotSelected.join() + } param.monthTime = this.queryParam.monthTime; param.field = this.getQueryField(); param.currentPage = this.ipagination.current; @@ -173,7 +177,12 @@ }) }, getTotalCountMoney(){ - getAction(this.url.totalCountMoney, this.queryParam).then((res)=>{ + let param = Object.assign({}, this.queryParam, this.isorter); + if(this.depotSelected && this.depotSelected.length>0) { + param.depotIds = this.depotSelected.join() + } + param.monthTime = this.queryParam.monthTime; + getAction(this.url.totalCountMoney, param).then((res)=>{ if(res && res.code === 200) { let count = res.data.totalCount.toString(); if (count.lastIndexOf('.') > -1) {