|
@@ -11,6 +11,7 @@
|
|
|
:operationColumnWidth="200"
|
|
|
:columnParsing="columnParsing"
|
|
|
:optionsEvensGroup="optionsEvensGroup"
|
|
|
+ :replaceOrNotMap="false"
|
|
|
>
|
|
|
</template-page>
|
|
|
<ExamineDialog :is-show.sync="isShowExamineDialog" :examine-form.sync="examineForm" />
|
|
@@ -241,19 +242,20 @@ export default {
|
|
|
},
|
|
|
operation() {
|
|
|
return (h, { row, index, column }) => {
|
|
|
+ console.log(row)
|
|
|
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
|
|
|
style="margin-right: 10px"
|
|
@@ -269,9 +271,9 @@ export default {
|
|
|
) : null}
|
|
|
|
|
|
{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
|
|
|
style="margin-right: 10px"
|
|
|
title="确定撤回吗?"
|
|
@@ -285,9 +287,9 @@ export default {
|
|
|
</el-popconfirm>
|
|
|
) : null}
|
|
|
{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 === 'OK') ||
|
|
|
+ (this.isCustomer && !row.automaticStatus && row.examineStatus === 'OK' && row.type != 2) ||
|
|
|
+ (!this.isCustomer && row.automaticStatus && row.examineStatus === 'OK' && row.type == 2)) ? (
|
|
|
<el-popconfirm
|
|
|
style="margin-right: 10px"
|
|
|
title="确定弃审吗?"
|
|
@@ -303,7 +305,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
|
|
|
type="text"
|
|
@@ -317,16 +319,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
|
|
|
type="text"
|
|
@@ -339,9 +341,9 @@ export default {
|
|
|
) : null}
|
|
|
|
|
|
{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
|
|
|
type="text"
|
|
|
onClick={() => {
|
|
@@ -353,9 +355,9 @@ export default {
|
|
|
) : null}
|
|
|
|
|
|
{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 !== '通过' && 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' && row.type == 2)) ? (
|
|
|
<el-popconfirm
|
|
|
style="margin-left: 10px"
|
|
|
title="确定删除吗?"
|