From 4acf408253e7366f30885196ac63e077616270d6 Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期三, 13 三月 2024 11:43:07 +0800 Subject: [PATCH] xg --- src/views/eam/EquipmentCalibrationOrder.vue | 26 ++++- src/views/eam/EquipmentListOfFilesCarousel.vue | 23 ++++ src/views/eam/EquipmentListOfPressureVessel.vue | 23 ++++ src/views/eam/EquipmentListOfRide.vue | 22 ++++ src/views/eam/EquipmentListOfTester.vue | 23 ++++ src/views/eam/EquipmentListOfWeldingMachine.vue | 23 ++++ src/views/eam/EquipmentListOfProduct.vue | 23 ++++ src/views/eam/EquipmentListOfTruck.vue | 23 ++++ src/views/eam/EquipmentListOfMetrological.vue | 23 ++++ src/views/eam/EquipmentListOfEnvProEquipment.vue | 23 ++++ src/views/eam/EquipmentListOfCrane.vue | 24 ++++ src/views/eam/EquipmentListOfAll.vue | 23 ++++ 12 files changed, 253 insertions(+), 26 deletions(-) diff --git a/src/views/eam/EquipmentCalibrationOrder.vue b/src/views/eam/EquipmentCalibrationOrder.vue index 534895d..5b7d464 100644 --- a/src/views/eam/EquipmentCalibrationOrder.vue +++ b/src/views/eam/EquipmentCalibrationOrder.vue @@ -296,6 +296,7 @@ from './modules/equipmentCalibrationOrder/EquipmentCalibrationOrderReportModal' import EquipmentTechnologyStatusModal from './modules/equipmentCalibrationOrder/EquipmentTechnologyStatusModal' import TechnologyStatusAuthenticateModal from './modules/equipmentCalibrationOrder/TechnologyStatusAuthenticateModal' +import { interceptorFunc } from 'vxe-table' export default { name: 'EquipmentCalibrationOrder', @@ -313,6 +314,7 @@ data() { return { description: '鎶�鏈姸鎬侀壌瀹氱鐞�', + disableMixinCreated: true, ipagination: { current: 1, pageSize: 20, @@ -391,11 +393,11 @@ // align: 'center', // dataIndex: 'createBy' // }, - // { - // title: '鍒涘缓鏃ユ湡', - // align: 'center', - // dataIndex: 'createTime' - // }, + { + title: '鍒涘缓鏃ユ湡', + align: 'center', + dataIndex: 'createTime' + }, // { // title: '妫�瀹氫汉', // align: 'center', @@ -438,6 +440,17 @@ importExcelUrl: function () { return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}` } + }, + created() { + //浠庤矾鐢变腑鑾峰彇鏌ヨ鏉′欢 + if (this.$route.query) { + this.queryParam.equipmentId = this.$route.query.equipmentId; + //鏌ヨ鏉′欢鎸夋椂闂村�掑簭 + this.queryParam.sort = 'createTime'; + this.queryParam.order = 'desc'; + } + this.loadData() + this.initDictConfig(); }, methods: { @@ -526,7 +539,8 @@ }, handleFinal(record) { this.$refs.finalModal.edit(record) - } + }, + } } </script> diff --git a/src/views/eam/EquipmentListOfAll.vue b/src/views/eam/EquipmentListOfAll.vue index b1edc06..be76304 100644 --- a/src/views/eam/EquipmentListOfAll.vue +++ b/src/views/eam/EquipmentListOfAll.vue @@ -354,7 +354,15 @@ :customRow="clickThenSelect" @change="handleTableChange" > - +<!-- 鐐瑰嚮鎶�鏈姸鎬佸垪锛岃烦杞埌鎶�鏈姸鎬侀壌瀹氶〉闈� --> + <template + slot="technologyStatus" + slot-scope="text,record" + > + <a + href="javascript:eam/EquipmentCalibrationOrder;" + @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a> + </template> <template slot="htmlSlot" slot-scope="text" @@ -775,6 +783,7 @@ title: '鎶�鏈姸鎬�', align: "center", dataIndex: 'technologyStatus_dictText', + scopedSlots: { customRender: 'technologyStatus' }, }, { title: '鎶�鏈姸鎬侀壌瀹氱被鍨�', @@ -1128,6 +1137,18 @@ handleUpdateKeyEquipment() { this.$refs.keyEquipmentUpdate.add(); }, + //鎶�鏈姸鎬佽烦杞� + handleTechnologyStatus(record) { + //璺敱鏄痚am/EquipmentCalibrationOrder + this.$router.push({ + path: '/eam/EquipmentCalibrationOrder', + query: { + equipmentId: record.id, + technologyStatus: record.technologyStatus, + technologyStatusVerificationType: record.technologyStatusVerificationType, + } + }) + }, } } </script> diff --git a/src/views/eam/EquipmentListOfCrane.vue b/src/views/eam/EquipmentListOfCrane.vue index 3bc8dd3..5b871ca 100644 --- a/src/views/eam/EquipmentListOfCrane.vue +++ b/src/views/eam/EquipmentListOfCrane.vue @@ -314,7 +314,15 @@ :customRow="clickThenSelect" @change="handleTableChange" > - +<!-- 鐐瑰嚮鎶�鏈姸鎬佸垪锛岃烦杞埌鎶�鏈姸鎬侀壌瀹氶〉闈� --> +<template + slot="technologyStatus" + slot-scope="text,record" + > + <a + href="javascript:eam/EquipmentCalibrationOrder;" + @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a> + </template> <template slot="htmlSlot" slot-scope="text" @@ -727,6 +735,7 @@ title: '鎶�鏈姸鎬�', align: "center", dataIndex: 'technologyStatus_dictText', + scopedSlots: { customRender: 'technologyStatus' }, }, { title: '鎶�鏈姸鎬侀壌瀹氱被鍨�', @@ -1081,7 +1090,18 @@ }, handleEditSpareParts(record) { this.$refs.modalFormSpareParts.edit(record); - } + }, + handleTechnologyStatus(record) { + //璺敱鏄痚am/EquipmentCalibrationOrder + this.$router.push({ + path: '/eam/EquipmentCalibrationOrder', + query: { + equipmentId: record.id, + technologyStatus: record.technologyStatus, + technologyStatusVerificationType: record.technologyStatusVerificationType, + } + }) + }, } } diff --git a/src/views/eam/EquipmentListOfEnvProEquipment.vue b/src/views/eam/EquipmentListOfEnvProEquipment.vue index 4d9db75..9362a3d 100644 --- a/src/views/eam/EquipmentListOfEnvProEquipment.vue +++ b/src/views/eam/EquipmentListOfEnvProEquipment.vue @@ -329,7 +329,14 @@ :customRow="clickThenSelect" @change="handleTableChange" > - + <template + slot="technologyStatus" + slot-scope="text,record" + > + <a + href="javascript:eam/EquipmentCalibrationOrder;" + @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a> + </template> <template slot="htmlSlot" slot-scope="text" @@ -749,6 +756,7 @@ title: '鎶�鏈姸鎬�', align: "center", dataIndex: 'technologyStatus_dictText', + scopedSlots: { customRender: 'technologyStatus' }, }, { title: '鎶�鏈姸鎬侀壌瀹氱被鍨�', @@ -1103,7 +1111,18 @@ }, handleEditSpareParts(record) { this.$refs.modalFormSpareParts.edit(record); - } + }, + handleTechnologyStatus(record) { + //璺敱鏄痚am/EquipmentCalibrationOrder + this.$router.push({ + path: '/eam/EquipmentCalibrationOrder', + query: { + equipmentId: record.id, + technologyStatus: record.technologyStatus, + technologyStatusVerificationType: record.technologyStatusVerificationType, + } + }) + }, } } diff --git a/src/views/eam/EquipmentListOfFilesCarousel.vue b/src/views/eam/EquipmentListOfFilesCarousel.vue index 6663501..8cb434e 100644 --- a/src/views/eam/EquipmentListOfFilesCarousel.vue +++ b/src/views/eam/EquipmentListOfFilesCarousel.vue @@ -329,7 +329,14 @@ :customRow="clickThenSelect" @change="handleTableChange" > - + <template + slot="technologyStatus" + slot-scope="text,record" + > + <a + href="javascript:eam/EquipmentCalibrationOrder;" + @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a> + </template> <template slot="htmlSlot" slot-scope="text" @@ -742,6 +749,7 @@ title: '鎶�鏈姸鎬�', align: "center", dataIndex: 'technologyStatus_dictText', + scopedSlots: { customRender: 'technologyStatus' }, }, { title: '鎶�鏈姸鎬侀壌瀹氱被鍨�', @@ -1096,7 +1104,18 @@ }, handleEditSpareParts(record) { this.$refs.modalFormSpareParts.edit(record); - } + }, + handleTechnologyStatus(record) { + //璺敱鏄痚am/EquipmentCalibrationOrder + this.$router.push({ + path: '/eam/EquipmentCalibrationOrder', + query: { + equipmentId: record.id, + technologyStatus: record.technologyStatus, + technologyStatusVerificationType: record.technologyStatusVerificationType, + } + }) + }, } } diff --git a/src/views/eam/EquipmentListOfMetrological.vue b/src/views/eam/EquipmentListOfMetrological.vue index 0cff59c..1910c51 100644 --- a/src/views/eam/EquipmentListOfMetrological.vue +++ b/src/views/eam/EquipmentListOfMetrological.vue @@ -329,7 +329,14 @@ :customRow="clickThenSelect" @change="handleTableChange" > - + <template + slot="technologyStatus" + slot-scope="text,record" + > + <a + href="javascript:eam/EquipmentCalibrationOrder;" + @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a> + </template> <template slot="htmlSlot" slot-scope="text" @@ -742,6 +749,7 @@ title: '鎶�鏈姸鎬�', align: "center", dataIndex: 'technologyStatus_dictText', + scopedSlots: { customRender: 'technologyStatus' }, }, { title: '鎶�鏈姸鎬侀壌瀹氱被鍨�', @@ -1096,7 +1104,18 @@ }, handleEditSpareParts(record) { this.$refs.modalFormSpareParts.edit(record); - } + }, + handleTechnologyStatus(record) { + //璺敱鏄痚am/EquipmentCalibrationOrder + this.$router.push({ + path: '/eam/EquipmentCalibrationOrder', + query: { + equipmentId: record.id, + technologyStatus: record.technologyStatus, + technologyStatusVerificationType: record.technologyStatusVerificationType, + } + }) + }, } } diff --git a/src/views/eam/EquipmentListOfPressureVessel.vue b/src/views/eam/EquipmentListOfPressureVessel.vue index 789cf8e..0ce1f4d 100644 --- a/src/views/eam/EquipmentListOfPressureVessel.vue +++ b/src/views/eam/EquipmentListOfPressureVessel.vue @@ -329,7 +329,14 @@ :customRow="clickThenSelect" @change="handleTableChange" > - + <template + slot="technologyStatus" + slot-scope="text,record" + > + <a + href="javascript:eam/EquipmentCalibrationOrder;" + @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a> + </template> <template slot="htmlSlot" slot-scope="text" @@ -742,6 +749,7 @@ title: '鎶�鏈姸鎬�', align: "center", dataIndex: 'technologyStatus_dictText', + scopedSlots: { customRender: 'technologyStatus' }, }, { title: '鎶�鏈姸鎬侀壌瀹氱被鍨�', @@ -1096,7 +1104,18 @@ }, handleEditSpareParts(record) { this.$refs.modalFormSpareParts.edit(record); - } + }, + handleTechnologyStatus(record) { + //璺敱鏄痚am/EquipmentCalibrationOrder + this.$router.push({ + path: '/eam/EquipmentCalibrationOrder', + query: { + equipmentId: record.id, + technologyStatus: record.technologyStatus, + technologyStatusVerificationType: record.technologyStatusVerificationType, + } + }) + }, } } diff --git a/src/views/eam/EquipmentListOfProduct.vue b/src/views/eam/EquipmentListOfProduct.vue index c6747e3..97148f8 100644 --- a/src/views/eam/EquipmentListOfProduct.vue +++ b/src/views/eam/EquipmentListOfProduct.vue @@ -329,7 +329,14 @@ :customRow="clickThenSelect" @change="handleTableChange" > - + <template + slot="technologyStatus" + slot-scope="text,record" + > + <a + href="javascript:eam/EquipmentCalibrationOrder;" + @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a> + </template> <template slot="htmlSlot" slot-scope="text" @@ -742,6 +749,7 @@ title: '鎶�鏈姸鎬�', align: "center", dataIndex: 'technologyStatus_dictText', + scopedSlots: { customRender: 'technologyStatus' }, }, { title: '鎶�鏈姸鎬侀壌瀹氱被鍨�', @@ -1096,7 +1104,18 @@ }, handleEditSpareParts(record) { this.$refs.modalFormSpareParts.edit(record); - } + }, + handleTechnologyStatus(record) { + //璺敱鏄痚am/EquipmentCalibrationOrder + this.$router.push({ + path: '/eam/EquipmentCalibrationOrder', + query: { + equipmentId: record.id, + technologyStatus: record.technologyStatus, + technologyStatusVerificationType: record.technologyStatusVerificationType, + } + }) + }, } } diff --git a/src/views/eam/EquipmentListOfRide.vue b/src/views/eam/EquipmentListOfRide.vue index 810f4c8..85cae32 100644 --- a/src/views/eam/EquipmentListOfRide.vue +++ b/src/views/eam/EquipmentListOfRide.vue @@ -329,6 +329,14 @@ :customRow="clickThenSelect" @change="handleTableChange" > + <template + slot="technologyStatus" + slot-scope="text,record" + > + <a + href="javascript:eam/EquipmentCalibrationOrder;" + @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a> + </template> <template slot="htmlSlot" @@ -742,6 +750,7 @@ title: '鎶�鏈姸鎬�', align: "center", dataIndex: 'technologyStatus_dictText', + scopedSlots: { customRender: 'technologyStatus' }, }, { title: '鎶�鏈姸鎬侀壌瀹氱被鍨�', @@ -1096,7 +1105,18 @@ }, handleEditSpareParts(record) { this.$refs.modalFormSpareParts.edit(record); - } + }, + handleTechnologyStatus(record) { + //璺敱鏄痚am/EquipmentCalibrationOrder + this.$router.push({ + path: '/eam/EquipmentCalibrationOrder', + query: { + equipmentId: record.id, + technologyStatus: record.technologyStatus, + technologyStatusVerificationType: record.technologyStatusVerificationType, + } + }) + }, } } diff --git a/src/views/eam/EquipmentListOfTester.vue b/src/views/eam/EquipmentListOfTester.vue index 32bf370..b4069a9 100644 --- a/src/views/eam/EquipmentListOfTester.vue +++ b/src/views/eam/EquipmentListOfTester.vue @@ -329,7 +329,14 @@ :customRow="clickThenSelect" @change="handleTableChange" > - + <template + slot="technologyStatus" + slot-scope="text,record" + > + <a + href="javascript:eam/EquipmentCalibrationOrder;" + @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a> + </template> <template slot="htmlSlot" slot-scope="text" @@ -742,6 +749,7 @@ title: '鎶�鏈姸鎬�', align: "center", dataIndex: 'technologyStatus_dictText', + scopedSlots: { customRender: 'technologyStatus' }, }, { title: '鎶�鏈姸鎬侀壌瀹氱被鍨�', @@ -1096,7 +1104,18 @@ }, handleEditSpareParts(record) { this.$refs.modalFormSpareParts.edit(record); - } + }, + handleTechnologyStatus(record) { + //璺敱鏄痚am/EquipmentCalibrationOrder + this.$router.push({ + path: '/eam/EquipmentCalibrationOrder', + query: { + equipmentId: record.id, + technologyStatus: record.technologyStatus, + technologyStatusVerificationType: record.technologyStatusVerificationType, + } + }) + }, } } diff --git a/src/views/eam/EquipmentListOfTruck.vue b/src/views/eam/EquipmentListOfTruck.vue index 0a8ee53..4c33ffe 100644 --- a/src/views/eam/EquipmentListOfTruck.vue +++ b/src/views/eam/EquipmentListOfTruck.vue @@ -329,7 +329,14 @@ :customRow="clickThenSelect" @change="handleTableChange" > - + <template + slot="technologyStatus" + slot-scope="text,record" + > + <a + href="javascript:eam/EquipmentCalibrationOrder;" + @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a> + </template> <template slot="htmlSlot" slot-scope="text" @@ -742,6 +749,7 @@ title: '鎶�鏈姸鎬�', align: "center", dataIndex: 'technologyStatus_dictText', + scopedSlots: { customRender: 'technologyStatus' }, }, { title: '鎶�鏈姸鎬侀壌瀹氱被鍨�', @@ -1096,7 +1104,18 @@ }, handleEditSpareParts(record) { this.$refs.modalFormSpareParts.edit(record); - } + }, + handleTechnologyStatus(record) { + //璺敱鏄痚am/EquipmentCalibrationOrder + this.$router.push({ + path: '/eam/EquipmentCalibrationOrder', + query: { + equipmentId: record.id, + technologyStatus: record.technologyStatus, + technologyStatusVerificationType: record.technologyStatusVerificationType, + } + }) + }, } } diff --git a/src/views/eam/EquipmentListOfWeldingMachine.vue b/src/views/eam/EquipmentListOfWeldingMachine.vue index babd213..1d5b3bf 100644 --- a/src/views/eam/EquipmentListOfWeldingMachine.vue +++ b/src/views/eam/EquipmentListOfWeldingMachine.vue @@ -329,7 +329,14 @@ :customRow="clickThenSelect" @change="handleTableChange" > - + <template + slot="technologyStatus" + slot-scope="text,record" + > + <a + href="javascript:eam/EquipmentCalibrationOrder;" + @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a> + </template> <template slot="htmlSlot" slot-scope="text" @@ -742,6 +749,7 @@ title: '鎶�鏈姸鎬�', align: "center", dataIndex: 'technologyStatus_dictText', + scopedSlots: { customRender: 'technologyStatus' }, }, { title: '鎶�鏈姸鎬侀壌瀹氱被鍨�', @@ -1096,7 +1104,18 @@ }, handleEditSpareParts(record) { this.$refs.modalFormSpareParts.edit(record); - } + }, + handleTechnologyStatus(record) { + //璺敱鏄痚am/EquipmentCalibrationOrder + this.$router.push({ + path: '/eam/EquipmentCalibrationOrder', + query: { + equipmentId: record.id, + technologyStatus: record.technologyStatus, + technologyStatusVerificationType: record.technologyStatusVerificationType, + } + }) + }, } } -- Gitblit v1.9.3