|
@@ -260,20 +260,20 @@ export default {
|
|
|
},
|
|
|
operation() {
|
|
|
return (h, { row, index, column }) => {
|
|
|
- // console.log(row)
|
|
|
+ console.log(row, column)
|
|
|
return (
|
|
|
<div class="operation-btns">
|
|
|
{this.$checkBtnRole('apply', this.$route.meta.roles) &&
|
|
|
((!this.isCustomer &&
|
|
|
!row.automaticStatus &&
|
|
|
- (row.examineStatus === '保存' || row.examineStatus === '不通过')) ||
|
|
|
+ (row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL')) ||
|
|
|
(this.isCustomer &&
|
|
|
!row.automaticStatus &&
|
|
|
- (row.examineStatus === '保存' || row.examineStatus === '不通过') &&
|
|
|
+ (row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
|
row.type != 2) ||
|
|
|
(!this.isCustomer &&
|
|
|
row.automaticStatus &&
|
|
|
- (row.examineStatus === '保存' || row.examineStatus === '不通过') &&
|
|
|
+ (row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
|
row.type === 2)) ? (
|
|
|
<el-popconfirm
|
|
|
onOnConfirm={async () => {
|
|
@@ -290,9 +290,9 @@ export default {
|
|
|
)}
|
|
|
|
|
|
{this.$checkBtnRole('apply', this.$route.meta.roles) &&
|
|
|
- ((!this.isCustomer && !row.automaticStatus && row.examineStatus === '待审核') ||
|
|
|
- (this.isCustomer && !row.automaticStatus && row.examineStatus === '待审核' && row.type != 2) ||
|
|
|
- (!this.isCustomer && row.automaticStatus && row.examineStatus === '待审核' && row.type == 2)) ? (
|
|
|
+ ((!this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT') ||
|
|
|
+ (this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT' && row.type != 2) ||
|
|
|
+ (!this.isCustomer && row.automaticStatus && row.examineStatus === 'WAIT' && row.type == 2)) ? (
|
|
|
<el-popconfirm
|
|
|
onOnConfirm={async () => {
|
|
|
this.handleSubmit(row.id, 'SAVE')
|
|
@@ -327,7 +327,7 @@ export default {
|
|
|
|
|
|
{this.$checkBtnRole('edit', this.$route.meta.roles) &&
|
|
|
!row.automaticStatus &&
|
|
|
- (row.examineStatus === '保存' || row.examineStatus === '不通过') &&
|
|
|
+ (row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
|
row.type === 1 ? (
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -345,16 +345,16 @@ export default {
|
|
|
{this.$checkBtnRole('edit', this.$route.meta.roles) &&
|
|
|
((!this.isCustomer &&
|
|
|
!row.automaticStatus &&
|
|
|
- (row.examineStatus === '保存' || row.examineStatus === '不通过') &&
|
|
|
+ (row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
|
row.type === 2) ||
|
|
|
(this.isCustomer &&
|
|
|
!row.automaticStatus &&
|
|
|
- (row.examineStatus === '保存' || row.examineStatus === '不通过') &&
|
|
|
+ (row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
|
row.type != 2 &&
|
|
|
row.type !== 1) ||
|
|
|
(!this.isCustomer &&
|
|
|
row.automaticStatus &&
|
|
|
- (row.examineStatus === '保存' || row.examineStatus === '不通过') &&
|
|
|
+ (row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
|
row.type === 2)) ? (
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -370,9 +370,9 @@ export default {
|
|
|
)}
|
|
|
|
|
|
{this.$checkBtnRole('examine', this.$route.meta.roles) &&
|
|
|
- ((!this.isCustomer && !row.automaticStatus && row.examineStatus === '待审核') ||
|
|
|
- (this.isCustomer && !row.automaticStatus && row.examineStatus === '待审核' && row.type != 2) ||
|
|
|
- (!this.isCustomer && row.automaticStatus && row.examineStatus === '待审核' && row.type == 2)) ? (
|
|
|
+ ((!this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT') ||
|
|
|
+ (this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT' && row.type != 2) ||
|
|
|
+ (!this.isCustomer && row.automaticStatus && row.examineStatus === 'WAIT' && row.type == 2)) ? (
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
@@ -397,9 +397,9 @@ export default {
|
|
|
</el-button>
|
|
|
|
|
|
{this.$checkBtnRole('del', this.$route.meta.roles) &&
|
|
|
- ((!this.isCustomer && !row.automaticStatus && row.examineStatus !== '通过') ||
|
|
|
- (this.isCustomer && !row.automaticStatus && row.examineStatus !== '通过' && row.type != 2) ||
|
|
|
- (!this.isCustomer && row.automaticStatus && row.examineStatus !== '通过' && scope.row.type == 2)) ? (
|
|
|
+ ((!this.isCustomer && !row.automaticStatus && row.examineStatus !== 'OK') ||
|
|
|
+ (this.isCustomer && !row.automaticStatus && row.examineStatus !== 'OK' && row.type != 2) ||
|
|
|
+ (!this.isCustomer && row.automaticStatus && row.examineStatus !== 'OK' && scope.row.type == 2)) ? (
|
|
|
<el-popconfirm
|
|
|
onOnConfirm={async () => {
|
|
|
this.handleDelete(row.id)
|