@kmkf-fe-packages/kmkf-work-order-service-component 2.7.2 → 2.7.3-beta.3

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 (49) hide show
  1. package/dist/esm/FlowTemplateDetailV2/common.js +1 -1
  2. package/dist/esm/FlowTemplateDetailV2/components/FormRender/index.js +197 -92
  3. package/dist/esm/FlowTemplateDetailV2/components/FormRender/onBlur.d.ts +6 -2
  4. package/dist/esm/FlowTemplateDetailV2/components/FormRender/onBlur.js +24 -28
  5. package/dist/esm/FlowTemplateDetailV2/constant.js +1 -1
  6. package/dist/esm/GlobalContext/hook/dist/useGetHasErpData.js +52 -0
  7. package/dist/esm/GlobalContext/orderQuery/dist/useGetErpAddressData.js +180 -0
  8. package/dist/esm/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +186 -0
  9. package/dist/esm/common/constant.js +12 -0
  10. package/dist/esm/common/utils/constant.js +14 -0
  11. package/dist/esm/common/utils/dist/submitDataTransOldFormat.js +899 -0
  12. package/dist/esm/common/utils/dist/tools.js +1326 -0
  13. package/dist/esm/common/utils/dist/transformWorkOrderData.js +965 -0
  14. package/dist/esm/common/utils/submitDataTransOldFormat.js +4 -1
  15. package/dist/esm/common/utils/tools.d.ts +1 -1
  16. package/dist/esm/common/utils/tools.js +9 -6
  17. package/dist/esm/common/utils/tools_constants.js +1 -1
  18. package/dist/esm/common/utils/transformWorkOrderData.js +10 -2
  19. package/dist/esm/model/customizeWorkOrder/dist/api.js +48 -0
  20. package/dist/esm/model/customizeWorkOrder/dist/index.js +370 -0
  21. package/dist/esm/model/customizeWorkOrder/dist/selector.js +63 -0
  22. package/dist/esm/model/customizeWorkOrder/dist/types.js +3 -0
  23. package/dist/esm/model/dist/global.js +44 -0
  24. package/dist/esm/model/dist/hooks.js +15 -0
  25. package/dist/esm/model/dist/login.js +245 -0
  26. package/dist/esm/model/dist/store.js +30 -0
  27. package/dist/esm/model/dist/userData.js +41 -0
  28. package/dist/esm/model/dist/workOrder.js +329 -0
  29. package/dist/esm/model/flowTemplateDetail/dist/api.js +192 -0
  30. package/dist/esm/model/flowTemplateDetail/dist/types.js +48 -0
  31. package/dist/esm/model/logicFlow/dist/api.js +14 -0
  32. package/dist/esm/model/logicFlow/dist/index.js +235 -0
  33. package/dist/esm/model/logicFlow/dist/selector.js +18 -0
  34. package/dist/esm/model/logicFlow/dist/types.js +3 -0
  35. package/dist/esm/model/logicFlow/selector.d.ts +0 -3
  36. package/dist/esm/model/paymentWorkOrder/dist/index.js +77 -0
  37. package/dist/esm/model/paymentWorkOrder/dist/selector.js +36 -0
  38. package/dist/esm/model/paymentWorkOrder/dist/types.js +3 -0
  39. package/dist/esm/model/paymentWorkOrder/selector.d.ts +0 -9
  40. package/dist/esm/model/servers/dist/api.js +545 -0
  41. package/dist/esm/model/servers/dist/request.js +63 -0
  42. package/dist/esm/model/singleShopWorkOrder/dist/index.js +216 -0
  43. package/dist/esm/model/singleShopWorkOrder/dist/selector.js +24 -0
  44. package/dist/esm/model/singleShopWorkOrder/dist/types.js +3 -0
  45. package/dist/esm/model/singleShopWorkOrder/selector.d.ts +0 -5
  46. package/dist/esm/model/types/dist/login.js +3 -0
  47. package/dist/esm/model/types/dist/singleWorkOrder.js +3 -0
  48. package/dist/esm/model/types/dist/workOrder.js +3 -0
  49. 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', 'ERP_REMARK', 'INVOICE_STATUS', 'INVOICING_STATUS', 'EXCHANGE_STATUS', 'WAREHOUSING_STATUS', 'BS_E3_WAREHOUSING_STATUS', 'WDT_WAREHOUSING_STATUS', 'JKY_WAREHOUSING_STATUS', 'EXCHANGE_TRADE_ID', 'REISSUE_TRADE_ID', 'SWAP_OUT_TRADE_ID', 'ERP_AFTER_SALE_TRADE_ID', 'LOGISTICS_INTERCEPTION', 'LOGISTICS_INTERCEPTION_MORE', 'ORDER_TYPE', 'REFUND_TYPE', 'RETURN_EXCHANGE_GOODS_REVIEW_STATUS', 'EXECUTE_ACTION_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', 'ERP_REMARK', 'INVOICE_STATUS', 'INVOICING_STATUS', 'EXCHANGE_STATUS', 'WAREHOUSING_STATUS', 'BS_E3_WAREHOUSING_STATUS', 'WDT_WAREHOUSING_STATUS', 'WLN_WAREHOUSING_STATUS', 'JKY_WAREHOUSING_STATUS', 'EXCHANGE_TRADE_ID', 'REISSUE_TRADE_ID', 'SWAP_OUT_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 = {
@@ -3,6 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
5
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
6
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
6
7
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
7
8
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
8
9
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -411,7 +412,7 @@ var FormRender = function FormRender(props, ref) {
411
412
  }, [labelComponent, record]);
