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("指派成功")