From b5e4adfc3a55490ad1cd49f50dfcc9dfb7b57d33 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期四, 31 八月 2023 13:45:34 +0800
Subject: [PATCH] 文档名称来源 修改

---
 src/views/eam/EquipmentChangeList.vue |   41 ++++++++++++++++++++++++++++++++++-------
 1 files changed, 34 insertions(+), 7 deletions(-)

diff --git a/src/views/eam/EquipmentChangeList.vue b/src/views/eam/EquipmentChangeList.vue
index 55b82d5..f3a8e25 100644
--- a/src/views/eam/EquipmentChangeList.vue
+++ b/src/views/eam/EquipmentChangeList.vue
@@ -60,12 +60,13 @@
         style='margin-top: 15px'
         @click='handleAdd'
         type='primary'
+        v-has="'equipmentChange:add'"
         icon='plus'
       >鏂板
       </a-button>
       <a-button
         v-if="selectedRowKeys.length > 0  && (selectionRows[0].auditStatus==='notSubmitted' || selectionRows[0].auditStatus==='Rejected')"
-        @click='handleSubmit' type='primary' icon='check'>鎻愪氦
+        @click='handleSubmit' type='primary' icon='check' v-has="'equipmentChange:submitAndCancel'">鎻愪氦
       </a-button>
       <a-button v-if="selectedRowKeys.length > 0  && selectionRows[0].auditStatus === 'pendingApproval'"
                 @click='handleRevocation' type='primary' icon='rollback'>鎾ゅ洖
@@ -101,15 +102,15 @@
         @change='handleTableChange'
       >
 
-       <span
+<!--       <span
          slot='action'
          slot-scope='text, record'
        >
-          <a v-if="record.auditStatus === 'notSubmitted'" @click='handleEdit(record)'>缂栬緫</a>
+          <a v-if="record.auditStatus === 'notSubmitted' || record.auditStatus === 'Rejected'" @click='handleEdit(record)'>缂栬緫</a>
           <a v-if="record.auditStatus === 'pendingApproval'" @click='handleApprove(record)'>瀹℃壒</a>
 
-          <a-divider v-if="record.auditStatus === 'notSubmitted'" type='vertical' />
-        <a-dropdown v-if="record.auditStatus === 'notSubmitted'">
+          <a-divider v-if="record.auditStatus === 'notSubmitted' || record.auditStatus === 'Rejected'" type='vertical' />
+        <a-dropdown v-if="record.auditStatus === 'notSubmitted' || record.auditStatus === 'Rejected'">
                         <a class='ant-dropdown-link'>鏇村 <a-icon type='down' /></a>
                         <a-menu slot='overlay'>
                             <a-menu-item>
@@ -121,8 +122,34 @@
 
                         </a-menu>
                     </a-dropdown>
-        </span>
+        </span>-->
+        <span
+          slot='action'
+          slot-scope='text, record'
+        >
+          <a v-if="record.auditStatus === 'notSubmitted' || record.auditStatus === 'Rejected'" @click='handleEdit(record)' v-has="'equipmentChange:edit'">缂栬緫</a>
+          <a v-if="record.auditStatus === 'pendingApproval'" @click='handleApprove(record)'>瀹℃壒</a>
 
+          <a-divider
+            v-if="record.auditStatus === 'notSubmitted' || record.auditStatus === 'Rejected' || record.auditStatus === 'pendingApproval'"
+            type='vertical'
+          />
+        <a-dropdown>
+                        <a class='ant-dropdown-link'>鏇村 <a-icon type='down' /></a>
+                        <a-menu slot='overlay'>
+                           <a-menu-item>
+                            <a @click='handleDetail(record)'>璇︽儏</a>
+                            </a-menu-item>
+                            <a-menu-item v-if="record.auditStatus === 'notSubmitted'||record.auditStatus === 'Rejected'" v-has="'equipmentChange:delete'">
+                                <a-popconfirm title='纭畾鍒犻櫎鍚�?'
+                                              @confirm='() => handleDelete(record.id)'>
+                                    <a>鍒犻櫎</a>
+                                </a-popconfirm>
+                            </a-menu-item>
+
+                        </a-menu>
+                    </a-dropdown>
+        </span>
       </a-table>
       <a-tabs defaultActiveKey='1'>
         <a-tab-pane
@@ -133,7 +160,7 @@
             class='table-operator'
             style='margin:-16px'
           >
-            <equipment-change-detail :equipmentChangeId='equipmentChangeId' />
+            <equipment-change-detail :equipmentChangeId='equipmentChangeId'/>
           </div>
         </a-tab-pane>
 

--
Gitblit v1.9.3