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