소스 검색

Merge branch 'hotfix/Hotfix-zh-309' into develop

howie 2 년 전
부모
커밋
9db0c633c5
1개의 변경된 파일8개의 추가작업 그리고 7개의 파일을 삭제
  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)"