Browse Source

按钮权限

zhouhao 2 years ago
parent
commit
119de3a28c
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/views/supply/apply/apply_list.vue
  2. 2 2
      src/views/supply/apply/engin_list.vue

+ 2 - 2
src/views/supply/apply/apply_list.vue

@@ -461,9 +461,9 @@
                 <el-button type="text" @click="toDetail(scope.row)"> 详情</el-button>
                 <el-button type="text" @click="toDetail(scope.row)"> 详情</el-button>
                 <el-popconfirm
                 <el-popconfirm
                   v-if="
                   v-if="
-                    $checkBtnRole('del', $route.meta.roles) && (!isCustomer && scope.row.type!==2) &&
+                    $checkBtnRole('del', $route.meta.roles) && !isCustomer  &&
                     ((!scope.row.automaticStatus &&
                     ((!scope.row.automaticStatus &&
-                    scope.row.examineStatus !== 'OK') )
+                    scope.row.examineStatus !== 'OK') || (scope.row.automaticStatus && scope.row.examineStatus !== 'OK' && scope.row.type==2 ) )
                   "
                   "
                   style="margin-left: 10px"
                   style="margin-left: 10px"
                   title="确定删除吗?"
                   title="确定删除吗?"

+ 2 - 2
src/views/supply/apply/engin_list.vue

@@ -488,8 +488,8 @@
                 <el-button type="text" @click="toDetail(scope.row)"> 详情</el-button>
                 <el-button type="text" @click="toDetail(scope.row)"> 详情</el-button>
                 <!--             !scope.row.automaticStatus &&  -->
                 <!--             !scope.row.automaticStatus &&  -->
                 <el-popconfirm
                 <el-popconfirm
-                  v-if="$checkBtnRole('del', $route.meta.roles) && (!isCustomer && scope.row.type!==2) &&
-( (!scope.row.automaticStatus && scope.row.examineStatus !== 'OK'))"
+                  v-if="$checkBtnRole('del', $route.meta.roles) && !isCustomer  &&
+( (!scope.row.automaticStatus && (scope.row.examineStatus !== 'OK')) || (scope.row.automaticStatus && scope.row.examineStatus !== 'OK' && scope.row.type==2 ) )"
                   style="margin-left: 10px"
                   style="margin-left: 10px"
                   title="确定删除吗?"
                   title="确定删除吗?"
                   @onConfirm="handleDelete(scope.row.id)"
                   @onConfirm="handleDelete(scope.row.id)"