diff --git a/pages/wf/index.vue b/pages/wf/index.vue index 842cd75..8666c93 100644 --- a/pages/wf/index.vue +++ b/pages/wf/index.vue @@ -1,27 +1,26 @@ - - - - - - - - - 筛选 - - - + + + + + 筛选 + - + + - + {{item.title}} - 所属工作流: {{item.workflow_.name}} - 工单状态: {{item.state_.name}} - 提交时间: {{item.create_time}} - 最近更新: {{item.update_time}} + 工作流: {{item.workflow_.name}} + 工单状态: + + {{item.state_.name}} + + 提交时间: {{item.create_time}} + 最近更新: {{item.update_time}} @@ -30,12 +29,15 @@ + diff --git a/pages/wf/ticketd.vue b/pages/wf/ticketd.vue new file mode 100644 index 0000000..332da57 --- /dev/null +++ b/pages/wf/ticketd.vue @@ -0,0 +1,129 @@ + + + + + {{ticket_?.state_.name}} + 撤回 + 更多信息 + + + + {{ item.name }}/ + + 无 + + + + + + {{ticket_f?.state_.name}} + 撤回 + + + + {{ item.name }}/ + + 无 + + + + + {{ item.state_?.name || "未知状态" }} + + + {{item.create_time}}- + + + + {{ item.transition_.name }} + + -{{ item.participant_.name }} + + + {{ item.suggestion.slice(0, 20) + "..." }} + + {{ item.suggestion }} + + + + + + + + + + + \ No newline at end of file diff --git a/pages/wf/ticketd_b.vue b/pages/wf/ticketd_b.vue new file mode 100644 index 0000000..d0e597f --- /dev/null +++ b/pages/wf/ticketd_b.vue @@ -0,0 +1,158 @@ + + + + 意见 + + + + + + + + {{ item.name }} + + + + + + \ No newline at end of file diff --git a/utils/api.js b/utils/api.js index 14bd37e..68beea5 100644 --- a/utils/api.js +++ b/utils/api.js @@ -14,11 +14,15 @@ export default { apkCheck: ()=>http('/system/apk/'), //apk检查 getTicket:(data) => http('/wf/ticket/', 'GET', data), + getTicketItem:(id) => http(`/wf/ticket/${id}/`, 'GET'), + getTicketFlowLogs:(id) => http(`/wf/ticket/${id}/flowlogs/`, 'GET'), ticketCreate:(data)=>http('/wf/ticket/', 'POST', data), ticketHandle:(id,data)=>http(`/wf/ticket/${id}/handle/`, 'POST', data), - getMroom:(data) => http('/ofm/mroom/', 'GET', data), + ticketRetreat:(id,data)=>http(`/wf/ticket/${id}/retreat/`, 'POST', data), getTransition:(id) => http(`/wf/ticket/${id}/transitions/`, 'GET'), workflowInitkey:(key) => http(`/wf/workflow/${key}/init_key/`, 'GET'), + + getMroom:(data) => http('/ofm/mroom/', 'GET', data), bookingList:(data) => http('/ofm/mroombooking/', 'GET', data), bookingItem:(id,data) => http(`/ofm/mroombooking/${id}/`, 'GET', data), bookingCreate:(data) => http(`/ofm/mroombooking/`, 'POST', data), diff --git a/utils/enum.js b/utils/enum.js index 304bc86..91e2cf0 100644 --- a/utils/enum.js +++ b/utils/enum.js @@ -5,4 +5,18 @@ export const actStateEnum = Object.freeze({ 3: { text: '被撤回', type: 'warning' }, 4: { text: '已完成', type: 'success' }, 5: { text: '已关闭', type: 'default' }, +}) + +export const interveneTypeEnum = Object.freeze({ + 0: { text: '正常', type: 'success' }, + 1: { text: '转交', type: 'primary' }, + 2: { text: '加签', type: 'default' }, + 3: { text: '加签处理完成', type: 'primary' }, + 4: { text: '接单', type: 'success' }, + 5: { text: '评论', type: 'default' }, + 6: { text: '删除', type: 'error' }, + 7: { text: '强制关闭', type: 'error' }, + 8: { text: '强制修改状态', type: 'error' }, + 10: { text: '撤回', type: 'warning' }, + 11: { text: '抄送', type: 'default' }, }) \ No newline at end of file