1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
| <template>
| <ProDialog title="余额明细" v-model="visible" destroy-on-close draggable>
| <PortraitTable v-bind="portraitTableProps" label-width="140px" :col-number="1"></PortraitTable>
| <template #footer>
| <span class="dialog-footer">
| <el-button @click="emit('onCancel')" type="primary">确认</el-button>
| </span>
| </template>
| </ProDialog>
| </template>
|
| <script setup lang="ts">
| import { ProDialog, toThousand } from '@bole-core/components';
| import { usePortraitTable } from '@/hooks';
|
| defineOptions({
| name: 'PlatformDisbursementDetailDialog',
| });
|
| type Form = {
| financeAmount?: number;
| bountyAmount?: number;
| rechargeAmount?: number;
| };
|
| const visible = defineModel({ type: Boolean });
| const form = defineModel<Form>('form');
|
| const emit = defineEmits<{
| (e: 'update:modelValue', value: boolean): void;
| (e: 'onCancel'): void;
| }>();
|
| const { portraitTableProps } = usePortraitTable({
| data: form,
| columns: [
| {
| label: '财政拨付余额',
| key: 'financeAmount',
| type: 'money',
| formatter: (row) =>
| row.sumDrawWithAmount === null ? '不支持' : toThousand(row.financeAmount),
| },
| {
| label: '平台拨付余额',
| key: 'bountyAmount',
| type: 'money',
| },
| {
| label: '预充值余额',
| key: 'rechargeAmount',
| type: 'money',
| },
| ],
| });
| </script>
|
| <style lang="scss" scoped>
| @use '@/style/common.scss' as *;
| </style>
|
|