@bit-sun/business-component 2.0.7 → 2.0.8

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.js CHANGED
@@ -45,6 +45,351 @@ 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
+
48
393
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
49
394
  try {
50
395
  var info = gen[key](arg);
@@ -140,18 +485,17 @@ function _inherits(subClass, superClass) {
140
485
  }
141
486
 
142
487
  function _getPrototypeOf(o) {
143
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
488
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
144
489
  return o.__proto__ || Object.getPrototypeOf(o);
145
490
  };
146
491
  return _getPrototypeOf(o);
147
492
  }
148
493
 
149
494
  function _setPrototypeOf(o, p) {
150
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
495
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
151
496
  o.__proto__ = p;
152
497
  return o;
153
498
  };
154
-
155
499
  return _setPrototypeOf(o, p);
156
500
  }
157
501
 
@@ -342,10 +686,9 @@ function ownKeys$1(object, enumerableOnly) {
342
686
 
343
687
  if (Object.getOwnPropertySymbols) {
344
688
  var symbols = Object.getOwnPropertySymbols(object);
345
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
689
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
346
690
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
347
- });
348
- keys.push.apply(keys, symbols);
691
+ })), keys.push.apply(keys, symbols);
349
692
  }
350
693
 
351
694
  return keys;
@@ -353,19 +696,12 @@ function ownKeys$1(object, enumerableOnly) {
353
696
 
354
697
  function _objectSpread2$1(target) {
355
698
  for (var i = 1; i < arguments.length; i++) {
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
- }
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
+ });
369
705
  }
370
706
 
371
707
  return target;
@@ -376,14 +712,17 @@ function _arrayWithHoles$1(arr) {
376
712
  }
377
713
 
