From 6a863d3bc783d2397edee658cf3016c436430d4e Mon Sep 17 00:00:00 2001 From: van Date: Sun, 28 Jun 2026 12:23:02 +0800 Subject: [PATCH] 1 --- src/views/system/jdorder/orderList.vue | 15 ++++- src/views/system/orderrows/index.vue | 93 +++++++++++++++++++++++++- 2 files changed, 106 insertions(+), 2 deletions(-) diff --git a/src/views/system/jdorder/orderList.vue b/src/views/system/jdorder/orderList.vue index 05a3e87..39fe365 100644 --- a/src/views/system/jdorder/orderList.vue +++ b/src/views/system/jdorder/orderList.vue @@ -1584,8 +1584,8 @@ export default { this._patchRowTimers = {} this._persistOrderTimers = {} this._persistOrderPendingMsg = {} - // 设置默认日期为今天 this.setDefaultDateRange() + this.applyRouteSearchQuery() this.getListWithFallback() this.loadShopOptions() this.handleOAuthMessage = (event) => { @@ -1775,6 +1775,19 @@ export default { this.queryParams.beginTime = todayStr this.queryParams.endTime = todayStr }, + /** 从路由参数带入慢单搜索(京粉列表跳转) */ + applyRouteSearchQuery() { + const q = this.$route.query || {} + if (!q.orderSearch) { + return + } + this.queryParams.orderSearch = q.orderSearch + if (q.allDates === '1') { + this.dateRange = [] + this.queryParams.beginTime = undefined + this.queryParams.endTime = undefined + } + }, /** 格式化日期为 yyyy-MM-dd 格式 */ formatDate(date) { const year = date.getFullYear() diff --git a/src/views/system/orderrows/index.vue b/src/views/system/orderrows/index.vue index 12fcb81..d1f8c48 100644 --- a/src/views/system/orderrows/index.vue +++ b/src/views/system/orderrows/index.vue @@ -173,7 +173,36 @@ {{ getAdminName(scope.row.unionId) }} - + + +