From d9eb3f8449df7791df436f3d69f91814ba6ff79b Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期四, 06 三月 2025 09:47:03 +0800
Subject: [PATCH] art: 设备台账-分类设备 页面修改,直接引用 所有设备页面,统一编码和修改
---
src/views/eam/OperationCertificateApplyList.vue | 138 +++++++++++++--------------------------------
1 files changed, 40 insertions(+), 98 deletions(-)
diff --git a/src/views/eam/OperationCertificateApplyList.vue b/src/views/eam/OperationCertificateApplyList.vue
index 19720e2..b361d10 100644
--- a/src/views/eam/OperationCertificateApplyList.vue
+++ b/src/views/eam/OperationCertificateApplyList.vue
@@ -1,6 +1,6 @@
<template>
<a-card
- title="鎿嶄綔璇佺敵璇�"
+ title=""
:bordered="false"
>
<!-- 鏌ヨ鍖哄煙 -->
@@ -17,10 +17,10 @@
:sm="24"
>
<a-form-item label="鐢宠鍗曠紪鍙�">
- <a-input
+ <j-input
placeholder="璇疯緭鍏ョ敵璇峰崟缂栧彿"
v-model="queryParam.num"
- ></a-input>
+ ></j-input>
</a-form-item>
</a-col>
<a-col
@@ -37,22 +37,22 @@
/>
</a-form-item>
</a-col>
- <template v-if="toggleSearchStatus">
- <a-col
- :xl="6"
- :lg="7"
- :md="8"
- :sm="24"
- >
- <a-form-item label="瀹℃牳鐘舵��">
- <j-dict-select-tag
- placeholder="璇烽�夋嫨瀹℃牳鐘舵��"
- v-model="queryParam.auditStatus"
- dictCode="certificate_apply_status"
- />
- </a-form-item>
- </a-col>
- </template>
+ <!-- <template v-if="toggleSearchStatus"> -->
+ <a-col
+ :xl="6"
+ :lg="7"
+ :md="8"
+ :sm="24"
+ >
+ <a-form-item label="瀹℃牳鐘舵��">
+ <j-dict-select-tag
+ placeholder="璇烽�夋嫨瀹℃牳鐘舵��"
+ v-model="queryParam.auditStatus"
+ dictCode="certificate_apply_status"
+ />
+ </a-form-item>
+ </a-col>
+ <!-- </template> -->
<a-col
:xl="6"
:lg="7"
@@ -74,13 +74,13 @@
icon="reload"
style="margin-left: 8px"
>閲嶇疆</a-button>
- <a
+ <!-- <a
@click="handleToggleSearch"
style="margin-left: 8px"
>
{{ toggleSearchStatus ? '鏀惰捣' : '灞曞紑' }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'" />
- </a>
+ </a> -->
</span>
</a-col>
</a-row>
@@ -100,7 +100,7 @@
icon="download"
@click="handleExportXls('鎿嶄綔璇佺敵璇疯〃')"
>瀵煎嚭</a-button>
- <a-upload
+ <!-- <a-upload
name="file"
:showUploadList="false"
:multiple="false"
@@ -112,7 +112,7 @@
type="primary"
icon="import"
>瀵煎叆</a-button>
- </a-upload>
+ </a-upload> -->
<a-button
@click="handleAchievement"
type="primary"
@@ -159,50 +159,6 @@
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange"
>
-
- <template
- slot="htmlSlot"
- slot-scope="text"
- >
- <div v-html="text"></div>
- </template>
- <template
- slot="imgSlot"
- slot-scope="text,record"
- >
- <span
- v-if="!text"
- style="font-size: 12px;font-style: italic;"
- >鏃犲浘鐗�</span>
- <img
- v-else
- :src="getImgView(text)"
- :preview="record.id"
- height="25px"
- alt=""
- style="max-width:80px;font-size: 12px;font-style: italic;"
- />
- </template>
- <template
- slot="fileSlot"
- slot-scope="text"
- >
- <span
- v-if="!text"
- style="font-size: 12px;font-style: italic;"
- >鏃犳枃浠�</span>
- <a-button
- v-else
- :ghost="true"
- type="primary"
- icon="download"
- size="small"
- @click="downloadFile(text)"
- >
- 涓嬭浇
- </a-button>
- </template>
-
<span
slot="action"
slot-scope="text, record"
@@ -251,20 +207,6 @@
@click="handleFinish(record)"
v-has="'OperationCertificateApply:equipmentAdmin'"
>瀹℃牳</a>
- <!-- <a-popconfirm
- v-if="record.auditStatus == 'submitted'"
- title="纭閫氳繃瀹℃壒鍚�?"
- @confirm="() =>handleCommit(record, 'approved')"
- >
- <a>瀹℃壒</a>
- </a-popconfirm>
- <a-popconfirm
- v-if="record.auditStatus == 'approved'"
- title="纭閫氳繃瀹℃牳鍚�?"
- @confirm="() =>handleCommit(record, 'audited')"
- >
- <a>瀹℃牳</a>
- </a-popconfirm> -->
<a-divider
type="vertical"
v-if="record.auditStatus == 'created' || record.auditStatus == 'submitted' || record.auditStatus == 'approved'"
@@ -387,9 +329,9 @@
dataIndex: 'handlePerson_dictText'
},
{
- title: '澶囨敞',
+ title: '鍔炵悊鏃堕棿',
align: "center",
- dataIndex: 'remark'
+ dataIndex: 'createTime'
},
{
title: '鎿嶄綔',
@@ -409,11 +351,11 @@
approve: "/eam/operationCertificateApply/approve"
},
dictOptions: {},
- superFieldList: [],
+ // superFieldList: [],
}
},
created() {
- this.getSuperFieldList();
+ // this.getSuperFieldList();
},
computed: {
importExcelUrl: function () {
@@ -421,19 +363,19 @@
}
},
methods: {
- initDictConfig() {
- },
- getSuperFieldList() {
- let fieldList = [];
- fieldList.push({ type: 'string', value: 'num', text: '鐢宠鍗曠紪鍙�', dictCode: '' })
- fieldList.push({ type: 'string', value: 'type', text: '绫诲瀷', dictCode: 'apply_type' })
- fieldList.push({ type: 'sel_depart', value: 'departId', text: '鎵�鍦ㄥ崟浣�' })
- fieldList.push({ type: 'string', value: 'contactNumber', text: '鐢宠鍗曚綅鑱旂郴鐢佃瘽', dictCode: '' })
- fieldList.push({ type: 'string', value: 'applicant', text: '鐢宠浜�', dictCode: "sys_user,realname,id" })
- fieldList.push({ type: 'string', value: 'auditStatus', text: '瀹℃牳鐘舵��', dictCode: 'certificate_apply_status' })
- fieldList.push({ type: 'string', value: 'remark', text: '澶囨敞', dictCode: '' })
- this.superFieldList = fieldList
- },
+ // initDictConfig() {
+ // },
+ // getSuperFieldList() {
+ // let fieldList = [];
+ // fieldList.push({ type: 'string', value: 'num', text: '鐢宠鍗曠紪鍙�', dictCode: '' })
+ // fieldList.push({ type: 'string', value: 'type', text: '绫诲瀷', dictCode: 'apply_type' })
+ // fieldList.push({ type: 'sel_depart', value: 'departId', text: '鎵�鍦ㄥ崟浣�' })
+ // fieldList.push({ type: 'string', value: 'contactNumber', text: '鐢宠鍗曚綅鑱旂郴鐢佃瘽', dictCode: '' })
+ // fieldList.push({ type: 'string', value: 'applicant', text: '鐢宠浜�', dictCode: "sys_user,realname,id" })
+ // fieldList.push({ type: 'string', value: 'auditStatus', text: '瀹℃牳鐘舵��', dictCode: 'certificate_apply_status' })
+ // fieldList.push({ type: 'string', value: 'remark', text: '澶囨敞', dictCode: '' })
+ // this.superFieldList = fieldList
+ // },
handleCommit(record, type) {
if (type == 'commit') {
record.auditStatus = 'submitted'
--
Gitblit v1.9.3