From e26670b6cd53a16c1d989e03d02b900e3ced9440 Mon Sep 17 00:00:00 2001
From: Lius <Lius2225@163.com>
Date: 星期五, 15 八月 2025 11:10:34 +0800
Subject: [PATCH] 停机管理新增更新
---
src/views/eam/maintenance/EamWeekMaintenanceOrderList.vue | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 50 insertions(+), 8 deletions(-)
diff --git a/src/views/eam/maintenance/EamWeekMaintenanceOrderList.vue b/src/views/eam/maintenance/EamWeekMaintenanceOrderList.vue
index 2b5c30b..a957d64 100644
--- a/src/views/eam/maintenance/EamWeekMaintenanceOrderList.vue
+++ b/src/views/eam/maintenance/EamWeekMaintenanceOrderList.vue
@@ -28,10 +28,28 @@
v-model="queryParam.maintenanceStatus"/>
</a-form-item>
</a-col>
- <a-col :xl="4" :lg="7" :md="8" :sm="24">
+ <template v-if="toggleSearchStatus">
+ <a-col :xl="4" :lg="4" :md="8" :sm="24">
+ <a-form-item label="鍒濋獙鏀舵娊妫�">
+ <j-dict-select-tag placeholder="璇烽�夋嫨鎶芥鏍囪" dict-code="yn"
+ v-model="queryParam.randomInspectionFlag"/>
+ </a-form-item>
+ </a-col>
+ <a-col :xl="4" :lg="4" :md="8" :sm="24">
+ <a-form-item label="缁堥獙鏀舵娊妫�">
+ <j-dict-select-tag placeholder="璇烽�夋嫨鎶芥鏍囪" dict-code="yn"
+ v-model="queryParam.finalRandomInspectionFlag"/>
+ </a-form-item>
+ </a-col>
+ </template>
+ <a-col :xl="4" :lg="4" :md="8" :sm="24">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
<a-button type="info" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
+ <a @click="handleToggleSearch" style="margin-left: 8px">
+ {{ toggleSearchStatus ? '鏀惰捣' : '灞曞紑' }}
+ <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+ </a>
</span>
</a-col>
@@ -80,23 +98,28 @@
:scroll="{x:'max-content'}"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
-
+ <span slot="randomInspectionFlag" slot-scope="text">
+ <lx-switch v-model="text" disabled checked-children="鏄�" un-checked-children="鍚�"/>
+ </span>
+ <span slot="finalRandomInspectionFlag" slot-scope="text">
+ <lx-switch v-model="text" disabled checked-children="鏄�" un-checked-children="鍚�"/>
+ </span>
<span slot="action" slot-scope="text, record">
- <template v-if="record.maintenanceStatus === 'WAIT_MAINTENANCE' && isShowAuth('eam:weekMaintenance:edit')">
- <a @click="handleEdit(record)">缂栬緫</a>
+ <template v-if="record.maintenanceStatus === 'WAIT_MAINTENANCE'">
+ <a @click="handleEdit(record)" v-if="isShowAuth('eam:weekMaintenance:edit')">缂栬緫</a>
- <a-divider type="vertical"/>
+ <a-divider type="vertical" v-if="isShowAuth('eam:weekMaintenance:edit')"/>
- <a-popconfirm title="纭畾棰嗗彇鍚�?" @confirm="() => handlerCollect(record.id)">
+ <a-popconfirm title="纭畾棰嗗彇鍚�?" @confirm="() => handlerCollect(record.id)" v-if="isShowAuth('eam:weekMaintenance:collect')">
<a>棰嗗彇</a>
</a-popconfirm>
- <a-divider type="vertical"/>
+ <a-divider type="vertical" v-if="isShowAuth('eam:weekMaintenance:collect')"/>
<a-dropdown>
<a class="ant-dropdown-link">鏇村 <a-icon type="down"/></a>
<a-menu slot="overlay">
- <a-menu-item>
+ <a-menu-item v-if="isShowAuth('eam:weekMaintenance:abolish')">
<a-popconfirm title="纭畾浣滃簾鍚�?" @confirm="() => handlerAbolish(record.id)">
<a>浣滃簾</a>
</a-popconfirm>
@@ -185,6 +208,11 @@
width: 60
},
{
+ title: '瀹夎浣嶇疆',
+ align: 'center',
+ dataIndex: 'installationPosition'
+ },
+ {
title: '鏍囧噯鍚嶇О',
align: 'center',
dataIndex: 'standardId_dictText',
@@ -263,6 +291,13 @@
width: 60
},
{
+ title: '鍒濋獙鏀舵娊妫�',
+ align: 'center',
+ dataIndex: 'randomInspectionFlag',
+ width: 60,
+ scopedSlots: { customRender: 'randomInspectionFlag' }
+ },
+ {
title: '缁堥獙鏀朵汉',
align: 'center',
dataIndex: 'finalAcceptanceUser_dictText',
@@ -281,6 +316,13 @@
width: 60
},
{
+ title: '缁堥獙鏀舵娊妫�',
+ align: 'center',
+ dataIndex: 'finalRandomInspectionFlag',
+ width: 60,
+ scopedSlots: { customRender: 'finalRandomInspectionFlag' }
+ },
+ {
title: '澶囨敞',
align: 'center',
dataIndex: 'remark',
--
Gitblit v1.9.3