From 6de5073a4d9dc6aaeb706378a63641c19e7cddae Mon Sep 17 00:00:00 2001
From: sen <sen@qq.com>
Date: 星期日, 28 九月 2025 16:35:00 +0800
Subject: [PATCH] 修改搜索时间范围

---
 ui/admin-ui3/src/views/cwgl/returnLog/index.vue                 |   21 +++++-
 ui/admin-ui3/src/views/cwgl/requestStatusLog/index.vue          |   24 ++++++-
 ui/admin-ui3/src/views/cwgl/smartLockerApplication/index.vue    |    2 
 ui/admin-ui3/src/views/cwgl/keyCollectionInfo/index.vue         |   64 ++++++++++++++++++--
 ui/admin-ui3/src/views/cwgl/pendingSettlementBusiness/index.vue |   47 +++++++++++----
 ui/admin-ui3/src/views/cwgl/estimatedReceivable/index.vue       |   21 ++++++-
 6 files changed, 146 insertions(+), 33 deletions(-)

diff --git a/ui/admin-ui3/src/views/cwgl/estimatedReceivable/index.vue b/ui/admin-ui3/src/views/cwgl/estimatedReceivable/index.vue
index 5da6fa1..742acea 100644
--- a/ui/admin-ui3/src/views/cwgl/estimatedReceivable/index.vue
+++ b/ui/admin-ui3/src/views/cwgl/estimatedReceivable/index.vue
@@ -245,11 +245,22 @@
     },
     orderDate: {
       label: '涓嬪崟鏃ユ湡',
-      search: true,
       minWidth: 180,
       type: 'datetime',  // 鏀逛负 datetime 绫诲瀷
       format: 'YYYY-MM-DD HH:mm:ss',
       valueFormat: 'YYYY-MM-DD HH:mm:ss',
+    },
+    orderDateArray: {
+      label: '涓嬪崟鏃ユ湡',
+      search: true,
+      searchRange: true,
+      type: 'daterange',
+      startPlaceholder: '寮�濮嬫棩鏈�',
+      endPlaceholder: '缁撴潫鏃ユ湡',
+      valueFormat: 'YYYY-MM-DD',
+      hide: true,
+      addDisplay: false,
+      editDisplay: false,
     },
     feeName: {
       label: '璐圭敤鍚嶇О',
@@ -411,9 +422,13 @@
 
     },
     getBeginListFunc: (params = {}) => {
-      params.feeType = 0;
-      return params
+      let newParams = { ...params };
+      newParams.feeType = 0;
+      newParams = proxy.addDateRangeNew(newParams, newParams?.orderDateArray, 'orderDate') || [];
+      delete newParams.orderDateArray;
+      
 
+      return newParams
     }
 
   })
diff --git a/ui/admin-ui3/src/views/cwgl/keyCollectionInfo/index.vue b/ui/admin-ui3/src/views/cwgl/keyCollectionInfo/index.vue
index 50ce33f..e92f1fe 100644
--- a/ui/admin-ui3/src/views/cwgl/keyCollectionInfo/index.vue
+++ b/ui/admin-ui3/src/views/cwgl/keyCollectionInfo/index.vue
@@ -6,12 +6,12 @@
       @search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange"
       @size-change="sizeChange" @on-load="onLoad">
       <template #menu-left>
-        <el-button type="success" icon="Edit" :disabled="pageF.single" v-hasPermi="['cwgl:keyCollectionInfo:edit']"
+        <!-- <el-button type="success" icon="Edit" :disabled="pageF.single" v-hasPermi="['cwgl:keyCollectionInfo:edit']"
           @click="handleUpdate">淇敼
         </el-button>
         <el-button type="danger" icon="Delete" :disabled="pageF.multiple" @click="handleDelete"
           v-hasPermi="['cwgl:keyCollectionInfo:remove']">鍒犻櫎
-        </el-button>
+        </el-button> -->
         <el-button type="warning" plain icon="Download" @click="handleExport"
           v-hasPermi="['cwgl:keyCollectionInfo:export']">瀵煎嚭
         </el-button>
