From 058e72627c91dc89b4589da94c94d8d8c2af59ad Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Fri, 18 Oct 2024 18:07:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=A7=8B=E6=96=BD=E5=B7=A5=E3=80=81?= =?UTF-8?q?=E6=96=BD=E5=B7=A5=E8=BF=87=E7=A8=8B=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/repair/tickets/Tickets.js | 9 ++ src/api/repair/tickets/TicketsItem.js | 19 +++ .../tickets/Components/TicketManagerItem.vue | 20 ++- .../repair/tickets/Components/UserInfo.vue | 95 ++++++------- .../repair/tickets/form/UpdateRecord.vue | 130 ++++++++++++++++++ 5 files changed, 225 insertions(+), 48 deletions(-) create mode 100644 src/views/repair/tickets/form/UpdateRecord.vue diff --git a/src/api/repair/tickets/Tickets.js b/src/api/repair/tickets/Tickets.js index 148a618..90f8b3e 100644 --- a/src/api/repair/tickets/Tickets.js +++ b/src/api/repair/tickets/Tickets.js @@ -97,3 +97,12 @@ export function updateRepair(data){ data }) } + +// 更新工单状态 +export function updateStatus(data){ + return request({ + url: preUrl + "/updateStatus", + method: "post", + data + }) +} diff --git a/src/api/repair/tickets/TicketsItem.js b/src/api/repair/tickets/TicketsItem.js index 543ea86..5d6ae96 100644 --- a/src/api/repair/tickets/TicketsItem.js +++ b/src/api/repair/tickets/TicketsItem.js @@ -1 +1,20 @@ import request from '@/utils/request' + +const preUrl = '/repair/titem' + +// 维修工单子表 分页 +export function getTItemPage(params){ + return request({ + url: preUrl + "/page", + method: 'get', + params + }) +} + +// 获取当前操作人操作的工单中的项目 +export function getProjectList(ticketId){ + return request({ + url: preUrl + "/listProject?ticketId=" + ticketId, + method: 'get' + }) +} diff --git a/src/views/repair/tickets/Components/TicketManagerItem.vue b/src/views/repair/tickets/Components/TicketManagerItem.vue index 65daed4..185a7ab 100644 --- a/src/views/repair/tickets/Components/TicketManagerItem.vue +++ b/src/views/repair/tickets/Components/TicketManagerItem.vue @@ -50,6 +50,15 @@ 通知施工 + + 过程记录 + + + 开始施工 + + + 施工完成 + 更多 @@ -77,6 +86,7 @@ +
- + +