receive.data.tsx
2.19 KB
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
import { FormSchema } from '/@/components/Form';
import { BasicColumn } from '/@/components/Table';
import { icon } from 'ant-design-vue';
import { FilePptOutlined } from '@ant-design/icons-vue';
import { size } from 'lodash-es';
import { ref } from 'vue';
export const searchFormSchema: FormSchema[] = [
{
field: 'invoice',
label: 'Invoice编号',
component: 'Select',
colProps: { span: 8 },
},
{
field: 'nickName',
label: '总经理审核',
component: 'Input',
colProps: { span: 8 },
},
];
export const columns: BasicColumn[] = [
{
title: 'Invoice编号',
dataIndex: 'invoiceNo',
width: 180,
},
{
title: '报关单',
dataIndex: 'bgUrl',
width: 80,
customRender: (column) => {
const bgUrl = column.record.bgUrl;
return <FilePptOutlined style="font-size:25px" onClick={() => window.open(bgUrl)} />;
},
},
{
title: '必须回款日期',
dataIndex: 'backRefundDate',
width: 120,
},
{
title: '发生扣款金额',
dataIndex: 'deductAmount',
width: 120,
},
{
title: '上传扣款单',
dataIndex: 'deductUrl',
width: 80,
customRender: (column) => {
const deductUrl = column.record.deductUrl;
return <FilePptOutlined style="font-size:25px" onClick={() => window.open(deductUrl)} />;
},
},
{
title: '实际应收金额',
dataIndex: 'actualReceivableAmount',
width: 120,
},
{
title: '实际收款金额1',
dataIndex: 'actualPayedAmount1',
width: 120,
},
{
title: '实际收款金额2',
dataIndex: 'actualPayedAmount2',
width: 120,
},
{
title: '实际收款金额3',
dataIndex: 'actualPayedAmount3',
width: 120,
},
{
title: '其他费用',
dataIndex: 'otherAmount',
width: 120,
},
{
title: '总经理审核',
dataIndex: 'status',
width: 120,
customRender: (column) => {
if (column.record.status == -1) {
return '未提交审核';
} else if (column.record.status == 0) {
return '待审核';
} else if (column.record.status == 1) {
return '审核通过';
} else if (column.record.status == 2) {
return '审核驳回';
}
},
},
];