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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
| <template>
| <ProDialog title="明细" v-model="visible" destroy-on-close draggable>
| <PortraitTable v-bind="portraitTableProps" label-width="140px" :col-number="2"></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: 'FinanceDetailDialog',
| });
|
| type Form = {
| name?: string;
| };
|
| 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: 'name',
| type: 'text',
| },
| {
| label: '收款人账户',
| key: 'name',
| type: 'text',
| },
| {
| label: '付款人名称',
| key: 'name',
| type: 'text',
| },
| {
| label: '收款人名称',
| key: 'name',
| type: 'text',
| },
| {
| label: '付款人开户行',
| key: 'name',
| type: 'text',
| },
| {
| label: '收款人开户行',
| key: 'name',
| type: 'text',
| },
| {
| label: '币种',
| key: 'name',
| type: 'text',
| },
| {
| label: '交易金额',
| key: 'name',
| type: 'money',
| },
| {
| label: '用途',
| key: 'name',
| type: 'text',
| },
| {
| label: '摘要',
| key: 'name',
| type: 'text',
| },
| {
| label: '交易时间',
| key: 'name',
| type: 'text',
| },
| {
| label: '交易状态',
| key: 'name',
| type: 'text',
| },
| ],
| });
| </script>
|
| <style lang="scss" scoped>
| @use '@/style/common.scss' as *;
| </style>
|
|