diff --git a/src/api/repair/tickets/Tickets.js b/src/api/repair/tickets/Tickets.js index 48a3beb..c3d971e 100644 --- a/src/api/repair/tickets/Tickets.js +++ b/src/api/repair/tickets/Tickets.js @@ -114,3 +114,29 @@ export function updateShow(id, show){ method: "get" }) } + +// 查待总检或待出厂检验的工单 +export function getPageByRole(params){ + return request({ + url: preUrl + "/pageByRole", + method: 'get' + }) +} + +// 维修总检完成总检 +export function inspection(data){ + return request({ + url: preUrl + "/inspection", + method: 'post', + data + }) +} + +// 服务顾问上传出厂检验日志 +export function confirm(data){ + return request({ + url: preUrl + "/confirm", + method: 'post', + data + }) +} diff --git a/src/views/repair/tickets/Components/TicketItem.vue b/src/views/repair/tickets/Components/TicketItem.vue index 0f00e55..b8e49db 100644 --- a/src/views/repair/tickets/Components/TicketItem.vue +++ b/src/views/repair/tickets/Components/TicketItem.vue @@ -325,7 +325,7 @@ export default { data.model = data.spec break case "part": - data.itemStatus = "08" + data.itemStatus = "03" break case "other": data.itemStatus = "06" diff --git a/src/views/repair/tickets/TicketManager.vue b/src/views/repair/tickets/TicketManager.vue index 7589f74..bba8cc3 100644 --- a/src/views/repair/tickets/TicketManager.vue +++ b/src/views/repair/tickets/TicketManager.vue @@ -16,8 +16,8 @@ - - + + @@ -31,10 +31,11 @@ import TicketManagerItem from "@/views/repair/tickets/Components/TicketManagerIt import {getUserRole} from "@/api/repair/tickets/Tickets"; import TicketWares from "@/views/repair/tickets/Components/TicketWares.vue"; import GetAndBackWares from "@/views/repair/tickets/form/GetAndBackWares.vue"; +import TicketFinishManager from "@/views/repair/tickets/form/TicketFinishManager.vue"; export default { name: "TicketManager", - components: {GetAndBackWares, TicketWares, TicketManagerItem}, + components: {TicketFinishManager, GetAndBackWares, TicketWares, TicketManagerItem}, data() { return { activeTab: 'unFinish', diff --git a/src/views/repair/tickets/form/TicketFinishManager.vue b/src/views/repair/tickets/form/TicketFinishManager.vue new file mode 100644 index 0000000..385becc --- /dev/null +++ b/src/views/repair/tickets/form/TicketFinishManager.vue @@ -0,0 +1,204 @@ + + + + +