@@ -69,8 +69,9 @@
     // },
     customerName: {
       label: '瀹㈡埛鍚嶇О',
-      minWidth: 200,
-        search: true,
+      minWidth: 220,
+      search: true,
+      showOverflowTooltip: true,
     },
     carrier: {
       label: '鎵胯繍鍟�',
@@ -80,7 +81,7 @@
     dispatchNo: {
       label: '璋冨害鍗曞彿',
       minWidth: 200,
-        search: true,
+      search: true,
     },
     driverName: {
       label: '鍙告満鍚嶇О',
@@ -96,29 +97,62 @@
     orderTime: {
       label: '璁㈠崟涓嬪崟鏃堕棿',
       minWidth: 180,
-        search: true,
       type: 'datetime',  // 鏀逛负 datetime 绫诲瀷
       format: 'YYYY-MM-DD HH:mm:ss',
       valueFormat: 'YYYY-MM-DD HH:mm:ss',
       minWidth: 200,
+    },
+    orderTimeArray: {
+      label: '璁㈠崟涓嬪崟鏃堕棿',
+      search: true,
+      searchRange: true,
+      type: 'daterange',
+      startPlaceholder: '寮�濮嬫棩鏈�',
+      endPlaceholder: '缁撴潫鏃ユ湡',
+      valueFormat: 'YYYY-MM-DD',
+      hide: true,
+      addDisplay: false,
+      editDisplay: false,
     },
     orderCreatedTime: {
       label: '璁㈠崟鍒涘缓鏃堕棿',
       minWidth: 180,
-        search: true,
       type: 'datetime',  // 鏀逛负 datetime 绫诲瀷
       format: 'YYYY-MM-DD HH:mm:ss',
       valueFormat: 'YYYY-MM-DD HH:mm:ss',
       minWidth: 200,
     },
+    orderCreatedTimeArray: {
+      label: '璁㈠崟鍒涘缓鏃堕棿',
+      search: true,
+      searchRange: true,
+      type: 'daterange',
+      startPlaceholder: '寮�濮嬫棩鏈�',
+      endPlaceholder: '缁撴潫鏃ユ湡',
+      valueFormat: 'YYYY-MM-DD',
+      hide: true,
+      addDisplay: false,
+      editDisplay: false,
+    },
     dispatchCreatedTime: {
       label: '璋冨害鍗曞垱寤烘椂闂�',
       minWidth: 180,
-        search: true,
       type: 'datetime',  // 鏀逛负 datetime 绫诲瀷
       format: 'YYYY-MM-DD HH:mm:ss',
       valueFormat: 'YYYY-MM-DD HH:mm:ss',
       minWidth: 200,
+    },
+    dispatchCreatedTimeArray: {
+      label: '璋冨害鍗曞垱寤烘椂闂�',
+      search: true,
+      searchRange: true,
+      type: 'daterange',
+      startPlaceholder: '寮�濮嬫棩鏈�',
+      endPlaceholder: '缁撴潫鏃ユ湡',
+      valueFormat: 'YYYY-MM-DD',
+      hide: true,
+      addDisplay: false,
+      editDisplay: false,
     },
     keyCollectionTime: {
       label: '閽ュ寵棰嗗彇鏃堕棿',
@@ -205,7 +239,21 @@
     },
     handleSelectionChangeFunc: (selection: any) => {
       selectionList.value = selection;
+    },
+    getBeginListFunc: (params = {}) => {
+      let newParams = { ...params };
+
+      newParams = proxy.addDateRangeNew(newParams, newParams?.orderTimeArray, 'orderTime') || [];
+      newParams = proxy.addDateRangeNew(newParams, newParams?.orderCreatedTimeArray, 'orderCreatedTime') ||  [] ;
+      newParams = proxy.addDateRangeNew(newParams, newParams?.dispatchCreatedTimeArray, 'dispatchCreatedTime') || [];
+
+      delete newParams.orderTimeArray;
+      delete newParams.orderCreatedTimeArray;
+      delete newParams.dispatchCreatedTimeArray;
+
+      return newParams;
     }
+
   })
 
 
