@kmkf-fe-packages/services-components 2.0.4 → 2.0.10

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 (27) hide show
  1. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +3 -0
  2. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +55 -0
  3. package/dist/esm/commonComponents/GlobalContext/index.d.ts +2 -1
  4. package/dist/esm/commonComponents/GlobalContext/index.js +107 -29
  5. package/dist/esm/commonComponents/GlobalContext/orderQuery/type.d.ts +1 -0
  6. package/dist/esm/commonComponents/GlobalContext/orderQuery/type.js +1 -0
  7. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.d.ts +3 -0
  8. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +79 -0
  9. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.d.ts +3 -0
  10. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +80 -0
  11. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.d.ts +3 -0
  12. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +78 -0
  13. package/dist/esm/components/BS/BsLogistics/index.js +22 -9
  14. package/dist/esm/components/BS/common/expressCode.js +3 -0
  15. package/dist/esm/components/BS/common/expressCompany.js +3 -0
  16. package/dist/esm/components/PostIng/index.js +10 -18
  17. package/dist/esm/components/Reissue/Logistics/index.d.ts +1 -0
  18. package/dist/esm/components/Reissue/Logistics/index.js +6 -2
  19. package/dist/esm/components/StatusSelect/constants.d.ts +18 -0
  20. package/dist/esm/components/StatusSelect/constants.js +23 -0
  21. package/dist/esm/components/StatusSelect/index.d.ts +10 -6
  22. package/dist/esm/components/StatusSelect/index.js +49 -110
  23. package/dist/esm/factory.d.ts +1 -1
  24. package/dist/esm/factory.js +3 -0
  25. package/dist/esm/service/api.d.ts +1 -1
  26. package/dist/esm/service/api.js +52 -66
  27. package/package.json +4 -4
@@ -0,0 +1,78 @@
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); }); }; }
5
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
+ 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."); }
7
+ 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); }
8
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
+ import { useEffect, useState } from "react";
12
+ import useGetHasErpData from "../hook/useGetHasErpData";
13
+ import { SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
14
+ function useGetErpSendData(notJudgedErp) {
15
+ var _useState = useState("loading"),
16
+ _useState2 = _slicedToArray(_useState, 2),
17
+ globalState = _useState2[0],
18
+ setGlobalState = _useState2[1];
19
+ var hasErpData = useGetHasErpData();
20
+ useEffect(function () {
21
+ asyncQueryData(hasErpData, notJudgedErp);
22
+ }, [hasErpData, notJudgedErp]);
23
+ var asyncQueryData = /*#__PURE__*/function () {
24
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(hasErpData, notJudgedErp, isReload) {
25
+ var hasWdt, hasGy, promises;
26
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
27
+ while (1) switch (_context.prev = _context.next) {
28
+ case 0:
29
+ if (!isReload) {
30
+ setGlobalState("loading");
31
+ }
32
+ _context.prev = 1;
33
+ hasWdt = hasErpData.hasWdt, hasGy = hasErpData.hasGy;
34
+ promises = [];
35
+ if (hasWdt || notJudgedErp) promises.push(SendDataCenter.getInstance("wdt").fetchData);
36
+ if (hasGy || notJudgedErp) promises.push(SendDataCenter.getInstance("gy").fetchData);
37
+ _context.next = 8;
38
+ return Promise.all(promises.map(function (promise) {
39
+ return promise();
40
+ }));
41
+ case 8:
42
+ setGlobalState("success");
43
+ _context.next = 14;
44
+ break;
45
+ case 11:
46
+ _context.prev = 11;
47
+ _context.t0 = _context["catch"](1);
48
+ setGlobalState("failed");
49
+ case 14:
50
+ case "end":
51
+ return _context.stop();
52
+ }
53
+ }, _callee, null, [[1, 11]]);
54
+ }));
55
+ return function asyncQueryData(_x2, _x3, _x4) {
56
+ return _ref.apply(this, arguments);
57
+ };
58
+ }();
59
+ var onReload = /*#__PURE__*/function () {
60
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
61
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
62
+ while (1) switch (_context2.prev = _context2.next) {
63
+ case 0:
64
+ _context2.next = 2;
65
+ return asyncQueryData(hasErpData, notJudgedErp, true);
66
+ case 2:
67
+ case "end":
68
+ return _context2.stop();
69
+ }
70
+ }, _callee2);
71
+ }));
72
+ return function onReload() {
73
+ return _ref2.apply(this, arguments);
74
+ };
75
+ }();
76
+ return [globalState, onReload];
77
+ }
78
+ export default useGetErpSendData;
@@ -24,35 +24,48 @@ var typeMap = {
24
24
  name: "bs",
25
25
  company: "bsLogisticsCompany",
26
26
  code: "bsLogisticsCode",
27
- platformType: "default"
27
+ platformType: "default",
28
+ companyDataType: "arrayObject"
28
29
  },
