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 @@ + + + + + + + + + +