2023-04-07 17:41:38 +08:00
|
|
|
import {post} from '@config/http.js'
|
|
|
|
|
|
|
|
|
|
/** 手持登陆 */
|
|
|
|
|
export const handLogin = (user, password) => post('mobile/auth/login', {
|
|
|
|
|
username: user,
|
|
|
|
|
password: password
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// 1.首页-查询人员所属的设备信息
|
2023-04-07 18:28:08 +08:00
|
|
|
export const getDevice = () => post('api/produceshiftorder/getDeviceList', {
|
2023-04-07 17:41:38 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// 2.工单管理
|
|
|
|
|
export const getTable = (code, val, d1, d2, is, ids, qc) => post('api/produceshiftorder/getTable', {
|
|
|
|
|
device_code: code,
|
|
|
|
|
key_value: val,
|
|
|
|
|
order_date1: d1,
|
|
|
|
|
order_date2: d2,
|
|
|
|
|
is_finished: is,
|
|
|
|
|
is_producted: ids,
|
|
|
|
|
is_qc: qc
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// 3.设备开工
|
|
|
|
|
export const openStart = (id, code) => post('api/produceshiftorder/openStart', {
|
|
|
|
|
workorder_id: id,
|
|
|
|
|
device_code: code
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// 4.设备报工
|
|
|
|
|
export const saveReport = (id, code) => post('api/produceshiftorder/saveReport', {
|
|
|
|
|
workorder_id: id,
|
|
|
|
|
report_qty: code
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// 5.设备完工
|
|
|
|
|
export const tofinish = (row) => post('api/produceshiftorder/finish', {
|
|
|
|
|
row: row
|
|
|
|
|
})
|