@bit-sun/business-component 2.0.6 → 2.0.7

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.
package/dist/index.esm.js CHANGED
@@ -34,351 +34,6 @@ function _objectSpread2(target) {
34
34
  return target;
35
35
  }
36
36
 
37
- function _regeneratorRuntime() {
38
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
39
-
40
- _regeneratorRuntime = function () {
41
- return exports;
42
- };
43
-
44
- var exports = {},
45
- Op = Object.prototype,
46
- hasOwn = Op.hasOwnProperty,
47
- $Symbol = "function" == typeof Symbol ? Symbol : {},
48
- iteratorSymbol = $Symbol.iterator || "@@iterator",
49
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
50
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
51
-
52
- function define(obj, key, value) {
53
- return Object.defineProperty(obj, key, {
54
- value: value,
55
- enumerable: !0,
56
- configurable: !0,
57
- writable: !0
58
- }), obj[key];
59
- }
60
-
61
- try {
62
- define({}, "");
63
- } catch (err) {
64
- define = function (obj, key, value) {
65
- return obj[key] = value;
66
- };
67
- }
68
-
69
- function wrap(innerFn, outerFn, self, tryLocsList) {
70
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
71
- generator = Object.create(protoGenerator.prototype),
72
- context = new Context(tryLocsList || []);
73
- return generator._invoke = function (innerFn, self, context) {
74
- var state = "suspendedStart";
75
- return function (method, arg) {
76
- if ("executing" === state) throw new Error("Generator is already running");
77
-
78
- if ("completed" === state) {
79
- if ("throw" === method) throw arg;
80
- return doneResult();
81
- }
82
-
83
- for (context.method = method, context.arg = arg;;) {
84
- var delegate = context.delegate;
85
-
86
- if (delegate) {
87
- var delegateResult = maybeInvokeDelegate(delegate, context);
88
-
89
- if (delegateResult) {
90
- if (delegateResult === ContinueSentinel) continue;
91
- return delegateResult;
92
- }
93
- }
94
-
95
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
96
- if ("suspendedStart" === state) throw state = "completed", context.arg;
97
- context.dispatchException(context.arg);
98
- } else "return" === context.method && context.abrupt("return", context.arg);
99
- state = "executing";
100
- var record = tryCatch(innerFn, self, context);
101
-
102
- if ("normal" === record.type) {
103
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
104
- return {
105
- value: record.arg,
106
- done: context.done
107
- };
108
- }
109
-
110
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
111
- }
112
- };
113
- }(innerFn, self, context), generator;
114
- }
115
-
116
- function tryCatch(fn, obj, arg) {
117
- try {
118
- return {
119
- type: "normal",
120
- arg: fn.call(obj, arg)
121
- };
122
- } catch (err) {
123
- return {
124
- type: "throw",
125
- arg: err
126
- };
127
- }
128
- }
129
-
130
- exports.wrap = wrap;
131
- var ContinueSentinel = {};
132
-
133
- function Generator() {}
134
-
135
- function GeneratorFunction() {}
136
-
137
- function GeneratorFunctionPrototype() {}
138
-
139
- var IteratorPrototype = {};
140
- define(IteratorPrototype, iteratorSymbol, function () {
141
- return this;
142
- });
143
- var getProto = Object.getPrototypeOf,
144
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
145
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
146
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
147
-
148
- function defineIteratorMethods(prototype) {
149
- ["next", "throw", "return"].forEach(function (method) {
150
- define(prototype, method, function (arg) {
151
- return this._invoke(method, arg);
152
- });
153
- });
154
- }
155
-
156
- function AsyncIterator(generator, PromiseImpl) {
157
- function invoke(method, arg, resolve, reject) {
158
- var record = tryCatch(generator[method], generator, arg);
159
-
160
- if ("throw" !== record.type) {
161
- var result = record.arg,
162
- value = result.value;
163
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
164
- invoke("next", value, resolve, reject);
165
- }, function (err) {
166
- invoke("throw", err, resolve, reject);
167
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
168
- result.value = unwrapped, resolve(result);
169
- }, function (error) {
170
- return invoke("throw", error, resolve, reject);
171
- });
172
- }
173
-
174
- reject(record.arg);
175
- }
176
-
177
- var previousPromise;
178
-
179
- this._invoke = function (method, arg) {
180
- function callInvokeWithMethodAndArg() {
181
- return new PromiseImpl(function (resolve, reject) {
182
- invoke(method, arg, resolve, reject);
183
- });
184
- }
185
-
186
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
187
- };
188
- }
189
-
190
- function maybeInvokeDelegate(delegate, context) {
191
- var method = delegate.iterator[context.method];
192
-
193
- if (undefined === method) {
194
- if (context.delegate = null, "throw" === context.method) {
195
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
196
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
197
- }
198
-
199
- return ContinueSentinel;
200
- }
201
-
202
- var record = tryCatch(method, delegate.iterator, context.arg);
203
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
204
- var info = record.arg;
205
- 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);
206
- }
207
-
208
- function pushTryEntry(locs) {
209
- var entry = {
210
- tryLoc: locs[0]
211
- };
212
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
213
- }
214
-
215
- function resetTryEntry(entry) {
216
- var record = entry.completion || {};
217
- record.type = "normal", delete record.arg, entry.completion = record;
218
- }
219
-
220
- function Context(tryLocsList) {
221
- this.tryEntries = [{
222
- tryLoc: "root"
223
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
224
- }
225
-
226
- function values(iterable) {
227
- if (iterable) {
228
- var iteratorMethod = iterable[iteratorSymbol];
229
- if (iteratorMethod) return iteratorMethod.call(iterable);
230
- if ("function" == typeof iterable.next) return iterable;
231
-
232
- if (!isNaN(iterable.length)) {
233
- var i = -1,
234
- next = function next() {
235
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
236
-
237
- return next.value = undefined, next.done = !0, next;
238
- };
239
-
240
- return next.next = next;
241
- }
242
- }
243
-
244
- return {
245
- next: doneResult
246
- };
247
- }
248
-
249
- function doneResult() {
250
- return {
251
- value: undefined,
252
- done: !0
253
- };
254
- }
255
-
256
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
257
- var ctor = "function" == typeof genFun && genFun.constructor;
258
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
259
- }, exports.mark = function (genFun) {
260
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
261
- }, exports.awrap = function (arg) {
262
- return {
263
- __await: arg
264
- };
265
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
266
- return this;
267
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
268
- void 0 === PromiseImpl && (PromiseImpl = Promise);
269
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
270
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
271
- return result.done ? result.value : iter.next();
272
- });
273
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
274
- return this;
275
- }), define(Gp, "toString", function () {
276
- return "[object Generator]";
277
- }), exports.keys = function (object) {
278
- var keys = [];
279
-
280
- for (var key in object) keys.push(key);
281
-
282
- return keys.reverse(), function next() {
283
- for (; keys.length;) {
284
- var key = keys.pop();
285
- if (key in object) return next.value = key, next.done = !1, next;
286
- }
287
-
288
- return next.done = !0, next;
289
- };
290
- }, exports.values = values, Context.prototype = {
291
- constructor: Context,
292
- reset: function (skipTempReset) {
293
- 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);
294
- },
295
- stop: function () {
296
- this.done = !0;
297
- var rootRecord = this.tryEntries[0].completion;
298
- if ("throw" === rootRecord.type) throw rootRecord.arg;
299
- return this.rval;
300
- },
301
- dispatchException: function (exception) {
302
- if (this.done) throw exception;
303
- var context = this;
304
-
305
- function handle(loc, caught) {
306
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
307
- }
308
-
309
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
310
- var entry = this.tryEntries[i],
311
- record = entry.completion;
312
- if ("root" === entry.tryLoc) return handle("end");
313
-
314
- if (entry.tryLoc <= this.prev) {
315
- var hasCatch = hasOwn.call(entry, "catchLoc"),
316
- hasFinally = hasOwn.call(entry, "finallyLoc");
317
-
318
- if (hasCatch && hasFinally) {
319
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
320
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
321
- } else if (hasCatch) {
322
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
323
- } else {
324
- if (!hasFinally) throw new Error("try statement without catch or finally");
325
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
326
- }
327
- }
328
- }
329
- },
330
- abrupt: function (type, arg) {
331
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
332
- var entry = this.tryEntries[i];
333
-
334
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
335
- var finallyEntry = entry;
336
- break;
337
- }
338
- }
339
-
340
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
341
- var record = finallyEntry ? finallyEntry.completion : {};
342
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
343
- },
344
- complete: function (record, afterLoc) {
345
- if ("throw" === record.type) throw record.arg;
346
- 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;
347
- },
348
- finish: function (finallyLoc) {
349
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
350
- var entry = this.tryEntries[i];
351
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
352
- }
353
- },
354
- catch: function (tryLoc) {
355
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
356
- var entry = this.tryEntries[i];
357
-
358
- if (entry.tryLoc === tryLoc) {
359
- var record = entry.completion;
360
-
361
- if ("throw" === record.type) {
362
- var thrown = record.arg;
363
- resetTryEntry(entry);
364
- }
365
-
366
- return thrown;
367
- }
368
- }
369
-
370
- throw new Error("illegal catch attempt");
371
- },
372
- delegateYield: function (iterable, resultName, nextLoc) {
373
- return this.delegate = {
374
- iterator: values(iterable),
375
- resultName: resultName,
376
- nextLoc: nextLoc
377
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
378
- }
379
- }, exports;
380
- }
381
-
382
37
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
383
38
  try {
384
39
  var info = gen[key](arg);
@@ -474,17 +129,18 @@ function _inherits(subClass, superClass) {
474
129
  }
475
130
 
476
131
  function _getPrototypeOf(o) {
477
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
132
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
478
133
  return o.__proto__ || Object.getPrototypeOf(o);
479
134
  };
480
135
  return _getPrototypeOf(o);
481
136
  }
