@bit-sun/business-component 2.0.4 → 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
@@ -1,6 +1,7 @@
1
1
  import axios from 'axios';
2
- import React, { createContext, useContext, useEffect, forwardRef, createElement, useState, useMemo, useRef } from 'react';
3
- import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber } from 'antd';
2
+ import 'antd/dist/antd.css';
3
+ import React, { createContext, useContext, useEffect, forwardRef, createElement, useState, useRef, useMemo } from 'react';
4
+ import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Popover } from 'antd';
4
5
  import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
5
6
  import classNames from 'classnames';
6
7
  import _ from 'loadsh';
@@ -33,351 +34,6 @@ function _objectSpread2(target) {
33
34
  return target;
34
35
  }
35
36
 
36
- function _regeneratorRuntime() {
37
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
38
-
39
- _regeneratorRuntime = function () {
40
- return exports;
41
- };
42
-
43
- var exports = {},
44
- Op = Object.prototype,
45
- hasOwn = Op.hasOwnProperty,
46
- $Symbol = "function" == typeof Symbol ? Symbol : {},
47
- iteratorSymbol = $Symbol.iterator || "@@iterator",
48
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
49
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
50
-
51
- function define(obj, key, value) {
52
- return Object.defineProperty(obj, key, {
53
- value: value,
54
- enumerable: !0,
55
- configurable: !0,
56
- writable: !0
57
- }), obj[key];
58
- }
59
-
60
- try {
61
- define({}, "");
62
- } catch (err) {
63
- define = function (obj, key, value) {
64
- return obj[key] = value;
65
- };
66
- }
67
-
68
- function wrap(innerFn, outerFn, self, tryLocsList) {
69
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
70
- generator = Object.create(protoGenerator.prototype),
71
- context = new Context(tryLocsList || []);
72
- return generator._invoke = function (innerFn, self, context) {
73
- var state = "suspendedStart";
74
- return function (method, arg) {
75
- if ("executing" === state) throw new Error("Generator is already running");
76
-
77
- if ("completed" === state) {
78
- if ("throw" === method) throw arg;
79
- return doneResult();
80
- }
81
-
82
- for (context.method = method, context.arg = arg;;) {
83
- var delegate = context.delegate;
84
-
85
- if (delegate) {
86
- var delegateResult = maybeInvokeDelegate(delegate, context);
87
-
88
- if (delegateResult) {
89
- if (delegateResult === ContinueSentinel) continue;
90
- return delegateResult;
91
- }
92
- }
93
-
94
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
95
- if ("suspendedStart" === state) throw state = "completed", context.arg;
96
- context.dispatchException(context.arg);
97
- } else "return" === context.method && context.abrupt("return", context.arg);
98
- state = "executing";
99
- var record = tryCatch(innerFn, self, context);
100
-
101
- if ("normal" === record.type) {
102
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
103
- return {
104
- value: record.arg,
105
- done: context.done
106
- };
107
- }
108
-
109
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
110
- }
111
- };
112
- }(innerFn, self, context), generator;
113
- }
114
-
115
- function tryCatch(fn, obj, arg) {
116
- try {
117
- return {
118
- type: "normal",
119
- arg: fn.call(obj, arg)
120
- };
121
- } catch (err) {
122
- return {
123
- type: "throw",
124
- arg: err
125
- };
126
- }
127
- }
128
-
129
- exports.wrap = wrap;
130
- var ContinueSentinel = {};
131
-
132
- function Generator() {}
133
-
134
- function GeneratorFunction() {}
135
-
136
- function GeneratorFunctionPrototype() {}
137
-
138
- var IteratorPrototype = {};
139
- define(IteratorPrototype, iteratorSymbol, function () {
140
- return this;
141
- });
142
- var getProto = Object.getPrototypeOf,
143
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
144
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
145
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
146
-
147
- function defineIteratorMethods(prototype) {
148
- ["next", "throw", "return"].forEach(function (method) {
149
- define(prototype, method, function (arg) {
150
- return this._invoke(method, arg);
151
- });
152
- });
153
- }
154
-
155
- function AsyncIterator(generator, PromiseImpl) {
156
- function invoke(method, arg, resolve, reject) {
157
- var record = tryCatch(generator[method], generator, arg);
158
-
159
- if ("throw" !== record.type) {
160
- var result = record.arg,
161
- value = result.value;
162
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
163
- invoke("next", value, resolve, reject);
164
- }, function (err) {
165
- invoke("throw", err, resolve, reject);
166
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
167
- result.value = unwrapped, resolve(result);
168
- }, function (error) {
169
- return invoke("throw", error, resolve, reject);
170
- });
171
- }
172
-
173
- reject(record.arg);
174
- }
175
-
176
- var previousPromise;
177
-
178
- this._invoke = function (method, arg) {
179
- function callInvokeWithMethodAndArg() {
180
- return new PromiseImpl(function (resolve, reject) {
181
- invoke(method, arg, resolve, reject);
182
- });
183
- }
184
-
185
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
186
- };
187
- }
188
-
189
- function maybeInvokeDelegate(delegate, context) {
190
- var method = delegate.iterator[context.method];
191
-
192
- if (undefined === method) {
193
- if (context.delegate = null, "throw" === context.method) {
194
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
195
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
196
- }
197
-
198
- return ContinueSentinel;
199
- }
200
-
201
- var record = tryCatch(method, delegate.iterator, context.arg);
202
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
203
- var info = record.arg;
204
- 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);
205
- }
206
-
207
- function pushTryEntry(locs) {
208
- var entry = {
209
- tryLoc: locs[0]
210
- };
211
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
212
- }
213
-
214
- function resetTryEntry(entry) {
215
- var record = entry.completion || {};
216
- record.type = "normal", delete record.arg, entry.completion = record;
217
- }
218
-
219
- function Context(tryLocsList) {
220
- this.tryEntries = [{
221
- tryLoc: "root"
222
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
223
- }
224
-
225
- function values(iterable) {
226
- if (iterable) {
227
- var iteratorMethod = iterable[iteratorSymbol];
228
- if (iteratorMethod) return iteratorMethod.call(iterable);
229
- if ("function" == typeof iterable.next) return iterable;
230
-
231
- if (!isNaN(iterable.length)) {
232
- var i = -1,
233
- next = function next() {
234
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
235
-
236
- return next.value = undefined, next.done = !0, next;
237
- };
238
-
239
- return next.next = next;
240
- }
241
- }
242
-
243
- return {
244
- next: doneResult
245
- };
246
- }
247
-
248
- function doneResult() {
249
- return {
250
- value: undefined,
251
- done: !0
252
- };
253
- }
254
-
255
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
256
- var ctor = "function" == typeof genFun && genFun.constructor;
257
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
258
- }, exports.mark = function (genFun) {
259
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
260
- }, exports.awrap = function (arg) {
261
- return {
262
- __await: arg
263
- };
264
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
265
- return this;
266
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
267
- void 0 === PromiseImpl && (PromiseImpl = Promise);
268
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
269
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
270
- return result.done ? result.value : iter.next();
271
- });
272
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
273
- return this;
274
- }), define(Gp, "toString", function () {
275
- return "[object Generator]";
276
- }), exports.keys = function (object) {
277
- var keys = [];
278
-
279
- for (var key in object) keys.push(key);
280
-
281
- return keys.reverse(), function next() {
282
- for (; keys.length;) {
283
- var key = keys.pop();
284
- if (key in object) return next.value = key, next.done = !1, next;
285
- }
286
-
287
- return next.done = !0, next;
288
- };
289
- }, exports.values = values, Context.prototype = {
290
- constructor: Context,
291
- reset: function (skipTempReset) {
292
- 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);
293
- },
294
- stop: function () {
295
- this.done = !0;
296
- var rootRecord = this.tryEntries[0].completion;
297
- if ("throw" === rootRecord.type) throw rootRecord.arg;
298
- return this.rval;
299
- },
300
- dispatchException: function (exception) {
301
- if (this.done) throw exception;
302
- var context = this;
303
-
304
- function handle(loc, caught) {
305
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
306
- }
307
-
308
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
309
- var entry = this.tryEntries[i],
310
- record = entry.completion;
311
- if ("root" === entry.tryLoc) return handle("end");
312
-
313
- if (entry.tryLoc <= this.prev) {
314
- var hasCatch = hasOwn.call(entry, "catchLoc"),
315
- hasFinally = hasOwn.call(entry, "finallyLoc");
316
-
317
- if (hasCatch && hasFinally) {
318
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
319
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
320
- } else if (hasCatch) {
321
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
322
- } else {
323
- if (!hasFinally) throw new Error("try statement without catch or finally");
324
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
325
- }
326
- }
327
- }
328
- },
329
- abrupt: function (type, arg) {
330
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
331
- var entry = this.tryEntries[i];
332
-
333
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
334
- var finallyEntry = entry;
335
- break;
336
- }
337
- }
338
-
339
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
340
- var record = finallyEntry ? finallyEntry.completion : {};
341
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
342
- },
343
- complete: function (record, afterLoc) {
344
- if ("throw" === record.type) throw record.arg;
345
- 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;
346
- },
347
- finish: function (finallyLoc) {
348
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
349
- var entry = this.tryEntries[i];
350
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
351
- }
352
- },
353
- catch: function (tryLoc) {
354
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
355
- var entry = this.tryEntries[i];
356
-
357
- if (entry.tryLoc === tryLoc) {
358
- var record = entry.completion;
359
-
360
- if ("throw" === record.type) {
361
- var thrown = record.arg;
362
- resetTryEntry(entry);
363
- }
364
-
365
- return thrown;
366
- }
367
- }
368
-
369
- throw new Error("illegal catch attempt");
370
- },
371
- delegateYield: function (iterable, resultName, nextLoc) {
372
- return this.delegate = {
373
- iterator: values(iterable),
374
- resultName: resultName,
375
- nextLoc: nextLoc
376
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
377
- }
378
- }, exports;
379
- }
380
-
381
37
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
382
38
  try {
383
39
  var info = gen[key](arg);
@@ -473,17 +129,18 @@ function _inherits(subClass, superClass) {
473
129
  }
474
130
 
475
131
  function _getPrototypeOf(o) {
476
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
132
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
477
133
  return o.__proto__ || Object.getPrototypeOf(o);
478
134
  };
479
135
  return _getPrototypeOf(o);
480
136
  }
