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.
103 lines
3.1 KiB
103 lines
3.1 KiB
import request from '@/config/axios'
|
|
import {EquipmentInspectionMainVO} from "@/api/eam/equipmentInspectionMain";
|
|
|
|
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 updateEquipmentSpotCheck = async (data: EquipmentSpotCheckMainVO) => {
|
|
return await request.post({ url: `/eam/equipment-spot-check-main/updateOrders`, 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' })
|
|
}
|
|
|
|
|
|
// 修改点检工单状态
|
|
export const updateEquipmentSpotCheckOrder = async (data: EquipmentSpotCheckMainVO) => {
|
|
return await request.post({ url: `/eam/equipment-spot-check-main/updateOrder`, data })
|
|
}
|
|
|
|
//完成点检工单
|
|
export const executeEquipmentSpotCheckOrder = async (data: EquipmentSpotCheckMainVO) => {
|
|
return await request.post({ url: `/eam/equipment-spot-check-main/execute`, data })
|
|
}
|
|
|
|
//验证不通过,打回点检工单
|
|
export const backEquipmentSpotCheckOrder = async (data: EquipmentSpotCheckMainVO) => {
|
|
return await request.post({ url: `/eam/equipment-spot-check-main/fallback`, data })
|
|
}
|
|
|