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 @@ 通知施工 + + 过程记录 + + + 开始施工 + + + 施工完成 + handleCommand(command, scope.$index, scope.row)"> 更多 @@ -77,6 +86,7 @@ + - + + @@ -111,52 +112,52 @@ - - - - 会员卡券 - - - - - - - - - - - {{ scope.row.balance }}{{ scope.row.outRule == 'mehx' ? '元' : '次' }} - - - - - 不限 - - - - - - - - - - - {{ parseTime(scope.row.beginTime) }} - - - - - {{ parseTime(scope.row.endTime) }} - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/repair/tickets/form/UpdateRecord.vue b/src/views/repair/tickets/form/UpdateRecord.vue new file mode 100644 index 0000000..1209de6 --- /dev/null +++ b/src/views/repair/tickets/form/UpdateRecord.vue @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +