From 5857dfa10b70a061b8e4711dd8f18b585ac6fc23 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 25 二月 2025 17:43:37 +0800
Subject: [PATCH] ll

---
 admin/src/views/platform/LogisticsRecord/operation.vue |   33 ++++++++++++++++++++++-----------
 1 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/admin/src/views/platform/LogisticsRecord/operation.vue b/admin/src/views/platform/LogisticsRecord/operation.vue
index 2fe8765..d921c8c 100644
--- a/admin/src/views/platform/LogisticsRecord/operation.vue
+++ b/admin/src/views/platform/LogisticsRecord/operation.vue
@@ -32,6 +32,7 @@
       <el-table-column prop="doneDate" label="浣滀笟瀹屾垚鏃堕棿" min-width="150" show-overflow-tooltip />
       <el-table-column prop="workTime" label="浣滀笟鏃堕暱" min-width="100" show-overflow-tooltip />
       <el-table-column prop="platformNames" label="鍙彿鏈堝彴" min-width="100" show-overflow-tooltip />
+      <el-table-column prop="createDate" label="鍒涘缓鏃堕棿" min-width="150" show-overflow-tooltip />
       <el-table-column label="浣滀笟鎯呭喌" fixed="right" min-width="100" show-overflow-tooltip>
         <template v-slot="scope">
           <span>{{ statusMap[scope.row.status] }}</span>
@@ -84,7 +85,7 @@
       queryFormConfig: {
         formItems: [
         {
-            filed: 'code',
+            filed: 'billCode',
             type: 'input',
             label: '杩愬崟鍙�'
           },
@@ -107,7 +108,7 @@
           {
             type: 'slot',
             filed: 'fastdate',
-            label: ''
+            label: '浣滀笟鏃堕棿'
           }
         ],
         online: true
@@ -137,9 +138,10 @@
         model: {
           ...filters,
           jobType: '0',
-          beginWorkDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null,
-          beginWorkDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null,
+          createDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null,
+          createDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null,
         },
+        sorts: [{ direction: 'DESC', property: 'create_date' }],
         capacity: pagination.pageSize,
         page: page || pagination.page,
       }).then(res => {
@@ -148,7 +150,11 @@
         this.list.forEach(item => {
           item.inTypeTemp = item.inType == 0 ? '鏁存墭鐩�' : '浠剁儫'
           item.taskOrigin = 'WMS鑾峰彇'
-          item.workTime = dayjs.duration(item.workTime, 'seconds').format('H鏃秏鍒唖绉�');
+          if(item.workTime && item.workTime>=24*60*60 ){
+            item.workTime = dayjs.duration(item.workTime, 'seconds').format('D澶〩鏃秏鍒唖绉�');
+          }else{
+            item.workTime = dayjs.duration(item.workTime, 'seconds').format('H鏃秏鍒唖绉�');
+          }
         })
         this.pagination.total = res.total || 0
       }, () => {
@@ -167,11 +173,17 @@
       this.$dialog.exportConfirm('纭瀵煎嚭鍚楋紵')
         .then(() => {
           this.exLoading = true
+          const { filters } = this
           platformJobExport({
-            page: this.pagination.page,
-            capacity: 1000000,
-            jobType: '0',
-            model: this.filters
+            model: {
+              ...filters,
+              jobType: 0,
+              createDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null,
+              createDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null,
+            },
+            sorts: [{ direction: 'DESC', property: 'create_date' }],
+            capacity: 10000,
+            page: 1,
           })
             .then(response => {
               this.download(response)
@@ -188,7 +200,6 @@
       this.pagination.page = 1
       this.filters = {
         selDate: [],
-        fastdate: 0
       }
       this.getList()
     },
@@ -215,4 +226,4 @@
   color: #000000;
   margin-bottom: 15px;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3