@kmkf-fe-packages/services-components 2.0.2-beta.8 → 2.0.2

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 (37) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/commonComponents/GlobalContext/index.d.ts +2 -3
  3. package/dist/esm/commonComponents/GlobalContext/index.js +30 -109
  4. package/dist/esm/components/BS/BsLogistics/index.js +9 -22
  5. package/dist/esm/components/BS/common/expressCode.js +0 -3
  6. package/dist/esm/components/BS/common/expressCompany.js +0 -3
  7. package/dist/esm/components/Common/index.js +1 -1
  8. package/dist/esm/components/JST/JstSendGood/index.js +1 -1
  9. package/dist/esm/components/MsgStatus/index.js +2 -7
  10. package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -0
  11. package/dist/esm/components/Payment/PaymentAmount.js +4 -0
  12. package/dist/esm/components/Reissue/Logistics/index.d.ts +0 -1
  13. package/dist/esm/components/Reissue/Logistics/index.js +2 -6
  14. package/dist/esm/components/StatusSelect/index.d.ts +6 -10
  15. package/dist/esm/components/StatusSelect/index.js +109 -48
  16. package/dist/esm/factory.d.ts +1 -1
  17. package/dist/esm/factory.js +0 -3
  18. package/dist/esm/service/api.d.ts +1 -1
  19. package/dist/esm/service/api.js +66 -52
  20. package/package.json +6 -6
  21. package/dist/esm/commonComponents/GlobalContext/hook/dist/useGetHasErpData.js +0 -52
  22. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +0 -3
  23. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +0 -55
  24. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpAddressData.js +0 -180
  25. package/dist/esm/commonComponents/GlobalContext/orderQuery/dist/useGetErpLogisticsCompany.js +0 -186
  26. package/dist/esm/commonComponents/GlobalContext/orderQuery/type.d.ts +0 -1
  27. package/dist/esm/commonComponents/GlobalContext/orderQuery/type.js +0 -1
  28. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.d.ts +0 -3
  29. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +0 -79
  30. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.d.ts +0 -3
  31. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +0 -80
  32. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.d.ts +0 -3
  33. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +0 -78
  34. package/dist/esm/components/BS/BsGoods/dist/index.js +0 -113
  35. package/dist/esm/components/Common/dist/index.js +0 -1019
  36. package/dist/esm/components/StatusSelect/constants.d.ts +0 -18
  37. package/dist/esm/components/StatusSelect/constants.js +0 -23
package/README.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  - 针对于自定义组件的后缀,在提交的时候是以组件类型的驼峰式来命名的
4
4
 
5
- ---
5
+ ---
@@ -1,8 +1,7 @@
1
1
  import React from "react";
2
- declare type RequestType = "queryAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryAllLogisticsCompany" | "queryLabel" | "queryKMLogisticsCompany" | "queryKMSendData";
3
- declare const Global: ({ children, requestList, repeatRequestList, notJudgedErp, }: React.PropsWithChildren<{
2
+ declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "queryLabel" | "queryWdtLogisticsCompany" | "queryGyAddressData" | "queryBsE3LogisticsCompany" | "querySendData" | "queryJSTLogisticsCompany" | "queryWLNLogisticsCompany";
3
+ declare const Global: ({ children, requestList, repeatRequestList, }: React.PropsWithChildren<{
4
4
  requestList?: RequestType[] | undefined;
5
5
  repeatRequestList?: Record<string, () => Promise<any>> | undefined;
6
- notJudgedErp?: boolean | undefined;
7
6
  }>) => React.JSX.Element;
8
7
  export default Global;
@@ -1,10 +1,10 @@
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; }
2
3
  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
4
  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
5
  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
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
7
  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
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
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(); }
@@ -13,122 +13,41 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
13
13
  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; }
