diff --git a/src/views/MessagePage/PaymentVoucher.vue b/src/views/MessagePage/PaymentVoucher.vue
index d7bc391..cf4a002 100644
--- a/src/views/MessagePage/PaymentVoucher.vue
+++ b/src/views/MessagePage/PaymentVoucher.vue
@@ -48,8 +48,11 @@
-
-
+
+
+
@@ -57,7 +60,7 @@
- {{text}}
+ {{ text }}
@@ -71,7 +74,8 @@
- 添加阶段
+ 添加阶段
@@ -110,7 +114,8 @@
缴费凭证:
-
![]()
+
@@ -173,13 +178,11 @@ import PageHeaderTitle from '@/components/layouts/PageHeaderTitle'
const columns = [
{
title: '阶段',
- dataIndex: '',
+ dataIndex: 'stage',
key: 'rowIndex',
width: 120,
align: 'center',
- customRender: function (t, r, index) {
- return r.paymentStatus === 'completed' ? `${ convertToChinaNum(parseInt(index) + 1) }阶段` : ''
- }
+ scopedSlots: { customRender: 'stage' }
}, {
title: '缴费金额',
dataIndex: 'amountReceived',
@@ -242,6 +245,7 @@ export default {
this.getAuditProofList()
},
methods: {
+ convertToChinaNum,
/**
* 获取阶段信息
* @param arg
@@ -285,7 +289,7 @@ export default {
})
},
handleDelete(record) {
- if(!this.url.delete){
+ if (!this.url.delete) {
this.$message.error('请设置url.delete属性!')
return
}
@@ -293,8 +297,8 @@ export default {
this.$confirm({
title: '确认删除',
content: '确定要删除此条数据吗?',
- onOk: function() {
- postAction(that.url.delete, {id: record.id, paymentStatus: record.paymentStatus}).then((res) => {
+ onOk: function () {
+ postAction(that.url.delete, { id: record.id, paymentStatus: record.paymentStatus }).then((res) => {
if (res.success) {
that.$message.success(res.message)
// 判断当前删除的数据是否是最后一页的最后一条数据,如果是的话页码减一
@@ -366,7 +370,7 @@ export default {
}).finally(() => {
this.proofLoading = false
})
- },
+ }
}
}