From f7f0a26ba95de85e537b0c18e02f06416b01312f Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期一, 04 八月 2025 21:33:28 +0800
Subject: [PATCH] 保养流程添加流程节点

---
 src/views/eam/base/EamTechnicalStatusEvaluationStandardList.vue |   63 ++++++++++++++-----------------
 1 files changed, 28 insertions(+), 35 deletions(-)

diff --git a/src/views/eam/base/EamTechnicalStatusEvaluationStandardList.vue b/src/views/eam/base/EamTechnicalStatusEvaluationStandardList.vue
index 79820cf..0924cdf 100644
--- a/src/views/eam/base/EamTechnicalStatusEvaluationStandardList.vue
+++ b/src/views/eam/base/EamTechnicalStatusEvaluationStandardList.vue
@@ -42,38 +42,27 @@
 
     <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
     <div class="table-operator">
-      <a-button @click="handleAdd" type="primary" icon="plus">鏂板</a-button>
+      <a-button v-has="'standardMain:add'" @click="handleAdd" type="primary" icon="plus">鏂板</a-button>
       <a-upload name="file" :showUploadList="false" :multiple="true" :headers="tokenHeader"
                 :action="importSafetyEquipmentCheck"
                 @change="handleImportExcel">
-        <a-button type="primary" icon="import">瀹夊叏瑁呯疆妫�鏌ュ鍏�</a-button>
+        <a-button  v-has="'standardMain:importSafety'"  type="primary" icon="import">瀹夊叏瑁呯疆妫�鏌ュ鍏�</a-button>
       </a-upload>
       <a-upload name="file" :showUploadList="false" :multiple="true" :headers="tokenHeader"
                 :action="importPrecisionCheck"
                 @change="handleImportExcel">
-        <a-button type="primary" icon="import">璁惧绮惧害妫�鏌ュ鍏�</a-button>
+        <a-button v-has="'standardMain:importPrecision'" type="primary" icon="import">璁惧绮惧害妫�鏌ュ鍏�</a-button>
       </a-upload>
       <a-upload name="file" :showUploadList="false" :multiple="true" :headers="tokenHeader"
                 :action="importOtherCheck"
                 @change="handleImportExcel">
-        <a-button type="primary" icon="import">鍏朵粬妫�鏌ュ鍏�</a-button>
+        <a-button v-has="'standardMain:importOther'" type="primary" icon="import">鍏朵粬妫�鏌ュ鍏�</a-button>
       </a-upload>
-      <a-dropdown v-if="selectedRowKeys.length > 0">
-        <a-menu slot="overlay">
-          <a-menu-item key="1" @click="batchDel">
-            <a-icon type="delete"/>
-            鍒犻櫎
-          </a-menu-item>
-        </a-menu>
-        <a-button style="margin-left: 8px"> 鎵归噺鎿嶄綔
-          <a-icon type="down"/>
-        </a-button>
-      </a-dropdown>
     </div>
 
     <!-- table鍖哄煙-begin -->
     <a-table ref="table" size="middle" bordered rowKey="id" :columns="columns" :dataSource="dataSource"
-             :pagination="ipagination" :loading="loading" @change="handleTableChange">
+             :scroll="{x:'max-content'}" :pagination="ipagination" :loading="loading" @change="handleTableChange">
 
       <!--鏄惁鏈夊畨鍏ㄨ缃鏌�-->
       <template slot="hasSafetyEquipmentCheck" slot-scope="text">
@@ -93,15 +82,21 @@
 
       <span slot="action" slot-scope="text, record">
         <template v-if="record.standardStatus=='WAIT_SUBMIT'">
-           <a @click="handleEdit(record)">缂栬緫</a>
+           <a  @click="handleEdit(record)">缂栬緫</a>
           <a-divider type="vertical"/>
           <a-popconfirm title="纭畾鎻愪氦鍚�?" @confirm="handleSubmit(record)">
             <a @click.stop="event=>event.stopPropagation()">鎻愪氦</a>
           </a-popconfirm>
+          <a-divider type="vertical"/>
         </template>
-        <a @click="handleUpgrade(record)" v-if="record.standardStatus=='ENABLE'">鍗囩増</a>
-        </span>
 
+        <template v-if="record.standardStatus=='ENABLE'">
+          <a  v-has="'standardMain:upgradeVersion'" @click="handleUpgrade(record)">鍗囩増</a>
+          <a-divider type="vertical"/>
+        </template>
+
+        <a @click="handleDetail(record)">璇︽儏</a>
+        </span>
     </a-table>
 
     <!-- table鍖哄煙-end -->
@@ -155,6 +150,12 @@
             dataIndex: 'equipmentModel'
           },
           {
+            title: '瑙勮寖鐘舵��',
+            align: 'center',
+            dataIndex: 'standardStatus_dictText',
+            width: 150
+          },
+          {
             title: '瑙勮寖缂栫爜',
             align: 'center',
             dataIndex: 'standardCode'
@@ -164,48 +165,39 @@
             align: 'center',
             dataIndex: 'standardName'
           },
-          // {
-          //   title: '閴村畾鍛ㄦ湡锛堝勾锛�',
-          //   align: 'center',
-          //   dataIndex: 'evaluationPeriod',
-          //   width: 150
-          // },
-          {
-            title: '瑙勮寖鐘舵��',
-            align: 'center',
-            dataIndex: 'standardStatus_dictText',
-            width: 150
-          },
           {
             title: '鐗堟湰',
             align: 'center',
             dataIndex: 'standardVersion',
+            width: 100
           },
           {
             title: '鏄惁鏈夊畨鍏ㄨ缃鏌�',
             align: 'center',
             dataIndex: 'hasSafetyEquipmentCheck',
             scopedSlots: { customRender: 'hasSafetyEquipmentCheck' },
-            width: 150
+            width: 200
           },
           {
             title: '鏄惁鏈夎澶囩簿搴︽鏌�',
             align: 'center',
             dataIndex: 'hasPrecisionCheck',
             scopedSlots: { customRender: 'hasPrecisionCheck' },
-            width: 150
+            width: 200
           },
           {
             title: '鏄惁鏈夊叾浠栨鏌�',
             align: 'center',
             dataIndex: 'hasOtherCheck',
             scopedSlots: { customRender: 'hasOtherCheck' },
-            width: 150
+            width: 200
           },
           {
             title: '鎿嶄綔',
             dataIndex: 'action',
             align: 'center',
+            fixed: 'right',
+            width: 200,
             scopedSlots: { customRender: 'action' }
           }
         ],
@@ -214,7 +206,7 @@
           submit: '/eam/eamTechnicalStatusEvaluationStandard/submit',
           importSafetyEquipmentCheck: 'eam/eamTechnicalStatusEvaluationStandard/importSafetyEquipmentCheck',
           importPrecisionCheck: 'eam/eamTechnicalStatusEvaluationStandard/importPrecisionCheck',
-          importOtherCheck: 'eam/eamTechnicalStatusEvaluationStandard/importOtherCheck',
+          importOtherCheck: 'eam/eamTechnicalStatusEvaluationStandard/importOtherCheck'
 
         }
       }
@@ -252,6 +244,7 @@
       handleUpgrade(record) {
         this.$refs.modalForm.edit(record, true)
         this.$refs.modalForm.title = '鍗囩増'
+        this.$refs.modalForm.disableSubmit = false
       }
     }
   }

--
Gitblit v1.9.3