14
14
  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; } }
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
- import React, { useEffect, useState, useMemo } from "react";
17
- import { Skeleton, Button, Alert, Space, message } from "antd";
18
- import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryLabel, queryAllLogisticsCompany, queryKMLogisticsCompany } from "../../service/api";
19
- import { servers, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
20
- import useGetErpLogisticsCompany from "./orderQuery/useGetErpLogisticsCompany";
21
- import useGetErpSendData from "./orderQuery/useGetErpSendData";
22
- import useGetErpAddressData from "./orderQuery/useGetErpAddressData";
16
+ import React, { useEffect, useState } from "react";
17
+ import { Skeleton, Button, Alert, Space } from "antd";
18
+ import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryLabel, queryAllLogisticsCompany, queryWdtLogisticsCompany, queryBsE3LogisticsCompany, querySendData, queryJSTLogisticsCompany, queryWLNLogisticsCompany } from "../../service/api";
19
+ import { servers } from "@kmkf-fe-packages/kmkf-utils";
23
20
  var Global = function Global(_ref) {
24
21
  var children = _ref.children,
25
22
  _ref$requestList = _ref.requestList,
26
23
  requestList = _ref$requestList === void 0 ? [] : _ref$requestList,
27
24
  _ref$repeatRequestLis = _ref.repeatRequestList,
28
- repeatRequestList = _ref$repeatRequestLis === void 0 ? {} : _ref$repeatRequestLis,
29
- _ref$notJudgedErp = _ref.notJudgedErp,
30
- notJudgedErp = _ref$notJudgedErp === void 0 ? true : _ref$notJudgedErp;
25
+ repeatRequestList = _ref$repeatRequestLis === void 0 ? {} : _ref$repeatRequestLis;
31
26
  var _useState = useState("loading"),
32
27
  _useState2 = _slicedToArray(_useState, 2),
33
28
  globalState = _useState2[0],
34
29
  setGlobalState = _useState2[1];
35
- var _useState3 = useState(false),
36
- _useState4 = _slicedToArray(_useState3, 2),
37
- loading = _useState4[0],
38
- setLoading = _useState4[1];
39
- useEffect(function () {
40
- initDataSource();
41
- }, []);
42
-
43
- /**
44
- * 需要hasErpData判断
45
- * **/
46
- //获取Erp物流公司信息
47
- var _useGetErpLogisticsCo = useGetErpLogisticsCompany(notJudgedErp),
48
- _useGetErpLogisticsCo2 = _slicedToArray(_useGetErpLogisticsCo, 2),
49
- logisticsCompanyState = _useGetErpLogisticsCo2[0],
50
- reloadGetErpLogisticsCompany = _useGetErpLogisticsCo2[1];
51
- //获取Erp发货仓下拉数据
52
- var _useGetErpSendData = useGetErpSendData(notJudgedErp),
53
- _useGetErpSendData2 = _slicedToArray(_useGetErpSendData, 2),
54
- sendDataState = _useGetErpSendData2[0],
55
- reloadGetErpSendData = _useGetErpSendData2[1];
56
- //获取Erp地址数据
57
- var _useGetErpAddressData = useGetErpAddressData(notJudgedErp),
58
- _useGetErpAddressData2 = _slicedToArray(_useGetErpAddressData, 2),
59
- addressDataState = _useGetErpAddressData2[0],
60
- reloadGetErpAddressData = _useGetErpAddressData2[1];
61
- var allState = useMemo(function () {
62
- var allStateList = [globalState, logisticsCompanyState, sendDataState, addressDataState];
63
- if (allStateList.includes("loading")) return "loading";
64
- if (allStateList.includes("failed")) return "failed";
65
- return "success";
66
- }, [globalState, logisticsCompanyState, sendDataState, addressDataState]);
67
- var reloadData = /*#__PURE__*/function () {
30
+ var initDataSource = /*#__PURE__*/function () {
68
31
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
32
+ var mapping, mergeMapping, promises, _Object$keys, _Object$keys2, _Object$keys2$filter, _promises;
69
33
  return _regeneratorRuntime().wrap(function _callee$(_context) {
70
34
  while (1) switch (_context.prev = _context.next) {
71
- case 0:
72
- setLoading(true);
73
- _context.t0 = globalState === "failed";
74
- if (!_context.t0) {
75
- _context.next = 5;
76
- break;
77
- }
78
- _context.next = 5;
79
- return initDataSource();
80
- case 5:
81
- _context.t1 = logisticsCompanyState === "failed";
82
- if (!_context.t1) {
83
- _context.next = 9;
84
- break;
85
- }
86
- _context.next = 9;
87
- return reloadGetErpLogisticsCompany();
88
- case 9:
89
- _context.t2 = sendDataState === "failed";
90
- if (!_context.t2) {
91
- _context.next = 13;
92
- break;
93
- }
94
- _context.next = 13;
95
- return reloadGetErpSendData();
96
- case 13:
97
- _context.t3 = addressDataState === "failed";
98
- if (!_context.t3) {
99
- _context.next = 17;
100
- break;
101
- }
102
- _context.next = 17;
103
- return reloadGetErpAddressData();
104
- case 17:
105
- setLoading(false);
106
- message.success("刷新完成");
107
- case 19:
108
- case "end":
109
- return _context.stop();
110
- }
111
- }, _callee);
112
- }));
113
- return function reloadData() {
114
- return _ref2.apply(this, arguments);
115
- };
116
- }();
117
- var initDataSource = /*#__PURE__*/function () {
118
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
119
- var mapping, mergeMapping, promises, _Object$keys, _Object$keys2, _Object$keys2$filter, _promises;
120
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
121
- while (1) switch (_context2.prev = _context2.next) {
122
35
  case 0:
123
36
  mapping = {
124
37
  queryAddressData: servers.queryAddressData,
38
+ queryBsAddressData: servers.queryBsAddressData,
125
39
  queryExpressInterceptData: queryExpressInterceptData,
126
40
  queryLogisticsAddressData: queryLogisticsAddressData,
127
41
  queryPlatData: queryPlatData,
128
42
  queryAllLogisticsCompany: queryAllLogisticsCompany,
129
43
  queryLabel: queryLabel,
130
- queryKMLogisticsCompany: queryKMLogisticsCompany,
131
- queryKMSendData: SendDataCenter.getInstance("km").fetchData
44
+ queryWdtAddressData: servers.queryWdtAddressData,
45
+ queryGyAddressData: servers.queryGyAddressData,
46
+ queryWdtLogisticsCompany: queryWdtLogisticsCompany,
47
+ queryBsE3LogisticsCompany: queryBsE3LogisticsCompany,
48
+ querySendData: querySendData,
49
+ queryJSTLogisticsCompany: queryJSTLogisticsCompany,
50
+ queryWLNLogisticsCompany: queryWLNLogisticsCompany
132
51
  };
133
52
  mergeMapping = _objectSpread(_objectSpread({}, mapping), repeatRequestList);
134
53
  promises = [];
@@ -143,30 +62,33 @@ var Global = function Global(_ref) {
143
62
  return mergeMapping[item];
144
63
  });
145
64
  }
