diff --git a/src/views/plan/order/index.vue b/src/views/plan/order/index.vue index 3853498..5660b07 100644 --- a/src/views/plan/order/index.vue +++ b/src/views/plan/order/index.vue @@ -1142,6 +1142,9 @@ export default { if (this.queryParams.planDateArray != null) { this.queryParams.planDateStart = moment(this.queryParams.planDateArray[0]).format('YYYY-MM-DD') this.queryParams.planDateEnd = moment(this.queryParams.planDateArray[1]).format('YYYY-MM-DD') + }else { + this.queryParams.planDateStart = null + this.queryParams.planDateEnd = null } listOrder(this.queryParams).then(response => { this.orderList = this.handleTree(response.data, 'orderCode', 'parentOrder') @@ -1240,7 +1243,7 @@ export default { /** 重置按钮操作 */ resetQuery() { this.queryParams = { - planDateArray: [], + planDateArray: [new Date(), new Date()], planFactoryCode: null, orderType: null, orderCode: null,