@kmkf-fe-packages/kmkf-work-order-service-component 2.2.31-beta.45 → 2.2.31-beta.47

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.
Files changed (57) hide show
  1. package/dist/esm/FlowTemplateDetailV2/components/AutoTaskDetail/index.d.ts +3 -1
  2. package/dist/esm/FlowTemplateDetailV2/components/AutoTaskDetail/index.js +16 -8
  3. package/dist/esm/FlowTemplateDetailV2/components/CurrentNode/index.js +2 -1
  4. package/dist/esm/FlowTemplateDetailV2/components/Item/index.js +2 -1
  5. package/dist/esm/LBOrderDetail/detail/OrderInfo.d.ts +17 -0
  6. package/dist/esm/LBOrderDetail/detail/OrderInfo.js +529 -0
  7. package/dist/esm/LBOrderDetail/detail/ServiceProgress.d.ts +11 -0
  8. package/dist/esm/LBOrderDetail/detail/ServiceProgress.js +437 -0
  9. package/dist/esm/LBOrderDetail/detail/index.d.ts +12 -0
  10. package/dist/esm/LBOrderDetail/detail/index.js +45 -0
  11. package/dist/esm/LBOrderDetail/detail/index.module.less +63 -0
  12. package/dist/esm/LBOrderDetail/detail/services.d.ts +3 -0
  13. package/dist/esm/LBOrderDetail/detail/services.js +19 -0
  14. package/dist/esm/LBOrderDetail/detail/types.d.ts +361 -0
  15. package/dist/esm/LBOrderDetail/detail/types.js +1 -0
  16. package/dist/esm/LBOrderDetail/index.d.ts +14 -0
  17. package/dist/esm/LBOrderDetail/index.js +62 -0
  18. package/dist/esm/index.d.ts +2 -0
  19. package/dist/esm/index.js +3 -0
  20. package/dist/esm/model/logicFlow/selector.d.ts +3 -0
  21. package/dist/esm/model/paymentWorkOrder/selector.d.ts +9 -0
  22. package/dist/esm/model/singleShopWorkOrder/selector.d.ts +5 -0
  23. package/dist/esm/model/types/login.d.ts +1 -0
  24. package/package.json +5 -5
  25. package/dist/esm/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
  26. package/dist/esm/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
  27. package/dist/esm/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
  28. package/dist/esm/common/utils/dist/submitDataTransOldFormat.js +0 -899
  29. package/dist/esm/common/utils/dist/tools.js +0 -1326
  30. package/dist/esm/common/utils/dist/transformWorkOrderData.js +0 -965
  31. package/dist/esm/model/customizeWorkOrder/dist/api.js +0 -48
  32. package/dist/esm/model/customizeWorkOrder/dist/index.js +0 -370
  33. package/dist/esm/model/customizeWorkOrder/dist/selector.js +0 -63
  34. package/dist/esm/model/customizeWorkOrder/dist/types.js +0 -3
  35. package/dist/esm/model/dist/global.js +0 -44
  36. package/dist/esm/model/dist/hooks.js +0 -15
  37. package/dist/esm/model/dist/login.js +0 -245
  38. package/dist/esm/model/dist/store.js +0 -30
  39. package/dist/esm/model/dist/userData.js +0 -41
  40. package/dist/esm/model/dist/workOrder.js +0 -329
  41. package/dist/esm/model/flowTemplateDetail/dist/api.js +0 -192
  42. package/dist/esm/model/flowTemplateDetail/dist/types.js +0 -48
  43. package/dist/esm/model/logicFlow/dist/api.js +0 -14
  44. package/dist/esm/model/logicFlow/dist/index.js +0 -235
  45. package/dist/esm/model/logicFlow/dist/selector.js +0 -18
  46. package/dist/esm/model/logicFlow/dist/types.js +0 -3
  47. package/dist/esm/model/paymentWorkOrder/dist/index.js +0 -77
  48. package/dist/esm/model/paymentWorkOrder/dist/selector.js +0 -36
  49. package/dist/esm/model/paymentWorkOrder/dist/types.js +0 -3
  50. package/dist/esm/model/servers/dist/api.js +0 -545
  51. package/dist/esm/model/servers/dist/request.js +0 -63
  52. package/dist/esm/model/singleShopWorkOrder/dist/index.js +0 -216
  53. package/dist/esm/model/singleShopWorkOrder/dist/selector.js +0 -24
  54. package/dist/esm/model/singleShopWorkOrder/dist/types.js +0 -3
  55. package/dist/esm/model/types/dist/login.js +0 -3
  56. package/dist/esm/model/types/dist/singleWorkOrder.js +0 -3
  57. package/dist/esm/model/types/dist/workOrder.js +0 -3
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
- export declare const AutoTaskDetail: ({ flowEventData }: {
2
+ import type { Shop } from '../../../model/types/login';
3
+ export declare const AutoTaskDetail: ({ flowEventData, shopList, }: {
3
4
  flowEventData: any;
5
+ shopList: Shop[];
4
6
  }) => React.JSX.Element;
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
2
  import { isNumber } from 'lodash';
3
3
  import { Divider, Button } from 'antd';
4
+ import { LB } from '@kmkf-fe-packages/kmkf-work-order-service-component';
4
5
  export var AutoTaskDetail = function AutoTaskDetail(_ref) {
5
- var flowEventData = _ref.flowEventData;
6
+ var flowEventData = _ref.flowEventData,
7
+ shopList = _ref.shopList;
6
8
  var mapping = {
7
9
  0: '执行中',
8
10
  1: '部分成功',
@@ -53,14 +55,20 @@ export var AutoTaskDetail = function AutoTaskDetail(_ref) {
53
55
  var renderRepairResult = function renderRepairResult() {
54
56
  var _flowEventData$eventD6, _flowEventData$eventD7;
55
57
  var repairData = (flowEventData === null || flowEventData === void 0 ? void 0 : (_flowEventData$eventD6 = flowEventData.eventData) === null || _flowEventData$eventD6 === void 0 ? void 0 : (_flowEventData$eventD7 = _flowEventData$eventD6.otherBusinessData) === null || _flowEventData$eventD7 === void 0 ? void 0 : _flowEventData$eventD7.repairData) || {};
56
- var repairOrderStatus = repairData.repairOrderStatus;
58
+ var repairOrderStatus = repairData.repairOrderStatus,
59
+ id = repairData.id;
57
60
  var isSuccess = repairOrderStatus === '成功';
58
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
59
- style: {
60
- padding: '4px 0'
61
- },
62
- type: "link"
63
- }, "\u67E5\u770B\u8BE6\u60C5>>"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
61
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LB.LBOrder, {
62
+ id: id,
63
+ activeKey: "orderInfo",
64
+ shopList: shopList,
65
+ btn: /*#__PURE__*/React.createElement(Button, {
66
+ style: {
67
+ padding: '4px 0'
68
+ },
69
+ type: "link"
70
+ }, "\u67E5\u770B\u8BE6\u60C5>>")
71
+ }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
64
72
  style: {
65
73
  marginBottom: '8px'
66
74
  }
@@ -341,7 +341,8 @@ var CurrentNode = function CurrentNode(props, ref) {
341
341
  firstOrderBackfill: flowStatus !== FlowStatus.COMPLETED,
342
342
  autoSubmit: autoSubmit
343
343
  })), isShowAutoNodeDetail && /*#__PURE__*/React.createElement(AutoTaskDetail, {
344
- flowEventData: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.flowEventData
344
+ flowEventData: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.flowEventData,
345
+ shopList: shopList
345
346
  })));
346
347
  };
