From e0faf446ddf1b0ba79e207293c0227fdc3cc193e Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期二, 04 三月 2025 13:58:35 +0800 Subject: [PATCH] art: 所有设备 台账 合并 保养标准菜单,增加 有无点检标准,有无二保标准,有无三保标准 --- src/views/eam/EquipmentListOfAll.vue | 89 ++++++++++++++++++++++++++++++++++++++------ 1 files changed, 76 insertions(+), 13 deletions(-) diff --git a/src/views/eam/EquipmentListOfAll.vue b/src/views/eam/EquipmentListOfAll.vue index 93d4613..9da36c7 100644 --- a/src/views/eam/EquipmentListOfAll.vue +++ b/src/views/eam/EquipmentListOfAll.vue @@ -558,6 +558,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" @@ -632,8 +677,16 @@ <a-tabs defaultActiveKey="1"> <a-tab-pane - tab="宸ヨ壓鍙傛暟" + tab="璁惧鏂囨。" key="1" + forceRender + > + <EquipmentDocumentList :mainId="selectedMainId" /> + </a-tab-pane> + <a-tab-pane + tab="宸ヨ壓鍙傛暟" + key="2" + v-if="isOpenProcess" > <EquipmentProcessParametersList :mainId="selectedMainId" @@ -642,20 +695,13 @@ </a-tab-pane> <a-tab-pane tab="璁惧绮惧害" - key="2" - forceRender + key="3" + v-if="isOpenPrecision" > <EquipmentPrecisionParametersList :isOpen="isOpenPrecision" :mainId="precisionParametersTemplateId" /> - </a-tab-pane> - <a-tab-pane - tab="璁惧鏂囨。" - key="3" - forceRender - > - <EquipmentDocumentList :mainId="selectedMainId" /> </a-tab-pane> <a-tab-pane tab="澶囦欢" @@ -679,7 +725,7 @@ <equipment-update-warranty-list :mainId="selectedMainId" /> </a-tab-pane> <a-tab-pane - tab="鏃ヤ繚鏍囧噯" + tab="鐐规鏍囧噯" key="7" forceRender > @@ -1071,6 +1117,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", @@ -1164,7 +1228,7 @@ this.selectedMainId = '' }, onSelectChange(selectedRowKeys, selectionRows) { - if (selectedRowKeys.length == 1) { + if (selectedRowKeys.length >= 1) { this.selectedMainId = selectedRowKeys[0] this.precisionParametersTemplateId = selectionRows[0].precisionParametersTemplateId; this.isOpenProcess = selectionRows[0].processParameters == 1; @@ -1300,7 +1364,6 @@ }, handleDownload() { - debugger; var params = {}//鏌ヨ鏉′欢 params.type = "equipment" params.pageNo = 1 -- Gitblit v1.9.3