From 981294241d5d4c1dc80f3e5ba2510347f2243494 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Mon, 15 Apr 2024 09:24:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=85=BB=E9=A1=B9=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/basic/deviceMaintenance/index.ts | 4 +- .../eam/basic/deviceMoldItemsHistory/index.ts | 60 +++++ src/api/eam/basic/inspection/index.ts | 4 +- src/api/eam/basic/moldMaintenance/index.ts | 4 +- .../eam/basic/deviceMaintenance/index.vue | 111 +++++++- .../deviceMoldItemsHistory.data.ts | 158 ++++++++++++ .../basic/deviceMoldItemsHistory/index.vue | 244 ++++++++++++++++++ .../eam/basic/fixedAssets/fixedAssets.data.ts | 3 + src/views/eam/basic/inspection/index.vue | 104 +++++++- src/views/eam/basic/moldMaintenance/index.vue | 100 ++++++- .../deviceMaintainOrderMain.data.ts | 22 +- .../eam/device/devicemaintainjob/index.vue | 4 +- 12 files changed, 774 insertions(+), 44 deletions(-) create mode 100644 src/api/eam/basic/deviceMoldItemsHistory/index.ts create mode 100644 src/views/eam/basic/deviceMoldItemsHistory/deviceMoldItemsHistory.data.ts create mode 100644 src/views/eam/basic/deviceMoldItemsHistory/index.vue diff --git a/src/api/eam/basic/deviceMaintenance/index.ts b/src/api/eam/basic/deviceMaintenance/index.ts index 2b4a946..85247fe 100644 --- a/src/api/eam/basic/deviceMaintenance/index.ts +++ b/src/api/eam/basic/deviceMaintenance/index.ts @@ -49,8 +49,8 @@ export const updateDeviceMoldItems = async (data: DeviceMoldItemsVO) => { } // 删除项记录表(设备 模具 保养 维修 巡检点检) -export const deleteDeviceMoldItems = async (id: number) => { - return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id }) +export const deleteDeviceMoldItems = async (id: number,remark: string) => { + return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id + `&remark=` + remark }) } // 导出项记录表(设备 模具 保养 维修 巡检点检) Excel diff --git a/src/api/eam/basic/deviceMoldItemsHistory/index.ts b/src/api/eam/basic/deviceMoldItemsHistory/index.ts new file mode 100644 index 0000000..10c620e --- /dev/null +++ b/src/api/eam/basic/deviceMoldItemsHistory/index.ts @@ -0,0 +1,60 @@ +import request from '@/config/axios' + +export interface DeviceMoldItemsHistoryVO { + id: number + name: string + deviceNumber: string + executionCycle: string + equipmentParts: string + type: string + status: string + peoples: number + estimatedMinutes: number + remark: string + siteId: string + available: string + concurrencyStamp: number + peopleNum: number + maintenanceTime: number +} + +// 查询项记录历史表(设备 模具 保养 维修 巡检点检)列表 +export const getDeviceMoldItemsHistoryPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/record/device-mold-items-history/senior', data }) + } else { + return await request.get({ url: `/record/device-mold-items-history/page`, params }) + } +} + +// 查询项记录历史表(设备 模具 保养 维修 巡检点检)详情 +export const getDeviceMoldItemsHistory = async (id: number) => { + return await request.get({ url: `/record/device-mold-items-history/get?id=` + id }) +} + +// 新增项记录历史表(设备 模具 保养 维修 巡检点检) +export const createDeviceMoldItemsHistory = async (data: DeviceMoldItemsHistoryVO) => { + return await request.post({ url: `/record/device-mold-items-history/create`, data }) +} + +// 修改项记录历史表(设备 模具 保养 维修 巡检点检) +export const updateDeviceMoldItemsHistory = async (data: DeviceMoldItemsHistoryVO) => { + return await request.put({ url: `/record/device-mold-items-history/update`, data }) +} + +// 删除项记录历史表(设备 模具 保养 维修 巡检点检) +export const deleteDeviceMoldItemsHistory = async (id: number) => { + return await request.delete({ url: `/record/device-mold-items-history/delete?id=` + id }) +} + +// 导出项记录历史表(设备 模具 保养 维修 巡检点检) Excel +export const exportDeviceMoldItemsHistory = async (params) => { + return await request.download({ url: `/record/device-mold-items-history/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/record/device-mold-items-history/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/basic/inspection/index.ts b/src/api/eam/basic/inspection/index.ts index c1eaafb..13b2ebc 100644 --- a/src/api/eam/basic/inspection/index.ts +++ b/src/api/eam/basic/inspection/index.ts @@ -49,8 +49,8 @@ export const updateDeviceMoldItems = async (data: DeviceMoldItemsVO) => { } // 删除项记录表(设备 模具 保养 维修 巡检点检) -export const deleteDeviceMoldItems = async (id: number) => { - return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id }) +export const deleteDeviceMoldItems = async (id: number, remark: string) => { + return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id + `&remark=` + remark }) } // 导出项记录表(设备 模具 保养 维修 巡检点检) Excel diff --git a/src/api/eam/basic/moldMaintenance/index.ts b/src/api/eam/basic/moldMaintenance/index.ts index 058610a..4a1fdbc 100644 --- a/src/api/eam/basic/moldMaintenance/index.ts +++ b/src/api/eam/basic/moldMaintenance/index.ts @@ -49,8 +49,8 @@ export const updateDeviceMoldItems = async (data: DeviceMoldItemsVO) => { } // 删除项记录表(设备 模具 保养 维修 巡检点检) -export const deleteDeviceMoldItems = async (id: number) => { - return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id }) +export const deleteDeviceMoldItems = async (id: number, remark: string) => { + return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id + `&remark=` + remark }) } // 导出项记录表(设备 模具 保养 维修 巡检点检) Excel diff --git a/src/views/eam/basic/deviceMaintenance/index.vue b/src/views/eam/basic/deviceMaintenance/index.vue index ca0574d..31f473a 100644 --- a/src/views/eam/basic/deviceMaintenance/index.vue +++ b/src/views/eam/basic/deviceMaintenance/index.vue @@ -54,6 +54,33 @@ + + + + + + + + + diff --git a/src/views/eam/basic/fixedAssets/fixedAssets.data.ts b/src/views/eam/basic/fixedAssets/fixedAssets.data.ts index 2f172f0..9ed3285 100644 --- a/src/views/eam/basic/fixedAssets/fixedAssets.data.ts +++ b/src/views/eam/basic/fixedAssets/fixedAssets.data.ts @@ -138,6 +138,9 @@ export const FixedAssets = useCrudSchemas(reactive([ table: { width: '150', }, + formatter: (_: Recordable, __: TableColumn, cellValue: number) => { + return supplierList.find((account) => account.number == cellValue)?.name + }, form:{ component: 'Select', componentProps: { diff --git a/src/views/eam/basic/inspection/index.vue b/src/views/eam/basic/inspection/index.vue index d6fc1b2..5a9a669 100644 --- a/src/views/eam/basic/inspection/index.vue +++ b/src/views/eam/basic/inspection/index.vue @@ -53,6 +53,34 @@ + + + + + + + + + +