347
348
  export default /*#__PURE__*/forwardRef(CurrentNode);
@@ -346,7 +346,8 @@ var NodeItem = function NodeItem(props) {
346
346
  platform: plat.platform,
347
347
  onOpenWangWang: onOpenWangWang
348
348
  })), isShowAutoNodeDetail && /*#__PURE__*/React.createElement(AutoTaskDetail, {
349
- flowEventData: data === null || data === void 0 ? void 0 : (_data$data22 = data.data) === null || _data$data22 === void 0 ? void 0 : _data$data22.flowEventData
349
+ flowEventData: data === null || data === void 0 ? void 0 : (_data$data22 = data.data) === null || _data$data22 === void 0 ? void 0 : _data$data22.flowEventData,
350
+ shopList: shopList
350
351
  })));
351
352
  };
352
353
  export default NodeItem;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { DetailType, DetailItemSchemaType, TableKeyType } from './types';
3
+ import type { Shop } from '../../model/types/login';
4
+ export declare const renderTime: (value?: string | number) => string;
5
+ export declare const renderImages: (value?: string | number) => React.JSX.Element | undefined;
6
+ export declare const renderTable: (value: DetailType[TableKeyType], record: DetailType, item: DetailItemSchemaType, effects: {
7
+ shopList: Shop[];
8
+ }, key: TableKeyType) => React.JSX.Element | undefined;
9
+ export declare const DETAIL_ITEM_LIST: DetailItemSchemaType[];
10
+ declare const OrderInfo: {
11
+ (props: {
12
+ id: string;
13
+ shopList: Shop[];
14
+ }): React.JSX.Element;
15
+ displayName: string;
16
+ };
17
+ export default OrderInfo;
@@ -0,0 +1,529 @@
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 moment from 'moment';
10
+ import styles from "./index.module.less";
11
+ import { queryInstallationRepairDetail } from "./services";
12
+ export var renderTime = function renderTime(value) {
13
+ return value ? moment(value).format('YYYY-MM-DD HH:mm:ss') : '';
14
+ };
15
+ export var renderImages = function renderImages(value) {
16
+ if (typeof value !== 'string') return;
17
+ var list = value ? value.split(',') : [];
18
+ return /*#__PURE__*/React.createElement(Image.PreviewGroup, null, /*#__PURE__*/React.createElement("div", {
19
+ style: {
20
+ display: 'flex',
21
+ flexWrap: 'wrap'
22
+ }
23
+ }, list.map(function (url) {
24
+ return /*#__PURE__*/React.createElement(Image, {
25
+ src: url,
26
+ width: 24,
27
+ height: 24
28
+ });
29
+ })));
30
+ };
31
+ export var renderTable = function renderTable(value, record, item, effects, key) {
32
+ if (!('children' in item)) return;
33
+ if (!value || value.length === 0) return;
34
+ return /*#__PURE__*/React.createElement(Table, {
35
+ scroll: {
36
+ x: 'max-content'
37
+ },
38
+ columns: item.children,
39
+ dataSource: value,
40
+ pagination: false,
41
+ rowKey: function rowKey(record, index) {
42
+ return "".concat(key, "-table-").concat(index);
43
+ },
44
+ size: "small"
45
+ });
46
+ };
47
+ export var DETAIL_ITEM_LIST = [{
48
+ title: '订单号',
49
+ dataIndex: 'tid'
50
+ }, {
51
+ title: '下单状态',
52
+ dataIndex: 'orderStatus',
53
+ render: function render(value) {
54
+ return value ? '成功' : '失败';
55
+ }
56
+ }, {
57
+ title: '安装/维修订单编号',
58
+ dataIndex: 'orderSn'
59
+ }, {
60
+ title: '安装/维修订单ID',
61
+ dataIndex: 'orderId'
62
+ }, {
63
+ title: '下单平台',
64
+ dataIndex: 'platformDesc'
65
+ }, {
66
+ title: '服务类型',
67
+ dataIndex: 'serviceTypeDesc'
68
+ }, {
69
+ title: '服务状态',
70
+ dataIndex: 'serviceStatusDesc'
71
+ }, {
72
+ title: '最新服务进度',
73
+ dataIndex: 'latestServiceProgressDesc'
74
+ }, {
75
+ title: '最新服务进度时间',
76
+ dataIndex: 'latestProgressTime',
77
+ render: renderTime
78
+ }, {
79
+ title: '商品信息',
80
+ dataIndex: 'goodsList',
81
+ children: [{
82
+ title: '商品名称',
83
+ dataIndex: 'productName'
84
+ }, {
85
+ title: '商品编码',
86
+ dataIndex: 'productNum'
87
+ }, {
88
+ title: 'SKU名称',
89
+ dataIndex: 'goodsModel'
90
+ }, {
91
+ title: 'SKU编码',
92
+ dataIndex: 'specificationCode'
93
+ }, {
94
+ title: '平台SKU ID',
95
+ dataIndex: 'skuID'
96
+ }, {
97
+ title: '数量',
98
+ dataIndex: 'quantity'
99
+ }, {
100
+ title: '商品图片',
101
+ dataIndex: 'goodsUrl',
102
+ render: renderImages
103
+ }, {
104
+ title: '备注',
105
+ dataIndex: 'remark'
106
+ }],
107
+ render: function render() {
108
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
109
+ args[_key] = arguments[_key];
110
+ }
111
+ return renderTable.apply(void 0, args.concat(['goodsList']));
112
+ }
113
+ }, {
114
+ title: '下单时间',
115
+ dataIndex: 'orderTime',
116
+ render: renderTime
117
+ }, {
118
+ title: '客户姓名',
119
+ dataIndex: 'customerName'
120
+ }, {
121
+ title: '客户手机号',
122
+ dataIndex: 'customerPhone'
123
+ }, {
124
+ title: '客户地址',
125
+ dataIndex: 'customerAddress'
126
+ }, {
127
+ title: '服务备注',
128
+ dataIndex: 'serviceRemark'
129
+ }, {
130
+ title: '下单联系人',
131
+ dataIndex: 'orderContact'
132
+ }, {
133
+ title: '下单联系电话',
134
+ dataIndex: 'orderContactPhone'
135
+ }, {
136
+ title: '期望上门时间',
137
+ dataIndex: 'expectedVisitTime',
138
+ render: renderTime
139
+ }, {
140
+ title: '是否核销单',
141
+ dataIndex: 'isWriteOff',
142
+ render: function render(value) {
143
+ return value ? '是' : '否';
144
+ }
145
+ }, {
146
+ title: '核销单号',
147
+ dataIndex: 'writeOffNo'
148
+ }, {
149
+ title: '师傅促好评返现',
150
+ dataIndex: 'isGoodReviewRebate',
151
+ render: function render(value) {
152
+ return value ? '有' : '无';
153
+ }
154
+ }, {
155
+ title: '是否加急',
156
+ dataIndex: 'isUrgent',
157
+ render: function render(value) {
158
+ return value ? '是' : '否';
159
+ }
160
+ }, {
161
+ title: '客户旺旺号',
162
+ dataIndex: 'customerWw'
163
+ }, {
164
+ title: '是否到货',
165
+ dataIndex: 'isArrived',
166
+ render: function render(value) {
167
+ return value ? '是' : '否';
168
+ }
169
+ }, {
170
+ title: '物流公司名称',
171
+ dataIndex: 'logisticsCompany'
172
+ }, {
173
+ title: '物流单号',
174
+ dataIndex: 'logisticsNo'
175
+ }, {
176
+ title: '货物数量',
177
+ dataIndex: 'goodsQuantity'
178
+ }, {
179
+ title: '有无电梯',
180
+ dataIndex: 'hasElevator',
181
+ render: function render(value) {
182
+ return value ? '有' : '无';
183
+ }
184
+ }, {
185
+ title: '楼层',
186
+ dataIndex: 'floor'
187
+ }, {
188
+ title: '提货地址',
189
+ dataIndex: 'pickupAddress'
190
+ }, {
191
+ title: '提货电话',
192
+ dataIndex: 'pickupPhone'
193
+ }, {
194
+ title: '货物规格',
195
+ dataIndex: 'goodsSpec'
196
+ }, {
197
+ title: '配送备注',
198
+ dataIndex: 'deliveryRemark'
199
+ }, {
200
+ title: '店铺',
201
+ dataIndex: 'shopUk',
202
+ render: function render(value, record, item, effects) {
203
+ var _effects$shopList;
204
+ var shop = (_effects$shopList = effects.shopList) === null || _effects$shopList === void 0 ? void 0 : _effects$shopList.find(function (shop) {
205
+ return shop.uniqueKey === value;
206
+ });
207
+ return shop ? shop.shopName : '';
208
+ }
209
+ }, {
210
+ title: '流程工单编号',
211
+ dataIndex: 'flowWorkOrderId'
212
+ }, {
213
+ title: '接单师傅姓名',
214
+ dataIndex: 'acceptWorkerName'
215
+ }, {
216
+ title: '师傅接单时间',
217
+ dataIndex: 'acceptTime',
218
+ render: renderTime
219
+ }, {
220
+ title: '物流签收师傅姓名',
221
+ dataIndex: 'logisticsSignWorkerName'
222
+ }, {
223
+ title: '师傅物流签收时间',
224
+ dataIndex: 'logisticsSignTime',
225
+ render: renderTime
226
+ }, {
227
+ title: '验收师傅姓名',
228
+ dataIndex: 'checkWorkerName'
229
+ }, {
230
+ title: '验收时间',
231
+ dataIndex: 'checkTime',
232
+ render: renderTime
233
+ }, {
234
+ title: '关单师傅姓名',
235
+ dataIndex: 'closeWorkerName'
236
+ }, {
237
+ title: '关单时间',
238
+ dataIndex: 'closeTime',
239
+ render: renderTime
240
+ }, {
241
+ title: '预约师傅姓名',
242
+ dataIndex: 'appointWorkerName'
243
+ }, {
244
+ title: '师傅预约操作类型',
245
+ dataIndex: 'appointType'
246
+ }, {
247
+ title: '师傅和客户预约开始时间',
248
+ dataIndex: 'appointStartTime',
249
+ render: renderTime
250
+ }, {
251
+ title: '师傅和客户预约结束时间',
252
+ dataIndex: 'appointEndTime',
253
+ render: renderTime
254
+ }, {
255
+ title: '上门打卡师傅姓名',
256
+ dataIndex: 'clockInWorkerName'
257
+ }, {
258
+ title: '师傅打卡时间',
259
+ dataIndex: 'clockInTime',
260
+ render: renderTime
261
+ }, {
262
+ title: '师傅打卡方式',
263
+ dataIndex: 'clockInMethod'
264
+ }, {
265
+ title: '师傅完工时间',
266
+ dataIndex: 'workerFinishTime',
267
+ render: renderTime
268
+ }, {
269
+ title: '师傅完工图',
270
+ dataIndex: 'finishImages',
271
+ render: renderImages
272
+ }, {
273
+ title: '师傅完工验收单',
274
+ dataIndex: 'finishSignImages',
275
+ render: renderImages
276
+ }, {
277
+ title: '师傅完工好评图',
278
+ dataIndex: 'finishGoodImages',
279
+ render: renderImages
280
+ }, {
281
+ title: '师傅异常预约操作时间',
282
+ dataIndex: 'exceptionAppointTime',
283
+ render: renderTime
284
+ }, {
285
+ title: '异常预约类型',
286
+ dataIndex: 'exceptionType'
287
+ }, {
288
+ title: '异常预约描述',
289
+ dataIndex: 'exceptionRemark'
290
+ }, {
291
+ title: '挂起时间',
292
+ dataIndex: 'hangUpTime',
293
+ render: renderTime
294
+ }, {
295
+ title: '取消挂起时间',
296
+ dataIndex: 'cancelHangUpTime',
297
+ render: renderTime
298
+ }, {
299
+ title: '挂起原因类型',
300
+ dataIndex: 'hangUpType'
301
+ }, {
302
+ title: '挂起描述',
303
+ dataIndex: 'hangUpRemark'
304
+ }, {
305
+ title: '师傅申请增加费用工单',
306
+ dataIndex: 'increaseFeeOrders',
307
+ children: [{
308
+ title: '工单编号',
309
+ dataIndex: 'serviceId'
310
+ }, {
311
+ title: '申请时间',
312
+ dataIndex: 'applyTime',
313
+ render: renderTime
314
+ }, {
315
+ title: '增加费用类型',
316
+ dataIndex: 'feeType'
317
+ }, {
318
+ title: '申请金额',
319
+ dataIndex: 'applyAmount'
320
+ }, {
321
+ title: '师傅描述',
322
+ dataIndex: 'workerRemark'
323
+ }, {
324
+ title: '申请图片证明',
325
+ dataIndex: 'applyImages',
326
+ render: renderImages
327
+ }, {
328
+ title: '申请状态',
329
+ dataIndex: 'applyStatus'
330
+ }, {
331
+ title: '处理结果',
332
+ dataIndex: 'processResult'
333
+ }, {
334
+ title: '费用承担方',
335
+ dataIndex: 'payer'
336
+ }, {
337
+ title: '承担金额',
338
+ dataIndex: 'bearAmount'
339
+ }, {
340
+ title: '最新操作时间',
341
+ dataIndex: 'operateTime',
342
+ render: renderTime
343
+ }],
344
+ render: function render() {
345
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
346
+ args[_key2] = arguments[_key2];
347
+ }
348
+ return renderTable.apply(void 0, args.concat(['increaseFeeOrders']));
349
+ }
350
+ }, {
351
+ title: '师傅申请增加费用工单',
352
+ dataIndex: 'emptyRunFeeOrders',
353
+ children: [{
354
+ title: '工单编号',
355
+ dataIndex: 'serviceId'
356
+ }, {
357
+ title: '申请时间',
358
+ dataIndex: 'applyTime',
359
+ render: renderTime
360
+ }, {
361
+ title: '申请金额',
362
+ dataIndex: 'applyAmount'
363
+ }, {
364
+ title: '师傅描述',
365
+ dataIndex: 'workerRemark'
366
+ }, {
367
+ title: '申请状态',
368
+ dataIndex: 'applyStatus'
369
+ }, {
370
+ title: '处理结果',
371
+ dataIndex: 'processResult'
372
+ }, {
373
+ title: '承担金额',
374
+ dataIndex: 'bearAmount'
375
+ }, {
376
+ title: '审核图片证明',
377
+ dataIndex: 'verifyImageProof',
378
+ render: renderImages
379
+ }, {
380
+ title: '最新操作时间',
381
+ dataIndex: 'operateTime',
382
+ render: renderTime
383
+ }],
384
+ render: function render() {
385
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
386
+ args[_key3] = arguments[_key3];
387
+ }
388
+ return renderTable.apply(void 0, args.concat(['emptyRunFeeOrders']));
389
+ }
390
+ }, {
391
+ title: '异常结单工单',
392
+ dataIndex: 'abnormalCloseOrders',
393
+ children: [{
394
+ title: '工单编号',
395
+ dataIndex: 'serviceId'
396
+ }, {
397
+ title: '审核时间',
398
+ dataIndex: 'auditTime',
399
+ render: renderTime
400
+ }, {
401
+ title: '审核结果',
402
+ dataIndex: 'auditResult'
403
+ }, {
404
+ title: '异常金额',
405
+ dataIndex: 'abnormalAmount'
406
+ }, {
407
+ title: '最新操作时间',
408
+ dataIndex: 'operateTime',
409
+ render: renderTime
410
+ }],
411
+ render: function render() {
412
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
413
+ args[_key4] = arguments[_key4];
414
+ }
415
+ return renderTable.apply(void 0, args.concat(['abnormalCloseOrders']));
416
+ }
417
+ }, {
418
+ title: '投诉/售后工单',
419
+ dataIndex: 'complaintServiceOrders',
420
+ children: [{
421
+ title: '工单编号',
422
+ dataIndex: 'serviceId'
423
+ }, {
424
+ title: '发起时间',
425
+ dataIndex: 'initiateTime',
426
+ render: renderTime
427
+ }, {
428
+ title: '操作者',
429
+ dataIndex: 'operator'
430
+ }, {
431
+ title: '投诉问题',
432
+ dataIndex: 'complaint'
433
+ }, {
434
+ title: '问题描述',
435
+ dataIndex: 'complaintType'
436
+ }, {
437
+ title: '发起图片证据',
438
+ dataIndex: 'initiateImages',
439
+ render: renderImages
440
+ }, {
441
+ title: '工单状态',
442
+ dataIndex: 'complaintWorkOrderStatus'
443
+ }, {
444
+ title: '判定结果',
445
+ dataIndex: 'judgmentResult'
446
+ }, {
447
+ title: '师傅说明',
448
+ dataIndex: 'workerExplanation'
449
+ }, {
450
+ title: '客服处理说明',
451
+ dataIndex: 'processRemark'
452
+ }, {
453
+ title: '审核图片证明',
454
+ dataIndex: 'verifyImageProof',
455
+ render: renderImages
456
+ }, {
457
+ title: '是否赔偿',
458
+ dataIndex: 'isCompensation',
459
+ render: function render(value) {
460
+ return value ? '是' : '否';
461
+ }
462
+ }, {
463
+ title: '赔偿金额',
464
+ dataIndex: 'indemnityAmount'
465
+ }, {
466
+ title: '赔偿方式',
467
+ dataIndex: 'indemnityType'
468
+ }, {
469
+ title: '打款方式',
470
+ dataIndex: 'payType'
471
+ }, {
472
+ title: '账户类型',
473
+ dataIndex: 'accountType'
474
+ }, {
475
+ title: '账户名',
476
+ dataIndex: 'accountName'
477
+ }, {
478
+ title: '账户',
479
+ dataIndex: 'accountNo'
480
+ }, {
481
+ title: '最新操作时间',
482
+ dataIndex: 'operateTime',
483
+ render: renderTime
484
+ }],
485
+ render: function render() {
486
+ for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
487
+ args[_key5] = arguments[_key5];
488
+ }
489
+ return renderTable.apply(void 0, args.concat(['complaintServiceOrders']));
490
+ }
491
+ }];
492
+ var renderDetailItem = function renderDetailItem(record, item, effects) {
493
+ var isTable = 'children' in item && item.children;
494
+ var value = isTable ? record[item.dataIndex] : record.main[item.dataIndex];
495
+ return /*#__PURE__*/React.createElement("div", {
496
+ className: isTable ? styles.detailItemTable : styles.detailItem,
497
+ key: item.dataIndex
498
+ }, /*#__PURE__*/React.createElement("span", {
499
+ className: styles.detailItemTitle
500
+ }, item.title, "\uFF1A"), /*#__PURE__*/React.createElement("span", null, 'render' in item && item.render ? item.render(value, record, item, effects) : value));
501
+ };
502
+ var OrderInfo = function OrderInfo(props) {
503
+ var _React$useState = React.useState(),
504
+ _React$useState2 = _slicedToArray(_React$useState, 2),
505
+ orderInfo = _React$useState2[0],
506
+ setOrderInfo = _React$useState2[1];
507
+ React.useEffect(function () {
508
+ if (props.id) {
509
+ queryInstallationRepairDetail(props.id).then(function (res) {
510
+ if (res.data) {
511
+ setOrderInfo(res.data);
512
+ } else {
513
+ message.error('安装/维修单详情为空');
514
+ setOrderInfo(void 0);
515
+ }
516
+ }).catch(console.log);
517
+ } else {
518
+ setOrderInfo(void 0);
519
+ }
520
+ return;
521
+ }, [props.id]);
522
+ return orderInfo ? /*#__PURE__*/React.createElement("div", null, DETAIL_ITEM_LIST.map(function (item) {
523
+ return renderDetailItem(orderInfo, item, {
524
+ shopList: props.shopList
525
+ });
526
+ })) : /*#__PURE__*/React.createElement(React.Fragment, null, "...");
527
+ };
528
+ OrderInfo.displayName = 'OrderInfo';
529
+ 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;