@kmkf-fe-packages/kmkf-utils 2.2.41 → 2.2.44-beta.0

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 (33) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/constants/constant.js +1 -1
  3. package/dist/esm/constants/index.d.ts +1 -1
  4. package/dist/esm/constants/index.js +2 -2
  5. package/dist/esm/hooks/index.d.ts +1 -0
  6. package/dist/esm/hooks/index.js +2 -1
  7. package/dist/esm/hooks/useWindowSize.d.ts +4 -0
  8. package/dist/esm/hooks/useWindowSize.js +30 -0
  9. package/dist/esm/request/index.js +2 -3
  10. package/dist/esm/servers/JKY/index.d.ts +2 -0
  11. package/dist/esm/servers/JKY/index.js +2 -0
  12. package/dist/esm/servers/JKY/logisticsData.d.ts +6 -0
  13. package/dist/esm/servers/JKY/logisticsData.js +43 -0
  14. package/dist/esm/servers/JKY/warehouseData.d.ts +6 -0
  15. package/dist/esm/servers/JKY/warehouseData.js +39 -0
  16. package/dist/esm/servers/KM/index.d.ts +1 -0
  17. package/dist/esm/servers/KM/index.js +2 -1
  18. package/dist/esm/servers/KM/supplierData.d.ts +6 -0
  19. package/dist/esm/servers/KM/supplierData.js +89 -0
  20. package/dist/esm/servers/index.d.ts +2 -0
  21. package/dist/esm/servers/index.js +3 -0
  22. package/dist/esm/utils/SendData.js +4 -2
  23. package/dist/esm/utils/getExpression.js +6 -6
  24. package/dist/esm/utils/index.d.ts +1 -0
  25. package/dist/esm/utils/index.js +1 -0
  26. package/dist/esm/utils/jkyOrderBackFormValues.d.ts +59 -0
  27. package/dist/esm/utils/jkyOrderBackFormValues.js +392 -0
  28. package/dist/esm/utils/jyOrderBackFormValues.js +5 -0
  29. package/dist/esm/utils/kmOrderBackFormValues.d.ts +30 -0
  30. package/dist/esm/utils/kmOrderBackFormValues.js +37 -9
  31. package/dist/esm/utils/orderBackFormValues.js +1 -1
  32. package/dist/esm/utils/unTransField.js +1 -1
  33. package/package.json +2 -2
package/README.md CHANGED
@@ -1 +1 @@
1
- 1123111
1
+ 11231
@@ -124,7 +124,7 @@ export var SYMBOL = {
124
124
  BETWEEN: "between",
125
125
  EQ: "eq"
126
126
  };
127
- export var hasAddNullComponent = ["RADIO", "SELECT", "CHECKBOX", "BASIC_MULT_SELECT", "FLOW_TAG", "WAREHOUSING_STATUS", "BS_E3_WAREHOUSING_STATUS", "ADJUST_WORK_ORDER_STATUS", "REISSUE_STATUS", "INVOICE_STATUS", "INVOICING_STATUS", "MSG_STATUS", "AGREE_REFUND_STATUS", "ERP_AFTER_SALE_STATUS", "REJECT_REFUND_STATUS", "LOGISTICS_INTERCEPTION", "AGREE_RETURN_GOODS_STATUS", "REJECT_RETURN_GOODS_STATUS", "RETURN_EXCHANGE_GOODS_REVIEW_STATUS", "GY_PAYMENT_METHOD"];
127
+ export var hasAddNullComponent = ["RADIO", "SELECT", "CHECKBOX", "BASIC_MULT_SELECT", "FLOW_TAG", "WAREHOUSING_STATUS", "BS_E3_WAREHOUSING_STATUS", "ADJUST_WORK_ORDER_STATUS", "REISSUE_STATUS", "INVOICE_STATUS", "INVOICING_STATUS", "MSG_STATUS", "AGREE_REFUND_STATUS", "REPAIR_ORDER_STATUS", "ERP_AFTER_SALE_STATUS", "REJECT_REFUND_STATUS", "LOGISTICS_INTERCEPTION", "AGREE_RETURN_GOODS_STATUS", "REJECT_RETURN_GOODS_STATUS", "RETURN_EXCHANGE_GOODS_REVIEW_STATUS", "GY_PAYMENT_METHOD"];
128
128
  export var SelectInputComponent = ["INPUT", "TEXTAREA", "SHOP_NAME_INPUT", "BUYER_NICK_INPUT", "RECEIVER_NAME_INPUT", "REMARK_INPUT", "RETURN_GOODS_STATUS", "EXCHANGE_STATUS", "BS_LOGISTICS", "WLN_LOGISTICS", "WDT_LOGISTICS", "KM_LOGISTICS", "GY_LOGISTICS", "JST_LOGISTICS", "AFTER_SALES_ORDER_ID"];
129
129
 
130
130
  // 表单默认值
@@ -1,3 +1,4 @@
1
+ export { default as msgTypeCh } from "./msgTypeMapping";
1
2
  export { default as columnsGoodsList } from "./columnsGoodsList";
2
3
  export { default as componentsOptionsMapping } from "./componentsOptionsMapping";
3
4
  export * from './constant';
@@ -7,4 +8,3 @@ export declare const getMapping: (data: {
7
8
  }[]) => {
8
9
  [key: string]: string;
9
10
  };
10
- export { default as msgTypeCh } from "./msgTypeMapping";
@@ -1,3 +1,4 @@
1
+ export { default as msgTypeCh } from "./msgTypeMapping";
1
2
  export { default as columnsGoodsList } from "./columnsGoodsList";
2
3
  export { default as componentsOptionsMapping } from "./componentsOptionsMapping";
3
4
  export * from "./constant";
@@ -7,5 +8,4 @@ export var getMapping = function getMapping(data) {
7
8
  mapping[item.dataIndex] = item.title;
8
9
  });
9
10
  return mapping;
10
- };
11
- export { default as msgTypeCh } from "./msgTypeMapping";
11
+ };
@@ -1 +1,2 @@
1
1
  export * from './useStatus';
2
+ export * from './useWindowSize';
@@ -1 +1,2 @@
1
- export * from "./useStatus";
1
+ export * from "./useStatus";
2
+ export * from "./useWindowSize";
@@ -0,0 +1,4 @@
1
+ export declare const useWindowSize: () => {
2
+ innerHeight: number;
3
+ innerWidth: number;
4
+ };
@@ -0,0 +1,30 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ 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."); }
3
+ 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); }
4
+ 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; }
5
+ 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; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React from 'react';
8
+ import { debounce } from 'lodash';
9
+ export var useWindowSize = function useWindowSize() {
10
+ var _React$useState = React.useState({
11
+ innerHeight: window.innerHeight,
12
+ innerWidth: window.innerWidth
13
+ }),
14
+ _React$useState2 = _slicedToArray(_React$useState, 2),
15
+ size = _React$useState2[0],
16
+ setSize = _React$useState2[1];
17
+ React.useEffect(function () {
18
+ var handleResize = debounce(function () {
19
+ setSize({
20
+ innerHeight: window.innerHeight,
21
+ innerWidth: window.innerWidth
22
+ });
23
+ }, 200);
24
+ window.addEventListener('resize', handleResize);
25
+ return function () {
26
+ window.removeEventListener('resize', handleResize);
27
+ };
28
+ }, []);
29
+ return size;
30
+ };
@@ -3,7 +3,7 @@
3
3
  * @Author: litian
4
4
  * @Date: 2022-09-06 09:29:34
5
5
  * @LastEditors: flyingMonkey 760958607@qq.com
6
- * @LastEditTime: 2025-09-04 18:49:52
6
+ * @LastEditTime: 2025-09-04 18:51:04
7
7
  */
8
8
  import { extend } from "umi-request";
9
9
  import { message } from "antd";
