|
@@ -20,14 +20,7 @@
|
|
|
:table-data="paymentDetailList"
|
|
|
:columns="paymentDetailColumns"
|
|
|
width="1108px"
|
|
|
- >
|
|
|
- <template v-slot:return_type="{ row }">
|
|
|
- <span class="column-cell">{{ setReturnType(row.row.return_type) }}</span>
|
|
|
- </template>
|
|
|
- <template v-slot:flow_money="{ row }">
|
|
|
- <span class="column-cell">{{ formatNumber(row.row.flow_money) }}</span>
|
|
|
- </template>
|
|
|
- </TableCard>
|
|
|
+ ></TableCard>
|
|
|
</div>
|
|
|
</InfoCard>
|
|
|
<InfoCard title="用户自助下单对公转账">
|
|
@@ -53,7 +46,6 @@
|
|
|
<script>
|
|
|
import InfoCard from '../../ui/InfoCard.vue';
|
|
|
import TableCard from '../../ui/TableCard.vue';
|
|
|
-import { roundToTwoDecimals } from '@/utils/number/';
|
|
|
export default {
|
|
|
name: 'PaymentInfo',
|
|
|
components: {
|
|
@@ -87,8 +79,8 @@ export default {
|
|
|
width: '112',
|
|
|
render (row) {
|
|
|
const payCashStatus = [
|
|
|
- { v: '1', n: '微信' },
|
|
|
- { v: '2', n: '支付宝' },
|
|
|
+ { v: '1', n: '微信支付' },
|
|
|
+ { v: '2', n: '支付宝支付' },
|
|
|
{ v: '3', n: '对公转账' }
|
|
|
]
|
|
|
return payCashStatus.find(v => v.v == row.return_type).n || '-'
|
|
@@ -122,7 +114,7 @@ export default {
|
|
|
prop: 'flow_money',
|
|
|
width: '112',
|
|
|
render: (row) => {
|
|
|
- return row.flow_money ? this.returnAmount(row.flow_money) : this.returnAmount(0)
|
|
|
+ return row.flow_money ? '¥' + this.returnAmount(row.flow_money) : this.returnAmount(0)
|
|
|
}
|
|
|
},
|
|
|
{
|
|
@@ -228,12 +220,7 @@ export default {
|
|
|
} else {
|
|
|
return '未回款'
|
|
|
}
|
|
|
- },
|
|
|
- formatNumber(num, x = 2) {
|
|
|
- if(!num) return 0.00
|
|
|
- const newnum = Number(num) / 100;
|
|
|
- return roundToTwoDecimals(newnum, x)
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|