优化进销存统计报表,去掉仓库选择限制

This commit is contained in:
季圣华 2022-04-22 23:47:39 +08:00
parent 0c33e0cba8
commit ecc999df85

View File

@ -122,7 +122,6 @@
depotSelected:[], depotSelected:[],
depotList: [], depotList: [],
totalCountMoneyStr: '0元', totalCountMoneyStr: '0元',
disableMixinCreated: true,
// 表头 // 表头
columns: [ columns: [
{ {
@ -153,6 +152,7 @@
}, },
created() { created() {
this.getDepotData() this.getDepotData()
this.getTotalCountMoney()
}, },
methods: { methods: {
moment, moment,
@ -197,9 +197,7 @@
this.queryParam.monthTime=dateString; this.queryParam.monthTime=dateString;
}, },
searchQuery() { searchQuery() {
if(this.depotSelected.length===0){ if(this.queryParam.monthTime == ''){
this.$message.warning('请选择仓库')
} else if(this.queryParam.monthTime == ''){
this.$message.warning('请选择月份') this.$message.warning('请选择月份')
} else { } else {
this.loadData(1); this.loadData(1);