diff --git a/ui/admin-ui3/src/views/cwgl/pendingSettlementBusiness/index.vue b/ui/admin-ui3/src/views/cwgl/pendingSettlementBusiness/index.vue
index 8169e7b..38ded24 100644
--- a/ui/admin-ui3/src/views/cwgl/pendingSettlementBusiness/index.vue
+++ b/ui/admin-ui3/src/views/cwgl/pendingSettlementBusiness/index.vue
@@ -204,14 +204,28 @@
     vehicleType: {
       label: '杞﹀瀷', search: true,
     },
+    // createdTime: {
+    //   label: '涓嬪崟鏃堕棿',
+    //   display: false,
+    //   search: true,
+    //   type: 'date',
+    //   format: 'YYYY-MM-DD',
+    //   searchSpan: 5, minWidth: 120,
+    //   valueFormat: 'YYYY-MM-DD',
+    // },
+    createdTimeArray: {
+      label: '涓嬪崟鏃堕棿',
+      search: true,
+      searchRange: true,
+      type: 'daterange',
+      startPlaceholder: '寮�濮嬫棩鏈�',
+      endPlaceholder: '缁撴潫鏃ユ湡',
+      valueFormat: 'YYYY-MM-DD',
+      hide: true
+    },
     createdTime: {
       label: '涓嬪崟鏃堕棿',
-      display: false,
-      search: true,
-      type: 'date',
-      format: 'YYYY-MM-DD',
-      searchSpan: 5, minWidth: 120,
-      valueFormat: 'YYYY-MM-DD',
+      minWidth: 180,
     },
     operationMode: {
       label: '杩愯惀妯″紡',
@@ -256,7 +270,7 @@
     },
     arrivalLocation: {
       label: '鐩殑鍦�',
-      minWidth:  220,
+      minWidth: 220,
       showOverflowTooltip: true,
 
     },
@@ -311,7 +325,7 @@
       minWidth: 120,
 
     },
-        isCreate: {
+    isCreate: {
       label: '鏄惁宸插叆璐�', dataType: 'string',
       type: 'select',
       fixed: 'right',
@@ -330,7 +344,7 @@
       type: 'select',
       dataType: 'string',
       minWidth: 120,
-      
+
       dicUrl: '/system/dict/data/type/sys_matching_status',
     },
     isCostMatched: {
@@ -468,7 +482,16 @@
         generateDisabled.value = false;
       }
       selectionList.value = selection;
+    },
+    getBeginListFunc: (params = {}) => {
+      // 鍒涘缓鏂板弬鏁板璞�
+      let newParams = { ...params };
+       newParams = proxy.addDateRangeNew(newParams, newParams?.createdTimeArray, 'createdTime') || [];
+      delete newParams.createdTimeArray;
+    
+      return newParams;
     }
