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/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/views/workflow/ticket.vue b/hb_client/src/views/workflow/ticket.vue index 7039ed0..a4c6f0c 100644 --- a/hb_client/src/views/workflow/ticket.vue +++ b/hb_client/src/views/workflow/ticket.vue @@ -7,7 +7,11 @@ {{ scope.row.title }} - {{ scope.row.act_state }} + + 已提交 + 已完成 + 审批中 + {{ scope.row.create_time }} @@ -15,6 +19,7 @@ 查看流程图 + 工单详情 @@ -35,20 +40,50 @@ + + + + + + + + + 流水号:{{ticketDetail.sn}} + 开始时间:{{}} + 请假类型:{{ticketDetail.workflow_.name}} + 创建人:{{}} + 请假原因:{{ticketDetail.workflow_.name}} + + + 标题:{{ticketDetail.title}} + 结束时间:{{}} + 创建时间:{{ticketDetail.create_time}} + 请假天数:{{ticketDetail.ticket_data.days}} + + + + {{item.name}} + + - +