|
@@ -18,15 +18,6 @@
|
|
<template slot="sortNumber" slot-scope="text, row, index">
|
|
<template slot="sortNumber" slot-scope="text, row, index">
|
|
{{ (pagination.pageNo - 1) * pagination.pageSize + 1 + index }}
|
|
{{ (pagination.pageNo - 1) * pagination.pageSize + 1 + index }}
|
|
</template>
|
|
</template>
|
|
- <template slot="approveResult" slot-scope="text, record">
|
|
|
|
- {{
|
|
|
|
- record.approveResult == 1
|
|
|
|
- ? $t('global-constant.approval-status.agree')
|
|
|
|
- : record.approveResult == 2
|
|
|
|
- ? $t('global-constant.approval-status.reject')
|
|
|
|
- : "-"
|
|
|
|
- }}
|
|
|
|
- </template>
|
|
|
|
</a-table>
|
|
</a-table>
|
|
</div>
|
|
</div>
|
|
</a-card>
|
|
</a-card>
|
|
@@ -98,13 +89,22 @@ export default {
|
|
customRender: "sortNumber"
|
|
customRender: "sortNumber"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 审批性质
|
|
|
|
+ {
|
|
|
|
+ title: () => this.$t('base.info.approval-nature'),
|
|
|
|
+ align: "center",
|
|
|
|
+ width: 150,
|
|
|
|
+ dataIndex: "taskName",
|
|
|
|
+ key: "taskName",
|
|
|
|
+ ellipsis: true
|
|
|
|
+ },
|
|
// 审批人
|
|
// 审批人
|
|
{
|
|
{
|
|
title: () => this.$t('base.info.reviewer'),
|
|
title: () => this.$t('base.info.reviewer'),
|
|
align: "center",
|
|
align: "center",
|
|
width: 150,
|
|
width: 150,
|
|
- dataIndex: "approver",
|
|
|
|
- key: "approver",
|
|
|
|
|
|
+ dataIndex: "creator",
|
|
|
|
+ key: "creator",
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
// 审批角色
|
|
// 审批角色
|
|
@@ -112,8 +112,8 @@ export default {
|
|
title: () => this.$t('base.info.approval-role'),
|
|
title: () => this.$t('base.info.approval-role'),
|
|
align: "center",
|
|
align: "center",
|
|
width: 150,
|
|
width: 150,
|
|
- dataIndex: "approveRole",
|
|
|
|
- key: "approveRole",
|
|
|
|
|
|
+ dataIndex: "roleName",
|
|
|
|
+ key: "roleName",
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
// 审批结果
|
|
// 审批结果
|
|
@@ -121,11 +121,8 @@ export default {
|
|
title: () => this.$t('base.info.review-result'),
|
|
title: () => this.$t('base.info.review-result'),
|
|
align: "center",
|
|
align: "center",
|
|
width: 150,
|
|
width: 150,
|
|
- dataIndex: "approveResult", //1-同意,2-驳回,0-进行中
|
|
|
|
- scopedSlots: {
|
|
|
|
- customRender: "approveResult"
|
|
|
|
- },
|
|
|
|
- key: "approveResult",
|
|
|
|
|
|
+ dataIndex: "taskStateName",
|
|
|
|
+ key: "taskStateName",
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
// 审批意见
|
|
// 审批意见
|
|
@@ -133,26 +130,26 @@ export default {
|
|
title: () => this.$t('base.info.review-comments'),
|
|
title: () => this.$t('base.info.review-comments'),
|
|
align: "center",
|
|
align: "center",
|
|
width: 150,
|
|
width: 150,
|
|
- dataIndex: "approveOpinion",
|
|
|
|
- key: "approveOpinion",
|
|
|
|
|
|
+ dataIndex: "voteContent",
|
|
|
|
+ key: "voteContent",
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
// 审批时间
|
|
// 审批时间
|
|
{
|
|
{
|
|
title: () => this.$t('base.info.review-time'),
|
|
title: () => this.$t('base.info.review-time'),
|
|
align: "center",
|
|
align: "center",
|
|
- dataIndex: "approveTime",
|
|
|
|
|
|
+ dataIndex: "taskEndTime",
|
|
width: 150,
|
|
width: 150,
|
|
- key: "approveTime",
|
|
|
|
|
|
+ key: "taskEndTime",
|
|
ellipsis: true
|
|
ellipsis: true
|
|
},
|
|
},
|
|
// 审批类型
|
|
// 审批类型
|
|
{
|
|
{
|
|
title: () => this.$t('base.info.approval-type'),
|
|
title: () => this.$t('base.info.approval-type'),
|
|
align: "center",
|
|
align: "center",
|
|
- dataIndex: "taskType",
|
|
|
|
|
|
+ dataIndex: "approvalTaskType",
|
|
width: 150,
|
|
width: 150,
|
|
- key: "taskType",
|
|
|
|
|
|
+ key: "approvalTaskType",
|
|
ellipsis: true
|
|
ellipsis: true
|
|
}
|
|
}
|
|
],
|
|
],
|
|
@@ -177,7 +174,7 @@ export default {
|
|
pageSize: this.pagination.pageSize
|
|
pageSize: this.pagination.pageSize
|
|
};
|
|
};
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- await this.$api.getApprovalRecordList(data).then((response) => {
|
|
|
|
|
|
+ await this.$api.getBaseInfoApprovalRecordList(data).then((response) => {
|
|
if (response.flag) {
|
|
if (response.flag) {
|
|
if (response.data && response.data.data) {
|
|
if (response.data && response.data.data) {
|
|
this.approvalRecordData = response.data.data;
|
|
this.approvalRecordData = response.data.data;
|