接口修改 交互功能修改

This commit is contained in:
2023-06-05 13:17:08 +08:00
parent 38b5ae1ee6
commit 83cb43669b
6 changed files with 150 additions and 57 deletions

View File

@@ -1,4 +1,4 @@
import {post} from '@config/http.js'
import {post, get} from '@config/http.js'
/** 手持登陆 */
export const handLogin = (user, password) => post('mobile/auth/login', {
@@ -30,11 +30,9 @@ export const openStart = (id, code) => post('api/produceshiftorder/openStart', {
})
// 4.设备报工
export const saveReport = (id, qty, nqty, rqty) => post('api/produceshiftorder/saveReport', {
export const saveReport = (id, qty) => post('api/produceshiftorder/saveReport', {
workorder_id: id,
report_qty: qty,
nok_qty: nqty,
repare_qty: rqty
report_qty: qty
})
// 5.设备完工
@@ -107,3 +105,13 @@ export const getOrderList2 = (code, val, d1, d2) => post('api/produceshiftorder/
// return res
// }
// 残次品报工
export const unqualReport = (id, nqty, rqty) => post('api/produceshiftorder/unqualReport', {
workorder_id: id,
nok_qty: nqty,
repare_qty: rqty
})
// 状态查询
export const orderStatus = () => get('api/produceshiftorder/orderStatus', '')