添砖-JAVA\Administrator
9 months ago
10 changed files with 185 additions and 20 deletions
@ -0,0 +1,61 @@ |
|||||
|
import request from '@/config/axios' |
||||
|
|
||||
|
export interface DeviceMoldItemsVO { |
||||
|
name: string |
||||
|
deviceNumber: string |
||||
|
type: "DEVICE" |
||||
|
status: string |
||||
|
siteId: string |
||||
|
available: string |
||||
|
concurrencyStamp: number |
||||
|
} |
||||
|
|
||||
|
// 查询项记录表(设备 模具 保养 维修 巡检点检)列表
|
||||
|
export const getDeviceMoldItemsPage = async (params) => { |
||||
|
params.type="DEVICE" |
||||
|
params.status="INSPECTION" |
||||
|
if (params.isSearch) { |
||||
|
delete params.isSearch |
||||
|
const data = {...params} |
||||
|
return await request.post({ url: '/eam/device-mold-items/senior', data }) |
||||
|
} else { |
||||
|
return await request.get({ url: `/eam/device-mold-items/page`, params }) |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// 查询项记录表(设备 模具 保养 维修 巡检点检)详情
|
||||
|
export const getDeviceMoldItems = async (id: number) => { |
||||
|
return await request.get({ url: `/eam/device-mold-items/get?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 查询供应商发票申请主详情
|
||||
|
export const getNumber = async (params) => { |
||||
|
return await request.get({ url: `/eam/device-mold-items/getNumber`, params}) |
||||
|
} |
||||
|
|
||||
|
// 新增项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const createDeviceMoldItems = async (data: DeviceMoldItemsVO) => { |
||||
|
data.type="DEVICE" |
||||
|
data.status="INSPECTION" |
||||
|
return await request.post({ url: `/eam/device-mold-items/create`, data }) |
||||
|
} |
||||
|
|
||||
|
// 修改项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const updateDeviceMoldItems = async (data: DeviceMoldItemsVO) => { |
||||
|
data.type="DEVICE" |
||||
|
data.status="INSPECTION" |
||||
|
return await request.put({ url: `/eam/device-mold-items/update`, data }) |
||||
|
} |
||||
|
|
||||
|
// 删除项记录表(设备 模具 保养 维修 巡检点检)
|
||||
|
export const deleteDeviceMoldItems = async (id: number) => { |
||||
|
return await request.delete({ url: `/eam/device-mold-items/delete?id=` + id }) |
||||
|
} |
||||
|
|
||||
|
// 导出项记录表(设备 模具 保养 维修 巡检点检) Excel
|
||||
|
export const exportDeviceMoldItems = async (params) => { |
||||
|
return await request.download({ url: `/eam/device-mold-items/export-excel`, params }) |
||||
|
} |
||||
|
|
||||
|
|
Loading…
Reference in new issue