@kmkf-fe-packages/services-components 2.2.13-beta.10 → 2.2.13-beta.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/esm/commonComponents/GlobalContext/index.js +10 -3
  2. package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
  3. package/dist/esm/commonComponents/OperationLog/index.js +4 -2
  4. package/dist/esm/components/BS/BsSystemOrder/index.js +21 -10
  5. package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
  6. package/dist/esm/components/BS/common/expressCompany.js +14 -1
  7. package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
  8. package/dist/esm/components/Common/constants/bs.js +2 -2
  9. package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
  10. package/dist/esm/components/Common/constants/wdt.js +104 -0
  11. package/dist/esm/components/Common/index.d.ts +1 -1
  12. package/dist/esm/components/Common/index.js +20 -10
  13. package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
  14. package/dist/esm/components/CommonDataTime/index.js +2 -2
  15. package/dist/esm/components/CommonHeaderGood/index.js +311 -118
  16. package/dist/esm/components/File/index.js +0 -1
  17. package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
  18. package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
  19. package/dist/esm/components/GY/GyGoods/index.js +3 -1
  20. package/dist/esm/components/GY/GyReissue/index.js +3 -1
  21. package/dist/esm/components/GY/GyReturn/index.js +3 -1
  22. package/dist/esm/components/JST/JstSendGood/index.js +1 -1
  23. package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
  24. package/dist/esm/components/Picture/index.d.ts +5 -5
  25. package/dist/esm/components/Picture/index.js +20 -20
  26. package/dist/esm/components/PicturePro/index.d.ts +6 -6
  27. package/dist/esm/components/PicturePro/index.js +25 -25
  28. package/dist/esm/components/Public/Goods/index.d.ts +1 -11
  29. package/dist/esm/components/Public/Goods/index.js +9 -1
  30. package/dist/esm/components/Public/ReissueGoods/index.js +7 -3
  31. package/dist/esm/components/Reissue/Logistics/index.js +2 -2
  32. package/dist/esm/components/Remark/index.d.ts +18 -2
  33. package/dist/esm/components/Remark/index.js +37 -2
  34. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  35. package/dist/esm/components/ReturnLogistics/index.js +34 -17
  36. package/dist/esm/components/Select/index.d.ts +1 -0
  37. package/dist/esm/components/Select/index.js +19 -11
  38. package/dist/esm/components/ShopInput/index.d.ts +5 -5
  39. package/dist/esm/components/ShopInput/index.js +12 -9
  40. package/dist/esm/components/WDT/WdtRessuie/index.js +24 -6
  41. package/dist/esm/factory.d.ts +2 -2
  42. package/dist/esm/factory.js +9 -7
  43. package/dist/esm/index.d.ts +1 -0
  44. package/dist/esm/index.js +2 -0
  45. package/package.json +4 -4
  46. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
  47. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
  48. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
  49. package/dist/esm/components/BS/BsGoods/dist/index.js +0 -113
  50. package/dist/esm/components/Common/dist/index.js +0 -1019
@@ -1,12 +1,12 @@
1
1
  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); }
2
+ 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; }
3
+ 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); } }
4
+ 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); }); }; }
2
5
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
7
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
8
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
9
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
8
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
10
10
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
11
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
12
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -15,6 +15,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  import React, { useEffect, useState, useMemo } from "react";
17
17
  import { Skeleton, Button, Alert, Space, message } from "antd";
18
+ import { cloneDeep } from "lodash";
18
19
  import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryLabel, queryAllLogisticsCompany, queryKMLogisticsCompany } from "../../service/api";
