contant.js
5.81 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
const CODE_STATUS = {
1: "审核中",
2: "已通过",
3: "已驳回",
4: "已撤销",
};
const CODE_STATUS_COLOR = {
1: "#FDB757",
2: "#2CCA74",
3: "#EB4E4E",
4: "#B8B8B8",
};
const PAYMENT_TYPE = {
2: "是",
1: "否",
};
const WHETHER = {
1: "是",
0: "否",
};
const PAYMENT_TYPE_OPTIONS = Object.keys(PAYMENT_TYPE).map((key) => {
return {
label: PAYMENT_TYPE[key],
value: +key,
};
}).sort((a, b) => b.value - a.value);
const IS_IN_STOCK_OPTIONS = Object.keys(WHETHER).map((key) => {
return {
label: WHETHER[key],
value: +key,
};
}).sort((a, b) => b.value - a.value);
function formatterPrice(cellValue) {
return cellValue != null ? `¥${cellValue.toFixed(2)}` : "-";
}
const TABLECOLUMNS = [
{
label: "评估单编号",
prop: "evalOrderNo",
minWidth: 176,
},
{
label: "评估单时间",
prop: "orderCreatedTime",
minWidth: 176,
},
{
label: "评估单来源",
prop: "source",
minWidth: 96,
formatter: (cellValue) => {
return {
1: "APP",
2: "小程序",
3: "人工导入",
4: "车况生成",
}[cellValue.source] || "-";
},
},
{
label: "总部定价师",
prop: "evalOperatorName",
minWidth: 120,
},
{
label: "转让协议签署",
minWidth: 120,
formatter: (cellValue) => {
return WHETHER[cellValue.transferAgreementSigned] || "-";
},
},
{
label: "交接确认单签署",
minWidth: 120,
formatter: (cellValue) => {
return WHETHER[cellValue.handoverConfirmSigned] || "-";
},
},
{
label: "补充协议签署",
minWidth: 120,
formatter: (cellValue) => {
return WHETHER[cellValue.supplementaryAgreementSigned] || "-";
},
},
{
label: "代保管协议签署",
minWidth: 120,
formatter: (cellValue) => {
return WHETHER[cellValue.custodyAgreementSigned] || "-";
},
},
{
label: "企微审批单号(定金)",
prop: "depositOaFlowCode",
minWidth: 172,
},
{
label: "企微审批状态(定金)",
minWidth: 172,
prop: "depositOaFlowStatus",
addHtml: "statusHtml",
},
{
label: "企微审批单号(尾款/全款)",
prop: "finalPaymentOaFlowCode",
minWidth: 206,
},
{
label: "企微审批状态(尾款/全款)",
minWidth: 206,
prop: "finalPaymentOaFlowStatus",
addHtml: "statusHtml",
},
{
label: "门店",
prop: "sellerMerchantName",
minWidth: 152,
},
{
label: "销售顾问",
prop: "sellerName",
minWidth: 120,
},
{
label: "驻店人员",
prop: "conversionName",
minWidth: 120,
},
{
label: "签约人",
prop: "previousOwnerName",
minWidth: 120,
},
{
label: "收款方",
prop: "payeeName",
minWidth: 120,
},
{
label: "车牌号",
prop: "licensePlate",
minWidth: 120,
},
{
label: "类别",
minWidth: 120,
formatter: (cellValue) => {
return {
1: "置换车",
2: "报废车",
}[cellValue.vehicleCategory] || "-";
},
},
{
label: "品牌",
prop: "carBrand",
minWidth: 120,
},
{
label: "车架号",
prop: "vin",
minWidth: 176,
},
{
label: "收购时间(付款)",
prop: "purchaseTime",
minWidth: 176,
},
{
label: "收购价格/元(包含对公流量费)",
minWidth: 240,
formatter: (cellValue) => {
return formatterPrice(cellValue.contractPrice);
},
},
{
label: "是否全款",
minWidth: 120,
formatter: (cellValue) => {
return PAYMENT_TYPE[cellValue.paymentType] || "-";
},
},
{
label: "定金时间",
prop: "depositTime",
minWidth: 176,
},
{
label: "定金金额",
minWidth: 120,
formatter: (cellValue) => {
return formatterPrice(cellValue.depositAmount);
},
},
{
label: "尾款时间",
prop: "finalPaymentTime",
minWidth: 176,
},
{
label: "尾款金额",
minWidth: 120,
formatter: (cellValue) => {
return formatterPrice(cellValue.finalPaymentAmount);
},
},
{
label: "入库时间",
prop: "storageTime",
minWidth: 176,
},
{
label: "是否交付",
minWidth: 120,
formatter: (cellValue) => {
return WHETHER[cellValue.isDelivered] || "-";
},
},
{
label: "是否在库",
minWidth: 120,
formatter: (cellValue) => {
return WHETHER[cellValue.isInStock] || "-";
},
},
{
label: "在库时长/天",
prop: "daysInStock",
minWidth: 120,
},
{
label: "是否拍卖",
minWidth: 120,
formatter: (cellValue) => {
return WHETHER[cellValue.isAuctioned] || "-";
},
},
{
label: "拍卖价格",
minWidth: 120,
formatter: (cellValue) => {
return formatterPrice(cellValue.sellingPrice);
},
},
{
label: "拍卖时间",
prop: "auctionTime",
minWidth: 176,
},
{
label: "收款时间",
prop: "sellingTime",
minWidth: 176,
},
{
label: "付款方",
prop: "seller",
minWidth: 120,
},
{
label: "收拍利润",
minWidth: 120,
formatter: (cellValue) => {
return formatterPrice(cellValue.profit);
},
},
{
label: "拍卖平台",
prop: "auctionPlatform",
minWidth: 120,
},
{
label: "备注",
prop: "sellingNotes",
minWidth: 120,
},
{
label: "车主身份证号码",
prop: "partAIdentityCode",
minWidth: 150,
},
{
label: "电话",
prop: "partAContactMobile",
minWidth: 120,
},
{
label: "卖方单位/个人地址",
prop: "partAAddress",
minWidth: 150,
},
{
label: "登记证号",
prop: "registrationNo",
minWidth: 120,
},
{
label: "厂牌(品牌)型号",
prop: "brandModel",
minWidth: 144,
},
{
label: "车辆类型",
prop: "vehicleType",
minWidth: 120,
},
{
label: "是否对账",
prop: "isReconciled",
minWidth: 120,
},
];
module.exports = {
TABLECOLUMNS,
CODE_STATUS,
CODE_STATUS_COLOR,
PAYMENT_TYPE_OPTIONS,
IS_IN_STOCK_OPTIONS,
};