@@ -27,8 +27,7 @@ var requestApi = function requestApi(_ref) {
27
27
  data = _ref.data,
28
28
  _ref$headers = _ref.headers,
29
29
  headers = _ref$headers === void 0 ? {} : _ref$headers,
30
- _ref$handleError = _ref.handleError,
31
- handleError = _ref$handleError === void 0 ? message.error : _ref$handleError,
30
+ handleError = _ref.handleError,
32
31
  infoLevel = _ref.infoLevel;
33
32
  return new Promise(function (resolve, reject) {
34
33
  var params = {
@@ -0,0 +1,2 @@
1
+ export * from "./warehouseData";
2
+ export * from "./logisticsData";
@@ -0,0 +1,2 @@
1
+ export * from "./warehouseData";
2
+ export * from "./logisticsData";
@@ -0,0 +1,6 @@
1
+ declare type LogisticsType = {
2
+ label: string;
3
+ value: string;
4
+ };
5
+ export declare const getLogisticsDataAsync: () => Promise<LogisticsType[]>;
6
+ export default getLogisticsDataAsync;
@@ -0,0 +1,43 @@
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
+ import request from "../../request";
6
+ var queryJKYLogisticsList = function queryJKYLogisticsList() {
7
+ return request({
8
+ url: "/qy/gdfw/jky/erp/logistics/jkyList",
9
+ method: "post",
10
+ data: {}
11
+ });
12
+ };
13
+ export var getLogisticsDataAsync = /*#__PURE__*/function () {
14
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
15
+ var _result$data;
16
+ var result, list, logisticsList;
17
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
18
+ while (1) switch (_context.prev = _context.next) {
19
+ case 0:
20
+ _context.next = 2;
21
+ return queryJKYLogisticsList();
22
+ case 2:
23
+ result = _context.sent;
24
+ list = [];
25
+ logisticsList = (result === null || result === void 0 ? void 0 : (_result$data = result.data) === null || _result$data === void 0 ? void 0 : _result$data.logisticsList) || [];
26
+ logisticsList === null || logisticsList === void 0 ? void 0 : logisticsList.map(function (item) {
27
+ list.push({
28
+ label: item.globalExpressName,
29
+ value: item.globalExpressCode
30
+ });
31
+ });
32
+ return _context.abrupt("return", list);
33
+ case 7:
34
+ case "end":
35
+ return _context.stop();
36
+ }
37
+ }, _callee);
38
+ }));
39
+ return function getLogisticsDataAsync() {
40
+ return _ref.apply(this, arguments);
41
+ };
42
+ }();
43
+ export default getLogisticsDataAsync;
@@ -0,0 +1,6 @@
1
+ declare type WarehouseType = {
2
+ label: string;
3
+ value: string;
4
+ };
5
+ export declare const getWarehouseDataAsync: () => Promise<WarehouseType[]>;
6
+ export default getWarehouseDataAsync;
@@ -0,0 +1,39 @@
1
+ import { fetchAll } from "../../utils";
2
+ import request from "../../request";
3
+ var queryWarehouseList = function queryWarehouseList(_ref) {
4
+ var pageNo = _ref.pageNo,
5
+ pageSize = _ref.pageSize;
6
+ return request({
7
+ url: "/qy/gdfw/jky/erp/warehouse/jkyList",
8
+ method: "post",
9
+ data: {
10
+ pageNo: pageNo,
11
+ pageSize: pageSize,
12
+ hasDeletedData: true
13
+ }
14
+ });
15
+ };
16
+ export var getWarehouseDataAsync = function getWarehouseDataAsync() {
17
+ return fetchAll("JKY_WAREHOUSE_DATA", queryWarehouseList, function (data) {
18
+ var list = [];
19
+ var warehouses = (data === null || data === void 0 ? void 0 : data.warehouseInfoList) || [];
20
+ warehouses.map(function (_ref2) {
21
+ var warehouseCode = _ref2.warehouseCode,
22
+ warehouseName = _ref2.warehouseName;
23
+ list.push({
24
+ label: warehouseName,
25
+ value: warehouseCode
26
+ });
27
+ });
28
+ var valueMap = {};
29
+ list.forEach(function (item) {
30
+ valueMap[item.value] = item; // 每次遇到相同的 code,更新为最新的对象
31
+ });
32
+
33
+ return Object.values(valueMap);
34
+ }, {
35
+ pageNo: 1,
36
+ pageSize: 100
37
+ });
38
+ };
39
+ export default getWarehouseDataAsync;
@@ -1,3 +1,4 @@
1
1
  export * from "./warehouseData";
2
2
  export * from "./logisticsData";
3
3
  export * from "./video";
4
+ export * from "./supplierData";
@@ -1,3 +1,4 @@
1
1
  export * from "./warehouseData";
2
2
  export * from "./logisticsData";
3
- export * from "./video";
3
+ export * from "./video";
4
+ export * from "./supplierData";
@@ -0,0 +1,6 @@
1
+ declare type SupplierInfo = {
2
+ supplierName: string;
3
+ supplierCode: string;
4
+ };
5
+ export declare const getSupplierSingleton: (sysItemIds: string[]) => Promise<Map<string, SupplierInfo>>;
6
+ export default getSupplierSingleton;
@@ -0,0 +1,89 @@
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
+ import request from "../../request";
6
+ var querySupplierList = function querySupplierList(params) {
7
+ return request({
8
+ url: "/qy/gdfw/kmErp/erp/supplierInfoList",
9
+ method: "post",
10
+ data: {
11
+ itemsIds: params
12
+ }
13
+ });
14
+ };
15
+ var supplierMap = new Map();
16
+ export var getSupplierSingleton = /*#__PURE__*/function () {
17
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sysItemIds) {
18
+ var newSysItemIds, newFilterSysItemIds, batchSize, batches, i;
19
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
20
+ while (1) switch (_context.prev = _context.next) {
21
+ case 0:
22
+ newSysItemIds = sysItemIds.filter(function (sysItemId) {
23
+ var _sysItemId$split;
24
+ return !supplierMap.has(sysItemId) && ((_sysItemId$split = sysItemId.split("-")) === null || _sysItemId$split === void 0 ? void 0 : _sysItemId$split[0]);
25
+ });
26
+ newFilterSysItemIds = Array.from(new Set((newSysItemIds === null || newSysItemIds === void 0 ? void 0 : newSysItemIds.map(function (item) {
27
+ var _item$split;
28
+ return (_item$split = item.split("-")) === null || _item$split === void 0 ? void 0 : _item$split[0];
29
+ })) || []));
30
+ if (!newFilterSysItemIds.length) {
31
+ _context.next = 8;
32
+ break;
33
+ }
34
+ // 每批最多20个,分批处理
35
+ batchSize = 20;
36
+ batches = [];
37
+ for (i = 0; i < newFilterSysItemIds.length; i += batchSize) {
38
+ batches.push(newFilterSysItemIds.slice(i, i + batchSize));
39
+ }
40
+ // 并发处理所有批次
41
+ _context.next = 8;
42
+ return Promise.all(batches.map(function (batch) {
43
+ return querySupplierList(batch.join(",")).then(function (data) {
44
+ var _data$data;
45
+ if (data !== null && data !== void 0 && (_data$data = data.data) !== null && _data$data !== void 0 && _data$data.success) {
46
+ var _data$data2, _data$data2$suppliers;
47
+ var supplierTempMap = {};
48
+ data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : (_data$data2$suppliers = _data$data2.suppliers) === null || _data$data2$suppliers === void 0 ? void 0 : _data$data2$suppliers.forEach(function (supplier) {
49
+ var key = supplier.sysSkuId == "0" ? supplier.sysItemId : "".concat(supplier.sysItemId, "-").concat(supplier.sysSkuId);
50
+ if (supplierTempMap[key]) {
51
+ supplierTempMap[key].push(supplier);
52
+ } else {
53
+ supplierTempMap[key] = [supplier];
54
+ }
55
+ });
56
+ Object.keys(supplierTempMap).forEach(function (key) {
57
+ supplierMap.set(key, {
58
+ supplierCode: supplierTempMap[key].map(function (item) {
59
+ return item.supplierCode;
60
+ }).join(","),
61
+ supplierName: supplierTempMap[key].map(function (item) {
62
+ return item.supplierName;
63
+ }).join(",")
64
+ });
65
+ });
66
+ newSysItemIds.forEach(function (sysItemId) {
67
+ supplierMap.set(sysItemId, supplierMap.get(sysItemId) || {
68
+ supplierCode: "",
69
+ supplierName: ""
70
+ });
71
+ });
72
+ }
73
+ }).catch(function (err) {
74
+ console.error(err);
75
+ });
76
+ }));
77
+ case 8:
78
+ return _context.abrupt("return", supplierMap);
79
+ case 9:
80
+ case "end":
81
+ return _context.stop();
82
+ }
83
+ }, _callee);
84
+ }));
85
+ return function getSupplierSingleton(_x) {
86
+ return _ref.apply(this, arguments);
87
+ };
88
+ }();
89
+ export default getSupplierSingleton;
@@ -7,8 +7,10 @@ export * as GY from "./GY";
7
7
  export * as JY from "./JY";
8
8
  export * as JST from "./JST";
9
9
  export * as WLN from "./WLN";
10
+ export * from "./workOrder";
10
11
  export * as orderSubForm from "./orderSubForm";
11
12
  export * as SKX from "./SKX";
13
+ export * as JKY from "./JKY";
12
14
  export * from "./workOrder";
13
15
  export * from "./constants";
14
16
  export declare const queryWdtAddressData: (instance?: WdtAddressData) => Promise<void>;
@@ -17,10 +17,13 @@ import * as _JST from "./JST";
17
17
  export { _JST as JST };
18
18
  import * as _WLN from "./WLN";
19
19
  export { _WLN as WLN };
20
+ export * from "./workOrder";
20
21
  import * as _orderSubForm from "./orderSubForm";
21
22
  export { _orderSubForm as orderSubForm };
22
23
  import * as _SKX from "./SKX";
23
24
  export { _SKX as SKX };
25
+ import * as _JKY from "./JKY";
26
+ export { _JKY as JKY };
24
27
  export * from "./workOrder";
25
28
  export * from "./constants";
