|
@@ -411,8 +411,9 @@
|
|
|
<el-popconfirm
|
|
|
v-if="
|
|
|
$checkBtnRole('apply', $route.meta.roles) &&
|
|
|
- ((!scope.row.automaticStatus &&
|
|
|
- scope.row.examineStatus === 'SAVE') || (
|
|
|
+ ((!isCustomer &&!scope.row.automaticStatus &&
|
|
|
+ scope.row.examineStatus === 'SAVE')||(isCustomer && !scope.row.automaticStatus &&
|
|
|
+ scope.row.examineStatus === 'SAVE' && scope.row.type!=2) || (
|
|
|
!isCustomer && scope.row.automaticStatus &&
|
|
|
scope.row.examineStatus === 'SAVE' &&
|
|
|
scope.row.type===2
|
|
@@ -427,8 +428,9 @@
|
|
|
<el-popconfirm
|
|
|
v-if="
|
|
|
$checkBtnRole('apply', $route.meta.roles) &&
|
|
|
- ((!scope.row.automaticStatus &&
|
|
|
- scope.row.examineStatus === 'WAIT')||(!isCustomer && scope.row.automaticStatus &&
|
|
|
+ ((!isCustomer &&!scope.row.automaticStatus &&
|
|
|
+ scope.row.examineStatus === 'WAIT') ||(isCustomer && !scope.row.automaticStatus &&
|
|
|
+ scope.row.examineStatus === 'WAIT' && scope.row.type!=2) ||(!isCustomer && scope.row.automaticStatus &&
|
|
|
scope.row.examineStatus === 'WAIT'&& scope.row.type==2))
|
|
|
"
|
|
|
style="margin-right: 10px"
|
|
@@ -440,8 +442,9 @@
|
|
|
<el-popconfirm
|
|
|
v-if="
|
|
|
$checkBtnRole('examine', $route.meta.roles) &&
|
|
|
- ((!scope.row.automaticStatus &&
|
|
|
- scope.row.examineStatus === 'OK')||( !isCustomer && scope.row.automaticStatus &&
|
|
|
+ ((!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-right: 10px"
|
|
@@ -465,9 +468,10 @@
|
|
|
<el-button
|
|
|
v-if="
|
|
|
$checkBtnRole('edit', $route.meta.roles) &&
|
|
|
- (( !scope.row.automaticStatus &&
|
|
|
+ (( !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) ||
|
|
|
(!isCustomer &&scope.row.automaticStatus &&
|
|
|
(scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL') &&
|
|
|
scope.row.type===2))
|
|
@@ -480,8 +484,9 @@
|
|
|
<el-button
|
|
|
v-if="
|
|
|
$checkBtnRole('examine', $route.meta.roles) &&
|
|
|
- ((!scope.row.automaticStatus &&
|
|
|
- scope.row.examineStatus === 'WAIT')|| ( !isCustomer &&scope.row.automaticStatus &&
|
|
|
+ ((!isCustomer &&!scope.row.automaticStatus &&
|
|
|
+ scope.row.examineStatus === 'WAIT')||(isCustomer && !scope.row.automaticStatus &&
|
|
|
+ scope.row.examineStatus === 'WAIT' && scope.row.type!=2)|| ( !isCustomer &&scope.row.automaticStatus &&
|
|
|
scope.row.examineStatus === 'WAIT' && scope.row.type==2))
|
|
|
"
|
|
|
type="text"
|
|
@@ -493,8 +498,9 @@
|
|
|
<!-- !scope.row.automaticStatus && -->
|
|
|
<el-popconfirm
|
|
|
v-if=" $checkBtnRole('del', $route.meta.roles) &&
|
|
|
- ((!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')||(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)"
|