diff --git a/jshERP-web/src/views/report/BuyInReport.vue b/jshERP-web/src/views/report/BuyInReport.vue index 6ceae0c4..12261d6b 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 8a2255b0..eda7136c 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 895db4ae..53eb470e 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 a11260c7..e1e96031 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 88547888..5fe98dcf 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 fef6734c..1c30d2d6 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 83d04365..53b22c24 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 2e045417..d9f81b11 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 de207d49..25973d76 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); + } } } }