diff --git a/jshERP-web/src/views/report/BuyInReport.vue b/jshERP-web/src/views/report/BuyInReport.vue index 6ceae0c4f..12261d6bd 100644 --- a/jshERP-web/src/views/report/BuyInReport.vue +++ b/jshERP-web/src/views/report/BuyInReport.vue @@ -108,6 +108,13 @@ onChange: function (value, dateString) { console.log(dateString); this.queryParam.monthTime=dateString; + }, + searchQuery() { + if(this.queryParam.monthTime == ''){ + this.$message.warning('请选择月份!') + } else { + this.loadData(1); + } } } } diff --git a/jshERP-web/src/views/report/CustomerAccount.vue b/jshERP-web/src/views/report/CustomerAccount.vue index 8a2255b04..eda7136c2 100644 --- a/jshERP-web/src/views/report/CustomerAccount.vue +++ b/jshERP-web/src/views/report/CustomerAccount.vue @@ -194,6 +194,13 @@ this.handleDetail(res.data, record.type); } }) + }, + searchQuery() { + if(this.queryParam.beginTime == '' || this.queryParam.endTime == ''){ + this.$message.warning('请选择单据日期!') + } else { + this.loadData(1); + } } } } diff --git a/jshERP-web/src/views/report/InDetail.vue b/jshERP-web/src/views/report/InDetail.vue index 895db4ae1..53eb470e6 100644 --- a/jshERP-web/src/views/report/InDetail.vue +++ b/jshERP-web/src/views/report/InDetail.vue @@ -183,6 +183,13 @@ this.handleDetail(res.data, record.newType); } }) + }, + searchQuery() { + if(this.queryParam.beginTime == '' || this.queryParam.endTime == ''){ + this.$message.warning('请选择单据日期!') + } else { + this.loadData(1); + } } } } diff --git a/jshERP-web/src/views/report/InMaterialCount.vue b/jshERP-web/src/views/report/InMaterialCount.vue index a11260c77..e1e960317 100644 --- a/jshERP-web/src/views/report/InMaterialCount.vue +++ b/jshERP-web/src/views/report/InMaterialCount.vue @@ -162,6 +162,13 @@ this.$message.info(res.data); } }) + }, + searchQuery() { + if(this.queryParam.beginTime == '' || this.queryParam.endTime == ''){ + this.$message.warning('请选择单据日期!') + } else { + this.loadData(1); + } } } } diff --git a/jshERP-web/src/views/report/InOutStockReport.vue b/jshERP-web/src/views/report/InOutStockReport.vue index 885478885..5fe98dcf7 100644 --- a/jshERP-web/src/views/report/InOutStockReport.vue +++ b/jshERP-web/src/views/report/InOutStockReport.vue @@ -155,13 +155,17 @@ } }) }, - searchQuery() { - this.loadData(1); - this.getTotalCountMoney(); - }, onChange: function (value, dateString) { console.log(dateString); this.queryParam.monthTime=dateString; + }, + searchQuery() { + if(this.queryParam.monthTime == ''){ + this.$message.warning('请选择月份!') + } else { + this.loadData(1); + this.getTotalCountMoney(); + } } } } diff --git a/jshERP-web/src/views/report/OutDetail.vue b/jshERP-web/src/views/report/OutDetail.vue index fef6734ce..1c30d2d6a 100644 --- a/jshERP-web/src/views/report/OutDetail.vue +++ b/jshERP-web/src/views/report/OutDetail.vue @@ -183,6 +183,13 @@ this.handleDetail(res.data, record.newType); } }) + }, + searchQuery() { + if(this.queryParam.beginTime == '' || this.queryParam.endTime == ''){ + this.$message.warning('请选择单据日期!') + } else { + this.loadData(1); + } } } } diff --git a/jshERP-web/src/views/report/OutMaterialCount.vue b/jshERP-web/src/views/report/OutMaterialCount.vue index 83d04365f..53b22c245 100644 --- a/jshERP-web/src/views/report/OutMaterialCount.vue +++ b/jshERP-web/src/views/report/OutMaterialCount.vue @@ -162,6 +162,13 @@ this.$message.info(res.data); } }) + }, + searchQuery() { + if(this.queryParam.beginTime == '' || this.queryParam.endTime == ''){ + this.$message.warning('请选择单据日期!') + } else { + this.loadData(1); + } } } } diff --git a/jshERP-web/src/views/report/SaleOutReport.vue b/jshERP-web/src/views/report/SaleOutReport.vue index 2e0454177..d9f81b110 100644 --- a/jshERP-web/src/views/report/SaleOutReport.vue +++ b/jshERP-web/src/views/report/SaleOutReport.vue @@ -111,6 +111,13 @@ onChange: function (value, dateString) { console.log(dateString); this.queryParam.monthTime=dateString; + }, + searchQuery() { + if(this.queryParam.monthTime == ''){ + this.$message.warning('请选择月份!') + } else { + this.loadData(1); + } } } } diff --git a/jshERP-web/src/views/report/VendorAccount.vue b/jshERP-web/src/views/report/VendorAccount.vue index de207d492..25973d760 100644 --- a/jshERP-web/src/views/report/VendorAccount.vue +++ b/jshERP-web/src/views/report/VendorAccount.vue @@ -195,6 +195,13 @@ this.handleDetail(res.data, record.type); } }) + }, + searchQuery() { + if(this.queryParam.beginTime == '' || this.queryParam.endTime == ''){ + this.$message.warning('请选择单据日期!') + } else { + this.loadData(1); + } } } }