receive.data.tsx
3.51 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
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: 'invoiceNo',
label: 'Invoice编号',
component: 'Input',
colProps: { span: 6 },
},
{
field: 'status',
label: '总经理审核',
component: 'Select',
colProps: { span: 6 },
componentProps: {
options: [
{ label: '未提交审核', value: -1 },
{ label: '待审核', value: 0 },
{ label: '审核通过', value: 1 },
{ label: '审核驳回', value: 2 },
],
},
},
{
field: 'customerCode',
label: '客户编码',
component: 'Input',
colProps: {
span: 6,
},
// labelWidth: 140,
},
];
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;
if (deductUrl == undefined) {
return;
}
// return <FilePptOutlined style="font-size:25px" onClick={() => window.open(deductUrl[0])} />;
return <FilePptOutlined style="font-size:25px" />;
},
},
{
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 == 10) {
return '审核通过';
} else if (column.record.status == 20) {
return '审核驳回';
}
},
},
];
export const columnsAnalysis: BasicColumn[] = [
{
title: '实际应付金额总计$',
dataIndex: 'actualPayedAmount',
width: 50,
// customRender: (column) => {
// console.log(column, 5656666);
// return 1;
// },
},
{
title: '实际应收金额总计$',
dataIndex: 'actualReceivableAmount',
width: 50,
},
{
title: '客户总价$',
dataIndex: 'customerTotalPrice',
width: 50,
},
{
title: '发生扣款金额总计$',
dataIndex: 'deductAmount',
width: 50,
},
{
title: '实际应收金额总计$',
dataIndex: 'actualReceivableAmount',
width: 50,
},
{
title: '实际应收$',
dataIndex: 'otherAmount',
width: 50,
},
{
title: '其他费用金额汇总$',
dataIndex: 'otherTotalAmount',
width: 50,
},
];