Browse Source

计划维修优化

guarantee-lsq 2 years ago
parent
commit
5a4eb209cb
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/views/repair/application-form/modules/DetailRepair.vue

+ 9 - 1
src/views/repair/application-form/modules/DetailRepair.vue

@@ -299,6 +299,14 @@
         <a-button style="margin-left: 8px" type="primary" @click="handleCancel">返回</a-button>
         <a-button v-show="model.status===15 || model.status===17 || model.status === 19 " style="margin-left: 8px" type="primary" @click="handleCheck">审核</a-button>
         <a-button v-show="model.status===20" style="margin-left: 8px" type="primary" @click="handleCheck">再次发起审核</a-button>
+        <a-button v-if="$auth('repair-application-forms-examine') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status" style="margin-left: 8px" type="default" @click="handleFinish()">完成维修</a-button>
+        <a-button v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status" style="margin-left: 8px" type="default" @click="handleViewTicket()">维修票证</a-button>
+        <a-popconfirm v-if="$auth('repair-application-forms-finish') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.WAIT_SUBMIT === model.status)" title="是否要结单?" @confirm="handleExamine">
+          <a-button style="margin-left: 8px" type="default">结单</a-button>
+        </a-popconfirm>
+        <a-popconfirm v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.FINISHED === model.status" title="是否要关闭工单?" @confirm="handleClose">
+          <a-button :loading="confirmLoading" style="margin-left: 8px" type="default">关闭工单</a-button>
+        </a-popconfirm>
       </div>
     </div>
     <check-form ref="checkForm" @ok="handleOk" />
@@ -603,7 +611,7 @@ export default {
           ellipsis: true,
           width: '100px',
           customRender: (text, record, index) => {
-            if (text === 1) {
+            if (text === 1 || text == 3) {
               return '维修审核'
             } else if (text === 2) {
               return '报修审核'