29
30
  BS_E3_LOGISTICS: {
30
31
  key: "bsE3LogisticsList",
31
32
  name: "bsE3",
32
33
  company: "bsE3LogisticsCompany",
33
34
  code: "bsE3LogisticsCode",
34
- platformType: "bsE3"
35
+ platformType: "bsE3",
36
+ companyDataType: "arrayObject"
35
37
  },
36
38
  WLN_LOGISTICS: {
37
39
  key: "wlnLogisticsList",
38
40
  name: "万里牛",
39
41
  company: "wlnLogisticsCompany",
40
42
  code: "wlnLogisticsCode",
41
- platformType: "wln"
43
+ platformType: "wln",
44
+ companyDataType: "arrayObject"
42
45
  },
43
46
  WDT_LOGISTICS: {
44
47
  key: "wdtLogisticsList",
45
48
  name: "旺店通",
46
49
  company: "wdtLogisticsCompany",
47
50
  code: "wdtLogisticsCode",
48
- platformType: "wdt"
51
+ platformType: "wdt",
52
+ companyDataType: "arrayObject"
49
53
  },
50
54
  JST_LOGISTICS: {
51
55
  key: "jstItemList",
52
56
  name: "聚水潭",
53
57
  company: "logisticsCompany",
54
58
  code: "logisticsCode",
55
- platformType: 'jst'
59
+ platformType: "jst",
60
+ companyDataType: "arrayObject"
61
+ },
62
+ KM_LOGISTICS: {
63
+ key: "kmLogisticsList",
64
+ name: "快麦",
65
+ company: "kmLogisticsCompany",
66
+ code: "kmLogisticsCode",
67
+ platformType: "km",
68
+ companyDataType: "whetherItIncludes"
56
69
  }
57
70
  };
58
71
  var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
@@ -103,13 +116,13 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
103
116
  name: "物流公司",
104
117
  key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.company),
105
118
  options: _this.expressDateInstance.getExpressData(),
106
- dataType: "arrayObject",
107
- disabled: type === 'logisticsCode'
119
+ dataType: typeMap[options.type].companyDataType,
120
+ disabled: type === "logisticsCode"
108
121
  }, {
109
122
  name: "物流单号",
110
123
  key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code),
111
124
  dataType: "arrayObject",
112
- disabled: type === 'logisticsCompany'
125
+ disabled: type === "logisticsCompany"
113
126
  }];
114
127
  });
115
128
  _defineProperty(this, "renderPc", function (value, record) {
@@ -148,7 +161,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
148
161
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
149
162
  display: p === null || p === void 0 ? void 0 : p.display,
150
163
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
151
- 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 : '',
164
+ 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 : "",
152
165
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
153
166
  type: 1,
154
167
  platformType: _this.platformType,
@@ -30,6 +30,9 @@ var typeMap = {
30
30
  },
31
31
  JST_LOGISTICS: {
32
32
  key: "jstLogisticsItem"
33
+ },
34
+ KM_LOGISTICS: {
35
+ key: "kmLogisticsItem"
33
36
  }
34
37
  };
35
38
  var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
@@ -31,6 +31,9 @@ var typeMap = {
31
31
  },
32
32
  JST_LOGISTICS: {
33
33
  key: "jstLogisticsItem"
34
+ },
35
+ KM_LOGISTICS: {
36
+ key: "kmLogisticsItem"
34
37
  }
35
38
  };
36
39
  var Express = /*#__PURE__*/_createClass(function Express(options) {
@@ -20,6 +20,7 @@ import District from "../BS/BsPosting/components//District";
20
20
  import Detail from "../BS/BsPosting/components//Detail";
21
21
  import ReceiverName from "../BS/BsPosting/components//ReceiverName";
22
22
  import ReceiverMobile from "../BS/BsPosting/components//ReceiverMobile";
23
+ import CopyText from "../../commonComponents/CopyText";
23
24
  var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
24
25
  var _this = this,
25
26
  _options$componentCon,
@@ -62,12 +63,15 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
62
63
  var addressText = (_ref = [province, city, district]) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
63
64
  return _this.addressDateInstance.getNameByCode(suffix);
64
65
  }).join("");
