浏览代码

1. 新增时间查询默认天

MONSTER-ygh 1 年之前
父节点
当前提交
4ced3368c1

+ 5 - 0
src/views/distribution/recordMr/index.vue

@@ -134,6 +134,7 @@ import { pageList , downTimeCountListXls } from '@/api/distribution/recordMr'
 import detailsDia from "./dialog/details.vue";
 import { exportExcel } from '@/utils/exportexcel'
 import { pagePerformTimeList } from "@/api/schedulingMr/schedulingMr"
+import moment from "moment"
 export default {
   name: "agreement",
   dicts: ['agreement_type', 'distribution_type'],
@@ -174,6 +175,8 @@ export default {
     };
   },
   created() {
+    this.$set(this.queryParams,'performDate',moment().format("yyyy-MM-DD"))
+    this.pagePerformTimeListFun(this.queryParams.performDate)
     this.getList();
   },
   methods: {
@@ -203,6 +206,8 @@ export default {
       this.$set(this.queryParams, 'personName', '');
       this.$set(this.queryParams, 'memberMobile', '');
       this.$set(this.queryParams, 'personType', '');
+      this.$set(this.queryParams, 'performDate', '');
+      this.$set(this.queryParams, 'performTimeId', '');
       this.queryParams.pageNum = 1;
       this.handleQuery();
     },

+ 3 - 1
src/views/order/groupBuyingMr/index.vue

@@ -262,7 +262,7 @@ import { printApi } from '@/api/order/orderMr'
 import { pageList as getPrintListApi } from "@/api/device/pda";
 import { pagePerformTimeList } from "@/api/schedulingMr/schedulingMr"
 import { exportExcel } from '@/utils/exportexcel'
-
+import moment from "moment"
 const https = require('https');
 const axios = require('axios');
 export default {
@@ -386,6 +386,8 @@ export default {
     };
   },
   created() {
+    this.$set(this.queryParams,'performDate',moment().format("yyyy-MM-DD"))
+    this.pagePerformTimeListFun(this.queryParams.performDate)
     this.getList();
   },
   methods: {

+ 3 - 0
src/views/order/orderMr/index.vue

@@ -268,6 +268,7 @@ import { exportExcel } from '@/utils/exportexcel'
 import { pageList as getPrintListApi } from "@/api/device/pda";
 const https = require('https');
 const axios = require('axios');
+import moment from "moment"
 export default {
   name: "agreement",
   dicts: ['order_form_type','order_status_type','pay_way_type'],
@@ -321,6 +322,8 @@ export default {
     };
   },
   created() {
+    this.$set(this.queryParams,'performDate',moment().format("yyyy-MM-DD"))
+    this.pagePerformTimeListFun(this.queryParams.performDate)
     this.getList();
   },
   methods: {

+ 4 - 0
src/views/order/viewers/index.vue

@@ -370,12 +370,15 @@ export default {
   created() {
     //this.$set(this.queryParams,'performDate',[moment().format("yyyy-MM-DD"),moment().format("yyyy-MM-DD")])
     this.getSeatTypeListFun()
+    this.$set(this.queryParams,'performDate',moment().format("yyyy-MM-DD"))
+    this.pagePerformTimeListFun(this.queryParams.performDate)
     this.getList();
   },
   methods: {
     /** 查询列表 */
     getList() {
       this.loading = true;
+      
       pageList(this.addDateRange(this.queryParams))
         .then(response => {
           this.dataList = response.data.rows;
@@ -422,6 +425,7 @@ export default {
         pageNum: 1,
         pageSize: 10,
       }
+      
       // this.$set(this.queryParams, 'orderId', '');
       // this.$set(this.queryParams, 'status', '');
       // this.$set(this.queryParams, 'memberMobile', '');