From f29e2aae98bbb52672b67bff99556f3cf64d1bce Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期四, 26 六月 2025 15:45:40 +0800
Subject: [PATCH] feat(eims): 优化设备管理功能和界面

---
 eims-ui-mobile/src/pages/maint/maint-order.vue |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/eims-ui-mobile/src/pages/maint/maint-order.vue b/eims-ui-mobile/src/pages/maint/maint-order.vue
index b67e041..daaa2d8 100644
--- a/eims-ui-mobile/src/pages/maint/maint-order.vue
+++ b/eims-ui-mobile/src/pages/maint/maint-order.vue
@@ -37,10 +37,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">
@@ -175,7 +178,7 @@
             >
               <wd-input
                 v-model="part.name"
-                label="鍚嶇О"
+                label="鍚嶇О锛�"
                 label-width="100rpx"
                 placeholder="澶囦欢鍚嶇О"
 
@@ -183,7 +186,8 @@
               />
               <wd-input
                 v-model="part.quantity"
-                label="鏁伴噺" label-width="100rpx"
+                label="鏁伴噺锛�"
+                label-width="100rpx"
                 placeholder="鏁伴噺" type="number" :maxlength="5" />
             </view>
           </view>
@@ -215,9 +219,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>
     <!-- 鏂板鎻愪氦鎸夐挳 -->
@@ -260,7 +264,7 @@
 import { getMaintSt, getMaintStOrderList, updateMaintOrder, updateMaintSt, updateMaintOrderBatch } from '@/service/maint'
 import { ref, reactive } from 'vue'
 import { useToast, useMessage } from 'wot-design-uni'
-import { isLeader, isOperatorOrRepair } from '@/utils/RoleUtils'
+import { isLeader, isLineOrRepair } from '@/utils/RoleUtils'
 import { formatDate } from '@/utils/DateUtils'
 import { useUserStore } from "@/store";
 import { getSpareList } from '@/service/spare'
@@ -561,9 +565,8 @@
 }
 
 function handleClickRight() {
-  if(isOperatorOrRepair()){
+
     handleUpdateMaintSt()
-  }
 
 }
 

--
Gitblit v1.9.3