+
   })
 const dialog = reactive({
   visible: false,
@@ -556,7 +579,7 @@
   dispatchNo.value = row.dispatchNo;
   dialog.title = '璐圭敤鏄庣粏';
   if (activeName.value == 'first') {
-    listEstimatedReceivable({ dispatchNo: row.dispatchNo, feeType: 1,isConfirmed:1 }).then((res) => {
+    listEstimatedReceivable({ dispatchNo: row.dispatchNo, feeType: 1, isConfirmed: 1 }).then((res) => {
       if (res.code === 200) {
         dialog.detail = true;
         tableDataList.value = res.rows || [];
@@ -564,7 +587,7 @@
     })
   } else if (activeName.value == 'second') {
     // 杩欓噷鍙互娣诲姞鏌ヨ鏀跺叆鐩稿叧鐨勯�昏緫
-    listEstimatedReceivable({ dispatchNo: row.dispatchNo, feeType: 0,isConfirmed:1 }).then((res) => {
+    listEstimatedReceivable({ dispatchNo: row.dispatchNo, feeType: 0, isConfirmed: 1 }).then((res) => {
       if (res.code === 200) {
         dialog.detail = true;
         tableDataList.value = res.rows || [];
@@ -573,7 +596,7 @@
   }
 }
 const getListVable = (dispatchNo, feeType) => {
-  listEstimatedReceivable({ dispatchNo: dispatchNo, feeType: feeType,isConfirmed:1 }).then((res) => {
+  listEstimatedReceivable({ dispatchNo: dispatchNo, feeType: feeType, isConfirmed: 1 }).then((res) => {
     if (res.code === 200) {
       tableDataList.value = res.rows || [];
     }
diff --git a/ui/admin-ui3/src/views/cwgl/requestStatusLog/index.vue b/ui/admin-ui3/src/views/cwgl/requestStatusLog/index.vue
index 6e1b521..f1a4f99 100644
--- a/ui/admin-ui3/src/views/cwgl/requestStatusLog/index.vue
+++ b/ui/admin-ui3/src/views/cwgl/requestStatusLog/index.vue
@@ -96,6 +96,18 @@
       format: 'YYYY-MM-DD HH:mm:ss',
       valueFormat: 'YYYY-MM-DD HH:mm:ss',
     },
+    reqTimeArray: {
+      label: '璇锋眰寮�闂ㄦ椂闂�',
+      search: true,
+      searchRange: true,
+      type: 'daterange',
+      startPlaceholder: '寮�濮嬫棩鏈�',
+      endPlaceholder: '缁撴潫鏃ユ湡',
+      valueFormat: 'YYYY-MM-DD',
+      hide: true,
+      addDisplay: false,
+      editDisplay: false,
+    },
     // reqTime: {
     //   label: '璇锋眰鏃堕棿',
     //   minWidth: 150,
@@ -133,11 +145,13 @@
     handleSelectionChangeFunc: (selection: any) => {
       selectionList.value = selection;
     },
-    getBeginListFunc: (params = {}) => {
-      params.type = 0;
-      return params
-
-    }
+      getBeginListFunc: (params = {}) => {
+            let newParams = { ...params };
+            newParams.type = 0;
+            newParams = proxy.addDateRangeNew(newParams, newParams?.reqTimeArray, 'reqTime') || [];
+            delete newParams.reqTimeArray;
+            return newParams
+        }
   })
 
 
diff --git a/ui/admin-ui3/src/views/cwgl/returnLog/index.vue b/ui/admin-ui3/src/views/cwgl/returnLog/index.vue
index a29dc93..938a30e 100644
--- a/ui/admin-ui3/src/views/cwgl/returnLog/index.vue
+++ b/ui/admin-ui3/src/views/cwgl/returnLog/index.vue
@@ -92,10 +92,21 @@
         reqTime: {
             label: '瀛樺叆鏃堕棿',
             minWidth: 150,
-            search: true,
             type: 'datetime',  // 鏀逛负 datetime 绫诲瀷
             format: 'YYYY-MM-DD HH:mm:ss',
             valueFormat: 'YYYY-MM-DD HH:mm:ss',
+        },
+        reqTimeArray: {
+            label: '瀛樺叆鏃堕棿',
+            search: true,
+            searchRange: true,
+            type: 'daterange',
+            startPlaceholder: '寮�濮嬫棩鏈�',
+            endPlaceholder: '缁撴潫鏃ユ湡',
+            valueFormat: 'YYYY-MM-DD',
+            hide: true,
+            addDisplay: false,
+            editDisplay: false,
         },
         // reqTime: {
         //   label: '璇锋眰鏃堕棿',
@@ -135,9 +146,11 @@
             selectionList.value = selection;
         },
         getBeginListFunc: (params = {}) => {
-            params.type = 1;
-            return params
-
+            let newParams = { ...params };
+            newParams.type = 1;
+            newParams = proxy.addDateRangeNew(newParams, newParams?.reqTimeArray, 'reqTime') || [];
+            delete newParams.reqTimeArray;
+            return newParams
         }
     })
 
diff --git a/ui/admin-ui3/src/views/cwgl/smartLockerApplication/index.vue b/ui/admin-ui3/src/views/cwgl/smartLockerApplication/index.vue
index 63da0e6..df4f40c 100644
--- a/ui/admin-ui3/src/views/cwgl/smartLockerApplication/index.vue
+++ b/ui/admin-ui3/src/views/cwgl/smartLockerApplication/index.vue
@@ -383,7 +383,7 @@
   })
 
 }
-const handleEditBtn = (row, index) => {
+const handleEditBtn = (row:any, index:any) => {
   crudRef.value.rowEdit(row, index)
   // option.value.editBtn = true;
 }

--
Gitblit v1.8.0