65
- return /*#__PURE__*/React.createElement("div", {
66
- style: {
67
- maxHeight: "100px",
68
- overflowY: "auto"
69
- }
70
- }, "".concat(addressText).concat(detail), /*#__PURE__*/React.createElement("br", null), "".concat(name, " ").concat(mobile));
66
+ return /*#__PURE__*/React.createElement(CopyText, {
67
+ text: "".concat(addressText).concat(detail, " ").concat(name, " ").concat(mobile),
68
+ showText: /*#__PURE__*/React.createElement("div", {
69
+ style: {
70
+ maxHeight: "100px",
71
+ overflowY: "auto"
72
+ }
73
+ }, "".concat(addressText).concat(detail), /*#__PURE__*/React.createElement("br", null), "".concat(name, " ").concat(mobile))
74
+ });
71
75
  });
72
76
  _defineProperty(this, "renderLog", function (r) {
73
77
  var _ref2;
@@ -131,18 +135,6 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
131
135
  });
132
136
  _defineProperty(this, "renderClient", function (record) {
133
137
  var _ref4;
134
- // if (this.isSplitColumns) {
135
- // return (
136
- // <>
137
- // {this.province.renderClient(record)}
138
- // {this.city.renderClient(record)}
139
- // {this.district.renderClient(record)}
140
- // {this.detail.renderClient(record)}
141
- // {this.receiverName.renderClient(record)}
142
- // {this.receiverMobile.renderClient(record)}
143
- // </>
144
- // );
145
- // }
146
138
  var province = record["".concat(_this.id, "_postingProvince")];
147
139
  var city = record["".concat(_this.id, "_postingCity")];
148
140
  var district = record["".concat(_this.id, "_postingDistrict")];
@@ -21,6 +21,7 @@ declare class Logistics implements ComponentInterface {
21
21
  canSort: boolean;
22
22
  children: ComponentInterface[];
23
23
  dataType: ComponentInterface["dataType"];
24
+ logisticsType: string;
24
25
  constructor(options: PickOption);
25
26
  getSortChildFields: (type: string, options: PickOption) => any;
26
27
  renderClient: (record: any) => React.JSX.Element | null;
@@ -37,7 +37,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
37
37
  _typeMap$_options$typ2,
38
38
  _this$componentConfig9,
39
39
  _this$componentConfig11,
40
- _this$componentConfig12;
40
+ _this$componentConfig12,
41
+ _this$componentConfig13;
41
42
  _classCallCheck(this, Logistics);
42
43
  _defineProperty(this, "name", void 0);
43
44
  _defineProperty(this, "id", void 0);
@@ -53,6 +54,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
53
54
  _defineProperty(this, "canSort", void 0);
54
55
  _defineProperty(this, "children", void 0);
55
56
  _defineProperty(this, "dataType", void 0);
57
+ _defineProperty(this, "logisticsType", void 0);
56
58
  _defineProperty(this, "getSortChildFields", function (type, options) {
57
59
  var _typeMap$options$type, _typeMap$options$type2;
58
60
  return [{
@@ -111,7 +113,8 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
111
113
  var _typeMap$_this$type4;
112
114
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
113
115
  return (list || []).map(function (item) {
114
- return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join("/");
116
+ var _item$logisticsCompan;
117
+ return [_this.logisticsType === "input" ? (_item$logisticsCompan = item === null || item === void 0 ? void 0 : item.logisticsCompanyName) !== null && _item$logisticsCompan !== void 0 ? _item$logisticsCompan : "" : _this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join("/");
115
118
  }).join(",");
116
119
  });
117
120
  _defineProperty(this, "editRender", function (p) {
@@ -225,5 +228,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
225
228
  this.align = "left";
226
229
  this.expressDateInstance = ExpressData.getInstance((_this$componentConfig11 = this.componentConfig) === null || _this$componentConfig11 === void 0 ? void 0 : _this$componentConfig11.logistics);
227
230
  this.sortChildField = this.getSortChildFields(((_this$componentConfig12 = this.componentConfig) === null || _this$componentConfig12 === void 0 ? void 0 : _this$componentConfig12.showField) || "", _options);
231
+ this.logisticsType = ((_this$componentConfig13 = this.componentConfig) === null || _this$componentConfig13 === void 0 ? void 0 : _this$componentConfig13.logistics) === "gy" ? "input" : "select";
228
232
  });
229
233
  export default Logistics;
@@ -0,0 +1,18 @@
1
+ declare type OptionsType = {
2
+ value: string;
3
+ label: string;
4
+ color: string;
5
+ }[];
6
+ export interface SelectPropsType {
7
+ options: OptionsType;
8
+ key: string;
9
+ info: string;
10
+ failValue: string;
11
+ }
12
+ export declare const getSelectTypeAttribute: ({ key, info, text, failValueIndex, }: {
13
+ key: string;
14
+ info: string;
15
+ text?: string | undefined;
16
+ failValueIndex?: number | undefined;
17
+ }) => SelectPropsType;
18
+ export {};
@@ -0,0 +1,23 @@
1
+ export var getSelectTypeAttribute = function getSelectTypeAttribute(_ref) {
2
+ var key = _ref.key,
3
+ info = _ref.info,
4
+ _ref$text = _ref.text,
5
+ text = _ref$text === void 0 ? "" : _ref$text,
6
+ _ref$failValueIndex = _ref.failValueIndex,
7
+ failValueIndex = _ref$failValueIndex === void 0 ? 1 : _ref$failValueIndex;
8
+ var dataMap = {
9
+ key: key,
10
+ info: info,
11
+ options: [{
12
+ value: "".concat(text, "\u6210\u529F"),
13
+ label: "".concat(text, "\u6210\u529F"),
14
+ color: "#52c41a"
15
+ }, {
16
+ value: "".concat(text, "\u5931\u8D25"),
17
+ label: "".concat(text, "\u5931\u8D25"),
18
+ color: "#ff4d4f"
19
+ }]
20
+ };
21
+ dataMap["failValue"] = dataMap.options[failValueIndex].value;
22
+ return dataMap;
23
+ };
@@ -1,18 +1,18 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
+ import React from "react";
3
3
  declare class StatusSelect implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  sortField: string;
7
7
  type: string;
8
8
  rules: any[];
9
- componentConfig: ComponentInterface['componentConfig'];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
10
  isCombinationComponent: boolean;
11
11
  formField: string;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
- dataType: ComponentInterface['dataType'];
15
- options: ComponentInterface['options'];
14
+ dataType: ComponentInterface["dataType"];
15
+ options: ComponentInterface["options"];
16
16
  constructor(options: PickOption);
17
17
  editRender: (p: any) => React.JSX.Element;
18
18
  renderClient: (record: any) => React.JSX.Element | null;
@@ -27,7 +27,11 @@ declare class StatusSelect implements ComponentInterface {
27
27
  name: string;
28
28
  filterComponentType: "MultipleSelect";
29
29
  props: {
30
- options: Record[];
30
+ options: {
31
+ value: string;
32
+ label: string;
33
+ color: string;
34
+ }[];
31
35
  };
32
36
  filterFn: (value: string) => (i: Record) => boolean;
33
37
  };
@@ -8,112 +8,51 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
8
  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; }
9
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
10
  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); }
11
- import React from 'react';
12
- import { CommonStatus } from '@kmkf-fe-packages/basic-components';
11
+ import React from "react";
12
+ import { CommonStatus } from "@kmkf-fe-packages/basic-components";
13
13
  import GetFormItem from "../GetFormItem";
14
14
  import ItemView from "../../commonComponents/ItemView";
15
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import { SYMBOL } from "../../constant";
17
- // const statusOptions: Array<{ value: string }> = [{ value: '成功' }, { value: '失败' }]
17
+ import { getSelectTypeAttribute } from "./constants";
18
18
  var selectTypeMap = {
19
- REISSUE_STATUS: {
20
- options: [{
21
- value: '成功',
22
- label: '成功',
23
- color: '#52c41a'
24
- }, {
25
- value: '失败',
26
- label: '失败',
27
- color: '#ff4d4f'
28
- }],
29
- key: 'reissueStatusValue',
30
- info: 'reissueReason',
31
- failValue: '失败'
32
- },
33
- ADJUST_WORK_ORDER_STATUS: {
34
- options: [{
35
- value: '成功',
36
- label: '成功',
37
- color: '#52c41a'
38
- }, {
39
- value: '失败',
40
- label: '失败',
41
- color: '#ff4d4f'
42
- }],
43
- key: 'adjustWorkOrderStatusValue',
44
- info: 'adjustWorkOrderReason',
45
- failValue: '失败'
46
- },
47
- CREATE_STATUS: {
48
- options: [{
49
- value: '成功',
50
- label: '成功',
51
- color: '#52c41a'
52
- }, {
53
- value: '失败',
54
- label: '失败',
55
- color: '#ff4d4f'
56
- }],
57
- key: 'createStatusValue',
58
- info: 'createReason',
59
- failValue: '失败'
60
- },
61
- INVOICE_STATUS: {
62
- options: [{
63
- value: '成功',
64
- label: '成功',
65
- color: '#52c41a'
66
- }, {
67
- value: '失败',
68
- label: '失败',
69
- color: '#ff4d4f'
70
- }],
71
- key: 'invoiceStatusValue',
72
- info: 'invoiceReason',
73
- failValue: '失败'
74
- },
75
- AGREE_REFUND_STATUS: {
76
- options: [{
77
- value: '成功',
78
- label: '成功',
79
- color: '#52c41a'
80
- }, {
81
- value: '失败',
82
- label: '失败',
83
- color: '#ff4d4f'
84
- }],
85
- key: 'agreeRefundStatusValue',
86
- info: 'agreeRefundStatusReason',
87
- failValue: '失败'
88
- },
89
- REJECT_REFUND_STATUS: {
90
- options: [{
91
- value: '成功',
92
- label: '成功',
93
- color: '#52c41a'
94
- }, {
95
- value: '失败',
96
- label: '失败',
97
- color: '#ff4d4f'
98
- }],
99
- key: 'rejectRefundStatusValue',
100
- info: 'rejectRefundStatusReason',
101
- failValue: '失败'
102
- },
103
- INVOICING_STATUS: {
104
- options: [{
105
- value: '开票成功',
106
- label: '开票成功',
107
- color: '#52c41a'
108
- }, {
109
- value: '开票失败',
110
- label: '开票失败',
111
- color: '#ff4d4f'
112
- }],
113
- key: 'invoicingStatusValue',
114
- info: 'invoicingReason',
115
- failValue: '开票失败'
116
- }
19
+ REISSUE_STATUS: getSelectTypeAttribute({
20
+ key: "reissueStatusValue",
21
+ info: "reissueReason"
22
+ }),
23
+ ADJUST_WORK_ORDER_STATUS: getSelectTypeAttribute({
24
+ key: "adjustWorkOrderStatusValue",
25
+ info: "adjustWorkOrderReason"
26
+ }),
27
+ CREATE_STATUS: getSelectTypeAttribute({
28
+ key: "createStatusValue",
29
+ info: "createReason"
30
+ }),
31
+ INVOICE_STATUS: getSelectTypeAttribute({
32
+ key: "invoiceStatusValue",
33
+ info: "invoiceReason"
34
+ }),
35
+ AGREE_REFUND_STATUS: getSelectTypeAttribute({
36
+ key: "agreeRefundStatusValue",
37
+ info: "agreeRefundStatusReason"
38
+ }),
39
+ REJECT_REFUND_STATUS: getSelectTypeAttribute({
40
+ key: "rejectRefundStatusValue",
41
+ info: "rejectRefundStatusReason"
42
+ }),
43
+ INVOICING_STATUS: getSelectTypeAttribute({
44
+ key: "invoicingStatusValue",
45
+ info: "invoicingReason",
46
+ text: "开票"
47
+ }),
48
+ AGREE_RETURN_GOODS_STATUS: getSelectTypeAttribute({
49
+ key: "agreeReturnGoodsStatusValue",
50
+ info: "agreeReturnGoodsStatusReason"
51
+ }),
52
+ REJECT_RETURN_GOODS_STATUS: getSelectTypeAttribute({
53
+ key: "rejectReturnGoodsStatusValue",
54
+ info: "rejectReturnGoodsStatusReason"
55
+ })
117
56
  };
118
57
  var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
119
58
  var _this = this;
@@ -139,7 +78,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
139
78
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
140
79
  display: p === null || p === void 0 ? void 0 : p.display,
141
80
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
142
- 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 : '',
81
+ 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 : "",
143
82
  component: /*#__PURE__*/React.createElement(CommonStatus, _extends({}, _this.componentConfig, {
144
83
  style: {
145
84
  width: 200
@@ -154,7 +93,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
154
93
  var status = record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.status;
155
94
  var statusColor = ((_selectTypeMap$_this$ = selectTypeMap[_this.type].options.find(function (item) {
156
95
  return item.value === status;
157
- })) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || '#000';
96
+ })) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || "#000";
158
97
  return !isNull(record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.status) ? /*#__PURE__*/React.createElement(ItemView, {
159
98
  id: _this.id,
160
99
  label: _this.name,
@@ -164,7 +103,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
164
103
  }
165
104
  }, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", {
166
105
  className: "c-red"
167
- }, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) || ''))
106
+ }, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) || ""))
168
107
  }) : null;