26
29
  var transformData = function transformData(list) {
@@ -8,7 +8,7 @@ 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 { BSE3, WDT, KM, GY, JST, JY } from "../servers/index";
11
+ import { BSE3, WDT, KM, GY, JST, JY, JKY } from "../servers/index";
12
12
  var SendData = /*#__PURE__*/_createClass(function SendData(platform) {
13
13
  var _this = this;
14
14
  _classCallCheck(this, SendData);
@@ -65,7 +65,8 @@ var SendData = /*#__PURE__*/_createClass(function SendData(platform) {
65
65
  km: KM,
66
66
  gy: GY,
67
67
  jst: JST,
68
- jy: JY
68
+ jy: JY,
69
+ jky: JKY
69
70
  }[this.platform];
70
71
  });
71
72
  export var SendDataCenter = /*#__PURE__*/function () {
@@ -82,6 +83,7 @@ export var SendDataCenter = /*#__PURE__*/function () {
82
83
  if (platform === "GY_SEND_GOOD") platform = "gy";
83
84
  if (platform === "JST_SEND_GOOD") platform = "jst";
84
85
  if (platform === "JY_SEND_GOOD") platform = "jy";
86
+ if (platform === "JKY_SEND_GOOD") platform = "jky";
85
87
  if (!this.instanceMap.has(platform)) {
86
88
  this.instanceMap.set(platform, new SendData(platform));
87
89
  }
@@ -52,15 +52,15 @@ var getExpression = function getExpression(condition, l, r) {
52
52
  var _intersection3, _intersection4;
53
53
  return Array.isArray(l) ? ((_intersection3 = intersection(r, l)) === null || _intersection3 === void 0 ? void 0 : _intersection3.length) > 0 : ((_intersection4 = intersection(r, [l])) === null || _intersection4 === void 0 ? void 0 : _intersection4.length) > 0;
54
54
  }
55
+ if (condition === 'ARRAY_OBJECT_INCLUDE') {
56
+ var _intersection5;
57
+ return ((_intersection5 = intersection(extractPrimitiveValues(l), r)) === null || _intersection5 === void 0 ? void 0 : _intersection5.length) > 0;
58
+ }
55
59
  if (condition === 'NINCLUDE') {
56
- var _intersection5, _intersection6;
57
- var _include = Array.isArray(l) ? ((_intersection5 = intersection(r, l)) === null || _intersection5 === void 0 ? void 0 : _intersection5.length) > 0 : ((_intersection6 = intersection(r, [l])) === null || _intersection6 === void 0 ? void 0 : _intersection6.length) > 0;
60
+ var _intersection6, _intersection7;
61
+ var _include = Array.isArray(l) ? ((_intersection6 = intersection(r, l)) === null || _intersection6 === void 0 ? void 0 : _intersection6.length) > 0 : ((_intersection7 = intersection(r, [l])) === null || _intersection7 === void 0 ? void 0 : _intersection7.length) > 0;
58
62
  return !_include;
59
63
  }
60
- if (condition === 'ARRAY_OBJECT_INCLUDE') {
61
- var _intersection7;
62
- return ((_intersection7 = intersection(extractPrimitiveValues(l), r)) === null || _intersection7 === void 0 ? void 0 : _intersection7.length) > 0;
63
- }
64
64
  return false;
65
65
  };
66
66
  export default getExpression;
@@ -17,6 +17,7 @@ export * from "./jstOrderBackFormValues";
17
17
  export { kmOrderBackFormValues, kmOrderTransform, KM_SYSTEM_ORDER_CONFIG, filterKmOrders, updateKmGoodsHandle, handleKmAddressIdentify, } from "./kmOrderBackFormValues";
18
18
  export { getIsPlatformCodesIncludeOrderNos, GY_DELIVERY_STATE_MAPPING, GY_SYSTEM_ORDER_CONFIG, updateGyGoodsHandle, gyOrderTransform, gyOrderBackFormValues, filterGyOrders, } from "./gyOrderBackFormValues";
19
19
  export { filterJyOrders, jyOrderBackFormValues, jyOrderTransform, updateJyGoodsHandle, JY_SYSTEM_ORDER_CONFIG, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, } from "./jyOrderBackFormValues";
20
+ export { jkyOrderBackFormValues, jkyOrderTransform, updateJkyGoodsHandle, JKY_SYSTEM_ORDER_CONFIG, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, filterJkyOrders, } from "./jkyOrderBackFormValues";
20
21
  export { formatTrade, skxOrderBackFormValues, updateSkxGoodsHandle, skxOrderTransform, skxSystemOrderBackValues, } from "./skxOrderBackFormValues";
21
22
  export { updateOrderSubFormGoodsHandle, orderSubFormOrderBackFormValues, orderSubFormOrderTransform, } from "./orderSubFormOrderBackFormValues";
22
23
  export { formatReturnTrade, skxReturnOrderBackFormValues, updateSkxReturnGoodsHandle, skxReturnOrderTransform, skxReturnSystemOrderBackValues, } from "./skxReturnOrderBackFormValues";
@@ -18,6 +18,7 @@ export * from "./jstOrderBackFormValues";
18
18
  export { kmOrderBackFormValues, kmOrderTransform, KM_SYSTEM_ORDER_CONFIG, filterKmOrders, updateKmGoodsHandle, handleKmAddressIdentify } from "./kmOrderBackFormValues";
19
19
  export { getIsPlatformCodesIncludeOrderNos, GY_DELIVERY_STATE_MAPPING, GY_SYSTEM_ORDER_CONFIG, updateGyGoodsHandle, gyOrderTransform, gyOrderBackFormValues, filterGyOrders } from "./gyOrderBackFormValues";
20
20
  export { filterJyOrders, jyOrderBackFormValues, jyOrderTransform, updateJyGoodsHandle, JY_SYSTEM_ORDER_CONFIG, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP } from "./jyOrderBackFormValues";
21
+ export { jkyOrderBackFormValues, jkyOrderTransform, updateJkyGoodsHandle, JKY_SYSTEM_ORDER_CONFIG, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, filterJkyOrders } from "./jkyOrderBackFormValues";
21
22
  export { formatTrade, skxOrderBackFormValues, updateSkxGoodsHandle, skxOrderTransform, skxSystemOrderBackValues } from "./skxOrderBackFormValues";
22
23
  export { updateOrderSubFormGoodsHandle, orderSubFormOrderBackFormValues, orderSubFormOrderTransform } from "./orderSubFormOrderBackFormValues";
23
24
  export { formatReturnTrade, skxReturnOrderBackFormValues, updateSkxReturnGoodsHandle, skxReturnOrderTransform, skxReturnSystemOrderBackValues } from "./skxReturnOrderBackFormValues";
@@ -0,0 +1,59 @@
1
+ export declare const JKY_SYSTEM_ORDER_CONFIG: {
2
+ key: string;
3
+ name: string;
4
+ selectId: string;
5
+ columns: {
6
+ dataIndex: string;
7
+ title: string;
8
+ width: number;
9
+ }[];
10
+ };
11
+ export declare const JKY_ORDER_TYPE_MAP: {
12
+ SALES: string;
13
+ EXPENSE: string;
14
+ SUBSCRIBES: string;
15
+ EXCHANGE: string;
16
+ REISSUE: string;
17
+ INVOICE: string;
18
+ WELFARE: string;
19
+ OTHERS: string;
20
+ };
21
+ export declare const JKY_ORDER_STATUS_MAP: {
22
+ CREATED: string;
23
+ AUDITED_ABNORMAL: string;
24
+ AUDITED: string;
25
+ DISPATCHED_ABNORMAL: string;
26
+ DISPATCHED: string;
27
+ DELIVERY_ABNORMAL: string;
28
+ DELIVERED: string;
29
+ INVALID: string;
30
+ };
31
+ export declare const getIsPlatformCodesIncludeOrderNos: (platformCodes: string, orderNos: string) => boolean;
32
+ export declare const updateJkyGoodsHandle: (orders?: any[], config?: {
33
+ orderBackGoodsLevel?: string;
34
+ canEdit?: boolean;
35
+ }) => any[];
36
+ export declare const jkyOrderTransform: (detail: any, form: any) => {
37
+ jkySystemOrder: {
38
+ orderNo: any;
39
+ orders: any;
40
+ selectIds: any;
41
+ showOrderInfo: any;
42
+ };
43
+ jkyReturnSystemOrderNo: any;
44
+ jkySystemOrderNo: any;
45
+ jkyReissueGoods: any[];
46
+ jkyReturnGoods: any[];
47
+ jkyGoods: {
48
+ allOrders: any;
49
+ orders: any;
50
+ orderNo: any;
51
+ shopCode: any;
52
+ jkyGoods: any[];
53
+ };
54
+ shopCode: any;
55
+ jkyLogistics: any;
56
+ jkySendGood: any;
57
+ };
58
+ export declare const jkyOrderBackFormValues: (detail?: any, templateDetail?: any) => any;
59
+ export declare const filterJkyOrders: (trades: any, order_no: string) => any;
@@ -0,0 +1,392 @@
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ 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); }
5
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
7
+ 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; }
8
+ 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; }
9
+ 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; }
10
+ 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; }
11
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
12
+ 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); }
13
+ import uuid from "./getUUid";
14
+ import isNull from "./isNull";
15
+ export var JKY_SYSTEM_ORDER_CONFIG = {
16
+ key: "jkySystemShowOrder",
17
+ name: "吉客云",
18
+ selectId: "jkySystemSelectIds",
19
+ columns: [{
20
+ dataIndex: "tradeNo",
21
+ title: "系统订单号",
22
+ width: 160
23
+ }, {
24
+ dataIndex: "tradeType",
25
+ title: "订单类型",
26
+ width: 150
27
+ }, {
28
+ dataIndex: "tradeFrom",
29
+ title: "订单来源",
30
+ width: 150
31
+ }, {
32
+ dataIndex: "tradeStatus",
33
+ title: "销售单状态",
34
+ width: 100
35
+ }, {
36
+ dataIndex: "isDelete",
37
+ title: "是否删除",
38
+ width: 150
39
+ }, {
40
+ dataIndex: "flagNames",
41
+ title: "标记名称",
42
+ width: 150
43
+ }, {
44
+ dataIndex: "warehouseName",
45
+ title: "发货仓名称",
46
+ width: 150
47
+ }, {
48
+ dataIndex: "warehouseCode",
49
+ title: "发货仓编码",
50
+ width: 150
51
+ }, {
52
+ dataIndex: "warehouseId",
53
+ title: "发货仓ID",
54
+ width: 150
55
+ }, {
56
+ dataIndex: "logisticName",
57
+ title: "物流公司名称",
58
+ width: 150
59
+ }, {
60
+ dataIndex: "logisticCode",
61
+ title: "物流公司编码",
62
+ width: 150
63
+ }, {
64
+ dataIndex: "logisticNo",
65
+ title: "物流单号",
66
+ width: 150
67
+ }]
68
+ };
69
+ export var JKY_ORDER_TYPE_MAP = {
70
+ SALES: "销售订单",
71
+ EXPENSE: "费用订单",
72
+ SUBSCRIBES: "预订订单",
73
+ EXCHANGE: "换货订单",
74
+ REISSUE: "补发订单",
75
+ INVOICE: "补发票订单",
76
+ WELFARE: "福利订单",
77
+ OTHERS: "其他订单"
78
+ };
79
+ export var JKY_ORDER_STATUS_MAP = {
80
+ CREATED: "新建",
81
+ AUDITED_ABNORMAL: "审核失败",
82
+ AUDITED: "已审核",
83
+ DISPATCHED_ABNORMAL: "配货异常",
84
+ DISPATCHED: "已配货",
85
+ DELIVERY_ABNORMAL: "平台发货异常",
86
+ DELIVERED: "已发货",
87
+ INVALID: "作废"
88
+ };
89
+ export var getIsPlatformCodesIncludeOrderNos = function getIsPlatformCodesIncludeOrderNos(platformCodes, orderNos) {
90
+ var getSortedList = function getSortedList(str) {
91
+ try {
92
+ var parts = str.split(";");
93
+ var bigInts = parts.map(BigInt);
94
+ var sortedBigInts = bigInts.sort(function (a, b) {
95
+ if (a < b) return -1;
96
+ if (a > b) return 1;
97
+ return 0;
98
+ });
99
+ return sortedBigInts.map(String).join(";");
100
+ } catch (error) {
101
+ return "";
102
+ }
103
+ };
104
+ var platformCodesSortStr = getSortedList(platformCodes || "");
105
+ var orderNosSortStr = getSortedList(orderNos || "");
106
+ return platformCodesSortStr.includes(orderNosSortStr);
107
+ };
108
+ export var updateJkyGoodsHandle = function updateJkyGoodsHandle() {
109
+ var orders = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
110
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
111
+ var mappingGoodsItem = function mappingGoodsItem(list) {
112
+ return (list || []).map(function (item) {
113
+ var _item$uuid, _config$canEdit;
114
+ item.uuid = (_item$uuid = item.uuid) !== null && _item$uuid !== void 0 ? _item$uuid : uuid();
115
+ return _objectSpread(_objectSpread({}, item), {}, {
116
+ canDelete: true,
117
+ canEdit: (_config$canEdit = config === null || config === void 0 ? void 0 : config.canEdit) !== null && _config$canEdit !== void 0 ? _config$canEdit : false,
118
+ divideOrderFee: Number(item.divideOrderFee).toFixed(2),
119
+ sellTotal: Number(item.sellTotal).toFixed(2),
120
+ sellPrice: Number(item.sellPrice).toFixed(2),
121
+ settlementPrice: Number(item.settlementPrice).toFixed(2),
122
+ mallSellingPrice: Number(item.mallSellingPrice).toFixed(2)
123
+ });
124
+ });
125
+ };
126
+ return mappingGoodsItem((orders || []).reduce(function (prv, next) {
127
+ if (next.subOrderDetails && next.subOrderDetails.length) {
128
+ next.subOrderDetails.forEach(function (subItem) {
129
+ if (config.orderBackGoodsLevel !== "2" && subItem.suits && subItem.suits.length) {
130
+ subItem.suits.forEach(function (suit) {
131
+ suit.systemOrderNo = next === null || next === void 0 ? void 0 : next.sid;
132
+ });
133
+ prv.push.apply(prv, _toConsumableArray(subItem.suits));
134
+ } else {
135
+ subItem.systemOrderNo = next === null || next === void 0 ? void 0 : next.sid;
136
+ prv.push(subItem);
137
+ }
138
+ });
139
+ }
140
+ return prv;
141
+ }, []));
142
+ };
143
+ var updateJkyItemListHandle = function updateJkyItemListHandle(list, type, comList, form) {
144
+ var _newList;
145
+ if (type === "logistics") {
146
+ var _comList$find, _currentCom$component;
147
+ //巨益物流信息组件
148
+ var currentCom = comList === null || comList === void 0 ? void 0 : (_comList$find = comList.find) === null || _comList$find === void 0 ? void 0 : _comList$find.call(comList, function (item) {
149
+ return item.workOrderComponentType === "JKY_LOGISTICS";
150
+ });
151
+ var notOrderBack = (currentCom === null || currentCom === void 0 ? void 0 : (_currentCom$component = currentCom.componentConfig) === null || _currentCom$component === void 0 ? void 0 : _currentCom$component.notOrderBack) || false;
152
+ if (notOrderBack) {
153
+ var _currentValue;
154
+ var currentValue = form.getFieldValue(currentCom.uniqueKey);
155
+ currentValue = (_currentValue = currentValue) !== null && _currentValue !== void 0 && _currentValue.length ? currentValue : [{
156
+ logisticsCode: "",
157
+ logisticsCompany: ""
158
+ }];
159
+ return currentValue;
160
+ }
161
+ } else if (type === "send") {
162
+ var _comList$find2, _currentCom$component2;
163
+ var _currentCom = comList === null || comList === void 0 ? void 0 : (_comList$find2 = comList.find) === null || _comList$find2 === void 0 ? void 0 : _comList$find2.call(comList, function (item) {
164
+ return item.workOrderComponentType === "JKY_SEND_GOOD";
165
+ });
166
+ var _notOrderBack = (_currentCom === null || _currentCom === void 0 ? void 0 : (_currentCom$component2 = _currentCom.componentConfig) === null || _currentCom$component2 === void 0 ? void 0 : _currentCom$component2.notOrderBack) || false;
167
+ if (_notOrderBack) {
168
+ var _currentValue3;
169
+ var _currentValue2 = form.getFieldValue(_currentCom.uniqueKey);
170
+ _currentValue2 = (_currentValue3 = _currentValue2) !== null && _currentValue3 !== void 0 && _currentValue3.length ? _currentValue2 : [{
171
+ sendId: "",
172
+ sendName: ""
173
+ }];
174
+ return _currentValue2;
175
+ }
176
+ }
177
+ var newList = list === null || list === void 0 ? void 0 : list.reduce(function (prv, next) {
178
+ var items = ((next === null || next === void 0 ? void 0 : next.subOrderDetails) || []).map(function (t) {
179
+ return {
180
+ title: (t === null || t === void 0 ? void 0 : t.productName) || "",
181
+ picUrl: (t === null || t === void 0 ? void 0 : t.imageUrl) || "",
182
+ platform: "jky",
183
+ skuId: (t === null || t === void 0 ? void 0 : t.productCode) || ""
184
+ };
185
+ });
186
+ var params = {
187
+ items: items
188
+ };
189
+ if (type === "logistics") {
190
+ params.logisticsCompanyName = next === null || next === void 0 ? void 0 : next.logistName;
191
+ params.logisticsCompany = next === null || next === void 0 ? void 0 : next.logisticId;
192
+ params.logisticsCode = next === null || next === void 0 ? void 0 : next.logisticNo;
193
+ prv.push(params);
194
+ } else if (type === "send") {
195
+ params.sendId = next === null || next === void 0 ? void 0 : next.warehouseId;
196
+ //下拉框,取id
197
+ params.sendName = next === null || next === void 0 ? void 0 : next.warehouseId;
198
+ params.sendSnapshotName = next === null || next === void 0 ? void 0 : next.warehouseName;
199
+ prv.push(params);
200
+ }
201
+ return prv;
202
+ }, []);
203
+ if (!((_newList = newList) !== null && _newList !== void 0 && _newList.length)) {
204
+ switch (type) {
205
+ case "logistics":
206
+ newList = [{
207
+ logisticsCode: ""
208
+ }];
209
+ break;
210
+ case "supply":
211
+ newList = [{
212
+ supplyId: ""
213
+ }];
214
+ break;
215
+ case "send":
216
+ newList = [{
217
+ sendId: "",
218
+ sendName: ""
219
+ }];
220
+ break;
221
+ }
222
+ }
223
+ return newList;
224
+ };
225
+
226
+ //巨益订单信息转换
227
+ export var jkyOrderTransform = function jkyOrderTransform(detail, form) {
228
+ var _form$getFieldValue, _jkyReissueCom$compon, _jkyReturnCom$compone, _componentList$find, _componentList$find$c, _filterCurrentTrades$, _filterCurrentTrades$2, _currentTrades$find, _currentTrades$find$c, _currentTrades$find2, _currentTrades$find2$;
229
+ var _detail$allOrders = detail.allOrders,
230
+ allOrders = _detail$allOrders === void 0 ? [] : _detail$allOrders,
231
+ orderNo = detail.orderNo,
232
+ _detail$trades = detail.trades,
233
+ currentTrades = _detail$trades === void 0 ? [] : _detail$trades,
234
+ componentList = detail.componentList;
235
+ var filterCurrentTrades = currentTrades === null || currentTrades === void 0 ? void 0 : currentTrades.filter(function (trade) {
236
+ return !trade.cancel;
237
+ });
238
+ var jkyGoodsCom = (componentList || []).find(function (com) {
239
+ return com.workOrderComponentType === "JKY_GOODS";
240
+ });
241
+ var jkyReissueCom = (componentList || []).find(function (com) {
242
+ return com.workOrderComponentType === "JKY_REISSUE_GOODS";
243
+ });
244
+ var jkyReturnCom = (componentList || []).find(function (com) {
245
+ return com.workOrderComponentType === "JKY_RETURN_GOODS";
246
+ });
247
+ var isStrict = jkyGoodsCom ? (_form$getFieldValue = form.getFieldValue(jkyGoodsCom.uniqueKey)) === null || _form$getFieldValue === void 0 ? void 0 : _form$getFieldValue.isStrict : false;
248
+ var onlyOneSystemOrder = (filterCurrentTrades === null || filterCurrentTrades === void 0 ? void 0 : filterCurrentTrades.length) === 1;
249
+ var isReissueDefaultSelect = !!(jkyReissueCom !== null && jkyReissueCom !== void 0 && (_jkyReissueCom$compon = jkyReissueCom.componentConfig) !== null && _jkyReissueCom$compon !== void 0 && _jkyReissueCom$compon.showDefaultSelect);
250
+ var isReturnDefaultSelect = !!(jkyReturnCom !== null && jkyReturnCom !== void 0 && (_jkyReturnCom$compone = jkyReturnCom.componentConfig) !== null && _jkyReturnCom$compone !== void 0 && _jkyReturnCom$compone.showDefaultSelect);
251
+ var jkyGoodsOrderBackGoodsLevel = (_componentList$find = componentList.find(function (item) {
252
+ return item.workOrderComponentType === "JKY_GOODS";
253
+ })) === null || _componentList$find === void 0 ? void 0 : (_componentList$find$c = _componentList$find.componentConfig) === null || _componentList$find$c === void 0 ? void 0 : _componentList$find$c.orderBackGoodsLevel;
254
+ var defaultOrder = filterCurrentTrades !== null && filterCurrentTrades !== void 0 && filterCurrentTrades[0] ? [filterCurrentTrades[0]] : [];
255
+ var orders = currentTrades === null || currentTrades === void 0 ? void 0 : currentTrades.map(function (item) {
256
+ return _objectSpread(_objectSpread({}, item), {}, {
257
+ tradeType: JKY_ORDER_TYPE_MAP[item.tradeType],
258
+ tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus]
259
+ });
260
+ });
261
+ return {
262
+ jkySystemOrder: {
263
+ orderNo: orderNo,
264
+ orders: orders,
265
+ selectIds: onlyOneSystemOrder ? currentTrades.map(function (item) {
266
+ return item.tradeNo;
267
+ }) : [],
268
+ showOrderInfo: orders
269
+ },
270
+ jkyReturnSystemOrderNo: onlyOneSystemOrder || isReturnDefaultSelect ? (_filterCurrentTrades$ = filterCurrentTrades[0]) === null || _filterCurrentTrades$ === void 0 ? void 0 : _filterCurrentTrades$.tradeNo : undefined,
271
+ jkySystemOrderNo: onlyOneSystemOrder || isReissueDefaultSelect ? (_filterCurrentTrades$2 = filterCurrentTrades[0]) === null || _filterCurrentTrades$2 === void 0 ? void 0 : _filterCurrentTrades$2.tradeNo : undefined,
272
+ jkyReissueGoods: onlyOneSystemOrder || isReissueDefaultSelect ? updateJkyGoodsHandle(defaultOrder, {
273
+ canEdit: true
274
+ }).filter(function (good) {
275
+ return !isStrict || !orderNo || getIsPlatformCodesIncludeOrderNos(good.platformCode, orderNo);
276
+ }) : [],
277
+ jkyReturnGoods: onlyOneSystemOrder || isReturnDefaultSelect ? updateJkyGoodsHandle(defaultOrder, {
278
+ canEdit: true
279
+ }).filter(function (good) {
280
+ return !isStrict || !orderNo || getIsPlatformCodesIncludeOrderNos(good.platformCode, orderNo);
281
+ }) : [],
282
+ jkyGoods: {
283
+ // allOrders用于选择订单商品,代入该订单的所有商品
284
+ allOrders: allOrders,
285
+ // 订单反填,要清空orders,存的是当前系统订单号勾选上的 订单
286
+ orders: currentTrades,
287
+ orderNo: orderNo,
288
+ shopCode: (currentTrades === null || currentTrades === void 0 ? void 0 : (_currentTrades$find = currentTrades.find) === null || _currentTrades$find === void 0 ? void 0 : (_currentTrades$find$c = _currentTrades$find.call(currentTrades, function (item) {
289
+ return item.shopCode;
290
+ })) === null || _currentTrades$find$c === void 0 ? void 0 : _currentTrades$find$c.shopCode) || null,
291
+ jkyGoods: updateJkyGoodsHandle(currentTrades, {
292
+ orderBackGoodsLevel: jkyGoodsOrderBackGoodsLevel
293
+ }).filter(function (good) {
294
+ return !isStrict || !orderNo;
295
+ })
296
+ },
297
+ shopCode: (currentTrades === null || currentTrades === void 0 ? void 0 : (_currentTrades$find2 = currentTrades.find) === null || _currentTrades$find2 === void 0 ? void 0 : (_currentTrades$find2$ = _currentTrades$find2.call(currentTrades, function (item) {
298
+ return item.shopCode;
299
+ })) === null || _currentTrades$find2$ === void 0 ? void 0 : _currentTrades$find2$.shopCode) || null,
300
+ jkyLogistics: updateJkyItemListHandle(currentTrades, "logistics", componentList || [], form),
301
+ jkySendGood: updateJkyItemListHandle(currentTrades, "send", componentList || [], form)
302
+ };
303
+ };
304
+ export var jkyOrderBackFormValues = function jkyOrderBackFormValues() {
305
+ var detail = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
306
+ var templateDetail = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
307
+ return ((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []).reduce(function (prv, next) {
308
+ var uniqueKey = next.uniqueKey;
309
+ var config = next.componentConfig;
310
+ switch (next.workOrderComponentType) {
311
+ case "JKY_SYSTEM_ORDER":
312
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.jkySystemOrder;
313
+ break;
314
+ case "JKY_GOODS":
315
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.jkyGoods;
316
+ break;
317
+ case "JKY_REISSUE_GOODS":
318
+ {
319
+ var _detail$jkyGoods, _detail$jkySystemOrde, _detail$jkySystemOrde2, _detail$jkySystemOrde3, _detail$jkySystemOrde4, _detail$jkySystemOrde5, _detail$jkySystemOrde6;
320
+ var initReason = !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? config.initReason : "1";
321
+ prv[uniqueKey] = {
322
+ jkySystemOrder: detail === null || detail === void 0 ? void 0 : detail.jkySystemOrder,
323
+ jkyReissueGoods: initReason === "2" ? [] : detail === null || detail === void 0 ? void 0 : detail.jkyReissueGoods,
324
+ jkySystemOrderNo: detail === null || detail === void 0 ? void 0 : detail.jkySystemOrderNo,
325
+ jkyReissueType: [initReason],
326
+ shopCode: (detail === null || detail === void 0 ? void 0 : (_detail$jkyGoods = detail.jkyGoods) === null || _detail$jkyGoods === void 0 ? void 0 : _detail$jkyGoods.shopCode) || (detail === null || detail === void 0 ? void 0 : detail.shopCode) || (detail === null || detail === void 0 ? void 0 : (_detail$jkySystemOrde = detail.jkySystemOrder) === null || _detail$jkySystemOrde === void 0 ? void 0 : (_detail$jkySystemOrde2 = _detail$jkySystemOrde.orders) === null || _detail$jkySystemOrde2 === void 0 ? void 0 : (_detail$jkySystemOrde3 = _detail$jkySystemOrde2[0]) === null || _detail$jkySystemOrde3 === void 0 ? void 0 : _detail$jkySystemOrde3.shopCode) || (detail === null || detail === void 0 ? void 0 : (_detail$jkySystemOrde4 = detail.jkySystemOrder) === null || _detail$jkySystemOrde4 === void 0 ? void 0 : (_detail$jkySystemOrde5 = _detail$jkySystemOrde4.showOrderInfo) === null || _detail$jkySystemOrde5 === void 0 ? void 0 : (_detail$jkySystemOrde6 = _detail$jkySystemOrde5[0]) === null || _detail$jkySystemOrde6 === void 0 ? void 0 : _detail$jkySystemOrde6.shopCode)
327
+ };
328
+ }
329
+ break;
330
+ case "JKY_LOGISTICS":
331
+ prv[uniqueKey] = updateJkyItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.jkyLogistics, "logistics", config);
332
+ break;
333
+ case "JKY_SEND_GOOD":
334
+ prv[uniqueKey] = updateJkyItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.jkySendGood, "send", config);
335
+ break;
336
+ case "JKY_RETURN_GOODS":
337
+ {
338
+ var _detail$jkyGoods2, _detail$jkySystemOrde7, _detail$jkySystemOrde8, _detail$jkySystemOrde9, _detail$jkySystemOrde10, _detail$jkySystemOrde11, _detail$jkySystemOrde12;
339
+ var _initReason = !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? config.initReason : "1";
340
+ prv[uniqueKey] = {
341
+ jkySystemOrder: detail === null || detail === void 0 ? void 0 : detail.jkySystemOrder,
342
+ jkyReturnGoods: _initReason === "2" ? [] : detail === null || detail === void 0 ? void 0 : detail.jkyReturnGoods,
343
+ jkySystemOrderNo: detail === null || detail === void 0 ? void 0 : detail.jkyReturnSystemOrderNo,
344
+ shopCode: (detail === null || detail === void 0 ? void 0 : (_detail$jkyGoods2 = detail.jkyGoods) === null || _detail$jkyGoods2 === void 0 ? void 0 : _detail$jkyGoods2.shopCode) || (detail === null || detail === void 0 ? void 0 : detail.shopCode) || (detail === null || detail === void 0 ? void 0 : (_detail$jkySystemOrde7 = detail.jkySystemOrder) === null || _detail$jkySystemOrde7 === void 0 ? void 0 : (_detail$jkySystemOrde8 = _detail$jkySystemOrde7.orders) === null || _detail$jkySystemOrde8 === void 0 ? void 0 : (_detail$jkySystemOrde9 = _detail$jkySystemOrde8[0]) === null || _detail$jkySystemOrde9 === void 0 ? void 0 : _detail$jkySystemOrde9.shopCode) || (detail === null || detail === void 0 ? void 0 : (_detail$jkySystemOrde10 = detail.jkySystemOrder) === null || _detail$jkySystemOrde10 === void 0 ? void 0 : (_detail$jkySystemOrde11 = _detail$jkySystemOrde10.showOrderInfo) === null || _detail$jkySystemOrde11 === void 0 ? void 0 : (_detail$jkySystemOrde12 = _detail$jkySystemOrde11[0]) === null || _detail$jkySystemOrde12 === void 0 ? void 0 : _detail$jkySystemOrde12.shopCode),
345
+ gyReturnType: [_initReason]
346
+ };
347
+ }
348
+ break;
349
+ }
350
+ return prv;
351
+ }, {});
352
+ };
353
+ var updateJkyItemListByConfigHandle = function updateJkyItemListByConfigHandle(list, type) {
354
+ var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
355
+ var showField = config.showField,
356
+ _config$notOrderBack = config.notOrderBack,
357
+ notOrderBack = _config$notOrderBack === void 0 ? false : _config$notOrderBack;
358
+ if (notOrderBack) {
359
+ return list;
360
+ }
361
+ return list === null || list === void 0 ? void 0 : list.reduce(function (prv, next) {
362
+ if (type === "logistics") {
363
+ if (!["logisticsCompany", ""].includes(showField || "")) {
364
+ next.logisticsCompany = undefined;
365
+ }
366
+ if (!["logisticsCode", ""].includes(showField || "")) {
367
+ next.logisticsCode = undefined;
368
+ }
369
+ } else if (type === "send") {
370
+ if (!["sendId", "all"].includes(showField || "")) {
371
+ next.sendId = undefined;
372
+ }
373
+ if (!["sendName", "all"].includes(showField || "")) {
374
+ next.sendName = undefined;
375
+ next.sendSnapshotName = undefined;
376
+ }
377
+ }
378
+ prv.push(next);
379
+ return prv;
380
+ }, []);
381
+ };
382
+
383
+ // 巨益根据订单号请求返回的platformCode会有多个订单号组合在一起的数据 排除其他的,返回当前订单号
384
+ export var filterJkyOrders = function filterJkyOrders(trades, order_no) {
385
+ var currentTrades = (trades || []).filter(function (item) {
386
+ return getIsPlatformCodesIncludeOrderNos(item.tradeId, order_no);
387
+ });
388
+ if (currentTrades.length) {
389
+ return currentTrades;
390
+ }
391
+ return [];
392
+ };
@@ -89,6 +89,11 @@ export var updateJyGoodsHandle = function updateJyGoodsHandle() {
89
89
  if (next.subOrderDetails && next.subOrderDetails.length) {
90
90
  next.subOrderDetails.forEach(function (subItem) {
91
91
  subItem.systemOrderNo = next === null || next === void 0 ? void 0 : next.tradeNo;
92
+ subItem.divideOrderFee = Number(subItem.divideOrderFee).toFixed(2);
93
+ subItem.sellTotal = Number(subItem.sellTotal).toFixed(2);
94
+ subItem.sellPrice = Number(subItem.sellPrice).toFixed(2);
95
+ subItem.settlementPrice = Number(subItem.settlementPrice).toFixed(2);
96
+ subItem.mallSellingPrice = Number(subItem.mallSellingPrice).toFixed(2);
92
97
  prv.push(subItem);
93
98
  });
94
99
  }
@@ -3,8 +3,10 @@ export declare const kmOrderBackFormValues: (detail?: any, templateDetail?: any)
3
3
  declare const KM_ORDER_TYPE_MAP: {
4
4
  "0": string;
5
5
  "1": string;
6
+ "2": string;
6
7
  "3": string;
7
8
  "4": string;
9
+ "5": string;
8
10
  "6": string;
9
11
  "7": string;
10
12
  "8": string;
@@ -14,6 +16,7 @@ declare const KM_ORDER_TYPE_MAP: {
14
16
  "12": string;
15
17
  "13": string;
16
18
  "14": string;
19
+ "15": string;
17
20
  "16": string;
18
21
  "17": string;
19
22
  "18": string;
@@ -24,10 +27,23 @@ declare const KM_ORDER_TYPE_MAP: {
24
27
  "23": string;
25
28
  "24": string;
26
29
  "25": string;
30
+ "26": string;
31
+ "27": string;
32
+ "28": string;
33
+ "29": string;
34
+ "30": string;
35
+ "31": string;
36
+ "32": string;
27
37
  "33": string;
28
38
  "34": string;
29
39
  "35": string;
30
40
  "36": string;
41
+ "37": string;
42
+ "38": string;
43
+ "39": string;
44
+ "46": string;
45
+ "48": string;
46
+ "49": string;
31
47
  "50": string;
32
48
  "51": string;
33
49
  "53": string;
@@ -39,7 +55,20 @@ declare const KM_ORDER_TYPE_MAP: {
39
55
  "60": string;
40
56
  "61": string;
41
57
  "62": string;
58
+ "63": string;
59
+ "65": string;
42
60
  "66": string;
61
+ "69": string;
62
+ "70": string;
63
+ "72": string;
64
+ "73": string;
65
+ "74": string;
66
+ "75": string;
67
+ "76": string;
68
+ "77": string;
69
+ "78": string;
70
+ "79": string;
71
+ "80": string;
43
72
  "99": string;
44
73
  };
45
74
  export declare const updateKmGoodsHandle: (orders?: any[], config?: {
@@ -48,6 +77,7 @@ export declare const updateKmGoodsHandle: (orders?: any[], config?: {
48
77
  }) => any[];
49
78
  export declare const getKmOrderTypeValue: (key: keyof typeof KM_ORDER_TYPE_MAP) => string;
50
79
  declare const KM_ORDER_STATUS: {
80
+ WAIT_BUYER_PAY: string;
51
81
  WAIT_AUDIT: string;
52
82
  WAIT_FINANCE_AUDIT: string;
53
83
  WAIT_MANUAL_AUDIT: string;
@@ -97,8 +97,10 @@ export var kmOrderBackFormValues = function kmOrderBackFormValues() {
97
97
  var KM_ORDER_TYPE_MAP = {
98
98
  "0": "普通订单",
99
99
  "1": "货到付款",
100
+ "2": "纯平台订单(包含平台单拆出去的手工单)",
100
101
  "3": "平台订单",
101
102
  "4": "线下订单",
103
+ "5": "纯系统手工单(不包含平台单拆出去的手工单)",
102
104
  "6": "预售订单",
103
105
  "7": "合并订单",
104
106
  "8": "拆分订单",
@@ -108,6 +110,7 @@ var KM_ORDER_TYPE_MAP = {
108
110
  "12": "门店订单",
109
111
  "13": "换货订单",
110
112
  "14": "补发订单",
113
+ "15": "跨境订单",
111
114
  "16": "海外仓订单",
112
115
  "17": "Lazada",
113
116
  "18": "报损单",
@@ -118,10 +121,23 @@ var KM_ORDER_TYPE_MAP = {
118
121
  "23": "平台预售",
119
122
  "24": "京东直发",
120
123
  "25": "京东供销",
124
+ "26": "天猫当日发货",
125
+ "27": "天猫24小时发货",
126
+ "28": "天猫当日达",
127
+ "29": "天猫次日达",
128
+ "30": "天猫三日达",
129
+ "31": "天猫四日达",
130
+ "32": "天猫五日达",
121
131
  "33": "分销订单",
122
132
  "34": "供销订单",
123
133
  "35": "京配订单",
124
134
  "36": "平台分销",
135
+ "37": "唯品会订单JIT",
136
+ "38": "唯品会订单",
137
+ "39": "BIC订单",
138
+ "46": "档口订单",
139
+ "48": "多级分销",
140
+ "49": "拼多多工厂代发",
125
141
  "50": "天猫淘宝店铺预售",
126
142
  "51": "抖音厂商代发",
127
143
  "53": "亚马逊FBA",
@@ -133,7 +149,20 @@ var KM_ORDER_TYPE_MAP = {
133
149
  "60": "全款预售",
134
150
  "61": "得物直发订单",
135
151
  "62": "Lazada-FBL",
152
+ "63": "淘宝厂商代发订单",
153
+ "65": "BTAS订单",
136
154
  "66": "平台拆单",
155
+ "69": "阿里代销",
156
+ "70": "花城农夫帮卖订单",
157
+ "72": "快麦通代发",
158
+ "73": "1688分销小站",
159
+ "74": "速卖通全托管",
160
+ "75": "分销订单(明确供销商)",
161
+ "76": "含拆单标记的订单",
162
+ "77": "1688分销小站(分销)",
163
+ "78": "o2o订单",
164
+ "79": "TEMU",
165
+ "80": "希音",
137
166
  "99": "出库单"
138
167
  };
139
168
  export var updateKmGoodsHandle = function updateKmGoodsHandle() {
@@ -164,6 +193,7 @@ export var updateKmGoodsHandle = function updateKmGoodsHandle() {
164
193
  if (config.orderBackGoodsLevel !== "2" && subItem.suits && subItem.suits.length) {
165
194
  subItem.suits.forEach(function (suit) {
166
195
  suit.systemOrderNo = next === null || next === void 0 ? void 0 : next.sid;
196
+ suit.outerSkuId = suit === null || suit === void 0 ? void 0 : suit.outerId;
167
197
  });
168
198
  prv.push.apply(prv, _toConsumableArray(subItem.suits));
169
199
  } else {
@@ -179,6 +209,7 @@ export var getKmOrderTypeValue = function getKmOrderTypeValue(key) {
179
209
  return KM_ORDER_TYPE_MAP[key] || key;
180
210
  };
181
211
  var KM_ORDER_STATUS = {
212
+ WAIT_BUYER_PAY: "待付款",
182
213
  WAIT_AUDIT: "待审核",
183
214
  WAIT_FINANCE_AUDIT: "等待财审",
184
215
  WAIT_MANUAL_AUDIT: "等待人工审核",
@@ -348,7 +379,7 @@ export var filterKmOrders = function filterKmOrders(detail, order_no) {
348
379
 
349
380
  //km订单信息转换
350
381
  export var kmOrderTransform = function kmOrderTransform(detail, form) {
351
- var _form$getFieldValue, _kmReissueCom$compone, _componentList$find, _componentList$find$c, _kmReissueGoodsCompon, _componentList$find2, _componentList$find2$, _kmReissueGoodsCompon2, _postingComponent$com, _trades$, _trades$find, _trades$find$call;
382
+ var _form$getFieldValue, _kmReissueGoodsCompon, _componentList$find, _componentList$find$c, _kmReissueGoodsCompon2, _componentList$find2, _componentList$find2$, _kmReissueGoodsCompon3, _postingComponent$com, _trades$, _trades$find, _trades$find$call;
352
383
  var trades = (detail === null || detail === void 0 ? void 0 : detail.orderDetailDtoList) || (detail === null || detail === void 0 ? void 0 : detail.trades) || [];
353
384
  var _ref = detail || {},
354
385
  orderNo = _ref.orderNo,
@@ -356,12 +387,12 @@ export var kmOrderTransform = function kmOrderTransform(detail, form) {
356
387
  var kmGoodsCom = (componentList || []).find(function (com) {
357
388
  return com.workOrderComponentType === "KM_GOODS";
358
389
  });
359
- var kmReissueCom = (componentList || []).find(function (com) {
360
- return com.workOrderComponentType === "KM_REISSUE_GOODS";
390
+ var kmReissueGoodsComponent = componentList.find(function (item) {
391
+ return item.workOrderComponentType === "KM_REISSUE_GOODS";
361
392
  });
362
393
  var isStrict = kmGoodsCom ? (_form$getFieldValue = form.getFieldValue(kmGoodsCom.uniqueKey)) === null || _form$getFieldValue === void 0 ? void 0 : _form$getFieldValue.isStrict : false;
363
394
  var onlyOneSystemOrder = (trades === null || trades === void 0 ? void 0 : trades.length) === 1;
364
- var isReissueDefaultSelect = !!(kmReissueCom !== null && kmReissueCom !== void 0 && (_kmReissueCom$compone = kmReissueCom.componentConfig) !== null && _kmReissueCom$compone !== void 0 && _kmReissueCom$compone.showDefaultSelect);
395
+ var isReissueDefaultSelect = !!(kmReissueGoodsComponent !== null && kmReissueGoodsComponent !== void 0 && (_kmReissueGoodsCompon = kmReissueGoodsComponent.componentConfig) !== null && _kmReissueGoodsCompon !== void 0 && _kmReissueGoodsCompon.showDefaultSelect);
365
396
  console.log("kmOrderTransform---", {
366
397
  detail: detail,
367
398
  componentList: componentList
@@ -369,17 +400,14 @@ export var kmOrderTransform = function kmOrderTransform(detail, form) {
369
400
  var kmGoodsOrderBackGoodsLevel = (_componentList$find = componentList.find(function (item) {
370
401
  return item.workOrderComponentType === "KM_GOODS";
371
402
  })) === null || _componentList$find === void 0 ? void 0 : (_componentList$find$c = _componentList$find.componentConfig) === null || _componentList$find$c === void 0 ? void 0 : _componentList$find$c.orderBackGoodsLevel;
372
- var kmReissueGoodsComponent = componentList.find(function (item) {
373
- return item.workOrderComponentType === "KM_REISSUE_GOODS";
374
- });
375
- var kmReissueGoodsOrderBackGoodsLevel = kmReissueGoodsComponent === null || kmReissueGoodsComponent === void 0 ? void 0 : (_kmReissueGoodsCompon = kmReissueGoodsComponent.componentConfig) === null || _kmReissueGoodsCompon === void 0 ? void 0 : _kmReissueGoodsCompon.orderBackGoodsLevel;
403
+ var kmReissueGoodsOrderBackGoodsLevel = kmReissueGoodsComponent === null || kmReissueGoodsComponent === void 0 ? void 0 : (_kmReissueGoodsCompon2 = kmReissueGoodsComponent.componentConfig) === null || _kmReissueGoodsCompon2 === void 0 ? void 0 : _kmReissueGoodsCompon2.orderBackGoodsLevel;
376
404
  var kmReturnGoodsOrderBackGoodsLevel = (_componentList$find2 = componentList.find(function (item) {
377
405
  return item.workOrderComponentType === "KM_RETURN_GOODS";
378
406
  })) === null || _componentList$find2 === void 0 ? void 0 : (_componentList$find2$ = _componentList$find2.componentConfig) === null || _componentList$find2$ === void 0 ? void 0 : _componentList$find2$.orderBackGoodsLevel;
379
407
  var postingComponent = componentList.find(function (item) {
380
408
  return item.workOrderComponentType === "POSTING";
381
409
  });
382
- var kmReissueGoodsComponentInitReason = (kmReissueGoodsComponent === null || kmReissueGoodsComponent === void 0 ? void 0 : (_kmReissueGoodsCompon2 = kmReissueGoodsComponent.componentConfig) === null || _kmReissueGoodsCompon2 === void 0 ? void 0 : _kmReissueGoodsCompon2.initReason) || "1";
410
+ var kmReissueGoodsComponentInitReason = (kmReissueGoodsComponent === null || kmReissueGoodsComponent === void 0 ? void 0 : (_kmReissueGoodsCompon3 = kmReissueGoodsComponent.componentConfig) === null || _kmReissueGoodsCompon3 === void 0 ? void 0 : _kmReissueGoodsCompon3.initReason) || "1";
383
411
  var kmPosting;
384
412
  if (onlyOneSystemOrder && kmReissueGoodsComponent && kmReissueGoodsComponentInitReason === "1" && (postingComponent === null || postingComponent === void 0 ? void 0 : (_postingComponent$com = postingComponent.componentConfig) === null || _postingComponent$com === void 0 ? void 0 : _postingComponent$com.showField) === "km") {
385
413
  kmPosting = handleKmAddressIdentify(trades[0]);
@@ -250,8 +250,8 @@ export default (function (_ref) {
250
250
  var wdtValues = detail["wdtOrder"] ? wdtOrderBackFormValues(detail["wdtOrder"], templateDetail) : {};
251
251
  var bsE3Values = detail["bsE3Order"] ? bsE3OrderBackFormValues(detail["bsE3Order"], templateDetail) : {};
252
252
  var kmValues = detail["kmOrder"] ? kmOrderBackFormValues(detail["kmOrder"], templateDetail) : {};
253
- var jyValues = detail["jyOrder"] ? jyOrderBackFormValues(detail["jyOrder"], templateDetail) : {};
254
253
  var gyValues = detail["gyOrder"] ? gyOrderBackFormValues(detail["gyOrder"], templateDetail) : {};
254
+ var jyValues = detail["jyOrder"] ? jyOrderBackFormValues(detail["jyOrder"], templateDetail) : {};
255
255
  //不判断是否存在detail["skxOrder"],不存在直接清空所有skx相关组件值
256
256
  var skxValues = detail["skxOrder"] ? skxOrderBackFormValues(detail["skxOrder"], templateDetail) : {};
257
257
  var skxReturnValues = detail["skxReturnOrder"] ? skxReturnOrderBackFormValues(detail["skxReturnOrder"], templateDetail) : {};
@@ -1,5 +1,5 @@
1
1
  export default (function (key) {
2
- return ["itemList", "itemId", "supplierName", "numIid", "aloneItemId", "aloneItemEncode", "jstItemList", "logisticsCompany", "logisticsCode", "supplyId", "supplyName", "sendId", "sendName", "dateTime", "basicMultSelect", "memberLevel", "erpOrderType", "erpOrderStatus", "jstOutboundStatus", "orderRefundType", "executeActionType", "checkbox", "multSelect", "rate", "picture", "pictureProList", "file", "wdtGoods", "wdtReissueType", "wdtSystemOrderNo", "wdtReissueGoods", "wdtAftersaleGoods", "wdtSendGood", "wdtSendId", "wdtSendName", "wdtLogisticsCode", "wdtSystemShowOrder", "wdtSystemSelectIds", "wdtReturnBillNo", "wdtReturnBillSelectIds", "wdtReturnBillShowOrder", "wdtLogisticsCompany", "wdtLogisticsList", "wdtReturnGoods", "wdtReturnType", "wdtExchangeGoods", "bsSendGood", "bsSendId", "bsSendName", "bsGoods", "bsExchangeType", "bsExchangeReturnGoods", "bsExchangeSwapOutGoods", "bsExchangeGiftGoods", "bsReissueType", "bsReissueGoods", "bsReturnGoods", "bsReturnType", "bsLogisticsList", "bsLogisticsCompany", "bsLogisticsCode", "kmSystemShowOrder", "bsSystemShowOrder", "bsSystemSelectIds", "bsE3SystemOrderNo", "bsE3SystemShowOrder", "bsE3SystemSelectIds", "bsE3Goods", "bsE3ReissueGoods", "bsE3ReissueType", "reissueLogisticsList", "reissueLogisticsCompany", "reissueLogisticsCode", "deliveryNoList", "deliveryNoIds", "returnGoodsStatusList", "returnGoodsTradeIdList", "returnGoodsTradeItemList", "tradeIdList", "tradeItemList", "wlnLogisticsList", "wlnLogisticsCompany", "wlnLogisticsCode", "wlnSystemShowOrder", "wlnSystemSelectIds", "wlnGoods", "wlnSendGood", "wlnSendId", "wlnSendName", "exchangeReason", "flowTag", "returnGoodsStatusList", "returnGoodsStatusValue", "exchangeReason", "exchangeStatusValue", "inStockStatusItemList", "inStockStatusList", "bsE3InStockStatusItemList", "bsE3InStockStatusList", "wdtInStockStatusItemList", "wdtInStockStatusList", "reissueStatusValue", "reissueReason", "adjustWorkOrderStatusValue", "adjustWorkOrderReason", "msgStatusValues", "msgStatus4Search", "createStatusValue", "createReason", "invoiceStatusValue", "invoiceReason", "invoicingStatusValue", "invoicingReason", "trajectoryList", "trajectoryMoreCompany", "trajectoryMoreCode", "trajectoryMoreSnapshot", "logisticsInterceptList", "logisticsInterceptCompanyList", "logisticsInterceptCodeList", "logisticsInterceptTypeList", "logisticsInterceptStatusList", "logisticsInterceptApiStatusList", "interceptLogisticsApiStatus", "logisticsInterceptSnapshotList", "productList", "subOrderList", "label", "kmSendGood", "kmSendId", "kmSendName", "kmGoods", "gyGoods", "gyReissueType", "gySystemOrderNo", "gyReissueGoods", "gySendGood", "gySendId", "gySendName", "gyLogisticsCode", "gySystemShowOrder", "gySystemSelectIds", "gyLogisticsCompany", "gyLogisticsList", "gyReturnGoods", "gyReturnType", "gyExchangeGoods", "jyGoods", "jySystemOrderNo", "jySystemShowOrder", "jySystemSelectIds", "jySendGood", "jySendId", "jySendName", "jyLogisticsList", "jyLogisticsCompany", "jyLogisticsCode", "kmLogisticsList", "jstGoods", "jstSendGood", "jstReissueType", "jstReissueGoods", "jstSystemOrderNo", "jstLogisticsList", "jstSystemShowOrder", "jstSystemSelectIds", "jstReturnGoods", "jstReturnType", "jstExchangeGoods", "trajectoryApiStatus", "kmReissueGoods", "kmReissueType", "kmReturnGoods", "kmReturnType", "kmVideo", "wdtTags", "skxGoods", "skxReturnGoods", "skxLogisticsList", "skxReturnLogistics", "jyReissueGoods", "jyReissueType", "jstAftersaleGoods"].reduce(function (cur, nxt) {
2
+ return ["itemList", "itemId", "supplierName", "numIid", "aloneItemId", "aloneItemEncode", "jstItemList", "logisticsCompany", "logisticsCode", "supplyId", "supplyName", "sendId", "sendName", "dateTime", "basicMultSelect", "memberLevel", "erpOrderType", "erpOrderStatus", "jstOutboundStatus", "orderRefundType", "executeActionType", "checkbox", "multSelect", "rate", "picture", "pictureProList", "file", "wdtGoods", "wdtReissueType", "wdtSystemOrderNo", "wdtReissueGoods", "wdtAftersaleGoods", "wdtSendGood", "wdtSendId", "wdtSendName", "wdtLogisticsCode", "wdtSystemShowOrder", "wdtSystemSelectIds", "wdtReturnBillNo", "wdtReturnBillSelectIds", "wdtReturnBillShowOrder", "wdtLogisticsCompany", "wdtLogisticsList", "wdtReturnGoods", "wdtReturnType", "wdtExchangeGoods", "bsSendGood", "bsSendId", "bsSendName", "bsGoods", "bsExchangeType", "bsExchangeReturnGoods", "bsExchangeSwapOutGoods", "bsExchangeGiftGoods", "bsReissueType", "bsReissueGoods", "bsReturnGoods", "bsReturnType", "bsLogisticsList", "bsLogisticsCompany", "bsLogisticsCode", "kmSystemShowOrder", "bsSystemShowOrder", "bsSystemSelectIds", "bsE3SystemOrderNo", "bsE3SystemShowOrder", "bsE3SystemSelectIds", "bsE3Goods", "bsE3ReissueGoods", "bsE3ReissueType", "reissueLogisticsList", "reissueLogisticsCompany", "reissueLogisticsCode", "deliveryNoList", "deliveryNoIds", "returnGoodsStatusList", "returnGoodsTradeIdList", "returnGoodsTradeItemList", "tradeIdList", "tradeItemList", "wlnLogisticsList", "wlnLogisticsCompany", "wlnLogisticsCode", "wlnSystemShowOrder", "wlnSystemSelectIds", "wlnGoods", "wlnSendGood", "wlnSendId", "wlnSendName", "exchangeReason", "flowTag", "returnGoodsStatusList", "returnGoodsStatusValue", "exchangeReason", "exchangeStatusValue", "inStockStatusItemList", "inStockStatusList", "bsE3InStockStatusItemList", "bsE3InStockStatusList", "wdtInStockStatusItemList", "wdtInStockStatusList", "reissueStatusValue", "reissueReason", "adjustWorkOrderStatusValue", "adjustWorkOrderReason", "msgStatusValues", "msgStatus4Search", "createStatusValue", "createReason", "invoiceStatusValue", "invoiceReason", "invoicingStatusValue", "invoicingReason", "trajectoryList", "trajectoryMoreCompany", "trajectoryMoreCode", "trajectoryMoreSnapshot", "logisticsInterceptList", "logisticsInterceptCompanyList", "logisticsInterceptCodeList", "logisticsInterceptTypeList", "logisticsInterceptStatusList", "logisticsInterceptApiStatusList", "interceptLogisticsApiStatus", "logisticsInterceptSnapshotList", "productList", "subOrderList", "label", "kmSendGood", "kmSendId", "kmSendName", "kmGoods", "gyGoods", "gyReissueType", "gySystemOrderNo", "gyReissueGoods", "gySendGood", "gySendId", "gySendName", "gyLogisticsCode", "gySystemShowOrder", "gySystemSelectIds", "gyLogisticsCompany", "gyLogisticsList", "gyReturnGoods", "gyReturnType", "gyExchangeGoods", "jyGoods", "jySystemOrderNo", "jySystemShowOrder", "jySystemSelectIds", "jySendGood", "jySendId", "jySendName", "jyLogisticsList", "jyLogisticsCompany", "jyLogisticsCode", "jkyGoods", "jkySystemOrderNo", "jkySystemSelectIds", "jkySystemShowOrder", "jkySendGood", "jkySendId", "jkySendName", "jkyLogisticsList", "jkyLogisticsCompany", "jkyLogisticsCode", "kmLogisticsList", "jstGoods", "jstSendGood", "jstReissueType", "jstReissueGoods", "jstSystemOrderNo", "jstLogisticsList", "jstSystemShowOrder", "jstSystemSelectIds", "jstReturnGoods", "jstReturnType", "jstExchangeGoods", "trajectoryApiStatus", "kmReissueGoods", "kmReissueType", "kmReturnGoods", "kmReturnType", "kmVideo", "wdtTags", "skxGoods", "skxReturnGoods", "skxLogisticsList", "skxReturnLogistics", "jyReissueGoods", "jyReissueType", "jstAftersaleGoods"].reduce(function (cur, nxt) {
3
3
  return cur || (key === null || key === void 0 ? void 0 : key.includes(nxt));
4
4
  }, false);
5
5
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-utils",
3
- "version": "2.2.41",
3
+ "version": "2.2.44-beta.0",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "dff34afdc1b66dbda681259dcba6c7059101a7c5",
44
+ "gitHead": "716ed4f64a6fd45217b1ba041f5f7eb3a35496c0",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }