From b985c8401c3cd06d4ac6631979f4ffcdb1f81a92 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 19 Jun 2024 10:25:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E7=BB=8F=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/repairExperience/index.ts | 49 ++++ src/components/BasicForm/src/BasicForm.vue | 6 +- src/components/Crontab/src/Crontab.vue | 10 +- src/utils/disposition/defaultButtons.ts | 12 + .../eam/equipmentRepairRecordMain/index.vue | 155 +++++++---- src/views/eam/repairExperience/index.vue | 244 ++++++++++++++++++ .../repairExperience/repairExperience.data.ts | 109 ++++++++ 7 files changed, 534 insertions(+), 51 deletions(-) create mode 100644 src/api/eam/repairExperience/index.ts create mode 100644 src/views/eam/repairExperience/index.vue create mode 100644 src/views/eam/repairExperience/repairExperience.data.ts diff --git a/src/api/eam/repairExperience/index.ts b/src/api/eam/repairExperience/index.ts new file mode 100644 index 000000000..5433a47c8 --- /dev/null +++ b/src/api/eam/repairExperience/index.ts @@ -0,0 +1,49 @@ +import request from '@/config/axios' + +export interface RepairExperienceVO { + id: number + name: string + content: string + repairNumber: string +} + +// 查询维修经验记录列表 +export const getRepairExperiencePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/record/repair-experience/senior', data }) + } else { + return await request.get({ url: `/record/repair-experience/page`, params }) + } +} + +// 查询维修经验记录详情 +export const getRepairExperience = async (id: number) => { + return await request.get({ url: `/record/repair-experience/get?id=` + id }) +} + +// 新增维修经验记录 +export const createRepairExperience = async (data: RepairExperienceVO) => { + return await request.post({ url: `/record/repair-experience/create`, data }) +} + +// 修改维修经验记录 +export const updateRepairExperience = async (data: RepairExperienceVO) => { + return await request.put({ url: `/record/repair-experience/update`, data }) +} + +// 删除维修经验记录 +export const deleteRepairExperience = async (id: number) => { + return await request.delete({ url: `/record/repair-experience/delete?id=` + id }) +} + +// 导出维修经验记录 Excel +export const exportRepairExperience = async (params) => { + return await request.download({ url: `/record/repair-experience/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/record/repair-experience/get-import-template' }) +} \ No newline at end of file diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 0bf3d3ee8..b035c9df6 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -22,8 +22,9 @@ @onBlur="onBlur" @onEnter="onEnter" > -