169
108
  });
170
109
  _defineProperty(this, "renderPc", function (value, record) {
@@ -172,14 +111,14 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
172
111
  var status = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
173
112
  var statusColor = ((_selectTypeMap$_this$2 = selectTypeMap[_this.type].options.find(function (item) {
174
113
  return item.value === status;
175
- })) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) || '#000';
114
+ })) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) || "#000";
176
115
  return !isNull(status) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
177
116
  style: {
178
117
  color: statusColor
179
118
  }
180
119
  }, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", {
181
120
  className: "c-red"
182
- }, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || '')) : '--';
121
+ }, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || "")) : "--";
183
122
  });
184
123
  _defineProperty(this, "renderLog", function (r) {
185
124
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)])) return null;
@@ -189,7 +128,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
189
128
  return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
190
129
  });
191
130
  _defineProperty(this, "renderExport", function (value, record) {
192
- return record !== null && record !== void 0 && record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)] ? "".concat(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]).concat((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || '') : '--';
131
+ return record !== null && record !== void 0 && record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)] ? "".concat(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]).concat((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || "") : "--";
193
132
  });
194
133
  _defineProperty(this, "filterConfig", function (item) {
195
134
  return {
@@ -199,7 +138,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
199
138
  // 过滤组件id
200
139
  name: item.name,
201
140
  // 过滤组件名称
202
- filterComponentType: 'MultipleSelect',
141
+ filterComponentType: "MultipleSelect",
203
142
  props: {
204
143
  options: selectTypeMap[_this.type].options
205
144
  },
@@ -222,7 +161,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
222
161
  this.isCombinationComponent = false;
223
162
  this.canSort = true;
224
163
  this.children = [];
225
- this.dataType = 'string';
164
+ this.dataType = "string";
226
165
  this.options = selectTypeMap[options.type].options;
227
166
  });
228
167
  export default StatusSelect;
@@ -1,3 +1,3 @@
1
1
  import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, GyGoods, BsE3Reissue, MemberLevel } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BsLogistics | BasicCheckbox | FlowWorkOrderStatus | BasicInput | JstSendGood | MsgStatus | BasicPosting | ReissueLogistics | StatusSelect | BasicAddress | BasicCascader | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue;
3
+ export declare const factory: (type: string, options: PickOption) => BsLogistics | BasicCheckbox | JstSendGood | MsgStatus | BasicPosting | ReissueLogistics | StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue;
@@ -177,6 +177,7 @@ export var factory = function factory(type, options) {
177
177
  case "WLN_LOGISTICS":
178
178
  case "WDT_LOGISTICS":
179
179
  case "JST_LOGISTICS":
180
+ case "KM_LOGISTICS":
180
181
  return new BsLogistics(options);
181
182
  case "FLOW_WORK_ORDER_ID_INPUT":
182
183
  return new FlowWorkOrderId(options);
@@ -189,6 +190,8 @@ export var factory = function factory(type, options) {
189
190
  case "INVOICING_STATUS":
190
191
  case "AGREE_REFUND_STATUS":
191
192
  case "REJECT_REFUND_STATUS":
193
+ case "AGREE_RETURN_GOODS_STATUS":
194
+ case "REJECT_RETURN_GOODS_STATUS":
192
195
  return new StatusSelect(options);
193
196
  case "RETURN_GOODS_STATUS":
194
197
  case "EXCHANGE_STATUS":