From 88e10f5656a0ad5530a9e37892fb327153d9dc8a Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期五, 27 六月 2025 13:25:35 +0800
Subject: [PATCH] feat(eims): 优化保养报表状态展示

---
 eims-ui-mobile/src/pages/maint/maint-order.vue |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/eims-ui-mobile/src/pages/maint/maint-order.vue b/eims-ui-mobile/src/pages/maint/maint-order.vue
index 7e60bdc..f314dca 100644
--- a/eims-ui-mobile/src/pages/maint/maint-order.vue
+++ b/eims-ui-mobile/src/pages/maint/maint-order.vue
@@ -12,6 +12,7 @@
     v-model="dataList"
     @query="queryList"
     :auto="false"
+    refresher-only
     show-refresher-update-time
   >
     <template #top>
@@ -37,10 +38,13 @@
       <wd-card type="rectangle">
         <template #title>
           <view class="flex justify-between">
-            <view class="flex items-center menu-title-box">
-              <view class="menu-indicator"></view>
-              <view class="ml-1 text-lg align-center">{{ maintSt.equName }}</view>
-              <view class="text-color-gray ml-2 text-sm">{{ maintSt.assetNo }}</view>
+            <view class="items-center menu-title-box">
+
+              <view class="flex justify-center ml-1 items-center align-center">
+                <view class="menu-indicator"></view>
+                <view class="ml-1"> {{ maintSt.equName }} </view>
+              </view>
+              <view class="text-color-gray ml-2 text-xs">{{ maintSt.assetNo }}</view>
             </view>
 
             <view class="flex items-center">
@@ -216,9 +220,9 @@
         clearable
       />
       <!-- 鏂板纭瀹屾垚鎸夐挳 -->
-      <view class="flex justify-around mt-4">
-        <wd-button type="primary" block size="large" v-if="maintSt.status === '0'" @click="handleClickRight">鎻愪氦</wd-button>
-        <wd-button type="success" block size="large" v-if="isLeader() && maintSt.status === '1'" @click="handleComplete">纭瀹屾垚</wd-button>
+      <view class="flex justify-around">
+        <wd-button type="primary" style="margin: 20px" block v-if="maintSt.status === '0'" @click="handleClickRight">鎻愪氦</wd-button>
+        <wd-button type="success" style="margin: 20px" block v-if="isLeader() && maintSt.status === '1'" @click="handleComplete">纭瀹屾垚</wd-button>
       </view>
     </view>
     <!-- 鏂板鎻愪氦鎸夐挳 -->
@@ -299,10 +303,8 @@
   dyzCount: null,
   specialNote: '',
 })
-const queryList = (pageNum?: number, pageSize?: number) => {
+const queryList = () => {
   const params: QueryParams = {
-    pageNum,
-    pageSize: 30,
     maintCode: maintCode.value,
   }
   getMaintStOrderList(params)
@@ -315,8 +317,9 @@
           }
         })
       })
+      console.log(res)
       // 璇峰嬁鍦ㄧ綉缁滆姹傚洖璋冧腑缁檇ataList璧嬪�硷紒锛佸彧闇�瑕佽皟鐢╟omplete灏卞彲浠ヤ簡
-      paging.value.completeByTotal(res.rows, res.total)
+      paging.value.complete(res.rows)
     })
     .catch((res) => {
       console.error(res)

--
Gitblit v1.9.3