diff --git a/src/views/repair/tickets/Components/TicketManagerItem.vue b/src/views/repair/tickets/Components/TicketManagerItem.vue index bd8a436..2f9aff0 100644 --- a/src/views/repair/tickets/Components/TicketManagerItem.vue +++ b/src/views/repair/tickets/Components/TicketManagerItem.vue @@ -44,22 +44,6 @@ 查看 - - 编辑工单 - - - 删除 - - - 作废 - - - 维修记录设置 - @@ -69,50 +53,39 @@ type="text" icon="el-icon-check" @click="handleNotify(scope.row)"> 通知施工 - - 开始施工 + {{ userRole === 'general_inspection' ? "内返派工" : "修改派工" }} - - 过程记录 - - - 施工完成 - - - {{userRole === 'service_advisor' ? "修改派工" : "内返派工"}} - - - 申请配件 - - - - - - - - - - - - - - - - - - - - - + + 更多 + + + 删除 + + + 作废 + + + 编辑工单 + + + 维修记录设置 + + + 申请配件 + + + 开始施工 + + + 过程记录 + + + 施工完成 + + + @@ -356,17 +329,29 @@ export default { // 更多操作 handleCommand(command, index, row) { switch (command) { - case 'handleReTake': - this.handleReTake(row) + case 'handleRemove': + this.handleRemove(row) + break + case 'handleVoid': + this.handleVoid(row) + break + case 'handleEditTicket': + this.handleEditTicket(row) + break + case 'handleEditRecord': + this.handleEditRecord(row) break case 'handleGet': this.handleGet(row) break - case 'handleBack': - this.handleBack(row) + case 'handleRecordOne': + this.handleRecord(row, 'kssg') break - case 'handleEditRecord': - this.handleEditRecord(row) + case 'handleRecordTwo': + this.handleRecord(row, 'sgz') + break + case 'handleRecordThree': + this.handleRecord(row, 'sgwczj') break default: break