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.
73 lines
2.2 KiB
73 lines
2.2 KiB
12 months ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface EquipmentReportRepairRequestVO {
|
||
|
id: number
|
||
|
number: string
|
||
|
type: string
|
||
|
equipmentCode: string
|
||
|
urgency: string
|
||
|
faultType: string
|
||
|
describing: string
|
||
|
shutDown: boolean
|
||
|
images: string
|
||
|
factoryAreaCode: string
|
||
|
workshopCode: string
|
||
|
workshopSectionCode: string
|
||
|
repairmaner: number
|
||
|
repairPhone: string
|
||
|
status: string
|
||
|
approver: number
|
||
|
approveContent: string
|
||
|
approveTime: Date
|
||
|
autoExamine: string
|
||
|
autoAgree: string
|
||
|
autoVerify: string
|
||
|
departmentCode: string
|
||
|
remark: string
|
||
|
siteId: string
|
||
|
available: string
|
||
|
deletionTime: Date
|
||
|
deleterId: byte[]
|
||
|
concurrencyStamp: number
|
||
|
}
|
||
|
|
||
|
// 查询设报修申请列表
|
||
|
export const getEquipmentReportRepairRequestPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/eam/equipment-report-repair-request/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/eam/equipment-report-repair-request/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询设报修申请详情
|
||
|
export const getEquipmentReportRepairRequest = async (id: number) => {
|
||
|
return await request.get({ url: `/eam/equipment-report-repair-request/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增设报修申请
|
||
|
export const createEquipmentReportRepairRequest = async (data: EquipmentReportRepairRequestVO) => {
|
||
|
return await request.post({ url: `/eam/equipment-report-repair-request/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改设报修申请
|
||
|
export const updateEquipmentReportRepairRequest = async (data: EquipmentReportRepairRequestVO) => {
|
||
|
return await request.put({ url: `/eam/equipment-report-repair-request/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除设报修申请
|
||
|
export const deleteEquipmentReportRepairRequest = async (id: number) => {
|
||
|
return await request.delete({ url: `/eam/equipment-report-repair-request/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出设报修申请 Excel
|
||
|
export const exportEquipmentReportRepairRequest = async (params) => {
|
||
|
return await request.download({ url: `/eam/equipment-report-repair-request/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/eam/equipment-report-repair-request/get-import-template' })
|
||
|
}
|