@kmkf-fe-packages/kmkf-work-order-service-component 2.7.3-beta.3 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/FlowTemplateDetailV2/common.js +1 -1
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/index.js +92 -197
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/onBlur.d.ts +2 -6
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/onBlur.js +28 -24
- package/dist/esm/FlowTemplateDetailV2/components/XiaozhiConversation/index.d.ts +3 -1
- package/dist/esm/FlowTemplateDetailV2/components/XiaozhiConversation/index.js +17 -7
- package/dist/esm/FlowTemplateDetailV2/constant.js +1 -1
- package/dist/esm/FlowTemplateDetailV2/index.js +9 -7
- package/dist/esm/common/constant.js +0 -12
- package/dist/esm/common/utils/constant.js +0 -14
- package/dist/esm/common/utils/submitDataTransOldFormat.js +1 -4
- package/dist/esm/common/utils/tools.d.ts +1 -1
- package/dist/esm/common/utils/tools.js +6 -9
- package/dist/esm/common/utils/tools_constants.js +1 -1
- package/dist/esm/common/utils/transformWorkOrderData.js +2 -10
- package/dist/esm/model/logicFlow/selector.d.ts +3 -0
- package/dist/esm/model/paymentWorkOrder/selector.d.ts +9 -0
- package/dist/esm/model/singleShopWorkOrder/selector.d.ts +5 -0
- package/package.json +5 -5
- package/dist/esm/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
- package/dist/esm/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
- package/dist/esm/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
- package/dist/esm/common/utils/dist/submitDataTransOldFormat.js +0 -899
- package/dist/esm/common/utils/dist/tools.js +0 -1326
- package/dist/esm/common/utils/dist/transformWorkOrderData.js +0 -965
- package/dist/esm/model/customizeWorkOrder/dist/api.js +0 -48
- package/dist/esm/model/customizeWorkOrder/dist/index.js +0 -370
- package/dist/esm/model/customizeWorkOrder/dist/selector.js +0 -63
- package/dist/esm/model/customizeWorkOrder/dist/types.js +0 -3
- package/dist/esm/model/dist/global.js +0 -44
- package/dist/esm/model/dist/hooks.js +0 -15
- package/dist/esm/model/dist/login.js +0 -245
- package/dist/esm/model/dist/store.js +0 -30
- package/dist/esm/model/dist/userData.js +0 -41
- package/dist/esm/model/dist/workOrder.js +0 -329
- package/dist/esm/model/flowTemplateDetail/dist/api.js +0 -192
- package/dist/esm/model/flowTemplateDetail/dist/types.js +0 -48
- package/dist/esm/model/logicFlow/dist/api.js +0 -14
- package/dist/esm/model/logicFlow/dist/index.js +0 -235
- package/dist/esm/model/logicFlow/dist/selector.js +0 -18
- package/dist/esm/model/logicFlow/dist/types.js +0 -3
- package/dist/esm/model/paymentWorkOrder/dist/index.js +0 -77
- package/dist/esm/model/paymentWorkOrder/dist/selector.js +0 -36
- package/dist/esm/model/paymentWorkOrder/dist/types.js +0 -3
- package/dist/esm/model/servers/dist/api.js +0 -545
- package/dist/esm/model/servers/dist/request.js +0 -63
- package/dist/esm/model/singleShopWorkOrder/dist/index.js +0 -216
- package/dist/esm/model/singleShopWorkOrder/dist/selector.js +0 -24
- package/dist/esm/model/singleShopWorkOrder/dist/types.js +0 -3
- package/dist/esm/model/types/dist/login.js +0 -3
- package/dist/esm/model/types/dist/singleWorkOrder.js +0 -3
- package/dist/esm/model/types/dist/workOrder.js +0 -3
|
@@ -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', '
|
|
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, _record$jsonMap4, currentNodeTradeIdUniqueKey, _currentNodeTid,
|
|
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 =
|
|
444
|
+
_context2.next = 58;
|
|
446
445
|
break;
|
|
447
446
|
}
|
|
448
447
|
// 先初始化端上内容
|
|
@@ -475,45 +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 =
|
|
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
|
-
|
|
484
|
-
|
|
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;
|
|
508
|
-
tradeId = _currentNodeTid || preTradeId;
|
|
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")];
|
|
509
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;
|
|
489
|
+
tradeId = _currentNodeTid || preTradeId;
|
|
510
490
|
if (!tradeId) {
|
|
511
|
-
_context2.next =
|
|
491
|
+
_context2.next = 38;
|
|
512
492
|
break;
|
|
513
493
|
}
|
|
514
494
|
queryLabels(tradeId, shopId);
|
|
515
495
|
queryMemberLevels(tradeId, shopId);
|
|
516
|
-
_context2.next =
|
|
496
|
+
_context2.next = 36;
|
|
517
497
|
return orderBack({
|
|
518
498
|
companyKey: companyKey,
|
|
519
499
|
order_no: tradeId,
|
|
@@ -525,19 +505,17 @@ var FormRender = function FormRender(props, ref) {
|
|
|
525
505
|
fromQNCreateWorkOrderByOrderNo: fromQNCreateWorkOrderByOrderNo,
|
|
526
506
|
plat: plat,
|
|
527
507
|
callKey: 1,
|
|
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] : []
|
|
508
|
+
setLoading: setLoading
|
|
531
509
|
});
|
|
532
|
-
case
|
|
533
|
-
_context2.next =
|
|
510
|
+
case 36:
|
|
511
|
+
_context2.next = 51;
|
|
534
512
|
break;
|
|
535
|
-
case
|
|
513
|
+
case 38:
|
|
536
514
|
if (!isSkx) {
|
|
537
|
-
_context2.next =
|
|
515
|
+
_context2.next = 44;
|
|
538
516
|
break;
|
|
539
517
|
}
|
|
540
|
-
_context2.next =
|
|
518
|
+
_context2.next = 41;
|
|
541
519
|
return skxOrderBack({
|
|
542
520
|
form: form,
|
|
543
521
|
companyKey: companyKey,
|
|
@@ -545,91 +523,40 @@ var FormRender = function FormRender(props, ref) {
|
|
|
545
523
|
componentOnBlur: componentOnBlur,
|
|
546
524
|
jsonMap: record === null || record === void 0 ? void 0 : record.jsonMap
|
|
547
525
|
});
|
|
548
|
-
case
|
|
526
|
+
case 41:
|
|
549
527
|
// 售后单反填
|
|
550
528
|
afterSaleOrderBack(form, templateDetail);
|
|
551
|
-
_context2.next =
|
|
529
|
+
_context2.next = 51;
|
|
552
530
|
break;
|
|
553
|
-
case
|
|
554
|
-
if (!
|
|
555
|
-
_context2.next =
|
|
556
|
-
break;
|
|
557
|
-
}
|
|
558
|
-
_iterator = _createForOfIteratorHelper(logisticsOrderBackSources);
|
|
559
|
-
_context2.prev = 43;
|
|
560
|
-
_iterator.s();
|
|
561
|
-
case 45:
|
|
562
|
-
if ((_step = _iterator.n()).done) {
|
|
563
|
-
_context2.next = 52;
|
|
531
|
+
case 44:
|
|
532
|
+
if (!(hasWdt && currentNodeLogisticsCode)) {
|
|
533
|
+
_context2.next = 50;
|
|
564
534
|
break;
|
|
565
535
|
}
|
|
566
|
-
|
|
536
|
+
// 售后单反填
|
|
567
537
|
afterSaleOrderBack(form, templateDetail);
|
|
568
|
-
_context2.next =
|
|
569
|
-
return
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
templateDetail: templateDetail,
|
|
573
|
-
setKmLoading: setKmLoading,
|
|
574
|
-
componentOnBlur: componentOnBlur,
|
|
575
|
-
sourceUniqueKey: source.uniqueKey
|
|
576
|
-
});
|
|
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;
|
|
538
|
+
_context2.next = 48;
|
|
539
|
+
return componentOnBlur(currentNodeLogisticsCode, 'expressLogisticsCode');
|
|
540
|
+
case 48:
|
|
541
|
+
_context2.next = 51;
|
|
593
542
|
break;
|
|
594
|
-
case
|
|
543
|
+
case 50:
|
|
595
544
|
// 售后单反填
|
|
596
545
|
afterSaleOrderBack(form, templateDetail);
|
|
597
|
-
|
|
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:
|
|
546
|
+
case 51:
|
|
620
547
|
// 仅在依赖值有值且映射值为空时触发一次映射
|
|
621
548
|
batchFillByMappingWhenTargetEmpty(initialValues);
|
|
622
|
-
_context2.next =
|
|
549
|
+
_context2.next = 56;
|
|
623
550
|
break;
|
|
624
|
-
case
|
|
551
|
+
case 54:
|
|
625
552
|
// 如果没有订单反填,则单独更新remark
|
|
626
553
|
fetchRemark(shopId, currentNodeTid);
|
|
627
554
|
// 售后单反填
|
|
628
555
|
afterSaleOrderBack(form, templateDetail);
|
|
629
|
-
case
|
|
630
|
-
_context2.next =
|
|
556
|
+
case 56:
|
|
557
|
+
_context2.next = 82;
|
|
631
558
|
break;
|
|
632
|
-
case
|
|
559
|
+
case 58:
|
|
633
560
|
fillByShopId(shopId);
|
|
634
561
|
initFormValues = null;
|
|
635
562
|
if (plat !== null && plat !== void 0 && plat.subOrderNo) {
|
|
@@ -648,7 +575,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
648
575
|
|
|
649
576
|
// console.log(orderNo, initFormValues);
|
|
650
577
|
if (!initFormValues) {
|
|
651
|
-
_context2.next =
|
|
578
|
+
_context2.next = 69;
|
|
652
579
|
break;
|
|
653
580
|
}
|
|
654
581
|
form.setFieldsValue(_objectSpread(_objectSpread({}, initFormValues), {}, {
|
|
@@ -665,9 +592,9 @@ var FormRender = function FormRender(props, ref) {
|
|
|
665
592
|
_orderNo = orderNoField !== null && orderNoField !== void 0 && orderNoField.uniqueKey ? initFormValues[orderNoField === null || orderNoField === void 0 ? void 0 : orderNoField.uniqueKey] || _orderNo : _orderNo;
|
|
666
593
|
}
|
|
667
594
|
fetchRemark(_shopId, _orderNo);
|
|
668
|
-
_context2.next =
|
|
595
|
+
_context2.next = 82;
|
|
669
596
|
break;
|
|
670
|
-
case
|
|
597
|
+
case 69:
|
|
671
598
|
_transData = calcWorkOrderList([{
|
|
672
599
|
jsonMap: jsonMap
|
|
673
600
|
}], [].concat(_toConsumableArray((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.preNodeComponentDtoList) || []), _toConsumableArray((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || [])), 'init');
|
|
@@ -679,12 +606,12 @@ var FormRender = function FormRender(props, ref) {
|
|
|
679
606
|
batchFillByMapping(_initialValues);
|
|
680
607
|
//如果有订单号 订单返填 通过订单号入口进行工单录入,需要将订单数据反填到工单
|
|
681
608
|
if (!(orderNo && shopId)) {
|
|
682
|
-
_context2.next =
|
|
609
|
+
_context2.next = 80;
|
|
683
610
|
break;
|
|
684
611
|
}
|
|
685
612
|
queryLabels(orderNo, shopId);
|
|
686
613
|
queryMemberLevels(orderNo, shopId);
|
|
687
|
-
_context2.next =
|
|
614
|
+
_context2.next = 78;
|
|
688
615
|
return orderBack({
|
|
689
616
|
companyKey: companyKey,
|
|
690
617
|
order_no: orderNo,
|
|
@@ -699,15 +626,15 @@ var FormRender = function FormRender(props, ref) {
|
|
|
699
626
|
callKey: 2,
|
|
700
627
|
setLoading: setLoading
|
|
701
628
|
});
|
|
702
|
-
case
|
|
703
|
-
_context2.next =
|
|
629
|
+
case 78:
|
|
630
|
+
_context2.next = 82;
|
|
704
631
|
break;
|
|
705
|
-
case
|
|
632
|
+
case 80:
|
|
706
633
|
// 如果没有订单反填,则单独更新remark
|
|
707
634
|
fetchRemark(shopId, currentNodeTid);
|
|
708
635
|
// 售后单反填
|
|
709
636
|
afterSaleOrderBack(form, templateDetail);
|
|
710
|
-
case
|
|
637
|
+
case 82:
|
|
711
638
|
antFormEl = document.getElementsByClassName('ant-form');
|
|
712
639
|
(antFormEl === null || antFormEl === void 0 ? void 0 : antFormEl.length) > 0 && set(antFormEl, '0.scrollTop', 0);
|
|
713
640
|
resetMappingHideComponents();
|
|
@@ -716,11 +643,11 @@ var FormRender = function FormRender(props, ref) {
|
|
|
716
643
|
type: 'setaAutoSubmitFlag',
|
|
717
644
|
payload: true
|
|
718
645
|
});
|
|
719
|
-
case
|
|
646
|
+
case 86:
|
|
720
647
|
case "end":
|
|
721
648
|
return _context2.stop();
|
|
722
649
|
}
|
|
723
|
-
}, _callee2
|
|
650
|
+
}, _callee2);
|
|
724
651
|
}));
|
|
725
652
|
return function queryDetail(_x4) {
|
|
726
653
|
return _ref3.apply(this, arguments);
|
|
@@ -968,7 +895,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
968
895
|
|
|
969
896
|
//订单返填
|
|
970
897
|
var changeHandle = /*#__PURE__*/function () {
|
|
971
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(order_no
|
|
898
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(order_no) {
|
|
972
899
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
973
900
|
while (1) switch (_context5.prev = _context5.next) {
|
|
974
901
|
case 0:
|
|
@@ -1001,9 +928,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1001
928
|
}, 0);
|
|
1002
929
|
},
|
|
1003
930
|
callKey: 3,
|
|
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
|
|
931
|
+
setLoading: setLoading
|
|
1007
932
|
});
|
|
1008
933
|
case 5:
|
|
1009
934
|
case "end":
|
|
@@ -1011,7 +936,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1011
936
|
}
|
|
1012
937
|
}, _callee5);
|
|
1013
938
|
}));
|
|
1014
|
-
return function changeHandle(_x9
|
|
939
|
+
return function changeHandle(_x9) {
|
|
1015
940
|
return _ref6.apply(this, arguments);
|
|
1016
941
|
};
|
|
1017
942
|
}();
|
|
@@ -1121,7 +1046,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1121
1046
|
|
|
1122
1047
|
//组件失焦事件
|
|
1123
1048
|
var componentOnBlur = /*#__PURE__*/function () {
|
|
1124
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(value, type, uniqueKey
|
|
1049
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(value, type, uniqueKey) {
|
|
1125
1050
|
var promises;
|
|
1126
1051
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
1127
1052
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -1147,43 +1072,36 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1147
1072
|
setKmLoading: setKmLoading
|
|
1148
1073
|
});
|
|
1149
1074
|
case 4:
|
|
1150
|
-
_context6.next =
|
|
1075
|
+
_context6.next = 49;
|
|
1151
1076
|
break;
|
|
1152
1077
|
case 6:
|
|
1153
1078
|
if (!(type === 'expressLogisticsCode')) {
|
|
1154
|
-
_context6.next =
|
|
1155
|
-
break;
|
|
1156
|
-
}
|
|
1157
|
-
if ("".concat(value || '').trim()) {
|
|
1158
|
-
_context6.next = 9;
|
|
1079
|
+
_context6.next = 16;
|
|
1159
1080
|
break;
|
|
1160
1081
|
}
|
|
1161
|
-
|
|
1162
|
-
case 9:
|
|
1163
|
-
_context6.next = 11;
|
|
1082
|
+
_context6.next = 9;
|
|
1164
1083
|
return onBlurExpressLogisticsCode({
|
|
1165
1084
|
form: form,
|
|
1166
1085
|
value: value,
|
|
1167
1086
|
templateDetail: templateDetail,
|
|
1168
1087
|
setKmLoading: setKmLoading,
|
|
1169
|
-
componentOnBlur: componentOnBlur
|
|
1170
|
-
sourceUniqueKey: uniqueKey
|
|
1088
|
+
componentOnBlur: componentOnBlur
|
|
1171
1089
|
});
|
|
1172
|
-
case
|
|
1090
|
+
case 9:
|
|
1173
1091
|
if (!['TR3E2FYXFZCFANVG6O6AALSM' //prod 斯凯奇
|
|
1174
1092
|
].includes(companyKey)) {
|
|
1175
|
-
_context6.next =
|
|
1093
|
+
_context6.next = 12;
|
|
1176
1094
|
break;
|
|
1177
1095
|
}
|
|
1178
|
-
_context6.next =
|
|
1096
|
+
_context6.next = 12;
|
|
1179
1097
|
return onBlurSkxLogisticsCode({
|
|
1180
1098
|
form: form,
|
|
1181
1099
|
value: value,
|
|
1182
1100
|
templateDetail: templateDetail,
|
|
1183
1101
|
componentOnBlur: componentOnBlur
|
|
1184
1102
|
});
|
|
1185
|
-
case
|
|
1186
|
-
_context6.next =
|
|
1103
|
+
case 12:
|
|
1104
|
+
_context6.next = 14;
|
|
1187
1105
|
return onBlurReturnLogisticsCode({
|
|
1188
1106
|
form: form,
|
|
1189
1107
|
value: value,
|
|
@@ -1191,38 +1109,15 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1191
1109
|
componentOnBlur: componentOnBlur,
|
|
1192
1110
|
orderBackRule: 'outSid'
|
|
1193
1111
|
});
|
|
1194
|
-
case
|
|
1195
|
-
_context6.next =
|
|
1196
|
-
break;
|
|
1197
|
-
case 18:
|
|
1198
|
-
if (!(type === 'interceptCode')) {
|
|
1199
|
-
_context6.next = 25;
|
|
1200
|
-
break;
|
|
1201
|
-
}
|
|
1202
|
-
if ("".concat(value || '').trim()) {
|
|
1203
|
-
_context6.next = 21;
|
|
1204
|
-
break;
|
|
1205
|
-
}
|
|
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;
|
|
1112
|
+
case 14:
|
|
1113
|
+
_context6.next = 49;
|
|
1219
1114
|
break;
|
|
1220
|
-
case
|
|
1115
|
+
case 16:
|
|
1221
1116
|
if (!(type === 'returnLogisticsCode')) {
|
|
1222
|
-
_context6.next =
|
|
1117
|
+
_context6.next = 21;
|
|
1223
1118
|
break;
|
|
1224
1119
|
}
|
|
1225
|
-
_context6.next =
|
|
1120
|
+
_context6.next = 19;
|
|
1226
1121
|
return onBlurReturnLogisticsCode({
|
|
1227
1122
|
form: form,
|
|
1228
1123
|
value: value,
|
|
@@ -1230,57 +1125,57 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1230
1125
|
componentOnBlur: componentOnBlur,
|
|
1231
1126
|
orderBackRule: 'logisticsCode'
|
|
1232
1127
|
});
|
|
1233
|
-
case
|
|
1234
|
-
_context6.next =
|
|
1128
|
+
case 19:
|
|
1129
|
+
_context6.next = 49;
|
|
1235
1130
|
break;
|
|
1236
|
-
case
|
|
1131
|
+
case 21:
|
|
1237
1132
|
if (!(type === 'skxOutboundNoticeNo')) {
|
|
1238
|
-
_context6.next =
|
|
1133
|
+
_context6.next = 27;
|
|
1239
1134
|
break;
|
|
1240
1135
|
}
|
|
1241
1136
|
//[SKX]ON出库通知单号 返填
|
|
1242
1137
|
console.log('skxOutboundNoticeNo', value);
|
|
1243
|
-
_context6.next =
|
|
1138
|
+
_context6.next = 25;
|
|
1244
1139
|
return onBlurSkxOutboundNoticeNo({
|
|
1245
1140
|
form: form,
|
|
1246
1141
|
value: value,
|
|
1247
1142
|
templateDetail: templateDetail,
|
|
1248
1143
|
componentOnBlur: componentOnBlur
|
|
1249
1144
|
});
|
|
1250
|
-
case
|
|
1251
|
-
_context6.next =
|
|
1145
|
+
case 25:
|
|
1146
|
+
_context6.next = 49;
|
|
1252
1147
|
break;
|
|
1253
|
-
case
|
|
1148
|
+
case 27:
|
|
1254
1149
|
if (!(type === 'skxReturnBillNo')) {
|
|
1255
|
-
_context6.next =
|
|
1150
|
+
_context6.next = 32;
|
|
1256
1151
|
break;
|
|
1257
1152
|
}
|
|
1258
|
-
_context6.next =
|
|
1153
|
+
_context6.next = 30;
|
|
1259
1154
|
return onBlurSkxReturnBillNo({
|
|
1260
1155
|
form: form,
|
|
1261
1156
|
value: value,
|
|
1262
1157
|
templateDetail: templateDetail,
|
|
1263
1158
|
componentOnBlur: componentOnBlur
|
|
1264
1159
|
});
|
|
1265
|
-
case
|
|
1266
|
-
_context6.next =
|
|
1160
|
+
case 30:
|
|
1161
|
+
_context6.next = 49;
|
|
1267
1162
|
break;
|
|
1268
|
-
case
|
|
1163
|
+
case 32:
|
|
1269
1164
|
if (!(type === 'skxReturnTHLogisticsCode')) {
|
|
1270
|
-
_context6.next =
|
|
1165
|
+
_context6.next = 37;
|
|
1271
1166
|
break;
|
|
1272
1167
|
}
|
|
1273
|
-
_context6.next =
|
|
1168
|
+
_context6.next = 35;
|
|
1274
1169
|
return onBlurSkxReturnTHLogisticsCode({
|
|
1275
1170
|
form: form,
|
|
1276
1171
|
value: value,
|
|
1277
1172
|
templateDetail: templateDetail,
|
|
1278
1173
|
componentOnBlur: componentOnBlur
|
|
1279
1174
|
});
|
|
1280
|
-
case
|
|
1281
|
-
_context6.next =
|
|
1175
|
+
case 35:
|
|
1176
|
+
_context6.next = 49;
|
|
1282
1177
|
break;
|
|
1283
|
-
case
|
|
1178
|
+
case 37:
|
|
1284
1179
|
// 收集所有需要执行的异步操作
|
|
1285
1180
|
promises = [];
|
|
1286
1181
|
if (type === 'tradeId') {
|
|
@@ -1292,7 +1187,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1292
1187
|
promises.push(handleChangeTradeId(value));
|
|
1293
1188
|
}
|
|
1294
1189
|
if (value) {
|
|
1295
|
-
_context6.next =
|
|
1190
|
+
_context6.next = 44;
|
|
1296
1191
|
break;
|
|
1297
1192
|
}
|
|
1298
1193
|
setReplaceValue(function (prev) {
|
|
@@ -1303,24 +1198,24 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1303
1198
|
});
|
|
1304
1199
|
replaceValueRef.current = _objectSpread(_objectSpread({}, replaceValue), {}, _defineProperty({}, type, 0));
|
|
1305
1200
|
return _context6.abrupt("return");
|
|
1306
|
-
case
|
|
1201
|
+
case 44:
|
|
1307
1202
|
promises.push(queryReplaceCount(_defineProperty({}, type, value), templateDetail));
|
|
1308
1203
|
// TODO: ERP不走订单反弹逻辑
|
|
1309
1204
|
if ((type === 'tradeId' || type === 'enterprisePaymentTid') && !isErpUse) {
|
|
1310
|
-
promises.push(changeHandle(value
|
|
1205
|
+
promises.push(changeHandle(value));
|
|
1311
1206
|
}
|
|
1312
1207
|
// 等待所有异步操作完成
|
|
1313
|
-
_context6.next =
|
|
1208
|
+
_context6.next = 48;
|
|
1314
1209
|
return Promise.all(promises);
|
|
1315
|
-
case
|
|
1210
|
+
case 48:
|
|
1316
1211
|
return _context6.abrupt("return", Promise.resolve());
|
|
1317
|
-
case
|
|
1212
|
+
case 49:
|
|
1318
1213
|
case "end":
|
|
1319
1214
|
return _context6.stop();
|
|
1320
1215
|
}
|
|
1321
1216
|
}, _callee6);
|
|
1322
1217
|
}));
|
|
1323
|
-
return function componentOnBlur(_x11, _x12
|
|
1218
|
+
return function componentOnBlur(_x10, _x11, _x12) {
|
|
1324
1219
|
return _ref7.apply(this, arguments);
|
|
1325
1220
|
};
|
|
1326
1221
|
}();
|
|
@@ -1452,10 +1347,10 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1452
1347
|
callKey: 4,
|
|
1453
1348
|
setLoading: setLoading
|
|
1454
1349
|
});
|
|
1350
|
+
} else {
|
|
1351
|
+
// 售后单反填
|
|
1352
|
+
afterSaleOrderBack(form, templateDetail);
|
|
1455
1353
|
}
|
|
1456
|
-
} else {
|
|
1457
|
-
// 售后单反填
|
|
1458
|
-
afterSaleOrderBack(form, templateDetail);
|
|
1459
1354
|
}
|
|
1460
1355
|
};
|
|
1461
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,
|
|
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
|
|
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>;
|