Files
aio-hl-new/src/config/getData1.js

184 lines
4.5 KiB
JavaScript
Raw Normal View History

2023-06-30 11:29:19 +08:00
import {post} from '@config/http.js'
2023-06-25 19:00:28 +08:00
// 菜单
export const authority = () => {
let res = {
sonTree: [
{menu_id: '1',
path: 'RF01',
name: '工单管理',
sonTree: [
{menu_id: '1', name: '工单作业', path: '/workorderassignment'}
]
},
{menu_id: '2',
path: 'RF02',
name: '半成品管理',
sonTree: [
2023-06-30 18:12:06 +08:00
{menu_id: '1', name: '半成品入库', path: '/semifinishedinstore'},
{menu_id: '2', name: '半成品出库', path: '/semifinishedoutstore'},
{menu_id: '3', name: '半成品盘点', path: '/semifinishedcheck'},
{menu_id: '4', name: '半成品拼盘', path: '/semifinishedcomposesearch'}
2023-06-25 19:00:28 +08:00
]
},
{menu_id: '3',
path: 'RF03',
name: '成品管理',
sonTree: [
2023-06-28 09:38:50 +08:00
{menu_id: '1', name: '成品入库', path: '/finishedinstore'}
2023-06-25 19:00:28 +08:00
]
},
{menu_id: '4',
path: 'RF04',
2023-07-04 15:08:24 +08:00
name: '刻字管理',
2023-06-25 19:00:28 +08:00
sonTree: [
2023-07-26 15:12:54 +08:00
{menu_id: '1', name: '刻字工序', path: '/letteringprocess'},
{menu_id: '2', name: '人工刻字上料', path: '/letteringload'}
2023-06-25 19:00:28 +08:00
]
},
{menu_id: '5',
path: 'RF05',
2023-07-13 17:39:11 +08:00
name: '清洗管理',
2023-07-04 15:08:24 +08:00
sonTree: [
2023-07-18 15:37:35 +08:00
{menu_id: '1', name: '清洗管理', path: '/cleaningloading'},
2023-07-17 17:00:14 +08:00
{menu_id: '2', name: '人工倒料', path: '/manpour'}
2023-07-04 15:08:24 +08:00
]
},
{menu_id: '6',
path: 'RF06',
2023-07-13 17:39:11 +08:00
name: '专机管理',
2023-06-25 19:00:28 +08:00
sonTree: [
2023-07-26 15:12:54 +08:00
{menu_id: '1', name: '人工倒料', path: '/manpouring'}
2023-06-25 19:00:28 +08:00
]
2023-07-13 09:38:45 +08:00
},
{menu_id: '7',
2023-07-13 17:39:11 +08:00
path: 'RF07',
name: '暂存区管理',
2023-07-13 09:38:45 +08:00
sonTree: [
2023-07-13 17:39:11 +08:00
// {menu_id: '1', name: '暂存区管理', path: '/operation'}
2023-07-13 09:38:45 +08:00
]
2023-06-25 19:00:28 +08:00
}
]
}
return res
}
2023-06-30 11:29:19 +08:00
// 成品入库
// 1.1仓库下拉框
export const getBcpStor = () => post('api/pda/cp/in/getBcpStor', {
})
2023-06-25 19:00:28 +08:00
2023-06-30 11:29:19 +08:00
// 1.2单据类型下拉框
export const getBillType = () => post('api/pda/cp/in/getBillType', {
})
// 1.3入库点下拉框
export const getPoint = () => post('api/pda/cp/in/getPoint', {
})
// 1.4添加单据物料按钮
// 1.5选择成品箱物料页面
export const getMaterial = (btime, etime, scode, mcode) => post('api/pda/cp/in/getMaterial', {
begin_time: btime,
end_time: etime,
sale_code: scode,
material_code: mcode
})
// 1.6删除一行(按钮)
// 1.7确认入库(按钮)-->点击后弹出框(“确认入库是否继续?”)
export const confirmIn = (from) => post('api/pda/cp/in/confirmIn', {
from: from
})
// 1.8作业查询(按钮)
// 2.1成品入库查询
2023-07-05 10:28:07 +08:00
export const outgetAll = (sid, btime, etime, btype, mcode, scode) => post('api/pda/cp/in/getAll', {
2023-06-30 11:29:19 +08:00
stor_id: sid,
begin_time: btime,
end_time: etime,
bill_type: btype,
material_code: mcode,
storagevehicle_code: scode
})
// 2.2强制确认(按钮)
export const inconfirm = (row) => post('api/pda/cp/in/confirm', {
row: row
})
2023-07-04 10:56:46 +08:00
// 刻字上料
// 1.1设备列表
export const devicelist = () => post('api/device/list', {
workprocedure_id: '1535144682756116480'
})
// 1.2车间列表
export const dictDetailByCode = (code) => post('api/dict/dictDetailByCode', {
code: code
})
// 1卸料
export const kzunload = (dcode, qty) => post('api/pda/kzunload', {
device_code: dcode,
qty: qty
})
2023-07-06 18:51:43 +08:00
// 2余料上完
2023-07-04 10:56:46 +08:00
export const kzresidue = (dcode) => post('api/pda/kzresidue', {
device_code: dcode
})
// 临时人工刻字上料
// 1刻字上料
export const tmpcallVechile = (dcode, qty) => post('api/pda/tmpcallVechile', {
device_code: dcode,
qty: qty
})
// 2空框回库
export const tmpsendVechile = (dcode) => post('api/pda/tmpsendVechile', {
device_code: dcode
})
2023-07-13 16:52:19 +08:00
// 公共接口
// 1.1车间列表
export const dictall = () => post('api/dict/all', {
})
// 人工倒料
// 1.1设备列表
export const washdevicelist = (wid) => post('api/device/list', {
workprocedure_id: wid
})
// 1.2根据设备列表获取物料信息
export const washquery = (parea, dcode) => post('api/pda/wash/query', {
product_area: parea,
device_code: dcode
})
// 1.3称重
export const washweighing = (list) => post('api/pda/wash/weighing', {
list: list
})
// 1.4确认
export const washweighingFinish = (dcode, dweight, mcode, mspec, mname) => post('api/pda/wash/weighingFinish', {
device_code: dcode,
deviceinstor_weight: dweight,
material_code: mcode,
material_spec: mspec,
material_name: mname
})
// 1.5查询物料列表
2023-07-14 11:16:47 +08:00
export const washmaterialList = (page, size, mcode) => post('api/pda/wash/materialList', {
2023-07-13 16:52:19 +08:00
page: page,
size: size,
material_code: mcode
})