From 9b80c42df73cb99b37d95b5c0a186ceec5e45a27 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 07 一月 2025 17:23:31 +0800
Subject: [PATCH] ll

---
 h5/pages/staff/task/index.vue |   31 ++++++++++++++++++++++---------
 1 files changed, 22 insertions(+), 9 deletions(-)

diff --git a/h5/pages/staff/task/index.vue b/h5/pages/staff/task/index.vue
index 56ed2e0..619ff2b 100644
--- a/h5/pages/staff/task/index.vue
+++ b/h5/pages/staff/task/index.vue
@@ -249,6 +249,7 @@
         { name: '鐢ㄨ溅鐢宠', id: 2 },
         { name: '闅愭偅闅忔墜鎷�', id: 3 },
         { name: '鐗╂祦杞︾敵璇�', id: 4 },
+        { name: '鑰冨嫟浠e姙', id: 7 },
       ],
       startDate: dayjs().format('YYYY-MM-DD'),
     }
@@ -275,8 +276,7 @@
   onShow() {
     this.pagination.page = 0
     this.dataList = []
-    this.getHeadList()
-    this.getList()
+		this.getHeadList()
   },
   methods: {
     statusClick(val) {
@@ -293,6 +293,9 @@
     },
     modalReset() {
       this.modelParam = {}
+      this.search = {
+				queryType: 0
+			}
       this.pagination.page = 0
       this.dataList = []
       this.showFilter = false
@@ -319,13 +322,16 @@
           ...search
         }
       }).then(res => {
+				if(res.data && res.data.records){
+					res.data.records.forEach(i => {
+					  if (i.param1) {
+					    i.param1 = JSON.parse(i.param1)
+					  }
+					})
+				}
         this.dataList = [...this.dataList, ...res.data.records]
 				this.total = res.data.total
-        this.dataList.forEach(i => {
-          if (i.param1) {
-            i.param1 = JSON.parse(i.param1)
-          }
-        })
+        
       })
     },
     getHeadList() {
@@ -333,6 +339,7 @@
         isDetail: '1'
       }).then(res => {
         this.headData = res.data
+				this.getList()
       })
     },
     handleReady() {
@@ -352,9 +359,13 @@
           this.getHeadList()
         })
       }
+			if (item.type == 7) {
+			  window.open('https://atwl.ahzyssl.com/dps/web/wxAuth/loginV2?oaId=atwl&redirectId=index')
+				return 
+			} 
       if (objType === 2) {
         uni.navigateTo({
-          url: `/pages/staff/vehicle/sendACarDetail?id=${objId}&appr=1&info=${info}`
+          url: `/pages/staff/vehicle/sendACarDetail?id=${objId}&info=${info}`
         })
       } else if (objType === 1) {
         uni.navigateTo({
@@ -364,7 +375,7 @@
         uni.navigateTo({
           url: `/pages/staff/task/vDangetAppr?id=${objId}&objType=${objType}&info=${info}`
         })
-      } else if (objType === 6 || objType === 5) {
+      }else if (objType === 6 || objType === 5) {
         uni.navigateTo({
           url: `/pages/staff/task/driver?id=${objId}&objType=${objType}&info=${info}`
         })
@@ -535,6 +546,8 @@
 				  font-size: 26rpx;
 				  font-weight: 400;
 					color: #999999;
+					width: 120rpx;
+					text-align: right;
 				}
         .loading {
           color: $uni-color-primary;

--
Gitblit v1.9.3