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/EquipmentTransferList.vue |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/src/views/eam/EquipmentTransferList.vue b/src/views/eam/EquipmentTransferList.vue
index 4d3989b..79da946 100644
--- a/src/views/eam/EquipmentTransferList.vue
+++ b/src/views/eam/EquipmentTransferList.vue
@@ -59,12 +59,13 @@
         style='margin-top: 15px'
         @click='handleAdd'
         type='primary'
+        v-has="'equipmentTransfer: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="'equipmentTransfer:submitAndCancel'">鎻愪氦
       </a-button>
       <a-button v-if="selectedRowKeys.length > 0  && selectionRows[0].auditStatus === 'pendingApproval'"
                 @click='handleRevocation' type='primary' icon='rollback'>鎾ゅ洖
@@ -107,14 +108,20 @@
           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)' v-has="'equipmentTransfer:edit'">缂栬緫</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 class='ant-dropdown-link'>鏇村 <a-icon type='down' /></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="'equipmentTransfer:delete'">
                                 <a-popconfirm title='纭畾鍒犻櫎鍚�?'
                                               @confirm='() => handleDelete(record.id)'>
                                     <a>鍒犻櫎</a>
@@ -323,7 +330,7 @@
     },
 
     handleApprove: function(record) {
-      let  reject, approval;
+      let reject, approval
       reject = this.url.reject
       approval = this.url.approval
       this.$refs.approvalModalForm.showModals(record, reject, approval)

--
Gitblit v1.9.3