维修作业
This commit is contained in:
@@ -21,37 +21,6 @@ export const handLogin = (user, password) => request({
|
||||
password: password
|
||||
}
|
||||
})
|
||||
// export const handLogin = (user, password) => {
|
||||
// let res = {
|
||||
// "user": {
|
||||
// "user": {
|
||||
// "user_id": "1",
|
||||
// "username": "admin",
|
||||
// "person_name": "管理员",
|
||||
// "gender": "男",
|
||||
// "phone": "18312365896",
|
||||
// "email": "201507802@qq.com",
|
||||
// "avatar_name": "avatar-20200806032259161.png",
|
||||
// "avatar_path": "/Users/jie/Documents/work/me/admin/eladmin/~/avatar/avatar-20200806032259161.png",
|
||||
// "password": "f52020dca765fd3943ed40a615dc2c5c",
|
||||
// "is_admin": true,
|
||||
// "is_used": true,
|
||||
// "pwd_reset_user_id": 0,
|
||||
// "pwd_reset_time": null,
|
||||
// "create_id": null,
|
||||
// "create_name": "",
|
||||
// "create_time": "2022-12-01 00:00:00",
|
||||
// "update_id": "1",
|
||||
// "update_name": "admin",
|
||||
// "update_time": "2023-05-06 14:00:14",
|
||||
// "extperson_id": null,
|
||||
// "extuser_id": null
|
||||
// }
|
||||
// },
|
||||
// "token": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIxIiwicm5TdHIiOiIyZENCQk1uYW03ellTb21aVVN2ZzZnMndJOHJ0V0RmciIsImxvZ2luSW5mbyI6eyJpZCI6IjEiLCJ1c2VybmFtZSI6ImFkbWluIiwicHJlc29uTmFtZSI6IueuoeeQhuWRmCIsInVzZXIiOnsidXNlcl9pZCI6IjEiLCJ1c2VybmFtZSI6ImFkbWluIiwicGVyc29uX25hbWUiOiLnrqHnkIblkZgiLCJnZW5kZXIiOiLnlLciLCJwaG9uZSI6IjE4MzEyMzY1ODk2IiwiZW1haWwiOiIyMDE1MDc4MDJAcXEuY29tIiwiYXZhdGFyX25hbWUiOiJhdmF0YXItMjAyMDA4MDYwMzIyNTkxNjEucG5nIiwiYXZ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||
// }
|
||||
// return res
|
||||
// }
|
||||
|
||||
// 测试状态码报错接口
|
||||
export const handRequest = () => request({
|
||||
@@ -72,7 +41,7 @@ export const getMaterial = (sp, page, size) => request({
|
||||
}
|
||||
})
|
||||
// 1.2工序下拉框
|
||||
export const getWork = (sp) => request({
|
||||
export const getWork = () => request({
|
||||
url:'api/pda/hrBcp/iosIn/getWork',
|
||||
data: {}
|
||||
})
|
||||
@@ -81,3 +50,74 @@ export const BcpConfirm = (from) => request({
|
||||
url:'api/pda/hrBcp/iosIn/confirm',
|
||||
data: from
|
||||
})
|
||||
|
||||
/**
|
||||
* 设备维修作业
|
||||
*/
|
||||
// 1.1设备维修作业页面 (初始查询)-- 单选
|
||||
// export const deviceRepairGetAllQuery = (code) => request({
|
||||
// url:'api/pda/device/repair/getAllQuery',
|
||||
// data: {
|
||||
// device_code: code
|
||||
// }
|
||||
// })
|
||||
export const deviceRepairGetAllQuery = (code) => {
|
||||
let res = {
|
||||
data: [{device_code: '01', invstatus: '99', repair_code: '11', repair_id: '111'}]
|
||||
}
|
||||
return res
|
||||
}
|
||||
// 1.2开始维修(按钮)
|
||||
export const deviceRepairBegin = (row) => request({
|
||||
url:'api/pda/device/repair/begin',
|
||||
data: {
|
||||
row: row
|
||||
}
|
||||
})
|
||||
// 1.4维修填报页面(二级页面)
|
||||
export const deviceRepairGetDtl = (code, rcode, id) => request({
|
||||
url:'api/pda/device/repair/getDtl',
|
||||
data: {
|
||||
device_code: code,
|
||||
repair_code: rcode,
|
||||
repair_id: id
|
||||
}
|
||||
})
|
||||
// 1.4.1确认(按钮)-- 是否完成全部为是【确认】按钮可点击,否则为灰色不可点击
|
||||
export const deviceRepairConfirm = (code, rcode, rows) => request({
|
||||
url:'api/pda/device/repair/confirm',
|
||||
data: {
|
||||
device_code: code,
|
||||
repair_code: rcode,
|
||||
rows: rows
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* 设备作业管理
|
||||
*/
|
||||
// 1.1设备作业管理页面 (初始查询)-- 多选
|
||||
export const deviceManageGetAllQuery = (type, code) => request({
|
||||
url:'api/pda/device/manage/getAllQuery',
|
||||
data: {
|
||||
job_type: type,
|
||||
device_code: code
|
||||
}
|
||||
})
|
||||
// 1.2审核完成(按钮)
|
||||
export const deviceManageConfirm = (rows) => request({
|
||||
url:'api/pda/device/manage/confirm',
|
||||
data: {
|
||||
rows: rows
|
||||
}
|
||||
})
|
||||
// 1.3作业明细页面(二级页面)
|
||||
export const deviceManageGetDtl = (code, type, jcode) => request({
|
||||
url:'api/pda/device/manage/getDtl',
|
||||
data: {
|
||||
device_code: code,
|
||||
job_type: type,
|
||||
job_code: jcode
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user