481
137
 
482
138
  function _setPrototypeOf(o, p) {
483
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
139
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
484
140
  o.__proto__ = p;
485
141
  return o;
486
142
  };
143
+
487
144
  return _setPrototypeOf(o, p);
488
145
  }
489
146
 
@@ -674,9 +331,10 @@ function ownKeys$1(object, enumerableOnly) {
674
331
 
675
332
  if (Object.getOwnPropertySymbols) {
676
333
  var symbols = Object.getOwnPropertySymbols(object);
677
- enumerableOnly && (symbols = symbols.filter(function (sym) {
334
+ if (enumerableOnly) symbols = symbols.filter(function (sym) {
678
335
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
679
- })), keys.push.apply(keys, symbols);
336
+ });
337
+ keys.push.apply(keys, symbols);
680
338
  }
681
339
 
682
340
  return keys;
@@ -684,12 +342,19 @@ function ownKeys$1(object, enumerableOnly) {
684
342
 
685
343
  function _objectSpread2$1(target) {
686
344
  for (var i = 1; i < arguments.length; i++) {
687
- var source = null != arguments[i] ? arguments[i] : {};
688
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
689
- _defineProperty$1(target, key, source[key]);
690
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
691
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
692
- });
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
+ }
693
358
  }
694
359
 
