diff --git a/.gitignore b/.gitignore index 09d8698..73dfd29 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,4 @@ pnpm-debug auto-*.d.ts .idea .history -/eam/ -/eam -eam .vscode/ diff --git a/src/api/eam/basic/moldMilestone/index.ts b/src/api/eam/basic/moldMilestone/index.ts new file mode 100644 index 0000000..4322b0d --- /dev/null +++ b/src/api/eam/basic/moldMilestone/index.ts @@ -0,0 +1,53 @@ +import request from '@/config/axios' + +export interface MoldMilestoneVO { + id: number + number: string + moldNumber: string + milestoneStage: string + milestoneDate: localdate + siteId: string + available: string + concurrencyStamp: number +} + +// 查询模具里程碑列表 +export const getMoldMilestonePage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/basic/mold-milestone/senior', data }) + } else { + return await request.get({ url: `/basic/mold-milestone/page`, params }) + } +} + +// 查询模具里程碑详情 +export const getMoldMilestone = async (id: number) => { + return await request.get({ url: `/basic/mold-milestone/get?id=` + id }) +} + +// 新增模具里程碑 +export const createMoldMilestone = async (data: MoldMilestoneVO) => { + return await request.post({ url: `/basic/mold-milestone/create`, data }) +} + +// 修改模具里程碑 +export const updateMoldMilestone = async (data: MoldMilestoneVO) => { + return await request.put({ url: `/basic/mold-milestone/update`, data }) +} + +// 删除模具里程碑 +export const deleteMoldMilestone = async (id: number) => { + return await request.delete({ url: `/basic/mold-milestone/delete?id=` + id }) +} + +// 导出模具里程碑 Excel +export const exportMoldMilestone = async (params) => { + return await request.download({ url: `/basic/mold-milestone/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/basic/mold-milestone/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/device/deviceMaintainOrderDetail/index.ts b/src/api/eam/device/deviceMaintainOrderDetail/index.ts new file mode 100644 index 0000000..71c8b9e --- /dev/null +++ b/src/api/eam/device/deviceMaintainOrderDetail/index.ts @@ -0,0 +1,60 @@ +import request from '@/config/axios' + +export interface DeviceMaintainOrderDetailVO { + id: number + siteId: string + available: string + concurrencyStamp: number + name: string + number: string + peoples: number + estimatedMinutes: number + actualMinutes: number + chargePeoples: string + completionTime: Date + engineer: string + uncompleted: string + status: string + contents: string +} + +// 查询保养工单子列表 +export const getDeviceMaintainOrderDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-maintain-order-detail/senior', data }) + } else { + return await request.get({ url: `/eam/device-maintain-order-detail/page`, params }) + } +} + +// 查询保养工单子详情 +export const getDeviceMaintainOrderDetail = async (id: number) => { + return await request.get({ url: `/eam/device-maintain-order-detail/get?id=` + id }) +} + +// 新增保养工单子 +export const createDeviceMaintainOrderDetail = async (data: DeviceMaintainOrderDetailVO) => { + return await request.post({ url: `/eam/device-maintain-order-detail/create`, data }) +} + +// 修改保养工单子 +export const updateDeviceMaintainOrderDetail = async (data: DeviceMaintainOrderDetailVO) => { + return await request.put({ url: `/eam/device-maintain-order-detail/update`, data }) +} + +// 删除保养工单子 +export const deleteDeviceMaintainOrderDetail = async (id: number) => { + return await request.delete({ url: `/eam/device-maintain-order-detail/delete?id=` + id }) +} + +// 导出保养工单子 Excel +export const exportDeviceMaintainOrderDetail = async (params) => { + return await request.download({ url: `/eam/device-maintain-order-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-maintain-order-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/device/deviceSpotInspectionRecordDetail/index.ts b/src/api/eam/device/deviceSpotInspectionRecordDetail/index.ts new file mode 100644 index 0000000..f9650b2 --- /dev/null +++ b/src/api/eam/device/deviceSpotInspectionRecordDetail/index.ts @@ -0,0 +1,54 @@ +import request from '@/config/axios' + +export interface DeviceSpotInspectionRecordDetailVO { + id: number + number: string + isConform: string + siteId: string + available: string + concurrencyStamp: number + masterId: number + name: string + equipmentPosition: string +} + +// 查询巡检点检记录子列表 +export const getDeviceSpotInspectionRecordDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-spot-inspection-record-detail/senior', data }) + } else { + return await request.get({ url: `/eam/device-spot-inspection-record-detail/page`, params }) + } +} + +// 查询巡检点检记录子详情 +export const getDeviceSpotInspectionRecordDetail = async (id: number) => { + return await request.get({ url: `/eam/device-spot-inspection-record-detail/get?id=` + id }) +} + +// 新增巡检点检记录子 +export const createDeviceSpotInspectionRecordDetail = async (data: DeviceSpotInspectionRecordDetailVO) => { + return await request.post({ url: `/eam/device-spot-inspection-record-detail/create`, data }) +} + +// 修改巡检点检记录子 +export const updateDeviceSpotInspectionRecordDetail = async (data: DeviceSpotInspectionRecordDetailVO) => { + return await request.put({ url: `/eam/device-spot-inspection-record-detail/update`, data }) +} + +// 删除巡检点检记录子 +export const deleteDeviceSpotInspectionRecordDetail = async (id: number) => { + return await request.delete({ url: `/eam/device-spot-inspection-record-detail/delete?id=` + id }) +} + +// 导出巡检点检记录子 Excel +export const exportDeviceSpotInspectionRecordDetail = async (params) => { + return await request.download({ url: `/eam/device-spot-inspection-record-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-spot-inspection-record-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/mold/moldInspectionDetail/index.ts b/src/api/eam/mold/moldInspectionDetail/index.ts new file mode 100644 index 0000000..2c1eb8c --- /dev/null +++ b/src/api/eam/mold/moldInspectionDetail/index.ts @@ -0,0 +1,58 @@ +import request from '@/config/axios' + +export interface MoldInspectionDetailVO { + id: number + number: string + siteId: string + available: string + concurrencyStamp: number + name: string + peoples: string + estimatedMinutes: number + actualMinutes: number + chargePeoples: string + completionTime: Date + engineer: string + uncompleted: string +} + +// 查询检修工单子列表 +export const getMoldInspectionDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-inspection-detail/senior', data }) + } else { + return await request.get({ url: `/eam/device-inspection-detail/page`, params }) + } +} + +// 查询检修工单子详情 +export const getMoldInspectionDetail = async (id: number) => { + return await request.get({ url: `/eam/device-inspection-detail/get?id=` + id }) +} + +// 新增检修工单子 +export const createMoldInspectionDetail = async (data: MoldInspectionDetailVO) => { + return await request.post({ url: `/eam/device-inspection-detail/create`, data }) +} + +// 修改检修工单子 +export const updateMoldInspectionDetail = async (data: MoldInspectionDetailVO) => { + return await request.put({ url: `/eam/device-inspection-detail/update`, data }) +} + +// 删除检修工单子 +export const deleteMoldInspectionDetail = async (id: number) => { + return await request.delete({ url: `/eam/device-inspection-detail/delete?id=` + id }) +} + +// 导出检修工单子 Excel +export const exportMoldInspectionDetail = async (params) => { + return await request.download({ url: `/eam/device-inspection-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-inspection-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/mold/moldMaintainOrderDetail/index.ts b/src/api/eam/mold/moldMaintainOrderDetail/index.ts new file mode 100644 index 0000000..e7e78d1 --- /dev/null +++ b/src/api/eam/mold/moldMaintainOrderDetail/index.ts @@ -0,0 +1,60 @@ +import request from '@/config/axios' + +export interface MoldMaintainOrderDetailVO { + id: number + siteId: string + available: string + concurrencyStamp: number + name: string + number: string + peoples: number + estimatedMinutes: number + actualMinutes: number + chargePeoples: string + completionTime: Date + engineer: string + uncompleted: string + status: string + contents: string +} + +// 查询保养工单子列表 +export const getMoldMaintainOrderDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/device-maintain-order-detail/senior', data }) + } else { + return await request.get({ url: `/eam/device-maintain-order-detail/page`, params }) + } +} + +// 查询保养工单子详情 +export const getMoldMaintainOrderDetail = async (id: number) => { + return await request.get({ url: `/eam/device-maintain-order-detail/get?id=` + id }) +} + +// 新增保养工单子 +export const createMoldMaintainOrderDetail = async (data: MoldMaintainOrderDetailVO) => { + return await request.post({ url: `/eam/device-maintain-order-detail/create`, data }) +} + +// 修改保养工单子 +export const updateMoldMaintainOrderDetail = async (data: MoldMaintainOrderDetailVO) => { + return await request.put({ url: `/eam/device-maintain-order-detail/update`, data }) +} + +// 删除保养工单子 +export const deleteMoldMaintainOrderDetail = async (id: number) => { + return await request.delete({ url: `/eam/device-maintain-order-detail/delete?id=` + id }) +} + +// 导出保养工单子 Excel +export const exportMoldMaintainOrderDetail = async (params) => { + return await request.download({ url: `/eam/device-maintain-order-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/device-maintain-order-detail/get-import-template' }) +} \ No newline at end of file diff --git a/src/api/eam/mold/moldMaintenanceDetail/index.ts b/src/api/eam/mold/moldMaintenanceDetail/index.ts new file mode 100644 index 0000000..9bbff2b --- /dev/null +++ b/src/api/eam/mold/moldMaintenanceDetail/index.ts @@ -0,0 +1,51 @@ +import request from '@/config/axios' + +export interface MoldMaintenanceDetailVO { +  describes: string +  describes1: string +  workOut: string +  maintenances: string +} + +// 查询维修工单子列表 +export const getMoldMaintenanceDetailPage = async (params) => { +  if (params.isSearch) { +    delete params.isSearch +    const data = {...params} +    return await request.post({ url: '/wms/purchasereceipt-request-detail/senior', data }) +  } else { +    return await request.get({ url: `/eam/device-maintenance-detail/page`, params }) +  } +} + +// 查询维修工单子详情 +export const getPurchasereceiptRequestDetail = async (id) => { +  return await request.get({ url: `/eam/device-maintenance-detail/selectListByNumber?id=` + id }) +} + +// 新增维修工单子 +export const createMoldMaintenanceDetail = async (data: MoldMaintenanceDetailVO) => { +  return await request.post({ url: `/eam/device-maintenance-detail/create`, data }) +} + +// 修改维修工单子 +export const updateMoldMaintenanceDetail = async (data: MoldMaintenanceDetailVO) => { +  return await request.put({ url: `/eam/device-maintenance-detail/update`, data }) +} + +// 删除维修工单子 +export const deleteMoldMaintenanceDetail = async (id: number) => { +  return await request.delete({ url: `/eam/device-maintenance-detail/delete?id=` + id }) +} + + + +// 导出维修工单子 Excel +export const exportPurchasereceiptRequestDetail = async (params) => { +  return await request.download({ url: `/wms/purchasereceipt-request-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { +  return request.download({ url: '/wms/purchasereceipt-request-detail/get-import-template' }) +}