From 320b51067dc8aad3f8758745a98cfa0e0807b113 Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Tue, 5 Nov 2024 17:10:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BB=B4=E4=BF=AE=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/repair/tickets/TicketsItem.js | 8 +++ .../tickets/Components/TicketManagerItem.vue | 17 ++++-- .../tickets/Components/TicketProgress.vue | 58 +++++++++++++++++-- 3 files changed, 74 insertions(+), 9 deletions(-) diff --git a/src/api/repair/tickets/TicketsItem.js b/src/api/repair/tickets/TicketsItem.js index 868a03c..8936649 100644 --- a/src/api/repair/tickets/TicketsItem.js +++ b/src/api/repair/tickets/TicketsItem.js @@ -43,3 +43,11 @@ export function removeItemById(id){ method: 'delete' }) } + +// 查某工单维修项目进度 +export function getProjList(ticketId){ + return request({ + url: preUrl + "/getProjList?ticketId=" + ticketId, + method: 'get' + }) +} diff --git a/src/views/repair/tickets/Components/TicketManagerItem.vue b/src/views/repair/tickets/Components/TicketManagerItem.vue index cfa026b..3bf4855 100644 --- a/src/views/repair/tickets/Components/TicketManagerItem.vue +++ b/src/views/repair/tickets/Components/TicketManagerItem.vue @@ -89,15 +89,15 @@ 申请配件 - + 开始施工 - + 过程记录 - + 施工完成 @@ -170,6 +170,8 @@ + + @@ -185,10 +187,11 @@ import UpdateRecord from "@/views/repair/tickets/form/UpdateRecord.vue"; import {getUserProfile} from "@/api/system/user"; import RecordSetting from "@/views/repair/tickets/form/RecordSetting.vue"; import EditTickets from "@/views/repair/tickets/form/EditTickets.vue"; +import TicketProgress from "@/views/repair/tickets/Components/TicketProgress.vue"; export default { name: "TicketManagerItem", - components: {EditTickets, RecordSetting, UpdateRecord, TWOperate, UpdateRepair, TicketsShow}, + components: {TicketProgress, EditTickets, RecordSetting, UpdateRecord, TWOperate, UpdateRepair, TicketsShow}, props: { userRole: { type: String, @@ -363,6 +366,9 @@ export default { case 'handleRecordThree': this.handleRecord(row, 'sgwczj') break + case 'handleProgress': + this.handleProgress(row) + break default: break } @@ -490,6 +496,9 @@ export default { } catch { } }, + handleProgress(row){ + this.$refs.ticketProgress.open(row.id) + } } } diff --git a/src/views/repair/tickets/Components/TicketProgress.vue b/src/views/repair/tickets/Components/TicketProgress.vue index 21a15c4..369811f 100644 --- a/src/views/repair/tickets/Components/TicketProgress.vue +++ b/src/views/repair/tickets/Components/TicketProgress.vue @@ -1,19 +1,67 @@