482
137
 
483
138
  function _setPrototypeOf(o, p) {
484
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
139
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
485
140
  o.__proto__ = p;
486
141
  return o;
487
142
  };
143
+
488
144
  return _setPrototypeOf(o, p);
489
145
  }
490
146
 
@@ -675,9 +331,10 @@ function ownKeys$1(object, enumerableOnly) {
675
331
 
676
332
  if (Object.getOwnPropertySymbols) {
677
333
  var symbols = Object.getOwnPropertySymbols(object);
678
- enumerableOnly && (symbols = symbols.filter(function (sym) {
334
+ if (enumerableOnly) symbols = symbols.filter(function (sym) {
679
335
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
680
- })), keys.push.apply(keys, symbols);
336
+ });
337
+ keys.push.apply(keys, symbols);
681
338
  }
682
339
 
683
340
  return keys;
@@ -685,12 +342,19 @@ function ownKeys$1(object, enumerableOnly) {
685
342
 
686
343
  function _objectSpread2$1(target) {
687
344
  for (var i = 1; i < arguments.length; i++) {
688
- var source = null != arguments[i] ? arguments[i] : {};
689
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
690
- _defineProperty$1(target, key, source[key]);
691
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
692
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
693
- });
345
+ var source = arguments[i] != null ? arguments[i] : {};
346
+
347
+ if (i % 2) {
348
+ ownKeys$1(Object(source), true).forEach(function (key) {
349
+ _defineProperty$1(target, key, source[key]);
350
+ });
351
+ } else if (Object.getOwnPropertyDescriptors) {
352
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
353
+ } else {
354
+ ownKeys$1(Object(source)).forEach(function (key) {
355
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
356
+ });
357
+ }
694
358
  }
695
359
 
696
360
  return target;
@@ -701,17 +365,14 @@ function _arrayWithHoles$1(arr) {
701
365
  }
702
366
 
703
367
  function _iterableToArrayLimit$1(arr, i) {
704
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
705
-
706
- if (_i == null) return;
368
+ if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
707
369
  var _arr = [];
708
370
  var _n = true;
709
371
  var _d = false;
710
-
711
- var _s, _e;
372
+ var _e = undefined;
712
373
 
713
374
  try {
714
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
375
+ for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
715
376
  _arr.push(_s.value);
716
377
 
717
378
  if (i && _arr.length === i) break;
@@ -794,11 +455,17 @@ function _objectWithoutProperties$1(source, excluded) {
794
455
  function _typeof(obj) {
795
456
  "@babel/helpers - typeof";
796
457
 
797
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
798
- return typeof obj;
799
- } : function (obj) {
800
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
801
- }, _typeof(obj);
458
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
459
+ _typeof = function _typeof(obj) {
460
+ return typeof obj;
461
+ };
462
+ } else {
463
+ _typeof = function _typeof(obj) {
464
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
465
+ };
466
+ }
467
+
468
+ return _typeof(obj);
802
469
  }
803
470
 
804
471
  /**
@@ -2053,7 +1720,7 @@ var luckysheet; // const mapping = [
2053
1720
  // { "key": "price", "name": "单价", "rule": "price" }
2054
1721
  // ]
2055
1722
 
2056
- var mapping = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['locationCode', '货位'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号'], ['oldUniqueCode', '原始唯一码'], ['newUniqueCode', '新唯一码'], ['relationRecordCode', '单据编码'], ['remark', '备注']]); // for dnd
1723
+ var mapping = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['locationCode', '货位'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号'], ['oldUniqueCode', '原始唯一码'], ['newUniqueCode', '新唯一码'], ['relationRecordCode', '单据编码'], ['remark', '备注'], ['externalCode', 'JDE商品编码']]); // for dnd
2057
1724
 
2058
1725
 
2059
1726
  var reorder = function reorder(list, startIndex, endIndex) {
@@ -3542,6 +3209,7 @@ var SearchSelect = function SearchSelect(props) {
3542
3209
  } // 防抖函数 待定
3543
3210
 
3544
3211
 
3212
+ // 防抖函数 待定
3545
3213
  getData(searchParams);
3546
3214
  }, {
3547
3215
  wait: 1000
@@ -4574,6 +4242,7 @@ var AddSelect = function AddSelect(props) {
4574
4242
  } // 防抖函数 待定
4575
4243
 
4576
4244
 
4245
+ // 防抖函数 待定
4577
4246
  getData(searchParams);
4578
4247
  }, {
4579
4248
  wait: 1000
@@ -8477,11 +8146,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
8477
8146
  var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
8478
8147
 
8479
8148
  axios.get("".concat(url, "?").concat(stringify(paramsData))).then( /*#__PURE__*/function () {
8480
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
8149
+ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(res) {
8481
8150
  var _ctx$form;
8482
8151
 
8483
8152
  var resData, coverData, data, dataList;
8484
- return _regeneratorRuntime().wrap(function _callee$(_context) {
8153
+ return regeneratorRuntime.wrap(function _callee$(_context) {
8485
8154
  while (1) {
8486
8155
  switch (_context.prev = _context.next) {
8487
8156
  case 0:
package/dist/index.js CHANGED
@@ -45,351 +45,6 @@ function _objectSpread2(target) {
45
45
  return target;
46
46
  }
47
47
 
48
- function _regeneratorRuntime() {
49
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
50
-
51
- _regeneratorRuntime = function () {
52
- return exports;
53
- };
54
-
55
- var exports = {},
56
- Op = Object.prototype,
57
- hasOwn = Op.hasOwnProperty,
58
- $Symbol = "function" == typeof Symbol ? Symbol : {},
59
- iteratorSymbol = $Symbol.iterator || "@@iterator",
60
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
61
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
62
-
63
- function define(obj, key, value) {
64
- return Object.defineProperty(obj, key, {
65
- value: value,
66
- enumerable: !0,
67
- configurable: !0,
68
- writable: !0
69
- }), obj[key];
70
- }
71
-
72
- try {
73
- define({}, "");
74
- } catch (err) {
75
- define = function (obj, key, value) {
76
- return obj[key] = value;
77
- };
78
- }
79
-
80
- function wrap(innerFn, outerFn, self, tryLocsList) {
81
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
82
- generator = Object.create(protoGenerator.prototype),
83
- context = new Context(tryLocsList || []);
84
- return generator._invoke = function (innerFn, self, context) {
85
- var state = "suspendedStart";
86
- return function (method, arg) {
87
- if ("executing" === state) throw new Error("Generator is already running");
88
-
89
- if ("completed" === state) {
90
- if ("throw" === method) throw arg;
91
- return doneResult();
92
- }
93
-
94
- for (context.method = method, context.arg = arg;;) {
95
- var delegate = context.delegate;
96
-
97
- if (delegate) {
98
- var delegateResult = maybeInvokeDelegate(delegate, context);
99
-
100
- if (delegateResult) {
101
- if (delegateResult === ContinueSentinel) continue;
102
- return delegateResult;
103
- }
104
- }
105
-
106
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
107
- if ("suspendedStart" === state) throw state = "completed", context.arg;
108
- context.dispatchException(context.arg);
109
- } else "return" === context.method && context.abrupt("return", context.arg);
110
- state = "executing";
111
- var record = tryCatch(innerFn, self, context);
112
-
113
- if ("normal" === record.type) {
114
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
115
- return {
116
- value: record.arg,
117
- done: context.done
118
- };
119
- }
120
-
121
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
122
- }
123
- };
124
- }(innerFn, self, context), generator;
125
- }
126
-
127
- function tryCatch(fn, obj, arg) {
128
- try {
129
- return {
130
- type: "normal",
131
- arg: fn.call(obj, arg)
132
- };
133
- } catch (err) {
134
- return {
135
- type: "throw",
136
- arg: err
137
- };
138
- }
139
- }
140
-
141
- exports.wrap = wrap;
142
- var ContinueSentinel = {};
143
-
144
- function Generator() {}
145
-
146
- function GeneratorFunction() {}
147
-
148
- function GeneratorFunctionPrototype() {}
149
-
150
- var IteratorPrototype = {};
151
- define(IteratorPrototype, iteratorSymbol, function () {
152
- return this;
153
- });
154
- var getProto = Object.getPrototypeOf,
155
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
156
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
157
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
158
-
159
- function defineIteratorMethods(prototype) {
160
- ["next", "throw", "return"].forEach(function (method) {
161
- define(prototype, method, function (arg) {
162
- return this._invoke(method, arg);
163
- });
164
- });
165
- }
166
-
167
- function AsyncIterator(generator, PromiseImpl) {
168
- function invoke(method, arg, resolve, reject) {
169
- var record = tryCatch(generator[method], generator, arg);
170
-
171
- if ("throw" !== record.type) {
172
- var result = record.arg,
173
- value = result.value;
174
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
175
- invoke("next", value, resolve, reject);
176
- }, function (err) {
177
- invoke("throw", err, resolve, reject);
178
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
179
- result.value = unwrapped, resolve(result);
180
- }, function (error) {
181
- return invoke("throw", error, resolve, reject);
182
- });
183
- }
184
-
185
- reject(record.arg);
186
- }
187
-
188
- var previousPromise;
189
-
190
- this._invoke = function (method, arg) {
191
- function callInvokeWithMethodAndArg() {
192
- return new PromiseImpl(function (resolve, reject) {
193
- invoke(method, arg, resolve, reject);
194
- });
195
- }
196
-
197
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
198
- };
199
- }
200
-
201
- function maybeInvokeDelegate(delegate, context) {
202
- var method = delegate.iterator[context.method];
203
-
204
- if (undefined === method) {
205
- if (context.delegate = null, "throw" === context.method) {
206
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
207
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
208
- }
209
-
210
- return ContinueSentinel;
211
- }
212
-
213
- var record = tryCatch(method, delegate.iterator, context.arg);
214
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
215
- var info = record.arg;
216
- 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);
217
- }
218
-
219
- function pushTryEntry(locs) {
220
- var entry = {
221
- tryLoc: locs[0]
222
- };
223
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
224
- }
225
-
226
- function resetTryEntry(entry) {
227
- var record = entry.completion || {};
228
- record.type = "normal", delete record.arg, entry.completion = record;
229
- }
230
-
231
- function Context(tryLocsList) {
232
- this.tryEntries = [{
233
- tryLoc: "root"
234
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
235
- }
236
-
237
- function values(iterable) {
238
- if (iterable) {
239
- var iteratorMethod = iterable[iteratorSymbol];
240
- if (iteratorMethod) return iteratorMethod.call(iterable);
241
- if ("function" == typeof iterable.next) return iterable;
242
-
243
- if (!isNaN(iterable.length)) {
244
- var i = -1,
245
- next = function next() {
246
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
247
-
248
- return next.value = undefined, next.done = !0, next;
249
- };
250
-
251
- return next.next = next;
252
- }
253
- }
254
-
255
- return {
256
- next: doneResult
257
- };
258
- }
259
-
260
- function doneResult() {
261
- return {
262
- value: undefined,
263
- done: !0
264
- };
265
- }
266
-
267
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
268
- var ctor = "function" == typeof genFun && genFun.constructor;
269
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
270
- }, exports.mark = function (genFun) {
271
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
272
- }, exports.awrap = function (arg) {
273
- return {
274
- __await: arg
275
- };
276
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
277
- return this;
278
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
279
- void 0 === PromiseImpl && (PromiseImpl = Promise);
280
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
281
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
282
- return result.done ? result.value : iter.next();
283
- });
284
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
285
- return this;
286
- }), define(Gp, "toString", function () {
287
- return "[object Generator]";
288
- }), exports.keys = function (object) {
289
- var keys = [];
290
-
291
- for (var key in object) keys.push(key);
292
-
293
- return keys.reverse(), function next() {
294
- for (; keys.length;) {
295
- var key = keys.pop();
296
- if (key in object) return next.value = key, next.done = !1, next;
297
- }
298
-
299
- return next.done = !0, next;
300
- };
301
- }, exports.values = values, Context.prototype = {
302
- constructor: Context,
303
- reset: function (skipTempReset) {
304
- 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);
305
- },
306
- stop: function () {
307
- this.done = !0;
308
- var rootRecord = this.tryEntries[0].completion;
309
- if ("throw" === rootRecord.type) throw rootRecord.arg;
310
- return this.rval;
311
- },
312
- dispatchException: function (exception) {
313
- if (this.done) throw exception;
314
- var context = this;
315
-
316
- function handle(loc, caught) {
317
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
318
- }
319
-
320
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
321
- var entry = this.tryEntries[i],
322
- record = entry.completion;
323
- if ("root" === entry.tryLoc) return handle("end");
324
-
325
- if (entry.tryLoc <= this.prev) {
326
- var hasCatch = hasOwn.call(entry, "catchLoc"),
327
- hasFinally = hasOwn.call(entry, "finallyLoc");
328
-
329
- if (hasCatch && hasFinally) {
330
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
331
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
332
- } else if (hasCatch) {
333
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
334
- } else {
335
- if (!hasFinally) throw new Error("try statement without catch or finally");
336
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
337
- }
338
- }
339
- }
340
- },
341
- abrupt: function (type, arg) {
342
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
343
- var entry = this.tryEntries[i];
344
-
345
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
346
- var finallyEntry = entry;
347
- break;
348
- }
349
- }
350
-
351
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
352
- var record = finallyEntry ? finallyEntry.completion : {};
353
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
354
- },
355
- complete: function (record, afterLoc) {
356
- if ("throw" === record.type) throw record.arg;
357
- 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;
358
- },
359
- finish: function (finallyLoc) {
360
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
361
- var entry = this.tryEntries[i];
362
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
363
- }
364
- },
365
- catch: function (tryLoc) {
366
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
367
- var entry = this.tryEntries[i];
368
-
369
- if (entry.tryLoc === tryLoc) {
370
- var record = entry.completion;
371
-
372
- if ("throw" === record.type) {
373
- var thrown = record.arg;
374
- resetTryEntry(entry);
375
- }
376
-
377
- return thrown;
378
- }
379
- }
380
-
381
- throw new Error("illegal catch attempt");
382
- },
383
- delegateYield: function (iterable, resultName, nextLoc) {
384
- return this.delegate = {
385
- iterator: values(iterable),
386
- resultName: resultName,
387
- nextLoc: nextLoc
388
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
389
- }
390
- }, exports;
391
- }
392
-
393
48
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
394
49
  try {
395
50
  var info = gen[key](arg);
@@ -485,17 +140,18 @@ function _inherits(subClass, superClass) {
485
140
  }
486
141
 
487
142
  function _getPrototypeOf(o) {
488
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
143
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
489
144
  return o.__proto__ || Object.getPrototypeOf(o);
490
145
  };
491
146
  return _getPrototypeOf(o);
492
147
  }
