diff --git a/src/views/repair/tickets/Components/TicketManagerItem.vue b/src/views/repair/tickets/Components/TicketManagerItem.vue index 237abf5..ac2c3c7 100644 --- a/src/views/repair/tickets/Components/TicketManagerItem.vue +++ b/src/views/repair/tickets/Components/TicketManagerItem.vue @@ -44,24 +44,32 @@ 查看 - + 接单 通知施工 - + 开始施工 - + 过程记录 - + 施工完成 - - 终检 - + + + 重新指派 @@ -142,6 +150,7 @@ import {createUniqueCodeByHead} from "@/utils/createUniqueCode"; import {updateTicketWares} from "@/api/repair/tickets/TicketWares"; import {getIfLeader} from "@/api/repair/repairworker"; import UpdateRecord from "@/views/repair/tickets/form/UpdateRecord.vue"; +import {getUserProfile} from "@/api/system/user"; export default { name: "TicketManagerItem", @@ -180,13 +189,19 @@ export default { formData: {}, remark: null, leader: false, + nowUser: null } }, mounted() { this.listTickets() this.isLeader() + this.getNowUser() }, methods: { + async getNowUser(){ + const res = await getUserProfile() + this.nowUser = res.data + }, async isLeader(){ const res = await getIfLeader() this.leader = res.data diff --git a/src/views/repair/tickets/form/UpdateRecord.vue b/src/views/repair/tickets/form/UpdateRecord.vue index 4b1d114..8221ced 100644 --- a/src/views/repair/tickets/form/UpdateRecord.vue +++ b/src/views/repair/tickets/form/UpdateRecord.vue @@ -53,11 +53,11 @@ 部分完成 - + 完成并移交下一班组 + @click="doFinish(false)"> {{ isEndCheck ? "完成并移交总检" : "完成工单" }} @@ -190,20 +190,20 @@ export default { } catch { } }, - async doFinish() { + async doFinish(flag) { try { await this.$refs.formRef.validate() this.formLoading = true // 不论是什么按钮,这个工单子项是完了的 this.formData.item.itemStatus = "03" // 整体完成并指派下一个人 - if (this.isNext) { + if (this.isNext || flag) { this.formData['finishType'] = "01" await this.$refs.updateRepair.open(this.clickRow) return } // 整体完成并移交总检 - if (this.isEndCheck) { + if (this.isEndCheck || !flag) { this.formData['finishType'] = "02" this.formData.ticketsWorkStatus = "05" await this.doUpdate();