2023-12-20 09:13:42 +08:00
import request from './request.js'
import request1 from './request1.js'
// 版本更新测试
export const pdaUpdate = ( ) => request ( {
url : 'api/pda/update'
} )
// export const pdaUpdate = () => {
// let res = {
// versionName: '1.0.1',
// url: 'https://mp-e979e0eb-882b-42b3-a4a1-923ad08ea194.cdn.bspapp.com/cloudstorage/f72ec59f-7b25-487d-a034-fead1b6654c6.apk'
// }
// return res
// }
// 登录
export const handLogin = ( user , password ) => request ( {
url : 'mobile/auth/login' ,
data : {
username : user ,
password : password
}
} )
/ * *
2024-02-22 10:26:03 +08:00
* 人工排产
2023-12-20 09:13:42 +08:00
* /
2024-02-22 10:26:03 +08:00
// 工单
2024-02-22 17:43:32 +08:00
export const manualSortingOrders = ( ) => request ( {
url : 'api/pda/manualSorting/orders' ,
data : { }
} )
// export const manualSortingOrders = () => {
// let res = [
// {
// "workorder_code": "231117001",
// "material_code": "ZJB",
// "material_name": "正极板",
// "workorder_status": "1",
// "operator": null,
// "create_name": "管理员",
// "plan_qty": "1111",
// "real_qty": "0"
// },
// {
// "workorder_code": "231128002",
// "material_code": "FJB",
// "material_name": "负极板",
// "workorder_status": "3",
// "operator": null,
// "create_name": "管理员",
// "plan_qty": "2222",
// "real_qty": "0"
// },
// {
// "workorder_code": "231128003",
// "material_code": "BFJB",
// "material_name": "边负极板",
// "workorder_status": "4",
// "operator": 'admin',
// "create_name": "管理员",
// "plan_qty": "1111",
// "real_qty": "0"
// },
// {
// "workorder_code": "231212003",
// "material_code": "BFJB",
// "material_name": "边负极板",
// "workorder_status": "1",
// "operator": null,
// "create_name": "管理员",
// "plan_qty": "8989767",
// "real_qty": "0"
// }
// ]
// return res
// }
2023-12-20 09:13:42 +08:00
// 开工
2024-02-22 10:26:03 +08:00
export const productionScheduling = ( code , user ) => request ( {
2023-12-20 09:13:42 +08:00
url : 'api/pda/manualSorting/productionScheduling' ,
data : {
workorder _code : code ,
username : user
}
} )
// 完工
2024-02-22 10:26:03 +08:00
export const productionComplete = ( code , user ) => request ( {
2023-12-20 09:13:42 +08:00
url : 'api/pda/manualSorting/productionComplete' ,
data : {
workorder _code : code ,
username : user
}
} )
/ * *
2024-02-22 10:26:03 +08:00
* 涂板线
2023-12-20 09:13:42 +08:00
* /
2024-02-22 10:26:03 +08:00
// 数据
2024-02-22 17:43:32 +08:00
export const coatedWireIntoStorageTaskShow = ( ) => request ( {
url : 'api/pda/manualSorting/coatedWireIntoStorageTaskShow' ,
data : { }
} )
// export const coatedWireIntoStorageTaskShow = () => {
// let res = [{"point_name1":"普涂线01对接位01","point_name2":'普涂线01对接位01',"point_name3":'普涂线01对接位01',"point_name4":'普涂线01对接位01',"task_status":"1","remark":"普涂线01对接位01"}, {"point_name1":"普涂线01对接位01","point_name2":'普涂线01对接位01',"point_name3":'普涂线01对接位01',"point_name4":'普涂线01对接位01',"task_status":"2","remark":"普涂线01对接位01"}, {"point_name1":"普涂线01对接位01","point_name2":'普涂线01对接位01',"point_name3":'普涂线01对接位01',"point_name4":'普涂线01对接位01',"task_status":"3","remark":"普涂线01对接位01"}, {"point_name1":"普涂线01对接位01","point_name2":'普涂线01对接位01',"point_name3":'普涂线01对接位01',"point_name4":'普涂线01对接位01',"task_status":"4","remark":"普涂线01对接位01"}]
// return res
// }
2024-02-22 10:26:03 +08:00
// 入库
export const coatedWireIntoStorageTask = ( code , qty ) => request ( {
url : 'api/pda/manualSorting/coatedWireIntoStorageTask' ,
2023-12-20 09:13:42 +08:00
data : {
2024-02-22 10:26:03 +08:00
point _code : code ,
2023-12-20 09:13:42 +08:00
qty : qty
}
} )
/ * *
2024-02-22 10:26:03 +08:00
* 物料库存
2023-12-20 09:13:42 +08:00
* /
2024-02-22 10:26:03 +08:00
// 物料下拉框
export const materialList = ( ) => request ( {
url : 'api/pda/materialList' ,
2023-12-20 09:13:42 +08:00
data : { }
} )
2024-02-22 17:43:32 +08:00
// export const materialList = () => {
// let res = [{"value":"BFJB","text":"边负极板"},{"value":"FJB","text":"负极板"},{"value":"ZJB","text":"正极板"}]
// return res
// }
2024-02-22 10:26:03 +08:00
// 根据物料获取库存数据
export const getInventoryMaterialInfo = ( code ) => request ( {
url : 'api/pda/getInventoryMaterialInfo' ,
2023-12-20 09:13:42 +08:00
data : {
material _code : code
}
2024-02-22 17:43:32 +08:00
} )
// export const getInventoryMaterialInfo = (code) => {
// let res = [{"material_code":"FJB","material_name":"负极板","point_code":"01-09-01","point_name":"01排09列01层","vehicle_code":"T202312060006","vehicle_type":"1"}]
// return res
// }