@kmkf-fe-packages/kmkf-work-order-service-component 2.2.41 → 2.2.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/FlowTemplateDetailV2/components/AutoTaskDetail/index.d.ts +3 -1
- package/dist/esm/FlowTemplateDetailV2/components/AutoTaskDetail/index.js +65 -3
- package/dist/esm/FlowTemplateDetailV2/components/CurrentNode/index.js +3 -2
- package/dist/esm/FlowTemplateDetailV2/components/Item/index.js +3 -2
- package/dist/esm/FlowTemplateDetailV2/store/selector.d.ts +0 -1
- package/dist/esm/LBOrderDetail/detail/OrderInfo.d.ts +18 -0
- package/dist/esm/LBOrderDetail/detail/OrderInfo.js +628 -0
- package/dist/esm/LBOrderDetail/detail/ServiceProgress.d.ts +11 -0
- package/dist/esm/LBOrderDetail/detail/ServiceProgress.js +446 -0
- package/dist/esm/LBOrderDetail/detail/index.d.ts +12 -0
- package/dist/esm/LBOrderDetail/detail/index.js +50 -0
- package/dist/esm/LBOrderDetail/detail/index.module.less +63 -0
- package/dist/esm/LBOrderDetail/detail/services.d.ts +4 -0
- package/dist/esm/LBOrderDetail/detail/services.js +28 -0
- package/dist/esm/LBOrderDetail/detail/types.d.ts +383 -0
- package/dist/esm/LBOrderDetail/detail/types.js +1 -0
- package/dist/esm/LBOrderDetail/index.d.ts +14 -0
- package/dist/esm/LBOrderDetail/index.js +63 -0
- package/dist/esm/common/utils/constant.js +8 -0
- package/dist/esm/common/utils/submitDataTransOldFormat.js +3 -0
- package/dist/esm/common/utils/tools.js +16 -14
- package/dist/esm/common/utils/transformWorkOrderData.js +7 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/model/types/login.d.ts +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,628 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { Table, message, Image } from 'antd';
|
|
9
|
+
import { ApaasImage } from '@kmkf-fe-packages/basic-components';
|
|
10
|
+
import moment from 'moment';
|
|
11
|
+
import styles from "./index.module.less";
|
|
12
|
+
import { queryInstallationRepairDetail, queryColumns } from "./services";
|
|
13
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
export var renderTime = function renderTime(value) {
|
|
15
|
+
return value && value !== '--' ? moment(value).format('YYYY-MM-DD HH:mm:ss') : value !== null && value !== void 0 ? value : '';
|
|
16
|
+
};
|
|
17
|
+
export var renderImages = function renderImages(value) {
|
|
18
|
+
if (typeof value !== 'string' || !/^https?:/.test(value)) return;
|
|
19
|
+
var list = value ? value.split(',') : [];
|
|
20
|
+
return /*#__PURE__*/React.createElement(Image.PreviewGroup, null, /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
style: {
|
|
22
|
+
display: 'flex',
|
|
23
|
+
flexWrap: 'wrap'
|
|
24
|
+
}
|
|
25
|
+
}, list.map(function (url, index) {
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
key: "".concat(url, "-").concat(index),
|
|
28
|
+
style: {
|
|
29
|
+
marginRight: 4
|
|
30
|
+
}
|
|
31
|
+
}, /*#__PURE__*/React.createElement(ApaasImage, {
|
|
32
|
+
src: url,
|
|
33
|
+
width: 24
|
|
34
|
+
}));
|
|
35
|
+
})));
|
|
36
|
+
};
|
|
37
|
+
export var renderTable = function renderTable(value, record, item, effects, key) {
|
|
38
|
+
if (!('children' in item)) return;
|
|
39
|
+
if (!value || value.length === 0) return;
|
|
40
|
+
return /*#__PURE__*/React.createElement(Table, {
|
|
41
|
+
scroll: {
|
|
42
|
+
x: 'max-content'
|
|
43
|
+
},
|
|
44
|
+
columns: item.children,
|
|
45
|
+
dataSource: value,
|
|
46
|
+
pagination: false,
|
|
47
|
+
size: "small"
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
// DETAIL_ITEM_LIST列表也用于kefu项目中安装/维修单详情展示,对于像店铺shopUk这种需要外部传入effects的render函数字段,kefu那边需要额外处理,其他字段可直接添加会直接同步
|
|
51
|
+
export var DETAIL_ITEM_LIST = [{
|
|
52
|
+
title: '订单号',
|
|
53
|
+
dataIndex: 'tid'
|
|
54
|
+
}, {
|
|
55
|
+
title: '下单状态',
|
|
56
|
+
dataIndex: 'orderStatus',
|
|
57
|
+
render: function render(value) {
|
|
58
|
+
var item = [{
|
|
59
|
+
value: 0,
|
|
60
|
+
label: '失败',
|
|
61
|
+
color: '#ff4d4f'
|
|
62
|
+
}, {
|
|
63
|
+
value: 1,
|
|
64
|
+
label: '成功',
|
|
65
|
+
color: '#52c41a'
|
|
66
|
+
}][value];
|
|
67
|
+
return item ? /*#__PURE__*/React.createElement("span", {
|
|
68
|
+
style: {
|
|
69
|
+
color: item.color
|
|
70
|
+
}
|
|
71
|
+
}, item.label) : value;
|
|
72
|
+
}
|
|
73
|
+
}, {
|
|
74
|
+
title: '安装/维修订单编号',
|
|
75
|
+
dataIndex: 'orderSn'
|
|
76
|
+
}, {
|
|
77
|
+
title: '安装/维修订单ID',
|
|
78
|
+
dataIndex: 'orderId'
|
|
79
|
+
}, {
|
|
80
|
+
title: '下单平台',
|
|
81
|
+
dataIndex: 'platformDesc'
|
|
82
|
+
}, {
|
|
83
|
+
title: '服务类型',
|
|
84
|
+
dataIndex: 'serviceTypeDesc'
|
|
85
|
+
}, {
|
|
86
|
+
title: '服务状态',
|
|
87
|
+
dataIndex: 'serviceStatusDesc',
|
|
88
|
+
render: function render(value) {
|
|
89
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
90
|
+
style: {
|
|
91
|
+
color: '#1b5bf3'
|
|
92
|
+
}
|
|
93
|
+
}, value);
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
title: '最新服务进度',
|
|
97
|
+
dataIndex: 'latestServiceProgressDesc',
|
|
98
|
+
render: function render(value) {
|
|
99
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
100
|
+
style: {
|
|
101
|
+
color: '#1b5bf3'
|
|
102
|
+
}
|
|
103
|
+
}, value);
|
|
104
|
+
}
|
|
105
|
+
}, {
|
|
106
|
+
title: '最新服务进度时间',
|
|
107
|
+
dataIndex: 'latestProgressTime',
|
|
108
|
+
render: renderTime
|
|
109
|
+
}, {
|
|
110
|
+
title: '商品信息',
|
|
111
|
+
dataIndex: 'goodsList',
|
|
112
|
+
children: [{
|
|
113
|
+
title: '商品名称',
|
|
114
|
+
dataIndex: 'productName'
|
|
115
|
+
}, {
|
|
116
|
+
title: '商品编码',
|
|
117
|
+
dataIndex: 'productNum'
|
|
118
|
+
}, {
|
|
119
|
+
title: 'SKU名称',
|
|
120
|
+
dataIndex: 'goodsModel'
|
|
121
|
+
}, {
|
|
122
|
+
title: 'SKU编码',
|
|
123
|
+
dataIndex: 'specificationCode'
|
|
124
|
+
}, {
|
|
125
|
+
title: '平台SKU ID',
|
|
126
|
+
dataIndex: 'skuID'
|
|
127
|
+
}, {
|
|
128
|
+
title: '数量',
|
|
129
|
+
dataIndex: 'quantity'
|
|
130
|
+
}, {
|
|
131
|
+
title: '商品图片',
|
|
132
|
+
dataIndex: 'goodsUrl',
|
|
133
|
+
render: renderImages
|
|
134
|
+
}, {
|
|
135
|
+
title: '备注',
|
|
136
|
+
dataIndex: 'remark'
|
|
137
|
+
}],
|
|
138
|
+
render: function render() {
|
|
139
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
140
|
+
args[_key] = arguments[_key];
|
|
141
|
+
}
|
|
142
|
+
return renderTable.apply(void 0, args.concat(['goodsList']));
|
|
143
|
+
}
|
|
144
|
+
}, {
|
|
145
|
+
title: '下单时间',
|
|
146
|
+
dataIndex: 'orderTime',
|
|
147
|
+
render: renderTime
|
|
148
|
+
}, {
|
|
149
|
+
title: '客户姓名',
|
|
150
|
+
dataIndex: 'customerName'
|
|
151
|
+
}, {
|
|
152
|
+
title: '客户手机号',
|
|
153
|
+
dataIndex: 'customerPhone'
|
|
154
|
+
}, {
|
|
155
|
+
title: '客户地址',
|
|
156
|
+
dataIndex: 'customerAddress'
|
|
157
|
+
}, {
|
|
158
|
+
title: '服务备注',
|
|
159
|
+
dataIndex: 'serviceRemark'
|
|
160
|
+
}, {
|
|
161
|
+
title: '下单联系人',
|
|
162
|
+
dataIndex: 'orderContact'
|
|
163
|
+
}, {
|
|
164
|
+
title: '下单联系电话',
|
|
165
|
+
dataIndex: 'orderContactPhone'
|
|
166
|
+
}, {
|
|
167
|
+
title: '期望上门时间',
|
|
168
|
+
dataIndex: 'expectedVisitTime',
|
|
169
|
+
render: renderTime
|
|
170
|
+
},
|
|
171
|
+
// {
|
|
172
|
+
// title: '是否核销单',
|
|
173
|
+
// dataIndex: 'writeOffType',
|
|
174
|
+
// render: (value) => ['否', '喵师傅核销', '汪师傅核销'][value] || value,
|
|
175
|
+
// },
|
|
176
|
+
// {
|
|
177
|
+
// title: '核销单号',
|
|
178
|
+
// dataIndex: 'writeOffNo',
|
|
179
|
+
// },
|
|
180
|
+
{
|
|
181
|
+
title: '师傅促好评返现',
|
|
182
|
+
dataIndex: 'isGoodReviewRebate',
|
|
183
|
+
render: function render(value) {
|
|
184
|
+
return ['无', '有'][value] || value;
|
|
185
|
+
}
|
|
186
|
+
}, {
|
|
187
|
+
title: '是否加急',
|
|
188
|
+
dataIndex: 'isUrgent',
|
|
189
|
+
render: function render(value) {
|
|
190
|
+
return ['不加急', '加急'][value] || value;
|
|
191
|
+
}
|
|
192
|
+
}, {
|
|
193
|
+
title: '客户旺旺号',
|
|
194
|
+
dataIndex: 'customerWw'
|
|
195
|
+
}, {
|
|
196
|
+
title: '是否到货',
|
|
197
|
+
dataIndex: 'isArrived',
|
|
198
|
+
render: function render(value) {
|
|
199
|
+
return ['未到货', '到货'][value] || value;
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
// {
|
|
203
|
+
// title: '物流公司名称',
|
|
204
|
+
// dataIndex: 'logisticsCompany',
|
|
205
|
+
// },
|
|
206
|
+
// {
|
|
207
|
+
// title: '物流单号',
|
|
208
|
+
// dataIndex: 'logisticsNo',
|
|
209
|
+
// },
|
|
210
|
+
// {
|
|
211
|
+
// title: '货物数量',
|
|
212
|
+
// dataIndex: 'goodsQuantity',
|
|
213
|
+
// },
|
|
214
|
+
// {
|
|
215
|
+
// title: '有无电梯',
|
|
216
|
+
// dataIndex: 'hasElevator',
|
|
217
|
+
// render: (value) => (['无', '有'][value] || value),
|
|
218
|
+
// },
|
|
219
|
+
// {
|
|
220
|
+
// title: '楼层',
|
|
221
|
+
// dataIndex: 'floor',
|
|
222
|
+
// },
|
|
223
|
+
// {
|
|
224
|
+
// title: '提货地址',
|
|
225
|
+
// dataIndex: 'pickupAddress',
|
|
226
|
+
// },
|
|
227
|
+
// {
|
|
228
|
+
// title: '提货电话',
|
|
229
|
+
// dataIndex: 'pickupPhone',
|
|
230
|
+
// },
|
|
231
|
+
// {
|
|
232
|
+
// title: '货物规格',
|
|
233
|
+
// dataIndex: 'goodsSpec',
|
|
234
|
+
// },
|
|
235
|
+
// {
|
|
236
|
+
// title: '配送备注',
|
|
237
|
+
// dataIndex: 'deliveryRemark',
|
|
238
|
+
// },
|
|
239
|
+
{
|
|
240
|
+
title: '店铺',
|
|
241
|
+
dataIndex: 'shopUk',
|
|
242
|
+
render: function render(value, record, item, effects) {
|
|
243
|
+
var _effects$shopList;
|
|
244
|
+
var shop = (_effects$shopList = effects.shopList) === null || _effects$shopList === void 0 ? void 0 : _effects$shopList.find(function (shop) {
|
|
245
|
+
return shop.uniqueKey === value;
|
|
246
|
+
});
|
|
247
|
+
return shop ? shop.shopName : value;
|
|
248
|
+
}
|
|
249
|
+
}, {
|
|
250
|
+
title: '流程工单编号',
|
|
251
|
+
dataIndex: 'flowWorkOrderId'
|
|
252
|
+
}, {
|
|
253
|
+
title: '接单师傅姓名',
|
|
254
|
+
dataIndex: 'acceptWorkerName'
|
|
255
|
+
}, {
|
|
256
|
+
title: '师傅接单时间',
|
|
257
|
+
dataIndex: 'acceptTime',
|
|
258
|
+
render: renderTime
|
|
259
|
+
}, {
|
|
260
|
+
title: '物流签收师傅姓名',
|
|
261
|
+
dataIndex: 'logisticsSignWorkerName'
|
|
262
|
+
}, {
|
|
263
|
+
title: '师傅物流签收时间',
|
|
264
|
+
dataIndex: 'logisticsSignTime',
|
|
265
|
+
render: renderTime
|
|
266
|
+
}, {
|
|
267
|
+
title: '验收师傅姓名',
|
|
268
|
+
dataIndex: 'checkWorkerName'
|
|
269
|
+
}, {
|
|
270
|
+
title: '验收时间',
|
|
271
|
+
dataIndex: 'checkTime',
|
|
272
|
+
render: renderTime
|
|
273
|
+
}, {
|
|
274
|
+
title: '关单师傅姓名',
|
|
275
|
+
dataIndex: 'closeWorkerName'
|
|
276
|
+
}, {
|
|
277
|
+
title: '关单时间',
|
|
278
|
+
dataIndex: 'closeTime',
|
|
279
|
+
render: renderTime
|
|
280
|
+
}, {
|
|
281
|
+
title: '预约师傅姓名',
|
|
282
|
+
dataIndex: 'appointWorkerName'
|
|
283
|
+
}, {
|
|
284
|
+
title: '师傅预约操作类型',
|
|
285
|
+
dataIndex: 'appointType'
|
|
286
|
+
}, {
|
|
287
|
+
title: '师傅和客户预约开始时间',
|
|
288
|
+
dataIndex: 'appointStartTime',
|
|
289
|
+
render: renderTime
|
|
290
|
+
}, {
|
|
291
|
+
title: '师傅和客户预约结束时间',
|
|
292
|
+
dataIndex: 'appointEndTime',
|
|
293
|
+
render: renderTime
|
|
294
|
+
}, {
|
|
295
|
+
title: '上门打卡师傅姓名',
|
|
296
|
+
dataIndex: 'clockInWorkerName'
|
|
297
|
+
}, {
|
|
298
|
+
title: '师傅打卡时间',
|
|
299
|
+
dataIndex: 'clockInTime',
|
|
300
|
+
render: renderTime
|
|
301
|
+
}, {
|
|
302
|
+
title: '师傅打卡方式',
|
|
303
|
+
dataIndex: 'clockInType'
|
|
304
|
+
}, {
|
|
305
|
+
title: '师傅完工时间',
|
|
306
|
+
dataIndex: 'workerFinishTime',
|
|
307
|
+
render: renderTime
|
|
308
|
+
}, {
|
|
309
|
+
title: '师傅完工图',
|
|
310
|
+
dataIndex: 'finishImages',
|
|
311
|
+
render: renderImages
|
|
312
|
+
}, {
|
|
313
|
+
title: '师傅完工验收单',
|
|
314
|
+
dataIndex: 'finishSignImages',
|
|
315
|
+
render: renderImages
|
|
316
|
+
}, {
|
|
317
|
+
title: '师傅完工好评图',
|
|
318
|
+
dataIndex: 'finishGoodImages',
|
|
319
|
+
render: renderImages
|
|
320
|
+
}, {
|
|
321
|
+
title: '师傅异常预约操作时间',
|
|
322
|
+
dataIndex: 'exceptionAppointTime',
|
|
323
|
+
render: renderTime
|
|
324
|
+
}, {
|
|
325
|
+
title: '异常预约类型',
|
|
326
|
+
dataIndex: 'exceptionType'
|
|
327
|
+
}, {
|
|
328
|
+
title: '异常预约描述',
|
|
329
|
+
dataIndex: 'exceptionRemark'
|
|
330
|
+
}, {
|
|
331
|
+
title: '挂起时间',
|
|
332
|
+
dataIndex: 'hangUpTime',
|
|
333
|
+
render: renderTime
|
|
334
|
+
}, {
|
|
335
|
+
title: '取消挂起时间',
|
|
336
|
+
dataIndex: 'cancelHangUpTime',
|
|
337
|
+
render: renderTime
|
|
338
|
+
}, {
|
|
339
|
+
title: '挂起原因类型',
|
|
340
|
+
dataIndex: 'hangUpType'
|
|
341
|
+
}, {
|
|
342
|
+
title: '挂起描述',
|
|
343
|
+
dataIndex: 'hangUpRemark'
|
|
344
|
+
}, {
|
|
345
|
+
title: '师傅申请增加费用工单',
|
|
346
|
+
dataIndex: 'increaseFeeOrders',
|
|
347
|
+
children: [{
|
|
348
|
+
title: '工单编号',
|
|
349
|
+
dataIndex: 'serviceId'
|
|
350
|
+
}, {
|
|
351
|
+
title: '申请时间',
|
|
352
|
+
dataIndex: 'applyTime',
|
|
353
|
+
render: renderTime
|
|
354
|
+
}, {
|
|
355
|
+
title: '增加费用类型',
|
|
356
|
+
dataIndex: 'feeType'
|
|
357
|
+
}, {
|
|
358
|
+
title: '申请金额',
|
|
359
|
+
dataIndex: 'applyAmount'
|
|
360
|
+
}, {
|
|
361
|
+
title: '师傅描述',
|
|
362
|
+
dataIndex: 'workerRemark'
|
|
363
|
+
}, {
|
|
364
|
+
title: '申请图片证明',
|
|
365
|
+
dataIndex: 'applyImages',
|
|
366
|
+
render: renderImages
|
|
367
|
+
}, {
|
|
368
|
+
title: '审核图片证明',
|
|
369
|
+
dataIndex: 'verifyImageProof',
|
|
370
|
+
render: renderImages
|
|
371
|
+
}, {
|
|
372
|
+
title: '申请状态',
|
|
373
|
+
dataIndex: 'applyStatus'
|
|
374
|
+
}, {
|
|
375
|
+
title: '处理结果',
|
|
376
|
+
dataIndex: 'processResult',
|
|
377
|
+
render: function render(value) {
|
|
378
|
+
return value === '1' ? '同意' : value === '2' ? '不同意' : value;
|
|
379
|
+
}
|
|
380
|
+
}, {
|
|
381
|
+
title: '费用承担方',
|
|
382
|
+
dataIndex: 'payer'
|
|
383
|
+
}, {
|
|
384
|
+
title: '承担金额',
|
|
385
|
+
dataIndex: 'bearAmount'
|
|
386
|
+
}, {
|
|
387
|
+
title: '最新操作时间',
|
|
388
|
+
dataIndex: 'operateTime',
|
|
389
|
+
render: renderTime
|
|
390
|
+
}],
|
|
391
|
+
render: function render() {
|
|
392
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
393
|
+
args[_key2] = arguments[_key2];
|
|
394
|
+
}
|
|
395
|
+
return renderTable.apply(void 0, args.concat(['increaseFeeOrders']));
|
|
396
|
+
}
|
|
397
|
+
}, {
|
|
398
|
+
title: '空跑费用工单',
|
|
399
|
+
dataIndex: 'emptyRunFeeOrders',
|
|
400
|
+
children: [{
|
|
401
|
+
title: '工单编号',
|
|
402
|
+
dataIndex: 'serviceId'
|
|
403
|
+
}, {
|
|
404
|
+
title: '申请时间',
|
|
405
|
+
dataIndex: 'applyTime',
|
|
406
|
+
render: renderTime
|
|
407
|
+
}, {
|
|
408
|
+
title: '申请金额',
|
|
409
|
+
dataIndex: 'applyAmount'
|
|
410
|
+
}, {
|
|
411
|
+
title: '师傅描述',
|
|
412
|
+
dataIndex: 'workerRemark'
|
|
413
|
+
}, {
|
|
414
|
+
title: '申请状态',
|
|
415
|
+
dataIndex: 'applyStatus'
|
|
416
|
+
}, {
|
|
417
|
+
title: '处理结果',
|
|
418
|
+
dataIndex: 'processResult',
|
|
419
|
+
render: function render(value) {
|
|
420
|
+
return value === '1' ? '同意' : value === '2' ? '不同意' : value;
|
|
421
|
+
}
|
|
422
|
+
}, {
|
|
423
|
+
title: '承担金额',
|
|
424
|
+
dataIndex: 'bearAmount'
|
|
425
|
+
}, {
|
|
426
|
+
title: '审核图片证明',
|
|
427
|
+
dataIndex: 'verifyImageProof',
|
|
428
|
+
render: renderImages
|
|
429
|
+
}, {
|
|
430
|
+
title: '最新操作时间',
|
|
431
|
+
dataIndex: 'operateTime',
|
|
432
|
+
render: renderTime
|
|
433
|
+
}],
|
|
434
|
+
render: function render() {
|
|
435
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
436
|
+
args[_key3] = arguments[_key3];
|
|
437
|
+
}
|
|
438
|
+
return renderTable.apply(void 0, args.concat(['emptyRunFeeOrders']));
|
|
439
|
+
}
|
|
440
|
+
}, {
|
|
441
|
+
title: '异常结单工单',
|
|
442
|
+
dataIndex: 'abnormalCloseOrders',
|
|
443
|
+
children: [{
|
|
444
|
+
title: '工单编号',
|
|
445
|
+
dataIndex: 'serviceId'
|
|
446
|
+
}, {
|
|
447
|
+
title: '审核时间',
|
|
448
|
+
dataIndex: 'auditTime',
|
|
449
|
+
render: renderTime
|
|
450
|
+
}, {
|
|
451
|
+
title: '审核结果',
|
|
452
|
+
dataIndex: 'auditResult',
|
|
453
|
+
render: function render(value) {
|
|
454
|
+
return ['', '通过', '未通过'][value] || value;
|
|
455
|
+
}
|
|
456
|
+
}, {
|
|
457
|
+
title: '异常金额',
|
|
458
|
+
dataIndex: 'abnormalAmount'
|
|
459
|
+
}, {
|
|
460
|
+
title: '最新操作时间',
|
|
461
|
+
dataIndex: 'operateTime',
|
|
462
|
+
render: renderTime
|
|
463
|
+
}],
|
|
464
|
+
render: function render() {
|
|
465
|
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
466
|
+
args[_key4] = arguments[_key4];
|
|
467
|
+
}
|
|
468
|
+
return renderTable.apply(void 0, args.concat(['abnormalCloseOrders']));
|
|
469
|
+
}
|
|
470
|
+
}, {
|
|
471
|
+
title: '投诉/售后工单',
|
|
472
|
+
dataIndex: 'complaintServiceOrders',
|
|
473
|
+
children: [{
|
|
474
|
+
title: '工单编号',
|
|
475
|
+
dataIndex: 'serviceId'
|
|
476
|
+
}, {
|
|
477
|
+
title: '发起时间',
|
|
478
|
+
dataIndex: 'initiateTime',
|
|
479
|
+
render: renderTime
|
|
480
|
+
}, {
|
|
481
|
+
title: '操作者',
|
|
482
|
+
dataIndex: 'operator'
|
|
483
|
+
}, {
|
|
484
|
+
title: '投诉问题',
|
|
485
|
+
dataIndex: 'complaint'
|
|
486
|
+
}, {
|
|
487
|
+
title: '问题描述',
|
|
488
|
+
dataIndex: 'problemDesc'
|
|
489
|
+
}, {
|
|
490
|
+
title: '发起图片证据',
|
|
491
|
+
dataIndex: 'initiateImages',
|
|
492
|
+
render: renderImages
|
|
493
|
+
}, {
|
|
494
|
+
title: '工单状态',
|
|
495
|
+
dataIndex: 'complaintWorkOrderStatus'
|
|
496
|
+
}, {
|
|
497
|
+
title: '判定结果',
|
|
498
|
+
dataIndex: 'judgeResult',
|
|
499
|
+
render: function render(value) {
|
|
500
|
+
return value === 1 ? '同意' : value === 2 ? '不同意' : value;
|
|
501
|
+
}
|
|
502
|
+
}, {
|
|
503
|
+
title: '师傅说明',
|
|
504
|
+
dataIndex: 'workerExplanation'
|
|
505
|
+
}, {
|
|
506
|
+
title: '客服处理说明',
|
|
507
|
+
dataIndex: 'processRemark'
|
|
508
|
+
}, {
|
|
509
|
+
title: '审核图片证明',
|
|
510
|
+
dataIndex: 'verifyImageProof',
|
|
511
|
+
render: renderImages
|
|
512
|
+
}, {
|
|
513
|
+
title: '是否赔偿',
|
|
514
|
+
dataIndex: 'isCompensation',
|
|
515
|
+
render: function render(value) {
|
|
516
|
+
return ['否', '是'][value] || value;
|
|
517
|
+
}
|
|
518
|
+
}, {
|
|
519
|
+
title: '赔偿金额',
|
|
520
|
+
dataIndex: 'indemnityAmount'
|
|
521
|
+
}, {
|
|
522
|
+
title: '赔偿方式',
|
|
523
|
+
dataIndex: 'indemnityType'
|
|
524
|
+
}, {
|
|
525
|
+
title: '打款方式',
|
|
526
|
+
dataIndex: 'payWay',
|
|
527
|
+
render: function render(value) {
|
|
528
|
+
return value === 0 ? '赔付到用户钱包' : value === 1 ? '财务线下打款给用户' : value;
|
|
529
|
+
}
|
|
530
|
+
}, {
|
|
531
|
+
title: '账户类型',
|
|
532
|
+
dataIndex: 'accountType',
|
|
533
|
+
render: function render(value) {
|
|
534
|
+
return ['钱包', '支付宝', '微信', '银行卡'][value] || value;
|
|
535
|
+
}
|
|
536
|
+
}, {
|
|
537
|
+
title: '账户名',
|
|
538
|
+
dataIndex: 'accountName'
|
|
539
|
+
}, {
|
|
540
|
+
title: '账户',
|
|
541
|
+
dataIndex: 'accountNo'
|
|
542
|
+
}, {
|
|
543
|
+
title: '最新操作时间',
|
|
544
|
+
dataIndex: 'operateTime',
|
|
545
|
+
render: renderTime
|
|
546
|
+
}],
|
|
547
|
+
render: function render() {
|
|
548
|
+
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
|
549
|
+
args[_key5] = arguments[_key5];
|
|
550
|
+
}
|
|
551
|
+
return renderTable.apply(void 0, args.concat(['complaintServiceOrders']));
|
|
552
|
+
}
|
|
553
|
+
}];
|
|
554
|
+
var detailItemListMap = {};
|
|
555
|
+
DETAIL_ITEM_LIST.forEach(function (item) {
|
|
556
|
+
detailItemListMap[item.dataIndex] = item;
|
|
557
|
+
});
|
|
558
|
+
var renderDetailItem = function renderDetailItem(record, item, effects) {
|
|
559
|
+
var isTable = 'children' in item && item.children;
|
|
560
|
+
var value = isTable ? record[item.dataIndex] : record.main[item.dataIndex];
|
|
561
|
+
if (isNull(value)) return;
|
|
562
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
563
|
+
className: isTable ? styles.detailItemTable : styles.detailItem,
|
|
564
|
+
key: item.dataIndex
|
|
565
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
566
|
+
className: styles.detailItemTitle
|
|
567
|
+
}, item.title, "\uFF1A"), /*#__PURE__*/React.createElement("span", null, 'render' in item && item.render ? item.render(value, record, item, effects) : value));
|
|
568
|
+
};
|
|
569
|
+
var tableColumns;
|
|
570
|
+
var OrderInfo = function OrderInfo(props) {
|
|
571
|
+
var _React$useState = React.useState(),
|
|
572
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
573
|
+
orderInfo = _React$useState2[0],
|
|
574
|
+
setOrderInfo = _React$useState2[1];
|
|
575
|
+
React.useEffect(function () {
|
|
576
|
+
if (props.id) {
|
|
577
|
+
queryInstallationRepairDetail(props.id).then(function (res) {
|
|
578
|
+
if (res.data) {
|
|
579
|
+
setOrderInfo(res.data);
|
|
580
|
+
if (res.data.main.orderStatus) {
|
|
581
|
+
//显示服务进度tab
|
|
582
|
+
props.setIsShowServiceProgress(true);
|
|
583
|
+
} else {
|
|
584
|
+
props.setIsShowServiceProgress(false);
|
|
585
|
+
}
|
|
586
|
+
} else {
|
|
587
|
+
message.error('安装/维修单详情为空');
|
|
588
|
+
setOrderInfo(void 0);
|
|
589
|
+
}
|
|
590
|
+
}).catch(console.log);
|
|
591
|
+
} else {
|
|
592
|
+
setOrderInfo(void 0);
|
|
593
|
+
}
|
|
594
|
+
return;
|
|
595
|
+
}, [props.id]);
|
|
596
|
+
React.useEffect(function () {
|
|
597
|
+
if (!tableColumns || tableColumns.length === 0) {
|
|
598
|
+
queryColumns().then(function (_ref) {
|
|
599
|
+
var _data$, _data$$queryInfo;
|
|
600
|
+
var data = _ref.data;
|
|
601
|
+
if (data !== null && data !== void 0 && (_data$ = data[0]) !== null && _data$ !== void 0 && (_data$$queryInfo = _data$.queryInfo) !== null && _data$$queryInfo !== void 0 && _data$$queryInfo.length) {
|
|
602
|
+
try {
|
|
603
|
+
var newColumns = [];
|
|
604
|
+
var list = JSON.parse(JSON.parse(data[0].queryInfo));
|
|
605
|
+
list.forEach(function (item) {
|
|
606
|
+
if (!item.show) return;
|
|
607
|
+
if (detailItemListMap[item.dataIndex]) {
|
|
608
|
+
newColumns.push(detailItemListMap[item.dataIndex]);
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
tableColumns = newColumns;
|
|
612
|
+
} catch (err) {
|
|
613
|
+
console.debug('parse Error: ', err);
|
|
614
|
+
}
|
|
615
|
+
} else {
|
|
616
|
+
tableColumns = DETAIL_ITEM_LIST;
|
|
617
|
+
}
|
|
618
|
+
}).catch(console.debug);
|
|
619
|
+
}
|
|
620
|
+
}, []);
|
|
621
|
+
return orderInfo && tableColumns ? /*#__PURE__*/React.createElement("div", null, tableColumns.map(function (item) {
|
|
622
|
+
return renderDetailItem(orderInfo, item, {
|
|
623
|
+
shopList: props.shopList
|
|
624
|
+
});
|
|
625
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null, "...");
|
|
626
|
+
};
|
|
627
|
+
OrderInfo.displayName = 'OrderInfo';
|
|
628
|
+
export default OrderInfo;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Shop } from '../../model/types/login';
|
|
3
|
+
declare const ServiceProgress: {
|
|
4
|
+
(props: {
|
|
5
|
+
contentWidth: number;
|
|
6
|
+
id: string;
|
|
7
|
+
shopList: Shop[];
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export default ServiceProgress;
|