This commit is contained in:
shijing 2022-04-21 14:08:25 +08:00
parent 72c97071fe
commit a701296baa
2 changed files with 52 additions and 52 deletions

View File

@ -113,7 +113,7 @@ export const asyncRoutes = [
path: 'material/:id', path: 'material/:id',
name: 'MaterialDO', name: 'MaterialDO',
component: () => import('@/views/mtm/materialdo.vue'), component: () => import('@/views/mtm/materialdo.vue'),
meta: { title: '绑定检查表', perms: ['vendor_manage'] }, meta: { title: '绑定检查表' },
hidden: true hidden: true
} }
, ,
@ -121,7 +121,7 @@ export const asyncRoutes = [
path: 'materialDetail/:id', path: 'materialDetail/:id',
name: 'MaterialDetail', name: 'MaterialDetail',
component: () => import('@/views/mtm/materialDetail.vue'), component: () => import('@/views/mtm/materialDetail.vue'),
meta: { title: '物料详情', perms: ['vendor_manage'] }, meta: { title: '物料详情' },
hidden: true hidden: true
}, },
{ {
@ -134,7 +134,7 @@ export const asyncRoutes = [
path: 'step/:id', path: 'step/:id',
name: 'Step', name: 'Step',
component: () => import('@/views/mtm/step.vue'), component: () => import('@/views/mtm/step.vue'),
meta: { title: '子工序', perms: ['vendor_manage'] }, meta: { title: '子工序'},
hidden: true hidden: true
} }
, ,
@ -142,7 +142,7 @@ export const asyncRoutes = [
path: 'stepdo/:id', path: 'stepdo/:id',
name: 'StepDo', name: 'StepDo',
component: () => import('@/views/mtm/stepdo.vue'), component: () => import('@/views/mtm/stepdo.vue'),
meta: { title: '子工序查看', perms: ['vendor_manage'] }, meta: { title: '子工序查看'},
hidden: true hidden: true
}, },
{ {
@ -155,13 +155,13 @@ export const asyncRoutes = [
path: 'productList', path: 'productList',
name: 'productList', name: 'productList',
component: () => import('@/views/mtm/productList'), component: () => import('@/views/mtm/productList'),
meta: { title: '成品列表', icon: 'material', perms: ['mtm_material'] } meta: { title: '成品列表', icon: 'material', perms: ['mtm_product'] }
} }
,{ ,{
path: 'wproductList', path: 'wproductList',
name: 'wproductList', name: 'wproductList',
component: () => import('@/views/mtm/wproductList'), component: () => import('@/views/mtm/wproductList'),
meta: { title: '半成品列表', icon: 'material', perms: ['mtm_material'] } meta: { title: '半成品列表', icon: 'material', perms: ['mtm_wproduct'] }
} }
] ]
}, },
@ -183,7 +183,7 @@ export const asyncRoutes = [
path: 'work/:id', path: 'work/:id',
name: 'work', name: 'work',
component: () => import('@/views/pm/work'), component: () => import('@/views/pm/work'),
meta: { title: '生产子计划', perms: ['pm_plan'] }, meta: { title: '生产子计划'},
hidden: true hidden: true
}, },
{ {
@ -199,24 +199,24 @@ export const asyncRoutes = [
component: () => import('@/views/pm/management'), component: () => import('@/views/pm/management'),
meta: { title: '生产任务管理', icon: 'productionTask', perms: ['pm_testitem'] } meta: { title: '生产任务管理', icon: 'productionTask', perms: ['pm_testitem'] }
}, },
{ {
path: 'plandetails/:id', path: 'plandetails/:id',
name: 'plandetails', name: 'plandetails',
component: () => import('@/views/pm/plandetails'), component: () => import('@/views/pm/plandetails'),
meta: { title: '生产任务详情', perms: ['pm_testitem'] }, meta: { title: '生产任务详情'},
hidden: true hidden: true
} }
, ,
{ {
path: 'processcard/:id', path: 'processcard/:id',
name: 'processcard', name: 'processcard',
component: () => import('@/views/pm/processcard'), component: () => import('@/views/pm/processcard'),
meta: { title: '流程卡', perms: ['vendor_manage'] }, meta: { title: '流程卡' },
hidden: true hidden: true
} }
] ]
}, },
{ {
@ -226,7 +226,7 @@ export const asyncRoutes = [
name: 'wpm', name: 'wpm',
meta: { title: '生产执行', icon: 'execute', perms: ['wpm_manage'] }, meta: { title: '生产执行', icon: 'execute', perms: ['wpm_manage'] },
children: [ children: [
{ {
path: 'worktask', path: 'worktask',
name: 'worktask', name: 'worktask',
component: () => import('@/views/wpm/worktask'), component: () => import('@/views/wpm/worktask'),
@ -316,10 +316,10 @@ export const asyncRoutes = [
path: 'contractdetail/:id', path: 'contractdetail/:id',
name: 'contractdetail', name: 'contractdetail',
component: () => import('@/views/sam/contractdetail'), component: () => import('@/views/sam/contractdetail'),
meta: { title: '合同详情', perms: ['sam_contract'] }, meta: { title: '合同详情'},
hidden: true hidden: true
} }
, ,
{ {
path: 'order', path: 'order',
@ -327,13 +327,13 @@ export const asyncRoutes = [
component: () => import('@/views/sam/order'), component: () => import('@/views/sam/order'),
meta: { title: '订单管理', icon: 'order', perms: ['sam_order'] } meta: { title: '订单管理', icon: 'order', perms: ['sam_order'] }
} }
, ,
{ {
path: 'orderdetail/:id', path: 'orderdetail/:id',
name: 'orderdetail', name: 'orderdetail',
component: () => import('@/views/sam/orderdetail'), component: () => import('@/views/sam/orderdetail'),
meta: { title: '订单详情', perms: ['sam_order'] }, meta: { title: '订单详情'},
hidden: true hidden: true
}, },
{ {
@ -347,7 +347,7 @@ export const asyncRoutes = [
path: 'salesdetail/:id', path: 'salesdetail/:id',
name: 'salesdetail', name: 'salesdetail',
component: () => import('@/views/sam/salesdetail'), component: () => import('@/views/sam/salesdetail'),
meta: { title: '销售详情', perms: ['sam_sales'] }, meta: { title: '销售详情'},
hidden: true hidden: true
} }
] ]
@ -383,7 +383,7 @@ export const asyncRoutes = [
path: 'taskdetails/:id', path: 'taskdetails/:id',
name: 'taskdetails', name: 'taskdetails',
component: () => import('@/views/qm/taskdetails'), component: () => import('@/views/qm/taskdetails'),
meta: { title: '过程检验详情', perms: ['qm_processtest'] }, meta: { title: '过程检验详情'},
hidden: true hidden: true
} }
, ,
@ -391,7 +391,7 @@ export const asyncRoutes = [
path: 'wproduct/:id', path: 'wproduct/:id',
name: 'wproduct', name: 'wproduct',
component: () => import('@/views/qm/wproduct'), component: () => import('@/views/qm/wproduct'),
meta: { title: '工序玻璃', perms: ['vendor_manage'] }, meta: { title: '工序玻璃' },
hidden: true hidden: true
} }
, ,
@ -399,7 +399,7 @@ export const asyncRoutes = [
path: 'taskrecordfrom/:id', path: 'taskrecordfrom/:id',
name: 'taskrecordfrom', name: 'taskrecordfrom',
component: () => import('@/views/qm/taskrecordfrom'), component: () => import('@/views/qm/taskrecordfrom'),
meta: { title: '检验记录', perms: ['vendor_manage'] }, meta: { title: '检验记录'},
hidden: true hidden: true
} }
, ,
@ -415,7 +415,7 @@ export const asyncRoutes = [
component: () => import('@/views/qm/unproduct'), component: () => import('@/views/qm/unproduct'),
meta: { title: '不合格品', icon: 'unqualified', perms: ['qm_unproduct'] } meta: { title: '不合格品', icon: 'unqualified', perms: ['qm_unproduct'] }
} }
] ]
}, },
{ {
@ -423,19 +423,19 @@ export const asyncRoutes = [
component: Layout, component: Layout,
redirect: '/personnel/user', redirect: '/personnel/user',
name: 'personnel', name: 'personnel',
meta: { title: '人员管理', icon: 'user', perms: ['personnel_set'] }, meta: { title: '人员管理', icon: 'user', perms: ['employee_manage'] },
children: [ children: [
{ {
path: 'user', path: 'user',
name: 'user', name: 'user',
component: () => import('@/views/personnel/user'), component: () => import('@/views/personnel/user'),
meta: { title: '人员列表', icon: 'userList', perms: ['personnel_user'] } meta: { title: '人员列表', icon: 'userList', perms: ['employee_userList'] }
}, },
{ {
path: 'attendance', path: 'attendance',
name: 'attendance', name: 'attendance',
component: () => import('@/views/personnel/attendance'), component: () => import('@/views/personnel/attendance'),
meta: { title: '考勤列表', icon: 'attendance', perms: ['personnel_attendance'] } meta: { title: '考勤列表', icon: 'attendance', perms: ['employee_attendance'] }
} ,{ } ,{
path: 'userupdate/:id', path: 'userupdate/:id',
name: 'userupdate', name: 'userupdate',
@ -443,7 +443,7 @@ export const asyncRoutes = [
meta: { title: '人员信息详情', icon: 'home' }, meta: { title: '人员信息详情', icon: 'home' },
hidden: true hidden: true
}, },
] ]
}, },
{ {
@ -463,7 +463,7 @@ export const asyncRoutes = [
path: 'inventory/:id', path: 'inventory/:id',
name: 'inventory', name: 'inventory',
component: () => import('@/views/inm/inventory'), component: () => import('@/views/inm/inventory'),
meta: { title: '仓库物料', perms: ['vendor_manage'] }, meta: { title: '仓库物料' },
hidden: true hidden: true
} }
, ,
@ -483,7 +483,7 @@ export const asyncRoutes = [
path: 'fifodetail/:id', path: 'fifodetail/:id',
name: 'fifodetail', name: 'fifodetail',
component: () => import('@/views/inm/fifodetail'), component: () => import('@/views/inm/fifodetail'),
meta: { title: '仓库物料', perms: ['vendor_manage'] }, meta: { title: '仓库物料'},
hidden: true hidden: true
}, },
{ {
@ -498,7 +498,7 @@ export const asyncRoutes = [
component: () => import('@/views/inm/product'), component: () => import('@/views/inm/product'),
meta: { title: '成品库', icon: 'finishedProduct', perms: ['inm_product'] } meta: { title: '成品库', icon: 'finishedProduct', perms: ['inm_product'] }
}, },
] ]
}, },
{ {
@ -506,25 +506,25 @@ export const asyncRoutes = [
component: Layout, component: Layout,
redirect: '/procurement/vendor', redirect: '/procurement/vendor',
name: 'procurement', name: 'procurement',
meta: { title: '采购管理', icon: 'purchase', perms: ['procurement_manage'] }, meta: { title: '采购管理', icon: 'purchase', perms: ['pum_manage'] },
children: [ children: [
{ {
path: 'vendor', path: 'vendor',
name: 'vendor', name: 'vendor',
component: () => import('@/views/procurement/vendor'), component: () => import('@/views/procurement/vendor'),
meta: { title: '供应商', icon: 'supplier', perms: ['procurement_vendor'] } meta: { title: '供应商', icon: 'supplier', perms: ['pum_vendor'] }
}, },
{ {
path: 'puorder', path: 'puorder',
name: 'puorder', name: 'puorder',
component: () => import('@/views/procurement/puorder'), component: () => import('@/views/procurement/puorder'),
meta: { title: '采购订单', icon: 'purchaseOrder', perms: ['procurement_puorder'] } meta: { title: '采购订单', icon: 'purchaseOrder', perms: ['pum_puorder'] }
}, },
{ {
path: 'puorderitem/:id', path: 'puorderitem/:id',
name: 'puorderitem', name: 'puorderitem',
component: () => import('@/views/procurement/puorderitem'), component: () => import('@/views/procurement/puorderitem'),
meta: { title: '采购订单项', perms: ['procurement_puorder'] }, meta: { title: '采购订单项'},
hidden: true hidden: true
} }
] ]
@ -554,18 +554,18 @@ export const asyncRoutes = [
component: () => import('@/views/statistics/personStatistics'), component: () => import('@/views/statistics/personStatistics'),
meta: { title: '人员统计', icon: 'personStatistics', perms: ['statistics_personStatistics'] } meta: { title: '人员统计', icon: 'personStatistics', perms: ['statistics_personStatistics'] }
}, },
{ /* {
path: 'costStatistics', path: 'costStatistics',
name: 'costStatistics', name: 'costStatistics',
component: () => import('@/views/statistics/costStatistics'), component: () => import('@/views/statistics/costStatistics'),
meta: { title: '成本统计', icon: 'costStatistics', perms: ['workflow_index'] } meta: { title: '成本统计', icon: 'costStatistics', perms: ['workflow_index'] }
}, },
{ {
path: 'testStatistics', path: 'testStatistics',
name: 'testStatistics', name: 'testStatistics',
component: () => import('@/views/statistics/testStatistics'), component: () => import('@/views/statistics/testStatistics'),
meta: { title: '检验统计', icon: 'testStatistics', perms: ['workflow_index'] } meta: { title: '检验统计', icon: 'testStatistics', perms: ['workflow_index'] }
}, },*/
] ]
}, },
@ -647,7 +647,7 @@ export const asyncRoutes = [
meta: { title: '用户管理', icon: 'home', perms: ['user_manage'] } meta: { title: '用户管理', icon: 'home', perms: ['user_manage'] }
} }
, ,
{ {
path: 'organization', path: 'organization',
name: 'Organization', name: 'Organization',
@ -676,7 +676,7 @@ export const asyncRoutes = [
path: 'file', path: 'file',
name: 'File', name: 'File',
component: () => import('@/views/system/file'), component: () => import('@/views/system/file'),
meta: { title: '文件库', icon: 'home', perms: ['file_room'] } meta: { title: '文件库', icon: 'home', perms: ['system_file'] }
}, },
{ {
path: 'task', path: 'task',

View File

@ -333,9 +333,9 @@ export default {
this.user.avatar = res.data.path; this.user.avatar = res.data.path;
}, },
beforeAvatarUpload(file) { beforeAvatarUpload(file) {
const isLt2M = file.size / 1024 / 1024 < 2; const isLt2M = file.size / 1024 / 1024 < 5;
if (!isLt2M) { if (!isLt2M) {
this.$message.error("上传头像图片大小不能超过 2MB!"); this.$message.error("上传头像图片大小不能超过 5MB!");
} }
return isLt2M; return isLt2M;
}, },
@ -344,9 +344,9 @@ export default {
return data.label.indexOf(value) !== -1; return data.label.indexOf(value) !== -1;
}, },
beforeUpload(file) { beforeUpload(file) {
const isLt1M = file.size / 1024 / 1024 < 1; const isLt1M = file.size / 1024 / 1024 < 5;
if (!isLt1M) { if (!isLt1M) {
this.$message.error("上传头像图片大小不能超过 1MB!"); this.$message.error("上传头像图片大小不能超过 5MB!");
} }
return isLt1M; return isLt1M;
}, },
@ -402,4 +402,4 @@ export default {
}, },
}, },
}; };
</script> </script>