146
- _context2.prev = 4;
147
- _context2.next = 7;
65
+ _context.prev = 4;
66
+ _context.next = 7;
148
67
  return Promise.all((_promises = promises) === null || _promises === void 0 ? void 0 : _promises.map(function (promise) {
149
68
  return promise();
150
69
  }));
151
70
  case 7:
152
71
  setGlobalState("success");
153
- _context2.next = 13;
72
+ _context.next = 13;
154
73
  break;
155
74
  case 10:
156
- _context2.prev = 10;
157
- _context2.t0 = _context2["catch"](4);
75
+ _context.prev = 10;
76
+ _context.t0 = _context["catch"](4);
158
77
  setGlobalState("failed");
159
78
  case 13:
160
79
  case "end":
161
- return _context2.stop();
80
+ return _context.stop();
162
81
  }
163
- }, _callee2, null, [[4, 10]]);
82
+ }, _callee, null, [[4, 10]]);
164
83
  }));
165
84
  return function initDataSource() {
166
- return _ref3.apply(this, arguments);
85
+ return _ref2.apply(this, arguments);
167
86
  };
168
87
  }();
169
- if (allState === "loading") {
88
+ useEffect(function () {
89
+ initDataSource();
90
+ }, []);
91
+ if (globalState === "loading") {
170
92
  return /*#__PURE__*/React.createElement(Skeleton, {
171
93
  active: true,
172
94
  paragraph: {
@@ -174,15 +96,14 @@ var Global = function Global(_ref) {
174
96
  }
175
97
  });
176
98
  }
177
- if (allState === "failed") {
99
+ if (globalState === "failed") {
178
100
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Alert, {
179
101
  message: "\u6570\u636E\u52A0\u8F7D\u5F02\u5E38,\u53EF\u80FD\u5F71\u54CD\u90E8\u5206\u7EC4\u4EF6\u4F7F\u7528",
180
102
  type: "warning",
181
103
  action: /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
182
- loading: loading,
183
104
  type: "primary",
184
105
  key: "console",
185
- onClick: reloadData,
106
+ onClick: initDataSource,
186
107
  size: "small"
187
108
  }, "\u5237\u65B0\u91CD\u8BD5")),
188
109
  closable: true
@@ -24,48 +24,35 @@ var typeMap = {
24
24
  name: "bs",
25
25
  company: "bsLogisticsCompany",
26
26
  code: "bsLogisticsCode",
27
- platformType: "default",
28
- companyDataType: "arrayObject"
27
+ platformType: "default"
29
28
  },
30
29
  BS_E3_LOGISTICS: {
31
30
  key: "bsE3LogisticsList",
32
31
  name: "bsE3",
33
32
  company: "bsE3LogisticsCompany",
34
33
  code: "bsE3LogisticsCode",
35
- platformType: "bsE3",
36
- companyDataType: "arrayObject"
34
+ platformType: "bsE3"
37
35
  },
38
36
  WLN_LOGISTICS: {
39
37
  key: "wlnLogisticsList",
40
38
  name: "万里牛",
41
39
  company: "wlnLogisticsCompany",
42
40
  code: "wlnLogisticsCode",
43
- platformType: "wln",
44
- companyDataType: "arrayObject"
41
+ platformType: "wln"
45
42
  },
46
43
  WDT_LOGISTICS: {
47
44
  key: "wdtLogisticsList",
48
45
  name: "旺店通",
49
46
  company: "wdtLogisticsCompany",
50
47
  code: "wdtLogisticsCode",
51
- platformType: "wdt",
52
- companyDataType: "arrayObject"
48
+ platformType: "wdt"
53
49
  },
54
50
  JST_LOGISTICS: {
55
51
  key: "jstItemList",
56
52
  name: "聚水潭",
57
53
  company: "logisticsCompany",
58
54
  code: "logisticsCode",
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"
55
+ platformType: 'jst'
69
56
  }
70
57
  };
71
58
  var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
@@ -116,13 +103,13 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
116
103
  name: "物流公司",
117
104
  key: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.company),
