提交 35e9c27e authored 作者: 宋雄's avatar 宋雄

修改二期bug

上级 a66d164f
......@@ -115,6 +115,13 @@ export const BALANCE_STATUS = [
{label: '结算驳回', value: '4'}
]
// 支付详情
export const PAY_WAY = [
{label: '抵扣物业费', value: 'payPropertyFee'},
{label: '申请退款', value: 'refundOrder'},
{label: '扫码支付', value: 'scanQrCodePay'}
]
/**
* 翻译字段值对应的文本
* @param children
......
......@@ -36,7 +36,7 @@
</a-form>
</div> -->
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
已选择 <a style="font-weight: 600"> {{ selectionRows.length }}</a>个对账单,共计<span style="color:red">{{totalMoney}}</span>
已选择 <a style="font-weight: 600"> {{ selectionRows.length }}</a>个对账单,结算金额共计<span style="color:red">{{totalMoney}}</span>
<a style="margin-left: 24px" v-if="selectedRowKeys.length > 0" @click="onClearSelected">清空</a>
</div>
<a-row>
......@@ -116,7 +116,7 @@
<script>
import { getshareBalanceApi } from '@/api/api'
import { httpAction, getAction } from '@/api/manage'
import { filterDictTextByStatic, FENLICENTRAL_AUDIT_STATUS } from '@/assets/static.js'
import { filterDictTextByStatic, FENLICENTRAL_AUDIT_STATUS, PAY_WAY } from '@/assets/static.js'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import PropertyAdvModal from './modules/PropertyAdvModal'
......@@ -145,11 +145,21 @@ const columns = [
key: 'totalMoney',
align: 'center',
},
{
title: '分利金额',
dataIndex: 'shareMoney',
key: 'shareMoney',
align: 'center',
},
{
title: '支付方式',
dataIndex: 'payWay',
key: 'payWay',
align: 'center',
customRender: function (text) {
return filterDictTextByStatic(PAY_WAY, text)
}
},
{
title: '订单来源',
......@@ -256,7 +266,7 @@ export default {
computed: {
totalMoney() {
return this.selectionRows.reduce((prev,cur,index,arr)=> {
return parseFloat((prev + cur.totalMoney).toFixed(2))
return parseFloat((prev + cur.shareMoney).toFixed(2))
}, 0)
}
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论