Pārlūkot izejas kodu

【修改】调整

howie 2 gadi atpakaļ
vecāks
revīzija
2e1721b912
1 mainītis faili ar 8 papildinājumiem un 7 dzēšanām
  1. 8 7
      src/views/supply/apply/apply_list.vue

+ 8 - 7
src/views/supply/apply/apply_list.vue

@@ -424,10 +424,10 @@
                 </el-button>
                 <el-button
                   v-if="
-                    $checkBtnRole('edit', $route.meta.roles) &&
-                    !scope.row.automaticStatus &&
-                    (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL') &&
-                    scope.row.type === 2
+                    ($checkBtnRole('del', $route.meta.roles) &&
+                      !scope.row.automaticStatus &&
+                      scope.row.examineStatus !== 'OK') ||
+                    ($checkBtnRole('del', $route.meta.roles) && scope.row.automaticStatus && scope.row.type == 2)
                   "
                   type="text"
                   @click="toReturnForm(scope.row)"
@@ -436,9 +436,10 @@
                 </el-button>
                 <el-button
                   v-if="
-                    $checkBtnRole('examine', $route.meta.roles) &&
-                    !scope.row.automaticStatus &&
-                    scope.row.examineStatus === 'WAIT'
+                    ($checkBtnRole('examine', $route.meta.roles) &&
+                      !scope.row.automaticStatus &&
+                      scope.row.examineStatus === 'WAIT') ||
+                    ($checkBtnRole('examine', $route.meta.roles) && scope.row.automaticStatus && scope.row.type === 2)
                   "
                   type="text"
                   @click="toExamine(scope.row)"