data.tsx
2.7 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
import { InputNumber, Tag } from 'ant-design-vue';
import { BasicColumn } from '@/components/Table';
import { func } from 'vue-types';
import { h, ref } from 'vue';
import { FilePptOutlined } from '@ant-design/icons-vue';
// export const COLUMNS = [
// {
// title: '客户编码',
// dataIndex: 'settingValue',
// width: 150,
// },
// {
// title: '利润率',
// dataIndex: 'relationValue',
// width: 150,
// editComponent: 'InputNumber',
// editRow: true,
// scopedSlots: { customRender: 'name' }
// },
// ];
export const COLUMNS = [
{
title: '客户编码',
dataIndex: 'customerCode',
width: 150,
},
{
title: '项目号',
dataIndex: 'projectNo',
width: 100,
},
{
title: '生产科',
dataIndex: 'productionDepartment',
width: 100,
},
{
title: '内部编号',
dataIndex: 'innerNo',
width: 100,
},
{
title: '订单图片',
dataIndex: 'picUrl',
width: 100,
},
{
title: '数量',
dataIndex: 'orderCount',
width: 100,
},
{
title: '包装费用$',
dataIndex: 'packetPrice',
width: 120,
customRender: (column) => {
console.log(column, '565665pa');
return column.record?.packetPrice?.toFixed(2);
},
},
{
title: '包装费用合计¥',
dataIndex: 'packetRmbTotalPrice',
width: 120,
customRender: (column) => {
console.log(column, '565665pa');
return column.record?.packetRmbTotalPrice?.toFixed(2);
},
},
{
title: '包装费用合计$',
dataIndex: 'packetTotalPrice',
width: 120,
customRender: (column) => {
console.log(column, '5656column');
return column.record?.packetTotalPrice?.toFixed(2);
},
},
{
title: '包装费用实际金额¥',
dataIndex: 'packetActualRmbTotalPrice',
width: 150,
customRender: (column) => {
return column.record?.packetActualRmbTotalPrice?.toFixed(2);
},
},
{
title: '实际跟单单价¥',
dataIndex: 'packetActualRmbPrice',
width: 120,
customRender: (column) => {
return column.record?.packetActualRmbPrice?.toFixed(2);
},
},
{
title: '实际跟单单价折算美金$',
dataIndex: 'packetActualPrice',
width: 170,
customRender: (column) => {
return column.record?.packetActualPrice?.toFixed(2);
},
},
{
title: '包装费用收益¥',
dataIndex: 'packetProfitRmbPrice',
width: 120,
customRender: (column) => {
return column.record?.packetProfitRmbPrice?.toFixed(2);
},
},
{
title: '包装费用净利润率',
dataIndex: 'packetProfitRate',
width: 140,
customRender: (column) => {
return column.record?.packetProfitRate?.toFixed(2);
},
},
];