118
105
  options: _this.expressDateInstance.getExpressData(),
119
- dataType: typeMap[options.type].companyDataType,
120
- disabled: type === "logisticsCode"
106
+ dataType: "arrayObject",
107
+ disabled: type === 'logisticsCode'
121
108
  }, {
122
109
  name: "物流单号",
123
110
  key: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code),
124
111
  dataType: "arrayObject",
125
- disabled: type === "logisticsCompany"
112
+ disabled: type === 'logisticsCompany'
126
113
  }];
127
114
  });
128
115
  _defineProperty(this, "renderPc", function (value, record) {
@@ -161,7 +148,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
161
148
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
162
149
  display: p === null || p === void 0 ? void 0 : p.display,
163
150
  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,
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 : "",
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 : '',
165
152
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
166
153
  type: 1,
167
154
  platformType: _this.platformType,
@@ -30,9 +30,6 @@ var typeMap = {
30
30
  },
31
31
  JST_LOGISTICS: {
32
32
  key: "jstLogisticsItem"
33
- },
34
- KM_LOGISTICS: {
35
- key: "kmLogisticsItem"
36
33
  }
37
34
  };
38
35
  var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
@@ -31,9 +31,6 @@ var typeMap = {
31
31
  },
32
32
  JST_LOGISTICS: {
33
33
  key: "jstLogisticsItem"
34
- },
35
- KM_LOGISTICS: {
36
- key: "kmLogisticsItem"
37
34
  }
38
35
  };
