@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.
Files changed (26) hide show
  1. package/dist/esm/FlowTemplateDetailV2/components/AutoTaskDetail/index.d.ts +3 -1
  2. package/dist/esm/FlowTemplateDetailV2/components/AutoTaskDetail/index.js +65 -3
  3. package/dist/esm/FlowTemplateDetailV2/components/CurrentNode/index.js +3 -2
  4. package/dist/esm/FlowTemplateDetailV2/components/Item/index.js +3 -2
  5. package/dist/esm/FlowTemplateDetailV2/store/selector.d.ts +0 -1
  6. package/dist/esm/LBOrderDetail/detail/OrderInfo.d.ts +18 -0
  7. package/dist/esm/LBOrderDetail/detail/OrderInfo.js +628 -0
  8. package/dist/esm/LBOrderDetail/detail/ServiceProgress.d.ts +11 -0
  9. package/dist/esm/LBOrderDetail/detail/ServiceProgress.js +446 -0
  10. package/dist/esm/LBOrderDetail/detail/index.d.ts +12 -0
  11. package/dist/esm/LBOrderDetail/detail/index.js +50 -0
  12. package/dist/esm/LBOrderDetail/detail/index.module.less +63 -0
  13. package/dist/esm/LBOrderDetail/detail/services.d.ts +4 -0
  14. package/dist/esm/LBOrderDetail/detail/services.js +28 -0
  15. package/dist/esm/LBOrderDetail/detail/types.d.ts +383 -0
  16. package/dist/esm/LBOrderDetail/detail/types.js +1 -0
  17. package/dist/esm/LBOrderDetail/index.d.ts +14 -0
  18. package/dist/esm/LBOrderDetail/index.js +63 -0
  19. package/dist/esm/common/utils/constant.js +8 -0
  20. package/dist/esm/common/utils/submitDataTransOldFormat.js +3 -0
  21. package/dist/esm/common/utils/tools.js +16 -14
  22. package/dist/esm/common/utils/transformWorkOrderData.js +7 -0
  23. package/dist/esm/index.d.ts +3 -0
  24. package/dist/esm/index.js +3 -0
  25. package/dist/esm/model/types/login.d.ts +1 -0
  26. package/package.json +5 -5
