到账阶段bug修改

This commit is contained in:
zhaoxiao
2022-01-07 09:50:22 +08:00
parent 6bba50de79
commit a2688b86a8
+17 -13
View File
@@ -48,8 +48,11 @@
</template> </template>
<!-- 阶段--> <!-- 阶段-->
<template slot="steg" slot-scope="text, record"> <template slot="stage" slot-scope="text, record">
<j-ellipsis :value="text" :length="20"></j-ellipsis> <j-ellipsis
:value="record.paymentStatus === 'completed' ? `${ convertToChinaNum(text) }阶段` : ''"
:length="20">
</j-ellipsis>
</template> </template>
<!-- 缴费凭证--> <!-- 缴费凭证-->
@@ -57,7 +60,7 @@
<div class="proof-img-box" v-if="text && text !== ''"> <div class="proof-img-box" v-if="text && text !== ''">
<img :src="proofSrc(text)" @click="previewProofImg(text)"> <img :src="proofSrc(text)" @click="previewProofImg(text)">
</div> </div>
<span v-else>{{text}}</span> <span v-else>{{ text }}</span>
</template> </template>
<!-- 操作--> <!-- 操作-->
@@ -71,7 +74,8 @@
</div> </div>
<!-- 表格区域end--> <!-- 表格区域end-->
<!-- 添加阶段按钮--> <!-- 添加阶段按钮-->
<a-button type="primary" icon="plus" class="add-stage-btn" @click="addStage" :disabled="editDisabled || Number(receivableAmount) === 0">添加阶段 <a-button type="primary" icon="plus" class="add-stage-btn" @click="addStage"
:disabled="editDisabled || Number(receivableAmount) === 0">添加阶段
</a-button> </a-button>
<!-- 审核记录--> <!-- 审核记录-->
@@ -110,7 +114,8 @@
<a-col :span="8"> <a-col :span="8">
<div class="audit-info-item"> <div class="audit-info-item">
<span class="audit-info-item-title">缴费凭证</span> <span class="audit-info-item-title">缴费凭证</span>
<img class="audit-info-img" :src="proofSrc(item.proof)" @click="previewProofImg(item.proof)" v-if="item.proof && item.proof !== ''"> <img class="audit-info-img" :src="proofSrc(item.proof)" @click="previewProofImg(item.proof)"
v-if="item.proof && item.proof !== ''">
</div> </div>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
@@ -173,13 +178,11 @@ import PageHeaderTitle from '@/components/layouts/PageHeaderTitle'
const columns = [ const columns = [
{ {
title: '阶段', title: '阶段',
dataIndex: '', dataIndex: 'stage',
key: 'rowIndex', key: 'rowIndex',
width: 120, width: 120,
align: 'center', align: 'center',
customRender: function (t, r, index) { scopedSlots: { customRender: 'stage' }
return r.paymentStatus === 'completed' ? `${ convertToChinaNum(parseInt(index) + 1) }阶段` : ''
}
}, { }, {
title: '缴费金额', title: '缴费金额',
dataIndex: 'amountReceived', dataIndex: 'amountReceived',
@@ -242,6 +245,7 @@ export default {
this.getAuditProofList() this.getAuditProofList()
}, },
methods: { methods: {
convertToChinaNum,
/** /**
* 获取阶段信息 * 获取阶段信息
* @param arg * @param arg
@@ -285,7 +289,7 @@ export default {
}) })
}, },
handleDelete(record) { handleDelete(record) {
if(!this.url.delete){ if (!this.url.delete) {
this.$message.error('请设置url.delete属性!') this.$message.error('请设置url.delete属性!')
return return
} }
@@ -293,8 +297,8 @@ export default {
this.$confirm({ this.$confirm({
title: '确认删除', title: '确认删除',
content: '确定要删除此条数据吗?', content: '确定要删除此条数据吗?',
onOk: function() { onOk: function () {
postAction(that.url.delete, {id: record.id, paymentStatus: record.paymentStatus}).then((res) => { postAction(that.url.delete, { id: record.id, paymentStatus: record.paymentStatus }).then((res) => {
if (res.success) { if (res.success) {
that.$message.success(res.message) that.$message.success(res.message)
// 判断当前删除的数据是否是最后一页的最后一条数据,如果是的话页码减一 // 判断当前删除的数据是否是最后一页的最后一条数据,如果是的话页码减一
@@ -366,7 +370,7 @@ export default {
}).finally(() => { }).finally(() => {
this.proofLoading = false this.proofLoading = false
}) })
}, }
} }
} }