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.

76 lines
1.5 KiB

9 months ago
import request from '@/utils/request'
// 添加工单
9 months ago
export function upkeepOrderCreate(data) {
9 months ago
return request({
url: '/eam/device-maintain-job-main/create',
9 months ago
'method': 'POST',
data
})
}
// 编辑工单
9 months ago
export function upkeepOrderUpdate(data) {
9 months ago
return request({
url: '/eam/device-maintain-job-main/update',
9 months ago
'method': 'PUT',
data
})
}
// 工单列表
9 months ago
export function upkeepOrderPage(params) {
9 months ago
return request({
url: '/eam/device-maintain-job-main/getAppPage',
9 months ago
'method': 'GET',
params
})
}
9 months ago
// 接单
9 months ago
export function orderClick(params) {
return request({
url: '/eam/device-maintain-job-main/orderClick',
9 months ago
'method': 'GET',
params
})
}
// 完成保养工单
export function orderClickFinish(params) {
return request({
url: '/eam/device-maintain-job-main/orderClickFinish',
9 months ago
'method': 'GET',
params
})
}
// 添加维修工单子项维修内容
9 months ago
export function upkeepOrderDetailCreate(data) {
9 months ago
return request({
url: '/eam/device-maintain-job-detail/create',
9 months ago
'method': 'POST',
data
})
}
// 编辑维修工单子项维修内容
9 months ago
export function upkeepOrderDetailUpdate(data) {
9 months ago
return request({
url: '/eam/device-maintain-job-detail/update',
9 months ago
'method': 'PUT',
data
})
}
// 获得维修工单子列表
9 months ago
export function upkeepOrderDetailList(params) {
9 months ago
return request({
url: '/eam/device-maintain-job-detail/selectListByNumber',
9 months ago
'method': 'GET',
params
})
}
// 删除维修工单子
9 months ago
export function upkeepOrderDetailDelete(id) {
9 months ago
return request({
url: '/eam/device-maintain-job-detail/delete?id='+id,
9 months ago
'method': 'DELETE'
})
}