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.
 
 
 
 

84 lines
1.7 KiB

import request from '@/utils/request'
// 添加工单
export function repairOrderCreate(data) {
return request({
url: '/eam/device-maintenance-job-main/create',
'method': 'POST',
data
})
}
// 编辑工单
export function repairOrderUpdate(data) {
return request({
url: '/eam/device-maintenance-job-main/update',
'method': 'PUT',
data
})
}
// 工单列表
export function repairOrderPage(params) {
return request({
url: '/eam/device-maintenance-job-main/getAppPage',
'method': 'GET',
params
})
}
// 操作工单
export function orderClick(params) {
return request({
url: '/eam/device-maintenance-job-main/orderClick',
'method': 'GET',
params
})
}
// 添加维修工单子项维修内容
export function repairOrderDetailCreate(data) {
return request({
url: '/eam/device-maintenance-job-detail/create',
'method': 'POST',
data
})
}
// 编辑维修工单子项维修内容
export function repairOrderDetailUpdate(data) {
return request({
url: '/eam/device-maintenance-job-detail/update',
'method': 'PUT',
data
})
}
// 获得维修工单子列表
export function repairOrderDetailList(params) {
return request({
url: '/eam/device-maintenance-job-detail/selectListByNumber',
'method': 'GET',
params
})
}
// 删除维修工单子
export function repairOrderDetailDelete(id) {
return request({
url: '/eam/device-maintenance-job-detail/delete?id='+id,
'method': 'DELETE'
})
}
//转办
export function transfer(params) {
return request({
url: '/eam/device-maintenance-job-main/turnTo',
'method': 'GET',
params
})
}
// 获取采取临时措施的维修工单
export function repairOrderList(params) {
return request({
url: '/eam/device-maintenance-job-main/getList',
'method': 'GET',
params
})
}