From 49e027879c9c945e0223a7cce2b9e57d18c9286f Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期四, 24 七月 2025 18:07:52 +0800
Subject: [PATCH] 修改

---
 src/views/eam/repair/EamRepairOrderList.vue |   34 +++++++++++++++++++++-------------
 1 files changed, 21 insertions(+), 13 deletions(-)

diff --git a/src/views/eam/repair/EamRepairOrderList.vue b/src/views/eam/repair/EamRepairOrderList.vue
index 34f03c0..9947088 100644
--- a/src/views/eam/repair/EamRepairOrderList.vue
+++ b/src/views/eam/repair/EamRepairOrderList.vue
@@ -35,11 +35,11 @@
 
     <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
     <div class="table-operator" v-if="isDisplayOperation">
-      <a-dropdown v-if="selectedRowKeys.length > 0">
+      <a-dropdown :disabled="selectedRowKeys.length == 0">
         <a-menu slot="overlay">
-          <a-menu-item key="1" @click="batchDel">
-            <a-icon type="delete"/>
-            鍒犻櫎
+          <a-menu-item key="1" @click="handleBatchSubmit">
+            <a-icon type="form"/>
+            鎻愪氦
           </a-menu-item>
         </a-menu>
         <a-button style="margin-left: 8px"> 鎵归噺鎿嶄綔
@@ -61,13 +61,15 @@
                :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" @change="handleTableChange"
                :scroll="{x:'max-content'}">
         <span slot="action" slot-scope="text, record">
-          <a v-if="record.repairStatus === 'PENDING_REPAIR' || record.repairStatus === 'UNDER_MAINTENANCE'" @click="handleFillIn(record)">濉姤</a>
-          <a-divider v-if="record.repairStatus === 'PENDING_REPAIR' || record.repairStatus === 'UNDER_MAINTENANCE'" type="vertical"/>
-          <a-popconfirm v-if="record.repairStatus === 'PENDING_REPAIR' || record.repairStatus === 'UNDER_MAINTENANCE'" title="纭畾鎻愪氦鍚�?" @confirm="() => handleSubmit(record.id)">
-             <a>鎻愪氦</a>
-          </a-popconfirm>
-          <a-divider v-if="record.repairStatus === 'PENDING_REPAIR' || record.repairStatus === 'UNDER_MAINTENANCE'" type="vertical"/>
-          <a @click="handleDetail(record)">璇︽儏</a>
+          <template v-if="record.repairStatus=='PENDING_REPAIR'||record.repairStatus=='UNDER_MAINTENANCE'">
+             <a @click="handleFillIn(record)">濉姤</a>
+             <a-divider type="vertical"/>
+             <a-popconfirm title="纭畾鎻愪氦鍚�?" @confirm="() => handleSubmit(record.id)">
+               <a>鎻愪氦</a>
+             </a-popconfirm>
+          </template>
+
+          <a v-else @click="handleDetail(record)">璇︽儏</a>
         </span>
       </a-table>
     </div>
@@ -146,7 +148,8 @@
           {
             title: '宸ュ崟鍙�',
             align: 'center',
-            dataIndex: 'repairCode'
+            dataIndex: 'repairCode',
+            fixed: 'left'
           },
           {
             title: '缁翠慨寮�濮嬫椂闂�',
@@ -261,6 +264,11 @@
           })
       },
 
+      // 鎵归噺鎻愪氦鏃惰Е鍙�
+      handleBatchSubmit() {
+
+      },
+
       /**
        * 鐐瑰嚮璇︽儏瑙﹀彂
        * @param record 琛ㄦ牸琛屼俊鎭�
@@ -270,7 +278,7 @@
         this.$refs.repairOrderApprovalModal.visible = true
         this.$refs.repairOrderApprovalModal.title = '璇︽儏'
         this.$refs.repairOrderApprovalModal.disableSubmit = true
-        this.$refs.repairOrderApprovalModal.recordDetail(record)
+        this.$refs.repairOrderApprovalModal.handleDetail(record)
       }
     }
   }

--
Gitblit v1.9.3