19
20
  import { servers, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
20
21
  import useGetErpLogisticsCompany from "./orderQuery/useGetErpLogisticsCompany";
@@ -48,6 +49,12 @@ var Global = function Global(_ref) {
48
49
  try {
49
50
  var _reduxData$main, _reduxData$workOrder, _reduxData$global;
50
51
  var userInfo = (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$main = reduxData.main) === null || _reduxData$main === void 0 ? void 0 : _reduxData$main.userInfo) || (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$workOrder = reduxData.workOrder) === null || _reduxData$workOrder === void 0 ? void 0 : _reduxData$workOrder.userInfo) || (reduxData === null || reduxData === void 0 ? void 0 : (_reduxData$global = reduxData.global) === null || _reduxData$global === void 0 ? void 0 : _reduxData$global.userInfo) || {};
52
+ var companyUserConfig = cloneDeep(userInfo.companyUserConfig);
53
+ if (companyUserConfig && typeof companyUserConfig === "string") {
54
+ userInfo = _objectSpread(_objectSpread({}, userInfo), {}, {
55
+ companyUserConfig: JSON.parse(companyUserConfig)
56
+ });
57
+ }
51
58
  localStorage.setItem("reduxData_userInfo", JSON.stringify(userInfo));
52
59
  } catch (e) {
53
60
  console.error(e);
@@ -4,6 +4,7 @@ declare type OperationLogProps = {
4
4
  operation: string;
5
5
  componentDtoList: any[];
6
6
  plat: any;
7
+ shopList: any[];
7
8
  };
8
- declare const OperationLog: ({ content, operation, componentDtoList, plat, }: OperationLogProps) => React.JSX.Element | null;
9
+ declare const OperationLog: ({ content, operation, componentDtoList, plat, shopList, }: OperationLogProps) => React.JSX.Element | null;
9
10
  export default OperationLog;
@@ -11,7 +11,8 @@ var OperationLog = function OperationLog(_ref) {
11
11
  var content = _ref.content,
12
12
  operation = _ref.operation,
13
13
  componentDtoList = _ref.componentDtoList,
14
- plat = _ref.plat;
14
+ plat = _ref.plat,
15
+ shopList = _ref.shopList;
15
16
  if (!content) return null;
16
17
  try {
17
18
  //todo过滤一些固定字段 展示不确定
@@ -80,7 +81,8 @@ var OperationLog = function OperationLog(_ref) {
80
81
  componentConfig: item.componentConfig,
81
82
  type: item.workOrderComponentType,
82
83
  effects: {
83
- env: plat.platform
84
+ env: plat.platform,
85
+ shopList: shopList
84
86
  }
85
87
  });
86
88
  if (operation !== null && operation !== void 0 && operation.startsWith("UPDATE")) {
@@ -11,11 +11,12 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
11
11
  import React from "react";
12
12
  import GetFormItem from "../../GetFormItem";
13
13
  import ItemView from "../../../commonComponents/ItemView";
14
- import { isNull, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
14
+ import { isNull, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
15
15
  import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
16
16
  import { BsSystemOrderTable } from "../../Common";
17
17
  import { BsHeaderChild } from "../common/index";
18
18
  import { SYMBOL, batchInput } from "../../../constant";
19
+ import { getSystemShowHead } from "@kmkf-fe-packages/kmkf-utils";
19
20
  var typeMap = {
20
21
  BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG,
21
22
  KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG,
@@ -24,13 +25,15 @@ var typeMap = {
24
25
  BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG,
25
26
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG,
26
27
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG,
27
- JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG
28
+ JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG,
29
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG
28
30
  };
29
31
  var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
30
32
  var _this = this,
33
+ _getSystemShowHead,
31
34
  _typeMap$options$type,
32
- _typeMap$options$type2,
33
- _this$componentConfig3;
35
+ _options$componentCon,
36
+ _this$componentConfig5;
34
37
  _classCallCheck(this, BsSystemOrder);
35
38
  _defineProperty(this, "name", void 0);
36
39
  _defineProperty(this, "id", void 0);
@@ -45,12 +48,14 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
45
48
  _defineProperty(this, "dataType", void 0);
46
49
  _defineProperty(this, "children", void 0);
47
50
  _defineProperty(this, "renderClient", function (record) {
51
+ var _this$componentConfig;
48
52
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
49
53
  id: _this.id,
50
54
  label: _this.name,
51
55
  value: /*#__PURE__*/React.createElement(BsSystemOrderTable, {
52
56
  value: record === null || record === void 0 ? void 0 : record["".concat(_this.id)],
53
- type: _this.type
57
+ type: _this.type,
58
+ showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
54
59
  })
55
60
  })) : null;
56
61
  });
@@ -58,13 +63,15 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
58
63
  return null;
59
64
  });
60
65
  _defineProperty(this, "renderLog", function (r) {
66
+ var _this$componentConfig2;
61
67
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)])) return null;
62
68
  return /*#__PURE__*/React.createElement(BsSystemOrderTable, {
63
69
  value: {
64
70
  showOrderInfo: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].key)],
