From a04b8970aa94f80c4c4937706c787391759aded7 Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期三, 13 十二月 2023 15:54:17 +0800
Subject: [PATCH] 1、全局车间层级以及部门层级树默认展开 2、车间看板页面设备详情弹窗背景透明度改为不透明 3、所有含有车间层级树页面新增弹窗中的选择设备弹窗内容由表格选择调整为树方式 4、报警分析页面表格字段出现次数与合计持续时间增加排序功能以及表格请求数据设置加载中动画 5、设备利用率、设备开动率以及班次利用率页面表格有关时间值调整为小时并保留两位小数以及通过与后端数据联调,增加表格平均值及合计值展示 6、设备综合效率分析页面表格班次字段若数据过长则省略 7、用户管理页面添加用户与重新设定密码弹窗中的登录密码校验长度与数据字典password_length设置保持一致以及表格车间字段若数据过长则省略

---
 src/views/eam/OperationCertificateApplyList.vue |   32 +++++++++++++++++++++++++++-----
 1 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/src/views/eam/OperationCertificateApplyList.vue b/src/views/eam/OperationCertificateApplyList.vue
index 349cd26..ca8f095 100644
--- a/src/views/eam/OperationCertificateApplyList.vue
+++ b/src/views/eam/OperationCertificateApplyList.vue
@@ -111,19 +111,33 @@
           >
             <a>鎾ゅ洖</a>
           </a-popconfirm>
-          <a-popconfirm
+          <!-- <a-popconfirm
             v-if="record.auditStatus == 'submitted' || record.auditStatus == 'approved'"
             title="纭椹冲洖鍚�?"
             @confirm="() =>handleCommit(record, 'back')"
           >
             <a>椹冲洖</a>
-          </a-popconfirm>
+          </a-popconfirm> -->
           <a-divider
             v-if="record.auditStatus == 'created' || record.auditStatus == 'submitted'"
             type="vertical"
           />
           <a @click="handleEdit(record)" v-if="record.auditStatus == 'created'">缂栬緫</a>
-          <a-popconfirm
+          <a-divider
+            v-if="record.auditStatus == 'created'"
+            type="vertical"
+          />
+          <a
+            v-show="record.auditStatus == 'submitted'"
+            @click="handleFinish(record)"
+            v-has="'OperationCertificateApply:operationCertificateAudit'"
+          >瀹℃牳</a>
+          <a
+            v-show="record.auditStatus == 'approved'"
+            @click="handleFinish(record)"
+            v-has="'OperationCertificateApply:equipmentAdmin'"
+          >瀹℃牳</a>
+          <!-- <a-popconfirm
             v-if="record.auditStatus == 'submitted'"
             title="纭閫氳繃瀹℃壒鍚�?"
             @confirm="() =>handleCommit(record, 'approved')"
@@ -136,7 +150,7 @@
             @confirm="() =>handleCommit(record, 'audited')"
           >
             <a>瀹℃牳</a>
-          </a-popconfirm>
+          </a-popconfirm> -->
           <a-divider type="vertical" v-if="record.auditStatus == 'created' || record.auditStatus == 'submitted' || record.auditStatus == 'approved'"/>
           <a-dropdown>
             <a class="ant-dropdown-link">鏇村 <a-icon type="down" /></a>
@@ -167,6 +181,7 @@
     </a-tabs>
 
     <operation-certificate-apply-modal ref="modalForm" @ok="modalFormOk" />
+    <operation-certificate-apply-audit ref="modalFormAudit" @ok="modalFormOk" />
   </a-card>
 </template>
 
@@ -174,6 +189,7 @@
 
   import { JeecgListMixin } from '@/mixins/JeecgListMixin'
   import OperationCertificateApplyModal from './modules/operationCertificateApply/OperationCertificateApplyModal'
+  import OperationCertificateApplyAudit from './modules/operationCertificateApply/OperationCertificateApplyAudit'
   import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
   import { getAction, postAction } from '@/api/manage'
   import OperationCertificateApplyDetailList from './modules/operationCertificateApply/OperationCertificateApplyDetailList'
@@ -184,7 +200,8 @@
     mixins:[JeecgListMixin],
     components: {
       OperationCertificateApplyModal,
-      OperationCertificateApplyDetailList
+      OperationCertificateApplyDetailList,
+      OperationCertificateApplyAudit
     },
     data () {
       return {
@@ -322,6 +339,11 @@
         this.$refs.modalForm.disableSubmit = false;
         this.$refs.modalForm.isAchievement = true;
       },
+      handleFinish: function (record) {
+      this.$refs.modalFormAudit.edit(record);
+      this.$refs.modalFormAudit.title = "鎿嶄綔璇佺敵璇峰鏍�";
+      this.$refs.modalFormAudit.disableSubmit = true;
+    },
       onSelectChange(selectedRowKeys, selectionRows) {
       if (selectedRowKeys.length == 1) {
 

--
Gitblit v1.9.3