From f7c7b15972be097cdae91cecdea136fd1a60b2b3 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期日, 07 四月 2024 15:02:13 +0800
Subject: [PATCH] 设备台账 必填项修改
---
src/views/eam/modules/equipment/EquipmentAccount2List.vue | 352 ++++++++++++++++++++++++++++++++++++++-------------------
1 files changed, 233 insertions(+), 119 deletions(-)
diff --git a/src/views/eam/modules/equipment/EquipmentAccount2List.vue b/src/views/eam/modules/equipment/EquipmentAccount2List.vue
index 325b2f7..e8231ce 100644
--- a/src/views/eam/modules/equipment/EquipmentAccount2List.vue
+++ b/src/views/eam/modules/equipment/EquipmentAccount2List.vue
@@ -64,6 +64,9 @@
icon="plus"
:hidden="disabled"
>鏂板</a-button>
+ <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+ <a-button type="primary" icon="import">瀵煎叆</a-button>
+ </a-upload>
<a-button
type="primary"
icon="download"
@@ -210,11 +213,11 @@
slot-scope="text, record"
>
<!-- class="table-operation" -->
- <a
+ <!-- <a
href="javascript:;"
@click="equipmentStructuresShow(record)"
>璁惧缁撴瀯</a>
- <a-divider type="vertical" />
+ <a-divider type="vertical" /> -->
<a
href="javascript:;"
@click="handleEdit(record)"
@@ -397,14 +400,9 @@
width: 50,
},
{
- title: '璁惧缂栫爜',
+ title: '缁熶竴缂栫爜',
align: "center",
dataIndex: 'num',
- },
- {
- title: '璧勪骇缂栫爜',
- align: "center",
- dataIndex: 'assetNumber',
},
{
title: '璁惧鍚嶇О',
@@ -412,80 +410,24 @@
dataIndex: 'name',
},
{
- title: '璁惧鍨嬪彿',
+ title: '鍨嬪彿',
align: "center",
dataIndex: 'model',
},
{
- title: '璁惧瑙勬牸',
+ title: '瑙勬牸',
align: "center",
dataIndex: 'specification',
},
- {
- title: '璁惧鐘舵��',
- align: "center",
- dataIndex: 'equipmentStatus_dictText',
- },
- {
- title: '鎶�鏈姸鎬�',
- align: "center",
- dataIndex: 'technologyStatus_dictText',
- },
- {
- title: '鐗圭璁惧',
- align: "center",
- dataIndex: 'specificEquipment',
- },
- {
- title: '鐗圭璁惧',
- align: "center",
- dataIndex: 'sourceId_dictText',
- },
- {
- title: '璁惧鍥剧墖',
- align: "center",
- dataIndex: 'equipmentPhoto',
- scopedSlots: { customRender: 'equipmentPhoto' },
- },
- {
- title: '鍒堕�犲晢',
- align: "center",
- dataIndex: 'constructorId_dictText',
- },
- {
- title: '渚涘簲鍟�',
- align: "center",
- dataIndex: 'supplierId_dictText',
- },
- {
- title: '鍑哄巶缂栧彿',
- align: "center",
- dataIndex: 'factoryNumber',
- },
- {
- title: '鍑哄巶鏃ユ湡',
- align: "center",
- dataIndex: 'leaveFactoryDate',
- },
- {
- title: '楠屾敹鏃ユ湡',
- align: "center",
- dataIndex: 'acceptanceCheckDate',
- },
// {
- // title: '鎵�鏈夌粍缁�',
+ // title: '璧勪骇缂栫爜',
// align: "center",
- // dataIndex: 'affiliationId_dictText',
+ // dataIndex: 'assetNumber',
// },
{
- title: '绠$悊缁勭粐',
+ title: '鎬诲姛鐜�',
align: "center",
- dataIndex: 'manageId_dictText',
- },
- {
- title: '绠$悊浜哄憳',
- align: "center",
- dataIndex: 'manager_dictText',
+ dataIndex: 'gpo',
},
{
title: '浣跨敤閮ㄩ棬',
@@ -493,25 +435,193 @@
dataIndex: 'useId_dictText',
},
{
- title: '璐d换浜�',
+ title: '宸ュ尯',
align: "center",
- dataIndex: 'functionary_dictText',
+ dataIndex: 'equipmentUda1',
},
{
- title: '璐d换鐝粍',
+ title: '缁存姢閮ㄩ棬',
+ align: "center",
+ dataIndex: 'manageId_dictText',
+ },
+ {
+ title: '缁翠慨鐝粍',
align: "center",
dataIndex: 'teamId_dictText',
},
{
- title: '浣嶇疆',
- align: "center",
- dataIndex: 'location',
- },
- {
- title: '閲嶈搴�',
+ title: 'ABC鏍囪瘑',
align: "center",
dataIndex: 'equipmentImportanceId_dictText',
},
+ {
+ title: '鍏抽敭璁惧鏍囪瘑',
+ align: "center",
+ dataIndex: 'keyEquipmentIdentification',
+ },
+ {
+ title: '瀹夊叏閰嶇疆',
+ align: "center",
+ dataIndex: 'securityConfiguration',
+ },
+ {
+ title: '鍐峰嵈绯荤粺',
+ align: "center",
+ dataIndex: 'coolingSystem',
+ },
+ {
+ title: '鐏伀鍣�',
+ align: "center",
+ dataIndex: 'fireExtinguisher',
+ },
+
+ {
+ title: '鐏伀鍣ㄦ湁鏁堟湡',
+ align: "center",
+ dataIndex: 'fireExtinguisherValidityPeriod',
+ },
+ {
+ title: '鎿嶄綔绯荤粺',
+ align: "center",
+ dataIndex: 'operatingSystem',
+ },
+ {
+ title: '绯荤粺',
+ align: "center",
+ dataIndex: 'system',
+ },
+ {
+ title: '璁惧绔彛',
+ align: "center",
+ dataIndex: 'port',
+ },
+ {
+ title: '鍧愭爣鏁伴噺',
+ align: "center",
+ dataIndex: 'coordinateNum',
+ },
+ {
+ title: '璁惧鐘舵��',
+ align: "center",
+ dataIndex: 'equipmentStatus_dictText',
+ },
+ {
+ title: '閲嶉噺',
+ align: "center",
+ dataIndex: 'equipmentUda3',
+ },
+ {
+ title: '閲嶉噺璁¢噺鍗曚綅',
+ align: "center",
+ dataIndex: 'equipmentUda4_dictText',
+ },
+ {
+ title: '鍔熻兘浣嶇疆',
+ align: "center",
+ dataIndex: 'equipmentUda5',
+ },
+ {
+ title: '瀹夎浣嶇疆',
+ align: "center",
+ dataIndex: 'equipmentUda2',
+ },
+ {
+ title: '鍑哄巶鏃ユ湡',
+ align: "center",
+ dataIndex: 'leaveFactoryDate',
+ },
+ {
+ title: '绔嬮」鍗″彿',
+ align: "center",
+ dataIndex: 'projectApprovalNo',
+ },
+ {
+ title: '璧勯噾鏉ユ簮',
+ align: "center",
+ dataIndex: 'fundSource',
+ },
+ {
+ title: '楠屾敹鏃ユ湡',
+ align: "center",
+ dataIndex: 'acceptanceCheckDate',
+ },
+ {
+ title: '鍑哄巶缂栧彿',
+ align: "center",
+ dataIndex: 'factoryNo',
+ },
+ {
+ title: '璧勪骇鍒堕�犲晢',
+ align: "center",
+ dataIndex: 'constructorId_dictText',
+ },
+ {
+ title: '璧勪骇鐨勬潵婧愬浗瀹�',
+ align: "center",
+ dataIndex: 'sourceCountry',
+ },
+ // {
+ // title: '鎶�鏈姸鎬�',
+ // align: "center",
+ // dataIndex: 'technologyStatus_dictText',
+ // },
+ // {
+ // title: '鐗圭璁惧',
+ // align: "center",
+ // dataIndex: 'specificEquipment_dictText',
+ // },
+ // {
+ // title: '璁惧鍥剧墖',
+ // align: "center",
+ // dataIndex: 'equipmentPhoto',
+ // scopedSlots: { customRender: 'equipmentPhoto' },
+ // },
+ // {
+ // title: '渚涘簲鍟�',
+ // align: "center",
+ // dataIndex: 'supplierId_dictText',
+ // },
+ // {
+ // title: '鍑哄巶缂栧彿',
+ // align: "center",
+ // dataIndex: 'factoryNumber',
+ // },
+ // {
+ // title: '鍑哄巶鏃ユ湡',
+ // align: "center",
+ // dataIndex: 'leaveFactoryDate',
+ // },
+ // {
+ // title: '楠屾敹鏃ユ湡',
+ // align: "center",
+ // dataIndex: 'acceptanceCheckDate',
+ // },
+ // // {
+ // // title: '鎵�鏈夌粍缁�',
+ // // align: "center",
+ // // dataIndex: 'affiliationId_dictText',
+ // // },
+
+ // {
+ // title: '绠$悊浜哄憳',
+ // align: "center",
+ // dataIndex: 'manager_dictText',
+ // },
+ // {
+ // title: '浣跨敤閮ㄩ棬',
+ // align: "center",
+ // dataIndex: 'useId_dictText',
+ // },
+ // {
+ // title: '璐d换浜�',
+ // align: "center",
+ // dataIndex: 'functionary_dictText',
+ // },
+ // {
+ // title: '浣嶇疆',
+ // align: "center",
+ // dataIndex: 'location',
+ // },
{
title: '宸ヨ壓鍙傛暟绠$悊',
align: "center",
@@ -523,44 +633,44 @@
align: "center",
dataIndex: 'processParametersTemplateName',
},
- {
- title: '璁惧绮惧害绠$悊',
- align: "center",
- dataIndex: 'precisionParameters',
- scopedSlots: { customRender: 'precisionParameters' },
- },
- {
- title: '绮惧害鍙傛暟妯℃澘',
- align: "center",
- dataIndex: 'precisionParametersTemplateName',
- },
- {
- title: '妫�瀹氱鐞�',
- align: "center",
- dataIndex: 'verification',
- scopedSlots: { customRender: 'verification' },
- },
- {
- title: '妫�瀹氬懆鏈�/鏈�',
- align: "center",
- dataIndex: 'verificationPeriod',
- },
- {
- title: '涓婃妫�瀹氭棩鏈�',
- align: "center",
- dataIndex: 'lastVerificationDate',
- },
- {
- title: '涓嬫妫�瀹氭棩鏈�',
- align: "center",
- dataIndex: 'nextVerificationDate',
- },
// {
- // title: '鐘舵��',
- // align: 'center',
- // dataIndex: 'status',
- // width: 100,
+ // title: '璁惧绮惧害绠$悊',
+ // align: "center",
+ // dataIndex: 'precisionParameters',
+ // scopedSlots: { customRender: 'precisionParameters' },
// },
+ // {
+ // title: '绮惧害鍙傛暟妯℃澘',
+ // align: "center",
+ // dataIndex: 'precisionParametersTemplateName',
+ // },
+ // // {
+ // // title: '妫�瀹氱鐞�',
+ // // align: "center",
+ // // dataIndex: 'verification',
+ // // scopedSlots: { customRender: 'verification' },
+ // // },
+ // // {
+ // // title: '妫�瀹氬懆鏈�/鏈�',
+ // // align: "center",
+ // // dataIndex: 'verificationPeriod',
+ // // },
+ // // {
+ // // title: '涓婃妫�瀹氭棩鏈�',
+ // // align: "center",
+ // // dataIndex: 'lastVerificationDate',
+ // // },
+ // // {
+ // // title: '涓嬫妫�瀹氭棩鏈�',
+ // // align: "center",
+ // // dataIndex: 'nextVerificationDate',
+ // // },
+ // // {
+ // // title: '鐘舵��',
+ // // align: 'center',
+ // // dataIndex: 'status',
+ // // width: 100,
+ // // },
{
title: '澶囨敞',
align: "center",
@@ -583,6 +693,7 @@
deleteBatch: "/eam/equipment/deleteBatch",
active: "/eam/equipment/active",
exportXlsUrl: '/eam/equipment/exportXls',
+ importExcelUrl: "/eam/equipment/importExcel",
// importExcelUrl: 'base/site/importExcel',
},
//鏂板銆佺紪杈戙�佸垹闄ゃ�佹壒閲忓垹闄ゆ搷浣滄敼鍙樻暟鎹悗鍒锋柊鍏宠仈鐨勭粍浠剁殑鐩戝惉灞炴��
@@ -611,6 +722,9 @@
selectedRowKeys: this.selectedRowKeys,
};
},
+ importExcelUrl: function(){
+ return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+ }
},
methods: {
@@ -746,7 +860,7 @@
}
this.selectedRowKeys = []
this.selectionRows = []
- this.$refs.ProcessParametersList.equipmentId = '-1'
+ // this.$refs.ProcessParametersList.equipmentId = '-1'
this.$refs.PrecisionParametersList.equipmentId = '-1'
this.$refs.EquipmentFileList.equipmentId = '-1'
this.loadData(1);
@@ -755,7 +869,7 @@
searchQuery() {
this.selectedRowKeys = []
this.selectionRows = []
- this.$refs.ProcessParametersList.equipmentId = '-1'
+ // this.$refs.ProcessParametersList.equipmentId = '-1'
this.$refs.PrecisionParametersList.equipmentId = '-1'
this.$refs.EquipmentFileList.equipmentId = '-1'
this.loadData(1);
@@ -767,7 +881,7 @@
//娓呯┖鍒楄〃閫変腑
this.onClearSelected()
- this.$refs.ProcessParametersList.equipmentId = '-1'
+ // this.$refs.ProcessParametersList.equipmentId = '-1'
this.$refs.PrecisionParametersList.equipmentId = '-1'
this.$refs.EquipmentFileList.equipmentId = '-1'
},
@@ -789,7 +903,7 @@
}
this.selectedRowKeys = []
this.selectionRows = []
- this.$refs.ProcessParametersList.equipmentId = '-1'
+ // this.$refs.ProcessParametersList.equipmentId = '-1'
this.$refs.PrecisionParametersList.equipmentId = '-1'
this.$refs.EquipmentFileList.equipmentId = '-1'
this.loadData(1);
--
Gitblit v1.9.3