378
714
  function _iterableToArrayLimit$1(arr, i) {
379
- if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
715
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
716
+
717
+ if (_i == null) return;
380
718
  var _arr = [];
381
719
  var _n = true;
382
720
  var _d = false;
383
- var _e = undefined;
721
+
722
+ var _s, _e;
384
723
 
385
724
  try {
386
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
725
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
387
726
  _arr.push(_s.value);
388
727
 
389
728
  if (i && _arr.length === i) break;
@@ -466,17 +805,11 @@ function _objectWithoutProperties$1(source, excluded) {
466
805
  function _typeof(obj) {
467
806
  "@babel/helpers - typeof";
468
807
 
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);
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);
480
813
  }
481
814
 
482
815
  /**
@@ -3220,7 +3553,6 @@ var SearchSelect = function SearchSelect(props) {
3220
3553
  } // 防抖函数 待定
3221
3554
 
3222
3555
 
3223
- // 防抖函数 待定
3224
3556
  getData(searchParams);
3225
3557
  }, {
3226
3558
  wait: 1000
@@ -4253,7 +4585,6 @@ var AddSelect = function AddSelect(props) {
4253
4585
  } // 防抖函数 待定
4254
4586
 
4255
4587
 
4256
- // 防抖函数 待定
4257
4588
  getData(searchParams);
4258
4589
  }, {
4259
4590
  wait: 1000
@@ -5414,12 +5745,12 @@ var InputElement = function InputElement(_ref) {
5414
5745
  antd.message.success('删除当前行');
5415
5746
  e.stopPropagation();
5416
5747
  e.preventDefault();
5417
- var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[3].children[index - 1]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
5748
+ var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[3].children[index]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
5418
5749
 
5419
5750
  if (dom) {
5420
5751
  dom.select();
5421
5752
  dom.focus();
5422
- dom.scrollIntoView(false);
5753
+ dom.scrollIntoViewIfNeeded(false);
5423
5754
  }
5424
5755
 
5425
5756
  dom = null;
@@ -5447,14 +5778,14 @@ var InputElement = function InputElement(_ref) {
5447
5778
  e.stopPropagation();
5448
5779
  e.preventDefault();
5449
5780
 
5450
- var _dom2 = (_e$nativeEvent$path$2 = e.nativeEvent.path[3].children[index]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
5781
+ var _dom2 = (_e$nativeEvent$path$2 = e.nativeEvent.path[3].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
5451
5782
 
5452
5783
  if (_dom2) {
5453
5784
  _dom2.select();
5454
5785
 
5455
5786
  _dom2.focus();
5456
5787
 
5457
- _dom2.scrollIntoView(false);
5788
+ _dom2.scrollIntoViewIfNeeded(false);
5458
5789
  }
5459
5790
 
5460
5791
  _dom2 = null;
@@ -5467,14 +5798,14 @@ var InputElement = function InputElement(_ref) {
5467
5798
  e.stopPropagation();
5468
5799
  e.preventDefault();
5469
5800
 
5470
- var _dom3 = (_e$nativeEvent$path$3 = e.nativeEvent.path[3].children[index]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
5801
+ var _dom3 = (_e$nativeEvent$path$3 = e.nativeEvent.path[3].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
5471
5802
 
5472
5803
  if (_dom3) {
5473
5804
  _dom3.select();
5474
5805
 
5475
5806
  _dom3.focus();
5476
5807
 
5477
- _dom3.scrollIntoView(false);
5808
+ _dom3.scrollIntoViewIfNeeded(false);
5478
5809
  }
5479
5810
 
5480
5811
  _dom3 = null;
@@ -5484,17 +5815,18 @@ var InputElement = function InputElement(_ref) {
5484
5815
  var _e$nativeEvent$path$4;
5485
5816
 
5486
5817
  // 向下
5818
+ debugger;
5487
5819
  e.stopPropagation();
5488
5820
  e.preventDefault();
5489
5821
 
5490
- var _dom4 = (_e$nativeEvent$path$4 = e.nativeEvent.path[3].children[index + 1]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
5822
+ var _dom4 = (_e$nativeEvent$path$4 = e.nativeEvent.path[3].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
5491
5823
 
5492
5824
  if (_dom4) {
5493
5825
  _dom4.select();
5494
5826
 
5495
5827
  _dom4.focus();
5496
5828
 
5497
- _dom4.scrollIntoView(false);
5829
+ _dom4.scrollIntoViewIfNeeded(false);
5498
5830
  }
5499
5831
 
5500
5832
  _dom4 = null;
@@ -5503,7 +5835,7 @@ var InputElement = function InputElement(_ref) {
5503
5835
 
5504
5836
  e.stopPropagation();
5505
5837
  e.preventDefault();
5506
- var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[3].children[index - 1]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
5838
+ var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[3].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
5507
5839
 
5508
5840
  if (dom1) {
5509
5841
  // dom1.value=""
@@ -5538,12 +5870,12 @@ var InputElement = function InputElement(_ref) {
5538
5870
  antd.message.success('删除当前行');
5539
5871
  e.stopPropagation();
5540
5872
  e.preventDefault();
5541
- var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index - 1]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
5873
+ var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
5542
5874
 
5543
5875
  if (dom) {
5544
5876
  dom.select();
5545
5877
  dom.focus();
5546
- dom.scrollIntoView(false);
5878
+ dom.scrollIntoViewIfNeeded(false);
5547
5879
  }
5548
5880
 
5549
5881
  dom = null;
@@ -5559,14 +5891,14 @@ var InputElement = function InputElement(_ref) {
5559
5891
  e.stopPropagation();
5560
5892
  e.preventDefault();
5561
5893
 
5562
- var _dom5 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
5894
+ var _dom5 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
5563
5895
 
5564
5896
  if (_dom5) {
5565
5897
  _dom5.select();
5566
5898
 
5567
5899
  _dom5.focus();
5568
5900
 
5569
- _dom5.scrollIntoView(false);
5901
+ _dom5.scrollIntoViewIfNeeded(false);
5570
5902
  }
5571
5903
 
5572
5904
  _dom5 = null;
@@ -5579,14 +5911,14 @@ var InputElement = function InputElement(_ref) {
5579
5911
  e.stopPropagation();
5580
5912
  e.preventDefault();
5581
5913
 
5582
- var _dom6 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
5914
+ var _dom6 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
5583
5915
 
5584
5916
  if (_dom6) {
5585
5917
  _dom6.select();
5586
5918
 
5587
5919
  _dom6.focus();
5588
5920
 
5589
- _dom6.scrollIntoView(false);
5921
+ _dom6.scrollIntoViewIfNeeded(false);
5590
5922
  }
5591
5923
 
5592
5924
  _dom6 = null;
@@ -5599,14 +5931,14 @@ var InputElement = function InputElement(_ref) {
5599
5931
  e.stopPropagation();
5600
5932
  e.preventDefault();
5601
5933
 
5602
- var _dom7 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
5934
+ var _dom7 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
5603
5935
 
5604
5936
  if (_dom7) {
5605
5937
  _dom7.select();
5606
5938
 
5607
5939
  _dom7.focus();
5608
5940
 
5609
- _dom7.scrollIntoView(false);
5941
+ _dom7.scrollIntoViewIfNeeded(false);
5610
5942
  }
5611
5943
 
5612
5944
  _dom7 = null;
@@ -5615,7 +5947,7 @@ var InputElement = function InputElement(_ref) {
5615
5947
 
5616
5948
  e.stopPropagation();
5617
5949
  e.preventDefault();
5618
- var dom1 = (_e$nativeEvent$path$10 = e.nativeEvent.path[5].children[index - 1]) === null || _e$nativeEvent$path$10 === void 0 ? void 0 : _e$nativeEvent$path$10.getElementsByTagName('input')[currentIndex];
5950
+ var dom1 = (_e$nativeEvent$path$10 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$10 === void 0 ? void 0 : _e$nativeEvent$path$10.getElementsByTagName('input')[currentIndex];
5619
5951
 
5620
5952
  if (dom1) {
5621
5953
  // dom1.value=""
@@ -5673,27 +6005,36 @@ var BillEntry = function BillEntry(_ref3) {
5673
6005
  });
5674
6006
 
5675
6007
  if (base.length) {
6008
+ var _base$;
6009
+
5676
6010
  baseUnitCode = base[0].unitCode;
5677
6011
  record.selectUnitCode = base[0].unitCode;
6012
+ record.selectedScale = ((_base$ = base[0]) === null || _base$ === void 0 ? void 0 : _base$.baseUnitScale) || 1;
5678
6013
  }
5679
6014
  }
5680
6015
 
5681
- record.packingUnitList = record.packingUnitList || [];
5682
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
5683
- value: record.selectUnitCode,
5684
- onChange: function onChange(value) {
5685
- record.selectUnitCode = value;
5686
- },
5687
- style: {
5688
- width: '60px',
5689
- height: '22px',
5690
- lineHight: '22px'
5691
- }
5692
- }, record.packingUnitList && record.packingUnitList.map(function (item) {
5693
- return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
5694
- value: item.unitCode
5695
- }, item.name);
5696
- })));
6016
+ if (baseUnitCode) {
6017
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
6018
+ defaultValue: baseUnitCode,
6019
+ onChange: function onChange(value) {
6020
+ var _record$packingUnitLi, _record$packingUnitLi2;
6021
+
6022
+ record.selectUnitCode = value;
6023
+ record.selectedScale = (record === null || record === void 0 ? void 0 : (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : (_record$packingUnitLi2 = _record$packingUnitLi.find(function (item) {
6024
+ return item.unitCode === value;
6025
+ })) === null || _record$packingUnitLi2 === void 0 ? void 0 : _record$packingUnitLi2.baseUnitScale) || 1;
6026
+ },
6027
+ style: {
6028
+ width: '60px'
6029
+ }
6030
+ }, record.packingUnitList && record.packingUnitList.map(function (item) {
6031
+ return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
6032
+ value: item.unitCode
6033
+ }, item.name);
6034
+ })));
6035
+ }
6036
+
6037
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
5697
6038
  }
5698
6039
  }, {
5699
6040
  title: '数量',
@@ -5802,7 +6143,6 @@ var BillEntry = function BillEntry(_ref3) {
5802
6143
  })), [{
5803
6144
  title: '操作',
5804
6145
  width: 50,
5805
- fixed: 'right',
5806
6146
  render: function render(text, record, index) {
5807
6147
  if (index !== 0) {
5808
6148
  return /*#__PURE__*/React__default['default'].createElement("span", {
@@ -8118,7 +8458,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
8118
8458
  style = _props$style === void 0 ? {
8119
8459
  width: '100%'
8120
8460
  } : _props$style,
8121
- getTreeData = props.getTreeData;
8461
+ getTreeData = props.getTreeData,
8462
+ disabled = props.disabled;
8122
8463
  var url = remoteSource.url,
8123
8464
  _remoteSource$paramsK = remoteSource.paramsKey,
8124
8465
  paramsKey = _remoteSource$paramsK === void 0 ? 'qp-name-like' : _remoteSource$paramsK,
@@ -8157,11 +8498,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
8157
8498
  var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
8158
8499
 
8159
8500
  axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(paramsData))).then( /*#__PURE__*/function () {
8160
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(res) {
8501
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
8161
8502
  var _ctx$form;
8162
8503
 
8163
8504
  var resData, coverData, data, dataList;
8164
- return regeneratorRuntime.wrap(function _callee$(_context) {
8505
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
8165
8506
  while (1) {
8166
8507
  switch (_context.prev = _context.next) {
8167
8508
  case 0:
@@ -8290,7 +8631,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
8290
8631
  multiple: multiple,
8291
8632
  maxTagPlaceholder: maxTagPlaceholder,
8292
8633
  onChange: handleChange,
8293
- disabled: mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view',
8634
+ disabled: disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view',
8294
8635
  getPopupContainer: function getPopupContainer() {
8295
8636
  return _getPopupContainer && _getPopupContainer() || document.body;
8296
8637
  }