@kmkf-fe-packages/kmkf-utils 2.2.13-beta.68 → 2.2.13-beta.82
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.
|
@@ -1,3 +1,9 @@
|
|
|
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
1
7
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
8
|
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."); }
|
|
3
9
|
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); }
|
|
@@ -7,6 +13,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
7
13
|
import ExpressData from "../expressData";
|
|
8
14
|
import ExpressInterceptData from "../expressInterceptData";
|
|
9
15
|
import uuid from "./getUUid";
|
|
16
|
+
import isNull from "./isNull";
|
|
10
17
|
export var BS_SYSTEM_ORDER_CONFIG = {
|
|
11
18
|
key: "bsSystemShowOrder",
|
|
12
19
|
name: "百胜",
|
|
@@ -213,13 +220,38 @@ export var bsOrderBackFormValues = function bsOrderBackFormValues() {
|
|
|
213
220
|
prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.bsGoods;
|
|
214
221
|
break;
|
|
215
222
|
case "BS_EXCHANGE_GOODS":
|
|
216
|
-
|
|
223
|
+
{
|
|
224
|
+
var _detail$bsGoods, _detail$bsGoods2;
|
|
225
|
+
var initReason = !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? Array.isArray(config.initReason) ? config.initReason : [config.initReason] : [];
|
|
226
|
+
console.log("initReason", initReason);
|
|
227
|
+
prv[uniqueKey] = _objectSpread(_objectSpread({}, detail === null || detail === void 0 ? void 0 : detail.bsExchangeGoods), {}, {
|
|
228
|
+
bsExchangeType: initReason,
|
|
229
|
+
bsExchangeReturnGoods: ["2", "4"].includes(initReason[0]) ? [] : (detail === null || detail === void 0 ? void 0 : (_detail$bsGoods = detail.bsGoods) === null || _detail$bsGoods === void 0 ? void 0 : _detail$bsGoods.bsGoods) || [],
|
|
230
|
+
bsExchangeSwapOutGoods: ["2", "4"].includes(initReason[0]) ? [] : (detail === null || detail === void 0 ? void 0 : (_detail$bsGoods2 = detail.bsGoods) === null || _detail$bsGoods2 === void 0 ? void 0 : _detail$bsGoods2.bsGoods) || []
|
|
231
|
+
});
|
|
232
|
+
}
|
|
217
233
|
break;
|
|
218
234
|
case "BS_REISSUE_GOODS":
|
|
219
|
-
|
|
235
|
+
{
|
|
236
|
+
var _detail$bsGoods3;
|
|
237
|
+
var _initReason = !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? Array.isArray(config.initReason) ? config.initReason : [config.initReason] : [];
|
|
238
|
+
prv[uniqueKey] = _objectSpread(_objectSpread({}, detail === null || detail === void 0 ? void 0 : detail.bsReissueGoods), {}, {
|
|
239
|
+
bsReissueType: _initReason,
|
|
240
|
+
bsReissueGoods: ["2", "4"].includes(_initReason[0]) ? [] : (detail === null || detail === void 0 ? void 0 : (_detail$bsGoods3 = detail.bsGoods) === null || _detail$bsGoods3 === void 0 ? void 0 : _detail$bsGoods3.bsGoods) || []
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
// prv[uniqueKey] = detail?.bsReissueGoods;
|
|
244
|
+
|
|
220
245
|
break;
|
|
221
246
|
case "BS_RETURN_GOODS":
|
|
222
|
-
|
|
247
|
+
{
|
|
248
|
+
var _detail$bsGoods4;
|
|
249
|
+
var _initReason2 = !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? Array.isArray(config.initReason) ? config.initReason : [config.initReason] : [];
|
|
250
|
+
prv[uniqueKey] = _objectSpread(_objectSpread({}, detail === null || detail === void 0 ? void 0 : detail.bsReturnGoods), {}, {
|
|
251
|
+
bsReturnType: _initReason2,
|
|
252
|
+
bsReturnGoods: ["2"].includes(_initReason2[0]) ? [] : (detail === null || detail === void 0 ? void 0 : (_detail$bsGoods4 = detail.bsGoods) === null || _detail$bsGoods4 === void 0 ? void 0 : _detail$bsGoods4.bsGoods) || []
|
|
253
|
+
});
|
|
254
|
+
}
|
|
223
255
|
break;
|
|
224
256
|
case "BS_LOGISTICS":
|
|
225
257
|
prv[uniqueKey] = updateBsItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.bsLogistics, "logistics", config);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-utils",
|
|
3
|
-
"version": "2.2.13-beta.
|
|
3
|
+
"version": "2.2.13-beta.82",
|
|
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": "
|
|
44
|
+
"gitHead": "f86d1a464c1e1d38874099e38795e7e52be29103",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|