From 771ba48e26496c1de6735cc5cae93f02ff8d7ad1 Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期二, 04 三月 2025 17:22:14 +0800 Subject: [PATCH] art: 所有设备 台账 三保工单 根据设备id查询三保工单,并过滤掉已完成和已取消的三保工单 --- src/views/eam/EquipmentListOfAll.vue | 106 ++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 97 insertions(+), 9 deletions(-) diff --git a/src/views/eam/EquipmentListOfAll.vue b/src/views/eam/EquipmentListOfAll.vue index 7864d8e..490cde8 100644 --- a/src/views/eam/EquipmentListOfAll.vue +++ b/src/views/eam/EquipmentListOfAll.vue @@ -18,7 +18,7 @@ :md='8' :sm='24'> <a-form-item - label="缁熶竴缂栧彿缇�" + label="缁熶竴缂栫爜缇�" :labelCol="labelCol" :wrapperCol="wrapperCol" > @@ -372,6 +372,13 @@ v-has="'equipmentAccount:add&delete&import&Edit'" >璐ㄤ繚鏈熷彉鏇�</a-button> <a-button + :disabled="selectedRowKeys.length==0" + @click="batchDel" + type="danger" + icon="delete" + v-has="'equipmentAccount:add&delete&import&Edit'" + >鎵归噺鍒犻櫎</a-button> + <a-button @click="handleUpdateKeyEquipment" type="primary" icon="calendar" @@ -558,6 +565,51 @@ :length="8" /> </span> + <span + slot="yseNoInspectionStandard" + slot-scope="text" + > + <a-icon + type="check" + style="color: chartreuse;" + v-if="text==='0'" + /> + <a-icon + type="close" + v-else + style="color:red;" + /> + </span> + <span + slot="yseNoMaintenance2Standard" + slot-scope="text" + > + <a-icon + type="check" + style="color: chartreuse;" + v-if="text==='0'" + /> + <a-icon + type="close" + v-else + style="color:red;" + /> + </span> + <span + slot="yseNoMaintenance3Standard" + slot-scope="text" + > + <a-icon + type="check" + style="color: chartreuse;" + v-if="text==='0'" + /> + <a-icon + type="close" + v-else + style="color:red;" + /> + </span> <template slot="num" @@ -634,7 +686,6 @@ <a-tab-pane tab="璁惧鏂囨。" key="1" - forceRender > <EquipmentDocumentList :mainId="selectedMainId" /> </a-tab-pane> @@ -661,44 +712,57 @@ <a-tab-pane tab="澶囦欢" key="4" - forceRender > <EquipmentSpareParts :mainId="selectedMainId" /> </a-tab-pane> <a-tab-pane tab="ABC鏍囪瘑鍙樻洿璁板綍" key="5" - forceRender > <equipment-update-ABC-list :mainId="selectedMainId" /> </a-tab-pane> <a-tab-pane tab="璐ㄤ繚鏈熷彉鏇�" key="6" - forceRender > <equipment-update-warranty-list :mainId="selectedMainId" /> </a-tab-pane> <a-tab-pane tab="鐐规鏍囧噯" key="7" - forceRender > <daily-maintenance-list :mainId="selectedMainId"></daily-maintenance-list> </a-tab-pane> + <a-tab-pane tab="浜屼繚鏍囧噯" key="8" - forceRender > <second-maintenance-list :mainId="selectedMainId"></second-maintenance-list> </a-tab-pane> <a-tab-pane tab="涓変繚鏍囧噯" key="9" - forceRender > <third-maintenance-list :mainId="selectedMainId"></third-maintenance-list> + </a-tab-pane> + <a-tab-pane + tab="鐐规宸ュ崟" + key="10" + > + <daily-inspection-order-list-component :mainId="selectedMainId"></daily-inspection-order-list-component> + </a-tab-pane> + <a-tab-pane + tab="浜屼繚宸ュ崟" + key="11" + > + <daily-maintenance-order-list-component :mainId="selectedMainId"></daily-maintenance-order-list-component> + </a-tab-pane> + <a-tab-pane + tab="涓変繚宸ュ崟" + key="12" + > + <daily3-maintenance-order-list-component :mainId="selectedMainId"></daily3-maintenance-order-list-component> </a-tab-pane> </a-tabs> <equipment-modal @@ -735,7 +799,7 @@ import { mixinDevice } from '@/utils/mixin' import JEllipsis from '@/components/jeecg/JEllipsis' import EquipmentModal from './modules/equipmentNew/EquipmentModal' -import { getAction, downFile } from '@/api/manage' +import { getAction, downFile, deleteAction } from '@/api/manage' import EquipmentProcessParametersList from './modules/equipmentNew/EquipmentProcessParametersList' import EquipmentDocumentList from './modules/equipmentNew/EquipmentDocumentList' import EquipmentPrecisionParametersList from './modules/equipmentNew/EquipmentPrecisionParametersList' @@ -756,6 +820,9 @@ import SecondMaintenanceList from './modules/equipmentNew/SecondMaintenanceList.vue' import ThirdMaintenanceList from './modules/equipmentNew/ThirdMaintenanceList.vue' import KeyEquipmentUpdateModel from './modules/equipmentNew/edit/KeyEquipmentUpdateModel.vue' +import DailyInspectionOrderListComponent from './modules/equipmentNew/DailyInspectionOrderListComponent.vue' +import DailyMaintenanceOrderListComponent from './modules/equipmentNew/DailyMaintenanceOrderListComponent.vue' +import Daily3MaintenanceOrderListComponent from './modules/equipmentNew/Daily3MaintenanceOrderListComponent.vue' export default { name: "EquipmentList", @@ -782,6 +849,9 @@ ThirdMaintenanceList, KeyEquipmentUpdateModel, JEllipsis, + DailyInspectionOrderListComponent, + DailyMaintenanceOrderListComponent, + Daily3MaintenanceOrderListComponent, }, data() { return { @@ -1072,6 +1142,24 @@ align: "center", dataIndex: 'precisionParametersTemplateId_dictText', }, + { + title: '鏈夋棤鐐规鏍囧噯', + align: "center", + dataIndex: 'yseNoInspectionStandard', + scopedSlots: { customRender: 'yseNoInspectionStandard' } + }, + { + title: '鏈夋棤浜屼繚鏍囧噯', + align: "center", + dataIndex: 'yseNoMaintenance2Standard', + scopedSlots: { customRender: 'yseNoMaintenance2Standard' } + }, + { + title: '鏈夋棤涓変繚鏍囧噯', + align: "center", + dataIndex: 'yseNoMaintenance3Standard', + scopedSlots: { customRender: 'yseNoMaintenance3Standard' } + }, // { // title: '澶囨敞', // align: "center", -- Gitblit v1.9.3