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 @@