Browse Source

已驳回的报修单不显示修改按钮问题

3254194295 2 years ago
parent
commit
43788c9fb4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/repair/application-form/RepairForm.vue

+ 3 - 3
src/views/repair/application-form/RepairForm.vue

@@ -100,8 +100,8 @@
             <a @click="handleView(record)">查看</a>
             <operation-button
               v-show="editFlag"
-              v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === record.status ||DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === record.status && $auth('repair-application-forms-edit')"
-              @click="handleEdit(record)" >修</operation-button>
+              v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === record.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REFUSED_REPAIR === record.status && $auth('repair-application-forms-edit')"
+              @click="handleEdit(record)" >再次报修</operation-button>
             <operation-button
               v-show="dispatchFlag"
               v-if="( DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === record.status ||
@@ -357,7 +357,7 @@ export default {
     if (this.searchType === 3) {
       this.allocatedFlag = true
     }
-    if (this.searchType === 1) {
+    if (this.searchType === 1 || this.searchType === -1) {
       this.editFlag = true
     }
     /* if (repairModel === this.DictCache.VALUE.REPAIR_MODEL_TYPE.BASE_MODEL) {