|
@@ -410,7 +410,7 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
v-if="
|
|
v-if="
|
|
- $checkBtnRole('apply', $route.meta.roles) &&
|
|
|
|
|
|
+ $checkBtnRole('apply', $route.meta.roles) && (!isCustomer && scope.row.type!==2) &&
|
|
( (!scope.row.automaticStatus &&
|
|
( (!scope.row.automaticStatus &&
|
|
scope.row.examineStatus === 'SAVE' ) ||
|
|
scope.row.examineStatus === 'SAVE' ) ||
|
|
(scope.row.automaticStatus &&
|
|
(scope.row.automaticStatus &&
|
|
@@ -425,7 +425,7 @@
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
v-if="
|
|
v-if="
|
|
- !scope.row.automaticStatus &&
|
|
|
|
|
|
+ !scope.row.automaticStatus && (!isCustomer && scope.row.type!==2) &&
|
|
$checkBtnRole('apply', $route.meta.roles) &&
|
|
$checkBtnRole('apply', $route.meta.roles) &&
|
|
scope.row.examineStatus === 'WAIT'
|
|
scope.row.examineStatus === 'WAIT'
|
|
"
|
|
"
|
|
@@ -437,7 +437,7 @@
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
v-if="
|
|
v-if="
|
|
- !scope.row.automaticStatus &&
|
|
|
|
|
|
+ !scope.row.automaticStatus && (!isCustomer && scope.row.type!==2) &&
|
|
$checkBtnRole('examine', $route.meta.roles) &&
|
|
$checkBtnRole('examine', $route.meta.roles) &&
|
|
scope.row.examineStatus === 'OK'
|
|
scope.row.examineStatus === 'OK'
|
|
"
|
|
"
|
|
@@ -461,7 +461,7 @@
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
- $checkBtnRole('edit', $route.meta.roles) &&
|
|
|
|
|
|
+ $checkBtnRole('edit', $route.meta.roles) && (!isCustomer && scope.row.type!==2) &&
|
|
((!scope.row.automaticStatus &&
|
|
((!scope.row.automaticStatus &&
|
|
(scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL') &&
|
|
(scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL') &&
|
|
scope.row.type === 2 ) ||
|
|
scope.row.type === 2 ) ||
|
|
@@ -476,7 +476,7 @@
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="
|
|
v-if="
|
|
- !scope.row.automaticStatus &&
|
|
|
|
|
|
+ !scope.row.automaticStatus && (!isCustomer && scope.row.type!==2) &&
|
|
$checkBtnRole('examine', $route.meta.roles) &&
|
|
$checkBtnRole('examine', $route.meta.roles) &&
|
|
scope.row.examineStatus === 'WAIT'
|
|
scope.row.examineStatus === 'WAIT'
|
|
"
|
|
"
|
|
@@ -488,7 +488,7 @@
|
|
<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) &&
|
|
|
|
|
|
+ v-if="$checkBtnRole('del', $route.meta.roles) && (!isCustomer && scope.row.type!==2) &&
|
|
( (!scope.row.automaticStatus && scope.row.examineStatus !== 'OK'))"
|
|
( (!scope.row.automaticStatus && scope.row.examineStatus !== 'OK'))"
|
|
style="margin-left: 10px"
|
|
style="margin-left: 10px"
|
|
title="确定删除吗?"
|
|
title="确定删除吗?"
|
|
@@ -609,7 +609,9 @@ export default {
|
|
remark: ''
|
|
remark: ''
|
|
},
|
|
},
|
|
isShow: false,
|
|
isShow: false,
|
|
- categoryList: []
|
|
|
|
|
|
+ categoryList: [],
|
|
|
|
+ isCustomer: JSON.parse(localStorage.getItem('supply_user')).isCustomer,
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|