@kmkf-fe-packages/kmkf-work-order-service-component 2.3.0-rc.0 → 2.3.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/FlowTemplateDetailV2/components/ActionList/index.d.ts +2 -0
- package/dist/esm/FlowTemplateDetailV2/components/ActionList/index.js +50 -8
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/index.js +348 -224
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/onBlur.d.ts +29 -3
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/onBlur.js +300 -50
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/skxOrderBack.d.ts +9 -0
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/skxOrderBack.js +161 -0
- package/dist/esm/FlowTemplateDetailV2/components/Header/index.js +5 -2
- package/dist/esm/FlowTemplateDetailV2/components/ShareLinkModal/index.d.ts +3 -0
- package/dist/esm/FlowTemplateDetailV2/components/ShareLinkModal/index.js +221 -0
- package/dist/esm/FlowTemplateDetailV2/components/ShareLinkModal/index.module.less +29 -0
- package/dist/esm/FlowTemplateDetailV2/constant.js +9 -1
- package/dist/esm/FlowTemplateDetailV2/index.js +110 -56
- package/dist/esm/FlowTemplateDetailV2/store/reducers.d.ts +10 -0
- package/dist/esm/FlowTemplateDetailV2/store/reducers.js +158 -54
- package/dist/esm/FlowTemplateDetailV2/store/selector.d.ts +4 -0
- package/dist/esm/FlowTemplateDetailV2/store/selector.js +12 -0
- package/dist/esm/FlowTemplateDetailV2/type.d.ts +1 -1
- package/dist/esm/WorkOrder/components/WorkOrderList/index.js +5 -1
- package/dist/esm/common/utils/constant.d.ts +3 -0
- package/dist/esm/common/utils/constant.js +13 -2
- package/dist/esm/common/utils/submitDataTransOldFormat.js +110 -67
- package/dist/esm/common/utils/tools.js +101 -51
- package/dist/esm/common/utils/tools_constants.js +12 -2
- package/dist/esm/common/utils/transformWorkOrderData.js +57 -19
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/model/flowTemplateDetail/api.d.ts +5 -0
- package/dist/esm/model/flowTemplateDetail/api.js +41 -0
- package/dist/esm/model/flowTemplateDetail/types.d.ts +5 -0
- package/dist/esm/model/logicFlow/selector.d.ts +0 -3
- package/dist/esm/model/paymentWorkOrder/selector.d.ts +0 -9
- package/dist/esm/model/servers/api.d.ts +1 -0
- package/dist/esm/model/servers/api.js +11 -3
- package/dist/esm/model/servers/request.js +1 -1
- package/dist/esm/model/singleShopWorkOrder/selector.d.ts +0 -5
- package/package.json +6 -5
|
@@ -43,9 +43,10 @@ import { jsonParseSecurity, findComponentUniqueKeyByType } from "../../../common
|
|
|
43
43
|
import { NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE } from "../../constant";
|
|
44
44
|
import { Context } from "../../context";
|
|
45
45
|
import { orderBackKmAddress } from "./constants";
|
|
46
|
-
import { onBlurExpressLogisticsCode, onBlurErpAfterSaleTradeId, onBlurSkxOutboundNoticeNo } from "./onBlur";
|
|
46
|
+
import { onBlurExpressLogisticsCode, onBlurErpAfterSaleTradeId, onBlurSkxOutboundNoticeNo, onBlurSkxReturnBillNo, onBlurSkxLogisticsCode, onBlurSkxReturnTHLogisticsCode } from "./onBlur";
|
|
47
47
|
import { findAllDependencies } from "./component-dependency-finder";
|
|
48
48
|
import { findValueDependencies } from "./value-mapping-finder";
|
|
49
|
+
import { skxOrderBack } from "./skxOrderBack";
|
|
49
50
|
// 记录显隐触发隐藏的组件。显示后,重新出发一遍映射规则
|
|
50
51
|
// TODO: 用useState会有bug, 不确定是哪里导致的
|
|
51
52
|
var hideByXYComponentsMap = {};
|
|
@@ -378,160 +379,232 @@ var FormRender = function FormRender(props, ref) {
|
|
|
378
379
|
setLabelList(jsonParseSecurity(record === null || record === void 0 ? void 0 : (_record$jsonMap = record.jsonMap) === null || _record$jsonMap === void 0 ? void 0 : _record$jsonMap["".concat(labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.uniqueKey, "_label")], []));
|
|
379
380
|
}
|
|
380
381
|
}, [labelComponent, record]);
|
|
381
|
-
var queryDetail = function
|
|
382
|
-
var
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
shopId: shopId,
|
|
432
|
-
shopName: newRecord.shopName,
|
|
433
|
-
submitter: newRecord.submitter,
|
|
434
|
-
created: newRecord.created,
|
|
435
|
-
processTime: newRecord.processTime
|
|
436
|
-
}));
|
|
437
|
-
var initialValues = get(transData, '0', {});
|
|
438
|
-
newRecord.preCreateAndNotModified && batchFillByMapping(initialValues);
|
|
439
|
-
orderBackReplace(transData, templateDetail);
|
|
440
|
-
// TODO: 非开始节点录入,都会有workOrderId,这里判断是否有前置组件含有订单号;如果存在订单号,进行订单反填。
|
|
441
|
-
var tradeIdUniqueKey = findComponentUniqueKeyByType(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.preNodeComponentDtoList, 'TRADE_ID_INPUT');
|
|
442
|
-
if (tradeIdUniqueKey && shopId && record !== null && record !== void 0 && (_record$jsonMap2 = record.jsonMap) !== null && _record$jsonMap2 !== void 0 && _record$jsonMap2["".concat(tradeIdUniqueKey, "_tradeId")] && firstOrderBackfill) {
|
|
443
|
-
var _record$jsonMap3, _record$jsonMap4, _record$jsonMap5;
|
|
444
|
-
orderBack({
|
|
445
|
-
order_no: record === null || record === void 0 ? void 0 : (_record$jsonMap3 = record.jsonMap) === null || _record$jsonMap3 === void 0 ? void 0 : _record$jsonMap3["".concat(tradeIdUniqueKey, "_tradeId")],
|
|
446
|
-
form: form,
|
|
447
|
-
shopId: shopId,
|
|
448
|
-
shopList: shopList,
|
|
449
|
-
templateDetail: templateDetail,
|
|
450
|
-
callback: orderBackReplace,
|
|
451
|
-
fromQNCreateWorkOrderByOrderNo: fromQNCreateWorkOrderByOrderNo,
|
|
452
|
-
plat: plat,
|
|
453
|
-
callKey: 1,
|
|
454
|
-
setLoading: setLoading
|
|
455
|
-
});
|
|
456
|
-
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);
|
|
457
|
-
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);
|
|
458
|
-
} else {
|
|
459
|
-
// 如果没有订单反填,则单独更新remark
|
|
460
|
-
fetchRemark(shopId, currentNodeTid);
|
|
461
|
-
}
|
|
462
|
-
} else {
|
|
463
|
-
fillByShopId(shopId);
|
|
464
|
-
var initFormValues = null;
|
|
465
|
-
if (plat !== null && plat !== void 0 && plat.subOrderNo) {
|
|
466
|
-
var _getCacheInfo = JSON.parse(sessionStorage.getItem('cacheOmsOrderInfo') || '{}');
|
|
467
|
-
if (plat !== null && plat !== void 0 && plat.subOrderNo && plat.buyerId) {
|
|
468
|
-
var _getCacheInfo2;
|
|
469
|
-
initFormValues = (_getCacheInfo2 = _getCacheInfo["".concat(templateDetail.flowTemplateConfig.flowTemplateId, "-").concat(plat.buyerId)]) === null || _getCacheInfo2 === void 0 ? void 0 : _getCacheInfo2[plat === null || plat === void 0 ? void 0 : plat.subOrderNo];
|
|
470
|
-
}
|
|
471
|
-
} else {
|
|
472
|
-
var _getCacheInfo3 = JSON.parse(sessionStorage.getItem('cacheOrderInfo') || '{}');
|
|
473
|
-
if (orderNo && plat.buyerId) {
|
|
474
|
-
var _getCacheInfo4;
|
|
475
|
-
initFormValues = (_getCacheInfo4 = _getCacheInfo3["".concat(templateDetail.flowTemplateConfig.flowTemplateId, "-").concat(plat.buyerId)]) === null || _getCacheInfo4 === void 0 ? void 0 : _getCacheInfo4[orderNo];
|
|
476
|
-
} else if (!orderNo && plat.buyerId) {
|
|
477
|
-
initFormValues = Object.values(_getCacheInfo3["".concat(templateDetail.flowTemplateConfig.flowTemplateId, "-").concat(plat.buyerId)] || {})[0];
|
|
478
|
-
}
|
|
479
|
-
}
|
|
382
|
+
var queryDetail = /*#__PURE__*/function () {
|
|
383
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
|
|
384
|
+
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;
|
|
385
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
386
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
387
|
+
case 0:
|
|
388
|
+
workOrderId = _ref2.workOrderId, shopId = _ref2.shopId, shopList = _ref2.shopList, record = _ref2.record, orderNo = _ref2.orderNo, buyerId = _ref2.buyerId, buyerNick = _ref2.buyerNick;
|
|
389
|
+
if (!isOrderBackShopId) {
|
|
390
|
+
_context2.next = 4;
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
setIsOrderBackShopId(false);
|
|
394
|
+
return _context2.abrupt("return");
|
|
395
|
+
case 4:
|
|
396
|
+
form.resetFields();
|
|
397
|
+
//获取一些默认数据
|
|
398
|
+
jsonMap = templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList.reduce(function (prv, next) {
|
|
399
|
+
if (next.workOrderComponentType === 'TRADE_ID_INPUT') {
|
|
400
|
+
prv["".concat(next.uniqueKey, "_tradeId")] = orderNo;
|
|
401
|
+
}
|
|
402
|
+
if (next.workOrderComponentType === 'BUYER_NICK_INPUT') {
|
|
403
|
+
prv["".concat(next.uniqueKey, "_buyerOpenUid")] = buyerId;
|
|
404
|
+
prv["".concat(next.uniqueKey, "_buyerNick")] = buyerNick;
|
|
405
|
+
}
|
|
406
|
+
if (next.workOrderComponentType === 'ENTERPRISE_PAYMENT') {
|
|
407
|
+
prv["".concat(next.uniqueKey, "_enterprisePaymentTid")] = orderNo || '';
|
|
408
|
+
prv["".concat(next.uniqueKey, "_enterprisePaymentBuyerOpenUid")] = buyerId;
|
|
409
|
+
prv["".concat(next.uniqueKey, "_enterprisePaymentBuyerNick")] = buyerNick;
|
|
410
|
+
}
|
|
411
|
+
return prv;
|
|
412
|
+
}, {});
|
|
413
|
+
if (!workOrderId) {
|
|
414
|
+
_context2.next = 43;
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
// 先初始化端上内容
|
|
418
|
+
newRecord = cloneDeep(record);
|
|
419
|
+
jsonMapOrderId = Object.keys(newRecord.jsonMap).reduce(function (prv, next) {
|
|
420
|
+
var arrText = next.split('_');
|
|
421
|
+
if (arrText[arrText.length - 1] === 'tradeId') {
|
|
422
|
+
prv = newRecord.jsonMap[next];
|
|
423
|
+
}
|
|
424
|
+
return prv;
|
|
425
|
+
}, ''); //获取保存时的订单缓存数据,解决用户显隐组件不展示二次编辑没有订单信息的问题
|
|
426
|
+
getCacheInfo = JSON.parse(sessionStorage.getItem('cacheOrderInfo') || '{}');
|
|
427
|
+
newFormValues = _objectSpread({}, getCacheInfo[jsonMapOrderId] || {});
|
|
428
|
+
newFormValues = reversalFormValues(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList, newFormValues);
|
|
429
|
+
newRecord.jsonMap = _objectSpread(_objectSpread(_objectSpread({}, newFormValues), jsonMap), newRecord.jsonMap);
|
|
430
|
+
transData = calcWorkOrderList([newRecord], [].concat(_toConsumableArray((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.preNodeComponentDtoList) || []), _toConsumableArray((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || [])), newRecord.preCreateAndNotModified ? 'init' : 'edit' // TODO: 修复非首节点录入时丢失初始值问题
|
|
431
|
+
); // console.log(newRecord.jsonMap, newFormValues, transData);
|
|
480
432
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
433
|
+
form.setFieldsValue(_objectSpread(_objectSpread({}, get(transData, '0', {})), {}, {
|
|
434
|
+
shopId: shopId,
|
|
435
|
+
shopName: newRecord.shopName,
|
|
436
|
+
submitter: newRecord.submitter,
|
|
437
|
+
created: newRecord.created,
|
|
438
|
+
processTime: newRecord.processTime
|
|
439
|
+
}));
|
|
440
|
+
initialValues = get(transData, '0', {});
|
|
441
|
+
newRecord.preCreateAndNotModified && batchFillByMapping(initialValues);
|
|
442
|
+
orderBackReplace(transData, templateDetail);
|
|
443
|
+
// TODO: 非开始节点录入,都会有workOrderId,这里判断是否有前置组件含有订单号;如果存在订单号,进行订单反填。
|
|
444
|
+
tradeIdUniqueKey = findComponentUniqueKeyByType(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.preNodeComponentDtoList, 'TRADE_ID_INPUT');
|
|
445
|
+
if (!newRecord.notAutoFillWithFirstSubmit) {
|
|
446
|
+
_context2.next = 33;
|
|
447
|
+
break;
|
|
448
|
+
}
|
|
449
|
+
currentNodeTradeIdUniqueKey = findComponentUniqueKeyByType(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList, 'TRADE_ID_INPUT');
|
|
450
|
+
_currentNodeTid = record === null || record === void 0 ? void 0 : (_record$jsonMap2 = record.jsonMap) === null || _record$jsonMap2 === void 0 ? void 0 : _record$jsonMap2["".concat(currentNodeTradeIdUniqueKey, "_tradeId")];
|
|
451
|
+
if (!_currentNodeTid) {
|
|
452
|
+
_context2.next = 29;
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
queryLabels(_currentNodeTid, shopId);
|
|
456
|
+
queryMemberLevels(_currentNodeTid, shopId);
|
|
457
|
+
_context2.next = 27;
|
|
458
|
+
return orderBack({
|
|
459
|
+
order_no: _currentNodeTid,
|
|
460
|
+
form: form,
|
|
461
|
+
shopId: shopId,
|
|
462
|
+
shopList: shopList,
|
|
463
|
+
templateDetail: templateDetail,
|
|
464
|
+
callback: orderBackReplace,
|
|
465
|
+
fromQNCreateWorkOrderByOrderNo: fromQNCreateWorkOrderByOrderNo,
|
|
466
|
+
plat: plat,
|
|
467
|
+
callKey: 1,
|
|
468
|
+
setLoading: setLoading
|
|
469
|
+
});
|
|
470
|
+
case 27:
|
|
471
|
+
_context2.next = 31;
|
|
472
|
+
break;
|
|
473
|
+
case 29:
|
|
474
|
+
_context2.next = 31;
|
|
475
|
+
return skxOrderBack({
|
|
476
|
+
form: form,
|
|
477
|
+
companyKey: companyKey,
|
|
478
|
+
templateDetail: templateDetail,
|
|
479
|
+
componentOnBlur: componentOnBlur,
|
|
480
|
+
jsonMap: record === null || record === void 0 ? void 0 : record.jsonMap
|
|
481
|
+
});
|
|
482
|
+
case 31:
|
|
483
|
+
_context2.next = 41;
|
|
484
|
+
break;
|
|
485
|
+
case 33:
|
|
486
|
+
if (!(tradeIdUniqueKey && shopId && record !== null && record !== void 0 && (_record$jsonMap3 = record.jsonMap) !== null && _record$jsonMap3 !== void 0 && _record$jsonMap3["".concat(tradeIdUniqueKey, "_tradeId")] && firstOrderBackfill)) {
|
|
487
|
+
_context2.next = 40;
|
|
488
|
+
break;
|
|
489
|
+
}
|
|
490
|
+
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);
|
|
491
|
+
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);
|
|
492
|
+
_context2.next = 38;
|
|
493
|
+
return orderBack({
|
|
494
|
+
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")],
|
|
495
|
+
form: form,
|
|
496
|
+
shopId: shopId,
|
|
497
|
+
shopList: shopList,
|
|
498
|
+
templateDetail: templateDetail,
|
|
499
|
+
callback: orderBackReplace,
|
|
500
|
+
fromQNCreateWorkOrderByOrderNo: fromQNCreateWorkOrderByOrderNo,
|
|
501
|
+
plat: plat,
|
|
502
|
+
callKey: 1,
|
|
503
|
+
setLoading: setLoading
|
|
504
|
+
});
|
|
505
|
+
case 38:
|
|
506
|
+
_context2.next = 41;
|
|
507
|
+
break;
|
|
508
|
+
case 40:
|
|
509
|
+
// 如果没有订单反填,则单独更新remark
|
|
510
|
+
fetchRemark(shopId, currentNodeTid);
|
|
511
|
+
case 41:
|
|
512
|
+
_context2.next = 66;
|
|
513
|
+
break;
|
|
514
|
+
case 43:
|
|
515
|
+
fillByShopId(shopId);
|
|
516
|
+
initFormValues = null;
|
|
517
|
+
if (plat !== null && plat !== void 0 && plat.subOrderNo) {
|
|
518
|
+
_getCacheInfo = JSON.parse(sessionStorage.getItem('cacheOmsOrderInfo') || '{}');
|
|
519
|
+
if (plat !== null && plat !== void 0 && plat.subOrderNo && plat.buyerId) {
|
|
520
|
+
initFormValues = (_getCacheInfo2 = _getCacheInfo["".concat(templateDetail.flowTemplateConfig.flowTemplateId, "-").concat(plat.buyerId)]) === null || _getCacheInfo2 === void 0 ? void 0 : _getCacheInfo2[plat === null || plat === void 0 ? void 0 : plat.subOrderNo];
|
|
521
|
+
}
|
|
522
|
+
} else {
|
|
523
|
+
_getCacheInfo3 = JSON.parse(sessionStorage.getItem('cacheOrderInfo') || '{}');
|
|
524
|
+
if (orderNo && plat.buyerId) {
|
|
525
|
+
initFormValues = (_getCacheInfo4 = _getCacheInfo3["".concat(templateDetail.flowTemplateConfig.flowTemplateId, "-").concat(plat.buyerId)]) === null || _getCacheInfo4 === void 0 ? void 0 : _getCacheInfo4[orderNo];
|
|
526
|
+
} else if (!orderNo && plat.buyerId) {
|
|
527
|
+
initFormValues = Object.values(_getCacheInfo3["".concat(templateDetail.flowTemplateConfig.flowTemplateId, "-").concat(plat.buyerId)] || {})[0];
|
|
528
|
+
}
|
|
529
|
+
}
|
|
508
530
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
//
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
531
|
+
// console.log(orderNo, initFormValues);
|
|
532
|
+
if (!initFormValues) {
|
|
533
|
+
_context2.next = 54;
|
|
534
|
+
break;
|
|
535
|
+
}
|
|
536
|
+
form.setFieldsValue(_objectSpread(_objectSpread({}, initFormValues), {}, {
|
|
537
|
+
shopId: shopId
|
|
538
|
+
}));
|
|
539
|
+
// 没有触发订单反填的情况下,更新备注,
|
|
540
|
+
// PS: orderNo 和 shopId 可能需要从initFormValues中获取
|
|
541
|
+
_orderNo = orderNo;
|
|
542
|
+
_shopId = shopId || initFormValues['shopId'];
|
|
543
|
+
if (!_orderNo) {
|
|
544
|
+
orderNoField = ((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []).find(function (item) {
|
|
545
|
+
return (item === null || item === void 0 ? void 0 : item.workOrderComponentType) === 'TRADE_ID_INPUT';
|
|
546
|
+
});
|
|
547
|
+
_orderNo = orderNoField !== null && orderNoField !== void 0 && orderNoField.uniqueKey ? initFormValues[orderNoField === null || orderNoField === void 0 ? void 0 : orderNoField.uniqueKey] || _orderNo : _orderNo;
|
|
548
|
+
}
|
|
549
|
+
fetchRemark(_shopId, _orderNo);
|
|
550
|
+
_context2.next = 66;
|
|
551
|
+
break;
|
|
552
|
+
case 54:
|
|
553
|
+
_transData = calcWorkOrderList([{
|
|
554
|
+
jsonMap: jsonMap
|
|
555
|
+
}], [].concat(_toConsumableArray((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.preNodeComponentDtoList) || []), _toConsumableArray((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || [])), 'init');
|
|
556
|
+
_initialValues = get(_transData, '0', {});
|
|
557
|
+
form.setFieldsValue(_objectSpread(_objectSpread({}, _initialValues), {}, {
|
|
558
|
+
shopId: shopId
|
|
559
|
+
}));
|
|
560
|
+
// 默认值触发映射
|
|
561
|
+
batchFillByMapping(_initialValues);
|
|
562
|
+
//如果有订单号 订单返填 通过订单号入口进行工单录入,需要将订单数据反填到工单
|
|
563
|
+
if (!(orderNo && shopId)) {
|
|
564
|
+
_context2.next = 65;
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
queryLabels(orderNo, shopId);
|
|
568
|
+
queryMemberLevels(orderNo, shopId);
|
|
569
|
+
_context2.next = 63;
|
|
570
|
+
return orderBack({
|
|
571
|
+
order_no: orderNo,
|
|
572
|
+
form: form,
|
|
573
|
+
shopId: shopId,
|
|
574
|
+
shopList: shopList,
|
|
575
|
+
templateDetail: templateDetail,
|
|
576
|
+
callback: orderBackReplace,
|
|
577
|
+
fromQNCreateWorkOrderByOrderNo: fromQNCreateWorkOrderByOrderNo,
|
|
578
|
+
// TODO: 只有在千牛端通过订单号录入工单的时候,订单备注不需要反填
|
|
579
|
+
plat: plat,
|
|
580
|
+
callKey: 2,
|
|
581
|
+
setLoading: setLoading
|
|
582
|
+
});
|
|
583
|
+
case 63:
|
|
584
|
+
_context2.next = 66;
|
|
585
|
+
break;
|
|
586
|
+
case 65:
|
|
587
|
+
// 如果没有订单反填,则单独更新remark
|
|
588
|
+
fetchRemark(shopId, currentNodeTid);
|
|
589
|
+
case 66:
|
|
590
|
+
antFormEl = document.getElementsByClassName('ant-form');
|
|
591
|
+
(antFormEl === null || antFormEl === void 0 ? void 0 : antFormEl.length) > 0 && set(antFormEl, '0.scrollTop', 0);
|
|
592
|
+
resetMappingHideComponents();
|
|
593
|
+
// TODO: 临时方案,解决批量提交时未带入订单反填数据
|
|
594
|
+
dispatch({
|
|
595
|
+
type: 'setaAutoSubmitFlag',
|
|
596
|
+
payload: true
|
|
597
|
+
});
|
|
598
|
+
case 70:
|
|
599
|
+
case "end":
|
|
600
|
+
return _context2.stop();
|
|
528
601
|
}
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
};
|
|
602
|
+
}, _callee2);
|
|
603
|
+
}));
|
|
604
|
+
return function queryDetail(_x4) {
|
|
605
|
+
return _ref3.apply(this, arguments);
|
|
606
|
+
};
|
|
607
|
+
}();
|
|
535
608
|
useEffect(function () {
|
|
536
609
|
if (isErpUse) return;
|
|
537
610
|
queryDetail({
|
|
@@ -631,26 +704,26 @@ var FormRender = function FormRender(props, ref) {
|
|
|
631
704
|
|
|
632
705
|
// 查询标签
|
|
633
706
|
var queryLabels = /*#__PURE__*/function () {
|
|
634
|
-
var
|
|
707
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(tid, shopId) {
|
|
635
708
|
var oldLabelList, _yield$queryLabelByTr, _yield$queryLabelByTr2, data;
|
|
636
|
-
return _regeneratorRuntime().wrap(function
|
|
637
|
-
while (1) switch (
|
|
709
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
710
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
638
711
|
case 0:
|
|
639
712
|
if (!isNull(labelComponent)) {
|
|
640
|
-
|
|
713
|
+
_context3.next = 2;
|
|
641
714
|
break;
|
|
642
715
|
}
|
|
643
|
-
return
|
|
716
|
+
return _context3.abrupt("return", console.debug('当前节点不需要查询标签'));
|
|
644
717
|
case 2:
|
|
645
718
|
if (shopId) {
|
|
646
|
-
|
|
719
|
+
_context3.next = 4;
|
|
647
720
|
break;
|
|
648
721
|
}
|
|
649
|
-
return
|
|
722
|
+
return _context3.abrupt("return", console.debug('查询标签缺少必要参数-shopId'));
|
|
650
723
|
case 4:
|
|
651
724
|
oldLabelList = form.getFieldValue("".concat(labelComponent.uniqueKey));
|
|
652
725
|
if (tid) {
|
|
653
|
-
|
|
726
|
+
_context3.next = 9;
|
|
654
727
|
break;
|
|
655
728
|
}
|
|
656
729
|
setLabelList(function (list) {
|
|
@@ -660,15 +733,15 @@ var FormRender = function FormRender(props, ref) {
|
|
|
660
733
|
if (oldLabelList.length !== 0) {
|
|
661
734
|
form.setFieldsValue(_defineProperty({}, "".concat(labelComponent.uniqueKey), []));
|
|
662
735
|
}
|
|
663
|
-
return
|
|
736
|
+
return _context3.abrupt("return", console.debug('查询标签缺少必要参数-tradeId'));
|
|
664
737
|
case 9:
|
|
665
|
-
|
|
738
|
+
_context3.next = 11;
|
|
666
739
|
return queryLabelByTradeId({
|
|
667
740
|
tid: tid,
|
|
668
741
|
shopId: shopId
|
|
669
742
|
});
|
|
670
743
|
case 11:
|
|
671
|
-
_yield$queryLabelByTr =
|
|
744
|
+
_yield$queryLabelByTr = _context3.sent;
|
|
672
745
|
_yield$queryLabelByTr2 = _yield$queryLabelByTr.data;
|
|
673
746
|
data = _yield$queryLabelByTr2 === void 0 ? [] : _yield$queryLabelByTr2;
|
|
674
747
|
setLabelList(function (list) {
|
|
@@ -680,50 +753,50 @@ var FormRender = function FormRender(props, ref) {
|
|
|
680
753
|
}
|
|
681
754
|
case 16:
|
|
682
755
|
case "end":
|
|
683
|
-
return
|
|
756
|
+
return _context3.stop();
|
|
684
757
|
}
|
|
685
|
-
},
|
|
758
|
+
}, _callee3);
|
|
686
759
|
}));
|
|
687
|
-
return function queryLabels(
|
|
688
|
-
return
|
|
760
|
+
return function queryLabels(_x5, _x6) {
|
|
761
|
+
return _ref4.apply(this, arguments);
|
|
689
762
|
};
|
|
690
763
|
}();
|
|
691
764
|
// 查询会员等级
|
|
692
765
|
var queryMemberLevels = /*#__PURE__*/function () {
|
|
693
|
-
var
|
|
766
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(tid, shopId) {
|
|
694
767
|
var oldMemberLevel, _yield$queryMemberLev, _yield$queryMemberLev2, data;
|
|
695
|
-
return _regeneratorRuntime().wrap(function
|
|
696
|
-
while (1) switch (
|
|
768
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
769
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
697
770
|
case 0:
|
|
698
771
|
if (!isNull(memberLevelComponent)) {
|
|
699
|
-
|
|
772
|
+
_context4.next = 2;
|
|
700
773
|
break;
|
|
701
774
|
}
|
|
702
|
-
return
|
|
775
|
+
return _context4.abrupt("return", console.debug('当前节点不需要查询会员等级'));
|
|
703
776
|
case 2:
|
|
704
777
|
if (shopId) {
|
|
705
|
-
|
|
778
|
+
_context4.next = 4;
|
|
706
779
|
break;
|
|
707
780
|
}
|
|
708
|
-
return
|
|
781
|
+
return _context4.abrupt("return", console.debug('查询标签缺少必要参数-shopId'));
|
|
709
782
|
case 4:
|
|
710
783
|
oldMemberLevel = form.getFieldValue("".concat(labelComponent.uniqueKey));
|
|
711
784
|
if (tid) {
|
|
712
|
-
|
|
785
|
+
_context4.next = 8;
|
|
713
786
|
break;
|
|
714
787
|
}
|
|
715
788
|
if (oldMemberLevel.length !== 0) {
|
|
716
789
|
form.setFieldsValue(_defineProperty({}, "".concat(labelComponent.uniqueKey), []));
|
|
717
790
|
}
|
|
718
|
-
return
|
|
791
|
+
return _context4.abrupt("return", console.debug('查询标签缺少必要参数-tradeId'));
|
|
719
792
|
case 8:
|
|
720
|
-
|
|
793
|
+
_context4.next = 10;
|
|
721
794
|
return queryMemberLevel({
|
|
722
795
|
tid: tid,
|
|
723
796
|
shopId: shopId
|
|
724
797
|
});
|
|
725
798
|
case 10:
|
|
726
|
-
_yield$queryMemberLev =
|
|
799
|
+
_yield$queryMemberLev = _context4.sent;
|
|
727
800
|
_yield$queryMemberLev2 = _yield$queryMemberLev.data;
|
|
728
801
|
data = _yield$queryMemberLev2 === void 0 ? [] : _yield$queryMemberLev2;
|
|
729
802
|
if (!isEqual(oldMemberLevel, data)) {
|
|
@@ -731,31 +804,31 @@ var FormRender = function FormRender(props, ref) {
|
|
|
731
804
|
}
|
|
732
805
|
case 14:
|
|
733
806
|
case "end":
|
|
734
|
-
return
|
|
807
|
+
return _context4.stop();
|
|
735
808
|
}
|
|
736
|
-
},
|
|
809
|
+
}, _callee4);
|
|
737
810
|
}));
|
|
738
|
-
return function queryMemberLevels(
|
|
739
|
-
return
|
|
811
|
+
return function queryMemberLevels(_x7, _x8) {
|
|
812
|
+
return _ref5.apply(this, arguments);
|
|
740
813
|
};
|
|
741
814
|
}();
|
|
742
815
|
|
|
743
816
|
//订单返填
|
|
744
817
|
var changeHandle = /*#__PURE__*/function () {
|
|
745
|
-
var
|
|
746
|
-
return _regeneratorRuntime().wrap(function
|
|
747
|
-
while (1) switch (
|
|
818
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(order_no) {
|
|
819
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
820
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
748
821
|
case 0:
|
|
749
822
|
if (order_no) {
|
|
750
|
-
|
|
823
|
+
_context5.next = 2;
|
|
751
824
|
break;
|
|
752
825
|
}
|
|
753
|
-
return
|
|
826
|
+
return _context5.abrupt("return");
|
|
754
827
|
case 2:
|
|
755
828
|
// console.log('[订单返填 changeHandle order_no ] >', order_no);
|
|
756
829
|
|
|
757
830
|
sessionStorage.setItem('order_no_test', order_no);
|
|
758
|
-
|
|
831
|
+
_context5.next = 5;
|
|
759
832
|
return orderBack({
|
|
760
833
|
order_no: order_no,
|
|
761
834
|
form: form,
|
|
@@ -778,12 +851,12 @@ var FormRender = function FormRender(props, ref) {
|
|
|
778
851
|
});
|
|
779
852
|
case 5:
|
|
780
853
|
case "end":
|
|
781
|
-
return
|
|
854
|
+
return _context5.stop();
|
|
782
855
|
}
|
|
783
|
-
},
|
|
856
|
+
}, _callee5);
|
|
784
857
|
}));
|
|
785
|
-
return function changeHandle(
|
|
786
|
-
return
|
|
858
|
+
return function changeHandle(_x9) {
|
|
859
|
+
return _ref6.apply(this, arguments);
|
|
787
860
|
};
|
|
788
861
|
}();
|
|
789
862
|
// 组件值变化
|
|
@@ -864,16 +937,16 @@ var FormRender = function FormRender(props, ref) {
|
|
|
864
937
|
|
|
865
938
|
//组件失焦事件
|
|
866
939
|
var componentOnBlur = /*#__PURE__*/function () {
|
|
867
|
-
var
|
|
940
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(value, type) {
|
|
868
941
|
var promises;
|
|
869
|
-
return _regeneratorRuntime().wrap(function
|
|
870
|
-
while (1) switch (
|
|
942
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
943
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
871
944
|
case 0:
|
|
872
945
|
if (!(type === 'erpAfterSaleTradeId')) {
|
|
873
|
-
|
|
946
|
+
_context6.next = 5;
|
|
874
947
|
break;
|
|
875
948
|
}
|
|
876
|
-
|
|
949
|
+
_context6.next = 3;
|
|
877
950
|
return onBlurErpAfterSaleTradeId({
|
|
878
951
|
form: form,
|
|
879
952
|
value: value,
|
|
@@ -881,14 +954,14 @@ var FormRender = function FormRender(props, ref) {
|
|
|
881
954
|
setKmLoading: setKmLoading
|
|
882
955
|
});
|
|
883
956
|
case 3:
|
|
884
|
-
|
|
957
|
+
_context6.next = 41;
|
|
885
958
|
break;
|
|
886
959
|
case 5:
|
|
887
960
|
if (!(type === 'expressLogisticsCode')) {
|
|
888
|
-
|
|
961
|
+
_context6.next = 13;
|
|
889
962
|
break;
|
|
890
963
|
}
|
|
891
|
-
|
|
964
|
+
_context6.next = 8;
|
|
892
965
|
return onBlurExpressLogisticsCode({
|
|
893
966
|
form: form,
|
|
894
967
|
value: value,
|
|
@@ -897,26 +970,68 @@ var FormRender = function FormRender(props, ref) {
|
|
|
897
970
|
componentOnBlur: componentOnBlur
|
|
898
971
|
});
|
|
899
972
|
case 8:
|
|
900
|
-
|
|
973
|
+
if (!['TR3E2FYXFZCFANVG6O6AALSM', 'SZF4ZGWZSNW6PYXMCIFEWBXT'].includes(companyKey)) {
|
|
974
|
+
_context6.next = 11;
|
|
975
|
+
break;
|
|
976
|
+
}
|
|
977
|
+
_context6.next = 11;
|
|
978
|
+
return onBlurSkxLogisticsCode({
|
|
979
|
+
form: form,
|
|
980
|
+
value: value,
|
|
981
|
+
templateDetail: templateDetail,
|
|
982
|
+
componentOnBlur: componentOnBlur
|
|
983
|
+
});
|
|
984
|
+
case 11:
|
|
985
|
+
_context6.next = 41;
|
|
901
986
|
break;
|
|
902
|
-
case
|
|
987
|
+
case 13:
|
|
903
988
|
if (!(type === 'skxOutboundNoticeNo')) {
|
|
904
|
-
|
|
989
|
+
_context6.next = 19;
|
|
905
990
|
break;
|
|
906
991
|
}
|
|
907
992
|
//[SKX]ON出库通知单号 返填
|
|
908
993
|
console.log('skxOutboundNoticeNo', value);
|
|
909
|
-
|
|
994
|
+
_context6.next = 17;
|
|
910
995
|
return onBlurSkxOutboundNoticeNo({
|
|
911
996
|
form: form,
|
|
912
997
|
value: value,
|
|
913
998
|
templateDetail: templateDetail,
|
|
914
999
|
componentOnBlur: componentOnBlur
|
|
915
1000
|
});
|
|
916
|
-
case
|
|
917
|
-
|
|
1001
|
+
case 17:
|
|
1002
|
+
_context6.next = 41;
|
|
918
1003
|
break;
|
|
919
|
-
case
|
|
1004
|
+
case 19:
|
|
1005
|
+
if (!(type === 'skxReturnBillNo')) {
|
|
1006
|
+
_context6.next = 24;
|
|
1007
|
+
break;
|
|
1008
|
+
}
|
|
1009
|
+
_context6.next = 22;
|
|
1010
|
+
return onBlurSkxReturnBillNo({
|
|
1011
|
+
form: form,
|
|
1012
|
+
value: value,
|
|
1013
|
+
templateDetail: templateDetail,
|
|
1014
|
+
componentOnBlur: componentOnBlur
|
|
1015
|
+
});
|
|
1016
|
+
case 22:
|
|
1017
|
+
_context6.next = 41;
|
|
1018
|
+
break;
|
|
1019
|
+
case 24:
|
|
1020
|
+
if (!(type === 'skxReturnTHLogisticsCode')) {
|
|
1021
|
+
_context6.next = 29;
|
|
1022
|
+
break;
|
|
1023
|
+
}
|
|
1024
|
+
_context6.next = 27;
|
|
1025
|
+
return onBlurSkxReturnTHLogisticsCode({
|
|
1026
|
+
form: form,
|
|
1027
|
+
value: value,
|
|
1028
|
+
templateDetail: templateDetail,
|
|
1029
|
+
componentOnBlur: componentOnBlur
|
|
1030
|
+
});
|
|
1031
|
+
case 27:
|
|
1032
|
+
_context6.next = 41;
|
|
1033
|
+
break;
|
|
1034
|
+
case 29:
|
|
920
1035
|
// 收集所有需要执行的异步操作
|
|
921
1036
|
promises = [];
|
|
922
1037
|
if (type === 'tradeId') {
|
|
@@ -928,7 +1043,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
928
1043
|
promises.push(handleChangeTradeId(value));
|
|
929
1044
|
}
|
|
930
1045
|
if (value) {
|
|
931
|
-
|
|
1046
|
+
_context6.next = 36;
|
|
932
1047
|
break;
|
|
933
1048
|
}
|
|
934
1049
|
setReplaceValue(function (prev) {
|
|
@@ -938,26 +1053,26 @@ var FormRender = function FormRender(props, ref) {
|
|
|
938
1053
|
return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, type, 0));
|
|
939
1054
|
});
|
|
940
1055
|
replaceValueRef.current = _objectSpread(_objectSpread({}, replaceValue), {}, _defineProperty({}, type, 0));
|
|
941
|
-
return
|
|
942
|
-
case
|
|
1056
|
+
return _context6.abrupt("return");
|
|
1057
|
+
case 36:
|
|
943
1058
|
promises.push(queryReplaceCount(_defineProperty({}, type, value), templateDetail));
|
|
944
1059
|
// TODO: ERP不走订单反弹逻辑
|
|
945
1060
|
if ((type === 'tradeId' || type === 'enterprisePaymentTid') && !isErpUse) {
|
|
946
1061
|
promises.push(changeHandle(value));
|
|
947
1062
|
}
|
|
948
1063
|
// 等待所有异步操作完成
|
|
949
|
-
|
|
1064
|
+
_context6.next = 40;
|
|
950
1065
|
return Promise.all(promises);
|
|
951
|
-
case
|
|
952
|
-
return
|
|
953
|
-
case
|
|
1066
|
+
case 40:
|
|
1067
|
+
return _context6.abrupt("return", Promise.resolve());
|
|
1068
|
+
case 41:
|
|
954
1069
|
case "end":
|
|
955
|
-
return
|
|
1070
|
+
return _context6.stop();
|
|
956
1071
|
}
|
|
957
|
-
},
|
|
1072
|
+
}, _callee6);
|
|
958
1073
|
}));
|
|
959
|
-
return function componentOnBlur(
|
|
960
|
-
return
|
|
1074
|
+
return function componentOnBlur(_x10, _x11) {
|
|
1075
|
+
return _ref7.apply(this, arguments);
|
|
961
1076
|
};
|
|
962
1077
|
}();
|
|
963
1078
|
// 切换店铺
|
|
@@ -1005,7 +1120,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1005
1120
|
}
|
|
1006
1121
|
//如果有bs组件 设置成初始值
|
|
1007
1122
|
var hasBs = get(templateDetail, 'componentDtoList', []).some(function (item) {
|
|
1008
|
-
return ['BS_LOGISTICS', 'BS_E3_LOGISTICS', 'BS_SEND_GOOD', 'BS_E3_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'KM_LOGISTICS', 'KM_SEND_GOOD', 'GY_SEND_GOOD', 'GY_LOGISTICS', 'SKX_LOGISTICS'].includes(item.workOrderComponentType);
|
|
1123
|
+
return ['BS_LOGISTICS', 'BS_E3_LOGISTICS', 'BS_SEND_GOOD', 'BS_E3_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'KM_LOGISTICS', 'KM_SEND_GOOD', 'GY_SEND_GOOD', 'GY_LOGISTICS', 'SKX_LOGISTICS', 'SKX_RETURN_LOGISTICS'].includes(item.workOrderComponentType);
|
|
1009
1124
|
});
|
|
1010
1125
|
if (hasBs) {
|
|
1011
1126
|
var bsValue = get(templateDetail, 'componentDtoList', []).reduce(function (prv, next) {
|
|
@@ -1022,6 +1137,12 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1022
1137
|
logisticsCode: null
|
|
1023
1138
|
}];
|
|
1024
1139
|
break;
|
|
1140
|
+
case 'SKX_RETURN_LOGISTICS':
|
|
1141
|
+
prv[next.uniqueKey] = [{
|
|
1142
|
+
skxReturnLogisticsCompany: null,
|
|
1143
|
+
skxReturnLogisticsCode: null
|
|
1144
|
+
}];
|
|
1145
|
+
break;
|
|
1025
1146
|
case 'BS_SEND_GOOD':
|
|
1026
1147
|
case 'BS_E3_SEND_GOOD':
|
|
1027
1148
|
case 'WLN_SEND_GOOD':
|
|
@@ -1155,9 +1276,9 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1155
1276
|
var newComponentConfig = _objectSpread(_objectSpread({}, componentConfig), {}, {
|
|
1156
1277
|
disabled: disabled
|
|
1157
1278
|
});
|
|
1158
|
-
var
|
|
1159
|
-
upgrade =
|
|
1160
|
-
created =
|
|
1279
|
+
var _ref8 = (componentConfig === null || componentConfig === void 0 ? void 0 : componentConfig.status) || {},
|
|
1280
|
+
upgrade = _ref8.upgrade,
|
|
1281
|
+
created = _ref8.created;
|
|
1161
1282
|
if (['REISSUE_TRADE_ID', 'EXCHANGE_TRADE_ID', 'ERP_AFTER_SALE_TRADE_ID'].includes(workOrderComponentType)) {
|
|
1162
1283
|
// 售后单id、补发单id和换货单id默认值是可见不可编辑(2)
|
|
1163
1284
|
if (typeof upgrade !== 'number') {
|
|
@@ -1226,8 +1347,8 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1226
1347
|
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
1227
1348
|
noStyle: true,
|
|
1228
1349
|
dependencies: _toConsumableArray(new Set(dependencies.concat(currentDependenciesMappingComponent)))
|
|
1229
|
-
}, function (
|
|
1230
|
-
var getFieldValue =
|
|
1350
|
+
}, function (_ref9) {
|
|
1351
|
+
var getFieldValue = _ref9.getFieldValue;
|
|
1231
1352
|
var show = currentIdDependenceOtherFields === null || currentIdDependenceOtherFields === void 0 ? void 0 : currentIdDependenceOtherFields.reduce(function (cur, nxt) {
|
|
1232
1353
|
// 如果有一项满足展示条件则展示
|
|
1233
1354
|
if (cur) {
|
|
@@ -1473,6 +1594,9 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1473
1594
|
}), /*#__PURE__*/React.createElement(Form.Item, {
|
|
1474
1595
|
name: "fixed_field_buyerOpenUid",
|
|
1475
1596
|
hidden: true
|
|
1597
|
+
}), /*#__PURE__*/React.createElement(Form.Item, {
|
|
1598
|
+
name: "skx_return_billNo_blur_from",
|
|
1599
|
+
hidden: true
|
|
1476
1600
|
}), finalFormItems));
|
|
1477
1601
|
};
|
|
1478
1602
|
export default /*#__PURE__*/forwardRef(FormRender);
|