const menus = { rule: [1, 1, 1], menuList: [ { title: '生产管理', children: [ { key: "factionalwork", title: "订单接收", url: "../plan/factionalwork", bgColor: '', limit: 'RB2301', icon: { size: 20, color: '#31b26b', type: '' } }, { key: "operationReceiving", title: "工序接收", url: "../plan/operationReceiving", bgColor: '', limit: 'RB2302', icon: { size: 20, color: '#00b7ee', type: '' } }, // { // key: "afterPlaReceive", // title: "镀后接收", // url: "../plan/afterPlaReceive", // bgColor: '', // limit: 'RB2320', // icon: { // size: 20, // color: '#31b26b', // type: '' // } // }, { key: "workReport", title: "工序报工", url: "../plan/workReport", bgColor: '', limit: 'RB2303', icon: { size: 20, color: '#31b26b', type: '' } }, { key: "warehousing", title: "镀前入库", url: "../production/warehousing", bgColor: '', limit: 'RB2305', icon: { size: 20, color: '#00b7ee', type: '' } }, { key: "warehousingIssue", title: "镀前出库", url: "../production/warehousingIssue", bgColor: '', limit: 'RB2306', icon: { size: 20, color: '#00b7ee', type: '' } }, { key: "afterPlatingInStore", title: "镀后入库", url: "../production/afterPlatingInStore", bgColor: '', limit: 'RB2307', icon: { size: 20, color: '#00b7ee', type: '' } }, ] }, { title: '质量管理', children: [ { key: "processIns", title: "工序检验", url: "../production/processIns", bgColor: '', limit: 'RB2306', icon: { size: 20, color: '#00b7ee', type: '' } }, ] }, { title: '设备管理', children: [ { key: "rackSet", title: "挂具绑定", url: "../production/rackSet", bgColor: '', limit: 'RB2308', icon: { size: 20, color: '#00b7ee', type: '' } }, { key: "rackFeibaSet", title: "挂靶绑定", url: "../production/rackFeibaSet", bgColor: '', limit: 'RB2309', icon: { size: 20, color: '#00b7ee', type: '' } }, { key: "feibaDevice", title: "靶备绑定", url: "../production/feibaDevice", bgColor: '', limit: 'RB2310', icon: { size: 20, color: '#00b7ee', type: '' } }, { key: "feibaSet", title: "飞靶绑定", url: "../production/feibaSet", bgColor: '', limit: 'RB2311', icon: { size: 20, color: '#00b7ee', type: '' } }, { key: "cardEquipmentSet", title: "设备绑定", url: "../production/cardEquipmentSet", bgColor: '', limit: 'RB2312', icon: { size: 20, color: '#00b7ee', type: '' } }, { key: "cardEquipmentSet_sj", title: "烧结绑定", url: "../production/sjCardEquipmentSet", bgColor: '', limit: 'RB2324', icon: { size: 20, color: '#00b7ee', type: '' } }, { key: "rackEcSet", title: "挂备绑定", url: "../production/rackEcSet", bgColor: '', limit: 'RB2313', icon: { size: 20, color: '#00b7ee', type: '' } }, { key: "unBinding", title: "设备解绑", url: "../production/unBinding", bgColor: '', limit: 'RB2314', icon: { size: 20, color: '#31b26b', type: '' } }, { key: "unBinding_sj", title: "烧结解绑", url: "../production/sjDeviceUnBind", bgColor: '', limit: 'RB2323', icon: { size: 20, color: '#31b26b', type: '' } }, ], }, { title: '物流配送', children: [ { key: "weighing", title: "物料称重", url: "../logistics/weighing", bgColor: '', limit: 'RB2325', icon: { size: 20, color: '#00b7ee', type: '' } }, { key: "packaging", title: "物料装箱", url: "../logistics/packaging", bgColor: '', limit: 'RB2325', icon: { size: 20, color: '#00b7ee', type: '' } }, { key: "delivery", title: "物料配送", url: "../logistics/delivery", bgColor: '', limit: 'RB2325', icon: { size: 20, color: '#00b7ee', type: '' } }, // { // key: "claimGoods", // title: "物料取货", // url: "../logistics/claimGoods", // bgColor: '', // limit: 'RB2325', // icon: { // size: 20, // color: '#00b7ee', // type: '' // } // }, { key: "site", title: "站点管理", url: "../logistics/site", bgColor: '', limit: 'RB2325', icon: { size: 20, color: '#00b7ee', type: '' } } ] } ], }; const loginOk = function (obj) { menus.rule = obj; }; const mainMenus = function () { return menus; //, 'quality' } module.exports = { menus: menus, mainMenus: mainMenus, loginOk: loginOk };