diff --git a/hb_client/src/App.vue b/hb_client/src/App.vue index bf20ea3..b06679a 100644 --- a/hb_client/src/App.vue +++ b/hb_client/src/App.vue @@ -27,3 +27,13 @@ export default { } } + diff --git a/hb_client/src/api/user.js b/hb_client/src/api/user.js index 8edf3ab..ac708c3 100644 --- a/hb_client/src/api/user.js +++ b/hb_client/src/api/user.js @@ -30,6 +30,14 @@ export function getUserList(query) { }) } +export function getOrganizationList(query) { + return request({ + url: '/system/organization/', + method: 'get', + params: query + }) +} + export function getUser(id) { return request({ url: `/system/user/${id}/`, diff --git a/hb_client/src/api/workflow.js b/hb_client/src/api/workflow.js index 724227a..74be8dd 100644 --- a/hb_client/src/api/workflow.js +++ b/hb_client/src/api/workflow.js @@ -35,6 +35,14 @@ export function getWfStateList(id) { method: 'get' }) } +//工单流转step +export function getWfFlowSteps(id) { + return request({ + url: `/wf/ticket/${id}/flowsteps/`, + method: 'get' + }) +} + //流转状态创建 export function createWfState(data) { return request({ @@ -43,6 +51,15 @@ export function createWfState(data) { data }) } +//处理工单 +export function ticketHandle(id,data) { + return request({ + url: `/wf/ticket/${id}/handle/`, + method: 'post', + data + }) +} + //流转状态更新 export function updateWfState(id, data) { return request({ @@ -121,7 +138,7 @@ export function deleteWfTransition(id, data) { data }) } -//工单详情 +//工单列表 export function getTickets(query) { return request({ url: `/wf/ticket/`, @@ -129,3 +146,17 @@ export function getTickets(query) { params:query }) } +//工单详情 +export function getTicketDetail(id) { + return request({ + url: `/wf/ticket/${id}/`, + method: 'get' + }) +} +//工单详情 +export function getTicketTransitions(id) { + return request({ + url: `/wf/ticket/${id}/transitions/`, + method: 'get' + }) +} diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index b88f42e..27e100a 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -271,42 +271,34 @@ export const asyncRoutes = [ } ] }, - { - path: '/workflow', - component: Layout, - redirect: '/workflow/index', - name: 'workflow', - meta: { title: '工作流管理', icon: 'example', perms: ['workflow_set'] }, - children: [ - { - path: 'index', - name: 'index', - component: () => import('@/views/workflow/index'), - meta: { title: '工作流配置', icon: 'example', perms: ['workflow_manage'] } - }, - + { + path: '/workflow', + component: Layout, + redirect: '/workflow/index', + name: 'workflow', + meta: { title: '工作流', icon: 'example', perms: ['workflow_set'] }, + children: [ { - path: 'configuration', - name: 'configuration', - component: () => import('@/views/workflow/configuration'), - meta: { title: '人员信息详情', icon: 'example', perms: ['configuration_manage'] }, - hidden: true + path: 'index', + name: 'index', + component: () => import('@/views/workflow/index'), + meta: { title: '工作流配置', icon: 'example', perms: ['workflow_manage'] } }, { path: 'ticket', name: 'ticket', component: () => import('@/views/workflow/ticket'), - meta: { title: '工单列表', icon: 'example', perms: ['ticket_manage'] }, - hidden: true - },{ - path: 'test', - name: 'test', - component: () => import('@/views/workflow/test'), - meta: { title: '工单', icon: 'example', perms: ['test_manage'] }, + meta: { title: '工单管理', icon: 'example', perms: ['workflow_manage'] }, + }, + { + path: 'configuration', + name: 'configuration', + component: () => import('@/views/workflow/configuration'), + meta: { title: '人员信息详情', icon: 'example', perms: ['workflow_manage'] }, hidden: true }, - ] - }, + ] + }, { path: '/system', component: Layout, diff --git a/hb_client/src/views/workflow/customfield.vue b/hb_client/src/views/workflow/customfield.vue index 76b154f..b9bda45 100644 --- a/hb_client/src/views/workflow/customfield.vue +++ b/hb_client/src/views/workflow/customfield.vue @@ -148,9 +148,10 @@ export default { hasJsonFlag:true, // json是否验证通过 hasJsonFlag1:true, // json是否验证通过 hasJsonFlag2:true, // json是否验证通过 - customfieldList: { - count:0 - }, + // customfieldList: { + // count:0 + // }, + customfieldList:[], options: [{ value: 'string', label: '文本' diff --git a/hb_client/src/views/workflow/state.vue b/hb_client/src/views/workflow/state.vue index e103b8c..8c7062c 100644 --- a/hb_client/src/views/workflow/state.vue +++ b/hb_client/src/views/workflow/state.vue @@ -76,7 +76,7 @@ @@ -113,8 +113,7 @@ - - + + + + + + + + + + + + + + + + + + +
取消 @@ -133,6 +150,7 @@ diff --git a/hb_client/src/views/workflow/transitions.vue b/hb_client/src/views/workflow/transitions.vue index 68c7c5b..345b8e5 100644 --- a/hb_client/src/views/workflow/transitions.vue +++ b/hb_client/src/views/workflow/transitions.vue @@ -23,7 +23,7 @@ -