You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
2.3 KiB
81 lines
2.3 KiB
11 months ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface EquipmentSpotCheckMainVO {
|
||
|
id: number
|
||
|
number: string
|
||
|
describing: string
|
||
|
equipmentCode: string
|
||
|
type: string
|
||
|
planNumber: string
|
||
|
planStartTime: Date
|
||
|
planEndTime: Date
|
||
|
startTime: Date
|
||
|
endTime: Date
|
||
|
faultType: string
|
||
|
verifyer: number
|
||
|
verifyContent: string
|
||
|
verifyTime: Date
|
||
|
maintenancer: number
|
||
|
completionTime: Date
|
||
|
maintenanceTime: Date
|
||
|
isPictures: boolean
|
||
|
status: string
|
||
|
autoOrder: string
|
||
|
autoPerform: string
|
||
|
autoVerify: string
|
||
|
directCreateRecord: string
|
||
|
classType: string
|
||
|
factoryAreaCode: string
|
||
|
workshopCode: string
|
||
|
lineCode: string
|
||
|
processCode: string
|
||
|
workstationCode: string
|
||
|
departmentCode: string
|
||
|
remark: string
|
||
|
siteId: string
|
||
|
available: string
|
||
|
deletionTime: Date
|
||
|
deleterId: byte[]
|
||
|
concurrencyStamp: number
|
||
|
}
|
||
|
|
||
|
// 查询点检工单主列表
|
||
|
export const getEquipmentSpotCheckMainPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/eam/equipment-spot-check-main/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/eam/equipment-spot-check-main/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询点检工单主详情
|
||
|
export const getEquipmentSpotCheckMain = async (id: number) => {
|
||
|
return await request.get({ url: `/eam/equipment-spot-check-main/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增点检工单主
|
||
|
export const createEquipmentSpotCheckMain = async (data: EquipmentSpotCheckMainVO) => {
|
||
|
return await request.post({ url: `/eam/equipment-spot-check-main/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改点检工单主
|
||
|
export const updateEquipmentSpotCheckMain = async (data: EquipmentSpotCheckMainVO) => {
|
||
|
return await request.put({ url: `/eam/equipment-spot-check-main/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除点检工单主
|
||
|
export const deleteEquipmentSpotCheckMain = async (id: number) => {
|
||
|
return await request.delete({ url: `/eam/equipment-spot-check-main/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出点检工单主 Excel
|
||
|
export const exportEquipmentSpotCheckMain = async (params) => {
|
||
|
return await request.download({ url: `/eam/equipment-spot-check-main/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/eam/equipment-spot-check-main/get-import-template' })
|
||
|
}
|