From ad78578ae893565ff723a22c3e2a165d5ccf534d Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期六, 18 十一月 2023 12:33:08 +0800 Subject: [PATCH] 维修工单 --- src/views/eam/DailyInspectionStandardList.vue | 53 +++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 39 insertions(+), 14 deletions(-) diff --git a/src/views/eam/DailyInspectionStandardList.vue b/src/views/eam/DailyInspectionStandardList.vue index fea9f15..463d03b 100644 --- a/src/views/eam/DailyInspectionStandardList.vue +++ b/src/views/eam/DailyInspectionStandardList.vue @@ -1,6 +1,6 @@ <template> <a-card - title="鏃ュ父鐐规" + title="鑷富缁存姢鐐规鏍囧噯" :bordered='false' > <div class='table-page-search-wrapper'> @@ -66,7 +66,11 @@ @click='handleAdd' type='primary' icon='plus' + v-has="'dailyInspectionStandard:add'" >鏂板</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" @click="searchQuery" @@ -98,7 +102,7 @@ size='middle' bordered rowKey='id' - :scroll="{ x: 'calc(1400px + 50%)', y: 900 }" + :scroll="{ x: 'calc(1600px + 50%)', y: 900 }" :columns='columns' :dataSource='dataSource' :pagination='ipagination' @@ -137,22 +141,26 @@ <a v-if="record.versionStatus == '2'" @click="handleRevise(record)" + v-has="'dailyInspectionStandard:revise'" >鍗囩増</a> <a-divider type="vertical" /> <a v-if="record.versionStatus == '1'" @click="handleTakeEffect(record)" + v-has="'dailyInspectionStandard:takeEffect'" >鐢熸晥</a> <a-divider type="vertical" /> <a v-if="record.versionStatus == '1'" @click="handleEdit(record)" + v-has="'dailyInspectionStandard:edit'" >缂栬緫</a> <a-divider type="vertical" /> <a-popconfirm v-if="record.versionStatus == '1'" title="纭畾鍒犻櫎鍚�?" @confirm="() => handleDelete(record.id)" + v-has="'dailyInspectionStandard:delete'" > <a>鍒犻櫎</a> </a-popconfirm> @@ -211,28 +219,19 @@ return parseInt(index) + 1 } }, - { - title: '鐗堟湰', - align: 'center', - dataIndex: 'version', - }, - { - title: '鐗堟湰鐘舵��', - align: 'center', - dataIndex: 'versionStatusName', - }, + { title: '鏍囧噯缂栫爜', align: 'center', dataIndex: 'num', }, { - title: '瀵硅薄閮ㄩ棬', + title: '浣跨敤閮ㄩ棬', align: 'center', dataIndex: 'useDepartName', }, { - title: '璁惧缂栫爜', + title: '缁熶竴缂栫爜', align: 'center', dataIndex: 'equipmentNum', }, @@ -255,6 +254,26 @@ title: '娲惧伐鏂瑰紡', align: 'center', dataIndex: 'assignModeName', + }, + // { + // title: '鐢熸晥鏃堕棿', + // align: 'center', + // dataIndex: 'takeEffectTime', + // }, + // { + // title: '澶辨晥鏃堕棿', + // align: 'center', + // dataIndex: 'loseEfficacyTime', + // }, + { + title: '鐗堟湰', + align: 'center', + dataIndex: 'version', + }, + { + title: '鐗堟湰鐘舵��', + align: 'center', + dataIndex: 'versionStatusName', }, { title: '鍒涘缓浜�', @@ -290,6 +309,7 @@ delete: '/eam/inspectionStandard/delete', deleteBatch: '/eam/inspectionStandard/deleteBatch', versionTakeEffect: "/eam/inspectionStandard/versionTakeEffect", + importExcelUrl: "/eam/inspectionStandard/importExcel", }, version: '1.0', dictOptions: {}, @@ -308,6 +328,11 @@ inspectionStandardId: '-1' } }, + computed: { + importExcelUrl: function(){ + return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; + } + }, methods: { clickThenSelect(record) { return { -- Gitblit v1.9.3