@@ -0,0 +1,383 @@
1
+ /// <reference types="react" />
2
+ import type { Shop } from '../../model/types/login';
3
+ export declare type DetailType = {
4
+ main: {
5
+ id: number;
6
+ companyKey: string;
7
+ shopUk: string;
8
+ flowWorkOrderId: string;
9
+ tid: string;
10
+ orderSn: string;
11
+ orderId: string;
12
+ orderStatus: 0 | 1;
13
+ platform: 1 | 2;
14
+ platformDesc: string;
15
+ serviceType: 1 | 2 | 3 | 4;
16
+ serviceTypeDesc: string;
17
+ serviceStatus: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
18
+ serviceStatusDesc: string;
19
+ latestServiceProgress: ServiceProgressType;
20
+ latestServiceProgressDesc: string;
21
+ latestProgressTime: string;
22
+ orderTime: string;
23
+ customerName: string;
24
+ customerPhone: string;
25
+ writeOffType: 0 | 1 | 2;
26
+ writeOffNo: string;
27
+ isGoodReviewRebate: 0 | 1;
28
+ isUrgent: 0 | 1;
29
+ customerWw: string;
30
+ isArrived: 0 | 1;
31
+ customerAddress: string;
32
+ serviceRemark: string;
33
+ workerFinishName: string;
34
+ workerFinishTime: string;
35
+ finishImages: string;
36
+ finishSignImages: string;
37
+ finishGoodImages: string;
38
+ orderContact: string;
39
+ orderContactPhone: string;
40
+ expectedVisitTime: string;
41
+ customerWangwang: string;
42
+ logisticsCompany: string;
43
+ logisticsNo: string;
44
+ goodsQuantity: string;
45
+ hasElevator: 0 | 1;
46
+ floor: string;
47
+ pickupAddress: string;
48
+ pickupPhone: string;
49
+ goodsSpec: string;
50
+ deliveryRemark: string;
51
+ acceptWorkerName: string;
52
+ acceptTime: string;
53
+ logisticsSignWorkerName: string;
54
+ logisticsSignTime: string;
55
+ checkWorkerName: string;
56
+ checkTime: string;
57
+ closeWorkerName: string;
58
+ closeTime: string;
59
+ appointWorkerName: string;
60
+ appointType: string;
61
+ appointStartTime: string;
62
+ appointEndTime: string;
63
+ clockInWorkerName: string;
64
+ clockInTime: string;
65
+ clockInType: string;
66
+ exceptionAppointTime: string;
67
+ exceptionType: string;
68
+ exceptionRemark: string;
69
+ hangUpTime: string;
70
+ cancelHangUpTime: string;
71
+ hangUpType: string;
72
+ hangUpRemark: string;
73
+ createdAt: string;
74
+ updatedAt: string;
75
+ };
76
+ increaseFeeOrders: {
77
+ id: number;
78
+ serviceId: string;
79
+ applyTime: string;
80
+ feeType: string;
81
+ applyAmount: string;
82
+ workerRemark: string;
83
+ applyImages: string;
84
+ verifyImageProof: string;
85
+ applyStatus: string;
86
+ processResult: string;
87
+ payer: string;
88
+ bearAmount: string;
89
+ operateTime: string;
90
+ }[];
91
+ emptyRunFeeOrders: {
92
+ id: number;
93
+ serviceId: string;
94
+ applyTime: string;
95
+ applyAmount: string;
96
+ workerRemark: string;
97
+ applyStatus: string;
98
+ processResult: string;
99
+ bearAmount: string;
100
+ verifyImageProof: string;
101
+ operateTime: string;
102
+ }[];
103
+ abnormalCloseOrders: {
104
+ id: number;
105
+ serviceId: string;
106
+ auditTime: string;
107
+ auditResult: 1 | 2;
108
+ abnormalAmount: string;
109
+ operateTime: string;
110
+ }[];
111
+ complaintServiceOrders: {
112
+ id: number;
113
+ serviceId: string;
114
+ initiateTime: string;
115
+ operator: string;
116
+ complaint: string;
117
+ complaintType: string;
118
+ problemDesc: string;
119
+ initiateImages: string;
120
+ complaintWorkOrderStatus: string;
121
+ complaintOrderStatus: string;
122
+ judgeResult: 1 | 2;
123
+ workerExplanation: string;
124
+ customerServiceRemark: string;
125
+ isCompensation: 0 | 1;
126
+ indemnityAmount: string;
127
+ indemnityType: string;
128
+ payWay: 0 | 1;
129
+ processRemark: string;
130
+ accountType: 0 | 1 | 2 | 3;
131
+ accountName: string;
132
+ accountNo: string;
133
+ verifyImageProof: string;
134
+ operateTime: string;
135
+ }[];
136
+ goodsList: {
137
+ id: number;
138
+ productName: string;
139
+ productNum: string;
140
+ goodsModel: string;
141
+ specificationCode: string;
142
+ skuID: string;
143
+ quantity: number;
144
+ goodsUrl: string;
145
+ remark: string;
146
+ }[];
147
+ };
148
+ export declare type TableKeyType = 'goodsList' | 'complaintServiceOrders' | 'abnormalCloseOrders' | 'emptyRunFeeOrders' | 'increaseFeeOrders';
149
+ export declare type DetailItemSchemaType = {
150
+ [K in keyof DetailType['main']]: {
151
+ title: string;
152
+ dataIndex: K;
153
+ render?: (value: DetailType['main'][K], record: DetailType, item: DetailItemSchemaType, effects: {
154
+ shopList: Shop[];
155
+ }) => React.ReactNode;
156
+ };
157
+ }[keyof DetailType['main']] | {
158
+ [T in TableKeyType]: {
159
+ title: string;
160
+ dataIndex: T;
161
+ render: (value: DetailType[T], record: DetailType, item: DetailItemSchemaType, effects: {
162
+ shopList: Shop[];
163
+ }) => React.ReactNode;
164
+ children: {
165
+ [k in keyof DetailType[T][number]]: {
166
+ title: string;
167
+ dataIndex: k;
168
+ render?: (value: DetailType[T][number][k], record: DetailType[T][number]) => React.ReactNode;
169
+ };
170
+ }[keyof DetailType[T][number]][];
171
+ };
172
+ }[TableKeyType];
173
+ export declare type ServiceProgressType = ServiceProgressDataType['serviceProgress'];
174
+ declare type ServiceProgressDataType = {
175
+ serviceProgress: -1;
176
+ data: {
177
+ time: string;
178
+ };
179
+ } | {
180
+ serviceProgress: 2;
181
+ data: {
182
+ workerName: string;
183
+ time: string;
184
+ };
185
+ } | {
186
+ serviceProgress: 3;
187
+ data: {
188
+ workerName: string;
189
+ time: string;
190
+ };
191
+ } | {
192
+ serviceProgress: 4;
193
+ data: {
194
+ workerName: string;
195
+ time: string;
196
+ operateType: string;
197
+ appointTimeStart: string;
198
+ appointTimeEnd: string;
199
+ };
200
+ } | {
201
+ serviceProgress: 5;
202
+ data: {
203
+ workerName: string;
204
+ time: string;
205
+ clockInType: string;
206
+ };
207
+ } | {
208
+ serviceProgress: 6;
209
+ data: {
210
+ workerName: string;
211
+ time: string;
212
+ image1: string;
213
+ image2: string;
214
+ image3: string;
215
+ };
216
+ } | {
217
+ serviceProgress: 7;
218
+ data: {
219
+ workerName: string;
220
+ time: string;
221
+ };
222
+ } | {
223
+ serviceProgress: 8;
224
+ data: {
225
+ workerName: string;
226
+ time: string;
227
+ abnormalAppointType: string;
228
+ abnormalAppointDesc: string;
229
+ };
230
+ } | {
231
+ serviceProgress: 9;
232
+ data: {
233
+ workerName: string;
234
+ time: string;
235
+ suspendReasonType: string;
236
+ suspendReasonDesc: string;
237
+ };
238
+ } | {
239
+ serviceProgress: 10;
240
+ data: {
241
+ workerName: string;
242
+ time: string;
243
+ };
244
+ } | {
245
+ serviceProgress: 11;
246
+ data: {
247
+ time: string;
248
+ orderSn: string;
249
+ serviceId: string;
250
+ applyAmount: string;
251
+ increaseFeeType: string;
252
+ workerDesc: string;
253
+ image: string;
254
+ };
255
+ } | {
256
+ serviceProgress: 12;
257
+ data: {
258
+ time: string;
259
+ orderSn: string;
260
+ serviceId: string;
261
+ applyAmount: string;
262
+ increaseFeeType: string;
263
+ workerDesc: string;
264
+ image: string;
265
+ };
266
+ } | {
267
+ serviceProgress: 13;
268
+ data: {
269
+ time: string;
270
+ orderSn: string;
271
+ serviceId: string;
272
+ applyAmount: string;
273
+ workerDesc: string;
274
+ };
275
+ } | {
276
+ serviceProgress: 14;
277
+ data: {
278
+ time: string;
279
+ orderSn: string;
280
+ serviceId: string;
281
+ applyAmount: string;
282
+ workerDesc: string;
283
+ };
284
+ } | {
285
+ serviceProgress: 15;
286
+ data: {
287
+ time: string;
288
+ operator: string;
289
+ orderSn: string;
290
+ serviceId: string;
291
+ complaintQuestion: string;
292
+ workerDesc: string;
293
+ image: string;
294
+ };
295
+ } | {
296
+ serviceProgress: 16;
297
+ data: {
298
+ time: string;
299
+ operator: string;
300
+ orderSn: string;
301
+ serviceId: string;
302
+ complaintQuestion: string;
303
+ workerDesc: string;
304
+ image: string;
305
+ };
306
+ } | {
307
+ serviceProgress: 17;
308
+ data: {
309
+ time: string;
310
+ orderSn: string;
311
+ serviceId: string;
312
+ handleResult: 1 | 2;
313
+ feeBearer: string;
314
+ bearAmount: string;
315
+ image: string;
316
+ };
317
+ } | {
318
+ serviceProgress: 18;
319
+ data: {
320
+ time: string;
321
+ orderSn: string;
322
+ serviceId: string;
323
+ handleResult: 1 | 2;
324
+ bearAmount: string;
325
+ image: string;
326
+ };
327
+ } | {
328
+ serviceProgress: 20;
329
+ data: {
330
+ time: string;
331
+ orderSn: string;
332
+ serviceId: string;
333
+ auditResult: 1 | 2;
334
+ abnormalAmount: string;
335
+ };
336
+ } | {
337
+ serviceProgress: 21;
338
+ data: {
339
+ time: string;
340
+ orderSn: string;
341
+ serviceId: string;
342
+ judgeResult: 1 | 2;
343
+ isCompensation: 0 | 1;
344
+ image: string;
345
+ compensateAmount: string;
346
+ compensateWay: string;
347
+ payWay: 0 | 1;
348
+ accountType: 0 | 1 | 2 | 3;
349
+ accountName: string;
350
+ account: string;
351
+ serviceExplain: string;
352
+ workerRemark: string;
353
+ processRemark: string;
354
+ };
355
+ } | {
356
+ serviceProgress: 22;
357
+ data: {
358
+ time: string;
359
+ workerName: string;
360
+ };
361
+ };
362
+ export declare type ServiceProgressListType = ({
363
+ operateTime: string;
364
+ orderSn: string;
365
+ serviceId: string;
366
+ pushId: string;
367
+ serviceProgressDesc: string;
368
+ } & ServiceProgressDataType)[];
369
+ export declare type ServiceProgressDataMap = {
370
+ [P in ServiceProgressDataType as P['serviceProgress']]: P['data'];
371
+ };
372
+ export declare type ServiceProgressDataKeys<P extends keyof ServiceProgressDataMap> = keyof ServiceProgressDataMap[P];
373
+ export declare type ServiceProgressDetailItemSchemaSingleType<P extends keyof ServiceProgressDataMap, K extends ServiceProgressDataKeys<P> = ServiceProgressDataKeys<P>> = {
374
+ title: string;
375
+ dataIndex: K;
376
+ render?: (value: ServiceProgressDataMap[P][K], record: Extract<ServiceProgressListType[number], {
377
+ serviceProgress: P;
378
+ }>, item: ServiceProgressDetailItemSchemaSingleType<P, K>, effects: {
379
+ shopList: Shop[];
380
+ }) => React.ReactNode;
381
+ };
382
+ export declare type ServiceProgressDetailItemSchemaType<P extends ServiceProgressType> = ServiceProgressDetailItemSchemaSingleType<P & keyof ServiceProgressDataMap> | ServiceProgressDetailItemSchemaSingleType<P & keyof ServiceProgressDataMap>[];
383
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import type { Shop } from '../model/types/login';
3
+ export * from './detail/types';
4
+ export * from './detail/OrderInfo';
5
+ export * from './detail/ServiceProgress';
6
+ export declare function LBOrder(props: {
7
+ btn?: React.ReactElement;
8
+ id: string;
9
+ shopList: Shop[];
10
+ activeKey?: 'orderInfo' | 'serviceProgress';
11
+ }): React.JSX.Element;
12
+ export declare namespace LBOrder {
13
+ var displayName: string;
14
+ }
@@ -0,0 +1,63 @@
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 { Button, Drawer } from 'antd';
8
+ import React, { useState } from 'react';
9
+ import { CloseOutlined } from '@ant-design/icons';
10
+ import LBOrderDetail from "./detail/index";
11
+ import { useWindowSize } from '@kmkf-fe-packages/kmkf-utils';
12
+ console.log("\uD83D\uDE80 ~ index.tsx:7 ~ useWindowSize:", useWindowSize);
13
+ export * from "./detail/types";
14
+ export * from "./detail/OrderInfo";
15
+ export * from "./detail/ServiceProgress";
16
+ export function LBOrder(props) {
17
+ var _useState = useState(false),
18
+ _useState2 = _slicedToArray(_useState, 2),
19
+ open = _useState2[0],
20
+ setOpen = _useState2[1];
21
+ var _useWindowSize = useWindowSize(),
22
+ innerWidth = _useWindowSize.innerWidth;
23
+ var width = innerWidth >= 800 ? 800 : innerWidth > 300 ? innerWidth - 50 : innerWidth;
24
+ var showDrawer = function showDrawer() {
25
+ setOpen(true);
26
+ };
27
+ var onClose = function onClose() {
28
+ setOpen(false);
29
+ };
30
+ return /*#__PURE__*/React.createElement(React.Fragment, null, props.btn ? /*#__PURE__*/React.cloneElement(props.btn, {
31
+ onClick: showDrawer
32
+ }) : /*#__PURE__*/React.createElement(Button, {
33
+ type: "primary",
34
+ onClick: showDrawer
35
+ }, "Open"), /*#__PURE__*/React.createElement(Drawer, {
36
+ width: width,
37
+ headerStyle: {
38
+ borderBottom: '0px',
39
+ padding: '12px'
40
+ },
41
+ bodyStyle: {
42
+ padding: '0px'
43
+ },
44
+ title: "\u5B89\u88C5/\u7EF4\u4FEE\u5355\u8BE6\u60C5",
45
+ closable: false,
46
+ extra: /*#__PURE__*/React.createElement(CloseOutlined, {
47
+ style: {
48
+ color: 'rgba(0, 0, 0, 0.45)'
49
+ },
50
+ onClick: onClose
51
+ }),
52
+ placement: "right",
53
+ onClose: onClose,
54
+ visible: open,
55
+ open: open
56
+ }, open && /*#__PURE__*/React.createElement(LBOrderDetail, {
57
+ contentWidth: width,
58
+ id: props.id,
59
+ shopList: props.shopList,
60
+ activeKey: props.activeKey
61
+ })));
62
+ }
63
+ LBOrder.displayName = 'LBOrder';
@@ -26,6 +26,8 @@ export var updateWorkTypeKeys = {
26
26
  BS_DEPOSIT: 'bsDeposit',
27
27
  NEW_PAYMENT_STATUS: 'newPaymentStatus',
28
28
  BUSINESS_ORDER_NO: 'businessOrderNo',
29
+ REPAIR_ORDER_SN: 'repairOrderSn',
30
+ REPAIR_ORDER_ID: 'repairOrderId',
29
31
  PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
30
32
  ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment',
31
33
  WDT_SHOP: 'shopCode'
@@ -114,6 +116,8 @@ export var DEFAULT_STRING_COMPONENT_TYPE_FIELD_MAPPING = {
114
116
  SYSTEM_ORDER_NO: 'systemOrderNo',
115
117
  NEW_PAYMENT_STATUS: 'newPaymentStatus',
116
118
  BUSINESS_ORDER_NO: 'businessOrderNo',
119
+ REPAIR_ORDER_SN: 'repairOrderSn',
120
+ REPAIR_ORDER_ID: 'repairOrderId',
117
121
  PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
118
122
  BASIC_MULT_SELECT: 'basicMultSelect',
119
123
  ORDER_TYPE: 'erpOrderType',
@@ -179,6 +183,10 @@ export var SUBMIT_COMPONENT_STATUS_MAP = {
179
183
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
180
184
  status: 'returnExchangeGoodsReviewStatusValue',
181
185
  reason: 'returnExchangeGoodsReviewStatusReason'
186
+ },
187
+ REPAIR_ORDER_STATUS: {
188
+ status: 'repairOrderStatusValue',
189
+ reason: 'repairOrderStatusReason'
182
190
  }
183
191
  };
184
192
  export var SUBMIT_COMPONENT_GOOD_STATUS_MAP = {
@@ -849,6 +849,8 @@ var processComponent = function processComponent(_ref59) {
849
849
  case 'ERP_ORDER_STATUS':
850
850
  case 'SKX_RETURN_BILL_NO':
851
851
  case 'JST_OUTBOUND_STATUS':
852
+ case 'REPAIR_ORDER_SN':
853
+ case 'REPAIR_ORDER_ID':
852
854
  wrapFn(handleOnlyAddContent);
853
855
  break;
854
856
  case 'RATE':
@@ -866,6 +868,7 @@ var processComponent = function processComponent(_ref59) {
866
868
  case 'INVOICE_STATUS':
867
869
  case 'INVOICING_STATUS':
868
870
  case 'AGREE_REFUND_STATUS':
871
+ case 'REPAIR_ORDER_STATUS':
869
872
  case 'REJECT_REFUND_STATUS':
870
873
  case 'ERP_AFTER_SALE_STATUS':
871
874
  case 'AGREE_RETURN_GOODS_STATUS':
@@ -65,7 +65,9 @@ var workTypeKeys = {
65
65
  PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
66
66
  EXECUTE_ACTION_TYPE: 'executeActionType',
67
67
  ERP_ORDER_STATUS: 'erpOrderStatus',
68
- JST_OUTBOUND_STATUS: 'jstOutboundStatus'
68
+ JST_OUTBOUND_STATUS: 'jstOutboundStatus',
69
+ REPAIR_ORDER_SN: 'repairOrderSn',
70
+ REPAIR_ORDER_ID: 'repairOrderId'
69
71
  };
70
72
 
71
73
  // 根据组件类型获取组件的UniqueKey
@@ -894,7 +896,7 @@ export var submitParams = function submitParams(_ref5) {
894
896
  }, operateParams)
895
897
  };
896
898
  if (update) {
897
- var _currentNodeDetail$wo, _currentNodeDetail$wo2, _currentNodeDetail$wo3, _currentNodeDetail$wo4, _currentNodeDetail$wo5, _currentNodeDetail$wo6, _currentNodeDetail$wo7, _currentNodeDetail$wo8;
899
+ var _currentNodeDetail$wo, _currentNodeDetail$wo2, _currentNodeDetail$wo3, _currentNodeDetail$wo4, _currentNodeDetail$wo5, _currentNodeDetail$wo6, _currentNodeDetail$wo7, _currentNodeDetail$wo8, _currentNodeDetail$wo9;
898
900
  params.updateInfo = {
899
901
  templateId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo === void 0 ? void 0 : _currentNodeDetail$wo.templateId,
900
902
  workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo2 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo2 === void 0 ? void 0 : _currentNodeDetail$wo2.id,
@@ -946,11 +948,11 @@ export var submitParams = function submitParams(_ref5) {
946
948
  dataValue: false
947
949
  });
948
950
  }
949
- if (shopUniqueKey !== (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo8 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo8 === void 0 ? void 0 : _currentNodeDetail$wo8.shopUniqueKey)) {
950
- var _currentNodeDetail$wo9;
951
+ if (shopUniqueKey && currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo8 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo8 !== void 0 && _currentNodeDetail$wo8.shopUniqueKey && shopUniqueKey !== (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo9 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo9 === void 0 ? void 0 : _currentNodeDetail$wo9.shopUniqueKey)) {
952
+ var _currentNodeDetail$wo10;
951
953
  updateList.push({
952
954
  dataKey: 'userId',
953
- oldValue: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo9 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo9 === void 0 ? void 0 : _currentNodeDetail$wo9.shopUniqueKey,
955
+ oldValue: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo10 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo10 === void 0 ? void 0 : _currentNodeDetail$wo10.shopUniqueKey,
954
956
  dataValue: shopUniqueKey
955
957
  });
956
958
  }
@@ -959,20 +961,20 @@ export var submitParams = function submitParams(_ref5) {
959
961
  delete params.workOrderUpdateKeyVos;
960
962
  delete params.needTransForm;
961
963
  } else {
962
- var _Object$keys, _currentNodeDetail$wo10, _currentNodeDetail$wo11, _currentNodeDetail$wo12, _currentNodeDetail$wo13, _currentNodeDetail$wo14, _currentNodeDetail$wo15, _currentNodeDetail$wo16, _currentNodeDetail$wo17, _currentNodeDetail$wo18, _currentNodeDetail$wo19, _currentNodeDetail$wo20;
964
+ var _Object$keys, _currentNodeDetail$wo11, _currentNodeDetail$wo12, _currentNodeDetail$wo13, _currentNodeDetail$wo14, _currentNodeDetail$wo15, _currentNodeDetail$wo16, _currentNodeDetail$wo17, _currentNodeDetail$wo18, _currentNodeDetail$wo19, _currentNodeDetail$wo20, _currentNodeDetail$wo21;
963
965
  // TODO: 新保存工单
964
966
  // 获取当前表单中非空字段
965
967
  var finalComponentList = (_Object$keys = Object.keys(formData)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.filter(function (i) {
966
968
  return !isNull(formData[i]);
967
969
  });
968
970
  // 获取非空字段对应的组件
969
- var finalDtoList = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo10 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo10 === void 0 ? void 0 : (_currentNodeDetail$wo11 = _currentNodeDetail$wo10.componentDtoList) === null || _currentNodeDetail$wo11 === void 0 ? void 0 : _currentNodeDetail$wo11.filter(function (item) {
971
+ var finalDtoList = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo11 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo11 === void 0 ? void 0 : (_currentNodeDetail$wo12 = _currentNodeDetail$wo11.componentDtoList) === null || _currentNodeDetail$wo12 === void 0 ? void 0 : _currentNodeDetail$wo12.filter(function (item) {
970
972
  return finalComponentList.includes(item.uniqueKey) || item.workOrderComponentType === 'BUYER_MESSAGE_NOTICE';
971
973
  });
972
974
  set(newTemplateDetail, 'componentDtoList', finalDtoList);
973
975
  params.workOrder = {
974
- templateId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo12 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo12 === void 0 ? void 0 : _currentNodeDetail$wo12.uniqueKey,
975
- handleWorkOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo13 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo13 === void 0 ? void 0 : _currentNodeDetail$wo13.id,
976
+ templateId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo13 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo13 === void 0 ? void 0 : _currentNodeDetail$wo13.uniqueKey,
977
+ handleWorkOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo14 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo14 === void 0 ? void 0 : _currentNodeDetail$wo14.id,
976
978
  buyerNick: plat === null || plat === void 0 ? void 0 : plat.buyerNick,
977
979
  buyerOpenUid: plat === null || plat === void 0 ? void 0 : plat.buyerId,
978
980
  shopUniqueKey: shopUniqueKey,
@@ -982,13 +984,13 @@ export var submitParams = function submitParams(_ref5) {
982
984
  };
983
985
 
984
986
  // 判断是否有订单号组建,订单号数据需要特殊处理
985
- var tradeIdUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo14 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo14 === void 0 ? void 0 : (_currentNodeDetail$wo15 = _currentNodeDetail$wo14.componentDtoList) === null || _currentNodeDetail$wo15 === void 0 ? void 0 : (_currentNodeDetail$wo16 = _currentNodeDetail$wo15.find(function (item) {
987
+ var tradeIdUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo15 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo15 === void 0 ? void 0 : (_currentNodeDetail$wo16 = _currentNodeDetail$wo15.componentDtoList) === null || _currentNodeDetail$wo16 === void 0 ? void 0 : (_currentNodeDetail$wo17 = _currentNodeDetail$wo16.find(function (item) {
986
988
  return item.workOrderComponentType === 'TRADE_ID_INPUT';
987
- })) === null || _currentNodeDetail$wo16 === void 0 ? void 0 : _currentNodeDetail$wo16.uniqueKey;
989
+ })) === null || _currentNodeDetail$wo17 === void 0 ? void 0 : _currentNodeDetail$wo17.uniqueKey;
988
990
  // 判断是否有订单号组建,订单号数据需要特殊处理
989
- var paymentTradeIdUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo17 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo17 === void 0 ? void 0 : (_currentNodeDetail$wo18 = _currentNodeDetail$wo17.componentDtoList) === null || _currentNodeDetail$wo18 === void 0 ? void 0 : (_currentNodeDetail$wo19 = _currentNodeDetail$wo18.find(function (item) {
991
+ var paymentTradeIdUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo18 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo18 === void 0 ? void 0 : (_currentNodeDetail$wo19 = _currentNodeDetail$wo18.componentDtoList) === null || _currentNodeDetail$wo19 === void 0 ? void 0 : (_currentNodeDetail$wo20 = _currentNodeDetail$wo19.find(function (item) {
990
992
  return item.workOrderComponentType === 'ENTERPRISE_PAYMENT';
991
- })) === null || _currentNodeDetail$wo19 === void 0 ? void 0 : _currentNodeDetail$wo19.uniqueKey;
993
+ })) === null || _currentNodeDetail$wo20 === void 0 ? void 0 : _currentNodeDetail$wo20.uniqueKey;
992
994
  if (paymentTradeIdUniqueKey) {
993
995
  var _formData;
994
996
  params.workOrder.tid = formData === null || formData === void 0 ? void 0 : (_formData = formData["".concat(paymentTradeIdUniqueKey)]) === null || _formData === void 0 ? void 0 : _formData.enterprisePaymentTid;
@@ -999,7 +1001,7 @@ export var submitParams = function submitParams(_ref5) {
999
1001
  if (formData !== null && formData !== void 0 && formData['fixed_field_buyerOpenUid']) {
1000
1002
  params.workOrder.buyerOpenUid = formData === null || formData === void 0 ? void 0 : formData['fixed_field_buyerOpenUid'];
1001
1003
  }
1002
- params.workOrder.workOrderComponents = submitDataTransOldFormat(formData, newTemplateDetail, !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo20 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo20 !== void 0 && _currentNodeDetail$wo20.id), currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrder, params.workOrder, (plat === null || plat === void 0 ? void 0 : plat.accountName) || '');
1004
+ params.workOrder.workOrderComponents = submitDataTransOldFormat(formData, newTemplateDetail, !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo21 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo21 !== void 0 && _currentNodeDetail$wo21.id), currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrder, params.workOrder, (plat === null || plat === void 0 ? void 0 : plat.accountName) || '');
1003
1005
  //端上有买家id 就返填当前买家 即使不是当前买家的订单
1004
1006
  if (plat.platform !== PlatForm.PC && plat !== null && plat !== void 0 && plat.buyerId) {
1005
1007
  params.workOrder.buyerOpenUid = plat === null || plat === void 0 ? void 0 : plat.buyerId;
@@ -440,6 +440,10 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
440
440
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
441
441
  status: 'returnExchangeGoodsReviewStatusValue',
442
442
  reason: 'returnExchangeGoodsReviewStatusReason'
443
+ },
444
+ REPAIR_ORDER_STATUS: {
445
+ status: 'repairOrderStatusValue',
446
+ reason: 'repairOrderStatusReason'
443
447
  }
444
448
  };
445
449
  return _defineProperty({}, nex.uniqueKey, {
@@ -1280,6 +1284,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
1280
1284
  INVOICE_STATUS: processCallBackStatus,
1281
1285
  INVOICING_STATUS: processCallBackStatus,
1282
1286
  AGREE_REFUND_STATUS: processCallBackStatus,
1287
+ REPAIR_ORDER_STATUS: processCallBackStatus,
1283
1288
  REJECT_REFUND_STATUS: processCallBackStatus,
1284
1289
  ERP_AFTER_SALE_STATUS: processCallBackStatus,
1285
1290
  AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
@@ -1372,6 +1377,8 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
1372
1377
  BS_DEPOSIT: processSingleField,
1373
1378
  NEW_PAYMENT_STATUS: processSingleField,
1374
1379
  BUSINESS_ORDER_NO: processSingleField,
1380
+ REPAIR_ORDER_SN: processSingleField,
1381
+ REPAIR_ORDER_ID: processSingleField,
1375
1382
  PAYMENT_VOUCHER_CODE: processSingleField,
1376
1383
  BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
1377
1384
  ACTUAL_RECEIPT_PAYMENT: processSingleField,
@@ -6,6 +6,9 @@ export { default as FormRenderTemplateId } from './FormRenderTemplateId';
6
6
  export { default as FlowWorkOrderDetailV2 } from './FlowTemplateDetailV2';
7
7
  export { default as TradeList } from './TradeList';
8
8
  export { default as WdtTradeList } from './WdtTradeList';
9
+ export * as LB from './LBOrderDetail';
10
+ export { DETAIL_ITEM_LIST } from './LBOrderDetail/detail/OrderInfo';
11
+ export type { DetailItemSchemaType, DetailType } from './LBOrderDetail/detail/types';
9
12
  export { default as FlowFormRender } from './FlowTemplateDetailV2/components/FormRender';
10
13
  export { default as CustomerServiceToDoList } from './CustomerServiceToDoList';
11
14
  export { default as ShareLinkModal } from './FlowTemplateDetailV2/components/ShareLinkModal';
package/dist/esm/index.js CHANGED
@@ -16,6 +16,9 @@ export { default as FormRenderTemplateId } from "./FormRenderTemplateId";
16
16
  export { default as FlowWorkOrderDetailV2 } from "./FlowTemplateDetailV2";
17
17
  export { default as TradeList } from "./TradeList";
18
18
  export { default as WdtTradeList } from "./WdtTradeList";
19
+ import * as _LB from "./LBOrderDetail";
20
+ export { _LB as LB };
21
+ export { DETAIL_ITEM_LIST } from "./LBOrderDetail/detail/OrderInfo";
19
22
  export { default as FlowFormRender } from "./FlowTemplateDetailV2/components/FormRender";
20
23
  export { default as CustomerServiceToDoList } from "./CustomerServiceToDoList";
21
24
  export { default as ShareLinkModal } from "./FlowTemplateDetailV2/components/ShareLinkModal";
@@ -19,6 +19,7 @@ export declare type Shop = {
19
19
  shopSourceStr: string;
20
20
  taobaoId: string;
21
21
  taobaoNick: string;
22
+ uniqueKey: string;
22
23
  };
23
24
  export declare type LoginResultData = {
24
25
  account: string;