工单作业、工单查询、报工查询

This commit is contained in:
2023-05-25 13:41:11 +08:00
parent d29959513d
commit 934ff5186d
10 changed files with 621 additions and 118 deletions

View File

@@ -25,12 +25,53 @@ export const openStart = (id, code) => post('api/produceshiftorder/openStart', {
})
// 4.设备报工
export const saveReport = (id, code) => post('api/produceshiftorder/saveReport', {
export const saveReport = (id, qty, nqty, rqty) => post('api/produceshiftorder/saveReport', {
workorder_id: id,
report_qty: code
report_qty: qty,
nok_qty: nqty,
repare_qty: rqty
})
// 5.设备完工
export const tofinish = (row) => post('api/produceshiftorder/finish', {
row: row
})
// 设备下拉列表
export const deviceList = (search) => post('api/device/list', {
search: search
})
// export const deviceList = (search) => {
// let res = {
// 'totalElements': 4,
// 'content': [
// {
// 'device_name': 'A1_旋压下料_80_1',
// 'device_code': 'A1_XY_80_1'
// },
// {
// 'device_name': 'A1_旋压下料_80_2',
// 'device_code': 'A1_XY_80_2'
// },
// {
// 'device_name': 'A1_旋压下料_80_3',
// 'device_code': 'A1_XY_80_3'
// },
// {
// 'device_name': 'A1_旋压下料_80_4',
// 'device_code': 'A1_XY_80_4'
// }
// ],
// 'code': 200,
// 'msg': '查询成功'
// }
// return res
// }
// 报工查询
export const reportQuery = (st, et, code, wcode) => post('api/produceWorkorder/reportQuery', {
start_time: st,
end_time: et,
device_code: code,
workorder_code: wcode
})