39
36
  var Express = /*#__PURE__*/_createClass(function Express(options) {
@@ -731,7 +731,7 @@ export var MsgContent = function MsgContent(_ref14) {
731
731
  var key = item.msgType || "ding";
732
732
  var formatMsgContent = /*#__PURE__*/React.createElement("span", {
733
733
  key: index
734
- }, msgTypeCh[key] || key, "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
734
+ }, msgTypeCh[key], "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
735
735
  return /*#__PURE__*/React.createElement("div", {
736
736
  key: "wrap_".concat(index),
737
737
  style: {
@@ -176,7 +176,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
176
176
  });
177
177
  _defineProperty(this, "filterConfig", function (item) {
178
178
  var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
179
- return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
179
+ return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
180
180
  searchDefaultConditions: SYMBOL.in,
181
181
  type: item.type,
182
182
  id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
@@ -39,15 +39,10 @@ var typeMap = {
39
39
  label: "等待执行",
40
40
  color: "#e7780f"
41
41
  }, {
42
- oldValue: "不满足条件,无需执行",
42
+ oldValue: "等待发送",
43
43
  value: "不满足条件,无需执行",
44
44
  label: "不满足条件,无需执行",
45
45
  color: "#8A8A8A"
46
- }, {
47
- oldValue: "暂不满足条件,等待执行",
48
- value: "暂不满足条件,等待执行",
49
- label: "暂不满足条件,等待执行",
50
- color: "#4D90F7"
51
46
  }],
52
47
  key: "msgStatusValues",
53
48
  code: "msgStatus4Search",
@@ -130,7 +125,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
130
125
  return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
131
126
  });
132
127
  var key = item.msgType || "ding";
133
- return "".concat(msgTypeCh[key] || key, "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || "");
128
+ return "".concat(msgTypeCh[key], "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || "" : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || "");
134
129
  }).join(",");
135
130
  });
136
131
  _defineProperty(this, "editRender", function (p) {
@@ -36,5 +36,6 @@ declare class PaymentAmount implements ComponentInterface {
36
36
  formatFilterValue: (val: Array<number | null>) => (number | null)[];
37
37
  filterFn: (value: string) => (i: Record) => boolean;
38
38
  };
39
+ formDataTransform: (value: string) => string | number;
39
40
  }
40
41
  export default PaymentAmount;
@@ -132,6 +132,10 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
132
132
  }
133
133
  };
134
134
  });
135
+ _defineProperty(this, "formDataTransform", function (value) {
136
+ var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
137
+ return isNumber.test(value) ? Number(value) : value;
138
+ });
135
139
  this.name = '打款金额';
136
140
  this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
137
141
  this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
@@ -21,7 +21,6 @@ declare class Logistics implements ComponentInterface {
21
21
  canSort: boolean;
22
22
  children: ComponentInterface[];
23
23
  dataType: ComponentInterface["dataType"];
24
- logisticsType: string;
25
24
  constructor(options: PickOption);
26
25
  getSortChildFields: (type: string, options: PickOption) => any;
27
26
  renderClient: (record: any) => React.JSX.Element | null;
@@ -37,8 +37,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
37
37
  _typeMap$_options$typ2,
38
38
  _this$componentConfig9,
39
39
  _this$componentConfig11,
40
- _this$componentConfig12,
41
- _this$componentConfig13;
40
+ _this$componentConfig12;
42
41
  _classCallCheck(this, Logistics);
43
42
  _defineProperty(this, "name", void 0);
44
43
  _defineProperty(this, "id", void 0);
@@ -54,7 +53,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
54
53
  _defineProperty(this, "canSort", void 0);
55
54
  _defineProperty(this, "children", void 0);
56
55
  _defineProperty(this, "dataType", void 0);
57
- _defineProperty(this, "logisticsType", void 0);
58
56
  _defineProperty(this, "getSortChildFields", function (type, options) {
59
57
  var _typeMap$options$type, _typeMap$options$type2;
60
58
  return [{
@@ -113,8 +111,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
113
111
  var _typeMap$_this$type4;
114
112
  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)];
115
113
  return (list || []).map(function (item) {
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("/");
114
+ return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join("/");
118
115
  }).join(",");
119
116
  });
120
117
  _defineProperty(this, "editRender", function (p) {
@@ -228,6 +225,5 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
228
225
  this.align = "left";
229
226
  this.expressDateInstance = ExpressData.getInstance((_this$componentConfig11 = this.componentConfig) === null || _this$componentConfig11 === void 0 ? void 0 : _this$componentConfig11.logistics);
230
227
  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";
232
228
  });
233
229
  export default Logistics;
@@ -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,11 +27,7 @@ declare class StatusSelect implements ComponentInterface {
27
27
  name: string;
28
28
  filterComponentType: "MultipleSelect";
29
29
  props: {
30
- options: {
31
- value: string;
32
- label: string;
33
- color: string;
34
- }[];
30
+ options: Record[];
35
31
  };
36
32
  filterFn: (value: string) => (i: Record) => boolean;
37
33
  };