diff --git a/hb_client/src/api/workflow.js b/hb_client/src/api/workflow.js
index 137b132..069f700 100644
--- a/hb_client/src/api/workflow.js
+++ b/hb_client/src/api/workflow.js
@@ -163,13 +163,45 @@ export function ticketAccpet(id,data) {
})
}
//撤回工单,允许创建人在指定状态撤回工单至初始状态
-export function getTicketRetreat(id,data) {
+export function ticketRetreat(id,data) {
return request({
url: `/wf/ticket/${id}/retreat/`,
method: 'post',
data
})
}
+//关闭工单,仅允许创建人在初始状态关闭工单
+export function ticketAddNode(id,data) {
+ return request({
+ url: `/wf/ticket/${id}/add_node/`,
+ method: 'post',
+ data
+ })
+}
+//加签
+export function ticketClose(id,data) {
+ return request({
+ url: `/wf/ticket/${id}/close/`,
+ method: 'post',
+ data
+ })
+}
+//加签
+export function ticketAddNodeEnd(id,data) {
+ return request({
+ url: `/wf/ticket/${id}/add_node_end/`,
+ method: 'post',
+ data
+ })
+}
+//工单删除
+export function ticketDestory(data) {
+ return request({
+ url: `/wf/ticket/destory/`,
+ method: 'post',
+ data
+ })
+}
//工单详情
export function getTicketDetail(id) {
return request({
diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js
index 19400d5..001d272 100644
--- a/hb_client/src/router/index.js
+++ b/hb_client/src/router/index.js
@@ -86,13 +86,13 @@ export const asyncRoutes = [
component: Layout,
redirect: '/mtm/material/',
name: 'mtm',
- meta: { title: '制造管理', icon: 'example', perms: ['procurement_set'] },
+ meta: { title: '制造管理', icon: 'example', perms: ['mtm_manage'] },
children: [
{
path: 'material',
name: 'material',
component: () => import('@/views/mtm/material'),
- meta: { title: '物料清单', icon: 'example', perms: ['vendor_manage'] }
+ meta: { title: '物料清单', icon: 'example', perms: ['mtm_material'] }
}
,
{
@@ -106,7 +106,7 @@ export const asyncRoutes = [
path: 'process',
name: 'process',
component: () => import('@/views/mtm/process'),
- meta: { title: '工序管理', icon: 'example', perms: ['vendor_manage'] }
+ meta: { title: '工序管理', icon: 'example', perms: ['mtm_process'] }
},
{
path: 'step/:id',
@@ -127,7 +127,7 @@ export const asyncRoutes = [
path: '/mtm/productprocess/',
name: 'productprocess',
component: () => import('@/views/mtm/productprocess'),
- meta: { title: '产品管理', icon: 'example', perms: ['vendor_manage'] }
+ meta: { title: '产品管理', icon: 'example', perms: ['mtm_productprocess'] }
},
]
}
@@ -137,7 +137,7 @@ export const asyncRoutes = [
component: Layout,
redirect: '/pm/plan',
name: 'pm',
- meta: { title: '生产管理', icon: 'example', perms: ['equipment_set'] },
+ meta: { title: '生产管理', icon: 'example', perms: ['pm_manage'] },
children: [
{
path: 'plan',
@@ -157,13 +157,13 @@ export const asyncRoutes = [
path: 'resources',
name: 'resources',
component: () => import('@/views/pm/resources'),
- meta: { title: '生产资源配置', icon: 'example', perms: ['index_manage'] }
+ meta: { title: '生产资源配置', icon: 'example', perms: ['pm_resources'] }
},
{
path: 'testitem',
name: 'testitem',
component: () => import('@/views/pm/plan'),
- meta: { title: '生产作业管理', icon: 'example', perms: ['index_manage'] }
+ meta: { title: '生产作业管理', icon: 'example', perms: ['pm_testitem'] }
}
]
},
@@ -172,31 +172,31 @@ export const asyncRoutes = [
component: Layout,
redirect: '/em/equipment',
name: 'em',
- meta: { title: '设备管理', icon: 'example', perms: ['equipment_set'] },
+ meta: { title: '设备管理', icon: 'example', perms: ['em_manage'] },
children: [
{
path: 'equipment',
name: 'equipment',
component: () => import('@/views/em/equipment'),
- meta: { title: '生产设备', icon: 'example', perms: ['index_manage'] }
+ meta: { title: '生产设备', icon: 'example', perms: ['em_equipment'] }
},
{
path: 'detection ',
name: 'detection ',
component: () => import('@/views/em/detection'),
- meta: { title: '监视和测量设备', icon: 'example', perms: ['index_manage'] }
+ meta: { title: '监视和测量设备', icon: 'example', perms: ['em_detection'] }
},
{
path: 'record',
name: 'record',
component: () => import('@/views/em/record'),
- meta: { title: '校准检定记录', icon: 'example', perms: ['index_manage'] }
+ meta: { title: '校准检定记录', icon: 'example', perms: ['em_record'] }
},
{
path: 'detection ',
name: 'detection ',
component: () => import('@/views/em/detection'),
- meta: { title: '运维记录', icon: 'example', perms: ['index_manage'] }
+ meta: { title: '运维记录', icon: 'example', perms: ['em_detection'] }
}
]
},
@@ -327,32 +327,39 @@ export const asyncRoutes = [
component: Layout,
redirect: '/workflow/index',
name: 'workflow',
- meta: { title: '工作流', icon: 'example', perms: ['workflow_set'] },
+ meta: { title: '工作流', icon: 'example', perms: ['workflow_manage'] },
children: [
{
path: 'index',
name: 'index',
component: () => import('@/views/workflow/index'),
- meta: { title: '工作流配置', icon: 'example', perms: ['workflow_manage'] }
+ meta: { title: '工作流配置', icon: 'example', perms: ['workflow_index'] }
},
{
path: 'ticket',
name: 'ticket',
component: () => import('@/views/workflow/ticket'),
- meta: { title: '工单管理', icon: 'example', perms: ['workflow_manage'] },
+ meta: { title: '工单管理', icon: 'example' ,noCache: true, perms: ['workflow_ticket'] },
+ },
+ {
+ path: 'workFlowTickets',
+ name: 'workFlowTickets',
+ component: () => import('@/views/workflow/workFlowTickets'),
+ meta: { title: '工单管理', icon: 'example' ,noCache: true,},
+ hidden: true
},
{
path: 'configuration',
name: 'configuration',
component: () => import('@/views/workflow/configuration'),
- meta: { title: '人员信息详情', icon: 'example', perms: ['workflow_manage'] },
+ meta: { title: '人员信息详情', icon: 'example' },
hidden: true
},
{
path: 'ticketHandle',
name: 'ticketHandle',
component: () => import('@/views/workflow/ticketHandle'),
- meta: { title: '工单处理', icon: 'example', perms: ['workflow_manage'] },
+ meta: { title: '工单处理', icon: 'example',noCache: true,},
hidden: true
},
]
diff --git a/hb_client/src/styles/index.scss b/hb_client/src/styles/index.scss
index 059de63..d80b15e 100644
--- a/hb_client/src/styles/index.scss
+++ b/hb_client/src/styles/index.scss
@@ -86,21 +86,21 @@ div:focus {
.el-dialog__header {
padding: 10px 10px 6px;
}
-// .el-dialog{
-// display: flex;
-// flex-direction: column;
-// margin:0 !important;
-// position:absolute;
-// top:50%;
-// left:50%;
-// transform:translate(-50%,-50%);
-// /*height:600px;*/
-// max-height:calc(100% - 30px);
-// max-width:calc(100% - 30px);
-// }
+ .el-dialog{
+ display: flex;
+ flex-direction: column;
+ margin:0 !important;
+ position:absolute;
+ top:50%;
+ left:50%;
+ transform:translate(-50%,-50%);
+ /*height:600px;*/
+ max-height:calc(100% - 30px);
+ max-width:calc(100% - 30px);
+ }
.el-dialog .el-dialog__body{
- // flex:1;
- // overflow: auto;
+ flex:1;
+ overflow: auto;
padding: 8px 12px;
}
diff --git a/hb_client/src/views/login/index.vue b/hb_client/src/views/login/index.vue
index f9ad27a..07fd8f8 100644
--- a/hb_client/src/views/login/index.vue
+++ b/hb_client/src/views/login/index.vue
@@ -37,6 +37,7 @@
name="password"
tabindex="2"
auto-complete="on"
+ id="passwordInput"
@keyup.enter.native="handleLogin"
>