412
413
  var queryDetail = /*#__PURE__*/function () {
413
414
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
414
- var workOrderId, shopId, shopList, record, orderNo, buyerId, buyerNick, jsonMap, newRecord, jsonMapOrderId, getCacheInfo, newFormValues, transData, initialValues, tradeIdUniqueKey, _record$jsonMap2, _record$jsonMap3, _userInfo$companyUser3, _companyUserConfig$pl, _companyUserConfig$pl2, _companyUserConfig$pl3, _record$jsonMap4, _record$jsonMap5, currentNodeTradeIdUniqueKey, _currentNodeTid, currentNodeExpressLogisticsCodeKey, currentNodeLogisticsCode, isSkx, _userInfo, companyUserConfig, hasWdt, preTradeId, tradeId, initFormValues, _getCacheInfo, _getCacheInfo2, _getCacheInfo3, _getCacheInfo4, _orderNo, _shopId, orderNoField, _transData, _initialValues, antFormEl;
415
+ var workOrderId, shopId, shopList, record, orderNo, buyerId, buyerNick, jsonMap, newRecord, jsonMapOrderId, getCacheInfo, newFormValues, transData, initialValues, tradeIdUniqueKey, _record$jsonMap2, _record$jsonMap3, _record$jsonMap4, currentNodeTradeIdUniqueKey, _currentNodeTid, logisticsOrderBackSources, lastLogisticsOrderBackSource, preTradeId, tradeId, isSkx, _iterator, _step, source, initFormValues, _getCacheInfo, _getCacheInfo2, _getCacheInfo3, _getCacheInfo4, _orderNo, _shopId, orderNoField, _transData, _initialValues, antFormEl;
415
416
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
416
417
  while (1) switch (_context2.prev = _context2.next) {
417
418
  case 0:
@@ -441,7 +442,7 @@ var FormRender = function FormRender(props, ref) {
441
442
  return prv;
442
443
  }, {});
443
444
  if (!workOrderId) {
444
- _context2.next = 58;
445
+ _context2.next = 78;
445
446
  break;
446
447
  }
447
448
  // 先初始化端上内容
@@ -474,26 +475,45 @@ var FormRender = function FormRender(props, ref) {
474
475
  // TODO: 非开始节点录入,都会有workOrderId,这里判断是否有前置组件含有订单号;如果存在订单号,进行订单反填。
475
476
  tradeIdUniqueKey = findComponentUniqueKeyByType(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.preNodeComponentDtoList, 'TRADE_ID_INPUT');
476
477
  if (!notAutoFillFlag) {
477
- _context2.next = 54;
478
+ _context2.next = 74;
478
479
  break;
479
480
  }
480
481
  currentNodeTradeIdUniqueKey = findComponentUniqueKeyByType(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList, 'TRADE_ID_INPUT');
481
482
  _currentNodeTid = record === null || record === void 0 ? void 0 : (_record$jsonMap2 = record.jsonMap) === null || _record$jsonMap2 === void 0 ? void 0 : _record$jsonMap2["".concat(currentNodeTradeIdUniqueKey, "_tradeId")];
482
- currentNodeExpressLogisticsCodeKey = findComponentUniqueKeyByType(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList, 'EXPRESS_LOGISTICS_SELECT');
483
- currentNodeLogisticsCode = record === null || record === void 0 ? void 0 : (_record$jsonMap3 = record.jsonMap) === null || _record$jsonMap3 === void 0 ? void 0 : _record$jsonMap3["".concat(currentNodeExpressLogisticsCodeKey, "_expressLogisticsCode")];
484
- isSkx = ['TR3E2FYXFZCFANVG6O6AALSM'].includes(companyKey); // SKX 特殊处理逻辑
485
- _userInfo = JSON.parse(localStorage.getItem('reduxData_userInfo') || '{}');
486
- companyUserConfig = (_userInfo$companyUser3 = _userInfo === null || _userInfo === void 0 ? void 0 : _userInfo.companyUserConfig) !== null && _userInfo$companyUser3 !== void 0 ? _userInfo$companyUser3 : {};
487
- 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;
488
- preTradeId = tradeIdUniqueKey && shopId && record !== null && record !== void 0 && (_record$jsonMap4 = record.jsonMap) !== null && _record$jsonMap4 !== void 0 && _record$jsonMap4["".concat(tradeIdUniqueKey, "_tradeId")] && firstOrderBackfill ? record === null || record === void 0 ? void 0 : (_record$jsonMap5 = record.jsonMap) === null || _record$jsonMap5 === void 0 ? void 0 : _record$jsonMap5["".concat(tradeIdUniqueKey, "_tradeId")] : undefined;
483
+ logisticsOrderBackSources = ((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []).reduce(function (cur, component) {
484
+ if (component.workOrderComponentType === 'EXPRESS_LOGISTICS_SELECT') {
485
+ var _initialValues$compon;
486
+ var logisticsCode = (_initialValues$compon = initialValues[component.uniqueKey]) === null || _initialValues$compon === void 0 ? void 0 : _initialValues$compon.order;
487
+ if (logisticsCode) {
488
+ cur.push({
489
+ logisticsCode: logisticsCode,
490
+ uniqueKey: component.uniqueKey
491
+ });
492
+ }
493
+ }
494
+ if (component.workOrderComponentType === 'LOGISTICS_INTERCEPTION') {
495
+ var _initialValues$compon2;
496
+ var _logisticsCode = (_initialValues$compon2 = initialValues[component.uniqueKey]) === null || _initialValues$compon2 === void 0 ? void 0 : _initialValues$compon2.interceptCode;
497
+ if (_logisticsCode) {
498
+ cur.push({
499
+ logisticsCode: _logisticsCode,
500
+ uniqueKey: component.uniqueKey
501
+ });
502
+ }
503
+ }
504
+ return cur;
505
+ }, []);
506
+ lastLogisticsOrderBackSource = logisticsOrderBackSources[logisticsOrderBackSources.length - 1];
507
+ preTradeId = tradeIdUniqueKey && shopId && record !== null && record !== void 0 && (_record$jsonMap3 = record.jsonMap) !== null && _record$jsonMap3 !== void 0 && _record$jsonMap3["".concat(tradeIdUniqueKey, "_tradeId")] && firstOrderBackfill ? record === null || record === void 0 ? void 0 : (_record$jsonMap4 = record.jsonMap) === null || _record$jsonMap4 === void 0 ? void 0 : _record$jsonMap4["".concat(tradeIdUniqueKey, "_tradeId")] : undefined;
489
508
  tradeId = _currentNodeTid || preTradeId;
509
+ isSkx = ['TR3E2FYXFZCFANVG6O6AALSM'].includes(companyKey); // SKX 特殊处理逻辑
490
510
  if (!tradeId) {
491
- _context2.next = 38;
511
+ _context2.next = 35;
492
512
  break;
493
513
  }
494
514
  queryLabels(tradeId, shopId);
495
515
  queryMemberLevels(tradeId, shopId);
496
- _context2.next = 36;
516
+ _context2.next = 33;
497
517
  return orderBack({
498
518
  companyKey: companyKey,
499
519
  order_no: tradeId,
@@ -505,17 +525,19 @@ var FormRender = function FormRender(props, ref) {
505
525
  fromQNCreateWorkOrderByOrderNo: fromQNCreateWorkOrderByOrderNo,
506
526
  plat: plat,
507
527
  callKey: 1,
508
- setLoading: setLoading
528
+ setLoading: setLoading,
529
+ wdtMatchLogisticsNo: lastLogisticsOrderBackSource === null || lastLogisticsOrderBackSource === void 0 ? void 0 : lastLogisticsOrderBackSource.logisticsCode,
530
+ skipOrderBackUniqueKeys: lastLogisticsOrderBackSource !== null && lastLogisticsOrderBackSource !== void 0 && lastLogisticsOrderBackSource.uniqueKey ? [lastLogisticsOrderBackSource.uniqueKey] : []
509
531
  });
510
- case 36:
511
- _context2.next = 51;
532
+ case 33:
533
+ _context2.next = 71;
512
534
  break;
513
- case 38:
535
+ case 35:
514
536
  if (!isSkx) {
515
- _context2.next = 44;
537
+ _context2.next = 41;
516
538
  break;
517
539
  }
518
- _context2.next = 41;
540
+ _context2.next = 38;
519
541
  return skxOrderBack({
520
542
  form: form,
521
543
  companyKey: companyKey,
@@ -523,40 +545,91 @@ var FormRender = function FormRender(props, ref) {
523
545
  componentOnBlur: componentOnBlur,
524
546
  jsonMap: record === null || record === void 0 ? void 0 : record.jsonMap
525
547
  });
526
- case 41:
548
+ case 38:
527
549
  // 售后单反填
528
550
  afterSaleOrderBack(form, templateDetail);
529
- _context2.next = 51;
551
+ _context2.next = 71;
530
552
  break;
531
- case 44:
532
- if (!(hasWdt && currentNodeLogisticsCode)) {
533
- _context2.next = 50;
553
+ case 41:
554
+ if (!logisticsOrderBackSources.length) {
555
+ _context2.next = 62;
534
556
  break;
535
557
  }
536
- // 售后单反填
558
+ _iterator = _createForOfIteratorHelper(logisticsOrderBackSources);
559
+ _context2.prev = 43;
560
+ _iterator.s();
561
+ case 45:
562
+ if ((_step = _iterator.n()).done) {
563
+ _context2.next = 52;
564
+ break;
565
+ }
566
+ source = _step.value;
537
567
  afterSaleOrderBack(form, templateDetail);
538
- _context2.next = 48;
539
- return componentOnBlur(currentNodeLogisticsCode, 'expressLogisticsCode');
540
- case 48:
541
- _context2.next = 51;
542
- break;
568
+ _context2.next = 50;
569
+ return onBlurExpressLogisticsCode({
570
+ form: form,
571
+ value: source.logisticsCode,
572
+ templateDetail: templateDetail,
573
+ setKmLoading: setKmLoading,
574
+ componentOnBlur: componentOnBlur,
575
+ sourceUniqueKey: source.uniqueKey
576
+ });
543
577
  case 50:
578
+ _context2.next = 45;
579
+ break;
580
+ case 52:
581
+ _context2.next = 57;
582
+ break;
583
+ case 54:
584
+ _context2.prev = 54;
585
+ _context2.t0 = _context2["catch"](43);
586
+ _iterator.e(_context2.t0);
587
+ case 57:
588
+ _context2.prev = 57;
589
+ _iterator.f();
590
+ return _context2.finish(57);
591
+ case 60:
592
+ _context2.next = 71;
593
+ break;
594
+ case 62:
544
595
  // 售后单反填
545
596
  afterSaleOrderBack(form, templateDetail);
546
- case 51:
597
+ if (!isSkx) {
598
+ _context2.next = 68;
599
+ break;
600
+ }
601
+ _context2.next = 66;
602
+ return skxOrderBack({
603
+ form: form,
604
+ companyKey: companyKey,
605
+ templateDetail: templateDetail,
606
+ componentOnBlur: componentOnBlur,
607
+ jsonMap: record === null || record === void 0 ? void 0 : record.jsonMap
608
+ });
609
+ case 66:
610
+ _context2.next = 71;
611
+ break;
612
+ case 68:
613
+ if (!(hasWdt && currentNodeLogisticsCode)) {
614
+ _context2.next = 71;
615
+ break;
616
+ }
617
+ _context2.next = 71;
618
+ return componentOnBlur(currentNodeLogisticsCode, 'expressLogisticsCode');
619
+ case 71:
547
620
  // 仅在依赖值有值且映射值为空时触发一次映射
548
621
  batchFillByMappingWhenTargetEmpty(initialValues);
549
- _context2.next = 56;
622
+ _context2.next = 76;
550
623
  break;
551
- case 54:
624
+ case 74:
552
625
  // 如果没有订单反填,则单独更新remark
553
626
  fetchRemark(shopId, currentNodeTid);
554
627
  // 售后单反填
555
628
  afterSaleOrderBack(form, templateDetail);
556
- case 56:
557
- _context2.next = 82;
629
+ case 76:
630
+ _context2.next = 102;
558
631
  break;
559
- case 58:
632
+ case 78:
560
633
  fillByShopId(shopId);
561
634
  initFormValues = null;
562
635
  if (plat !== null && plat !== void 0 && plat.subOrderNo) {
@@ -575,7 +648,7 @@ var FormRender = function FormRender(props, ref) {
575
648
 
576
649
  // console.log(orderNo, initFormValues);
577
650
  if (!initFormValues) {
578
- _context2.next = 69;
651
+ _context2.next = 89;
579
652
  break;
580
653
  }
581
654
  form.setFieldsValue(_objectSpread(_objectSpread({}, initFormValues), {}, {
@@ -592,9 +665,9 @@ var FormRender = function FormRender(props, ref) {
592
665
  _orderNo = orderNoField !== null && orderNoField !== void 0 && orderNoField.uniqueKey ? initFormValues[orderNoField === null || orderNoField === void 0 ? void 0 : orderNoField.uniqueKey] || _orderNo : _orderNo;
593
666
  }
594
667
  fetchRemark(_shopId, _orderNo);
595
- _context2.next = 82;
668
+ _context2.next = 102;
596
669
  break;
597
- case 69:
670
+ case 89:
598
671
  _transData = calcWorkOrderList([{
599
672
  jsonMap: jsonMap
600
673
  }], [].concat(_toConsumableArray((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.preNodeComponentDtoList) || []), _toConsumableArray((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || [])), 'init');
@@ -606,12 +679,12 @@ var FormRender = function FormRender(props, ref) {
606
679
  batchFillByMapping(_initialValues);
607
680
  //如果有订单号 订单返填 通过订单号入口进行工单录入,需要将订单数据反填到工单
608
681
  if (!(orderNo && shopId)) {
609
- _context2.next = 80;
682
+ _context2.next = 100;
610
683
  break;
611
684
  }
612
685
  queryLabels(orderNo, shopId);
613
686
  queryMemberLevels(orderNo, shopId);
614
- _context2.next = 78;
687
+ _context2.next = 98;
615
688
  return orderBack({
616
689
  companyKey: companyKey,
617
690
  order_no: orderNo,
@@ -626,15 +699,15 @@ var FormRender = function FormRender(props, ref) {
626
699
  callKey: 2,
627
700
  setLoading: setLoading
628
701
  });
629
- case 78:
630
- _context2.next = 82;
702
+ case 98:
703
+ _context2.next = 102;
631
704
  break;
632
- case 80:
705
+ case 100:
633
706
  // 如果没有订单反填,则单独更新remark
634
707
  fetchRemark(shopId, currentNodeTid);
635
708
  // 售后单反填
636
709
  afterSaleOrderBack(form, templateDetail);
637
- case 82:
710
+ case 102:
638
711
  antFormEl = document.getElementsByClassName('ant-form');
639
712
  (antFormEl === null || antFormEl === void 0 ? void 0 : antFormEl.length) > 0 && set(antFormEl, '0.scrollTop', 0);
640
713
  resetMappingHideComponents();
@@ -643,11 +716,11 @@ var FormRender = function FormRender(props, ref) {
643
716
  type: 'setaAutoSubmitFlag',
644
717
  payload: true
645
718
  });
646
- case 86:
719
+ case 106:
647
720
  case "end":
648
721
  return _context2.stop();
649
722
  }
650
- }, _callee2);
723
+ }, _callee2, null, [[43, 54, 57, 60]]);
651
724
  }));
652
725
  return function queryDetail(_x4) {
653
726
  return _ref3.apply(this, arguments);
@@ -895,7 +968,7 @@ var FormRender = function FormRender(props, ref) {
895
968
 
896
969
  //订单返填
897
970
  var changeHandle = /*#__PURE__*/function () {
898
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(order_no) {
971
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(order_no, options) {
899
972
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
900
973
  while (1) switch (_context5.prev = _context5.next) {
901
974
  case 0:
@@ -928,7 +1001,9 @@ var FormRender = function FormRender(props, ref) {
928
1001
  }, 0);
929
1002
  },
930
1003
  callKey: 3,
931
- setLoading: setLoading
1004
+ setLoading: setLoading,
1005
+ wdtMatchLogisticsNo: options === null || options === void 0 ? void 0 : options.wdtMatchLogisticsNo,
1006
+ skipOrderBackUniqueKeys: options === null || options === void 0 ? void 0 : options.skipOrderBackUniqueKeys
932
1007
  });
933
1008
  case 5:
934
1009
  case "end":
@@ -936,7 +1011,7 @@ var FormRender = function FormRender(props, ref) {
936
1011
  }
937
1012
  }, _callee5);
938
1013
  }));
939
- return function changeHandle(_x9) {
1014
+ return function changeHandle(_x9, _x10) {
940
1015
  return _ref6.apply(this, arguments);
941
1016
  };
942
1017
  }();
@@ -1046,7 +1121,7 @@ var FormRender = function FormRender(props, ref) {
1046
1121
 
1047
1122
  //组件失焦事件
1048
1123
  var componentOnBlur = /*#__PURE__*/function () {
1049
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(value, type, uniqueKey) {
1124
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(value, type, uniqueKey, options) {
1050
1125
  var promises;
1051
1126
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
1052
1127
  while (1) switch (_context6.prev = _context6.next) {
@@ -1072,36 +1147,43 @@ var FormRender = function FormRender(props, ref) {
1072
1147
  setKmLoading: setKmLoading
1073
1148
  });
1074
1149
  case 4:
1075
- _context6.next = 49;
1150
+ _context6.next = 58;
1076
1151
  break;
1077
1152
  case 6:
1078
1153
  if (!(type === 'expressLogisticsCode')) {
1079
- _context6.next = 16;
1154
+ _context6.next = 18;
1155
+ break;
1156
+ }
1157
+ if ("".concat(value || '').trim()) {
1158
+ _context6.next = 9;
1080
1159
  break;
1081
1160
  }
1082
- _context6.next = 9;
1161
+ return _context6.abrupt("return");
1162
+ case 9:
1163
+ _context6.next = 11;
1083
1164
  return onBlurExpressLogisticsCode({
1084
1165
  form: form,
1085
1166
  value: value,
1086
1167
  templateDetail: templateDetail,
1087
1168
  setKmLoading: setKmLoading,
1088
- componentOnBlur: componentOnBlur
1169
+ componentOnBlur: componentOnBlur,
1170
+ sourceUniqueKey: uniqueKey
1089
1171
  });
1090
- case 9:
1172
+ case 11:
1091
1173
  if (!['TR3E2FYXFZCFANVG6O6AALSM' //prod 斯凯奇
1092
1174
  ].includes(companyKey)) {
1093
- _context6.next = 12;
1175
+ _context6.next = 14;
1094
1176
  break;
1095
1177
  }
1096
- _context6.next = 12;
1178
+ _context6.next = 14;
1097
1179
  return onBlurSkxLogisticsCode({
1098
1180
  form: form,
1099
1181
  value: value,
1100
1182
  templateDetail: templateDetail,
1101
1183
  componentOnBlur: componentOnBlur
1102
1184
  });
1103
- case 12:
1104
- _context6.next = 14;
1185
+ case 14:
1186
+ _context6.next = 16;
1105
1187
  return onBlurReturnLogisticsCode({
1106
1188
  form: form,
1107
1189
  value: value,
@@ -1109,15 +1191,38 @@ var FormRender = function FormRender(props, ref) {
1109
1191
  componentOnBlur: componentOnBlur,
1110
1192
  orderBackRule: 'outSid'
1111
1193
  });
1112
- case 14:
1113
- _context6.next = 49;
1114
- break;
1115
1194
  case 16:
1116
- if (!(type === 'returnLogisticsCode')) {
1195
+ _context6.next = 58;
1196
+ break;
1197
+ case 18:
1198
+ if (!(type === 'interceptCode')) {
1199
+ _context6.next = 25;
1200
+ break;
1201
+ }
1202
+ if ("".concat(value || '').trim()) {
1117
1203
  _context6.next = 21;
1118
1204
  break;
1119
1205
  }
1120
- _context6.next = 19;
1206
+ return _context6.abrupt("return");
1207
+ case 21:
1208
+ _context6.next = 23;
1209
+ return onBlurExpressLogisticsCode({
1210
+ form: form,
1211
+ value: value,
1212
+ templateDetail: templateDetail,
1213
+ setKmLoading: setKmLoading,
1214
+ componentOnBlur: componentOnBlur,
1215
+ sourceUniqueKey: uniqueKey
1216
+ });
1217
+ case 23:
1218
+ _context6.next = 58;
1219
+ break;
1220
+ case 25:
1221
+ if (!(type === 'returnLogisticsCode')) {
1222
+ _context6.next = 30;
1223
+ break;
1224
+ }
1225
+ _context6.next = 28;
1121
1226
  return onBlurReturnLogisticsCode({
1122
1227
  form: form,
1123
1228
  value: value,
@@ -1125,57 +1230,57 @@ var FormRender = function FormRender(props, ref) {
1125
1230
  componentOnBlur: componentOnBlur,
1126
1231
  orderBackRule: 'logisticsCode'
1127
1232
  });
1128
- case 19:
1129
- _context6.next = 49;
1233
+ case 28:
1234
+ _context6.next = 58;
1130
1235
  break;
1131
- case 21:
1236
+ case 30:
1132
1237
  if (!(type === 'skxOutboundNoticeNo')) {
1133
- _context6.next = 27;
1238
+ _context6.next = 36;
1134
1239
  break;
1135
1240
  }
1136
1241
  //[SKX]ON出库通知单号 返填
1137
1242
  console.log('skxOutboundNoticeNo', value);
1138
- _context6.next = 25;
1243
+ _context6.next = 34;
1139
1244
  return onBlurSkxOutboundNoticeNo({
1140
1245
  form: form,
1141
1246
  value: value,
1142
1247
  templateDetail: templateDetail,
1143
1248
  componentOnBlur: componentOnBlur
1144
1249
  });
1145
- case 25:
1146
- _context6.next = 49;
1250
+ case 34:
1251
+ _context6.next = 58;
1147
1252
  break;
1148
- case 27:
1253
+ case 36:
1149
1254
  if (!(type === 'skxReturnBillNo')) {
1150
- _context6.next = 32;
1255
+ _context6.next = 41;
1151
1256
  break;
1152
1257
  }
1153
- _context6.next = 30;
1258
+ _context6.next = 39;
1154
1259
  return onBlurSkxReturnBillNo({
1155
1260
  form: form,
1156
1261
  value: value,
1157
1262
  templateDetail: templateDetail,
1158
1263
  componentOnBlur: componentOnBlur
1159
1264
  });
1160
- case 30:
1161
- _context6.next = 49;
1265
+ case 39:
1266
+ _context6.next = 58;
1162
1267
  break;
1163
- case 32:
1268
+ case 41:
1164
1269
  if (!(type === 'skxReturnTHLogisticsCode')) {
1165
- _context6.next = 37;
1270
+ _context6.next = 46;
1166
1271
  break;
1167
1272
  }
1168
- _context6.next = 35;
1273
+ _context6.next = 44;
1169
1274
  return onBlurSkxReturnTHLogisticsCode({
1170
1275
  form: form,
1171
1276
  value: value,
1172
1277
  templateDetail: templateDetail,
1173
1278
  componentOnBlur: componentOnBlur
1174
1279
  });
1175
- case 35:
1176
- _context6.next = 49;
1280
+ case 44:
1281
+ _context6.next = 58;
1177
1282
  break;
1178
- case 37:
1283
+ case 46:
1179
1284
  // 收集所有需要执行的异步操作
1180
1285
  promises = [];
1181
1286
  if (type === 'tradeId') {
@@ -1187,7 +1292,7 @@ var FormRender = function FormRender(props, ref) {
1187
1292
  promises.push(handleChangeTradeId(value));
1188
1293
  }
1189
1294
  if (value) {
1190
- _context6.next = 44;
1295
+ _context6.next = 53;
1191
1296
  break;
1192
1297
  }
1193
1298
  setReplaceValue(function (prev) {
@@ -1198,24 +1303,24 @@ var FormRender = function FormRender(props, ref) {
1198
1303
  });
1199
1304
  replaceValueRef.current = _objectSpread(_objectSpread({}, replaceValue), {}, _defineProperty({}, type, 0));
1200
1305
  return _context6.abrupt("return");
1201
- case 44:
1306
+ case 53:
1202
1307
  promises.push(queryReplaceCount(_defineProperty({}, type, value), templateDetail));
1203
1308
  // TODO: ERP不走订单反弹逻辑
1204
1309
  if ((type === 'tradeId' || type === 'enterprisePaymentTid') && !isErpUse) {
1205
- promises.push(changeHandle(value));
1310
+ promises.push(changeHandle(value, options));
1206
1311
  }
1207
1312
  // 等待所有异步操作完成
1208
- _context6.next = 48;
1313
+ _context6.next = 57;
1209
1314
  return Promise.all(promises);
1210
- case 48:
1315
+ case 57:
1211
1316
  return _context6.abrupt("return", Promise.resolve());
1212
- case 49:
1317
+ case 58:
1213
1318
  case "end":
1214
1319
  return _context6.stop();
1215
1320
  }
1216
1321
  }, _callee6);
1217
1322
  }));
1218
- return function componentOnBlur(_x10, _x11, _x12) {
1323
+ return function componentOnBlur(_x11, _x12, _x13, _x14) {
1219
1324
  return _ref7.apply(this, arguments);
1220
1325
  };
1221
1326
  }();
@@ -1347,10 +1452,10 @@ var FormRender = function FormRender(props, ref) {
1347
1452
  callKey: 4,
1348
1453
  setLoading: setLoading
1349
1454
  });
1350
- } else {
1351
- // 售后单反填
1352
- afterSaleOrderBack(form, templateDetail);
1353
1455
  }
1456
+ } else {
1457
+ // 售后单反填
1458
+ afterSaleOrderBack(form, templateDetail);
1354
1459
  }
1355
1460
  };
1356
1461
 
@@ -5,12 +5,16 @@ export declare const onBlurErpAfterSaleTradeId: ({ form, value, templateDetail,
5
5
  templateDetail: any;
6
6
  setKmLoading: (loading: boolean) => void;
7
7
  }) => Promise<void>;
8
- export declare const onBlurExpressLogisticsCode: ({ form, value, templateDetail, setKmLoading, componentOnBlur, onlyGetTid, needTradeIdOrderBack, }: {
8
+ export declare const onBlurExpressLogisticsCode: ({ form, value, templateDetail, setKmLoading, componentOnBlur, sourceUniqueKey, onlyGetTid, needTradeIdOrderBack, }: {
9
9
  form: FormInstance;
10
10
  value: string;
11
11
  templateDetail: any;
12
12
  setKmLoading: (loading: boolean) => void;
13
- componentOnBlur: (value: any, type: string) => Promise<void>;
13
+ componentOnBlur: (value: any, type: string, uniqueKey?: string, options?: {
14
+ wdtMatchLogisticsNo?: string;
15
+ skipOrderBackUniqueKeys?: string[];
16
+ }) => Promise<void>;
17
+ sourceUniqueKey?: string | undefined;
14
18
  onlyGetTid?: boolean | undefined;
15
19
  needTradeIdOrderBack?: boolean | undefined;
16
20
  }) => Promise<any>;