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.
75 lines
1.5 KiB
75 lines
1.5 KiB
10 months ago
|
import request from '@/utils/request'
|
||
|
|
||
|
|
||
|
// 添加工单
|
||
|
export function overhaulOrderCreate(data) {
|
||
|
return request({
|
||
|
url: '/eam/device-inspection-main/create',
|
||
|
'method': 'POST',
|
||
|
data
|
||
|
})
|
||
|
}
|
||
|
// 编辑工单
|
||
|
export function overhaulOrderUpdate(data) {
|
||
|
return request({
|
||
|
url: '/eam/device-inspection-main/update',
|
||
|
'method': 'PUT',
|
||
|
data
|
||
|
})
|
||
|
}
|
||
|
// 报修列表
|
||
|
export function overhaulOrderPage(params) {
|
||
|
return request({
|
||
|
url: '/eam/device-inspection-main/getAppPage',
|
||
|
'method': 'GET',
|
||
|
params
|
||
|
})
|
||
|
}
|
||
|
// 操作工单
|
||
|
export function orderClick(params) {
|
||
|
return request({
|
||
|
url: '/eam/device-maintenance-main/orderClick',
|
||
|
'method': 'GET',
|
||
|
params
|
||
|
})
|
||
|
}
|
||
|
// 添加维修工单子项维修内容
|
||
|
export function repairOrderDetailCreate(data) {
|
||
|
return request({
|
||
|
url: '/eam/device-maintenance-detail/create',
|
||
|
'method': 'POST',
|
||
|
data
|
||
|
})
|
||
|
}
|
||
|
// 编辑维修工单子项维修内容
|
||
|
export function repairOrderDetailUpdate(data) {
|
||
|
return request({
|
||
|
url: '/eam/device-maintenance-detail/update',
|
||
|
'method': 'PUT',
|
||
|
data
|
||
|
})
|
||
|
}
|
||
|
// 获得维修工单子列表
|
||
|
export function repairOrderDetailList(params) {
|
||
|
return request({
|
||
|
url: '/eam/device-maintenance-detail/selectListByNumber',
|
||
|
'method': 'GET',
|
||
|
params
|
||
|
})
|
||
|
}
|
||
|
// 删除维修工单子
|
||
|
export function repairOrderDetailDelete(id) {
|
||
|
return request({
|
||
|
url: '/eam/device-maintenance-detail/delete?id='+id,
|
||
|
'method': 'DELETE'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
//转办
|
||
|
export function transfer(params) {
|
||
|
return request({
|
||
|
url: '/eam/device-maintenance-main/turnTo',
|
||
|
'method': 'GET',
|
||
|
params
|
||
|
})
|
||
|
}
|