65
71
  selectIds: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[_this.type].selectId)]
66
72
  },
67
- type: _this.type
73
+ type: _this.type,
74
+ showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
68
75
  });
69
76
  });
70
77
  _defineProperty(this, "getComponentValue", function (r) {
@@ -74,7 +81,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
74
81
  return null;
75
82
  });
76
83
  _defineProperty(this, "editRender", function (p) {
77
- var _this$componentConfig, _this$componentConfig2;
84
+ var _this$componentConfig3, _this$componentConfig4;
78
85
  return /*#__PURE__*/React.createElement(GetFormItem, {
79
86
  title: _this.name,
80
87
  name: _this.id,
@@ -82,7 +89,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
82
89
  required: false,
83
90
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
84
91
  display: p === null || p === void 0 ? void 0 : p.display,
85
- tooltip: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.showTooltip ? (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip : "",
92
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
86
93
  component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
87
94
  onChange: p === null || p === void 0 ? void 0 : p.onChange,
88
95
  type: _this.type
@@ -111,7 +118,11 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
111
118
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
112
119
  this.isCombinationComponent = true;
113
120
  this.canSort = false;
114
- this.children = ((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : (_typeMap$options$type2 = _typeMap$options$type.columns) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.map(function (column) {
121
+ this.children = ((_getSystemShowHead = getSystemShowHead({
122
+ columns: ((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.columns) || [],
123
+ showHeader: (options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []
124
+ })) === null || _getSystemShowHead === void 0 ? void 0 : _getSystemShowHead.map(function (column) {
125
+ console.log("column", column, "".concat(options.id, "_").concat(typeMap[options.type].key, "_").concat(column.dataIndex));
115
126
  return new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
116
127
  transformValue: column.render,
117
128
  renderExport: column.renderExport,
@@ -121,7 +132,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
121
132
  }));
122
133
  })) || [];
123
134
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
124
- this.rules = this !== null && this !== void 0 && (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
135
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
125
136
  required: true,
126
137
  validator: function validator(_, value) {
127
138
  var _value$selectIds;
@@ -79,7 +79,7 @@ var HeaderMap = {
79
79
  },
80
80
  share: {
81
81
  component: BsHeaderChild,
82
- name: "分摊价",
82
+ name: "均摊单价",
83
83
  key: "share",
84
84
  width: 120
85
85
  },
@@ -231,7 +231,7 @@ var BsHeaderGods = /*#__PURE__*/function () {
231
231
  skuName: "sku名称",
232
232
  money: "实付金额",
233
233
  number: "数量",
234
- share: "分摊价",
234
+ share: "均摊单价",
235
235
  type: "赠品类型",
236
236
  batch: "批次号",
237
237
  expireDate: "有效期"
@@ -101,7 +101,20 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
101
101
  });
102
102
  _defineProperty(this, "renderExport", function (value, record) {
103
103
  var _this$expressDateInst, _this$expressDateInst2;
104
- return ((_this$expressDateInst = _this.expressDateInstance) === null || _this$expressDateInst === void 0 ? void 0 : (_this$expressDateInst2 = _this$expressDateInst.getExpressNameByCode) === null || _this$expressDateInst2 === void 0 ? void 0 : _this$expressDateInst2.call(_this$expressDateInst, record === null || record === void 0 ? void 0 : record["".concat(_this.id)])) || (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || "--";
104
+ var name = (_this$expressDateInst = _this.expressDateInstance) === null || _this$expressDateInst === void 0 ? void 0 : (_this$expressDateInst2 = _this$expressDateInst.getExpressNameByCode) === null || _this$expressDateInst2 === void 0 ? void 0 : _this$expressDateInst2.call(_this$expressDateInst, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], false);
105
+ if (!name) {
106
+ var _typeMap$_this$type3, _items$find;
107
+ var _this$id$split3 = _this.id.split("_"),
108
+ _this$id$split4 = _slicedToArray(_this$id$split3, 3),
109
+ key = _this$id$split4[0],
110
+ parentKey = _this$id$split4[1],
111
+ childKey = _this$id$split4[2];
112
+ var items = record === null || record === void 0 ? void 0 : record["".concat(key, "_").concat(parentKey, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
113
+ name = items === null || items === void 0 ? void 0 : (_items$find = items.find(function (item) {
114
+ return item.logisticsCompany === (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
115
+ })) === null || _items$find === void 0 ? void 0 : _items$find.logisticsCompanyName;
116
+ }
117
+ return name || (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || "--";
105
118
  });
106
119
  _defineProperty(this, "editRender", function () {
107
120
  return null;
@@ -178,11 +178,14 @@ var BsE3Reissue = /*#__PURE__*/_createClass(function BsE3Reissue(options) {
178
178
  this.rules = this !== null && this !== void 0 && (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
179
179
  required: true,
180
180
  validator: function validator(_, value) {
181
- var _value, _typeMap$options$type6;
181
+ var _value, _typeMap$options$type6, _typeMap$options$type8;
182
182
  if (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.key)]) !== null && _value !== void 0 && _value.length)) {
183
183
  var _typeMap$options$type7;
184
184
  return Promise.reject(new Error("".concat((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.errMsg)));
185
185
  }
186
+ if (!value || !(value !== null && value !== void 0 && value["".concat((_typeMap$options$type8 = typeMap[options.type]) === null || _typeMap$options$type8 === void 0 ? void 0 : _typeMap$options$type8.systemOrderNo)])) {
187
+ return Promise.reject(new Error("\u8BF7\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"));
188
+ }
186
189
  return Promise.resolve();
187
190
  }
188
191
  }] : [];
@@ -61,10 +61,10 @@ var getColumns = function getColumns(_ref) {
61
61
  width: 100
62
62
  }, {
63
63
  dataIndex: "share",
64
- title: "\u5206\u644A\u4EF7",
64
+ title: "\u5747\u644A\u5355\u4EF7",
65
65
  align: "center",
66
66
  ellipsis: true,
67
- width: 70
67
+ width: 120
68
68
  }, {
69
69
  dataIndex: "type",
70
70
  title: "\u8D60\u54C1\u7C7B\u578B",
@@ -60,10 +60,10 @@ var getColumns = function getColumns(_ref) {
60
60
  width: 100
61
61
  }, {
62
62
  dataIndex: "share",
63
- title: "\u5206\u644A\u4EF7",
63
+ title: "\u5747\u644A\u5355\u4EF7",
64
64
  align: "center",
65
65
  ellipsis: true,
66
- width: 70
66
+ width: 120
67
67
  }, {
68
68
  dataIndex: "type",
69
69
  title: "\u8D60\u54C1\u7C7B\u578B",
@@ -299,6 +299,110 @@ var getColumns = function getColumns(_ref) {
299
299
  };
300
300
  return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
301
301
  }
302
+ }],
303
+ //旺店通售后商品信息
304
+ WDT_AFTERSALE_GOODS: [{
305
+ dataIndex: "oid",
306
+ title: "原始子单号",
307
+ align: "center",
308
+ ellipsis: true,
309
+ width: 200
310
+ }, {
311
+ dataIndex: "goodsName",
312
+ title: "货品名称",
313
+ align: "center",
314
+ ellipsis: true,
315
+ width: 150
316
+ }, {
317
+ dataIndex: "goodsNo",
318
+ title: "货品编码",
319
+ align: "center",
320
+ ellipsis: true,
321
+ width: 150
322
+ }, {
323
+ dataIndex: "specName",
324
+ title: "规格名称",
325
+ align: "center",
326
+ ellipsis: true,
327
+ width: 150
328
+ }, {
329
+ dataIndex: "specNo",
330
+ title: "商家编码",
331
+ align: "center",
332
+ ellipsis: true,
333
+ width: 150
334
+ }, {
335
+ dataIndex: "specCode",
336
+ title: "规格编号",
337
+ align: "center",
338
+ ellipsis: true,
339
+ width: 150
340
+ }, {
341
+ dataIndex: "barcode",
342
+ title: "条码",
343
+ align: "center",
344
+ ellipsis: true,
345
+ width: 150
346
+ }, {
347
+ dataIndex: "apiGoodsName",
348
+ title: "平台货品名称",
349
+ align: "center",
350
+ ellipsis: true,
351
+ width: 150
352
+ }, {
353
+ dataIndex: "apiSpecName",
354
+ title: "平台规格名称",
355
+ align: "center",
356
+ ellipsis: true,
357
+ width: 150
358
+ }, {
359
+ dataIndex: "suiteName",
360
+ title: "组合装名称",
361
+ align: "center",
362
+ ellipsis: true,
363
+ width: 150
364
+ }, {
365
+ dataIndex: "suiteNo",
366
+ title: "组合装编号",
367
+ align: "center",
368
+ ellipsis: true,
369
+ width: 150
370
+ }, {
371
+ dataIndex: "stockinNum",
372
+ title: "入库数量",
373
+ align: "center",
374
+ ellipsis: true,
375
+ width: 150
376
+ }, {
377
+ dataIndex: "refundNum",
378
+ title: "退款数量",
379
+ align: "center",
380
+ ellipsis: true,
381
+ width: 150
382
+ }, {
383
+ dataIndex: "totalAmount",
384
+ title: "退货总额",
385
+ align: "center",
386
+ ellipsis: true,
387
+ width: 150
388
+ }, {
389
+ dataIndex: "refundAmount",
390
+ title: "已退款金额",
391
+ align: "center",
392
+ ellipsis: true,
393
+ width: 150
394
+ }, {
395
+ dataIndex: "orderNum",
396
+ title: "实际发出数量",
397
+ align: "center",
398
+ ellipsis: true,
399
+ width: 150
400
+ }, {
401
+ dataIndex: "giftType",
402
+ title: "赠品方式",
403
+ align: "center",
404
+ ellipsis: true,
405
+ width: 150
302
406
  }]
303
407
  };
304
408
  //旺店通补发商品信息
@@ -40,7 +40,7 @@ export declare const BsGoodsTable: ({ list, showHeader, text, type, }: {
40
40
  }) => React.JSX.Element;
41
41
  export declare const FileRender: ({ fileList, canDownload }: any) => React.JSX.Element;
42
42
  export declare const KmVideoRender: ({ fileList, canDownload }: any) => React.JSX.Element;
43
- export declare const BsSystemOrderTable: ({ value, type }: any) => React.JSX.Element;
43
+ export declare const BsSystemOrderTable: ({ value, type, showHeader }: any) => React.JSX.Element;
44
44
  export declare const MsgContent: ({ horizontal, list, valueKey, failValue, options, }: any) => React.JSX.Element;
45
45
  export declare const AlipayBill: (props: any) => React.JSX.Element;
46
46
  export declare const RenderPicturePro: (props: any) => React.JSX.Element;
@@ -15,13 +15,13 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
15
  import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Typography } from "antd";
16
16
  import { DownloadOutlined } from "@ant-design/icons";
17
17
  import React, { useState, useMemo } from "react";
18
- import { ExpressData, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
18
+ import { ExpressData, SendDataCenter, getSystemShowHead } from "@kmkf-fe-packages/kmkf-utils";
19
19
  import { getAlipayBillReceipt } from "../../service/api";
20
20
  import { CopyToClipboard } from "react-copy-to-clipboard";
21
21
  import styles from "./index.module.less";
22
22
  import defaultImg from "./img/default-img.png";
23
23
  import CopyText from "../../commonComponents/CopyText";
24
- import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
24
+ import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
25
25
  import { getColumnsMap } from "./constants/columnsBaseInfoMap";
26
26
  import { VideoCameraTwoTone } from "@ant-design/icons";
27
27
  var Paragraph = Typography.Paragraph;
@@ -272,7 +272,7 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
272
272
  var company = "";
273
273
  if (logisticsCompanyFormType === "input") {
274
274
  company = logisticsCompany;
275
- } else if (platformType === "gy") {
275
+ } else if (["gy", "jy"].includes(platformType)) {
276
276
  // 管易为了兼容之前的补发物流信息,若不存在logisticsCompanyName值则去匹配物流映射列表展示物流公司名称
277
277
  company = ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName;
278
278
  } else {
@@ -305,8 +305,9 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
305
305
  platformType = _ref7$platformType === void 0 ? "default" : _ref7$platformType,
306
306
  logisticsCompanyFormType = _ref7.logisticsCompanyFormType;
307
307
  return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
308
- var logisticsCompany = item.logisticsCompany;
309
- var company = logisticsCompanyFormType === "input" ? logisticsCompany : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany);
308
+ var logisticsCompany = item.logisticsCompany,
309
+ logisticsCompanyName = item.logisticsCompanyName;
310
+ var company = logisticsCompanyFormType === "input" ? logisticsCompany : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany, false) || logisticsCompanyName || logisticsCompany;
310
311
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
311
312
  content: content(item, index),
312
313
  overlayStyle: {
@@ -768,7 +769,9 @@ export var KmVideoRender = function KmVideoRender(_ref13) {
768
769
  };
769
770
  export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
770
771
  var value = _ref14.value,
771
- type = _ref14.type;
772
+ type = _ref14.type,
773
+ _ref14$showHeader = _ref14.showHeader,
774
+ showHeader = _ref14$showHeader === void 0 ? [] : _ref14$showHeader;
772
775
  var columnMap = {
773
776
  BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
774
777
  KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
@@ -777,7 +780,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
777
780
  BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
778
781
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
779
782
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
780
- JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
783
+ JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
784
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
781
785
  };
782
786
  var rowKeyMap = {
783
787
  BS_SYSTEM_ORDER: "billNo",
@@ -787,7 +791,8 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
787
791
  BS_E3_SYSTEM_ORDER: "orderSn",
788
792
  GY_SYSTEM_ORDER: "billNo",
789
793
  JST_SYSTEM_ORDER: "oId",
790
- JY_SYSTEM_ORDER: "tradeNo"
794
+ JY_SYSTEM_ORDER: "tradeNo",
795
+ WDT_RETURN_BILL_NO: "refundNo"
791
796
  };
792
797
  var rowSelection = {
793
798
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
@@ -804,15 +809,20 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref14) {
804
809
  };
805
810
  }
806
811
  };
812
+ var columns = getSystemShowHead({
813
+ columns: columnMap[type] || [],
814
+ showHeader: showHeader
815
+ });
807
816
  return /*#__PURE__*/React.createElement(Table, {
808
817
  dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
809
- columns: columnMap[type] || [],
818
+ columns: columns || [],
810
819
  rowSelection: rowSelection,
811
820
  rowKey: rowKeyMap[type] || "billNo",
812
821
  size: "small",
813
822
  pagination: false,
814
823
  scroll: {
815
- x: "100%"
824
+ x: "100%",
825
+ y: 500
816
826
  },
817
827
  locale: {
818
828
  emptyText: "暂无数据"
@@ -19,8 +19,8 @@ declare class CommonDataTime implements ComponentInterface {
19
19
  constructor(options: PickOption);
20
20
  getValues: (value: string) => string;
21
21
  renderClient: (record: any) => React.JSX.Element | null;
22
- renderPc: (value: any, record: Record) => any;
23
- renderLog: (r: Record) => any;
22
+ renderPc: (value: any, record: Record) => string;
23
+ renderLog: (r: Record) => string | null;
24
24
  getComponentValue: (r: Record) => any;
25
25
  renderExport: (value: any, record: Record) => string;
26
26
  editRender: () => null;
@@ -40,8 +40,8 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
40
40
  }) : null;
41
41
  });
42
42
  _defineProperty(this, "renderPc", function (value, record) {
43
- var _record;
44
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
43
+ var time = record === null || record === void 0 ? void 0 : record["".concat(_this.id)];
44
+ return time ? moment(time).format("YYYY-MM-DD HH:mm:ss") : "--";
45
45
  // if (record?.[`${this.id}`] === undefined) {
46
46
  // return <span>--</span>;
47
47
  // }