zhang_li
7 months ago
34 changed files with 1267 additions and 793 deletions
@ -1,2 +1,2 @@ |
|||
VITE_BASE_URL=http://10.62.139.32:81/api/admin-api |
|||
VITE_BASE_URL_IMAGE=http://10.62.139.32:81/api/admin-api |
|||
VITE_BASE_URL=http://dev.ccwin-in.com:25210/admin-api |
|||
VITE_BASE_URL_IMAGE=http://dev.ccwin-in.com:25210/admin-api |
@ -0,0 +1,33 @@ |
|||
import http from './http' |
|||
|
|||
|
|||
// 添加报修
|
|||
export function repairCreate(data,type) { |
|||
if(type == 'DEVICE'){ |
|||
return http.post('/eam/device-repair-request/create',data) |
|||
}else if(type == 'MOLD'){ |
|||
return http.post('/eam/mold-repair-request/create',data) |
|||
}else if(type == 'TECH'){ |
|||
return http.post('/eam/tech-repair-request/create',data) |
|||
} |
|||
} |
|||
// 报修列表
|
|||
export function repairPage(params,type) { |
|||
if(type == 'DEVICE'){ |
|||
return http.get('/eam/device-repair-request/getAppPage',{params}) |
|||
}else if(type == 'MOLD'){ |
|||
return http.post('/eam/mold-repair-request/getAppPage',{params}) |
|||
}else if(type == 'TECH'){ |
|||
return http.post('/eam/tech-repair-request/getAppPage',{params}) |
|||
} |
|||
} |
|||
// 撤销
|
|||
export function repairCancel(id,type) { |
|||
if(type == 'DEVICE'){ |
|||
return http.delete('/eam/device-repair-request/cancel?id='+id) |
|||
}else if(type == 'MOLD'){ |
|||
return http.post('/eam/mold-repair-request/cancel?id='+id) |
|||
}else if(type == 'TECH'){ |
|||
return http.post('/eam/tech-repair-request/cancel?id='+id) |
|||
} |
|||
} |
@ -1,29 +1,65 @@ |
|||
import http from './http' |
|||
|
|||
// 添加工单
|
|||
export function spotCheckOrderCreate(data) { |
|||
return http.post('/eam/device-spot-inspection-record-main/create',data) |
|||
export function spotCheckOrderCreate(data,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.post('/eam/device-spot-inspection-record-main/create',data) |
|||
} else if (type == 'MOLD') { |
|||
return http.post('/eam/mold-spot-inspection-record-main/create',data) |
|||
} else if (type == 'TECH') { |
|||
return http.post('/eam/tech-spot-inspection-record-main/create',data) |
|||
} |
|||
} |
|||
// 编辑工单
|
|||
export function spotCheckOrderUpdate(data) { |
|||
return http.put('/eam/device-spot-inspection-record-main/update',data) |
|||
export function spotCheckOrderUpdate(data,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.put('/eam/device-spot-inspection-record-main/update',data) |
|||
} else if (type == 'MOLD') { |
|||
return http.put('/eam/mold-spot-inspection-record-main/update',data) |
|||
} else if (type == 'TECH') { |
|||
return http.put('/eam/tech-spot-inspection-record-main/update',data) |
|||
} |
|||
} |
|||
// 工单列表
|
|||
export function spotCheckOrderPage(params) { |
|||
return http.get('/eam/device-spot-inspection-record-main/getAppPage',{params}) |
|||
export function spotCheckOrderPage(params,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.get('/eam/device-spot-inspection-record-main/getAppPage',{params}) |
|||
} else if (type == 'MOLD') { |
|||
return http.get('/eam/mold-spot-inspection-record-main/getAppPage',{params}) |
|||
} else if (type == 'TECH') { |
|||
return http.get('/eam/tech-spot-inspection-record-main/getAppPage',{params}) |
|||
} |
|||
} |
|||
|
|||
// 操作工单
|
|||
export function orderClick(params) { |
|||
return http.get('/eam/device-spot-inspection-record-main/onClick',{params}) |
|||
export function orderClick(params,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.get('/eam/device-spot-inspection-record-main/onClick',{params}) |
|||
} else if (type == 'MOLD') { |
|||
return http.get('/eam/mold-spot-inspection-record-main/onClick',{params}) |
|||
} else if (type == 'TECH') { |
|||
return http.get('/eam/tech-spot-inspection-record-main/onClick',{params}) |
|||
} |
|||
} |
|||
|
|||
// 操作工单
|
|||
export function selectListByNumber(params) { |
|||
return http.get('/eam/device-spot-inspection-record-detail/getList',{params}) |
|||
export function selectListByNumber(params,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.get('/eam/device-spot-inspection-record-detail/getList',{params}) |
|||
} else if (type == 'MOLD') { |
|||
return http.get('/eam/mold-spot-inspection-record-detail/getList',{params}) |
|||
} else if (type == 'TECH') { |
|||
return http.get('/eam/tech-spot-inspection-record-detail/getList',{params}) |
|||
} |
|||
} |
|||
|
|||
// 工程师审批
|
|||
export function orderClickApprove(params) { |
|||
return http.get('/eam/device-spot-inspection-record-main/orderClickApprove',{params}) |
|||
export function orderClickVerify(params,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.get('/eam/device-spot-inspection-record-main/orderClickVerify',{params}) |
|||
} else if (type == 'MOLD') { |
|||
return http.get('/eam/mold-spot-inspection-record-main/orderClickVerify',{params}) |
|||
} else if (type == 'TECH') { |
|||
return http.get('/eam/tech-spot-inspection-record-main/orderClickVerify',{params}) |
|||
} |
|||
} |
|||
|
@ -1,44 +1,104 @@ |
|||
import http from './http' |
|||
import http from './http' |
|||
|
|||
|
|||
// 添加工单
|
|||
export function upkeepOrderCreate(data) { |
|||
return http.post('/eam/device-maintain-job-main/create',data) |
|||
export function upkeepOrderCreate(data,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.post('/eam/device-maintain-job-main/create',data) |
|||
} else if (type == 'MOLD') { |
|||
return http.post('/eam/mold-maintain-job-main/create',data) |
|||
} else if (type == 'TECH') { |
|||
return http.post('/eam/tech-maintain-job-main/create',data) |
|||
} |
|||
} |
|||
// 编辑工单
|
|||
export function upkeepOrderUpdate(data) { |
|||
return http.put('/eam/device-maintain-job-main/update',data) |
|||
export function upkeepOrderUpdate(data,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.put('/eam/device-maintain-job-main/update',data) |
|||
} else if (type == 'MOLD') { |
|||
return http.put('/eam/mold-maintain-job-main/update',data) |
|||
} else if (type == 'TECH') { |
|||
return http.put('/eam/tech-maintain-job-main/update',data) |
|||
} |
|||
} |
|||
// 工单列表
|
|||
export function upkeepOrderPage(params) { |
|||
return http.get('/eam/device-maintain-job-main/getAppPage',{params}) |
|||
export function upkeepOrderPage(params,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.get('/eam/device-maintain-job-main/getAppPage',{params}) |
|||
} else if (type == 'MOLD') { |
|||
return http.get('/eam/mold-maintain-job-main/getAppPage',{params}) |
|||
} else if (type == 'TECH') { |
|||
return http.get('/eam/tech-maintain-job-main/getAppPage',{params}) |
|||
} |
|||
} |
|||
// 接单
|
|||
export function orderClick(params) { |
|||
return http.get('/eam/device-maintain-job-main/orderClick',{params}) |
|||
export function orderClick(params,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.get('/eam/device-maintain-job-main/orderClick',{params}) |
|||
} else if (type == 'MOLD') { |
|||
return http.get('/eam/mold-maintain-job-main/orderClick',{params}) |
|||
} else if (type == 'TECH') { |
|||
return http.get('/eam/tech-maintain-job-main/orderClick',{params}) |
|||
} |
|||
} |
|||
|
|||
export function orderClickVerify(params) { |
|||
return http.get('/eam/device-maintain-job-main/orderClickVerify',{params}) |
|||
export function orderClickVerify(params,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.get('/eam/device-maintain-job-main/orderClickVerify',{params}) |
|||
} else if (type == 'MOLD') { |
|||
return http.get('/eam/mold-maintain-job-main/orderClickVerify',{params}) |
|||
} else if (type == 'TECH') { |
|||
return http.get('/eam/tech-maintain-job-main/orderClickVerify',{params}) |
|||
} |
|||
} |
|||
|
|||
// 完成保养工单
|
|||
export function orderClickFinish(params) { |
|||
return http.get('/eam/device-maintain-job-main/orderClickFinish',{params}) |
|||
export function orderClickFinish(params,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.get('/eam/device-maintain-job-main/orderClickFinish',{params}) |
|||
} else if (type == 'MOLD') { |
|||
return http.get('/eam/mold-maintain-job-main/orderClickFinish',{params}) |
|||
} else if (type == 'TECH') { |
|||
return http.get('/eam/tech-maintain-job-main/orderClickFinish',{params}) |
|||
} |
|||
} |
|||
// 添加维修工单子项维修内容
|
|||
export function upkeepOrderDetailCreate(data) { |
|||
return http.post('/eam/device-maintain-job-detail/create',data) |
|||
export function upkeepOrderDetailCreate(data,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.post('/eam/device-maintain-job-detail/create',data) |
|||
} else if (type == 'MOLD') { |
|||
return http.post('/eam/mold-maintain-job-detail/create',data) |
|||
} else if (type == 'TECH') { |
|||
return http.post('/eam/tech-maintain-job-detail/create',data) |
|||
} |
|||
} |
|||
// 编辑维修工单子项维修内容
|
|||
export function upkeepOrderDetailUpdate(data) { |
|||
return http.put('/eam/device-maintain-job-detail/update',data) |
|||
export function upkeepOrderDetailUpdate(data,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.put('/eam/device-maintain-job-detail/update',data) |
|||
} else if (type == 'MOLD') { |
|||
return http.put('/eam/mold-maintain-job-detail/update',data) |
|||
} else if (type == 'TECH') { |
|||
return http.put('/eam/tech-maintain-job-detail/update',data) |
|||
} |
|||
} |
|||
// 获得维修工单子列表
|
|||
export function upkeepOrderDetailList(params) { |
|||
return http.get('/eam/device-maintain-job-detail/selectListByNumber',{params}) |
|||
export function upkeepOrderDetailList(params,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.get('/eam/device-maintain-job-detail/selectListByNumber',{params}) |
|||
} else if (type == 'MOLD') { |
|||
return http.get('/eam/mold-maintain-job-detail/selectListByNumber',{params}) |
|||
} else if (type == 'TECH') { |
|||
return http.get('/eam/tech-maintain-job-detail/selectListByNumber',{params}) |
|||
} |
|||
} |
|||
// 删除维修工单子
|
|||
export function upkeepOrderDetailDelete(id) { |
|||
return http.delete('/eam/device-maintain-job-detail/delete?id='+id) |
|||
export function upkeepOrderDetailDelete(id,type) { |
|||
if (type == 'DEVICE') { |
|||
return http.delete('/eam/device-maintain-job-detail/delete?id='+id) |
|||
} else if (type == 'MOLD') { |
|||
return http.delete('/eam/mold-maintain-job-detail/delete?id='+id) |
|||
} else if (type == 'TECH') { |
|||
return http.delete('/eam/tech-maintain-job-detail/delete?id='+id) |
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue