@kmkf-fe-packages/kmkf-work-order-service-component 2.7.3-beta.6 → 2.7.5

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.
@@ -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', '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'];
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'];
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,7 +3,6 @@ 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; } } }; }
7
6
  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; }
8
7
  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); } }
9
8
  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); }); }; }
@@ -412,7 +411,7 @@ var FormRender = function FormRender(props, ref) {
412
411
  }, [labelComponent, record]);
413
412
  var queryDetail = /*#__PURE__*/function () {
414
413
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
415
- 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, logisticsOrderBackSources, lastLogisticsOrderBackSource, currentNodeExpressLogisticsCodeKey, currentNodeLogisticsCode, _userInfo, companyUserConfig, hasWdt, preTradeId, tradeId, isSkx, _iterator, _step, source, initFormValues, _getCacheInfo, _getCacheInfo2, _getCacheInfo3, _getCacheInfo4, _orderNo, _shopId, orderNoField, _transData, _initialValues, antFormEl;
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;
416
415
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
417
416
  while (1) switch (_context2.prev = _context2.next) {
418
417
  case 0:
@@ -442,7 +441,7 @@ var FormRender = function FormRender(props, ref) {
442
441
  return prv;
443
442
  }, {});
444
443
  if (!workOrderId) {
445
- _context2.next = 83;
444
+ _context2.next = 58;
446
445
  break;
447
446
  }
448
447
  // 先初始化端上内容
@@ -475,50 +474,26 @@ var FormRender = function FormRender(props, ref) {
475
474
  // TODO: 非开始节点录入,都会有workOrderId,这里判断是否有前置组件含有订单号;如果存在订单号,进行订单反填。
476
475
  tradeIdUniqueKey = findComponentUniqueKeyByType(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.preNodeComponentDtoList, 'TRADE_ID_INPUT');
477
476
  if (!notAutoFillFlag) {
478
- _context2.next = 79;
477
+ _context2.next = 54;
479
478
  break;
480
479
  }
481
480
  currentNodeTradeIdUniqueKey = findComponentUniqueKeyByType(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList, 'TRADE_ID_INPUT');
482
481
  _currentNodeTid = record === null || record === void 0 ? void 0 : (_record$jsonMap2 = record.jsonMap) === null || _record$jsonMap2 === void 0 ? void 0 : _record$jsonMap2["".concat(currentNodeTradeIdUniqueKey, "_tradeId")];
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
482
  currentNodeExpressLogisticsCodeKey = findComponentUniqueKeyByType(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList, 'EXPRESS_LOGISTICS_SELECT');
508
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 特殊处理逻辑
509
485
  _userInfo = JSON.parse(localStorage.getItem('reduxData_userInfo') || '{}');
510
486
  companyUserConfig = (_userInfo$companyUser3 = _userInfo === null || _userInfo === void 0 ? void 0 : _userInfo.companyUserConfig) !== null && _userInfo$companyUser3 !== void 0 ? _userInfo$companyUser3 : {};
511
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;
512
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;
513
489
  tradeId = _currentNodeTid || preTradeId;
514
- isSkx = ['TR3E2FYXFZCFANVG6O6AALSM'].includes(companyKey); // SKX 特殊处理逻辑
515
490
  if (!tradeId) {
516
- _context2.next = 40;
491
+ _context2.next = 38;
517
492
  break;
518
493
  }
519
494
  queryLabels(tradeId, shopId);
520
495
  queryMemberLevels(tradeId, shopId);
521
- _context2.next = 38;
496
+ _context2.next = 36;
522
497
  return orderBack({
523
498
  companyKey: companyKey,
524
499
  order_no: tradeId,
@@ -530,19 +505,17 @@ var FormRender = function FormRender(props, ref) {
530
505
  fromQNCreateWorkOrderByOrderNo: fromQNCreateWorkOrderByOrderNo,
531
506
  plat: plat,
532
507
  callKey: 1,
533
- setLoading: setLoading,
534
- wdtMatchLogisticsNo: lastLogisticsOrderBackSource === null || lastLogisticsOrderBackSource === void 0 ? void 0 : lastLogisticsOrderBackSource.logisticsCode,
535
- skipOrderBackUniqueKeys: lastLogisticsOrderBackSource !== null && lastLogisticsOrderBackSource !== void 0 && lastLogisticsOrderBackSource.uniqueKey ? [lastLogisticsOrderBackSource.uniqueKey] : []
508
+ setLoading: setLoading
536
509
  });
537
- case 38:
538
- _context2.next = 76;
510
+ case 36:
511
+ _context2.next = 51;
539
512
  break;
540
- case 40:
513
+ case 38:
541
514
  if (!isSkx) {
542
- _context2.next = 46;
515
+ _context2.next = 44;
543
516
  break;
544
517
  }
545
- _context2.next = 43;
518
+ _context2.next = 41;
546
519
  return skxOrderBack({
547
520
  form: form,
548
521
  companyKey: companyKey,
@@ -550,91 +523,40 @@ var FormRender = function FormRender(props, ref) {
550
523
  componentOnBlur: componentOnBlur,
551
524
  jsonMap: record === null || record === void 0 ? void 0 : record.jsonMap
552
525
  });
553
- case 43:
526
+ case 41:
554
527
  // 售后单反填
555
528
  afterSaleOrderBack(form, templateDetail);
556
- _context2.next = 76;
529
+ _context2.next = 51;
557
530
  break;
558
- case 46:
559
- if (!logisticsOrderBackSources.length) {
560
- _context2.next = 67;
561
- break;
562
- }
563
- _iterator = _createForOfIteratorHelper(logisticsOrderBackSources);
564
- _context2.prev = 48;
565
- _iterator.s();
566
- case 50:
567
- if ((_step = _iterator.n()).done) {
568
- _context2.next = 57;
531
+ case 44:
532
+ if (!(hasWdt && currentNodeLogisticsCode)) {
533
+ _context2.next = 50;
569
534
  break;
570
535
  }
571
- source = _step.value;
536
+ // 售后单反填
572
537
  afterSaleOrderBack(form, templateDetail);
573
- _context2.next = 55;
574
- return onBlurExpressLogisticsCode({
575
- form: form,
576
- value: source.logisticsCode,
577
- templateDetail: templateDetail,
578
- setKmLoading: setKmLoading,
579
- componentOnBlur: componentOnBlur,
580
- sourceUniqueKey: source.uniqueKey
581
- });
582
- case 55:
583
- _context2.next = 50;
584
- break;
585
- case 57:
586
- _context2.next = 62;
587
- break;
588
- case 59:
589
- _context2.prev = 59;
590
- _context2.t0 = _context2["catch"](48);
591
- _iterator.e(_context2.t0);
592
- case 62:
593
- _context2.prev = 62;
594
- _iterator.f();
595
- return _context2.finish(62);
596
- case 65:
597
- _context2.next = 76;
538
+ _context2.next = 48;
539
+ return componentOnBlur(currentNodeLogisticsCode, 'expressLogisticsCode');
540
+ case 48:
541
+ _context2.next = 51;
598
542
  break;
599
- case 67:
543
+ case 50:
600
544
  // 售后单反填
601
545
  afterSaleOrderBack(form, templateDetail);
602
- if (!isSkx) {
603
- _context2.next = 73;
604
- break;
605
- }
606
- _context2.next = 71;
607
- return skxOrderBack({
608
- form: form,
609
- companyKey: companyKey,
610
- templateDetail: templateDetail,
611
- componentOnBlur: componentOnBlur,
612
- jsonMap: record === null || record === void 0 ? void 0 : record.jsonMap
613
- });
614
- case 71:
615
- _context2.next = 76;
616
- break;
617
- case 73:
618
- if (!(hasWdt && currentNodeLogisticsCode)) {
619
- _context2.next = 76;
620
- break;
621
- }
622
- _context2.next = 76;
623
- return componentOnBlur(currentNodeLogisticsCode, 'expressLogisticsCode');
624
- case 76:
546
+ case 51:
625
547
  // 仅在依赖值有值且映射值为空时触发一次映射
626
548
  batchFillByMappingWhenTargetEmpty(initialValues);
627
- _context2.next = 81;
549
+ _context2.next = 56;
628
550
  break;
629
- case 79:
551
+ case 54:
630
552
  // 如果没有订单反填,则单独更新remark
631
553
  fetchRemark(shopId, currentNodeTid);
632
554
  // 售后单反填
633
555
  afterSaleOrderBack(form, templateDetail);
634
- case 81:
635
- _context2.next = 107;
556
+ case 56:
557
+ _context2.next = 82;
636
558
  break;
637
- case 83:
559
+ case 58:
638
560
  fillByShopId(shopId);
639
561
  initFormValues = null;
640
562
  if (plat !== null && plat !== void 0 && plat.subOrderNo) {
@@ -653,7 +575,7 @@ var FormRender = function FormRender(props, ref) {
653
575
 
654
576
  // console.log(orderNo, initFormValues);
655
577
  if (!initFormValues) {
656
- _context2.next = 94;
578
+ _context2.next = 69;
657
579
  break;
658
580
  }
659
581
  form.setFieldsValue(_objectSpread(_objectSpread({}, initFormValues), {}, {
@@ -670,9 +592,9 @@ var FormRender = function FormRender(props, ref) {
670
592
  _orderNo = orderNoField !== null && orderNoField !== void 0 && orderNoField.uniqueKey ? initFormValues[orderNoField === null || orderNoField === void 0 ? void 0 : orderNoField.uniqueKey] || _orderNo : _orderNo;
671
593
  }
672
594
  fetchRemark(_shopId, _orderNo);
673
- _context2.next = 107;
595
+ _context2.next = 82;
674
596
  break;
675
- case 94:
597
+ case 69:
676
598
  _transData = calcWorkOrderList([{
677
599
  jsonMap: jsonMap
678
600
  }], [].concat(_toConsumableArray((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.preNodeComponentDtoList) || []), _toConsumableArray((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || [])), 'init');
@@ -684,12 +606,12 @@ var FormRender = function FormRender(props, ref) {
684
606
  batchFillByMapping(_initialValues);
685
607
  //如果有订单号 订单返填 通过订单号入口进行工单录入,需要将订单数据反填到工单
686
608
  if (!(orderNo && shopId)) {
687
- _context2.next = 105;
609
+ _context2.next = 80;
688
610
  break;
689
611
  }
690
612
  queryLabels(orderNo, shopId);
691
613
  queryMemberLevels(orderNo, shopId);
692
- _context2.next = 103;
614
+ _context2.next = 78;
693
615
  return orderBack({
694
616
  companyKey: companyKey,
695
617
  order_no: orderNo,
@@ -704,15 +626,15 @@ var FormRender = function FormRender(props, ref) {
704
626
  callKey: 2,
705
627
  setLoading: setLoading
706
628
  });
707
- case 103:
708
- _context2.next = 107;
629
+ case 78:
630
+ _context2.next = 82;
709
631
  break;
710
- case 105:
632
+ case 80:
711
633
  // 如果没有订单反填,则单独更新remark
712
634
  fetchRemark(shopId, currentNodeTid);
713
635
  // 售后单反填
714
636
  afterSaleOrderBack(form, templateDetail);
715
- case 107:
637
+ case 82:
716
638
  antFormEl = document.getElementsByClassName('ant-form');
717
639
  (antFormEl === null || antFormEl === void 0 ? void 0 : antFormEl.length) > 0 && set(antFormEl, '0.scrollTop', 0);
718
640
  resetMappingHideComponents();
@@ -721,11 +643,11 @@ var FormRender = function FormRender(props, ref) {
721
643
  type: 'setaAutoSubmitFlag',
722
644
  payload: true
723
645
  });
724
- case 111:
646
+ case 86:
725
647
  case "end":
726
648
  return _context2.stop();
727
649
  }
728
- }, _callee2, null, [[48, 59, 62, 65]]);
650
+ }, _callee2);
729
651
  }));
730
652
  return function queryDetail(_x4) {
731
653
  return _ref3.apply(this, arguments);
@@ -973,7 +895,7 @@ var FormRender = function FormRender(props, ref) {
973
895
 
974
896
  //订单返填
975
897
  var changeHandle = /*#__PURE__*/function () {
976
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(order_no, options) {
898
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(order_no) {
977
899
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
978
900
  while (1) switch (_context5.prev = _context5.next) {
979
901
  case 0:
@@ -1006,9 +928,7 @@ var FormRender = function FormRender(props, ref) {
1006
928
  }, 0);
1007
929
  },
1008
930
  callKey: 3,
1009
- setLoading: setLoading,
1010
- wdtMatchLogisticsNo: options === null || options === void 0 ? void 0 : options.wdtMatchLogisticsNo,
1011
- skipOrderBackUniqueKeys: options === null || options === void 0 ? void 0 : options.skipOrderBackUniqueKeys
931
+ setLoading: setLoading
1012
932
  });
1013
933
  case 5:
1014
934
  case "end":
@@ -1016,7 +936,7 @@ var FormRender = function FormRender(props, ref) {
1016
936
  }
1017
937
  }, _callee5);
1018
938
  }));
1019
- return function changeHandle(_x9, _x10) {
939
+ return function changeHandle(_x9) {
1020
940
  return _ref6.apply(this, arguments);
1021
941
  };
1022
942
  }();
@@ -1126,7 +1046,7 @@ var FormRender = function FormRender(props, ref) {
1126
1046
 
1127
1047
  //组件失焦事件
1128
1048
  var componentOnBlur = /*#__PURE__*/function () {
1129
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(value, type, uniqueKey, options) {
1049
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(value, type, uniqueKey) {
1130
1050
  var promises;
1131
1051
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
1132
1052
  while (1) switch (_context6.prev = _context6.next) {
@@ -1152,43 +1072,36 @@ var FormRender = function FormRender(props, ref) {
1152
1072
  setKmLoading: setKmLoading
1153
1073
  });
1154
1074
  case 4:
1155
- _context6.next = 58;
1075
+ _context6.next = 49;
1156
1076
  break;
1157
1077
  case 6:
1158
1078
  if (!(type === 'expressLogisticsCode')) {
1159
- _context6.next = 18;
1160
- break;
1161
- }
1162
- if ("".concat(value || '').trim()) {
1163
- _context6.next = 9;
1079
+ _context6.next = 16;
1164
1080
  break;
1165
1081
  }
1166
- return _context6.abrupt("return");
1167
- case 9:
1168
- _context6.next = 11;
1082
+ _context6.next = 9;
1169
1083
  return onBlurExpressLogisticsCode({
1170
1084
  form: form,
1171
1085
  value: value,
1172
1086
  templateDetail: templateDetail,
1173
1087
  setKmLoading: setKmLoading,
1174
- componentOnBlur: componentOnBlur,
1175
- sourceUniqueKey: uniqueKey
1088
+ componentOnBlur: componentOnBlur
1176
1089
  });
1177
- case 11:
1090
+ case 9:
1178
1091
  if (!['TR3E2FYXFZCFANVG6O6AALSM' //prod 斯凯奇
1179
1092
  ].includes(companyKey)) {
1180
- _context6.next = 14;
1093
+ _context6.next = 12;
1181
1094
  break;
1182
1095
  }
1183
- _context6.next = 14;
1096
+ _context6.next = 12;
1184
1097
  return onBlurSkxLogisticsCode({
1185
1098
  form: form,
1186
1099
  value: value,
1187
1100
  templateDetail: templateDetail,
1188
1101
  componentOnBlur: componentOnBlur
1189
1102
  });
1190
- case 14:
1191
- _context6.next = 16;
1103
+ case 12:
1104
+ _context6.next = 14;
1192
1105
  return onBlurReturnLogisticsCode({
1193
1106
  form: form,
1194
1107
  value: value,
@@ -1196,38 +1109,15 @@ var FormRender = function FormRender(props, ref) {
1196
1109
  componentOnBlur: componentOnBlur,
1197
1110
  orderBackRule: 'outSid'
1198
1111
  });
1199
- case 16:
1200
- _context6.next = 58;
1201
- break;
1202
- case 18:
1203
- if (!(type === 'interceptCode')) {
1204
- _context6.next = 25;
1205
- break;
1206
- }
1207
- if ("".concat(value || '').trim()) {
1208
- _context6.next = 21;
1209
- break;
1210
- }
1211
- return _context6.abrupt("return");
1212
- case 21:
1213
- _context6.next = 23;
1214
- return onBlurExpressLogisticsCode({
1215
- form: form,
1216
- value: value,
1217
- templateDetail: templateDetail,
1218
- setKmLoading: setKmLoading,
1219
- componentOnBlur: componentOnBlur,
1220
- sourceUniqueKey: uniqueKey
1221
- });
1222
- case 23:
1223
- _context6.next = 58;
1112
+ case 14:
1113
+ _context6.next = 49;
1224
1114
  break;
1225
- case 25:
1115
+ case 16:
1226
1116
  if (!(type === 'returnLogisticsCode')) {
1227
- _context6.next = 30;
1117
+ _context6.next = 21;
1228
1118
  break;
1229
1119
  }
1230
- _context6.next = 28;
1120
+ _context6.next = 19;
1231
1121
  return onBlurReturnLogisticsCode({
1232
1122
  form: form,
1233
1123
  value: value,
@@ -1235,57 +1125,57 @@ var FormRender = function FormRender(props, ref) {
1235
1125
  componentOnBlur: componentOnBlur,
1236
1126
  orderBackRule: 'logisticsCode'
1237
1127
  });
1238
- case 28:
1239
- _context6.next = 58;
1128
+ case 19:
1129
+ _context6.next = 49;
1240
1130
  break;
1241
- case 30:
1131
+ case 21:
1242
1132
  if (!(type === 'skxOutboundNoticeNo')) {
1243
- _context6.next = 36;
1133
+ _context6.next = 27;
1244
1134
  break;
1245
1135
  }
1246
1136
  //[SKX]ON出库通知单号 返填
1247
1137
  console.log('skxOutboundNoticeNo', value);
1248
- _context6.next = 34;
1138
+ _context6.next = 25;
1249
1139
  return onBlurSkxOutboundNoticeNo({
1250
1140
  form: form,
1251
1141
  value: value,
1252
1142
  templateDetail: templateDetail,
1253
1143
  componentOnBlur: componentOnBlur
1254
1144
  });
1255
- case 34:
1256
- _context6.next = 58;
1145
+ case 25:
1146
+ _context6.next = 49;
1257
1147
  break;
1258
- case 36:
1148
+ case 27:
1259
1149
  if (!(type === 'skxReturnBillNo')) {
1260
- _context6.next = 41;
1150
+ _context6.next = 32;
1261
1151
  break;
1262
1152
  }
1263
- _context6.next = 39;
1153
+ _context6.next = 30;
1264
1154
  return onBlurSkxReturnBillNo({
1265
1155
  form: form,
1266
1156
  value: value,
1267
1157
  templateDetail: templateDetail,
1268
1158
  componentOnBlur: componentOnBlur
1269
1159
  });
1270
- case 39:
1271
- _context6.next = 58;
1160
+ case 30:
1161
+ _context6.next = 49;
1272
1162
  break;
1273
- case 41:
1163
+ case 32:
1274
1164
  if (!(type === 'skxReturnTHLogisticsCode')) {
1275
- _context6.next = 46;
1165
+ _context6.next = 37;
1276
1166
  break;
1277
1167
  }
1278
- _context6.next = 44;
1168
+ _context6.next = 35;
1279
1169
  return onBlurSkxReturnTHLogisticsCode({
1280
1170
  form: form,
1281
1171
  value: value,
1282
1172
  templateDetail: templateDetail,
1283
1173
  componentOnBlur: componentOnBlur
1284
1174
  });
1285
- case 44:
1286
- _context6.next = 58;
1175
+ case 35:
1176
+ _context6.next = 49;
1287
1177
  break;
1288
- case 46:
1178
+ case 37:
1289
1179
  // 收集所有需要执行的异步操作
1290
1180
  promises = [];
1291
1181
  if (type === 'tradeId') {
@@ -1297,7 +1187,7 @@ var FormRender = function FormRender(props, ref) {
1297
1187
  promises.push(handleChangeTradeId(value));
1298
1188
  }
1299
1189
  if (value) {
1300
- _context6.next = 53;
1190
+ _context6.next = 44;
1301
1191
  break;
1302
1192
  }
1303
1193
  setReplaceValue(function (prev) {
@@ -1308,24 +1198,24 @@ var FormRender = function FormRender(props, ref) {
1308
1198
  });
1309
1199
  replaceValueRef.current = _objectSpread(_objectSpread({}, replaceValue), {}, _defineProperty({}, type, 0));
1310
1200
  return _context6.abrupt("return");
1311
- case 53:
1201
+ case 44:
1312
1202
  promises.push(queryReplaceCount(_defineProperty({}, type, value), templateDetail));
1313
1203
  // TODO: ERP不走订单反弹逻辑
1314
1204
  if ((type === 'tradeId' || type === 'enterprisePaymentTid') && !isErpUse) {
1315
- promises.push(changeHandle(value, options));
1205
+ promises.push(changeHandle(value));
1316
1206
  }
1317
1207
  // 等待所有异步操作完成
1318
- _context6.next = 57;
1208
+ _context6.next = 48;
1319
1209
  return Promise.all(promises);
1320
- case 57:
1210
+ case 48:
1321
1211
  return _context6.abrupt("return", Promise.resolve());
1322
- case 58:
1212
+ case 49:
1323
1213
  case "end":
1324
1214
  return _context6.stop();
1325
1215
  }
1326
1216
  }, _callee6);
1327
1217
  }));
1328
- return function componentOnBlur(_x11, _x12, _x13, _x14) {
1218
+ return function componentOnBlur(_x10, _x11, _x12) {
1329
1219
  return _ref7.apply(this, arguments);
1330
1220
  };
1331
1221
  }();
@@ -1457,10 +1347,10 @@ var FormRender = function FormRender(props, ref) {
1457
1347
  callKey: 4,
1458
1348
  setLoading: setLoading
1459
1349
  });
1350
+ } else {
1351
+ // 售后单反填
1352
+ afterSaleOrderBack(form, templateDetail);
1460
1353
  }
1461
- } else {
1462
- // 售后单反填
1463
- afterSaleOrderBack(form, templateDetail);
1464
1354
  }
1465
1355
  };
1466
1356
 
@@ -5,16 +5,12 @@ 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, sourceUniqueKey, onlyGetTid, needTradeIdOrderBack, }: {
8
+ export declare const onBlurExpressLogisticsCode: ({ form, value, templateDetail, setKmLoading, componentOnBlur, 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, uniqueKey?: string, options?: {
14
- wdtMatchLogisticsNo?: string;
15
- skipOrderBackUniqueKeys?: string[];
16
- }) => Promise<void>;
17
- sourceUniqueKey?: string | undefined;
13
+ componentOnBlur: (value: any, type: string) => Promise<void>;
18
14
  onlyGetTid?: boolean | undefined;
19
15
  needTradeIdOrderBack?: boolean | undefined;
20
16
  }) => Promise<any>;
@@ -47,11 +47,11 @@ export var onBlurErpAfterSaleTradeId = /*#__PURE__*/function () {
47
47
  export var onBlurExpressLogisticsCode = /*#__PURE__*/function () {
48
48
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
49
49
  var _kmErpVideoComponent$2;
50
- var form, value, templateDetail, setKmLoading, componentOnBlur, sourceUniqueKey, _ref3$onlyGetTid, onlyGetTid, _ref3$needTradeIdOrde, needTradeIdOrderBack, hasTradeIdComponent, kmErpVideoComponent, _res$data, _tradeIdComponent$com, hasKm, hasWdt, userInfo, _userInfo$companyUser, _companyUserConfig$pl, _companyUserConfig, _companyUserConfig$pl2, _companyUserConfig$pl3, _companyUserConfig$pl4, _companyUserConfig2, _companyUserConfig2$p, _companyUserConfig2$p2, companyUserConfig, res, tradeId, tradeIdComponent, newTradeId, blurPromise;
50
+ var form, value, templateDetail, setKmLoading, componentOnBlur, _ref3$onlyGetTid, onlyGetTid, _ref3$needTradeIdOrde, needTradeIdOrderBack, hasTradeIdComponent, kmErpVideoComponent, _res$data, _tradeIdComponent$com, hasKm, hasWdt, userInfo, _userInfo$companyUser, _companyUserConfig$pl, _companyUserConfig, _companyUserConfig$pl2, _companyUserConfig$pl3, _companyUserConfig$pl4, _companyUserConfig2, _companyUserConfig2$p, _companyUserConfig2$p2, companyUserConfig, oldValue, res, tradeId, tradeIdComponent, newTradeId, blurPromise;
51
51
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
52
52
  while (1) switch (_context2.prev = _context2.next) {
53
53
  case 0:
54
- form = _ref3.form, value = _ref3.value, templateDetail = _ref3.templateDetail, setKmLoading = _ref3.setKmLoading, componentOnBlur = _ref3.componentOnBlur, sourceUniqueKey = _ref3.sourceUniqueKey, _ref3$onlyGetTid = _ref3.onlyGetTid, onlyGetTid = _ref3$onlyGetTid === void 0 ? false : _ref3$onlyGetTid, _ref3$needTradeIdOrde = _ref3.needTradeIdOrderBack, needTradeIdOrderBack = _ref3$needTradeIdOrde === void 0 ? true : _ref3$needTradeIdOrde;
54
+ form = _ref3.form, value = _ref3.value, templateDetail = _ref3.templateDetail, setKmLoading = _ref3.setKmLoading, componentOnBlur = _ref3.componentOnBlur, _ref3$onlyGetTid = _ref3.onlyGetTid, onlyGetTid = _ref3$onlyGetTid === void 0 ? false : _ref3$onlyGetTid, _ref3$needTradeIdOrde = _ref3.needTradeIdOrderBack, needTradeIdOrderBack = _ref3$needTradeIdOrde === void 0 ? true : _ref3$needTradeIdOrde;
55
55
  hasTradeIdComponent = templateDetail.componentDtoList.some(function (item) {
56
56
  return item.workOrderComponentType === 'TRADE_ID_INPUT';
57
57
  });
@@ -72,7 +72,7 @@ export var onBlurExpressLogisticsCode = /*#__PURE__*/function () {
72
72
  });
73
73
  case 6:
74
74
  if (!hasTradeIdComponent) {
75
- _context2.next = 35;
75
+ _context2.next = 37;
76
76
  break;
77
77
  }
78
78
  hasKm = false;
@@ -106,59 +106,63 @@ export var onBlurExpressLogisticsCode = /*#__PURE__*/function () {
106
106
  }
107
107
  return _context2.abrupt("return");
108
108
  case 12:
109
+ oldValue = form.getFieldValue('0eVTfMGEyd');
109
110
  if (!hasWdt) {
110
- _context2.next = 18;
111
+ _context2.next = 19;
111
112
  break;
112
113
  }
113
- _context2.next = 15;
114
+ _context2.next = 16;
114
115
  return queryTidByWdtOutSid({
115
116
  outSid: value
116
117
  });
117
- case 15:
118
+ case 16:
118
119
  _context2.t0 = _context2.sent;
119
- _context2.next = 21;
120
+ _context2.next = 22;
120
121
  break;
121
- case 18:
122
- _context2.next = 20;
122
+ case 19:
123
+ _context2.next = 21;
123
124
  return queryTidByOutSid({
124
125
  outSid: value
125
126
  });
126
- case 20:
127
- _context2.t0 = _context2.sent;
128
127
  case 21:
128
+ _context2.t0 = _context2.sent;
129
+ case 22:
129
130
  res = _context2.t0;
130
131
  tradeId = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.tid;
131
132
  if (!onlyGetTid) {
132
- _context2.next = 25;
133
+ _context2.next = 26;
133
134
  break;
134
135
  }
135
136
  return _context2.abrupt("return", tradeId);
136
- case 25:
137
+ case 26:
137
138
  if (tradeId) {
138
- _context2.next = 27;
139
+ _context2.next = 28;
139
140
  break;
140
141
  }
141
142
  return _context2.abrupt("return");
142
- case 27:
143
+ case 28:
143
144
  tradeIdComponent = templateDetail.componentDtoList.find(function (item) {
144
145
  return item.workOrderComponentType === 'TRADE_ID_INPUT';
145
146
  });
146
147
  newTradeId = tradeIdComponent !== null && tradeIdComponent !== void 0 && (_tradeIdComponent$com = tradeIdComponent.componentConfig) !== null && _tradeIdComponent$com !== void 0 && _tradeIdComponent$com.toUpperCase ? tradeId.toUpperCase() : tradeId;
147
- form.setFieldsValue(_defineProperty({}, (tradeIdComponent === null || tradeIdComponent === void 0 ? void 0 : tradeIdComponent.uniqueKey) || 'm3ap1EvEyd', newTradeId));
148
+ form.setFieldsValue({
149
+ m3ap1EvEyd: newTradeId
150
+ });
148
151
  if (!needTradeIdOrderBack) {
149
- _context2.next = 34;
152
+ _context2.next = 35;
150
153
  break;
151
154
  }
152
155
  // 创建一个异步操作的Promise
153
- blurPromise = componentOnBlur(tradeId, 'tradeId', undefined, {
154
- wdtMatchLogisticsNo: value,
155
- skipOrderBackUniqueKeys: sourceUniqueKey ? [sourceUniqueKey] : []
156
- }); // 等待异步操作完成后再执行setTimeout
157
- _context2.next = 34;
156
+ blurPromise = componentOnBlur(tradeId, 'tradeId'); // 等待异步操作完成后再执行setTimeout
157
+ _context2.next = 35;
158
158
  return blurPromise;
159
- case 34:
160
- return _context2.abrupt("return", res.data);
161
159
  case 35:
160
+ // 所有异步操作完成后执行
161
+ form.setFieldsValue({
162
+ '0eVTfMGEyd': oldValue
163
+ });
164
+ return _context2.abrupt("return", res.data);
165
+ case 37:
162
166
  case "end":
163
167
  return _context2.stop();
164
168
  }
@@ -7,4 +7,4 @@
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  */
9
9
  // 切换当前店铺时,以下组件字段需要清空
10
- export var NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE = ['BS_E3_LOGISTICS', 'BS_E3_SEND_GOOD', 'ITEM_SELECT_THIRD', 'STATUS', 'ITEM_SELECT', 'ITEM_ID', 'ITEM_ENCODE', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD', 'BS_GOODS', 'BS_EXCHANGE_GOODS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_SYSTEM_ORDER', 'WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_SYSTEM_ORDER', 'WDT_REISSUE_GOODS', 'WDT_RETURN_GOODS', 'WDT_SHOP', 'WDT_EXCHANGE_GOODS', 'KM_EXCHANGE_GOODS', 'KM_SYSTEM_ORDER', 'KM_SEND_GOOD', 'KM_RETURN_WAREHOUSE', 'KM_LOGISTICS', 'KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_SYSTEM_ORDER', 'JST_SYSTEM_ORDER', 'JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'GY_SYSTEM_ORDER', 'GY_SEND_GOOD', 'GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS', 'GY_LOGISTICS', 'JY_SYSTEM_ORDER', 'JY_SEND_GOOD', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JY_RETURN_GOODS', 'JY_LOGISTICS', 'JKY_SYSTEM_ORDER', 'JKY_SEND_GOOD', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS', 'JKY_RETURN_GOODS', 'JKY_LOGISTICS', 'SKX_OUTBOUND_NOTICE_NO', 'SKX_RETURN_BILL_NO', 'SKX_REFUND_BILL_NO', 'SKX_SHOP_NAME', 'SKX_WAREHOUSE', 'SKX_LOGISTICS', 'SKX_RETURN_LOGISTICS', 'SKX_GOODS', 'SKX_RETURN_GOODS', 'SKX_ORDER_TYPE', 'SKX_RETURN_ORDER_STATUS', 'SKX_ORDER_STATUS', 'SKX_CREATE_TIME'];
10
+ export var NEED_CLEAR_FIELDS_WHEN_SHOP_ID_CHANGE = ['BS_E3_LOGISTICS', 'BS_E3_SEND_GOOD', 'ITEM_SELECT_THIRD', 'STATUS', 'ITEM_SELECT', 'ITEM_ID', 'ITEM_ENCODE', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD', 'BS_GOODS', 'BS_EXCHANGE_GOODS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_SYSTEM_ORDER', 'WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_SYSTEM_ORDER', 'WDT_REISSUE_GOODS', 'WDT_RETURN_GOODS', 'WDT_SHOP', 'WDT_EXCHANGE_GOODS', 'KM_EXCHANGE_GOODS', 'KM_SYSTEM_ORDER', 'KM_SEND_GOOD', 'KM_RETURN_WAREHOUSE', 'KM_LOGISTICS', 'KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_SYSTEM_ORDER', 'JST_SYSTEM_ORDER', 'JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'GY_SYSTEM_ORDER', 'GY_SEND_GOOD', 'GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS', 'GY_LOGISTICS', 'JY_SYSTEM_ORDER', 'JY_SEND_GOOD', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JY_RETURN_GOODS', 'JY_LOGISTICS', 'JKY_SYSTEM_ORDER', 'JKY_SEND_GOOD', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'JKY_RETURN_GOODS', 'JKY_LOGISTICS', 'SKX_OUTBOUND_NOTICE_NO', 'SKX_RETURN_BILL_NO', 'SKX_REFUND_BILL_NO', 'SKX_SHOP_NAME', 'SKX_WAREHOUSE', 'SKX_LOGISTICS', 'SKX_RETURN_LOGISTICS', 'SKX_GOODS', 'SKX_RETURN_GOODS', 'SKX_ORDER_TYPE', 'SKX_RETURN_ORDER_STATUS', 'SKX_ORDER_STATUS', 'SKX_CREATE_TIME'];
@@ -94,18 +94,6 @@ export var SKIP_NODE_TYPES_CONFIG = {
94
94
  name: '获取补发/换货单id(管易退货单接口补发/换货)',
95
95
  tips: '补发单id/换货单id'
96
96
  },
97
- WLN_OBTAIN_REISSUE_ORDER: {
98
- name: '获取补发单id(万里牛)',
99
- tips: '补发单id'
100
- },
101
- WLN_OBTAIN_REISSUE_LOGISTICS: {
102
- name: '获取补发物流单号(万里牛)',
103
- tips: '补发物流信息'
104
- },
105
- WLN_STORE_STATUS: {
106
- name: '退货入库状态(万里牛)',
107
- tips: '万里牛商品入库状态'
108
- },
109
97
  JST_REISSUE_WORK_ORDER: {
110
98
  name: '补发(聚水潭)',
111
99
  tips: '补发单id'
@@ -185,10 +185,6 @@ export var SUBMIT_COMPONENT_STATUS_MAP = {
185
185
  status: 'erpAfterSaleStatusValue',
186
186
  reason: 'erpAfterSaleStatusReason'
187
187
  },
188
- ERP_AFTER_SALES_ORDER_REVIEW_STATUS: {
189
- status: 'erpAfterSalesOrderReviewStatusValue',
190
- reason: 'erpAfterSalesOrderReviewStatusReason'
191
- },
192
188
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
193
189
  status: 'returnExchangeGoodsReviewStatusValue',
194
190
  reason: 'returnExchangeGoodsReviewStatusReason'
@@ -227,10 +223,6 @@ export var SUBMIT_COMPONENT_GOOD_STATUS_MAP = {
227
223
  list: 'wdtInStockStatusItemList',
228
224
  status: 'wdtInStockStatusList'
229
225
  },
230
- WLN_WAREHOUSING_STATUS: {
231
- list: 'wlnInStockStatusItemList',
232
- status: 'wlnInStockStatusList'
233
- },
234
226
  JKY_WAREHOUSING_STATUS: {
235
227
  list: 'jkyInStockStatusItemList',
236
228
  status: 'jkyInStockStatusList'
@@ -404,12 +396,6 @@ export var SUBMIT_COMPONENT_REISSUE_MAP = {
404
396
  goods: 'jkyReissueGoods',
405
397
  shopCode: 'shopCode',
406
398
  systemOrderNo: 'jkySystemOrderNo'
407
- },
408
- WLN_REISSUE_GOODS: {
409
- type: 'wlnReissueType',
410
- goods: 'wlnReissueGoods',
411
- shopCode: 'shopCode',
412
- systemOrderNo: 'wlnSystemOrderNo'
413
399
  }
414
400
  };
415
401
  export var SUBMIT_COMPONENT_RETURN_GOODS_MAP = {
@@ -627,7 +627,7 @@ var handleBsOrWdtReissueGoods = function handleBsOrWdtReissueGoods(_ref46) {
627
627
  if (item.workOrderComponentType !== 'GY_REISSUE_GOODS') {
628
628
  addContent(SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].shopCode, (reissue === null || reissue === void 0 ? void 0 : reissue.shopCode) || '');
629
629
  }
630
- if (item.workOrderComponentType === 'WDT_REISSUE_GOODS' || item.workOrderComponentType === 'JST_REISSUE_GOODS' || item.workOrderComponentType === 'JST_RETURN_GOODS' || item.workOrderComponentType === 'GY_REISSUE_GOODS' || item.workOrderComponentType === 'KM_REISSUE_GOODS' || item.workOrderComponentType === 'JY_REISSUE_GOODS' || item.workOrderComponentType === 'JKY_REISSUE_GOODS' || item.workOrderComponentType === 'WLN_REISSUE_GOODS') {
630
+ if (item.workOrderComponentType === 'WDT_REISSUE_GOODS' || item.workOrderComponentType === 'JST_REISSUE_GOODS' || item.workOrderComponentType === 'JST_RETURN_GOODS' || item.workOrderComponentType === 'GY_REISSUE_GOODS' || item.workOrderComponentType === 'KM_REISSUE_GOODS' || item.workOrderComponentType === 'JY_REISSUE_GOODS' || item.workOrderComponentType === 'JKY_REISSUE_GOODS') {
631
631
  addContent(SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].systemOrderNo, (reissue === null || reissue === void 0 ? void 0 : reissue[SUBMIT_COMPONENT_REISSUE_MAP[item.workOrderComponentType].systemOrderNo]) || '');
632
632
  }
633
633
  // 管易补发商品信息vipCode/shopCode未复现出丢失情况,兜底措施
@@ -931,7 +931,6 @@ var processComponent = function processComponent(_ref63) {
931
931
  case 'REPAIR_ORDER_STATUS':
932
932
  case 'REJECT_REFUND_STATUS':
933
933
  case 'ERP_AFTER_SALE_STATUS':
934
- case 'ERP_AFTER_SALES_ORDER_REVIEW_STATUS':
935
934
  case 'AGREE_RETURN_GOODS_STATUS':
936
935
  case 'REJECT_RETURN_GOODS_STATUS':
937
936
  case 'RETURN_EXCHANGE_GOODS_REVIEW_STATUS':
@@ -943,7 +942,6 @@ var processComponent = function processComponent(_ref63) {
943
942
  case 'BS_E3_WAREHOUSING_STATUS':
944
943
  case 'MSG_STATUS':
945
944
  case 'WDT_WAREHOUSING_STATUS':
946
- case 'WLN_WAREHOUSING_STATUS':
947
945
  case 'JKY_WAREHOUSING_STATUS':
948
946
  wrapFn(handleGoodStatus);
949
947
  break;
@@ -1089,7 +1087,6 @@ var processComponent = function processComponent(_ref63) {
1089
1087
  case 'KM_REISSUE_GOODS':
1090
1088
  case 'JY_REISSUE_GOODS':
1091
1089
  case 'JKY_REISSUE_GOODS':
1092
- case 'WLN_REISSUE_GOODS':
1093
1090
  wrapFn(handleBsOrWdtReissueGoods);
1094
1091
  break;
1095
1092
  case 'BS_RETURN_GOODS':
@@ -40,7 +40,7 @@ export declare const calcWorkOrderList: (source: Partial<WorkOrderDetail>[], tem
40
40
  workOrderComponentType: string;
41
41
  uniqueKey: string;
42
42
  }[], type?: string) => any[];
43
- export declare const orderBack: ({ companyKey, order_no, form, shopId: propsShopid, shopList, templateDetail, type, callback, fromQNCreateWorkOrderByOrderNo, plat, callbackShopId, setLoading, callKey, wdtMatchLogisticsNo, skipOrderBackUniqueKeys, }: any) => Promise<void>;
43
+ export declare const orderBack: ({ companyKey, order_no, form, shopId: propsShopid, shopList, templateDetail, type, callback, fromQNCreateWorkOrderByOrderNo, plat, callbackShopId, setLoading, callKey, }: any) => Promise<void>;
44
44
  export declare const imgResize: (url: string, w?: number, h?: number) => string;
45
45
  export declare const COMPONENT_MAP: {
46
46
  [key: string]: string;
@@ -146,11 +146,11 @@ var getBasicsOrderInfo = function getBasicsOrderInfo(orderInfo, xiaozhiOrder) {
146
146
  export var orderBack = /*#__PURE__*/function () {
147
147
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
148
148
  var _form$getFieldValue;
149
- var companyKey, order_no, form, propsShopid, shopList, templateDetail, _ref$type, type, callback, fromQNCreateWorkOrderByOrderNo, _ref$plat, plat, callbackShopId, setLoading, callKey, wdtMatchLogisticsNo, skipOrderBackUniqueKeys, shopId, canModifyShopFieldValue, shouldTryAutoSetShopId, trySetShopId, _res$data, res, _res$data2, _res$data3, JOIN_SHOP, hasFlagMap, _ref4, shopSourceStr, _ref4$thirdUserNick, thirdUserNick, thirdShopMainType, _kmVideoComponent$com, _wdtReturnBillNoCompo, _data$value, _data$value3, _data$value4, _jstOrder$value, _jstOrder$value2, _bsOrder$value, _wlnOrder$value, _wdtOrder$value, _bsE3Order$value, _kmOrder$value, _gyOrder$value, _jyOrder$value, _skxOrder$value, _skxReturnOrder$value, _jkyOrder$value, _wdtReturnOrder$value, _bsOrders$orders, _bsE3Orders$orderList, _wlnOrders$orders, _wdtOrders$trades, _gyOrders$trades, _jyOrders$trades, _jkyOrders$trades, _kmOrders$orderDetail, _value$selectIds, _value$showOrderInfo, _afterSaleOrders$valu, promise, kmVideoComponent, OrderSubFormComponent, wdtReturnBillNoComponent, _yield$Promise$allSet, _yield$Promise$allSet2, data, afterSaleOrders, xiaozhiOrder, jstOrder, bsOrder, wlnOrder, wdtOrder, bsE3Order, kmOrder, gyOrder, jyOrder, skxOrder, skxReturnOrder, jkyOrder, kmVideoOrder, orderSubFormOrder, wdtReturnOrder, _data$value2, orderInfo, jstOrders, bsOrders, wlnOrders, wdtOrders, bsE3Orders, kmOrders, gyOrders, jyOrders, skxOrders, skxReturnOrders, jkyOrders, wdtReturnOrders, bsInfo, wlnInfo, bsE3Info, wdtInfo, kmInfo, orderSubFormInfo, gyInfo, jyInfo, jkyInfo, jstInfo, skxInfo, skxReturnInfo, formValue, afterSalesOrderField, value, afterSalesOrderSelectOrder, afterSaleOrderInfo, detail, hasSelectItem, erpPromiseList, list, promises, _detail$itemList, hasSigningDatetime, _signDatetime$data, signDatetime, values, paymentUniqueKey;
149
+ var companyKey, order_no, form, propsShopid, shopList, templateDetail, _ref$type, type, callback, fromQNCreateWorkOrderByOrderNo, _ref$plat, plat, callbackShopId, setLoading, callKey, shopId, canModifyShopFieldValue, shouldTryAutoSetShopId, trySetShopId, _res$data, res, _res$data2, _res$data3, JOIN_SHOP, hasFlagMap, _ref4, shopSourceStr, _ref4$thirdUserNick, thirdUserNick, thirdShopMainType, _kmVideoComponent$com, _wdtReturnBillNoCompo, _data$value, _data$value3, _data$value4, _jstOrder$value, _jstOrder$value2, _bsOrder$value, _wlnOrder$value, _wdtOrder$value, _bsE3Order$value, _kmOrder$value, _gyOrder$value, _jyOrder$value, _skxOrder$value, _skxReturnOrder$value, _jkyOrder$value, _wdtReturnOrder$value, _bsOrders$orders, _bsE3Orders$orderList, _wlnOrders$orders, _wdtOrders$trades, _gyOrders$trades, _jyOrders$trades, _jkyOrders$trades, _kmOrders$orderDetail, _value$selectIds, _value$showOrderInfo, _afterSaleOrders$valu, promise, kmVideoComponent, OrderSubFormComponent, wdtReturnBillNoComponent, _yield$Promise$allSet, _yield$Promise$allSet2, data, afterSaleOrders, xiaozhiOrder, jstOrder, bsOrder, wlnOrder, wdtOrder, bsE3Order, kmOrder, gyOrder, jyOrder, skxOrder, skxReturnOrder, jkyOrder, kmVideoOrder, orderSubFormOrder, wdtReturnOrder, _data$value2, orderInfo, jstOrders, bsOrders, wlnOrders, wdtOrders, bsE3Orders, kmOrders, gyOrders, jyOrders, skxOrders, skxReturnOrders, jkyOrders, wdtReturnOrders, bsInfo, wlnInfo, bsE3Info, wdtInfo, kmInfo, orderSubFormInfo, gyInfo, jyInfo, jkyInfo, jstInfo, skxInfo, skxReturnInfo, formValue, afterSalesOrderField, value, afterSalesOrderSelectOrder, afterSaleOrderInfo, detail, hasSelectItem, erpPromiseList, list, promises, _detail$itemList, hasSigningDatetime, _signDatetime$data, signDatetime, values, paymentUniqueKey;
150
150
  return _regeneratorRuntime().wrap(function _callee$(_context) {
151
151
  while (1) switch (_context.prev = _context.next) {
152
152
  case 0:
153
- companyKey = _ref.companyKey, order_no = _ref.order_no, form = _ref.form, propsShopid = _ref.shopId, shopList = _ref.shopList, templateDetail = _ref.templateDetail, _ref$type = _ref.type, type = _ref$type === void 0 ? 'add' : _ref$type, callback = _ref.callback, fromQNCreateWorkOrderByOrderNo = _ref.fromQNCreateWorkOrderByOrderNo, _ref$plat = _ref.plat, plat = _ref$plat === void 0 ? {} : _ref$plat, callbackShopId = _ref.callbackShopId, setLoading = _ref.setLoading, callKey = _ref.callKey, wdtMatchLogisticsNo = _ref.wdtMatchLogisticsNo, skipOrderBackUniqueKeys = _ref.skipOrderBackUniqueKeys;
153
+ companyKey = _ref.companyKey, order_no = _ref.order_no, form = _ref.form, propsShopid = _ref.shopId, shopList = _ref.shopList, templateDetail = _ref.templateDetail, _ref$type = _ref.type, type = _ref$type === void 0 ? 'add' : _ref$type, callback = _ref.callback, fromQNCreateWorkOrderByOrderNo = _ref.fromQNCreateWorkOrderByOrderNo, _ref$plat = _ref.plat, plat = _ref$plat === void 0 ? {} : _ref$plat, callbackShopId = _ref.callbackShopId, setLoading = _ref.setLoading, callKey = _ref.callKey;
154
154
  console.log('orderBack-run--', callKey, templateDetail);
155
155
  shopId = propsShopid;
156
156
  canModifyShopFieldValue = form === null || form === void 0 ? void 0 : (_form$getFieldValue = form.getFieldValue) === null || _form$getFieldValue === void 0 ? void 0 : _form$getFieldValue.call(form, FIXED_FIELD_CAN_MODIFY_SHOP);
@@ -422,7 +422,7 @@ export var orderBack = /*#__PURE__*/function () {
422
422
  });
423
423
  wlnInfo = wlnOrders && wlnOrderTransform(_objectSpread(_objectSpread({}, wlnOrders), {}, {
424
424
  allOrders: wlnOrders.orders
425
- }), form);
425
+ }));
426
426
  bsE3Info = bsE3Orders && bsE3OrderTransform(_objectSpread(_objectSpread({}, bsE3Orders), {}, {
427
427
  componentList: templateDetail.componentDtoList,
428
428
  orderNo: order_no,
@@ -432,8 +432,7 @@ export var orderBack = /*#__PURE__*/function () {
432
432
  componentList: templateDetail.componentDtoList,
433
433
  orderNo: order_no,
434
434
  allOrders: (wdtOrders === null || wdtOrders === void 0 ? void 0 : wdtOrders.trades) || [],
435
- wdtReturnOrders: (wdtReturnOrders === null || wdtReturnOrders === void 0 ? void 0 : wdtReturnOrders.orderList) || [],
436
- matchLogisticsNo: wdtMatchLogisticsNo
435
+ wdtReturnOrders: (wdtReturnOrders === null || wdtReturnOrders === void 0 ? void 0 : wdtReturnOrders.orderList) || []
437
436
  }), form);
438
437
  kmInfo = kmOrders && kmOrderTransform(_objectSpread(_objectSpread({}, kmOrders), {}, {
439
438
  allOrders: (kmOrders === null || kmOrders === void 0 ? void 0 : kmOrders.orderDetailDtoList) || (kmOrders === null || kmOrders === void 0 ? void 0 : kmOrders.trades),
@@ -752,8 +751,7 @@ export var orderBack = /*#__PURE__*/function () {
752
751
  formValue: formValue,
753
752
  templateDetail: templateDetail,
754
753
  type: type,
755
- fromQNCreateWorkOrderByOrderNo: fromQNCreateWorkOrderByOrderNo,
756
- skipOrderBackUniqueKeys: skipOrderBackUniqueKeys
754
+ fromQNCreateWorkOrderByOrderNo: fromQNCreateWorkOrderByOrderNo
757
755
  });
758
756
  pushGyLog('values', values);
759
757
  // console.log('formValue', formValue);
@@ -1157,7 +1155,6 @@ export var reversalFormValues = function reversalFormValues() {
1157
1155
  case 'KM_REISSUE_GOODS':
1158
1156
  case 'JY_REISSUE_GOODS':
1159
1157
  case 'JKY_REISSUE_GOODS':
1160
- case 'WLN_REISSUE_GOODS':
1161
1158
  case 'KM_RETURN_GOODS':
1162
1159
  prv["".concat(next.uniqueKey, "_shopCode")] = values[next.uniqueKey]['shopCode'];
1163
1160
  break;
@@ -1366,7 +1363,7 @@ export var wlnSystemOrderBackValues = function wlnSystemOrderBackValues(_ref11)
1366
1363
  orders: value.selectedRows,
1367
1364
  shopCode: wlnGoodsValue.shopCode,
1368
1365
  allOrders: value === null || value === void 0 ? void 0 : value.orders
1369
- }, form);
1366
+ });
1370
1367
  var values = wlnOrderBackFormValues(orderInfo, {
1371
1368
  componentDtoList: bsGoodsComponent
1372
1369
  });
@@ -7,7 +7,7 @@ var orderBackKeyListMap = {
7
7
  hasKm: ['KM_SYSTEM_ORDER', 'KM_LOGISTICS', 'KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS'],
8
8
  hasWdt: ['WDT_SYSTEM_ORDER', 'WDT_GOODS', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_REISSUE_GOODS', 'WDT_SHOP', 'WDT_RETURN_BILL_NO'],
9
9
  hasBsE3: ['BS_E3_SYSTEM_ORDER', 'BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_LOGISTICS', 'BS_E3_SEND_GOOD'],
10
- hasWln: ['WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'WLN_REISSUE_GOODS'],
10
+ hasWln: ['WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD'],
11
11
  hasGy: ['GY_SYSTEM_ORDER', 'GY_SEND_GOOD', 'GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS', 'GY_LOGISTICS'],
12
12
  hasJy: ['JY_SYSTEM_ORDER', 'JY_SEND_GOOD', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JY_RETURN_GOODS', 'JY_LOGISTICS'],
13
13
  hasSkx: ['SKX_OUTBOUND_NOTICE_NO'],
@@ -437,10 +437,6 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
437
437
  status: 'erpAfterSaleStatusValue',
438
438
  reason: 'erpAfterSaleStatusReason'
439
439
  },
440
- ERP_AFTER_SALES_ORDER_REVIEW_STATUS: {
441
- status: 'erpAfterSalesOrderReviewStatusValue',
442
- reason: 'erpAfterSalesOrderReviewStatusReason'
443
- },
444
440
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
445
441
  status: 'returnExchangeGoodsReviewStatusValue',
446
442
  reason: 'returnExchangeGoodsReviewStatusReason'
@@ -469,8 +465,7 @@ var processSceneStatus = function processSceneStatus(getValue) {
469
465
  BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
470
466
  MSG_STATUS: 'msgStatusValues',
471
467
  WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
472
- JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
473
- WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList'
468
+ JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
474
469
  };
475
470
  return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
476
471
  };
@@ -1219,28 +1214,6 @@ var processJkyReissueGoods = function processJkyReissueGoods(templateColumns) {
1219
1214
  };
1220
1215
  };
1221
1216
  };
1222
- var processWlnReissueGoods = function processWlnReissueGoods(templateColumns) {
1223
- return function (getValue) {
1224
- return function (nex, config) {
1225
- var orderNo = '';
1226
- var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
1227
- return col.workOrderComponentType === 'TRADE_ID_INPUT';
1228
- });
1229
- if (tradeId) {
1230
- orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
1231
- }
1232
- return _defineProperty({}, nex.uniqueKey, {
1233
- wlnSystemOrder: {
1234
- orderNo: orderNo
1235
- },
1236
- wlnReissueType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wlnReissueType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
1237
- wlnReissueGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wlnReissueGoods")), []),
1238
- shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
1239
- wlnSystemOrderNo: getValue("".concat(nex.uniqueKey, "_wlnSystemOrderNo"))
1240
- });
1241
- };
1242
- };
1243
- };
1244
1217
  var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
1245
1218
  return function (getValue) {
1246
1219
  return function (nex, config) {
@@ -1334,14 +1307,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
1334
1307
  };
1335
1308
  var processLabel = function processLabel(getValue) {
1336
1309
  return function (nex, config) {
1337
- var _ref86;
1338
- return _ref86 = {}, _defineProperty(_ref86, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref86, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref86;
1310
+ var _ref85;
1311
+ return _ref85 = {}, _defineProperty(_ref85, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref85, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref85;
1339
1312
  };
1340
1313
  };
1341
1314
  var processMemberLevel = function processMemberLevel(getValue) {
1342
1315
  return function (nex, config) {
1343
- var _ref87;
1344
- return _ref87 = {}, _defineProperty(_ref87, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref87, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref87;
1316
+ var _ref86;
1317
+ return _ref86 = {}, _defineProperty(_ref86, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref86, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref86;
1345
1318
  };
1346
1319
  };
1347
1320
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -1407,9 +1380,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
1407
1380
  BASIC_ADDRESS: processBasicAddress,
1408
1381
  RECEIVER_ADDRESS_INPUT: processReceiverAddressInput,
1409
1382
  SUBFORM: processSubForm,
1410
- ERP_AFTER_SALES_ORDER_REVIEW_STATUS: processCallBackStatus,
1411
- WLN_WAREHOUSING_STATUS: processSceneStatus,
1412
- WLN_REISSUE_GOODS: processWlnReissueGoods(templateColumns),
1383
+ ERP_REMARK: processCallBackStatus,
1413
1384
  EXPRESS_LOGISTICS_SELECT: processExpressLogisticsSelect,
1414
1385
  RETURN_LOGISTICS_SELECT: processReturnLogisticsSelect,
1415
1386
  REMARK_INPUT: processRemarkInput,
@@ -1431,7 +1402,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
1431
1402
  BS_MEMO: processBsMemo,
1432
1403
  REISSUE_LOGISTICS: processReissueLogistics,
1433
1404
  REISSUE_STATUS: processCallBackStatus,
1434
- ERP_REMARK: processCallBackStatus,
1435
1405
  ADJUST_WORK_ORDER_STATUS: processCallBackStatus,
1436
1406
  CREATE_STATUS: processCallBackStatus,
1437
1407
  INVOICE_STATUS: processCallBackStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-work-order-service-component",
3
- "version": "2.7.3-beta.6",
3
+ "version": "2.7.5",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@ant-design/icons": "^4.7.0",
35
- "@kmkf-fe-packages/basic-components": "2.7.3-beta.4",
36
- "@kmkf-fe-packages/kmkf-utils": "2.7.3-beta.4",
37
- "@kmkf-fe-packages/services-components": "2.7.3-beta.4",
35
+ "@kmkf-fe-packages/basic-components": "2.7.4",
36
+ "@kmkf-fe-packages/kmkf-utils": "2.7.4",
37
+ "@kmkf-fe-packages/services-components": "2.7.4",
38
38
  "@reduxjs/toolkit": "^1.8.5",
39
39
  "ahooks": "^3.7.4",
40
40
  "copy-to-clipboard": "^3.3.3",
@@ -75,7 +75,7 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "316d3e34b09f066e0e00c0d9dfb3017ca12df419",
78
+ "gitHead": "2d5c43866a2bbad994263e380c89e3d4b35ecd1f",
79
79
  "gitHooks": {
80
80
  "pre-commit": "lint-staged"
81
81
  }