From 3115710fcbab24e7869167c5822a30121b72ea9a Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Tue, 5 Nov 2024 11:18:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=8D=E6=96=B0=E6=B4=BE?= =?UTF-8?q?=E5=B7=A5=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tickets/Components/TicketManagerItem.vue | 52 +++++++++---------- .../tickets/form/TicketFinishManager.vue | 4 +- .../repair/tickets/form/UpdateRepair.vue | 49 ++++++++++++++++- 3 files changed, 76 insertions(+), 29 deletions(-) diff --git a/src/views/repair/tickets/Components/TicketManagerItem.vue b/src/views/repair/tickets/Components/TicketManagerItem.vue index d9550d7..bd8a436 100644 --- a/src/views/repair/tickets/Components/TicketManagerItem.vue +++ b/src/views/repair/tickets/Components/TicketManagerItem.vue @@ -84,38 +84,35 @@ type="text" icon="el-icon-monitor" @click="handleRecord(scope.row, 'sgwczj')"> 施工完成 - - - - 重新指派 + v-if="userRole !== 'repair_staff'"> + {{userRole === 'service_advisor' ? "修改派工" : "内返派工"}} 申请配件 - - 更多 - - 申请配件 - - - - - - 重新指派 - - - + + + + + + + + + + + + + + + + + + + + @@ -124,7 +121,7 @@ @pagination="listTickets" /> - + @@ -264,6 +261,9 @@ export default { }, async listTickets() { try { + if (this.userRole === 'general_inspection' && this.queryParams.isFinish !== '1'){ + this.queryParams['selectType'] = 'all' + } this.loading = true const res = await getPageType(this.queryParams) if (res.data) { diff --git a/src/views/repair/tickets/form/TicketFinishManager.vue b/src/views/repair/tickets/form/TicketFinishManager.vue index 4a9ad24..d4e39f2 100644 --- a/src/views/repair/tickets/form/TicketFinishManager.vue +++ b/src/views/repair/tickets/form/TicketFinishManager.vue @@ -54,7 +54,7 @@ 处理 - 重新指派 + {{userRole === 'service_advisor' ? "修改派工" : "内返派工"}} 通知客户取车 @@ -128,7 +128,7 @@ - + diff --git a/src/views/repair/tickets/form/UpdateRepair.vue b/src/views/repair/tickets/form/UpdateRepair.vue index 60edd6f..9bfdf35 100644 --- a/src/views/repair/tickets/form/UpdateRepair.vue +++ b/src/views/repair/tickets/form/UpdateRepair.vue @@ -115,6 +115,35 @@ + + + +
+ + 内返信息 +
+ +
+ + + + + + + + + + + + + + + + +
+
+
@@ -164,6 +193,9 @@ import {updateRepair} from "@/api/repair/tickets/Tickets"; export default { name: "UpdateRepair", + props:{ + userRole: String + }, data() { return { dialogVisible: false, @@ -176,11 +208,20 @@ export default { id: null, nowRepairId: null, nowRepairName: null, - } + image: null, + remark: null + }, } }, methods: { async open(row) { + this.formData = { + id: null, + nowRepairId: null, + nowRepairName: null, + image: null, + remark: null + } this.dialogVisible = true if (row) { try { @@ -204,6 +245,12 @@ export default { this.$modal.msgError("没有指派员工") return } + if (this.formData.image){ + const data = this.formData.image.split(",") + this.formData.image = data.map(item => { + return item.replace(process.env.VUE_APP_FILE_API, "") + }).join(",") + } this.initFormData() await updateRepair(this.formData) this.$modal.msgSuccess("指派成功")