@kmkf-fe-packages/kmkf-work-order-service-component 2.6.1-beta.7 → 2.7.0
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/common.js +1 -1
- package/dist/esm/FlowTemplateDetailV2/components/CurrentNode/index.d.ts +0 -1
- package/dist/esm/FlowTemplateDetailV2/components/CurrentNode/index.js +10 -13
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/index.d.ts +0 -1
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/index.js +40 -71
- package/dist/esm/FlowTemplateDetailV2/index.js +15 -18
- package/dist/esm/common/constant.d.ts +29 -5
- package/dist/esm/common/constant.js +12 -21
- package/dist/esm/common/utils/constant.js +0 -7
- package/dist/esm/common/utils/submitDataTransOldFormat.js +0 -5
- package/dist/esm/common/utils/tools.d.ts +0 -1
- package/dist/esm/common/utils/tools.js +138 -184
- package/dist/esm/common/utils/transformWorkOrderData.js +2 -16
- package/dist/esm/model/servers/api.d.ts +0 -4
- package/dist/esm/model/servers/api.js +0 -10
- package/package.json +5 -5
|
@@ -40,7 +40,7 @@ export var FLOW_STATUS_V2 = {
|
|
|
40
40
|
RETURNING: '回退中'
|
|
41
41
|
};
|
|
42
42
|
//不能回填的组件type
|
|
43
|
-
export var CANNOT_BACK_FILL = ['LOGISTICS_TRAJECTORY', 'LOGISTICS_TRAJECTORY_MORE', 'BUYER_MESSAGE_NOTICE', 'MSG_STATUS', 'NEW_PAYMENT_STATUS', 'REISSUE_STATUS', 'REISSUE_LOGISTICS', 'RETURN_GOODS_STATUS', 'RETURN_GOODS_TRADE_ID', 'ADJUST_WORK_ORDER_STATUS', 'INVOICE_STATUS', 'INVOICING_STATUS', 'EXCHANGE_STATUS', 'WAREHOUSING_STATUS', 'BS_E3_WAREHOUSING_STATUS', 'WDT_WAREHOUSING_STATUS', 'JKY_WAREHOUSING_STATUS', 'EXCHANGE_TRADE_ID', 'REISSUE_TRADE_ID', '
|
|
43
|
+
export var CANNOT_BACK_FILL = ['LOGISTICS_TRAJECTORY', 'LOGISTICS_TRAJECTORY_MORE', 'BUYER_MESSAGE_NOTICE', 'MSG_STATUS', 'NEW_PAYMENT_STATUS', 'REISSUE_STATUS', 'REISSUE_LOGISTICS', 'RETURN_GOODS_STATUS', 'RETURN_GOODS_TRADE_ID', 'ADJUST_WORK_ORDER_STATUS', 'INVOICE_STATUS', 'INVOICING_STATUS', 'EXCHANGE_STATUS', 'WAREHOUSING_STATUS', 'BS_E3_WAREHOUSING_STATUS', 'WDT_WAREHOUSING_STATUS', 'JKY_WAREHOUSING_STATUS', 'EXCHANGE_TRADE_ID', 'REISSUE_TRADE_ID', 'ERP_AFTER_SALE_TRADE_ID', 'LOGISTICS_INTERCEPTION', 'LOGISTICS_INTERCEPTION_MORE', 'ORDER_TYPE', 'REFUND_TYPE', 'RETURN_EXCHANGE_GOODS_REVIEW_STATUS', 'EXECUTE_ACTION_TYPE'];
|
|
44
44
|
export var verifyHandle = function verifyHandle(data, componentDtoList) {
|
|
45
45
|
var _componentDtoList$fin, _componentDtoList$fin2, _data$paymentUniqueKe, _data$paymentUniqueKe2;
|
|
46
46
|
var res = {
|
|
@@ -14,7 +14,6 @@ declare type CurrentNodeProps = {
|
|
|
14
14
|
queryRemarkList: () => void;
|
|
15
15
|
autoSubmit?: boolean;
|
|
16
16
|
isSuperAdmin?: boolean;
|
|
17
|
-
autoFillThirdPartyFields?: boolean;
|
|
18
17
|
};
|
|
19
18
|
declare const _default: React.ForwardRefExoticComponent<CurrentNodeProps & React.RefAttributes<unknown>>;
|
|
20
19
|
export default _default;
|
|
@@ -69,8 +69,7 @@ var CurrentNode = function CurrentNode(props, ref) {
|
|
|
69
69
|
flowWorkOrderId = props.flowWorkOrderId,
|
|
70
70
|
queryRemarkList = props.queryRemarkList,
|
|
71
71
|
autoSubmit = props.autoSubmit,
|
|
72
|
-
onJumpPage = props.onJumpPage
|
|
73
|
-
autoFillThirdPartyFields = props.autoFillThirdPartyFields;
|
|
72
|
+
onJumpPage = props.onJumpPage;
|
|
74
73
|
var _useContext = useContext(Context),
|
|
75
74
|
dispatch = _useContext.dispatch;
|
|
76
75
|
// 是否是编辑状态
|
|
@@ -285,23 +284,20 @@ var CurrentNode = function CurrentNode(props, ref) {
|
|
|
285
284
|
return _ref2.apply(this, arguments);
|
|
286
285
|
};
|
|
287
286
|
}();
|
|
288
|
-
var eventType = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$fl = currentNodeDetail.flowEventData) === null || _currentNodeDetail$fl === void 0 ? void 0 : _currentNodeDetail$fl.eventType;
|
|
289
|
-
var eventConfig = SKIP_NODE_TYPES_CONFIG[eventType];
|
|
290
|
-
var shouldSkipByValidate = typeof eventConfig === 'boolean' || !(eventConfig !== null && eventConfig !== void 0 && eventConfig.validateFn) || eventConfig.validateFn(currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.nodeInfo);
|
|
291
|
-
var showSkipButton = eventType in SKIP_NODE_TYPES_CONFIG && flowStatus && [FlowStatus.FLOWING, FlowStatus.PROCESSING].includes(flowStatus) && shouldSkipByValidate;
|
|
292
287
|
var handleSkip = /*#__PURE__*/function () {
|
|
293
288
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
294
|
-
var title;
|
|
289
|
+
var title, config;
|
|
295
290
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
296
291
|
while (1) switch (_context4.prev = _context4.next) {
|
|
297
292
|
case 0:
|
|
298
293
|
title = '当前获取物流单号自动化任务正在执行中,确定要跳过吗?跳过后将无法获取物流信息';
|
|
299
|
-
|
|
294
|
+
config = SKIP_NODE_TYPES_CONFIG[eventType];
|
|
295
|
+
if (typeof config !== 'boolean') {
|
|
300
296
|
title = /*#__PURE__*/React.createElement(React.Fragment, null, "\u5F53\u524D", /*#__PURE__*/React.createElement("span", {
|
|
301
297
|
className: styles.highlight
|
|
302
|
-
},
|
|
298
|
+
}, config.name), "\u81EA\u52A8\u5316\u4EFB\u52A1\u6B63\u5728\u6267\u884C\u4E2D\uFF0C\u786E\u5B9A\u8981\u8DF3\u8FC7\u5417\uFF1F\u8DF3\u8FC7\u540E\u5C06\u65E0\u6CD5\u83B7\u53D6", /*#__PURE__*/React.createElement("span", {
|
|
303
299
|
className: styles.highlight
|
|
304
|
-
},
|
|
300
|
+
}, config.tips));
|
|
305
301
|
}
|
|
306
302
|
Modal.confirm({
|
|
307
303
|
title: title,
|
|
@@ -349,7 +345,7 @@ var CurrentNode = function CurrentNode(props, ref) {
|
|
|
349
345
|
return onOk;
|
|
350
346
|
}()
|
|
351
347
|
});
|
|
352
|
-
case
|
|
348
|
+
case 4:
|
|
353
349
|
case "end":
|
|
354
350
|
return _context4.stop();
|
|
355
351
|
}
|
|
@@ -361,11 +357,13 @@ var CurrentNode = function CurrentNode(props, ref) {
|
|
|
361
357
|
}();
|
|
362
358
|
var isArtificialNode = tag === 'artificial';
|
|
363
359
|
var isAutoNode = tag === 'auto';
|
|
360
|
+
var eventType = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$fl = currentNodeDetail.flowEventData) === null || _currentNodeDetail$fl === void 0 ? void 0 : _currentNodeDetail$fl.eventType;
|
|
364
361
|
var isShowAutoNodeDetail = isAutoNode && ['ORDER_MEMO_MANY_RULES', 'AFTER_SALE_AUTO_RETURN_GOODS_AGREE_REJECT', 'AFTER_SALE_AUTO_REFUND_REJECT', 'LOGISTICS_INTERCEPT_MULTI_RULE', 'MESSAGE_NOTIFY_EVENT', 'DING_TALK_ROBOT_NOTIFY', 'HTTP_INVOKE', 'ORDER_MEMO', 'LBDJ_ONE_PRICE_ORDER'].includes(eventType);
|
|
365
362
|
var showEdit = isArtificialNode && isCurrentNodeHandler && !readonly && (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo12 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo12 === void 0 ? void 0 : _currentNodeDetail$wo12.flowStatus) === FlowStatus.COMPLETED;
|
|
366
363
|
// TODO: 决策节点给后端修复数据加了一个入口
|
|
367
364
|
// @ts-ignore
|
|
368
365
|
var showRestartAutoTask = tag === 'auto' && flowStatus === FlowStatus.PROCESSING || tag === 'judge' && ((_localStorage = localStorage) === null || _localStorage === void 0 ? void 0 : _localStorage.getItem('__isDEV__')) === 'true';
|
|
366
|
+
var showSkipButton = eventType in SKIP_NODE_TYPES_CONFIG && flowStatus && [FlowStatus.FLOWING, FlowStatus.PROCESSING].includes(flowStatus);
|
|
369
367
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Header, {
|
|
370
368
|
tag: tag,
|
|
371
369
|
nodeName: nodeName,
|
|
@@ -419,8 +417,7 @@ var CurrentNode = function CurrentNode(props, ref) {
|
|
|
419
417
|
flowAllShowHideRules: allShowHideRules,
|
|
420
418
|
isStartNodeWaiting: NodeType.START_NODE === (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no25 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no25 === void 0 ? void 0 : _currentNodeDetail$no25.nodeType) && [NodeStatus.WAITING].includes(currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo23 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo23 === void 0 ? void 0 : _currentNodeDetail$wo23.flowStatus),
|
|
421
419
|
firstOrderBackfill: flowStatus !== FlowStatus.COMPLETED,
|
|
422
|
-
autoSubmit: autoSubmit
|
|
423
|
-
autoFillThirdPartyFields: autoFillThirdPartyFields
|
|
420
|
+
autoSubmit: autoSubmit
|
|
424
421
|
})), isShowAutoNodeDetail && /*#__PURE__*/React.createElement(AutoTaskDetail, {
|
|
425
422
|
flowEventData: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.flowEventData,
|
|
426
423
|
shopList: shopList
|
|
@@ -33,7 +33,6 @@ declare type FormRenderProps = {
|
|
|
33
33
|
isErpUse?: boolean;
|
|
34
34
|
autoSubmit?: boolean;
|
|
35
35
|
isStartNodeWaiting?: boolean;
|
|
36
|
-
autoFillThirdPartyFields?: boolean;
|
|
37
36
|
};
|
|
38
37
|
declare const _default: React.ForwardRefExoticComponent<FormRenderProps & React.RefAttributes<unknown>>;
|
|
39
38
|
export default _default;
|
|
@@ -29,7 +29,7 @@ import { get, some, set, every, cloneDeep, isEmpty, intersection, throttle, grou
|
|
|
29
29
|
import 'moment/locale/zh-cn';
|
|
30
30
|
import { calcWorkOrderList, orderBack, getReplaceWarnValues, COMPONENT_MAP_NAME, EXCLUDE_REPLACE_TOP_COMPONENT,
|
|
31
31
|
// 重复检验不需要展示在顶部的
|
|
32
|
-
INNER_REPLACE_COMPONENT, reversalFormValues, wdtReturnBillNoBackValues,
|
|
32
|
+
INNER_REPLACE_COMPONENT, reversalFormValues, wdtReturnBillNoBackValues, bsSystemOrderBackValues, kmSystemOrderBackValues, bsE3SystemOrderBackValues, wlnSystemOrderBackValues, gySystemOrderBackValues, jstSystemOrderBackValues, jySystemOrderBackValues, jkySystemOrderBackValues, getMappingConfigByTemplateDetail, wdtSystemOrderBackValues, setLogisticsInfo, getMappingTargetValue } from "../../../common/utils/tools";
|
|
33
33
|
import { replaceCheck, orderDetail, queryLabelByTradeId, queryMemberLevel } from "../../../model/servers/api";
|
|
34
34
|
import { factory } from '@kmkf-fe-packages/services-components';
|
|
35
35
|
import { getExpression, formatDisplayConfig, isNull, LabelData, setSessionStorage } from '@kmkf-fe-packages/kmkf-utils';
|
|
@@ -95,10 +95,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
95
95
|
autoSubmit = _props$autoSubmit === void 0 ? false : _props$autoSubmit,
|
|
96
96
|
_props$isStartNodeWai = props.isStartNodeWaiting,
|
|
97
97
|
isStartNodeWaiting = _props$isStartNodeWai === void 0 ? false : _props$isStartNodeWai,
|
|
98
|
-
onJumpPage = props.onJumpPage
|
|
99
|
-
autoFillThirdPartyFields = props.autoFillThirdPartyFields;
|
|
100
|
-
// 优先使用外部传入的 autoFillThirdPartyFields,未传时降级使用 record 中的 notAutoFillWithFirstSubmit
|
|
101
|
-
var notAutoFillFlag = autoFillThirdPartyFields !== undefined ? autoFillThirdPartyFields : record === null || record === void 0 ? void 0 : record.notAutoFillWithFirstSubmit;
|
|
98
|
+
onJumpPage = props.onJumpPage;
|
|
102
99
|
var shopIdToUniqueKeyMap = useMemo(function () {
|
|
103
100
|
var json = {};
|
|
104
101
|
shopList.forEach(function (shop) {
|
|
@@ -201,7 +198,6 @@ var FormRender = function FormRender(props, ref) {
|
|
|
201
198
|
}
|
|
202
199
|
});
|
|
203
200
|
var transData = calcWorkOrderList([record], preNodeComponentDtoList);
|
|
204
|
-
console.log("*** transData:", transData);
|
|
205
201
|
preNodeForm.setFieldsValue(_objectSpread({}, get(transData, '0', {})));
|
|
206
202
|
if (record.preCreateAndNotModified && !record.notAutoFillWithFirstSubmit) {
|
|
207
203
|
fillByShopId(get(transData, '0', {}).shopId);
|
|
@@ -403,7 +399,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
403
399
|
}, [labelComponent, record]);
|
|
404
400
|
var queryDetail = /*#__PURE__*/function () {
|
|
405
401
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
|
|
406
|
-
var workOrderId, shopId, shopList, record, orderNo, buyerId, buyerNick, jsonMap, _record$
|
|
402
|
+
var workOrderId, shopId, shopList, record, orderNo, buyerId, buyerNick, jsonMap, _record$jsonMap3, newRecord, jsonMapOrderId, getCacheInfo, newFormValues, transData, initialValues, tradeIdUniqueKey, _record$jsonMap2, currentNodeTradeIdUniqueKey, _currentNodeTid, _record$jsonMap4, _record$jsonMap5, _record$jsonMap6, initFormValues, _getCacheInfo, _getCacheInfo2, _getCacheInfo3, _getCacheInfo4, _orderNo, _shopId, orderNoField, _transData, _initialValues, antFormEl;
|
|
407
403
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
408
404
|
while (1) switch (_context2.prev = _context2.next) {
|
|
409
405
|
case 0:
|
|
@@ -433,7 +429,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
433
429
|
return prv;
|
|
434
430
|
}, {});
|
|
435
431
|
if (!workOrderId) {
|
|
436
|
-
_context2.next =
|
|
432
|
+
_context2.next = 45;
|
|
437
433
|
break;
|
|
438
434
|
}
|
|
439
435
|
// 先初始化端上内容
|
|
@@ -461,29 +457,23 @@ var FormRender = function FormRender(props, ref) {
|
|
|
461
457
|
}));
|
|
462
458
|
console.log('transData', get(transData, '0', {}));
|
|
463
459
|
initialValues = get(transData, '0', {});
|
|
464
|
-
newRecord.preCreateAndNotModified && !
|
|
460
|
+
newRecord.preCreateAndNotModified && !newRecord.notAutoFillWithFirstSubmit && batchFillByMapping(initialValues);
|
|
465
461
|
orderBackReplace(transData, templateDetail);
|
|
466
462
|
// TODO: 非开始节点录入,都会有workOrderId,这里判断是否有前置组件含有订单号;如果存在订单号,进行订单反填。
|
|
467
463
|
tradeIdUniqueKey = findComponentUniqueKeyByType(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.preNodeComponentDtoList, 'TRADE_ID_INPUT');
|
|
468
|
-
if (!
|
|
469
|
-
_context2.next =
|
|
464
|
+
if (!newRecord.notAutoFillWithFirstSubmit) {
|
|
465
|
+
_context2.next = 35;
|
|
470
466
|
break;
|
|
471
467
|
}
|
|
472
468
|
currentNodeTradeIdUniqueKey = findComponentUniqueKeyByType(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList, 'TRADE_ID_INPUT');
|
|
473
469
|
_currentNodeTid = record === null || record === void 0 ? void 0 : (_record$jsonMap2 = record.jsonMap) === null || _record$jsonMap2 === void 0 ? void 0 : _record$jsonMap2["".concat(currentNodeTradeIdUniqueKey, "_tradeId")];
|
|
474
|
-
currentNodeExpressLogisticsCodeKey = findComponentUniqueKeyByType(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList, 'EXPRESS_LOGISTICS_SELECT');
|
|
475
|
-
currentNodeLogisticsCode = record === null || record === void 0 ? void 0 : (_record$jsonMap3 = record.jsonMap) === null || _record$jsonMap3 === void 0 ? void 0 : _record$jsonMap3["".concat(currentNodeExpressLogisticsCodeKey, "_expressLogisticsCode")];
|
|
476
|
-
isSkx = ['TR3E2FYXFZCFANVG6O6AALSM'].includes(companyKey); // SKX 特殊处理逻辑
|
|
477
|
-
_userInfo = JSON.parse(localStorage.getItem('reduxData_userInfo') || '{}');
|
|
478
|
-
companyUserConfig = (_userInfo$companyUser3 = _userInfo === null || _userInfo === void 0 ? void 0 : _userInfo.companyUserConfig) !== null && _userInfo$companyUser3 !== void 0 ? _userInfo$companyUser3 : {};
|
|
479
|
-
hasWdt = (_companyUserConfig$pl = companyUserConfig === null || companyUserConfig === void 0 ? void 0 : (_companyUserConfig$pl2 = companyUserConfig.plugins) === null || _companyUserConfig$pl2 === void 0 ? void 0 : (_companyUserConfig$pl3 = _companyUserConfig$pl2.wdt) === null || _companyUserConfig$pl3 === void 0 ? void 0 : _companyUserConfig$pl3.show) !== null && _companyUserConfig$pl !== void 0 ? _companyUserConfig$pl : false;
|
|
480
470
|
if (!_currentNodeTid) {
|
|
481
|
-
_context2.next =
|
|
471
|
+
_context2.next = 30;
|
|
482
472
|
break;
|
|
483
473
|
}
|
|
484
474
|
queryLabels(_currentNodeTid, shopId);
|
|
485
475
|
queryMemberLevels(_currentNodeTid, shopId);
|
|
486
|
-
_context2.next =
|
|
476
|
+
_context2.next = 28;
|
|
487
477
|
return orderBack({
|
|
488
478
|
companyKey: companyKey,
|
|
489
479
|
order_no: _currentNodeTid,
|
|
@@ -497,15 +487,11 @@ var FormRender = function FormRender(props, ref) {
|
|
|
497
487
|
callKey: 1,
|
|
498
488
|
setLoading: setLoading
|
|
499
489
|
});
|
|
500
|
-
case
|
|
501
|
-
_context2.next =
|
|
490
|
+
case 28:
|
|
491
|
+
_context2.next = 32;
|
|
502
492
|
break;
|
|
503
|
-
case
|
|
504
|
-
|
|
505
|
-
_context2.next = 41;
|
|
506
|
-
break;
|
|
507
|
-
}
|
|
508
|
-
_context2.next = 39;
|
|
493
|
+
case 30:
|
|
494
|
+
_context2.next = 32;
|
|
509
495
|
return skxOrderBack({
|
|
510
496
|
form: form,
|
|
511
497
|
companyKey: companyKey,
|
|
@@ -513,32 +499,22 @@ var FormRender = function FormRender(props, ref) {
|
|
|
513
499
|
componentOnBlur: componentOnBlur,
|
|
514
500
|
jsonMap: record === null || record === void 0 ? void 0 : record.jsonMap
|
|
515
501
|
});
|
|
516
|
-
case
|
|
517
|
-
_context2.next = 44;
|
|
518
|
-
break;
|
|
519
|
-
case 41:
|
|
520
|
-
if (!(hasWdt && currentNodeLogisticsCode)) {
|
|
521
|
-
_context2.next = 44;
|
|
522
|
-
break;
|
|
523
|
-
}
|
|
524
|
-
_context2.next = 44;
|
|
525
|
-
return componentOnBlur(currentNodeLogisticsCode, 'expressLogisticsCode');
|
|
526
|
-
case 44:
|
|
502
|
+
case 32:
|
|
527
503
|
// 仅在依赖值有值且映射值为空时触发一次映射
|
|
528
504
|
batchFillByMappingWhenTargetEmpty(initialValues);
|
|
529
|
-
_context2.next =
|
|
505
|
+
_context2.next = 43;
|
|
530
506
|
break;
|
|
531
|
-
case
|
|
532
|
-
if (!(tradeIdUniqueKey && shopId && record !== null && record !== void 0 && (_record$
|
|
533
|
-
_context2.next =
|
|
507
|
+
case 35:
|
|
508
|
+
if (!(tradeIdUniqueKey && shopId && record !== null && record !== void 0 && (_record$jsonMap3 = record.jsonMap) !== null && _record$jsonMap3 !== void 0 && _record$jsonMap3["".concat(tradeIdUniqueKey, "_tradeId")] && firstOrderBackfill)) {
|
|
509
|
+
_context2.next = 42;
|
|
534
510
|
break;
|
|
535
511
|
}
|
|
536
|
-
queryLabels(record === null || record === void 0 ? void 0 : (_record$
|
|
537
|
-
queryMemberLevels(record === null || record === void 0 ? void 0 : (_record$
|
|
538
|
-
_context2.next =
|
|
512
|
+
queryLabels(record === null || record === void 0 ? void 0 : (_record$jsonMap4 = record.jsonMap) === null || _record$jsonMap4 === void 0 ? void 0 : _record$jsonMap4["".concat(tradeIdUniqueKey, "_tradeId")], shopId);
|
|
513
|
+
queryMemberLevels(record === null || record === void 0 ? void 0 : (_record$jsonMap5 = record.jsonMap) === null || _record$jsonMap5 === void 0 ? void 0 : _record$jsonMap5["".concat(tradeIdUniqueKey, "_tradeId")], shopId);
|
|
514
|
+
_context2.next = 40;
|
|
539
515
|
return orderBack({
|
|
540
516
|
companyKey: companyKey,
|
|
541
|
-
order_no: record === null || record === void 0 ? void 0 : (_record$
|
|
517
|
+
order_no: record === null || record === void 0 ? void 0 : (_record$jsonMap6 = record.jsonMap) === null || _record$jsonMap6 === void 0 ? void 0 : _record$jsonMap6["".concat(tradeIdUniqueKey, "_tradeId")],
|
|
542
518
|
form: form,
|
|
543
519
|
shopId: shopId,
|
|
544
520
|
shopList: shopList,
|
|
@@ -549,16 +525,16 @@ var FormRender = function FormRender(props, ref) {
|
|
|
549
525
|
callKey: 1,
|
|
550
526
|
setLoading: setLoading
|
|
551
527
|
});
|
|
552
|
-
case
|
|
553
|
-
_context2.next =
|
|
528
|
+
case 40:
|
|
529
|
+
_context2.next = 43;
|
|
554
530
|
break;
|
|
555
|
-
case
|
|
531
|
+
case 42:
|
|
556
532
|
// 如果没有订单反填,则单独更新remark
|
|
557
533
|
fetchRemark(shopId, currentNodeTid);
|
|
558
|
-
case
|
|
559
|
-
_context2.next =
|
|
534
|
+
case 43:
|
|
535
|
+
_context2.next = 68;
|
|
560
536
|
break;
|
|
561
|
-
case
|
|
537
|
+
case 45:
|
|
562
538
|
fillByShopId(shopId);
|
|
563
539
|
initFormValues = null;
|
|
564
540
|
if (plat !== null && plat !== void 0 && plat.subOrderNo) {
|
|
@@ -577,7 +553,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
577
553
|
|
|
578
554
|
// console.log(orderNo, initFormValues);
|
|
579
555
|
if (!initFormValues) {
|
|
580
|
-
_context2.next =
|
|
556
|
+
_context2.next = 56;
|
|
581
557
|
break;
|
|
582
558
|
}
|
|
583
559
|
form.setFieldsValue(_objectSpread(_objectSpread({}, initFormValues), {}, {
|
|
@@ -594,9 +570,9 @@ var FormRender = function FormRender(props, ref) {
|
|
|
594
570
|
_orderNo = orderNoField !== null && orderNoField !== void 0 && orderNoField.uniqueKey ? initFormValues[orderNoField === null || orderNoField === void 0 ? void 0 : orderNoField.uniqueKey] || _orderNo : _orderNo;
|
|
595
571
|
}
|
|
596
572
|
fetchRemark(_shopId, _orderNo);
|
|
597
|
-
_context2.next =
|
|
573
|
+
_context2.next = 68;
|
|
598
574
|
break;
|
|
599
|
-
case
|
|
575
|
+
case 56:
|
|
600
576
|
_transData = calcWorkOrderList([{
|
|
601
577
|
jsonMap: jsonMap
|
|
602
578
|
}], [].concat(_toConsumableArray((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.preNodeComponentDtoList) || []), _toConsumableArray((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || [])), 'init');
|
|
@@ -608,12 +584,12 @@ var FormRender = function FormRender(props, ref) {
|
|
|
608
584
|
batchFillByMapping(_initialValues);
|
|
609
585
|
//如果有订单号 订单返填 通过订单号入口进行工单录入,需要将订单数据反填到工单
|
|
610
586
|
if (!(orderNo && shopId)) {
|
|
611
|
-
_context2.next =
|
|
587
|
+
_context2.next = 67;
|
|
612
588
|
break;
|
|
613
589
|
}
|
|
614
590
|
queryLabels(orderNo, shopId);
|
|
615
591
|
queryMemberLevels(orderNo, shopId);
|
|
616
|
-
_context2.next =
|
|
592
|
+
_context2.next = 65;
|
|
617
593
|
return orderBack({
|
|
618
594
|
companyKey: companyKey,
|
|
619
595
|
order_no: orderNo,
|
|
@@ -628,13 +604,13 @@ var FormRender = function FormRender(props, ref) {
|
|
|
628
604
|
callKey: 2,
|
|
629
605
|
setLoading: setLoading
|
|
630
606
|
});
|
|
631
|
-
case
|
|
632
|
-
_context2.next =
|
|
607
|
+
case 65:
|
|
608
|
+
_context2.next = 68;
|
|
633
609
|
break;
|
|
634
|
-
case
|
|
610
|
+
case 67:
|
|
635
611
|
// 如果没有订单反填,则单独更新remark
|
|
636
612
|
fetchRemark(shopId, currentNodeTid);
|
|
637
|
-
case
|
|
613
|
+
case 68:
|
|
638
614
|
antFormEl = document.getElementsByClassName('ant-form');
|
|
639
615
|
(antFormEl === null || antFormEl === void 0 ? void 0 : antFormEl.length) > 0 && set(antFormEl, '0.scrollTop', 0);
|
|
640
616
|
resetMappingHideComponents();
|
|
@@ -643,7 +619,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
643
619
|
type: 'setaAutoSubmitFlag',
|
|
644
620
|
payload: true
|
|
645
621
|
});
|
|
646
|
-
case
|
|
622
|
+
case 72:
|
|
647
623
|
case "end":
|
|
648
624
|
return _context2.stop();
|
|
649
625
|
}
|
|
@@ -664,7 +640,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
664
640
|
buyerId: buyerId,
|
|
665
641
|
buyerNick: buyerNick
|
|
666
642
|
});
|
|
667
|
-
}, [workOrderId, record, shopId, isErpUse
|
|
643
|
+
}, [workOrderId, record, shopId, isErpUse]);
|
|
668
644
|
|
|
669
645
|
// 重置映射隐藏的组件, 目前只有单选、下拉组件可能会因为映射关系隐藏
|
|
670
646
|
var resetMappingHideComponents = function resetMappingHideComponents() {
|
|
@@ -1026,13 +1002,6 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1026
1002
|
form: form
|
|
1027
1003
|
});
|
|
1028
1004
|
}
|
|
1029
|
-
if (workOrderComponentType === 'PLATFORM_AFTER_SALES_ORDER') {
|
|
1030
|
-
afterSaleOrderBackValues({
|
|
1031
|
-
templateList: templateDetail,
|
|
1032
|
-
value: value,
|
|
1033
|
-
form: form
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
1005
|
if (activeLogisticsComponents && ['INPUT', 'EXPRESS_LOGISTICS_SELECT', 'BS_LOGISTICS'].includes(workOrderComponentType)) {
|
|
1037
1006
|
setLogisticsInfo({
|
|
1038
1007
|
logisticsMappingConfig: activeLogisticsComponents,
|
|
@@ -1434,7 +1403,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1434
1403
|
var _ref8 = (componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.status) || {},
|
|
1435
1404
|
upgrade = _ref8.upgrade,
|
|
1436
1405
|
created = _ref8.created;
|
|
1437
|
-
if (['REISSUE_TRADE_ID', 'EXCHANGE_TRADE_ID', 'ERP_AFTER_SALE_TRADE_ID'
|
|
1406
|
+
if (['REISSUE_TRADE_ID', 'EXCHANGE_TRADE_ID', 'ERP_AFTER_SALE_TRADE_ID'].includes(workOrderComponentType)) {
|
|
1438
1407
|
// 售后单id、补发单id和换货单id默认值是可见不可编辑(2)
|
|
1439
1408
|
if (typeof upgrade !== 'number') {
|
|
1440
1409
|
upgrade = 2;
|
|
@@ -61,7 +61,7 @@ import Layout from "./components/Layout";
|
|
|
61
61
|
var Text = Typography.Text,
|
|
62
62
|
Link = Typography.Link;
|
|
63
63
|
var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
64
|
-
var _currentNodeDetail$wo, _currentNodeDetail$no, _document, _document$cookie, _currentNodeDetail$wo2, _currentNodeDetail$no16, _shopList$find, _currentNodeDetail$no29, _currentNodeDetail$no30, _currentNodeDetail$
|
|
64
|
+
var _currentNodeDetail$wo, _currentNodeDetail$no, _document, _document$cookie, _currentNodeDetail$wo2, _currentNodeDetail$no16, _shopList$find, _currentNodeDetail$no29, _currentNodeDetail$no30, _currentNodeDetail$wo30, _currentNodeDetail$wo31, _JSON$parse, _currentNodeDetail$wo32, _currentNodeDetail$wo33, _currentNodeDetail$wo34, _currentNodeDetail$wo35, _currentNodeDetail$wo36, _currentNodeDetail$no31, _currentNodeDetail$no32;
|
|
65
65
|
var flowTemplateKey = props.flowTemplateKey,
|
|
66
66
|
_props$shopList = props.shopList,
|
|
67
67
|
shopList = _props$shopList === void 0 ? [] : _props$shopList,
|
|
@@ -80,7 +80,6 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
80
80
|
callbackAutoSubmitResult = props.callbackAutoSubmitResult,
|
|
81
81
|
_props$otherInfo = props.otherInfo,
|
|
82
82
|
otherInfo = _props$otherInfo === void 0 ? {} : _props$otherInfo;
|
|
83
|
-
var autoFillThirdPartyFields = otherInfo.autoFillThirdPartyFields;
|
|
84
83
|
var _useContext = useContext(Context),
|
|
85
84
|
dispatch = _useContext.dispatch;
|
|
86
85
|
var flowRecordList = useSelector(selectFlowRecordList);
|
|
@@ -1175,19 +1174,17 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1175
1174
|
};
|
|
1176
1175
|
useEffect(function () {
|
|
1177
1176
|
if (autoSubmit && !isEmpty(currentNodeDetail)) {
|
|
1178
|
-
var _currentNodeDetail$wo25;
|
|
1177
|
+
var _currentNodeDetail$wo25, _currentNodeDetail$wo26;
|
|
1179
1178
|
// SKX首节点满足下列条件、此时批量提交会等订单数据反填再提交, 其余企业批量提交还是原先逻辑,不涉及订单数据反填
|
|
1180
|
-
|
|
1181
|
-
var effectiveAutoFill = autoFillThirdPartyFields !== undefined ? autoFillThirdPartyFields : currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo25 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo25 === void 0 ? void 0 : _currentNodeDetail$wo25.notAutoFillWithFirstSubmit;
|
|
1182
|
-
if (effectiveAutoFill && autoSubmitFlag) {
|
|
1179
|
+
if (currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo25 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo25 !== void 0 && _currentNodeDetail$wo25.notAutoFillWithFirstSubmit && autoSubmitFlag) {
|
|
1183
1180
|
autoSubmitFn();
|
|
1184
|
-
} else if (!
|
|
1181
|
+
} else if (!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo26 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo26 !== void 0 && _currentNodeDetail$wo26.notAutoFillWithFirstSubmit) && !autoSubmitFlag) {
|
|
1185
1182
|
autoSubmitFn();
|
|
1186
1183
|
}
|
|
1187
1184
|
}
|
|
1188
|
-
}, [currentNodeDetail, autoSubmitFlag
|
|
1185
|
+
}, [currentNodeDetail, autoSubmitFlag]);
|
|
1189
1186
|
var isCurrentNodeHandler = useMemo(function () {
|
|
1190
|
-
var _currentNodeDetail$no17, _currentNodeDetail$no18, _currentNodeDetail$no19, _currentNodeDetail$no20, _currentNodeDetail$no21, _currentNodeDetail$no22, _currentNodeDetail$no23, _currentNodeDetail$no24, _currentNodeDetail$
|
|
1187
|
+
var _currentNodeDetail$no17, _currentNodeDetail$no18, _currentNodeDetail$no19, _currentNodeDetail$no20, _currentNodeDetail$no21, _currentNodeDetail$no22, _currentNodeDetail$no23, _currentNodeDetail$no24, _currentNodeDetail$wo27, _currentNodeDetail$no25, _currentNodeDetail$no26;
|
|
1191
1188
|
return currentUserHasOperatorAuth({
|
|
1192
1189
|
isSuperAdmin: isSuperAdmin,
|
|
1193
1190
|
assistantList: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no17 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no17 === void 0 ? void 0 : _currentNodeDetail$no17.id) && assistantMap[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no18 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no18 === void 0 ? void 0 : _currentNodeDetail$no18.id] || [],
|
|
@@ -1195,7 +1192,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1195
1192
|
currentUserKey: plat.userKey,
|
|
1196
1193
|
staffIds: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no21 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no21 === void 0 ? void 0 : (_currentNodeDetail$no22 = _currentNodeDetail$no21.assistants) === null || _currentNodeDetail$no22 === void 0 ? void 0 : _currentNodeDetail$no22.staffIds) || [],
|
|
1197
1194
|
operateDataPermission: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no23 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no23 === void 0 ? void 0 : (_currentNodeDetail$no24 = _currentNodeDetail$no23.assistants) === null || _currentNodeDetail$no24 === void 0 ? void 0 : _currentNodeDetail$no24.operateDataPermission,
|
|
1198
|
-
handlerList: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1195
|
+
handlerList: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo27 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo27 === void 0 ? void 0 : _currentNodeDetail$wo27.handlerList) || [],
|
|
1199
1196
|
isAllStaff: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no25 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no25 === void 0 ? void 0 : (_currentNodeDetail$no26 = _currentNodeDetail$no25.assistants) === null || _currentNodeDetail$no26 === void 0 ? void 0 : _currentNodeDetail$no26.isAllStaff
|
|
1200
1197
|
});
|
|
1201
1198
|
}, [currentNodeDetail, plat, assistantMap, useGroupMap]);
|
|
@@ -1204,9 +1201,9 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1204
1201
|
return item.accessToken === (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no27 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no27 === void 0 ? void 0 : (_currentNodeDetail$no28 = _currentNodeDetail$no27.relationEvent) === null || _currentNodeDetail$no28 === void 0 ? void 0 : _currentNodeDetail$no28.defaultShopUniqueKey);
|
|
1205
1202
|
})) === null || _shopList$find === void 0 ? void 0 : _shopList$find.shopId;
|
|
1206
1203
|
var ReportOrderRender = function ReportOrderRender(props) {
|
|
1207
|
-
var _currentNodeDetail$
|
|
1204
|
+
var _currentNodeDetail$wo28, _currentNodeDetail$wo29;
|
|
1208
1205
|
var details = props.details;
|
|
1209
|
-
var componentDtoList = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1206
|
+
var componentDtoList = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo28 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo28 === void 0 ? void 0 : _currentNodeDetail$wo28.componentDtoList.filter(function (t) {
|
|
1210
1207
|
return !CANNOT_BACK_FILL.includes(t.workOrderComponentType || '');
|
|
1211
1208
|
});
|
|
1212
1209
|
//获取可以返填的组件值
|
|
@@ -1214,7 +1211,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1214
1211
|
_calcWorkOrderList2 = _slicedToArray(_calcWorkOrderList, 1),
|
|
1215
1212
|
transData = _calcWorkOrderList2[0];
|
|
1216
1213
|
//获取表单显示值
|
|
1217
|
-
var _calcWorkOrderList3 = calcWorkOrderList([details], currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1214
|
+
var _calcWorkOrderList3 = calcWorkOrderList([details], currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo29 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo29 === void 0 ? void 0 : _currentNodeDetail$wo29.componentDtoList),
|
|
1218
1215
|
_calcWorkOrderList4 = _slicedToArray(_calcWorkOrderList3, 1),
|
|
1219
1216
|
transDataall = _calcWorkOrderList4[0];
|
|
1220
1217
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1395,14 +1392,14 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1395
1392
|
}, !follow ? '关注' : '已关注'), showImplementationEnter && /*#__PURE__*/React.createElement(Button, {
|
|
1396
1393
|
onClick: openFeedbackModal,
|
|
1397
1394
|
type: "link"
|
|
1398
|
-
}, "\u5FEB\u901F\u521B\u5EFA\u5B9E\u65BD\u5DE5\u5355"), plat.platform === PlatForm.XIAOZHI && ['2'].includes(String(otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.xzClientPlatformType)) && ((otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.buyerOpenUid) || (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1395
|
+
}, "\u5FEB\u901F\u521B\u5EFA\u5B9E\u65BD\u5DE5\u5355"), plat.platform === PlatForm.XIAOZHI && ['2'].includes(String(otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.xzClientPlatformType)) && ((otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.buyerOpenUid) || (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo30 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo30 === void 0 ? void 0 : _currentNodeDetail$wo30.buyerOpenUid)) && /*#__PURE__*/React.createElement(JumpBuyer, {
|
|
1399
1396
|
order_number: tid,
|
|
1400
1397
|
shop: (otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.taobaoNick) || '',
|
|
1401
|
-
buyer: (otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.buyerOpenUid) || (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1398
|
+
buyer: (otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.buyerOpenUid) || (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo31 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo31 === void 0 ? void 0 : _currentNodeDetail$wo31.buyerOpenUid),
|
|
1402
1399
|
platformType: otherInfo === null || otherInfo === void 0 ? void 0 : otherInfo.xzClientPlatformType
|
|
1403
|
-
})), /*#__PURE__*/React.createElement("div", null, (_JSON$parse = JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1400
|
+
})), /*#__PURE__*/React.createElement("div", null, (_JSON$parse = JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo32 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo32 === void 0 ? void 0 : (_currentNodeDetail$wo33 = _currentNodeDetail$wo32.jsonMap) === null || _currentNodeDetail$wo33 === void 0 ? void 0 : _currentNodeDetail$wo33.flowTags) || '[]')) !== null && _JSON$parse !== void 0 && _JSON$parse.includes('AI_BUILD') ? /*#__PURE__*/React.createElement(Tag, {
|
|
1404
1401
|
color: "blue"
|
|
1405
|
-
}, "AI\u81EA\u52A8\u5EFA\u5355-".concat(WORK_ORDER_STATUS_AI_BUILD[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1402
|
+
}, "AI\u81EA\u52A8\u5EFA\u5355-".concat(WORK_ORDER_STATUS_AI_BUILD[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo34 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo34 === void 0 ? void 0 : (_currentNodeDetail$wo35 = _currentNodeDetail$wo34.jsonMap) === null || _currentNodeDetail$wo35 === void 0 ? void 0 : _currentNodeDetail$wo35.flowStatus])) : null)), flowStatus && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
1406
1403
|
justify: 'space-between',
|
|
1407
1404
|
className: "header"
|
|
1408
1405
|
}, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1471,7 +1468,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1471
1468
|
isSuperAdmin: isSuperAdmin
|
|
1472
1469
|
}));
|
|
1473
1470
|
}), currentNodeDetail && /*#__PURE__*/React.createElement(Timeline.Item, {
|
|
1474
|
-
key: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1471
|
+
key: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo36 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo36 === void 0 ? void 0 : _currentNodeDetail$wo36.id) || 'current-node'
|
|
1475
1472
|
}, /*#__PURE__*/React.createElement(CurrentNode, {
|
|
1476
1473
|
ref: currentNodeRef,
|
|
1477
1474
|
flowTemplateId: flowTemplateId,
|
|
@@ -67,8 +67,32 @@ export declare const WORK_ORDER_STATUS_AI_BUILD: {
|
|
|
67
67
|
STOPPING: string;
|
|
68
68
|
COMPLETED: string;
|
|
69
69
|
};
|
|
70
|
-
export declare const SKIP_NODE_TYPES_CONFIG:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
70
|
+
export declare const SKIP_NODE_TYPES_CONFIG: {
|
|
71
|
+
GY_OBTAIN_REISSUE_OR_EXCHANGE_ORDER: {
|
|
72
|
+
name: string;
|
|
73
|
+
tips: string;
|
|
74
|
+
};
|
|
75
|
+
JST_REISSUE_WORK_ORDER: {
|
|
76
|
+
name: string;
|
|
77
|
+
tips: string;
|
|
78
|
+
};
|
|
79
|
+
KM_ERP_REISSUE_WORK_ORDER: {
|
|
80
|
+
name: string;
|
|
81
|
+
tips: string;
|
|
82
|
+
};
|
|
83
|
+
KM_ERP_EXCHANGE_WORK_ORDER: {
|
|
84
|
+
name: string;
|
|
85
|
+
tips: string;
|
|
86
|
+
};
|
|
87
|
+
JKY_REISSUE_WORK_ORDER: {
|
|
88
|
+
name: string;
|
|
89
|
+
tips: string;
|
|
90
|
+
};
|
|
91
|
+
REISSUE_LOGISTICS_SYNC: boolean;
|
|
92
|
+
BS_E3_REISSUE_LOGISTICS_SYNC: boolean;
|
|
93
|
+
WDT_LOGISTICS_SYNC: boolean;
|
|
94
|
+
GY_REISSUE_LOGISTICS_SYNC: boolean;
|
|
95
|
+
KUAI_MAI_REISSUE_LOGISTICS_SYNC: boolean;
|
|
96
|
+
JST_REISSUE_LOGISTICS_SYNC: boolean;
|
|
97
|
+
JY_REISSUE_LOGISTICS_SYNC: boolean;
|
|
98
|
+
};
|
|
@@ -90,41 +90,32 @@ export var WORK_ORDER_STATUS_AI_BUILD = (_WORK_ORDER_STATUS_AI = {}, _defineProp
|
|
|
90
90
|
|
|
91
91
|
//支持跳过的节点类型
|
|
92
92
|
export var SKIP_NODE_TYPES_CONFIG = {
|
|
93
|
-
GY_OBTAIN_REISSUE_OR_EXCHANGE_ORDER: {
|
|
93
|
+
'GY_OBTAIN_REISSUE_OR_EXCHANGE_ORDER': {
|
|
94
94
|
name: '获取补发/换货单id(管易退货单接口补发/换货)',
|
|
95
95
|
tips: '补发单id/换货单id'
|
|
96
96
|
},
|
|
97
|
-
JST_REISSUE_WORK_ORDER: {
|
|
97
|
+
'JST_REISSUE_WORK_ORDER': {
|
|
98
98
|
name: '补发(聚水潭)',
|
|
99
99
|
tips: '补发单id'
|
|
100
100
|
},
|
|
101
|
-
KM_ERP_REISSUE_WORK_ORDER: {
|
|
101
|
+
'KM_ERP_REISSUE_WORK_ORDER': {
|
|
102
102
|
name: '补发(快麦ERP)',
|
|
103
103
|
tips: '补发单id'
|
|
104
104
|
},
|
|
105
|
-
KM_ERP_EXCHANGE_WORK_ORDER: {
|
|
105
|
+
'KM_ERP_EXCHANGE_WORK_ORDER': {
|
|
106
106
|
name: '换货(快麦ERP)',
|
|
107
107
|
tips: '换货单id'
|
|
108
108
|
},
|
|
109
|
-
JKY_REISSUE_WORK_ORDER: {
|
|
109
|
+
'JKY_REISSUE_WORK_ORDER': {
|
|
110
110
|
name: '补发(聚客云)',
|
|
111
111
|
tips: '补发单id'
|
|
112
112
|
},
|
|
113
113
|
// 旺店通 系统订单号
|
|
114
|
-
REISSUE_LOGISTICS_SYNC: true,
|
|
115
|
-
BS_E3_REISSUE_LOGISTICS_SYNC: true,
|
|
116
|
-
WDT_LOGISTICS_SYNC: true,
|
|
117
|
-
GY_REISSUE_LOGISTICS_SYNC: true,
|
|
118
|
-
KUAI_MAI_REISSUE_LOGISTICS_SYNC: true,
|
|
119
|
-
JST_REISSUE_LOGISTICS_SYNC: true,
|
|
120
|
-
JY_REISSUE_LOGISTICS_SYNC: true
|
|
121
|
-
WDT_RETURN_EXCHANGE_WORK_ORDER: {
|
|
122
|
-
name: '退换货(旺店通)',
|
|
123
|
-
tips: '系统订单号',
|
|
124
|
-
validateFn: function validateFn(nodeInfo) {
|
|
125
|
-
var _nodeInfo$relationEve;
|
|
126
|
-
//只有换货的时候支持跳过
|
|
127
|
-
return ((_nodeInfo$relationEve = nodeInfo.relationEvent) === null || _nodeInfo$relationEve === void 0 ? void 0 : _nodeInfo$relationEve.type) === 3;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
114
|
+
'REISSUE_LOGISTICS_SYNC': true,
|
|
115
|
+
'BS_E3_REISSUE_LOGISTICS_SYNC': true,
|
|
116
|
+
'WDT_LOGISTICS_SYNC': true,
|
|
117
|
+
'GY_REISSUE_LOGISTICS_SYNC': true,
|
|
118
|
+
'KUAI_MAI_REISSUE_LOGISTICS_SYNC': true,
|
|
119
|
+
'JST_REISSUE_LOGISTICS_SYNC': true,
|
|
120
|
+
'JY_REISSUE_LOGISTICS_SYNC': true
|
|
130
121
|
};
|
|
@@ -478,13 +478,6 @@ export var SUBMIT_COMPONENT_SYSTEM_ORDER_MAP = {
|
|
|
478
478
|
ids: 'jkySystemSelectIds',
|
|
479
479
|
order: 'jkySystemShowOrder',
|
|
480
480
|
select: 'tradeNo'
|
|
481
|
-
},
|
|
482
|
-
PLATFORM_AFTER_SALES_ORDER: {
|
|
483
|
-
no: 'platformAfaterSalesOrderNo',
|
|
484
|
-
ids: 'platformAfaterSalesSelectIds',
|
|
485
|
-
order: 'platformAfaterSalesShowOrder',
|
|
486
|
-
select: 'platformAfaterSalesTradeNo',
|
|
487
|
-
shopId: 'platformAfaterSalesShopId'
|
|
488
481
|
}
|
|
489
482
|
};
|
|
490
483
|
export var platformMap = {
|
|
@@ -734,9 +734,6 @@ var handleSystemOrder = function handleSystemOrder(_ref51) {
|
|
|
734
734
|
select: (selectIds || []).includes(item === null || item === void 0 ? void 0 : item[SUBMIT_COMPONENT_SYSTEM_ORDER_MAP[type].select])
|
|
735
735
|
});
|
|
736
736
|
}));
|
|
737
|
-
if (SUBMIT_COMPONENT_SYSTEM_ORDER_MAP[type].shopId) {
|
|
738
|
-
addContent(SUBMIT_COMPONENT_SYSTEM_ORDER_MAP[type].shopId, getNowData("".concat(item.uniqueKey, ".shopId"), ''));
|
|
739
|
-
}
|
|
740
737
|
};
|
|
741
738
|
};
|
|
742
739
|
var handleBuyerMessageNotice = function handleBuyerMessageNotice(_ref52) {
|
|
@@ -1117,7 +1114,6 @@ var processComponent = function processComponent(_ref63) {
|
|
|
1117
1114
|
case 'JY_SYSTEM_ORDER':
|
|
1118
1115
|
case 'JKY_SYSTEM_ORDER':
|
|
1119
1116
|
case 'WDT_RETURN_BILL_NO':
|
|
1120
|
-
case 'PLATFORM_AFTER_SALES_ORDER':
|
|
1121
1117
|
wrapFn(handleSystemOrder);
|
|
1122
1118
|
break;
|
|
1123
1119
|
case 'BUYER_MESSAGE_NOTICE':
|
|
@@ -1131,7 +1127,6 @@ var processComponent = function processComponent(_ref63) {
|
|
|
1131
1127
|
break;
|
|
1132
1128
|
case 'REISSUE_TRADE_ID':
|
|
1133
1129
|
case 'EXCHANGE_TRADE_ID':
|
|
1134
|
-
case 'SWAP_OUT_TRADE_ID':
|
|
1135
1130
|
wrapFn(handleErpTradeId);
|
|
1136
1131
|
break;
|
|
1137
1132
|
case 'ERP_AFTER_SALE_TRADE_ID':
|
|
@@ -86,7 +86,6 @@ export declare const deleteCacheOrder: ({ templateList, values, nodeId, flowTemp
|
|
|
86
86
|
plat: any;
|
|
87
87
|
unDeleteOrderInfo: boolean;
|
|
88
88
|
}) => void;
|
|
89
|
-
export declare const afterSaleOrderBackValues: ({ templateList, value, form }: any) => void;
|
|
90
89
|
export declare const wdtReturnBillNoBackValues: ({ templateList, value, form }: any) => void;
|
|
91
90
|
export declare const bsSystemOrderBackValues: ({ templateList, value, form }: any) => void;
|
|
92
91
|
export declare const bsE3SystemOrderBackValues: ({ templateList, value, form }: any) => void;
|