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.
62 lines
1.9 KiB
62 lines
1.9 KiB
import request from '@/config/axios'
|
|
|
|
export interface EquipmentSpotCheckDetailVO {
|
|
id: number
|
|
number: string
|
|
masterId: number
|
|
completionTime: Date
|
|
uncompletedCause: string
|
|
result: string
|
|
name: string
|
|
content: string
|
|
equipmentParts: string
|
|
methods: string
|
|
departmentCode: string
|
|
remark: string
|
|
siteId: string
|
|
available: string
|
|
deletionTime: Date
|
|
deleterId: byte[]
|
|
concurrencyStamp: number
|
|
}
|
|
|
|
// 查询点检工单子列表
|
|
export const getEquipmentSpotCheckDetailPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/eam/equipment-spot-check-detail/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/eam/equipment-spot-check-detail/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询点检工单子详情
|
|
export const getEquipmentSpotCheckDetail = async (id: number) => {
|
|
return await request.get({ url: `/eam/equipment-spot-check-detail/get?id=` + id })
|
|
}
|
|
|
|
// 新增点检工单子
|
|
export const createEquipmentSpotCheckDetail = async (data: EquipmentSpotCheckDetailVO) => {
|
|
return await request.post({ url: `/eam/equipment-spot-check-detail/create`, data })
|
|
}
|
|
|
|
// 修改点检工单子
|
|
export const updateEquipmentSpotCheckDetail = async (data: EquipmentSpotCheckDetailVO) => {
|
|
return await request.put({ url: `/eam/equipment-spot-check-detail/update`, data })
|
|
}
|
|
|
|
// 删除点检工单子
|
|
export const deleteEquipmentSpotCheckDetail = async (id: number) => {
|
|
return await request.delete({ url: `/eam/equipment-spot-check-detail/delete?id=` + id })
|
|
}
|
|
|
|
// 导出点检工单子 Excel
|
|
export const exportEquipmentSpotCheckDetail = async (params) => {
|
|
return await request.download({ url: `/eam/equipment-spot-check-detail/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/eam/equipment-spot-check-detail/get-import-template' })
|
|
}
|