| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| | | <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com --> |
| | | <title>å·¥è£
管çå¤ä»½</title> |
| | | <desc>Created with Sketch.</desc> |
| | | <g id="å·¥è£
管çå¤ä»½" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
| | | <rect id="ç©å½¢" x="0" y="0" width="20" height="20"></rect> |
| | | <path d="M6.78926121,0.5 L3.19007351,0.5 C1.71249893,0.5 0.500187903,1.71240277 0.500187903,3.1710221 L0.500187903,6.7701364 C0.500187903,8.22879243 1.71249893,9.38432942 3.17111827,9.38432942 L9.38446229,9.38432942 L9.38446229,3.1710221 C9.38446229,1.71240277 8.22892528,0.5 6.78926121,0.5 L6.78926121,0.5 Z M8.07737495,8.07722373 L3.17111827,8.07722373 C2.45131375,8.07722373 1.82613875,7.48999596 1.82613875,6.7701364 L1.82613875,3.1710221 C1.82613875,2.45112585 2.45131375,1.82604258 3.17111827,1.82604258 L6.77032432,1.82604258 C7.49012883,1.82604258 8.07737495,2.43222561 8.07737495,3.1710221 L8.07737495,8.07722373 L8.07737495,8.07722373 Z M16.9048936,0.5 L13.3056876,0.5 C11.8470682,0.5 10.6346104,1.71240277 10.6346104,3.1710221 L10.6346104,9.38431107 L16.9048753,9.38431107 C18.3633111,9.38431107 19.4998928,8.22879243 19.4998928,6.77011804 L19.4998928,3.17100375 C19.4998928,1.71240277 18.344521,0.5 16.9048936,0.5 L16.9048936,0.5 Z M18.1741438,6.7701364 C18.1741438,7.48999596 17.6246614,8.07722373 16.8857182,8.07722373 L11.9228526,8.07722373 L11.9228526,3.1520852 C11.9228526,2.43222563 12.5668361,1.80710569 13.2867874,1.80710569 L16.8856998,1.80710569 C17.6058347,1.80710569 18.1741438,2.41328872 18.1741438,3.1520852 L18.1741438,6.7701364 L18.1741438,6.7701364 Z M0.500187903,13.2865077 L0.500187903,16.8857872 C0.500187903,18.3443148 1.71249893,19.4999802 3.17111827,19.4999802 L6.77032432,19.4999802 C8.22894365,19.4999802 9.36552537,18.3443148 9.36552537,16.8857872 L9.36552537,10.6157241 L3.17111827,10.6157241 C1.71249893,10.6157241 0.500187903,11.8279985 0.500187903,13.2865077 L0.500187903,13.2865077 Z M8.0773566,16.8858055 C8.0773566,17.6055733 7.50906571,18.1738642 6.77030595,18.1738642 L3.17111827,18.1738642 C2.45131375,18.1738642 1.82613875,17.6055733 1.82613875,16.8858055 L1.82613875,13.2865077 C1.82613875,12.5666482 2.45131375,11.9226647 3.17111827,11.9226647 L8.0773566,11.9226647 L8.0773566,16.8858055 L8.0773566,16.8858055 Z M16.9048936,10.6157241 L10.6157286,10.6157241 L10.6157286,16.8858055 C10.6157286,18.3443331 11.8280946,19.4999985 13.2868057,19.4999985 L16.8857182,19.4999985 C18.344521,19.4999985 19.4811027,18.3443331 19.4811027,16.8858055 L19.4811027,13.2865077 C19.4998928,11.8279985 18.344521,10.6157241 16.9048936,10.6157241 L16.9048936,10.6157241 Z M18.1741438,16.8858055 C18.1741438,17.6055733 17.6246614,18.1738642 16.8857182,18.1738642 L13.2867874,18.1738642 C12.5668361,18.1738642 11.9228526,17.6055733 11.9228526,16.8858055 L11.9228526,11.922683 L16.9048753,11.922683 C17.6246431,11.922683 18.1929339,12.547858 18.1929339,13.2865261 L18.1929339,16.8858055 L18.1741438,16.8858055 Z" id="å½¢ç¶" fill="#00A79D" fill-rule="nonzero"></path> |
| | | </g> |
| | | </svg> |
| | | <svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" |
| | | xmlns:xlink="http://www.w3.org/1999/xlink"> |
| | | <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com --> |
| | | <title>å·¥è£
管çå¤ä»½</title> |
| | | <desc>Created with Sketch.</desc> |
| | | <g id="å·¥è£
管çå¤ä»½" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
| | | <rect id="ç©å½¢" x="0" y="0" width="20" height="20"></rect> |
| | | <path |
| | | d="M6.78926121,0.5 L3.19007351,0.5 C1.71249893,0.5 0.500187903,1.71240277 0.500187903,3.1710221 L0.500187903,6.7701364 C0.500187903,8.22879243 1.71249893,9.38432942 3.17111827,9.38432942 L9.38446229,9.38432942 L9.38446229,3.1710221 C9.38446229,1.71240277 8.22892528,0.5 6.78926121,0.5 L6.78926121,0.5 Z M8.07737495,8.07722373 L3.17111827,8.07722373 C2.45131375,8.07722373 1.82613875,7.48999596 1.82613875,6.7701364 L1.82613875,3.1710221 C1.82613875,2.45112585 2.45131375,1.82604258 3.17111827,1.82604258 L6.77032432,1.82604258 C7.49012883,1.82604258 8.07737495,2.43222561 8.07737495,3.1710221 L8.07737495,8.07722373 L8.07737495,8.07722373 Z M16.9048936,0.5 L13.3056876,0.5 C11.8470682,0.5 10.6346104,1.71240277 10.6346104,3.1710221 L10.6346104,9.38431107 L16.9048753,9.38431107 C18.3633111,9.38431107 19.4998928,8.22879243 19.4998928,6.77011804 L19.4998928,3.17100375 C19.4998928,1.71240277 18.344521,0.5 16.9048936,0.5 L16.9048936,0.5 Z M18.1741438,6.7701364 C18.1741438,7.48999596 17.6246614,8.07722373 16.8857182,8.07722373 L11.9228526,8.07722373 L11.9228526,3.1520852 C11.9228526,2.43222563 12.5668361,1.80710569 13.2867874,1.80710569 L16.8856998,1.80710569 C17.6058347,1.80710569 18.1741438,2.41328872 18.1741438,3.1520852 L18.1741438,6.7701364 L18.1741438,6.7701364 Z M0.500187903,13.2865077 L0.500187903,16.8857872 C0.500187903,18.3443148 1.71249893,19.4999802 3.17111827,19.4999802 L6.77032432,19.4999802 C8.22894365,19.4999802 9.36552537,18.3443148 9.36552537,16.8857872 L9.36552537,10.6157241 L3.17111827,10.6157241 C1.71249893,10.6157241 0.500187903,11.8279985 0.500187903,13.2865077 L0.500187903,13.2865077 Z M8.0773566,16.8858055 C8.0773566,17.6055733 7.50906571,18.1738642 6.77030595,18.1738642 L3.17111827,18.1738642 C2.45131375,18.1738642 1.82613875,17.6055733 1.82613875,16.8858055 L1.82613875,13.2865077 C1.82613875,12.5666482 2.45131375,11.9226647 3.17111827,11.9226647 L8.0773566,11.9226647 L8.0773566,16.8858055 L8.0773566,16.8858055 Z M16.9048936,10.6157241 L10.6157286,10.6157241 L10.6157286,16.8858055 C10.6157286,18.3443331 11.8280946,19.4999985 13.2868057,19.4999985 L16.8857182,19.4999985 C18.344521,19.4999985 19.4811027,18.3443331 19.4811027,16.8858055 L19.4811027,13.2865077 C19.4998928,11.8279985 18.344521,10.6157241 16.9048936,10.6157241 L16.9048936,10.6157241 Z M18.1741438,16.8858055 C18.1741438,17.6055733 17.6246614,18.1738642 16.8857182,18.1738642 L13.2867874,18.1738642 C12.5668361,18.1738642 11.9228526,17.6055733 11.9228526,16.8858055 L11.9228526,11.922683 L16.9048753,11.922683 C17.6246431,11.922683 18.1929339,12.547858 18.1929339,13.2865261 L18.1929339,16.8858055 L18.1741438,16.8858055 Z" |
| | | id="å½¢ç¶" fill="#157b7e" fill-rule="nonzero"></path> |
| | | </g> |
| | | </svg> |
| | |
| | | activeMenu() { |
| | | const route = this.$route |
| | | const { meta, path } = route |
| | | // console.log(meta, path, 7) |
| | | console.log(meta, path, 7) |
| | | // if set path, the sidebar will highlight the path you set |
| | | removeCookie('ruleCode') |
| | | setCookie('ruleCode', meta.code) // å°ç¼ç è§åcodeåå°cookieéé¢ |
| | | // Vue.prototype.$buttoncode = meta.buttoncode |
| | | // Vue.prototype.$datacode = meta.datacode |
| | | // setCookie('buttoncode', meta.buttoncode)// æé®æé |
| | | // setCookie('datacode', meta.datacode)// æ°æ®æé |
| | | |
| | | removeCookie('datacode') |
| | | setCookie('datacode', meta.datacode) // æ°æ®æé |
| | | |
| | | Vue.prototype.$buttoncode = meta.buttoncode // æé®æé |
| | | |
| | | if (meta.activeMenu) { |
| | | return meta.activeMenu |
| | | } |
| | |
| | | component: Layout, |
| | | redirect: '/basicSettings/organizationList', |
| | | name: 'åºç¡è®¾ç½®', |
| | | code: '1001', |
| | | meta: { code: '1001', title: 'åºç¡è®¾ç½®', icon: 'tree2' }, |
| | | code: '01', |
| | | meta: { code: '01', title: 'åºç¡è®¾ç½®', icon: 'tree2' }, |
| | | alwaysShow: true, // å½childrenåªæä¸ä¸ªæ¶ï¼ä¹æ¾ç¤ºç¶èå |
| | | children: [ |
| | | { |
| | | path: 'organizationList', |
| | | name: 'organizationListCancel', |
| | | code: '1010', |
| | | code: '0101', |
| | | component: () => import('@/views/basicSettings/organizationList'), |
| | | meta: { code: '1010', title: 'ç»ç»æ¶æ', icon: '', keepAlive: true } |
| | | meta: { code: '0101', title: 'ç»ç»æ¶æ', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'postList', |
| | | name: 'personListCancel', |
| | | code: '0102', |
| | | component: () => import('@/views/basicSettings/postList'), |
| | | meta: { code: '0102', title: 'å²ä½ç®¡ç', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'groupList', |
| | | name: 'groupListCancel', |
| | | code: '0103', |
| | | component: () => import('@/views/basicSettings/groupList'), |
| | | meta: { code: '0103', title: 'çç»ç®¡ç', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'personList', |
| | | name: 'personListCancel', |
| | | code: '1011', |
| | | code: '0104', |
| | | component: () => import('@/views/basicSettings/personList'), |
| | | meta: { code: '1011', title: '人å管ç', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'postList', |
| | | name: 'personListCancel', |
| | | code: '1012', |
| | | component: () => import('@/views/basicSettings/postList'), |
| | | meta: { code: '1012', title: 'å²ä½ç®¡ç', icon: '', keepAlive: true } |
| | | meta: { code: '0104', title: '人å管ç', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'roleList', |
| | | name: 'roleListCancel', |
| | | code: '1013', |
| | | code: '0105', |
| | | component: () => import('@/views/basicSettings/roleList'), |
| | | meta: { code: '1013', title: 'è§è²ç®¡ç', icon: '', keepAlive: true } |
| | | meta: { code: '0105', title: 'è§è²ç®¡ç', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'groupList', |
| | | name: 'groupListCancel', |
| | | code: '1014', |
| | | component: () => import('@/views/basicSettings/groupList'), |
| | | meta: { code: '1014', title: 'çç»ç®¡ç', icon: '', keepAlive: true } |
| | | path: 'contactUnitList', |
| | | name: 'contactUnitListCancel', |
| | | code: '0106', |
| | | component: () => import('@/views/basicSettings/contactUnitList'), |
| | | meta: { code: '0106', title: '徿¥åä½', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'warehouseList', |
| | | name: 'warehouseListCancel', |
| | | code: '0107', |
| | | component: () => import('@/views/basicSettings/warehouseList'), |
| | | meta: { code: '0107', title: 'ä»åºè®¾ç½®', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'storageList', |
| | | name: 'storageListCancel', |
| | | code: '0108', |
| | | component: () => import('@/views/basicSettings/storageList'), |
| | | meta: { code: '0108', title: 'åºä½è®¾ç½®', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'installLampList', |
| | | name: 'installLampListCancel', |
| | | code: '0109', |
| | | component: () => import('@/views/basicSettings/installLampList'), |
| | | meta: { code: '0109', title: 'å®ç¯è®¾ç½®', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'powerDivider', |
| | | name: 'powerDividerCancel', |
| | | code: '1015', |
| | | code: '0110', |
| | | component: () => import('@/views/basicSettings/powerDivider'), |
| | | meta: { code: '1015', title: 'æéåé
', icon: '', keepAlive: true } |
| | | meta: { code: '0110', title: 'æéåé
', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'roleDivider', |
| | | name: 'roleDividerCancel', |
| | | code: '1016', |
| | | code: '0111', |
| | | hidden: true, |
| | | component: () => import('@/views/basicSettings/roleDivider'), |
| | | meta: { code: '1016', title: 'è§è²åé
', icon: '', keepAlive: true } |
| | | meta: { code: '0111', title: 'è§è²åé
', icon: '', keepAlive: true } |
| | | } |
| | | |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/materialManager', |
| | | component: Layout, |
| | | redirect: '/materialManager/unitList', |
| | | name: 'ç©æç®¡ç', |
| | | code: '02', |
| | | meta: { code: '02', title: 'ç©æç®¡ç', icon: 'table' }, |
| | | alwaysShow: true, // å½childrenåªæä¸ä¸ªæ¶ï¼ä¹æ¾ç¤ºç¶èå |
| | | children: [ |
| | | { |
| | | path: 'unitList', |
| | | name: 'unitListCancel', |
| | | code: '0201', |
| | | component: () => import('@/views/materialManager/unitList'), |
| | | meta: { code: '0201', title: '计éåä½', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'inventoryList', |
| | | name: 'inventoryListCancel', |
| | | code: '0202', |
| | | component: () => import('@/views/materialManager/inventoryList'), |
| | | meta: { code: '0202', title: 'åè´§æ¡£æ¡', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'materialList', |
| | | name: 'materialListCancel', |
| | | code: '0203', |
| | | component: () => import('@/views/materialManager/materialList'), |
| | | meta: { code: '0203', title: 'ç©ææ¸
å', icon: '', keepAlive: true } |
| | | } |
| | | |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/deviceManager', |
| | | component: Layout, |
| | | redirect: '/deviceManager/deviceType', |
| | | name: '设å¤ç®¡ç', |
| | | code: '03', |
| | | meta: { code: '03', title: '设å¤ç®¡ç', icon: 'example' }, |
| | | alwaysShow: true, |
| | | children: [ |
| | | { |
| | | path: 'deviceList', |
| | | name: 'deviceListCancel', |
| | | code: '0301', |
| | | component: () => import('@/views/deviceManager/deviceList'), |
| | | meta: { code: '0301', title: 'è®¾å¤æ¸
å', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'checkStandard', |
| | | name: 'checkStandardCancel', |
| | | code: '0302', |
| | | component: () => import('@/views/deviceManager/checkStandard'), |
| | | meta: { code: '0302', title: 'ç¹æ£æ å', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'checkPosition', |
| | | name: 'checkPositionCancel', |
| | | code: '0303', |
| | | component: () => import('@/views/deviceManager/checkPosition'), |
| | | meta: { code: '0303', title: 'ç¹æ£é¨ä½', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'maintainStandard', |
| | | name: 'maintainStandardCancel', |
| | | code: '0304', |
| | | component: () => import('@/views/deviceManager/maintainStandard'), |
| | | meta: { code: '0304', title: 'ä¿å
»æ å', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'maintainPosition', |
| | | name: 'maintainPositionCancel', |
| | | code: '0305', |
| | | component: () => import('@/views/deviceManager/maintainPosition'), |
| | | meta: { code: '0305', title: 'ä¿å
»é¨ä½', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'checkRecord', |
| | | name: 'checkRecordCancel', |
| | | code: '0306', |
| | | component: () => import('@/views/deviceManager/checkRecord'), |
| | | meta: { code: '0306', title: 'ç¹æ£è®°å½', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'maintainRecord', |
| | | name: 'maintainRecordCancel', |
| | | code: '0307', |
| | | component: () => import('@/views/deviceManager/maintainRecord'), |
| | | meta: { code: '0307', title: 'ä¿å
»è®°å½', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'repairRecord', |
| | | code: '0308', |
| | | name: 'repairRecordCancel', |
| | | component: () => import('@/views/deviceManager/repairRecord'), |
| | | meta: { code: '0308', title: '维修记å½', icon: '', keepAlive: true } |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/qualityManager', |
| | | component: Layout, |
| | | redirect: '/qualityManager/defectDefine', |
| | | name: 'è´¨é管ç', |
| | | code: '04', |
| | | meta: { code: '04', title: 'è´¨é管ç', icon: 'quality' }, |
| | | alwaysShow: true, |
| | | children: [ |
| | | { |
| | | path: 'defectDefine', |
| | | name: 'defectDefineCancel', |
| | | code: '0401', |
| | | component: () => import('@/views/qualityManager/defectDefine'), |
| | | meta: { code: '0401', title: '缺é·å®ä¹', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'processCheckItem', |
| | | name: 'processCheckItemCancel', |
| | | code: '0402', |
| | | component: () => import('@/views/qualityManager/processCheckItem'), |
| | | meta: { code: '0402', title: 'æ£éªé¡¹è®¾ç½®', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'qualityPlaning', |
| | | name: 'qualityPlaningCancel', |
| | | code: '0403', |
| | | component: () => import('@/views/qualityManager/qualityPlaning'), |
| | | meta: { code: '0403', title: 'è´¨æ£æ¹æ¡', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'processCheck', |
| | | name: 'processCheckCancel', |
| | | code: '0404', |
| | | component: () => import('@/views/qualityManager/processCheck'), |
| | | meta: { code: '0404', title: 'å·¥åºæ£éª', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'processCheckRecord', |
| | | name: 'processCheckRecordCancel', |
| | | code: '0405', |
| | | component: () => import('@/views/qualityManager/processCheckRecord'), |
| | | meta: { code: '0405', title: 'å·¥åºæ£éª', icon: '', keepAlive: true } |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/workOrder', |
| | | component: Layout, |
| | | redirect: '/workOrder/workOrderList', |
| | | name: 'å·¥å管ç', |
| | | code: '1002', |
| | | meta: { code: '1002', title: 'å·¥å管ç', icon: 'bbgl' }, |
| | | code: '05', |
| | | meta: { code: '05', title: 'å·¥å管ç', icon: 'bbgl' }, |
| | | alwaysShow: true, // å½childrenåªæä¸ä¸ªæ¶ï¼ä¹æ¾ç¤ºç¶èå |
| | | children: [ |
| | | { |
| | | path: 'produceOrderList', |
| | | name: 'produceOrderListCancel', |
| | | code: '0501', |
| | | component: () => import('@/views/workOrder/produceOrderList'), |
| | | meta: { code: '0501', title: 'ERP订å', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'workOrderList', |
| | | name: 'workOrderListCancel', |
| | | code: '1020', |
| | | code: '0502', |
| | | component: () => import('@/views/workOrder/workOrderList'), |
| | | meta: { code: '1010', title: 'å·¥åå表', icon: '', keepAlive: true } |
| | | meta: { code: '0502', title: 'MESå·¥å', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'workOrderSend', |
| | | name: 'workOrderSendCancel', |
| | | code: '1021', |
| | | code: '0503', |
| | | component: () => import('@/views/workOrder/workOrderSend'), |
| | | meta: { code: '1021', title: '工忴¾å', icon: '', keepAlive: true } |
| | | meta: { code: '0503', title: '工忴¾å', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'workOrderClose', |
| | | name: 'workOrderCloseCancel', |
| | | code: '1022', |
| | | code: '0504', |
| | | component: () => import('@/views/workOrder/workOrderClose'), |
| | | meta: { code: '1022', title: 'å·¥åå
³é', icon: '', keepAlive: true } |
| | | meta: { code: '0504', title: 'å·¥åå
³é', icon: '', keepAlive: true } |
| | | } |
| | | |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | path: '/produce', |
| | | component: Layout, |
| | | redirect: '/produce/stepReport', |
| | | name: 'ç产æ§è¡', |
| | | code: '1003', |
| | | meta: { code: '1003', title: 'ç产æ§è¡', icon: 'production' }, |
| | | code: '06', |
| | | meta: { code: '06', title: 'ç产æ§è¡', icon: 'component' }, |
| | | alwaysShow: true, // å½childrenåªæä¸ä¸ªæ¶ï¼ä¹æ¾ç¤ºç¶èå |
| | | children: [ |
| | | { |
| | | path: 'stepReport', |
| | | name: 'stepReportCancel', |
| | | code: '1030', |
| | | code: '0601', |
| | | component: () => import('@/views/produce/stepReport'), |
| | | meta: { code: '1030', title: 'å·¥åºæ¥å·¥', icon: '', keepAlive: true } |
| | | meta: { code: '0601', title: 'å·¥åºæ¥å·¥', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'reportCorrect', |
| | | name: 'reportCorrectCancel', |
| | | code: '1031', |
| | | code: '0602', |
| | | component: () => import('@/views/produce/reportCorrect'), |
| | | meta: { code: '1031', title: 'æ¥å·¥ä¿®æ£', icon: '', keepAlive: true } |
| | | meta: { code: '0602', title: 'æ¥å·¥è°æ´', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'reportVerify', |
| | | name: 'reportVerifyCancel', |
| | | code: '1032', |
| | | code: '0603', |
| | | component: () => import('@/views/produce/reportVerify'), |
| | | meta: { code: '1032', title: 'æ¥å·¥å®¡æ ¸', icon: '', keepAlive: true } |
| | | meta: { code: '0603', title: 'æ¥å·¥å®¡æ ¸', icon: '', keepAlive: true } |
| | | } |
| | | |
| | | ] |
| | | }, |
| | | { |
| | | path: '/statistic', |
| | | component: Layout, |
| | | redirect: '/statistic/reportList', |
| | | name: 'ç»è®¡æ¥è¡¨', |
| | | code: '1004', |
| | | meta: { code: '1004', title: 'ç»è®¡æ¥è¡¨', icon: 'quality' }, |
| | | alwaysShow: true, // å½childrenåªæä¸ä¸ªæ¶ï¼ä¹æ¾ç¤ºç¶èå |
| | | children: [ |
| | | { |
| | | path: 'reportList', |
| | | name: 'reportListCancel', |
| | | code: '1040', |
| | | component: () => import('@/views/statistic/reportList'), |
| | | meta: { code: '1040', title: 'æ¥å·¥è®°å½', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'monthReport', |
| | | name: 'monthReportCancel', |
| | | code: '1041', |
| | | component: () => import('@/views/statistic/monthReport'), |
| | | meta: { code: '1041', title: 'æåº¦ç»è®¡', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'workOrderProcess', |
| | | name: 'workOrderProcessCancel', |
| | | code: '1042', |
| | | component: () => import('@/views/statistic/workOrderProcess'), |
| | | meta: { code: '1042', title: 'å·¥åè¿åº¦', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'inProcessList', |
| | | name: 'inProcessListCancel', |
| | | code: '1043', |
| | | component: () => import('@/views/statistic/inProcessList'), |
| | | meta: { code: '1043', title: 'å¨å¶å表', icon: '', keepAlive: true } |
| | | } |
| | | |
| | | ] |
| | | }, |
| | | // { |
| | | // path: '/statistic', |
| | | // component: Layout, |
| | | // redirect: '/statistic/reportList', |
| | | // name: 'ç»è®¡æ¥è¡¨', |
| | | // code: '1004', |
| | | // meta: { code: '1004', title: 'ç»è®¡æ¥è¡¨', icon: 'quality' }, |
| | | // alwaysShow: true, // å½childrenåªæä¸ä¸ªæ¶ï¼ä¹æ¾ç¤ºç¶èå |
| | | // children: [ |
| | | // { |
| | | // path: 'reportList', |
| | | // name: 'reportListCancel', |
| | | // code: '1040', |
| | | // component: () => import('@/views/statistic/reportList'), |
| | | // meta: { code: '1040', title: 'æ¥å·¥è®°å½', icon: '', keepAlive: true } |
| | | // }, |
| | | // { |
| | | // path: 'monthReport', |
| | | // name: 'monthReportCancel', |
| | | // code: '1041', |
| | | // component: () => import('@/views/statistic/monthReport'), |
| | | // meta: { code: '1041', title: 'æåº¦ç»è®¡', icon: '', keepAlive: true } |
| | | // }, { |
| | | // path: 'workOrderProcess', |
| | | // name: 'workOrderProcessCancel', |
| | | // code: '1042', |
| | | // component: () => import('@/views/statistic/workOrderProcess'), |
| | | // meta: { code: '1042', title: 'å·¥åè¿åº¦', icon: '', keepAlive: true } |
| | | // }, { |
| | | // path: 'inProcessList', |
| | | // name: 'inProcessListCancel', |
| | | // code: '1043', |
| | | // component: () => import('@/views/statistic/inProcessList'), |
| | | // meta: { code: '1043', title: 'å¨å¶å表', icon: '', keepAlive: true } |
| | | // } |
| | | // |
| | | // ] |
| | | // }, |
| | | |
| | | { |
| | | path: '/systemSetting', |
| | | component: Layout, |
| | | redirect: '/systemSetting/encodingRules', |
| | | name: 'ç³»ç»è®¾ç½®', |
| | | code: '1005', |
| | | meta: { code: '1005', title: 'ç³»ç»è®¾ç½®', icon: 'xtsz' }, |
| | | code: '08', |
| | | meta: { code: '08', title: 'ç³»ç»è®¾ç½®', icon: 'xtsz' }, |
| | | alwaysShow: true, // å½childrenåªæä¸ä¸ªæ¶ï¼ä¹æ¾ç¤ºç¶èå |
| | | children: [ |
| | | { |
| | | path: 'reportList', |
| | | name: 'reportListCancel', |
| | | code: '1050', |
| | | component: () => import('@/views/systemSetting/encodingRules'), |
| | | meta: { code: '1050', title: 'ç¼ç è§å', icon: '', keepAlive: true } |
| | | }, { |
| | | path: 'menuList', |
| | | name: 'menuListCancel', |
| | | code: '1051', |
| | | code: '0801', |
| | | component: () => import('@/views/systemSetting/menuList'), |
| | | meta: { code: '1051', title: 'èå管ç', icon: '', keepAlive: true } |
| | | meta: { code: '0801', title: 'èå管ç', icon: '', keepAlive: true } |
| | | }, |
| | | { |
| | | path: 'reportList', |
| | | name: 'reportListCancel', |
| | | code: '0802', |
| | | component: () => import('@/views/systemSetting/encodingRules'), |
| | | meta: { code: '0802', title: 'ç¼ç è§å', icon: '', keepAlive: true } |
| | | } |
| | | ] |
| | | } |
| | |
| | | // get user menu |
| | | getMenu({ commit, state }) { |
| | | return new Promise((resolve, reject) => { |
| | | // console.log('è忥å£è¿æ¥äº11111') |
| | | LoginMenu({ |
| | | usertype: 'PC', |
| | | usercode: localStorage.getItem('usercode'), |
| | |
| | | }).then(res => { |
| | | if (res.code === '200') { |
| | | ButtonData().then(res2 => { |
| | | // localStorage.setItem('buttoncode', res2.data.map(i => i.buttoncode)) |
| | | Vue.prototype.$buttoncode = res2.data.map(i => i.buttoncode) |
| | | localStorage.setItem('ButtonData', JSON.stringify(res2.data)) |
| | | }) |
| | | |
| | |
| | | config.headers['Token'] = localStorage.getItem('token') |
| | | |
| | | config.headers['Menucode'] = getCookie('ruleCode') // ç¼ç è§å |
| | | |
| | | config.headers['Datacode'] = getCookie('datacode') // æ°æ®æé |
| | | return config |
| | | }, |
| | | error => { |
| | |
| | | type: 'error', |
| | | duration: 5 * 1000 |
| | | }) |
| | | store.state.app.buttonIsDisabled = false |
| | | return Promise.reject(error) |
| | | } |
| | | ) |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template /> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'ContactUnitList' |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template /> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'InstallLampList' |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| | |
| | | |
| | | <el-tree |
| | | ref="treeLeftRef" |
| | | key="treeLeftKey" |
| | | style="padding: 10px;overflow: auto;" |
| | | :style="{height:(tableHeight+180)+'px'}" |
| | | :data="treeLeft" |
| | |
| | | customID: 'torg_code', |
| | | childrenProperty: 'children' |
| | | }) |
| | | |
| | | this.treeLeft = this.cascaderOptions |
| | | this.$nextTick(() => { |
| | | this.treeLeft = this.cascaderOptions |
| | | this.$forceUpdate() |
| | | }) |
| | | }, |
| | | // å²ä½ è§è² çç» |
| | | async getAllSelectData() { |
| | |
| | | <div style="display: flex;"> |
| | | <div |
| | | ref="scrollLeft" |
| | | style="border-right: 1px solid rgba(0,0,0,0.2);width: 220px; |
| | | style="border-right: 1px solid rgba(0,0,0,0.2);width:260px; |
| | | overflow-y: auto;overflow-x:hidden;" |
| | | :style="{height:(tableHeight-40)+'px'}" |
| | | @scroll="scrollLeftScroll()" |
| | |
| | | </div> |
| | | <div |
| | | ref="scrollCenter" |
| | | style="width: 660px;padding-left: 10px;overflow-y: auto" |
| | | style="width: calc(100% - 260px );padding-left: 10px;overflow-y: auto" |
| | | :style="{height:(tableHeight-40)+'px'}" |
| | | @scroll="scrollCenterScroll()" |
| | | @mouseover="isScroll='center'" |
| | |
| | | ::v-deep .el-checkbox__label { |
| | | width: 55px; |
| | | } |
| | | |
| | | .el-checkbox-group { |
| | | margin-left: 0 !important; |
| | | padding-left: 40px; |
| | | } |
| | | |
| | | .el-checkbox-group:hover { |
| | | background: #f0f7ff; |
| | | } |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template /> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'StorageList' |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template /> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'WarehouseLIst' |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template /> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'InventoryList' |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template /> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'MaterialList' |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template /> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'UnitList' |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template /> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'ProcessCheckRecord' |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template /> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'QualityPlaning' |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template /> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'ProduceOrderList' |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |