Explorar o código

王子文 生产日报 bug fix: 解决了日报加载时默认日期有时不符合预期的问题

wangggziwen %!s(int64=2) %!d(string=hai) anos
pai
achega
c01c7f8247
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ui/src/views/production/daily/index.vue

+ 1 - 1
ui/src/views/production/daily/index.vue

@@ -4007,7 +4007,6 @@ export default {
           this.clientHeight = document.body.clientHeight -250
       })
       this.setMaxDate();
-      this.getReport();
       this.getTreeselect();
       this.loading = false;
   },
@@ -4183,6 +4182,7 @@ export default {
       getReportByMaxDate().then(response => {
         if (null != response.data) {
           this.queryParams.reportDate = response.data.reportDate;
+          this.getReport();
         } else {
           this.$message.info("未导入生产日报数据");
         }