493
148
 
494
149
  function _setPrototypeOf(o, p) {
495
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
150
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
496
151
  o.__proto__ = p;
497
152
  return o;
498
153
  };
154
+
499
155
  return _setPrototypeOf(o, p);
500
156
  }
501
157
 
@@ -686,9 +342,10 @@ function ownKeys$1(object, enumerableOnly) {
686
342
 
687
343
  if (Object.getOwnPropertySymbols) {
688
344
  var symbols = Object.getOwnPropertySymbols(object);
689
- enumerableOnly && (symbols = symbols.filter(function (sym) {
345
+ if (enumerableOnly) symbols = symbols.filter(function (sym) {
690
346
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
691
- })), keys.push.apply(keys, symbols);
347
+ });
348
+ keys.push.apply(keys, symbols);
692
349
  }
693
350
 
694
351
  return keys;
@@ -696,12 +353,19 @@ function ownKeys$1(object, enumerableOnly) {
696
353
 
697
354
  function _objectSpread2$1(target) {
698
355
  for (var i = 1; i < arguments.length; i++) {
699
- var source = null != arguments[i] ? arguments[i] : {};
700
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
701
- _defineProperty$1(target, key, source[key]);
702
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
703
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
704
- });
356
+ var source = arguments[i] != null ? arguments[i] : {};
357
+
358
+ if (i % 2) {
359
+ ownKeys$1(Object(source), true).forEach(function (key) {
360
+ _defineProperty$1(target, key, source[key]);
361
+ });
362
+ } else if (Object.getOwnPropertyDescriptors) {
363
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
364
+ } else {
365
+ ownKeys$1(Object(source)).forEach(function (key) {
366
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
367
+ });
368
+ }
705
369
  }
706
370
 
707
371
  return target;
@@ -712,17 +376,14 @@ function _arrayWithHoles$1(arr) {
712
376
  }
713
377
 
714
378
  function _iterableToArrayLimit$1(arr, i) {
715
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
716
-
717
- if (_i == null) return;
379
+ if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
718
380
  var _arr = [];
719
381
  var _n = true;
720
382
  var _d = false;
721
-
722
- var _s, _e;
383
+ var _e = undefined;
723
384
 
724
385
  try {
725
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
386
+ for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
726
387
  _arr.push(_s.value);
727
388
 
728
389
  if (i && _arr.length === i) break;
@@ -805,11 +466,17 @@ function _objectWithoutProperties$1(source, excluded) {
805
466
  function _typeof(obj) {
806
467
  "@babel/helpers - typeof";
807
468
 
808
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
809
- return typeof obj;
810
- } : function (obj) {
811
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
812
- }, _typeof(obj);
469
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
470
+ _typeof = function _typeof(obj) {
471
+ return typeof obj;
472
+ };
473
+ } else {
474
+ _typeof = function _typeof(obj) {
475
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
476
+ };
477
+ }
478
+
479
+ return _typeof(obj);
813
480
  }
814
481
 
815
482
  /**
@@ -2064,7 +1731,7 @@ var luckysheet; // const mapping = [
2064
1731
  // { "key": "price", "name": "单价", "rule": "price" }
2065
1732
  // ]
2066
1733
 
2067
- var mapping = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['locationCode', '货位'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号'], ['oldUniqueCode', '原始唯一码'], ['newUniqueCode', '新唯一码'], ['relationRecordCode', '单据编码'], ['remark', '备注']]); // for dnd
1734
+ var mapping = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['locationCode', '货位'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号'], ['oldUniqueCode', '原始唯一码'], ['newUniqueCode', '新唯一码'], ['relationRecordCode', '单据编码'], ['remark', '备注'], ['externalCode', 'JDE商品编码']]); // for dnd
2068
1735
 
2069
1736
 
2070
1737
  var reorder = function reorder(list, startIndex, endIndex) {
@@ -3553,6 +3220,7 @@ var SearchSelect = function SearchSelect(props) {
3553
3220
  } // 防抖函数 待定
3554
3221
 
3555
3222
 
3223
+ // 防抖函数 待定
3556
3224
  getData(searchParams);
3557
3225
  }, {
3558
3226
  wait: 1000
@@ -4585,6 +4253,7 @@ var AddSelect = function AddSelect(props) {
4585
4253
  } // 防抖函数 待定
4586
4254
 
4587
4255
 
4256
+ // 防抖函数 待定
4588
4257
  getData(searchParams);
4589
4258
  }, {
4590
4259
  wait: 1000
@@ -8488,11 +8157,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
8488
8157
  var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
8489
8158
 
8490
8159
  axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(paramsData))).then( /*#__PURE__*/function () {
8491
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
8160
+ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(res) {
8492
8161
  var _ctx$form;
8493
8162
 
8494
8163
  var resData, coverData, data, dataList;
8495
- return _regeneratorRuntime().wrap(function _callee$(_context) {
8164
+ return regeneratorRuntime.wrap(function _callee$(_context) {
8496
8165
  while (1) {
8497
8166
  switch (_context.prev = _context.next) {
8498
8167
  case 0:
@@ -1,2 +1,2 @@
1
- declare const _default: (storageKeyString: string, seconds?: number, tipsCallFunction?: () => {}) => void;
1
+ declare const _default: (storageKeyString: string, seconds?: number, tipsCallFunction?: (() => {}) | undefined) => void;
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -58,6 +58,7 @@ const mapping = new Map([
58
58
  ['newUniqueCode', '新唯一码'],
59
59
  ['relationRecordCode', '单据编码'],
60
60
  ['remark', '备注'],
61
+ ['externalCode', 'JDE商品编码']
61
62
  ]);
62
63
 
63
64
  // for dnd