695
360
  return target;
@@ -700,17 +365,14 @@ function _arrayWithHoles$1(arr) {
700
365
  }
701
366
 
702
367
  function _iterableToArrayLimit$1(arr, i) {
703
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
704
-
705
- if (_i == null) return;
368
+ if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
706
369
  var _arr = [];
707
370
  var _n = true;
708
371
  var _d = false;
709
-
710
- var _s, _e;
372
+ var _e = undefined;
711
373
 
712
374
  try {
713
- 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) {
714
376
  _arr.push(_s.value);
715
377
 
716
378
  if (i && _arr.length === i) break;
@@ -793,11 +455,17 @@ function _objectWithoutProperties$1(source, excluded) {
793
455
  function _typeof(obj) {
794
456
  "@babel/helpers - typeof";
795
457
 
796
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
797
- return typeof obj;
798
- } : function (obj) {
799
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
800
- }, _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);
801
469
  }
802
470
 
803
471
  /**
@@ -2052,7 +1720,7 @@ var luckysheet; // const mapping = [
2052
1720
  // { "key": "price", "name": "单价", "rule": "price" }
2053
1721
  // ]
2054
1722
 
2055
- 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
2056
1724
 
2057
1725
 
2058
1726
  var reorder = function reorder(list, startIndex, endIndex) {
@@ -3541,6 +3209,7 @@ var SearchSelect = function SearchSelect(props) {
3541
3209
  } // 防抖函数 待定
3542
3210
 
3543
3211
 
3212
+ // 防抖函数 待定
3544
3213
  getData(searchParams);
3545
3214
  }, {
3546
3215
  wait: 1000
@@ -4395,7 +4064,7 @@ var SearchSelect = function SearchSelect(props) {
4395
4064
  }), " \u5168\u9009\u6240\u6709\u9875\u9762") : '')))));
4396
4065
  };
4397
4066
 
4398
- var css_248z$4 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input {\n height: auto;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n";
4067
+ var css_248z$4 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper_select_quick {\n margin: 0;\n}\n";
4399
4068
  styleInject(css_248z$4);
4400
4069
 
4401
4070
  var loadSelectSource = function loadSelectSource(url, params) {
@@ -4573,6 +4242,7 @@ var AddSelect = function AddSelect(props) {
4573
4242
  } // 防抖函数 待定
4574
4243
 
4575
4244
 
4245
+ // 防抖函数 待定
4576
4246
  getData(searchParams);
4577
4247
  }, {
4578
4248
  wait: 1000
@@ -5435,6 +5105,735 @@ var AddSelect = function AddSelect(props) {
5435
5105
  })))));
5436
5106
  };
5437
5107
 
5108
+ var css_248z$5 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick {\n margin: 0;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_base {\n background: #fff;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_odd {\n background: #f7f8fb;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-left,\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-right {\n background: #FFFFFF !important;\n}\n";
5109
+ styleInject(css_248z$5);
5110
+
5111
+ var _this = undefined;
5112
+
5113
+ var InputElement = function InputElement(_ref) {
5114
+ var record = _ref.record,
5115
+ text = _ref.text,
5116
+ currentIndex = _ref.currentIndex,
5117
+ inputLength = _ref.inputLength,
5118
+ index = _ref.index,
5119
+ setData = _ref.setData,
5120
+ data = _ref.data,
5121
+ item = _ref.item,
5122
+ callSelectItem = _ref.callSelectItem;
5123
+
5124
+ var _useState = useState(false),
5125
+ _useState2 = _slicedToArray(_useState, 2),
5126
+ hoverVisibled = _useState2[0],
5127
+ updateHoverVisibled = _useState2[1];
5128
+
5129
+ var _useState3 = useState([]),
5130
+ _useState4 = _slicedToArray(_useState3, 2),
5131
+ searchData = _useState4[0],
5132
+ updateSearchData = _useState4[1];
5133
+
5134
+ var tableRef = useRef(null);
5135
+
5136
+ var _useState5 = useState(text),
5137
+ _useState6 = _slicedToArray(_useState5, 2),
5138
+ value = _useState6[0],
5139
+ setValue = _useState6[1];
5140
+
5141
+ var inputRef = useRef(false);
5142
+
5143
+ var onSerchdata = function onSerchdata(name) {
5144
+ axios.get("/items/sku/pager/v2?".concat(stringify({
5145
+ 'skuCodeAndSkuName': name,
5146
+ 'pageSize': 100
5147
+ }))).then(function (_ref2) {
5148
+ var data = _ref2.data,
5149
+ status = _ref2.status;
5150
+
5151
+ if (status === 200) {
5152
+ if (data.status === '0') {
5153
+ updateSearchData(data.data.items.map(function (item, index) {
5154
+ return _objectSpread2(_objectSpread2({}, item), {}, {
5155
+ index: index
5156
+ });
5157
+ }));
5158
+ } else {
5159
+ updateSearchData([]);
5160
+ }
5161
+ }
5162
+ });
5163
+ };
5164
+
5165
+ var onCallback = function onCallback(itemData) {
5166
+ updateHoverVisibled(false);
5167
+
5168
+ if (itemData) {
5169
+ callSelectItem(_objectSpread2(_objectSpread2({}, itemData), {}, {
5170
+ needFocus: true
5171
+ }));
5172
+ setValue(itemData[item.dataIndex]);
5173
+ } else {
5174
+ callSelectItem(null);
5175
+ }
5176
+ };
5177
+
5178
+ var SearchDataTable = function SearchDataTable(hoverVisibled) {
5179
+ var _useState7 = useState(0),
5180
+ _useState8 = _slicedToArray(_useState7, 2),
5181
+ selectIndex = _useState8[0],
5182
+ setSelectIndex = _useState8[1];
5183
+
5184
+ var inputRef = useRef(null);
5185
+ useEffect(function () {
5186
+ if (searchData.length && hoverVisibled) {
5187
+ var _tableRef$current;
5188
+
5189
+ var dom = tableRef === null || tableRef === void 0 ? void 0 : (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[0];
5190
+
5191
+ if (dom) {
5192
+ dom.style.background = '#005CFF30';
5193
+ }
5194
+ }
5195
+ }, [hoverVisibled, tableRef === null || tableRef === void 0 ? void 0 : tableRef.current]);
5196
+ useEffect(function () {
5197
+ var inter = setInterval(function () {
5198
+ if (inputRef.current) {
5199
+ inputRef.current.focus();
5200
+ }
5201
+ }, 500);
5202
+ return function () {
5203
+ clearInterval(inter);
5204
+ };
5205
+ });
5206
+ if (!hoverVisibled) return /*#__PURE__*/React.createElement(React.Fragment, null);
5207
+ return /*#__PURE__*/React.createElement("div", {
5208
+ className: 'add_select_wrapper_select',
5209
+ style: {
5210
+ width: '800px',
5211
+ height: '400px',
5212
+ overflow: 'auto',
5213
+ position: 'relative'
5214
+ }
5215
+ }, /*#__PURE__*/React.createElement(Input, {
5216
+ placeholder: "\u8BF7\u8F93\u5165skucode\u6216\u8005sku\u540D\u79F0",
5217
+ ref: inputRef,
5218
+ style: {
5219
+ position: 'absolute',
5220
+ zIndex: '-100',
5221
+ height: '22px'
5222
+ },
5223
+ onKeyDown: function onKeyDown(e) {
5224
+ var currentIndex = selectIndex;
5225
+
5226
+ if (e.keyCode === 27) {
5227
+ e.stopPropagation();
5228
+ e.preventDefault();
5229
+ setSelectIndex(0);
5230
+ onCallback(null);
5231
+ }
5232
+
5233
+ if (e.keyCode === 13) {
5234
+ // enter
5235
+ onCallback(searchData[currentIndex]);
5236
+ setSelectIndex(0);
5237
+ }
5238
+
5239
+ if (e.keyCode === 40) {
5240
+ // 向下
5241
+ var dom = tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[currentIndex + 1];
5242
+
5243
+ if (dom) {
5244
+ tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[currentIndex].style.background = '';
5245
+ setSelectIndex(currentIndex + 1);
5246
+ dom.style.background = '#005CFF30';
5247
+ dom.scrollIntoViewIfNeeded(false);
5248
+ }
5249
+ } else if (e.keyCode === 38) {
5250
+ var _dom = tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[currentIndex - 1];
5251
+
5252
+ if (_dom) {
5253
+ tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[currentIndex].style.background = '';
5254
+ setSelectIndex(currentIndex - 1);
5255
+ _dom.style.background = '#005CFF30';
5256
+
5257
+ _dom.scrollIntoViewIfNeeded(false);
5258
+ }
5259
+ }
5260
+ }
5261
+ }), /*#__PURE__*/React.createElement(Table, {
5262
+ ref: tableRef,
5263
+ pagination: false,
5264
+ // components={
5265
+ // {
5266
+ // body: {
5267
+ // cell: ({index, record, ...props}) => {
5268
+ // debugger
5269
+ // return <td {...props} style={selectIndex === record?.index ? {background: '#005CFF30'} : {} } />
5270
+ // }
5271
+ // }
5272
+ // }
5273
+ // }
5274
+ onRow: function onRow(record, index) {
5275
+ return {
5276
+ onClick: function (record, index, event) {
5277
+ var dom = tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[index];
5278
+
5279
+ if (dom) {
5280
+ _toConsumableArray(tableRef.current.getElementsByTagName('tbody')[0].getElementsByTagName('tr')).map(function (item) {
5281
+ item.style.background = '';
5282
+ });
5283
+
5284
+ dom.style.background = '#005CFF30';
5285
+ dom.scrollIntoViewIfNeeded(false);
5286
+ }
5287
+
5288
+ setSelectIndex(index);
5289
+ }.bind(_this, record, index) // 点击行
5290
+
5291
+ };
5292
+ },
5293
+ rowClassName: 'row-class',
5294
+ columns: [{
5295
+ title: 'SKU编码',
5296
+ width: 150,
5297
+ dataIndex: 'skuCode'
5298
+ }, {
5299
+ title: 'SKU名称',
5300
+ width: 200,
5301
+ ellipsis: {
5302
+ showTitle: false
5303
+ },
5304
+ render: function render(text) {
5305
+ return /*#__PURE__*/React.createElement(Tooltip, {
5306
+ placement: "topLeft",
5307
+ title: text
5308
+ }, text);
5309
+ },
5310
+ dataIndex: 'name'
5311
+ }, {
5312
+ title: '国际条码',
5313
+ width: 100,
5314
+ ellipsis: {
5315
+ showTitle: false
5316
+ },
5317
+ dataIndex: 'barCode',
5318
+ render: function render(text) {
5319
+ return /*#__PURE__*/React.createElement(Tooltip, {
5320
+ placement: "topLeft",
5321
+ title: text
5322
+ }, text);
5323
+ }
5324
+ }, {
5325
+ title: '所属SPU名称',
5326
+ width: 100,
5327
+ ellipsis: {
5328
+ showTitle: false
5329
+ },
5330
+ dataIndex: 'itemName',
5331
+ render: function render(text) {
5332
+ return /*#__PURE__*/React.createElement(Tooltip, {
5333
+ placement: "topLeft",
5334
+ title: text
5335
+ }, text);
5336
+ }
5337
+ }, {
5338
+ title: '所属SPU编码',
5339
+ width: 100,
5340
+ ellipsis: {
5341
+ showTitle: false
5342
+ },
5343
+ dataIndex: 'itemCode',
5344
+ render: function render(text) {
5345
+ return /*#__PURE__*/React.createElement(Tooltip, {
5346
+ placement: "topLeft",
5347
+ title: text
5348
+ }, text);
5349
+ }
5350
+ }, {
5351
+ title: '外部编码',
5352
+ width: 100,
5353
+ ellipsis: {
5354
+ showTitle: false
5355
+ },
5356
+ render: function render(text) {
5357
+ return /*#__PURE__*/React.createElement(Tooltip, {
5358
+ placement: "topLeft",
5359
+ title: text
5360
+ }, text);
5361
+ },
5362
+ dataIndex: 'externalCode'
5363
+ }],
5364
+ dataSource: searchData
5365
+ }));
5366
+ };
5367
+
5368
+ return /*#__PURE__*/React.createElement(Popover, {
5369
+ placement: "bottomLeft",
5370
+ destroyTooltipOnHide: {
5371
+ keepParent: false
5372
+ },
5373
+ title: "",
5374
+ trigger: "",
5375
+ content: SearchDataTable(hoverVisibled),
5376
+ visible: hoverVisibled,
5377
+ onVisibleChange: function onVisibleChange(disabled) {
5378
+ updateHoverVisibled(disabled);
5379
+ }
5380
+ }, item.isPrimaryInput ? /*#__PURE__*/React.createElement(Input, {
5381
+ value: value,
5382
+ ref: inputRef,
5383
+ placeholder: "skucode / sku\u540D\u79F0",
5384
+ keyboard: false,
5385
+ autoFocus: record.autoFocus,
5386
+ onChange: function onChange(value) {
5387
+ record[item.dataIndex] = value.currentTarget.value;
5388
+ setValue(value.currentTarget.value); // setData(data);
5389
+ },
5390
+ // onFocus={(e)=> {
5391
+ // let dom1 = e.currentTarget;
5392
+ // dom1.setSelectionRange(100, 0);
5393
+ // dom1.select(text);
5394
+ // }}
5395
+ onKeyDown: function onKeyDown(e) {
5396
+ // if (e.keyCode === 13 && e.ctrlKey) {
5397
+ // handleOk(true)
5398
+ // document.getElementById("first-query")?.focus()
5399
+ // }
5400
+ if (e.keyCode === 8 && e.ctrlKey && index) {
5401
+ var _e$nativeEvent$path$;
5402
+
5403
+ message.success('删除当前行');
5404
+ e.stopPropagation();
5405
+ e.preventDefault();
5406
+ 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];
5407
+
5408
+ if (dom) {
5409
+ dom.select();
5410
+ dom.focus();
5411
+ dom.scrollIntoView(false);
5412
+ }
5413
+
5414
+ dom = null;
5415
+ setData(data.filter(function (item, innerIndex) {
5416
+ return innerIndex !== index;
5417
+ }));
5418
+ }
5419
+
5420
+ if (e.keyCode === 13) {
5421
+ // enter
5422
+ if (item.isPrimaryInput) {
5423
+ if (e.currentTarget.value.length < 2) {
5424
+ message.warning('至少输入两个字符');
5425
+ } else {
5426
+ updateHoverVisibled(true);
5427
+ onSerchdata(e.currentTarget.value);
5428
+ }
5429
+ }
5430
+ }
5431
+
5432
+ if (e.keyCode === 37 && e.shiftKey) {
5433
+ var _e$nativeEvent$path$2;
5434
+
5435
+ // 左滑动
5436
+ e.stopPropagation();
5437
+ e.preventDefault();
5438
+
5439
+ 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];
5440
+
5441
+ if (_dom2) {
5442
+ _dom2.select();
5443
+
5444
+ _dom2.focus();
5445
+
5446
+ _dom2.scrollIntoView(false);
5447
+ }
5448
+
5449
+ _dom2 = null;
5450
+ }
5451
+
5452
+ if (e.keyCode === 39 && e.shiftKey) {
5453
+ var _e$nativeEvent$path$3;
5454
+
5455
+ // 右滑
5456
+ e.stopPropagation();
5457
+ e.preventDefault();
5458
+
5459
+ 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];
5460
+
5461
+ if (_dom3) {
5462
+ _dom3.select();
5463
+
5464
+ _dom3.focus();
5465
+
5466
+ _dom3.scrollIntoView(false);
5467
+ }
5468
+
5469
+ _dom3 = null;
5470
+ }
5471
+
5472
+ if (e.keyCode === 40) {
5473
+ var _e$nativeEvent$path$4;
5474
+
5475
+ // 向下
5476
+ e.stopPropagation();
5477
+ e.preventDefault();
5478
+
5479
+ 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];
5480
+
5481
+ if (_dom4) {
5482
+ _dom4.select();
5483
+
5484
+ _dom4.focus();
5485
+
5486
+ _dom4.scrollIntoView(false);
5487
+ }
5488
+
5489
+ _dom4 = null;
5490
+ } else if (e.keyCode === 38) {
5491
+ var _e$nativeEvent$path$5;
5492
+
5493
+ e.stopPropagation();
5494
+ e.preventDefault();
5495
+ 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];
5496
+
5497
+ if (dom1) {
5498
+ // dom1.value=""
5499
+ // dom1.setSelectionRange(100, 0);
5500
+ dom1.select();
5501
+ dom1.focus();
5502
+ dom1.scrollIntoViewIfNeeded(false); // dom1.value=record['count']
5503
+ }
5504
+
5505
+ dom1 = null;
5506
+ } else if (e.keyCode === 9 && currentIndex === inputLength - 1 && index === data.length - 1) {
5507
+ setData([].concat(_toConsumableArray(data), [{}]));
5508
+ }
5509
+ }
5510
+ }) : /*#__PURE__*/React.createElement(InputNumber // onBlur={() => {updateHoverVisibled(false)}}
5511
+ , {
5512
+ // onBlur={() => {updateHoverVisibled(false)}}
5513
+ defaultValue: text || 0,
5514
+ min: 0,
5515
+ keyboard: false,
5516
+ onChange: function onChange(value) {
5517
+ record[item.dataIndex] = value;
5518
+ },
5519
+ onKeyDown: function onKeyDown(e) {
5520
+ // if (e.keyCode === 13 && e.ctrlKey) {
5521
+ // handleOk(true)
5522
+ // document.getElementById("first-query")?.focus()
5523
+ // }
5524
+ if (e.keyCode === 8 && e.ctrlKey && index) {
5525
+ var _e$nativeEvent$path$6;
5526
+
5527
+ message.success('删除当前行');
5528
+ e.stopPropagation();
5529
+ e.preventDefault();
5530
+ 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];
5531
+
5532
+ if (dom) {
5533
+ dom.select();
5534
+ dom.focus();
5535
+ dom.scrollIntoView(false);
5536
+ }
5537
+
5538
+ dom = null;
5539
+ setData(data.filter(function (item, innerIndex) {
5540
+ return innerIndex !== index;
5541
+ }));
5542
+ }
5543
+
5544
+ if (e.keyCode === 37 && e.shiftKey) {
5545
+ var _e$nativeEvent$path$7;
5546
+
5547
+ // 左滑动
5548
+ e.stopPropagation();
5549
+ e.preventDefault();
5550
+
5551
+ 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];
5552
+
5553
+ if (_dom5) {
5554
+ _dom5.select();
5555
+
5556
+ _dom5.focus();
5557
+
5558
+ _dom5.scrollIntoView(false);
5559
+ }
5560
+
5561
+ _dom5 = null;
5562
+ }
5563
+
5564
+ if (e.keyCode === 39 && e.shiftKey) {
5565
+ var _e$nativeEvent$path$8;
5566
+
5567
+ // 右滑
5568
+ e.stopPropagation();
5569
+ e.preventDefault();
5570
+
5571
+ 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];
5572
+
5573
+ if (_dom6) {
5574
+ _dom6.select();
5575
+
5576
+ _dom6.focus();
5577
+
5578
+ _dom6.scrollIntoView(false);
5579
+ }
5580
+
5581
+ _dom6 = null;
5582
+ }
5583
+
5584
+ if (e.keyCode === 40) {
5585
+ var _e$nativeEvent$path$9;
5586
+
5587
+ // 向下
5588
+ e.stopPropagation();
5589
+ e.preventDefault();
5590
+
5591
+ 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];
5592
+
5593
+ if (_dom7) {
5594
+ _dom7.select();
5595
+
5596
+ _dom7.focus();
5597
+
5598
+ _dom7.scrollIntoView(false);
5599
+ }
5600
+
5601
+ _dom7 = null;
5602
+ } else if (e.keyCode === 38) {
5603
+ var _e$nativeEvent$path$10;
5604
+
5605
+ e.stopPropagation();
5606
+ e.preventDefault();
5607
+ 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];
5608
+
5609
+ if (dom1) {
5610
+ // dom1.value=""
5611
+ // dom1.setSelectionRange(100, 0);
5612
+ dom1.select();
5613
+ dom1.focus();
5614
+ dom1.scrollIntoViewIfNeeded(false); // dom1.value=record['count']
5615
+ }
5616
+
5617
+ dom1 = null;
5618
+ } else if (e.keyCode === 9 && currentIndex === inputLength - 1 && index === data.length - 1) {
5619
+ e.stopPropagation();
5620
+ e.preventDefault();
5621
+ } else if (e.keyCode === 13 && currentIndex === inputLength - 1 && index === data.length - 1 && record['skuCode']) {
5622
+ setData([].concat(_toConsumableArray(data), [{
5623
+ autoFocus: true
5624
+ }]));
5625
+ }
5626
+ }
5627
+ }));
5628
+ };
5629
+
5630
+ var BillEntry = function BillEntry(_ref3) {
5631
+ var onSaveCallback = _ref3.onSaveCallback;
5632
+ var columns = [{
5633
+ title: 'SKU编码',
5634
+ width: 150,
5635
+ dataIndex: 'skuCode',
5636
+ isInputItem: true,
5637
+ isPrimaryInput: true
5638
+ }, {
5639
+ title: 'SKU名称',
5640
+ width: 200,
5641
+ ellipsis: {
5642
+ showTitle: false
5643
+ },
5644
+ render: function render(text) {
5645
+ return /*#__PURE__*/React.createElement(Tooltip, {
5646
+ placement: "topLeft",
5647
+ title: text
5648
+ }, text);
5649
+ },
5650
+ dataIndex: 'name'
5651
+ }, {
5652
+ title: '单位',
5653
+ dataIndex: 'selectUnitCode',
5654
+ width: 100,
5655
+ isSelectItem: true,
5656
+ render: function render(text, record) {
5657
+ var baseUnitCode = '';
5658
+
5659
+ if (record === null || record === void 0 ? void 0 : record.packingUnitList) {
5660
+ var base = record.packingUnitList.filter(function (item) {
5661
+ return item.unitCode;
5662
+ });
5663
+
5664
+ if (base.length) {
5665
+ baseUnitCode = base[0].unitCode;
5666
+ record.selectUnitCode = base[0].unitCode;
5667
+ }
5668
+ }
5669
+
5670
+ record.packingUnitList = record.packingUnitList || [];
5671
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Select, {
5672
+ value: record.selectUnitCode,
5673
+ onChange: function onChange(value) {
5674
+ record.selectUnitCode = value;
5675
+ },
5676
+ style: {
5677
+ width: '60px',
5678
+ height: '22px',
5679
+ lineHight: '22px'
5680
+ }
5681
+ }, record.packingUnitList && record.packingUnitList.map(function (item) {
5682
+ return /*#__PURE__*/React.createElement(Select.Option, {
5683
+ value: item.unitCode
5684
+ }, item.name);
5685
+ })));
5686
+ }
5687
+ }, {
5688
+ title: '数量',
5689
+ width: 100,
5690
+ isInputItem: true,
5691
+ dataIndex: 'count'
5692
+ }, {
5693
+ title: '所属SPU编码',
5694
+ width: 100,
5695
+ ellipsis: {
5696
+ showTitle: false
5697
+ },
5698
+ dataIndex: 'itemCode',
5699
+ render: function render(text) {
5700
+ return /*#__PURE__*/React.createElement(Tooltip, {
5701
+ placement: "topLeft",
5702
+ title: text
5703
+ }, text);
5704
+ }
5705
+ }, {
5706
+ title: '规格',
5707
+ width: 200,
5708
+ ellipsis: {
5709
+ showTitle: false
5710
+ },
5711
+ render: function render(text) {
5712
+ return /*#__PURE__*/React.createElement(Tooltip, {
5713
+ placement: "topLeft",
5714
+ title: text
5715
+ }, text);
5716
+ },
5717
+ dataIndex: 'propertyNameAndValue'
5718
+ }];
5719
+
5720
+ var _useState9 = useState(false),
5721
+ _useState10 = _slicedToArray(_useState9, 2),
5722
+ isModalVisible = _useState10[0],
5723
+ setIsModalVisible = _useState10[1];
5724
+
5725
+ var _useState11 = useState([{
5726
+ hovered: false
5727
+ }]),
5728
+ _useState12 = _slicedToArray(_useState11, 2),
5729
+ data = _useState12[0],
5730
+ setData = _useState12[1];
5731
+
5732
+ var tableRef = useRef(null);
5733
+
5734
+ var callSelectItem = function callSelectItem(index, item) {
5735
+ var _tableRef$current2;
5736
+
5737
+ if (item) {
5738
+ var newData = [].concat(data);
5739
+ newData[index] = _objectSpread2(_objectSpread2({}, data[index]), item);
5740
+ setData(newData);
5741
+ }
5742
+
5743
+ var dom = tableRef === null || tableRef === void 0 ? void 0 : (_tableRef$current2 = tableRef.current) === null || _tableRef$current2 === void 0 ? void 0 : _tableRef$current2.getElementsByTagName('tbody')[0].getElementsByTagName('tr')[index + 1];
5744
+
5745
+ if (dom) {
5746
+ setTimeout(function () {
5747
+ var _dom$getElementsByTag, _dom$getElementsByTag2;
5748
+
5749
+ (_dom$getElementsByTag = dom.getElementsByTagName('input')[item ? 1 : 0]) === null || _dom$getElementsByTag === void 0 ? void 0 : _dom$getElementsByTag.select();
5750
+ (_dom$getElementsByTag2 = dom.getElementsByTagName('input')[item ? 1 : 0]) === null || _dom$getElementsByTag2 === void 0 ? void 0 : _dom$getElementsByTag2.focus();
5751
+ }, 200);
5752
+ }
5753
+ };
5754
+
5755
+ var deleteRecord = function deleteRecord(record) {
5756
+ setData(data.filter(function (item) {
5757
+ return item.skuCode !== record.skuCode;
5758
+ }));
5759
+ };
5760
+
5761
+ var inputIndex = 0;
5762
+ var selectColumns = [].concat(_toConsumableArray(columns.map(function (item) {
5763
+ var inputLength = columns.filter(function (item) {
5764
+ return item.isInputItem || item.isSelectItem;
5765
+ }).length;
5766
+ var currentIndex = inputIndex;
5767
+
5768
+ if (item.isInputItem) {
5769
+ inputIndex++;
5770
+ return _objectSpread2(_objectSpread2({}, item), {}, {
5771
+ render: function render(text, record, index) {
5772
+ return /*#__PURE__*/React.createElement(InputElement, {
5773
+ setData: setData,
5774
+ callSelectItem: callSelectItem.bind(_this, index),
5775
+ item: item,
5776
+ isPrimaryInput: item.isPrimaryInput,
5777
+ record: record,
5778
+ text: text,
5779
+ data: data,
5780
+ index: index,
5781
+ inputLength: inputLength,
5782
+ currentIndex: currentIndex
5783
+ });
5784
+ }
5785
+ });
5786
+ } else if (item.isSelectItem) {
5787
+ inputIndex++;
5788
+ }
5789
+
5790
+ return item;
5791
+ })), [{
5792
+ title: '操作',
5793
+ width: 50,
5794
+ fixed: 'right',
5795
+ render: function render(text, record, index) {
5796
+ if (index !== 0) {
5797
+ return /*#__PURE__*/React.createElement("span", {
5798
+ style: {
5799
+ cursor: 'pointer',
5800
+ color: '#005CFF'
5801
+ },
5802
+ onClick: function onClick() {
5803
+ deleteRecord(record);
5804
+ }
5805
+ }, "\u5220\u9664");
5806
+ }
5807
+ }
5808
+ }]);
5809
+ return /*#__PURE__*/React.createElement("div", {
5810
+ className: 'add_select'
5811
+ }, /*#__PURE__*/React.createElement("div", {
5812
+ className: 'add_select_quick_header'
5813
+ }, /*#__PURE__*/React.createElement("div", {
5814
+ className: 'add_select_quick_header_title'
5815
+ }, /*#__PURE__*/React.createElement("div", null, "\u5FEB\u901F\u5F55\u5165"), /*#__PURE__*/React.createElement(Button, {
5816
+ type: "primary",
5817
+ onClick: function onClick() {
5818
+ onSaveCallback(data);
5819
+ }
5820
+ }, "\u63D0\u4EA4")), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("span", null, "*"), " \xA0\u5FEB\u6377\u952E\uFF1A\u3010Tab\u3011-\u8DF3\u683C\u5207\u6362\uFF1B\u3010Shift+\u2190\u3001\u2192\u3011-\u5F53\u524D\u884C\u5DE6\u3001\u53F3\u79FB\u52A8\uFF1B\u3010 \u2191\u3001\u2193\u3011-\u5F53\u524D\u5217\u4E0A\u3001\u4E0B\u79FB\u52A8\uFF1B\u3010ctrl+Delete\u3011-\u5220\u9664\u5F53\u524D\u884C\uFF1B")), /*#__PURE__*/React.createElement("div", {
5821
+ className: 'add_select_wrapper_select add_select_wrapper_select_quick'
5822
+ }, /*#__PURE__*/React.createElement(Table, _defineProperty({
5823
+ size: 'small',
5824
+ scroll: {
5825
+ y: 240
5826
+ },
5827
+ ref: tableRef,
5828
+ dataSource: data,
5829
+ columns: selectColumns,
5830
+ pagination: false,
5831
+ rowClassName: 'row-class'
5832
+ }, "rowClassName", function rowClassName(record, index) {
5833
+ return index % 2 === 0 ? 'table_base row-class' : 'table_odd row-class';
5834
+ }))));
5835
+ };
5836
+
5438
5837
  var shopFileType = [{
5439
5838
  text: "线上",
5440
5839
  value: 'online'
@@ -5852,6 +6251,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
5852
6251
  mappingValueField: 'skuCode',
5853
6252
  mappingTextShowTextField: ['name', 'propertyNameAndValue'],
5854
6253
  otherParams: {
6254
+ 'qp-combination-eq': false,
5855
6255
  'qp-approveStatus-eq': 1,
5856
6256
  // 'qp-type-eq': 10, // 查唯一国际条码【有些项目不需要必须要有国际条码,故注释,需要的项目自己定义otherParams补充上这个条件】
5857
6257
  sorter: 'desc-id'
@@ -7233,7 +7633,9 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
7233
7633
  requestConfig: {
7234
7634
  url: "/items/sku/pager/v2",
7235
7635
  filter: 'qp-name-like',
7236
- otherParams: {},
7636
+ otherParams: {
7637
+ 'qp-combination-eq': false
7638
+ },
7237
7639
  mappingTextField: 'name',
7238
7640
  mappingValueField: 'skuCode'
7239
7641
  },
@@ -7744,11 +8146,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
7744
8146
  var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
7745
8147
 
7746
8148
  axios.get("".concat(url, "?").concat(stringify(paramsData))).then( /*#__PURE__*/function () {
7747
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
8149
+ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(res) {
7748
8150
  var _ctx$form;
7749
8151
 
7750
8152
  var resData, coverData, data, dataList;
7751
- return _regeneratorRuntime().wrap(function _callee$(_context) {
8153
+ return regeneratorRuntime.wrap(function _callee$(_context) {
7752
8154
  while (1) {
7753
8155
  switch (_context.prev = _context.next) {
7754
8156
  case 0:
@@ -7989,7 +8391,6 @@ var index$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props,
7989
8391
  * @LastEditTime: 2022-01-14 16:10:27
7990
8392
  * @LastEditors: rodchen
7991
8393
  */
7992
-
7993
8394
  var resposne = JSON.parse(localStorage.getItem('userInfo') || '{}');
7994
8395
  axios.defaults.headers.common['sso-sessionid'] = (resposne === null || resposne === void 0 ? void 0 : resposne.sessionId) || '';
7995
8396
  axios.defaults.headers.common['x-tenant-id'] = (resposne === null || resposne === void 0 ? void 0 : resposne.tenantId) || '1';
@@ -7999,4 +8400,4 @@ if (localStorage.getItem('x-user-auth-context')) {
7999
8400
  axios.defaults.headers.common['x-user-auth-context'] = localStorage.getItem('x-user-auth-context');
8000
8401
  }
8001
8402
 
8002
- export { AddSelect, AddSkuSelect, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, CommodityEntry, DataImport, DataValidation, QueryMutipleInput, SearchSelect, TreeSearchSelect };
8403
+ export { AddSelect, AddSkuSelect, BillEntry, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, CommodityEntry, DataImport, DataValidation, QueryMutipleInput, SearchSelect, TreeSearchSelect };