Files
hht-tongbo-two/utils/mork2.js
2024-07-11 15:38:58 +08:00

174 lines
10 KiB
JavaScript

export const allAuthority = () => {
let res = {
code: '1',
result: {
rf_menu0: {
sonTree: [
{menu_id: '1', path: 'RF01', title: '生产管理', sonTree: [
{menu_id: '1', title: '生箔生产进度', path: '/pages/ProductManage/SboProdProgress'},
{menu_id: '2', title: '生箔工序', path: '/pages/ProductManage/SboProcess'},
{menu_id: '3', title: '烘烤工序', path: '/pages/ProductManage/BakeProcess'},
{menu_id: '4', title: '人工烘烤', path: '/pages/ProductManage/ManmadeBake'}
]},
{menu_id: '2', path: 'RF02', title: '半成品管理', sonTree: [
{menu_id: '1', title: '半成品入库', path: '/pages/WarehouseManage/SemifinishedInStore'},
{menu_id: '2', title: '半成品出库', path: '/pages/WarehouseManage/SemifinishedOutStore'},
]},
{menu_id: '3', path: 'RF03', title: '分切管理', sonTree: [
{menu_id: '1', title: '分切上料', path: '/pages/ProductManage/SlittingFeeding'},
{menu_id: '2', title: '空轴套管', path: '/pages/ProductManage/ZjCasing'},
{menu_id: '3', title: '空轴配送', path: '/pages/ProductManage/ZjDelivery'},
{menu_id: '4', title: '空轴进站', path: '/pages/ProductManage/ZjInStore'},
{menu_id: '5', title: '子卷出站', path: '/pages/ProductManage/ZjOutStore'},
]},
{menu_id: '4', path: 'RF04', title: '点位管理', sonTree: [
{menu_id: '1', title: '点位管理', path: '/pages/ProductManage/PointManage'},
{menu_id: '2', title: '异常出库解锁', path: '/pages/WarehouseManage/ErrorOutUnlock'}
]},
{menu_id: '5', path: 'RF05', title: '纸管/FRP管管理', sonTree: [
{menu_id: '1', title: '空管入库', path: '/pages/ProductManage/EmptyPipeInStore'},
{menu_id: '2', title: '空管出库', path: '/pages/ProductManage/EmptyPipeOutStore'},
]},
{menu_id: '6', path: 'RF06', title: '成品管理', sonTree: [
{menu_id: '1', title: '生产入库', path: '/pages/WarehouseManage/InStoreConfirm'},
{menu_id: '2', title: '退货入库', path: '/pages/WarehouseManage/ReturngoodsInStore'},
{menu_id: '3', title: '报废入库', path: '/pages/WarehouseManage/ScrapInStore'},
{menu_id: '4', title: '拆分入库', path: '/pages/WarehouseManage/InStoreSplit'},
{menu_id: '5', title: '生产区发货', path: '/pages/WarehouseManage/ProdDelivery'},
{menu_id: '6', title: '虚拟区发货', path: '/pages/WarehouseManage/XuniDelivery'},
{menu_id: '7', title: '贴标捆扎', path: '/pages/WarehouseManage/LabelBind'}
]},
{menu_id: '7', path: 'RF07', title: '在库管理', sonTree: [
{menu_id: '1', title: '盘点管理', path: '/pages/WarehouseManage/CheckList'},
]},
{menu_id: '8', path: 'RF08', title: '载具管理', sonTree: [
{menu_id: '1', title: '空载具入库', path: '/pages/WarehouseManage/EmptyInStore'},
{menu_id: '2', title: '空载具出库', path: '/pages/WarehouseManage/EmptyOutStore'},
]},
{menu_id: '9', path: 'RF09', title: '打印管理', sonTree: [
{menu_id: '1', title: '客户标签打印', path: '/pages/WarehouseManage/CustomerLabelPrint'},
]},
{menu_id: '10', path: 'RF10', title: '调度管理', sonTree: [
{menu_id: '1', title: '任务管理', path: '/pages/DispatchManage/TaskManage'},
{menu_id: '2', title: 'RGV状态查询', path: '/pages/DispatchManage/RGVStatus'}
]}
]
},
rf_menu1: {
sonTree: [
{menu_id: '1', path: 'RF08', title: '载具入库', sonTree: [
{menu_id: '1', title: '空载具入库', path: '/pages/SecondPhase/EmptyVehicleInStore'}
]},
{menu_id: '2', path: 'RF11', title: '空木箱入库', sonTree: [
{menu_id: '1', title: '空木箱入库', path: '/pages/SecondPhase/EmptyBoxInStore'}
]},
{menu_id: '3', path: 'RF12', title: '发货区', sonTree: [
{menu_id: '1', title: '发货区解绑', path: '/pages/SecondPhase/DeliveryUnbind'}
]},
{menu_id: '4', path: 'RF01', title: '生产管理', sonTree: [
{menu_id: '1', title: '生箔生产进度', path: '/pages/SecondPhase/production/SboProdProgress'},
{menu_id: '2', title: '生箔工序', path: '/pages/SecondPhase/production/SboProcess'},
{menu_id: '3', title: '烘烤工序', path: '/pages/SecondPhase/production/BakeProcess'},
{menu_id: '4', title: '表处工序', path: '/pages/SecondPhase/production/SurfaceProcess'},
{menu_id: '5', title: '人工烘烤', path: '/pages/SecondPhase/production/ManmadeBake'},
{menu_id: '6', title: '子卷质检', path: '/pages/SecondPhase/production/ZjCheck'}
]},
{menu_id: '5', path: 'RF03', title: '分切管理', sonTree: [
{menu_id: '1', title: '分切上料', path: '/pages/SecondPhase/slitting/SlittingFeeding'},
{menu_id: '6', title: '分切下料', path: '/pages/SecondPhase/slitting/SlittingCutting'},
{menu_id: '2', title: '空轴套管', path: '/pages/SecondPhase/slitting/ZjCasing'},
{menu_id: '3', title: '空轴配送', path: '/pages/SecondPhase/slitting/ZjDelivery'},
{menu_id: '4', title: '空轴进站', path: '/pages/SecondPhase/slitting/ZjInStore'},
{menu_id: '5', title: '子卷出站', path: '/pages/SecondPhase/slitting/ZjOutStore'},
{menu_id: '7', title: '穿拔轴初始化', path: '/pages/SecondPhase/slitting/DoInitShaft'},
{menu_id: '8', title: '纸管绑定', path: '/pages/SecondPhase/slitting/PaperBind'},
{menu_id: '8', title: '分切暂存下料', path: '/pages/SecondPhase/slitting/CacheCut'},
{menu_id: '8', title: '分切暂存清除', path: '/pages/SecondPhase/slitting/CacheClean'},
{menu_id: '8', title: '气胀轴库维护', path: '/pages/SecondPhase/slitting/ShaftSave'}
]},
{menu_id: '6', path: 'RF04', title: '点位管理', sonTree: [
{menu_id: '1', title: '点位管理', path: '/pages/SecondPhase/point/PointManage'},
{menu_id: '2', title: '异常出库解锁', path: '/pages/SecondPhase/point/ErrorOutUnlock'}
]},
{menu_id: '7', path: 'RF06', title: '成品入库', sonTree: [
{menu_id: '1', title: '退货口入库', path: '/pages/SecondPhase/finished/ReturnToStore'},
{menu_id: '2', title: '异常口入库', path: '/pages/SecondPhase/finished/abnorToStore'},
{menu_id: '3', title: '木箱称重', path: '/pages/SecondPhase/finished/BoxWeight'}
]}
]
}
}}
return res
}
export const authority = () => {
let res = {
code: '1',
result: {
rf_menu0: {
sonTree: [
{title: '生产管理',sonTree: [{title: '生箔生产进度'},{title: '生箔工序'},{title: '烘烤工序'},{title: '人工烘烤'}]},
{title: '半成品管理',sonTree: [{title: '半成品入库'},{title: '半成品出库'}]},
{title: '分切管理',sonTree: [{title: '分切上料'},{title: '空轴套管'},{title: '空轴配送'},{title: '空轴进站'},{title: '子卷出站'}]},
{title: '点位管理',sonTree: [{title: '点位管理'},{title: '异常出库解锁'}]},
{title: '纸管/FRP管管理', sonTree: [{title: '空管入库'},{title: '空管出库'}]},
{title: '成品管理',sonTree: [{title: '生产入库'},{title: '退货入库'},{title: '报废入库'},{title: '拆分入库'},{title: '生产区发货'},{title: '虚拟区发货'},{title: '贴标捆扎'}]},
{title: '在库管理', sonTree: [{title: '盘点管理'}]},
{title: '载具管理', sonTree: [{title: '空载具入库'},{title: '空载具出库'}]},
{title: '打印管理', sonTree: [{title: '客户标签打印'}]},
{title: '调度管理', sonTree: [{title: '任务管理'},{title: 'RGV状态查询'}]}
]
},
rf_menu1: {
sonTree: [
{title: '载具入库',sonTree: [{title: '空载具入库'}]},
{title: '空木箱入库',sonTree: [{title: '空木箱入库'}]},
{title: '发货区',sonTree: [{title: '发货区解绑'}]},
{title: '生产管理',sonTree: [{title: '生箔生产进度'},{title: '生箔工序'},{title: '烘烤工序'},{title: '表处工序'},{title: '人工烘烤'},{title: '子卷质检'}]},
{title: '分切管理', sonTree: [{title: '分切上料'},{title: '分切下料'},{title: '空轴套管'},{title: '空轴配送'},{title: '空轴进站'},{title: '子卷出站'},{title: '穿拔轴初始化'},{title: '纸管绑定'},{title: '分切暂存下料'},{title: '分切暂存清除'},{title: '气胀轴库维护'}]},
{title: '点位管理', sonTree: [{title: '点位管理'},{title: '异常出库解锁'}]},
{title: '成品入库', sonTree: [{title: '退货口入库'},{title: '异常口入库'},{title: '木箱称重'}]}
]
}
}
}
return res
}
export const twoPdaIvtQuery = (no, code) => {
let res = {
data: [{bill_code: '1', bill_status: 'ljdjldj'}, {bill_code: '2'}, {bill_code: '3', bill_status: 'ljdjldj'}, {bill_code: '4'}, {bill_code: '5', bill_status: 'ljdjldj'}, {bill_code: '6'}, {bill_code: '7', bill_status: 'ljdjldj'}, {bill_code: '8'}, {bill_code: '9', bill_status: 'ljdjldj'}, {bill_code: '12', confirm_time: '2020-10-20'}]
}
return res
}
export const twoPdaIvtDtlQuery = (no, code) => {
let res = {
data: [{package_box_sn: '1', point_code: 'ljdjldj'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}]
}
return res
}
export const twoPdaIvtbBoxDtlQuery = (no) => {
let res = {
data: [{package_box_sn: '1', container_name: 'ljdjldj'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}, {package_box_sn: '2'}]
}
return res
}
export const getShaftPoint = () => {
let res = [{"text":"穿拔轴点位1","value":"B_CBJ01"},{"text":"穿拔轴点位2","value":"B_CBJ02"},{"text":"穿拔轴点位3","value":"B_CBJ03"},{"text":"穿拔轴点位4","value":"B_CBJ04"}]
return res
}
export const queryPaperMaterial = () => {
let res = {
rows: [{text: '物料一', value: '001'}, {text: '物料a', value: '002'}, {text: '物料b', value: '003'}]
}
return res
}
export const getCutCacheAgvPoints = () => {
let res = [{"text":"B2_FQZC01","value":"B2分切缓存位01"},{"text":"B2_FQZC02","value":"B2分切缓存位02"},{"text":"B2_FQZC03","value":"B2分切缓存位03"},{"text":"B2_FQZC04","value":"B2分切缓存位04"},{"text":"B2_FQZC05","value":"B2分切缓存位05"},{"text":"B2_FQZC06","value":"B2分切缓存位06"},{"text":"B2_FQZC07","value":"B2分切缓存位07"},{"text":"B2_FQZC08","value":"B2分切缓存位08"},{"text":"B2_FQZC09","value":"B2分切缓存位09"},{"text":"B2_FQZC10","value":"B2分切缓存位10"}]
return res
}
export const queryProductArea = () => {
let res = {
data: [{text: '物料一', value: '001'}, {text: '物料a', value: '002'}, {text: '物料b', value: '003'}]
}
return res
}