From 2703a0537fbe44b036d50223f64d8a63521f3dd2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E5=AE=8F=E6=96=8C?= <2164406372@qq.com>
Date: Fri, 5 Dec 2025 10:49:51 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=BC=E5=87=BA=E6=98=8E?=
=?UTF-8?q?=E7=BB=86=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/eam/eamMaintenanceModel.vue | 323 ++++++++++++++++++
src/views/modules/eam/eamPropertiesModel.vue | 323 ++++++++++++++++++
2 files changed, 646 insertions(+)
diff --git a/src/views/modules/eam/eamMaintenanceModel.vue b/src/views/modules/eam/eamMaintenanceModel.vue
index e688ba6..3c0c8e2 100644
--- a/src/views/modules/eam/eamMaintenanceModel.vue
+++ b/src/views/modules/eam/eamMaintenanceModel.vue
@@ -42,6 +42,7 @@
查询
新增
{{'导出'}}
+ {{'导出明细'}}
@@ -807,6 +808,314 @@
columnWidth: 70,
},
],
+ columnExport: [
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1BuDesc',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'buDesc',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: 'BU',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 100,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1CodeNo',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'codeNo',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '维保模板编码',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 120,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1CodeDesc',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'codeDesc',
+ headerAlign: "center",
+ align: "left",
+ columnLabel: '维保模板名称',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 200,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1Active',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'active',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '在用',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 100,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1IsUse',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'isUse',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '是否被用',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 100,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1CreatedDate',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'createdDate',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '创建时间',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 170,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1CreatedBy',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'createdBy',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '创建人',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 100,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1UpdateDate',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'updateDate',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '更新时间',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 170,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1UpdateBy',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'updateBy',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '更新人',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 100,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2ItemNo',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'itemNo',
+ headerAlign: "center",
+ align: "left",
+ columnLabel: '维保项目编码',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 82,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2ItemDesc',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'itemDesc',
+ headerAlign: "center",
+ align: "left",
+ columnLabel: '维保项目名称',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth:106,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2ItemRemark',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'itemRemark',
+ headerAlign: "center",
+ align: "left",
+ columnLabel: '维保方法说明',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 298,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2ValueType',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'valueType',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '检测值类型',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 70,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2DefaultValue',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'defaultValue',
+ headerAlign: "center",
+ align: "right",
+ columnLabel: '参照值',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 65,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2MaxValue',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'maxValue',
+ headerAlign: "center",
+ align: "right",
+ columnLabel: '最大值',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 65,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2MinValue',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'minValue',
+ headerAlign: "center",
+ align: "right",
+ columnLabel: '最小值',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 65,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2ValueChooseFlag',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'valueChooseFlag',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '是否值可选',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 70,
+ }
+ ],
levelList: [],
chooseModalData: {
site: '',
@@ -993,6 +1302,20 @@
dropColumns: [],//需要剔除的列,例如dropColumns: ["netWeight"],即剔除净重列
});
},
+ async exportDetailExcel() {
+ this.searchData.limit = -1
+ this.searchData.page = 1
+ excel.exportTable({
+ url: "/pms/eam/exportEamPropertiesTemplateAndItem",
+ columnMapping: this.columnExport,//可以直接用table,不需要的列就剔除
+ mergeSetting: [],//需要合并的列
+ params: this.searchData,
+ fileName: this.exportName+".xlsx",
+ rowFetcher: res => res.data,
+ columnFormatter: [],
+ dropColumns: [],//需要剔除的列,例如dropColumns: ["netWeight"],即剔除净重列
+ });
+ },
//导出excel
// async createExportData () {
diff --git a/src/views/modules/eam/eamPropertiesModel.vue b/src/views/modules/eam/eamPropertiesModel.vue
index 7dda42b..891436f 100644
--- a/src/views/modules/eam/eamPropertiesModel.vue
+++ b/src/views/modules/eam/eamPropertiesModel.vue
@@ -42,6 +42,7 @@
查询
新增
{{'导出'}}
+ {{'导出明细'}}
@@ -784,6 +785,314 @@
columnWidth: 80,
},
],
+ columnExport: [
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1BuDesc',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'buDesc',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: 'BU',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 100,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1CodeNo',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'codeNo',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '维保模板编码',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 120,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1CodeDesc',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'codeDesc',
+ headerAlign: "center",
+ align: "left",
+ columnLabel: '维保模板名称',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 200,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1Active',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'active',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '在用',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 100,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1IsUse',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'isUse',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '是否被用',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 100,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1CreatedDate',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'createdDate',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '创建时间',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 170,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1CreatedBy',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'createdBy',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '创建人',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 100,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1UpdateDate',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'updateDate',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '更新时间',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 170,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table1UpdateBy',
+ tableId: "101003002Table1",
+ tableName: "维保模板表",
+ columnProp: 'updateBy',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '更新人',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 100,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2ItemNo',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'itemNo',
+ headerAlign: "center",
+ align: "left",
+ columnLabel: '维保项目编码',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 82,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2ItemDesc',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'itemDesc',
+ headerAlign: "center",
+ align: "left",
+ columnLabel: '维保项目名称',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth:106,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2ItemRemark',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'itemRemark',
+ headerAlign: "center",
+ align: "left",
+ columnLabel: '维保方法说明',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 298,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2ValueType',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'valueType',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '检测值类型',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 70,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2DefaultValue',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'defaultValue',
+ headerAlign: "center",
+ align: "right",
+ columnLabel: '参照值',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 65,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2MaxValue',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'maxValue',
+ headerAlign: "center",
+ align: "right",
+ columnLabel: '最大值',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 65,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2MinValue',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'minValue',
+ headerAlign: "center",
+ align: "right",
+ columnLabel: '最小值',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 65,
+ },
+ {
+ userId: this.$store.state.user.name,
+ functionId: 101003002,
+ serialNumber: '101003002Table2ValueChooseFlag',
+ tableId: "101003002Table2",
+ tableName: "维保项目表",
+ columnProp: 'valueChooseFlag',
+ headerAlign: "center",
+ align: "center",
+ columnLabel: '是否值可选',
+ columnHidden: false,
+ columnImage: false,
+ columnSortable: false,
+ sortLv: 0,
+ status: true,
+ fixed: '',
+ columnWidth: 70,
+ }
+ ],
levelList: [],
chooseModalData: {
site: '',
@@ -969,6 +1278,20 @@
dropColumns: [],//需要剔除的列,例如dropColumns: ["netWeight"],即剔除净重列
});
},
+ async exportDetailExcel() {
+ this.searchData.limit = -1
+ this.searchData.page = 1
+ excel.exportTable({
+ url: "/pms/eam/exportEamPropertiesTemplateAndItem",
+ columnMapping: this.columnExport,//可以直接用table,不需要的列就剔除
+ mergeSetting: [],//需要合并的列
+ params: this.searchData,
+ fileName: this.exportName+".xlsx",
+ rowFetcher: res => res.data,
+ columnFormatter: [],
+ dropColumns: [],//需要剔除的列,例如dropColumns: ["netWeight"],即剔除净重列
+ });
+ },
//导出excel
// async createExportData () {