@bit-sun/business-component 4.0.13-alpha.26 → 4.0.13-alpha.28

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
@@ -32,88 +32,9 @@ import { parse as parse$1 } from '@babel/parser';
32
32
  import { visit } from 'ast-types';
33
33
  import isArray$1 from 'lodash/isArray';
34
34
 
35
- function _arrayLikeToArray(r, a) {
36
- (null == a || a > r.length) && (a = r.length);
37
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
38
- return n;
39
- }
40
- function _arrayWithHoles(r) {
41
- if (Array.isArray(r)) return r;
42
- }
43
- function _arrayWithoutHoles(r) {
44
- if (Array.isArray(r)) return _arrayLikeToArray(r);
45
- }
46
- function _assertThisInitialized(e) {
47
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
48
- return e;
49
- }
50
- function asyncGeneratorStep(n, t, e, r, o, a, c) {
51
- try {
52
- var i = n[a](c),
53
- u = i.value;
54
- } catch (n) {
55
- return void e(n);
56
- }
57
- i.done ? t(u) : Promise.resolve(u).then(r, o);
58
- }
59
- function _asyncToGenerator(n) {
60
- return function () {
61
- var t = this,
62
- e = arguments;
63
- return new Promise(function (r, o) {
64
- var a = n.apply(t, e);
65
- function _next(n) {
66
- asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
67
- }
68
- function _throw(n) {
69
- asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
70
- }
71
- _next(void 0);
72
- });
73
- };
74
- }
75
35
  function _callSuper(t, o, e) {
76
36
  return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
77
37
  }
78
- function _classCallCheck(a, n) {
79
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
80
- }
81
- function _defineProperties(e, r) {
82
- for (var t = 0; t < r.length; t++) {
83
- var o = r[t];
84
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
85
- }
86
- }
87
- function _createClass(e, r, t) {
88
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
89
- writable: !1
90
- }), e;
91
- }
92
- function _defineProperty(e, r, t) {
93
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
94
- value: t,
95
- enumerable: !0,
96
- configurable: !0,
97
- writable: !0
98
- }) : e[r] = t, e;
99
- }
100
- function _getPrototypeOf(t) {
101
- return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
102
- return t.__proto__ || Object.getPrototypeOf(t);
103
- }, _getPrototypeOf(t);
104
- }
105
- function _inherits(t, e) {
106
- if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
107
- t.prototype = Object.create(e && e.prototype, {
108
- constructor: {
109
- value: t,
110
- writable: !0,
111
- configurable: !0
112
- }
113
- }), Object.defineProperty(t, "prototype", {
114
- writable: !1
115
- }), e && _setPrototypeOf(t, e);
116
- }
117
38
  function _isNativeReflectConstruct() {
118
39
  try {
119
40
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -122,9 +43,6 @@ function _isNativeReflectConstruct() {
122
43
  return !!t;
123
44
  })();
124
45
  }
125
- function _iterableToArray(r) {
126
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
127
- }
128
46
  function _iterableToArrayLimit(r, l) {
129
47
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
130
48
  if (null != t) {
@@ -152,15 +70,6 @@ function _iterableToArrayLimit(r, l) {
152
70
  return a;
153
71
  }
154
72
  }
155
- function _nonIterableRest() {
156
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
157
- }
158
- function _nonIterableSpread() {
159
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
160
- }
161
- function _objectDestructuringEmpty(t) {
162
- if (null == t) throw new TypeError("Cannot destructure " + t);
163
- }
164
73
  function ownKeys(e, r) {
165
74
  var t = Object.keys(e);
166
75
  if (Object.getOwnPropertySymbols) {
@@ -182,31 +91,6 @@ function _objectSpread2(e) {
182
91
  }
183
92
  return e;
184
93
  }
185
- function _objectWithoutProperties(e, t) {
186
- if (null == e) return {};
187
- var o,
188
- r,
189
- i = _objectWithoutPropertiesLoose(e, t);
190
- if (Object.getOwnPropertySymbols) {
191
- var n = Object.getOwnPropertySymbols(e);
192
- for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
193
- }
194
- return i;
195
- }
196
- function _objectWithoutPropertiesLoose(r, e) {
197
- if (null == r) return {};
198
- var t = {};
199
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
200
- if (-1 !== e.indexOf(n)) continue;
201
- t[n] = r[n];
202
- }
203
- return t;
204
- }
205
- function _possibleConstructorReturn(t, e) {
206
- if (e && ("object" == typeof e || "function" == typeof e)) return e;
207
- if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
208
- return _assertThisInitialized(t);
209
- }
210
94
  function _regeneratorRuntime() {
211
95
  _regeneratorRuntime = function () {
212
96
  return e;
@@ -508,20 +392,6 @@ function _regeneratorRuntime() {
508
392
  }
509
393
  }, e;
510
394
  }
511
- function _setPrototypeOf(t, e) {
512
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
513
- return t.__proto__ = e, t;
514
- }, _setPrototypeOf(t, e);
515
- }
516
- function _slicedToArray(r, e) {
517
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
518
- }
519
- function _toArray(r) {
520
- return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
521
- }
522
- function _toConsumableArray(r) {
523
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
524
- }
525
395
  function _toPrimitive(t, r) {
526
396
  if ("object" != typeof t || !t) return t;
527
397
  var e = t[Symbol.toPrimitive];
@@ -545,13 +415,181 @@ function _typeof(o) {
545
415
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
546
416
  }, _typeof(o);
547
417
  }
548
- function _unsupportedIterableToArray(r, a) {
549
- if (r) {
550
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
551
- var t = {}.toString.call(r).slice(8, -1);
552
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
418
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
419
+ try {
420
+ var info = gen[key](arg);
421
+ var value = info.value;
422
+ } catch (error) {
423
+ reject(error);
424
+ return;
425
+ }
426
+ if (info.done) {
427
+ resolve(value);
428
+ } else {
429
+ Promise.resolve(value).then(_next, _throw);
430
+ }
431
+ }
432
+ function _asyncToGenerator(fn) {
433
+ return function () {
434
+ var self = this,
435
+ args = arguments;
436
+ return new Promise(function (resolve, reject) {
437
+ var gen = fn.apply(self, args);
438
+ function _next(value) {
439
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
440
+ }
441
+ function _throw(err) {
442
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
443
+ }
444
+ _next(undefined);
445
+ });
446
+ };
447
+ }
448
+ function _classCallCheck(instance, Constructor) {
449
+ if (!(instance instanceof Constructor)) {
450
+ throw new TypeError("Cannot call a class as a function");
553
451
  }
554
452
  }
453
+ function _defineProperties(target, props) {
454
+ for (var i = 0; i < props.length; i++) {
455
+ var descriptor = props[i];
456
+ descriptor.enumerable = descriptor.enumerable || false;
457
+ descriptor.configurable = true;
458
+ if ("value" in descriptor) descriptor.writable = true;
459
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
460
+ }
461
+ }
462
+ function _createClass(Constructor, protoProps, staticProps) {
463
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
464
+ if (staticProps) _defineProperties(Constructor, staticProps);
465
+ Object.defineProperty(Constructor, "prototype", {
466
+ writable: false
467
+ });
468
+ return Constructor;
469
+ }
470
+ function _defineProperty(obj, key, value) {
471
+ key = _toPropertyKey(key);
472
+ if (key in obj) {
473
+ Object.defineProperty(obj, key, {
474
+ value: value,
475
+ enumerable: true,
476
+ configurable: true,
477
+ writable: true
478
+ });
479
+ } else {
480
+ obj[key] = value;
481
+ }
482
+ return obj;
483
+ }
484
+ function _inherits(subClass, superClass) {
485
+ if (typeof superClass !== "function" && superClass !== null) {
486
+ throw new TypeError("Super expression must either be null or a function");
487
+ }
488
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
489
+ constructor: {
490
+ value: subClass,
491
+ writable: true,
492
+ configurable: true
493
+ }
494
+ });
495
+ Object.defineProperty(subClass, "prototype", {
496
+ writable: false
497
+ });
498
+ if (superClass) _setPrototypeOf(subClass, superClass);
499
+ }
500
+ function _getPrototypeOf(o) {
501
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
502
+ return o.__proto__ || Object.getPrototypeOf(o);
503
+ };
504
+ return _getPrototypeOf(o);
505
+ }
506
+ function _setPrototypeOf(o, p) {
507
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
508
+ o.__proto__ = p;
509
+ return o;
510
+ };
511
+ return _setPrototypeOf(o, p);
512
+ }
513
+ function _objectDestructuringEmpty(obj) {
514
+ if (obj == null) throw new TypeError("Cannot destructure " + obj);
515
+ }
516
+ function _objectWithoutPropertiesLoose(source, excluded) {
517
+ if (source == null) return {};
518
+ var target = {};
519
+ for (var key in source) {
520
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
521
+ if (excluded.indexOf(key) >= 0) continue;
522
+ target[key] = source[key];
523
+ }
524
+ }
525
+ return target;
526
+ }
527
+ function _objectWithoutProperties(source, excluded) {
528
+ if (source == null) return {};
529
+ var target = _objectWithoutPropertiesLoose(source, excluded);
530
+ var key, i;
531
+ if (Object.getOwnPropertySymbols) {
532
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
533
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
534
+ key = sourceSymbolKeys[i];
535
+ if (excluded.indexOf(key) >= 0) continue;
536
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
537
+ target[key] = source[key];
538
+ }
539
+ }
540
+ return target;
541
+ }
542
+ function _assertThisInitialized(self) {
543
+ if (self === void 0) {
544
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
545
+ }
546
+ return self;
547
+ }
548
+ function _possibleConstructorReturn(self, call) {
549
+ if (call && (typeof call === "object" || typeof call === "function")) {
550
+ return call;
551
+ } else if (call !== void 0) {
552
+ throw new TypeError("Derived constructors may only return object or undefined");
553
+ }
554
+ return _assertThisInitialized(self);
555
+ }
556
+ function _slicedToArray(arr, i) {
557
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
558
+ }
559
+ function _toArray(arr) {
560
+ return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
561
+ }
562
+ function _toConsumableArray(arr) {
563
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
564
+ }
565
+ function _arrayWithoutHoles(arr) {
566
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
567
+ }
568
+ function _arrayWithHoles(arr) {
569
+ if (Array.isArray(arr)) return arr;
570
+ }
571
+ function _iterableToArray(iter) {
572
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
573
+ }
574
+ function _unsupportedIterableToArray(o, minLen) {
575
+ if (!o) return;
576
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
577
+ var n = Object.prototype.toString.call(o).slice(8, -1);
578
+ if (n === "Object" && o.constructor) n = o.constructor.name;
579
+ if (n === "Map" || n === "Set") return Array.from(o);
580
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
581
+ }
582
+ function _arrayLikeToArray(arr, len) {
583
+ if (len == null || len > arr.length) len = arr.length;
584
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
585
+ return arr2;
586
+ }
587
+ function _nonIterableSpread() {
588
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
589
+ }
590
+ function _nonIterableRest() {
591
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
592
+ }
555
593
 
556
594
  var ENUM = {
557
595
  // 浏览器缓存信息
@@ -1060,13 +1098,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
1060
1098
  imgHtml.innerHTML = str;
1061
1099
  }
1062
1100
  // 测试使用 测试类型缩小 end
1063
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
1101
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
1064
1102
  className: "clomnsImg"
1065
1103
  }, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
1066
1104
  src: url,
1067
1105
  width: "16px",
1068
1106
  height: "16px"
1069
- }, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
1107
+ }, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("div", {
1070
1108
  className: "clomnsImg2"
1071
1109
  }, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
1072
1110
  src: noImg
@@ -1203,7 +1241,7 @@ function downloadExcel(data, fileName, isResUrl) {
1203
1241
  }
1204
1242
  save_link.click();
1205
1243
  }
1206
- var _formatter = function formatter(data, parentAuthority, parentName) {
1244
+ var formatter = function formatter(data, parentAuthority, parentName) {
1207
1245
  return data.map(function (item) {
1208
1246
  if (!item.name || !item.path) {
1209
1247
  return null;
@@ -1223,7 +1261,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
1223
1261
  authority: item.authority || parentAuthority
1224
1262
  });
1225
1263
  if (item.routes) {
1226
- var children = _formatter(item.routes, item.authority, locale);
1264
+ var children = formatter(item.routes, item.authority, locale);
1227
1265
  // Reduce memory usage
1228
1266
  result.children = children;
1229
1267
  }
@@ -1233,7 +1271,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
1233
1271
  return item;
1234
1272
  });
1235
1273
  };
1236
- var memoizeOneFormatter = memoizeOne(_formatter, isEqual);
1274
+ var memoizeOneFormatter = memoizeOne(formatter, isEqual);
1237
1275
  var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
1238
1276
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
1239
1277
  if (backHistoryPath) {
@@ -1542,7 +1580,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
1542
1580
  // sheepMap是表头字段中英文映射
1543
1581
  // sheetCount:表的数量,默认一张
1544
1582
  var resolveFile = /*#__PURE__*/function () {
1545
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
1583
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
1546
1584
  var config,
1547
1585
  data,
1548
1586
  _args = arguments;
@@ -1581,7 +1619,7 @@ var resolveFile = /*#__PURE__*/function () {
1581
1619
  }();
1582
1620
  //读取文件
1583
1621
  var readerXlsxToList = /*#__PURE__*/function () {
1584
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1622
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1585
1623
  var _ref5, callback, sheetMap, nowFile, data2, data;
1586
1624
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1587
1625
  while (1) switch (_context2.prev = _context2.next) {
@@ -1674,14 +1712,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
1674
1712
  /**---------------------数据写入excel-------结束------------------------*/
1675
1713
 
1676
1714
  // 获取树平行结构
1677
- var _coverToParallel = function coverToParallel(treeData, result, chilKey) {
1715
+ var coverToParallel = function coverToParallel(treeData, result, chilKey) {
1678
1716
  var childrenKey = chilKey || 'children';
1679
1717
  treeData.forEach(function (el) {
1680
1718
  var _el$childrenKey;
1681
1719
  result.push(el);
1682
1720
  if ((el === null || el === void 0 ? void 0 : el[childrenKey]) && (el === null || el === void 0 ? void 0 : (_el$childrenKey = el[childrenKey]) === null || _el$childrenKey === void 0 ? void 0 : _el$childrenKey.length) > 0) {
1683
1721
  // 子级递归
1684
- _coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
1722
+ coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
1685
1723
  }
1686
1724
  });
1687
1725
  return result;
@@ -1958,13 +1996,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
1958
1996
  imgHtml.innerHTML = str;
1959
1997
  }
1960
1998
  // 测试使用 测试类型缩小 end
1961
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
1999
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
1962
2000
  className: "clomnsImg"
1963
2001
  }, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
1964
2002
  src: url,
1965
2003
  width: "16px",
1966
2004
  height: "16px"
1967
- }, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
2005
+ }, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
1968
2006
  src: noImg
1969
2007
  }))));
1970
2008
  };
@@ -2026,7 +2064,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
2026
2064
  }
2027
2065
  });
2028
2066
  };
2029
- var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
2067
+ var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && ( /*#__PURE__*/React$1.createElement(Input, _objectSpread2({
2030
2068
  disabled: disabled,
2031
2069
  onChange: function onChange(e) {
2032
2070
  var v = e.target.value;
@@ -2036,7 +2074,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
2036
2074
  width: 170
2037
2075
  },
2038
2076
  value: inputValue
2039
- }, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
2077
+ }, inpProps))), type === 'number' && ( /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
2040
2078
  disabled: disabled,
2041
2079
  onBlur: function onBlur(e) {
2042
2080
  var v = parseFloat(e.target.value);
@@ -2415,16 +2453,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
2415
2453
  var handleExportBarCode = handleExport;
2416
2454
  var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
2417
2455
  var routerMap = {};
2418
- var _flattenMenuData = function flattenMenuData(data) {
2456
+ var flattenMenuData = function flattenMenuData(data) {
2419
2457
  data.forEach(function (menuItem) {
2420
2458
  if (menuItem.children) {
2421
- _flattenMenuData(menuItem.children);
2459
+ flattenMenuData(menuItem.children);
2422
2460
  }
2423
2461
  // Reduce memory usage
2424
2462
  routerMap[menuItem.path] = menuItem;
2425
2463
  });
2426
2464
  };
2427
- _flattenMenuData(menuData);
2465
+ flattenMenuData(menuData);
2428
2466
  return routerMap;
2429
2467
  };
2430
2468
  var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
@@ -2567,7 +2605,7 @@ var requestUtil = function requestUtil(_ref) {
2567
2605
  return request$1(url, parms).then(handleResponseData);
2568
2606
  };
2569
2607
  var handleResponseData = /*#__PURE__*/function () {
2570
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
2608
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
2571
2609
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2572
2610
  while (1) switch (_context.prev = _context.next) {
2573
2611
  case 0:
@@ -3245,7 +3283,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3245
3283
  style: {
3246
3284
  color: 'red'
3247
3285
  }
3248
- }, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
3286
+ }, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
3249
3287
  trigger: ['click'],
3250
3288
  overlay: this.menuList,
3251
3289
  placement: "bottomRight"
@@ -3920,7 +3958,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
3920
3958
  placement: "bottomLeft"
3921
3959
  }, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
3922
3960
  title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
3923
- }, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
3961
+ }, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
3924
3962
  trigger: ['click'],
3925
3963
  overlay: this.menuList,
3926
3964
  placement: "bottomRight"
@@ -4441,7 +4479,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
4441
4479
  destroyTooltipOnHide: true,
4442
4480
  placement: "topRight",
4443
4481
  autoAdjustOverflow: false,
4444
- title: (/*#__PURE__*/React$1.createElement("div", {
4482
+ title: ( /*#__PURE__*/React$1.createElement("div", {
4445
4483
  style: {
4446
4484
  margin: '6px 8px 0px'
4447
4485
  },
@@ -4743,10 +4781,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4743
4781
  setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
4744
4782
  });
4745
4783
  },
4746
- notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
4784
+ notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
4747
4785
  size: "small",
4748
4786
  className: 'searchSelectSpin'
4749
- })) : (/*#__PURE__*/React$1.createElement("div", {
4787
+ })) : ( /*#__PURE__*/React$1.createElement("div", {
4750
4788
  style: {
4751
4789
  textAlign: 'center'
4752
4790
  }
@@ -4978,7 +5016,7 @@ var PropertyGroup = function PropertyGroup(props) {
4978
5016
  title: item.name,
4979
5017
  className: "propertyGroup_checkbox_container"
4980
5018
  }, item.name));
4981
- }), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
5019
+ }), !!notCommonUseProperty.length && ( /*#__PURE__*/React$1.createElement("div", {
4982
5020
  style: {
4983
5021
  width: '50px',
4984
5022
  cursor: 'pointer',
@@ -4991,7 +5029,7 @@ var PropertyGroup = function PropertyGroup(props) {
4991
5029
  setShowNotCommon(!showNotCommon);
4992
5030
  handleIndeterminate(commonUseProperty, notCommonUseProperty);
4993
5031
  }
4994
- }, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))));
5032
+ }, showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))));
4995
5033
  };
4996
5034
  var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
4997
5035
  if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
@@ -5221,7 +5259,7 @@ var PropertySelector = function PropertySelector(_ref) {
5221
5259
  propertyData: item,
5222
5260
  handleProperyItemChange: handleProperyItemChange
5223
5261
  });
5224
- }))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
5262
+ }))), !!notCommonProperty.length && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
5225
5263
  style: {
5226
5264
  width: '50px',
5227
5265
  cursor: 'pointer',
@@ -5231,7 +5269,7 @@ var PropertySelector = function PropertySelector(_ref) {
5231
5269
  onClick: function onClick() {
5232
5270
  return setShowNotCommon(!showNotCommon);
5233
5271
  }
5234
- }, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))))));
5272
+ }, showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))))));
5235
5273
  };
5236
5274
 
5237
5275
  var _excluded$4 = ["onChange", "value", "propertyCode", "name"];
@@ -6349,13 +6387,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6349
6387
  var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
6350
6388
  return /*#__PURE__*/React$1.createElement("div", {
6351
6389
  className: 'search_select'
6352
- }, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
6390
+ }, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
6353
6391
  onClick: function onClick() {
6354
6392
  var _fieldComponent$props, _fieldComponent$props2;
6355
6393
  (_fieldComponent$props = fieldComponent.props) === null || _fieldComponent$props === void 0 ? void 0 : (_fieldComponent$props2 = _fieldComponent$props.onClick) === null || _fieldComponent$props2 === void 0 ? void 0 : _fieldComponent$props2.call(_fieldComponent$props);
6356
6394
  showModal();
6357
6395
  }
6358
- }, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
6396
+ }, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
6359
6397
  title: getShowStr({
6360
6398
  viewShowValueStr: viewShowValueStr,
6361
6399
  labelInValue: labelInValue,
@@ -6394,10 +6432,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6394
6432
  dropdownRender: function dropdownRender(menu) {
6395
6433
  return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
6396
6434
  },
6397
- notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
6435
+ notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
6398
6436
  size: "small",
6399
6437
  className: 'searchSelectSpin'
6400
- })) : (/*#__PURE__*/React$1.createElement("div", {
6438
+ })) : ( /*#__PURE__*/React$1.createElement("div", {
6401
6439
  style: {
6402
6440
  textAlign: 'center'
6403
6441
  }
@@ -6437,7 +6475,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6437
6475
  text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
6438
6476
  filterTxt: searchValue
6439
6477
  }));
6440
- }))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
6478
+ }))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
6441
6479
  maskClosable: false,
6442
6480
  destroyOnClose: true,
6443
6481
  width: "calc(100% - 320px)",
@@ -7036,7 +7074,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
7036
7074
  style: {
7037
7075
  width: 525
7038
7076
  }
7039
- }), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
7077
+ }), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
7040
7078
  checked: !dataSource.some(function (item) {
7041
7079
  if (item.hidden) return true;
7042
7080
  return false;
@@ -7074,13 +7112,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
7074
7112
  _this2.onChange(e, item.title);
7075
7113
  }
7076
7114
  }, item.title);
7077
- }), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
7115
+ }), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
7078
7116
  style: {
7079
7117
  width: '144px'
7080
7118
  }
7081
- })), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
7119
+ })), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
7082
7120
  className: 'sort_table_column_all_empty'
7083
- }, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
7121
+ }, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
7084
7122
  className: 'sort_table_column_special'
7085
7123
  }, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
7086
7124
  className: 'sort_table_column_all'
@@ -7269,7 +7307,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
7269
7307
  });
7270
7308
  };
7271
7309
  // 格式化树选择器数据源
7272
- var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
7310
+ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
7273
7311
  var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
7274
7312
  return {
7275
7313
  title: treeDataItem[resKeyValue[1]],
@@ -7279,7 +7317,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
7279
7317
  isLeaf: !haveChildren,
7280
7318
  disabled: haveChildren,
7281
7319
  children: haveChildren ? treeDataItem.children.map(function (i) {
7282
- return _mapSearchTree(i, resKeyValue);
7320
+ return mapSearchTree(i, resKeyValue);
7283
7321
  }) : []
7284
7322
  };
7285
7323
  };
@@ -7288,7 +7326,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
7288
7326
  var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
7289
7327
  var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
7290
7328
  var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
7291
- return _mapSearchTree(ites, resKeyValue);
7329
+ return mapSearchTree(ites, resKeyValue);
7292
7330
  }) || [];
7293
7331
  changeSearchForm[changePosition].field.props.treeData = formatData;
7294
7332
  };
@@ -7370,6 +7408,7 @@ var AddSelect = function AddSelect(props) {
7370
7408
  clearTitle = props.clearTitle;
7371
7409
  var _ref = requestConfig || {},
7372
7410
  url = _ref.url,
7411
+ sourceKey = _ref.sourceKey,
7373
7412
  otherParams = _ref.otherParams,
7374
7413
  isMap = _ref.isMap,
7375
7414
  _ref$mappingValueFiel = _ref.mappingValueField,
@@ -7459,7 +7498,7 @@ var AddSelect = function AddSelect(props) {
7459
7498
  var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
7460
7499
  // FIXME: 特殊业务逻辑
7461
7500
  var checkSelectChange = /*#__PURE__*/function () {
7462
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7501
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7463
7502
  var result;
7464
7503
  return _regeneratorRuntime().wrap(function _callee$(_context) {
7465
7504
  while (1) switch (_context.prev = _context.next) {
@@ -7712,7 +7751,7 @@ var AddSelect = function AddSelect(props) {
7712
7751
  return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
7713
7752
  value: text || null,
7714
7753
  onChange: function () {
7715
- var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
7754
+ var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
7716
7755
  var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
7717
7756
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7718
7757
  while (1) switch (_context2.prev = _context2.next) {
@@ -7962,7 +8001,7 @@ var AddSelect = function AddSelect(props) {
7962
8001
  };
7963
8002
  });
7964
8003
  } else {
7965
- var keys = res.list ? 'list' : 'items';
8004
+ var keys = sourceKey ? sourceKey : res.list ? 'list' : 'items';
7966
8005
  source = res ? res[keys] ? res[keys].map(function (item) {
7967
8006
  var _item$packingUnitList, _item$packingUnitList2;
7968
8007
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -8320,10 +8359,10 @@ var AddSelect = function AddSelect(props) {
8320
8359
  var newColumns = arr.map(function (col) {
8321
8360
  return _objectSpread2({}, col);
8322
8361
  });
8323
- var _handleIndex = function handleIndex(arr, indexArr) {
8362
+ var handleIndex = function handleIndex(arr, indexArr) {
8324
8363
  var i = indexArr.shift();
8325
8364
  if (indexArr.length > 0) {
8326
- _handleIndex(arr[i].children, indexArr);
8365
+ handleIndex(arr[i].children, indexArr);
8327
8366
  } else {
8328
8367
  arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
8329
8368
  width: size.width
@@ -8331,7 +8370,7 @@ var AddSelect = function AddSelect(props) {
8331
8370
  handleAntdColumnsSpecialParams(arr[i]);
8332
8371
  }
8333
8372
  };
8334
- _handleIndex(newColumns, _toConsumableArray(index));
8373
+ handleIndex(newColumns, _toConsumableArray(index));
8335
8374
  callback(newColumns);
8336
8375
  };
8337
8376
  };
@@ -8341,13 +8380,13 @@ var AddSelect = function AddSelect(props) {
8341
8380
  var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
8342
8381
  setShowToChooseColumns(_toConsumableArray(newColumns));
8343
8382
  };
8344
- var _handleColumns = function handleColumns(arr, indexArr, callback) {
8383
+ var handleColumns = function handleColumns(arr, indexArr, callback) {
8345
8384
  arr.forEach(function (item, index) {
8346
8385
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
8347
8386
  return i || i === 0;
8348
8387
  });
8349
8388
  if (noEmptyArray$1(item.children)) {
8350
- _handleColumns(item.children, indexArrInside);
8389
+ handleColumns(item.children, indexArrInside);
8351
8390
  } else {
8352
8391
  item.width = item.width || getItemDefaultWidth$2(item);
8353
8392
  item.onHeaderCell = function (column) {
@@ -8363,14 +8402,14 @@ var AddSelect = function AddSelect(props) {
8363
8402
  handleAntdColumnsSpecialParams(item);
8364
8403
  return _objectSpread2({}, item);
8365
8404
  });
8366
- _handleColumns(showToChooseCol, [], function (res) {
8405
+ handleColumns(showToChooseCol, [], function (res) {
8367
8406
  return setShowToChooseColumnsCallback(res);
8368
8407
  });
8369
8408
  var showSelectedCol = showColumns.map(function (item) {
8370
8409
  handleAntdColumnsSpecialParams(item);
8371
8410
  return _objectSpread2({}, item);
8372
8411
  });
8373
- _handleColumns(showSelectedCol, [], function (res) {
8412
+ handleColumns(showSelectedCol, [], function (res) {
8374
8413
  return setShowColumnsCallback(res);
8375
8414
  });
8376
8415
  var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
@@ -8381,7 +8420,7 @@ var AddSelect = function AddSelect(props) {
8381
8420
  id: "add_select_div_".concat(uniqueValue)
8382
8421
  }, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
8383
8422
  onClick: handleShowModal
8384
- }, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
8423
+ }, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
8385
8424
  width: "calc(100% - 320px)",
8386
8425
  style: {
8387
8426
  top: 20
@@ -9295,7 +9334,7 @@ var BillEntry = function BillEntry(_ref3) {
9295
9334
  });
9296
9335
  };
9297
9336
  var handleSubmit = /*#__PURE__*/function () {
9298
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9337
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9299
9338
  var canEntryObject, _canEntryObject$error, messageInfo;
9300
9339
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9301
9340
  while (1) switch (_context.prev = _context.next) {
@@ -9378,10 +9417,10 @@ var BillEntry = function BillEntry(_ref3) {
9378
9417
  var newColumns = arr.map(function (col) {
9379
9418
  return _objectSpread2({}, col);
9380
9419
  });
9381
- var _handleIndex = function handleIndex(arr, indexArr) {
9420
+ var handleIndex = function handleIndex(arr, indexArr) {
9382
9421
  var i = indexArr.shift();
9383
9422
  if (indexArr.length > 0) {
9384
- _handleIndex(arr[i].children, indexArr);
9423
+ handleIndex(arr[i].children, indexArr);
9385
9424
  } else {
9386
9425
  arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
9387
9426
  width: size.width
@@ -9389,17 +9428,17 @@ var BillEntry = function BillEntry(_ref3) {
9389
9428
  handleAntdColumnsSpecialParams(arr[i]);
9390
9429
  }
9391
9430
  };
9392
- _handleIndex(newColumns, _toConsumableArray(index));
9431
+ handleIndex(newColumns, _toConsumableArray(index));
9393
9432
  callback(newColumns);
9394
9433
  };
9395
9434
  };
9396
- var _handleColumns = function handleColumns(arr, indexArr, callback) {
9435
+ var handleColumns = function handleColumns(arr, indexArr, callback) {
9397
9436
  arr.forEach(function (item, index) {
9398
9437
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
9399
9438
  return i || i === 0;
9400
9439
  });
9401
9440
  if (noEmptyArray$1(item.children)) {
9402
- _handleColumns(item.children, indexArrInside);
9441
+ handleColumns(item.children, indexArrInside);
9403
9442
  } else {
9404
9443
  item.width = item.width || getItemDefaultWidth$2(item);
9405
9444
  item.onHeaderCell = function (column) {
@@ -9415,7 +9454,7 @@ var BillEntry = function BillEntry(_ref3) {
9415
9454
  handleAntdColumnsSpecialParams(item);
9416
9455
  return _objectSpread2({}, item);
9417
9456
  });
9418
- _handleColumns(showSelectedCol, [], function (res) {
9457
+ handleColumns(showSelectedCol, [], function (res) {
9419
9458
  return setShowColumnsCallback(res);
9420
9459
  });
9421
9460
  return /*#__PURE__*/React$1.createElement("div", {
@@ -9731,7 +9770,7 @@ function commonFun(type, prefixUrl, parentProps) {
9731
9770
  });
9732
9771
  };
9733
9772
  // 格式化树选择器数据源
9734
- var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
9773
+ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
9735
9774
  var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
9736
9775
  return {
9737
9776
  title: treeDataItem[resKeyValue[1]],
@@ -9741,7 +9780,7 @@ function commonFun(type, prefixUrl, parentProps) {
9741
9780
  isLeaf: !haveChildren,
9742
9781
  disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
9743
9782
  children: haveChildren ? treeDataItem.children.map(function (i) {
9744
- return _mapSearchTree(i, resKeyValue, disabledJudge);
9783
+ return mapSearchTree(i, resKeyValue, disabledJudge);
9745
9784
  }) : []
9746
9785
  };
9747
9786
  };
@@ -9755,7 +9794,7 @@ function commonFun(type, prefixUrl, parentProps) {
9755
9794
  disabledJudge = false;
9756
9795
  }
9757
9796
  var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
9758
- return _mapSearchTree(ites, resKeyValue, disabledJudge);
9797
+ return mapSearchTree(ites, resKeyValue, disabledJudge);
9759
9798
  }) || [];
9760
9799
  changeSearchForm[changePosition].field.props.treeData = formatData;
9761
9800
  };
@@ -10065,14 +10104,14 @@ function commonFun(type, prefixUrl, parentProps) {
10065
10104
  }
10066
10105
  }
10067
10106
  }
10068
- }, {
10069
- name: 'qp-eancode-in',
10070
- label: '商品条码',
10071
- field: {
10072
- type: 'multipleQueryInput',
10073
- props: _objectSpread2({}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.itemEancodeValueRequestConfig) || {})
10074
- }
10075
- }, {
10107
+ },
10108
+ // { name: 'qp-eancode-in', label: '商品条码', field: {
10109
+ // type: 'multipleQueryInput',
10110
+ // props: {
10111
+ // ...(requestConfigProp?.itemEancodeValueRequestConfig || {}),
10112
+ // },
10113
+ // }},
10114
+ {
10076
10115
  name: 'qp-brandId-in',
10077
10116
  type: 'select',
10078
10117
  label: '品牌',
@@ -10132,8 +10171,8 @@ function commonFun(type, prefixUrl, parentProps) {
10132
10171
  pageSize: 5000,
10133
10172
  currentPage: 1
10134
10173
  })]).then(function (x) {
10135
- formatSource(x, 0, 4, tableSearchForm, ['id', 'name']);
10136
- formatTreeDataSource(x, 1, 5, tableSearchForm);
10174
+ formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
10175
+ formatTreeDataSource(x, 1, 4, tableSearchForm);
10137
10176
  });
10138
10177
  modalTableProps = _objectSpread2({
10139
10178
  modalTableTitle: '选择SKU',
@@ -14057,7 +14096,7 @@ var CommodityEntry = function CommodityEntry(props) {
14057
14096
  };
14058
14097
  return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
14059
14098
  onClick: handleShowModal
14060
- }, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
14099
+ }, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
14061
14100
  onOk: handleOk,
14062
14101
  onCancel: handleCancel,
14063
14102
  destroyOnClose: true,
@@ -14176,7 +14215,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14176
14215
  treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
14177
14216
  _remoteSource$special = remoteSource.specialBracket,
14178
14217
  specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
14179
- var _mapSearchTree = function mapSearchTree(treeDataItem) {
14218
+ var mapSearchTree = function mapSearchTree(treeDataItem) {
14180
14219
  var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
14181
14220
  var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
14182
14221
  return {
@@ -14188,7 +14227,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14188
14227
  isLeaf: !haveChildren,
14189
14228
  disabled: isDisabled(haveChildren, isRoot),
14190
14229
  children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
14191
- return _mapSearchTree(i);
14230
+ return mapSearchTree(i);
14192
14231
  }) : []
14193
14232
  };
14194
14233
  };
@@ -14206,8 +14245,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14206
14245
  var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
14207
14246
  requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
14208
14247
  headers: headers
14209
- }).then(/*#__PURE__*/function () {
14210
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
14248
+ }).then( /*#__PURE__*/function () {
14249
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
14211
14250
  var _ctx$form;
14212
14251
  var resData, coverData, data, dataList;
14213
14252
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -14234,7 +14273,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14234
14273
  case 9:
14235
14274
  dataList = data && Array.isArray(data) ? data : data && [data] || [];
14236
14275
  coverData = dataList.length && dataList.map(function (ites) {
14237
- return _mapSearchTree(ites);
14276
+ return mapSearchTree(ites);
14238
14277
  }) || [];
14239
14278
  case 11:
14240
14279
  _context.next = 14;
@@ -14272,11 +14311,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14272
14311
  return _formatResult;
14273
14312
  }
14274
14313
  };
14275
- var _parallelData = function parallelData(data, result) {
14314
+ var parallelData = function parallelData(data, result) {
14276
14315
  data.forEach(function (i) {
14277
14316
  result.push(i);
14278
14317
  if (i[treeChildrenRoom]) {
14279
- _parallelData(i[treeChildrenRoom], result);
14318
+ parallelData(i[treeChildrenRoom], result);
14280
14319
  }
14281
14320
  });
14282
14321
  return result;
@@ -14316,7 +14355,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14316
14355
  var _ctx$form2;
14317
14356
  var handleData = formatData(data);
14318
14357
  // 获取选中树节点当条数据,并返回给调用业务
14319
- var parallelTreeData = _parallelData(treeData, []);
14358
+ var parallelTreeData = parallelData(treeData, []);
14320
14359
  var currentItem = getSelectItem(parallelTreeData, data);
14321
14360
  onChange(handleData, data, currentItem, parallelTreeData);
14322
14361
  onChangeName && onChangeName(dataName);
@@ -14359,7 +14398,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14359
14398
  var getShowStr = function getShowStr() {
14360
14399
  var isMultiple = multiple || treeCheckable;
14361
14400
  var kongValue = '无';
14362
- var parallelTreeData = _parallelData(treeData, []);
14401
+ var parallelTreeData = parallelData(treeData, []);
14363
14402
  var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
14364
14403
  if (isMultiple) {
14365
14404
  return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
@@ -14371,7 +14410,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14371
14410
  var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
14372
14411
  return /*#__PURE__*/React$1.createElement("div", {
14373
14412
  className: 'tree_search_select'
14374
- }, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
14413
+ }, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
14375
14414
  title: getShowStr(),
14376
14415
  style: {
14377
14416
  overflow: 'hidden',
@@ -14379,7 +14418,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14379
14418
  whiteSpace: 'nowrap'
14380
14419
  },
14381
14420
  className: 'search_select_show'
14382
- }, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
14421
+ }, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
14383
14422
  treeCheckable: treeCheckable,
14384
14423
  maxTagCount: maxTagCount,
14385
14424
  showSearch: showSearch,
@@ -14576,7 +14615,7 @@ var index$2 = (function (props) {
14576
14615
  } : {}
14577
14616
  }, item.text)), /*#__PURE__*/React$1.createElement("div", {
14578
14617
  className: 'status-label-operate'
14579
- }, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
14618
+ }, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
14580
14619
  title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
14581
14620
  }, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
14582
14621
  style: {
@@ -15357,7 +15396,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
15357
15396
  style: {
15358
15397
  width: 525
15359
15398
  }
15360
- }), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
15399
+ }), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
15361
15400
  checked: !dataSource.some(function (item) {
15362
15401
  if (item.hidden) return true;
15363
15402
  return false;
@@ -15395,13 +15434,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
15395
15434
  _this2.onChange(e, item.title);
15396
15435
  }
15397
15436
  }, item.title);
15398
- }), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
15437
+ }), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
15399
15438
  style: {
15400
15439
  width: '144px'
15401
15440
  }
15402
- })), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
15441
+ })), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
15403
15442
  className: 'sort_table_column_all_empty'
15404
- }, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
15443
+ }, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
15405
15444
  className: 'sort_table_column_special'
15406
15445
  }, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
15407
15446
  className: 'sort_table_column_all'
@@ -15580,10 +15619,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
15580
15619
  var newColumns = _this.state.showColumns.map(function (col) {
15581
15620
  return _objectSpread2({}, col);
15582
15621
  });
15583
- var _handleIndex = function handleIndex(arr, indexArr) {
15622
+ var handleIndex = function handleIndex(arr, indexArr) {
15584
15623
  var i = indexArr.shift();
15585
15624
  if (indexArr.length > 0) {
15586
- _handleIndex(arr[i].children, indexArr);
15625
+ handleIndex(arr[i].children, indexArr);
15587
15626
  } else {
15588
15627
  arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
15589
15628
  width: size.width
@@ -15591,7 +15630,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
15591
15630
  handleBssulaColumnsSpecialParams(arr[i]);
15592
15631
  }
15593
15632
  };
15594
- _handleIndex(newColumns, _toConsumableArray(index));
15633
+ handleIndex(newColumns, _toConsumableArray(index));
15595
15634
  _this.setState({
15596
15635
  showColumns: _toConsumableArray(newColumns)
15597
15636
  });
@@ -15632,7 +15671,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
15632
15671
  };
15633
15672
  setIsResizing(true);
15634
15673
  document.addEventListener('mousemove', handleMouseMove);
15635
- document.addEventListener('mouseup', _handleMouseUp);
15674
+ document.addEventListener('mouseup', handleMouseUp);
15636
15675
  };
15637
15676
  var handleMouseMove = function handleMouseMove(e) {
15638
15677
  e.stopPropagation();
@@ -15648,9 +15687,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
15648
15687
  dom.style.top = "".concat(e.clientY - 20, "px");
15649
15688
  }
15650
15689
  };
15651
- var _handleMouseUp = function handleMouseUp(e) {
15690
+ var handleMouseUp = function handleMouseUp(e) {
15652
15691
  document.removeEventListener('mousemove', handleMouseMove);
15653
- document.removeEventListener('mouseup', _handleMouseUp);
15692
+ document.removeEventListener('mouseup', handleMouseUp);
15654
15693
  setIsResizing(false);
15655
15694
  };
15656
15695
  var handleresize = function handleresize(e, data, title) {
@@ -15771,13 +15810,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
15771
15810
  showSummary = summary;
15772
15811
  }
15773
15812
  }
15774
- var _handleColumns = function handleColumns(arr, indexArr) {
15813
+ var handleColumns = function handleColumns(arr, indexArr) {
15775
15814
  arr.forEach(function (item, index) {
15776
15815
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
15777
15816
  return i || i === 0;
15778
15817
  });
15779
15818
  if (noEmptyArray$1(item.children)) {
15780
- _handleColumns(item.children, indexArrInside);
15819
+ handleColumns(item.children, indexArrInside);
15781
15820
  } else {
15782
15821
  item.width = item.width || getItemDefaultWidth$2(item);
15783
15822
  item.onHeaderCell = function (column) {
@@ -15793,7 +15832,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
15793
15832
  handleBssulaColumnsSpecialParams(item);
15794
15833
  return _objectSpread2({}, item);
15795
15834
  });
15796
- _handleColumns(showCol, []);
15835
+ handleColumns(showCol, []);
15797
15836
  if (dynamicColumns.length) {
15798
15837
  showCol = this.handledynamicColumns(showCol);
15799
15838
  }
@@ -15834,7 +15873,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
15834
15873
  cell: this.ResizeableTitle
15835
15874
  }
15836
15875
  }
15837
- }, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
15876
+ }, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
15838
15877
  summary: summary
15839
15878
  })));
15840
15879
  }
@@ -15931,10 +15970,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
15931
15970
  var newColumns = _this.state.showColumns.map(function (col) {
15932
15971
  return _objectSpread2({}, col);
15933
15972
  });
15934
- var _handleIndex = function handleIndex(arr, indexArr) {
15973
+ var handleIndex = function handleIndex(arr, indexArr) {
15935
15974
  var i = indexArr.shift();
15936
15975
  if (indexArr.length > 0) {
15937
- _handleIndex(arr[i].children, indexArr);
15976
+ handleIndex(arr[i].children, indexArr);
15938
15977
  } else {
15939
15978
  arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
15940
15979
  width: size.width
@@ -15942,7 +15981,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
15942
15981
  handleAntdColumnsSpecialParams(arr[i]);
15943
15982
  }
15944
15983
  };
15945
- _handleIndex(newColumns, _toConsumableArray(index));
15984
+ handleIndex(newColumns, _toConsumableArray(index));
15946
15985
  _this.setState({
15947
15986
  showColumns: _toConsumableArray(newColumns)
15948
15987
  });
@@ -16018,13 +16057,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
16018
16057
  showSummary = summary;
16019
16058
  }
16020
16059
  }
16021
- var _handleColumns = function handleColumns(arr, indexArr) {
16060
+ var handleColumns = function handleColumns(arr, indexArr) {
16022
16061
  arr.forEach(function (item, index) {
16023
16062
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
16024
16063
  return i || i === 0;
16025
16064
  });
16026
16065
  if (noEmptyArray$1(item.children)) {
16027
- _handleColumns(item.children, indexArrInside);
16066
+ handleColumns(item.children, indexArrInside);
16028
16067
  } else {
16029
16068
  item.width = item.width || getItemDefaultWidth$2(item);
16030
16069
  item.onHeaderCell = function (column) {
@@ -16040,7 +16079,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
16040
16079
  handleAntdColumnsSpecialParams(item);
16041
16080
  return _objectSpread2({}, item);
16042
16081
  });
16043
- _handleColumns(showCol, []);
16082
+ handleColumns(showCol, []);
16044
16083
  if (dynamicColumns.length) {
16045
16084
  showCol = this.handledynamicColumns(showCol);
16046
16085
  }
@@ -16080,7 +16119,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
16080
16119
  cell: this.ResizeableTitle
16081
16120
  }
16082
16121
  }
16083
- }, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
16122
+ }, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
16084
16123
  summary: summary
16085
16124
  })));
16086
16125
  }
@@ -16140,7 +16179,7 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
16140
16179
  };
16141
16180
  var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
16142
16181
  var routerMap = {};
16143
- var _flattenMenuData2 = function flattenMenuData(data, parent) {
16182
+ var flattenMenuData = function flattenMenuData(data, parent) {
16144
16183
  var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
16145
16184
  data.forEach(function (menuItem) {
16146
16185
  // 面包屑路径,增加显示一级导航路径显示
@@ -16155,13 +16194,13 @@ var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
16155
16194
  nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
16156
16195
  });
16157
16196
  if (newMenuItem.children) {
16158
- _flattenMenuData2(newMenuItem.children, newMenuItem);
16197
+ flattenMenuData(newMenuItem.children, newMenuItem);
16159
16198
  }
16160
16199
  // Reduce memory usage
16161
16200
  routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
16162
16201
  });
16163
16202
  };
16164
- _flattenMenuData2(menuData, {
16203
+ flattenMenuData(menuData, {
16165
16204
  isMenuRoot: true
16166
16205
  });
16167
16206
  return routerMap;
@@ -16526,7 +16565,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
16526
16565
  display: 'flex',
16527
16566
  gap: '8px'
16528
16567
  }
16529
- }, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
16568
+ }, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
16530
16569
  title: "\u53D6\u6D88\u5168\u5C4F"
16531
16570
  }, /*#__PURE__*/React$1.createElement("img", {
16532
16571
  onClick: function onClick() {
@@ -16534,7 +16573,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
16534
16573
  },
16535
16574
  width: 24,
16536
16575
  src: scanning
16537
- }))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
16576
+ }))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
16538
16577
  title: "\u5168\u5C4F"
16539
16578
  }, /*#__PURE__*/React$1.createElement("img", {
16540
16579
  onClick: function onClick() {
@@ -16542,7 +16581,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
16542
16581
  },
16543
16582
  width: 24,
16544
16583
  src: quanping
16545
- }))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
16584
+ }))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
16546
16585
  }, function (prevProps, nextProps) {
16547
16586
  if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
16548
16587
  return false;
@@ -16627,7 +16666,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
16627
16666
  }, /*#__PURE__*/React$1.createElement("span", {
16628
16667
  className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
16629
16668
  }, item));
16630
- }))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
16669
+ }))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
16631
16670
  }, function (prevProps, nextProps) {
16632
16671
  if (prevProps.title !== nextProps.title) {
16633
16672
  return false;
@@ -17267,7 +17306,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
17267
17306
  });
17268
17307
  return /*#__PURE__*/React$1.createElement("div", {
17269
17308
  className: 'sort_table_wrapper'
17270
- }, visible && (/*#__PURE__*/React$1.createElement(Modal, {
17309
+ }, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
17271
17310
  title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
17272
17311
  wrapClassName: 'sort_table_wrapper',
17273
17312
  width: 810,
@@ -17318,7 +17357,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
17318
17357
  width: 525,
17319
17358
  height: 24
17320
17359
  }
17321
- }), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
17360
+ }), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
17322
17361
  checked: !dataSource.some(function (item) {
17323
17362
  if (item.hidden) return true;
17324
17363
  return false;
@@ -17372,13 +17411,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
17372
17411
  _this2.onChange(e, item.title);
17373
17412
  }
17374
17413
  }, item.title);
17375
- }), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
17414
+ }), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
17376
17415
  style: {
17377
17416
  width: '144px'
17378
17417
  }
17379
- })), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
17418
+ })), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
17380
17419
  className: 'sort_table_column_all_empty'
17381
- }, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
17420
+ }, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
17382
17421
  className: 'sort_table_column_special'
17383
17422
  }, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
17384
17423
  className: 'sort_table_column_all'
@@ -17852,7 +17891,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
17852
17891
  });
17853
17892
  return /*#__PURE__*/React$1.createElement("div", {
17854
17893
  className: 'sort_table_wrapper'
17855
- }, visible && (/*#__PURE__*/React$1.createElement(Modal, {
17894
+ }, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
17856
17895
  title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
17857
17896
  wrapClassName: 'sort_table_wrapper',
17858
17897
  width: 820,
@@ -17897,7 +17936,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
17897
17936
  style: {
17898
17937
  width: 525
17899
17938
  }
17900
- }), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
17939
+ }), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
17901
17940
  checked: !dataSource.some(function (item) {
17902
17941
  if (item.hidden) return true;
17903
17942
  return false;
@@ -17933,11 +17972,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
17933
17972
  _this2.onChange(e, item.name);
17934
17973
  }
17935
17974
  }, item.label);
17936
- }), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
17975
+ }), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
17937
17976
  style: {
17938
17977
  width: '144px'
17939
17978
  }
17940
- })), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
17979
+ })), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
17941
17980
  className: 'sort_table_column_all_empty'
17942
17981
  }, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
17943
17982
  className: 'sort_table_content_wrapper'
@@ -18036,7 +18075,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
18036
18075
  };
18037
18076
  setIsResizing(true);
18038
18077
  document.addEventListener('mousemove', handleMouseMove);
18039
- document.addEventListener('mouseup', _handleMouseUp);
18078
+ document.addEventListener('mouseup', handleMouseUp);
18040
18079
  };
18041
18080
  var handleMouseMove = function handleMouseMove(e) {
18042
18081
  e.stopPropagation();
@@ -18052,9 +18091,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
18052
18091
  dom.style.top = "".concat(e.clientY - 20, "px");
18053
18092
  }
18054
18093
  };
18055
- var _handleMouseUp = function handleMouseUp(e) {
18094
+ var handleMouseUp = function handleMouseUp(e) {
18056
18095
  document.removeEventListener('mousemove', handleMouseMove);
18057
- document.removeEventListener('mouseup', _handleMouseUp);
18096
+ document.removeEventListener('mouseup', handleMouseUp);
18058
18097
  setIsResizing(false);
18059
18098
  };
18060
18099
  var handleresize = function handleresize(e, data, title) {
@@ -18465,7 +18504,7 @@ var BsSulaQueryTable = (function (props) {
18465
18504
  actionsRender = actionsRender.concat([{
18466
18505
  type: 'text',
18467
18506
  props: {
18468
- children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
18507
+ children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
18469
18508
  request: {
18470
18509
  url: (value === null || value === void 0 ? void 0 : (_value$exportConfig2 = value.exportConfig) === null || _value$exportConfig2 === void 0 ? void 0 : _value$exportConfig2.url) || "/oms-ops/excel/exportAsync/".concat(value === null || value === void 0 ? void 0 : (_value$exportConfig3 = value.exportConfig) === null || _value$exportConfig3 === void 0 ? void 0 : _value$exportConfig3.type),
18471
18510
  params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
@@ -18711,7 +18750,7 @@ var BsSulaQueryTable = (function (props) {
18711
18750
  datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
18712
18751
  bsTableCode: bsTableCode,
18713
18752
  onlyModal: true
18714
- }), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React$1.createElement(SortableTable$1, {
18753
+ }), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React$1.createElement(SortableTable$1, {
18715
18754
  ref: exportTableRef,
18716
18755
  setShowColumns: setShowExportColumns,
18717
18756
  setInitialTableInfo: setInitialTableInfo,
@@ -18804,11 +18843,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
18804
18843
  var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
18805
18844
  var resultList = [];
18806
18845
  var newRouter = cloneDeep(router);
18807
- var _deep = function deep(router) {
18846
+ var deep = function deep(router) {
18808
18847
  if (router && Array.isArray(router)) {
18809
18848
  router.forEach(function (item) {
18810
18849
  if (item.children && Array.isArray(item.children)) {
18811
- _deep(item.children);
18850
+ deep(item.children);
18812
18851
  } else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
18813
18852
  return d === item.code;
18814
18853
  })) {
@@ -18822,10 +18861,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
18822
18861
  resultList.push(_objectSpread2({}, router));
18823
18862
  }
18824
18863
  };
18825
- _deep(newRouter);
18864
+ deep(newRouter);
18826
18865
  callBack([].concat(resultList));
18827
18866
  };
18828
- var _setMenuTreeData = function setMenuTreeData(routesData) {
18867
+ var setMenuTreeData = function setMenuTreeData(routesData) {
18829
18868
  var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
18830
18869
  var _loop = function _loop(i) {
18831
18870
  if (routesData[i].hideInMenu) {
@@ -18839,7 +18878,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
18839
18878
  return 0; // continue
18840
18879
  }
18841
18880
  if (routesData[i].children) {
18842
- _setMenuTreeData(routesData[i].children);
18881
+ setMenuTreeData(routesData[i].children);
18843
18882
  }
18844
18883
  },
18845
18884
  _ret;
@@ -18860,16 +18899,16 @@ var setLoginOutPath = function setLoginOutPath() {
18860
18899
  };
18861
18900
  var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
18862
18901
  var routerMap = {};
18863
- var _flattenMenuData = function flattenMenuData(data) {
18902
+ var flattenMenuData = function flattenMenuData(data) {
18864
18903
  data.forEach(function (menuItem) {
18865
18904
  if (menuItem.children) {
18866
- _flattenMenuData(menuItem.children);
18905
+ flattenMenuData(menuItem.children);
18867
18906
  }
18868
18907
  // Reduce memory usage
18869
18908
  routerMap[menuItem.path] = menuItem;
18870
18909
  });
18871
18910
  };
18872
- _flattenMenuData(menuData);
18911
+ flattenMenuData(menuData);
18873
18912
  return routerMap;
18874
18913
  };
18875
18914
  var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
@@ -19015,7 +19054,7 @@ var DrawContent = function DrawContent(_ref) {
19015
19054
  sethomepageData(homepageDataList);
19016
19055
  setroutesData(routesDataList);
19017
19056
  }, []);
19018
- var _renderChildItem = function renderChildItem(child) {
19057
+ var renderChildItem = function renderChildItem(child) {
19019
19058
  if (!child.hideInMenu && child.children) {
19020
19059
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
19021
19060
  style: {
@@ -19025,7 +19064,7 @@ var DrawContent = function DrawContent(_ref) {
19025
19064
  }, formatMessage({
19026
19065
  id: "".concat(child.locale)
19027
19066
  })), child.children.map(function (menuItem) {
19028
- return _renderChildItem(menuItem);
19067
+ return renderChildItem(menuItem);
19029
19068
  }));
19030
19069
  } else if (!child.hideInMenu && child.path) {
19031
19070
  return /*#__PURE__*/React$1.createElement(List.Item, {
@@ -19060,7 +19099,7 @@ var DrawContent = function DrawContent(_ref) {
19060
19099
  className: 'drawerWarp'
19061
19100
  }, homepageData && homepageData.filter(function (d) {
19062
19101
  return !d.hideInMenu;
19063
- }).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
19102
+ }).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
19064
19103
  className: classNames('allFunsList', 'allFunsListWarp'),
19065
19104
  dataSource: homepageData,
19066
19105
  renderItem: function renderItem(child) {
@@ -19095,7 +19134,7 @@ var DrawContent = function DrawContent(_ref) {
19095
19134
  bordered: true,
19096
19135
  dataSource: item.children,
19097
19136
  renderItem: function renderItem(child) {
19098
- return _renderChildItem(child);
19137
+ return renderChildItem(child);
19099
19138
  }
19100
19139
  });
19101
19140
  })));
@@ -19155,7 +19194,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
19155
19194
  src: allfunc
19156
19195
  })), /*#__PURE__*/React$1.createElement("span", {
19157
19196
  className: 'btnSpan2'
19158
- }, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
19197
+ }, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
19159
19198
  style: {
19160
19199
  left: isDrawer ? 140 : 0,
19161
19200
  top: 50
@@ -19201,7 +19240,7 @@ function outLogin(_x) {
19201
19240
  return _outLogin.apply(this, arguments);
19202
19241
  }
19203
19242
  function _outLogin() {
19204
- _outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
19243
+ _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
19205
19244
  var res;
19206
19245
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19207
19246
  while (1) switch (_context.prev = _context.next) {
@@ -19343,7 +19382,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
19343
19382
  });
19344
19383
  };
19345
19384
  var loginOut = /*#__PURE__*/function () {
19346
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
19385
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
19347
19386
  var sessionId;
19348
19387
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19349
19388
  while (1) switch (_context.prev = _context.next) {
@@ -19447,7 +19486,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
19447
19486
  marginRight: '0px'
19448
19487
  },
19449
19488
  src: './xialajiantou-new.svg'
19450
- }))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
19489
+ }))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
19451
19490
  };
19452
19491
 
19453
19492
  // -- 查询店铺 --
@@ -19455,7 +19494,7 @@ function getStoreByName(_x) {
19455
19494
  return _getStoreByName.apply(this, arguments);
19456
19495
  }
19457
19496
  function _getStoreByName() {
19458
- _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
19497
+ _getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
19459
19498
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19460
19499
  while (1) switch (_context.prev = _context.next) {
19461
19500
  case 0:
@@ -19523,7 +19562,7 @@ var ChooseStore = function ChooseStore(props) {
19523
19562
  return _fetchUserList.apply(this, arguments);
19524
19563
  }
19525
19564
  function _fetchUserList() {
19526
- _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
19565
+ _fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
19527
19566
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
19528
19567
  while (1) switch (_context3.prev = _context3.next) {
19529
19568
  case 0:
@@ -19571,7 +19610,7 @@ var ChooseStore = function ChooseStore(props) {
19571
19610
  return debounce$1(loadOptions, debounceTimeout);
19572
19611
  }, [debounceTimeout, key]);
19573
19612
  var changeInput = /*#__PURE__*/function () {
19574
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
19613
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
19575
19614
  var res;
19576
19615
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19577
19616
  while (1) switch (_context.prev = _context.next) {
@@ -19593,7 +19632,7 @@ var ChooseStore = function ChooseStore(props) {
19593
19632
  };
19594
19633
  }();
19595
19634
  useEffect(function () {
19596
- _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
19635
+ _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
19597
19636
  var res;
19598
19637
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
19599
19638
  while (1) switch (_context2.prev = _context2.next) {
@@ -19758,7 +19797,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
19758
19797
  var resultList = [];
19759
19798
  var newRouter = cloneDeep$1(router);
19760
19799
  var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
19761
- var _deep = function deep(router) {
19800
+ var deep = function deep(router) {
19762
19801
  if (router && Array.isArray(router)) {
19763
19802
  router.forEach(function (item) {
19764
19803
  if (item.routes && Array.isArray(item.routes)) {
@@ -19768,7 +19807,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
19768
19807
  d.nameEdit = true;
19769
19808
  }
19770
19809
  });
19771
- _deep(item.routes);
19810
+ deep(item.routes);
19772
19811
  } else if (!item.hideInMenu && (name ? formatMessage({
19773
19812
  id: "menu.".concat(item.name)
19774
19813
  }).indexOf(name) !== -1 : true)) {
@@ -19787,7 +19826,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
19787
19826
  }));
19788
19827
  }
19789
19828
  };
19790
- _deep(newRouter);
19829
+ deep(newRouter);
19791
19830
  setroutesData([].concat(resultList));
19792
19831
  };
19793
19832
  var renderLineStyl = function renderLineStyl(name) {
@@ -19869,7 +19908,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
19869
19908
  },
19870
19909
  title: item.fullPathName
19871
19910
  }, renderLineStyl(item.fullPathName));
19872
- }))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
19911
+ }))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
19873
19912
  employeeCode: employeeCode
19874
19913
  })), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
19875
19914
  };
@@ -19884,7 +19923,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
19884
19923
  var TreeNode = Tree.TreeNode;
19885
19924
  var Search$2 = Input.Search;
19886
19925
  var dataList = [];
19887
- var _generateList = function generateList(data) {
19926
+ var generateList = function generateList(data) {
19888
19927
  for (var i = 0; i < data.length; i++) {
19889
19928
  var node = data[i];
19890
19929
  var path = node.path,
@@ -19894,11 +19933,11 @@ var _generateList = function generateList(data) {
19894
19933
  name: name
19895
19934
  });
19896
19935
  if (node.children) {
19897
- _generateList(node.children);
19936
+ generateList(node.children);
19898
19937
  }
19899
19938
  }
19900
19939
  };
19901
- var _getParentKey = function getParentKey(path, tree) {
19940
+ var getParentKey = function getParentKey(path, tree) {
19902
19941
  var parentKey;
19903
19942
  for (var i = 0; i < tree.length; i++) {
19904
19943
  var node = tree[i];
@@ -19907,8 +19946,8 @@ var _getParentKey = function getParentKey(path, tree) {
19907
19946
  return item.path === path;
19908
19947
  })) {
19909
19948
  parentKey = node.path;
19910
- } else if (_getParentKey(path, node.children)) {
19911
- parentKey = _getParentKey(path, node.children);
19949
+ } else if (getParentKey(path, node.children)) {
19950
+ parentKey = getParentKey(path, node.children);
19912
19951
  }
19913
19952
  }
19914
19953
  }
@@ -19939,7 +19978,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
19939
19978
  var treeData = _this.state.treeData;
19940
19979
  var expandedKeys = dataList.map(function (item) {
19941
19980
  if (item.name.indexOf(value) > -1) {
19942
- return _getParentKey(item.path, treeData);
19981
+ return getParentKey(item.path, treeData);
19943
19982
  }
19944
19983
  return null;
19945
19984
  }).filter(function (item, i, self) {
@@ -19953,22 +19992,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
19953
19992
  };
19954
19993
  _this.getPathList = function (originData) {
19955
19994
  var pathList = [];
19956
- var _getList = function getList(data) {
19995
+ var getList = function getList(data) {
19957
19996
  if (Array.isArray(data)) {
19958
19997
  data.forEach(function (item) {
19959
19998
  pathList.push(item.path);
19960
19999
  if (item.children) {
19961
- _getList(item.children);
20000
+ getList(item.children);
19962
20001
  }
19963
20002
  });
19964
20003
  } else {
19965
20004
  pathList.push(data.path);
19966
20005
  if (data.children) {
19967
- _getList(data.children);
20006
+ getList(data.children);
19968
20007
  }
19969
20008
  }
19970
20009
  };
19971
- _getList(originData);
20010
+ getList(originData);
19972
20011
  return pathList;
19973
20012
  };
19974
20013
  _this.handleAdd2Menu = function (path) {
@@ -19977,18 +20016,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
19977
20016
  customerMenuData = _this$props.customerMenuData,
19978
20017
  setCustomerMenuData = _this$props.setCustomerMenuData;
19979
20018
  var filterItem;
19980
- var _filterMenuItem = function filterMenuItem(menuData) {
20019
+ var filterMenuItem = function filterMenuItem(menuData) {
19981
20020
  menuData.forEach(function (item) {
19982
20021
  if (item.path === path) {
19983
20022
  filterItem = _objectSpread2({}, item);
19984
20023
  return;
19985
20024
  }
19986
20025
  if (item.children) {
19987
- _filterMenuItem(item.children);
20026
+ filterMenuItem(item.children);
19988
20027
  }
19989
20028
  });
19990
20029
  };
19991
- _filterMenuItem(treeData);
20030
+ filterMenuItem(treeData);
19992
20031
  var addPathList = _this.getPathList(filterItem);
19993
20032
  var oldPathList = _this.getPathList(customerMenuData);
19994
20033
  var isRepet = false;
@@ -20018,8 +20057,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
20018
20057
  return item.path === '/';
20019
20058
  })) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
20020
20059
  var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
20021
- _setMenuTreeData(routesData);
20022
- _generateList(routesData);
20060
+ setMenuTreeData(routesData);
20061
+ generateList(routesData);
20023
20062
  this.setState({
20024
20063
  treeData: routesData
20025
20064
  });
@@ -20033,16 +20072,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
20033
20072
  expandedKeys = _this$state.expandedKeys,
20034
20073
  autoExpandParent = _this$state.autoExpandParent,
20035
20074
  treeData = _this$state.treeData;
20036
- var _loop = function loop(data) {
20075
+ var loop = function loop(data) {
20037
20076
  return data.map(function (item) {
20038
20077
  var index = item.name.indexOf(searchValue);
20039
20078
  var beforeStr = item.name.substr(0, index);
20040
20079
  var afterStr = item.name.substr(index + searchValue.length);
20041
- var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
20080
+ var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
20042
20081
  style: {
20043
20082
  color: '#f50'
20044
20083
  }
20045
- }, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
20084
+ }, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
20046
20085
  if (item.children && item.children.length) {
20047
20086
  return /*#__PURE__*/React$1.createElement(TreeNode, {
20048
20087
  path: item.path,
@@ -20064,7 +20103,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
20064
20103
  width: 18,
20065
20104
  src: arrowRight
20066
20105
  }))))
20067
- }, _loop(item.children));
20106
+ }, loop(item.children));
20068
20107
  }
20069
20108
  return /*#__PURE__*/React$1.createElement(TreeNode, {
20070
20109
  path: item.path,
@@ -20114,7 +20153,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
20114
20153
  onExpand: this.onExpand,
20115
20154
  expandedKeys: expandedKeys,
20116
20155
  autoExpandParent: autoExpandParent
20117
- }, _loop(treeData))));
20156
+ }, loop(treeData))));
20118
20157
  }
20119
20158
  }]);
20120
20159
  }(React$1.Component);
@@ -20147,24 +20186,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
20147
20186
  var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
20148
20187
  var dragObj;
20149
20188
  var finalDropItem;
20150
- var _loop = function loop(data, path, callback) {
20189
+ var loop = function loop(data, path, callback) {
20151
20190
  for (var i = 0; i < data.length; i++) {
20152
20191
  if (data[i].path === path) {
20153
20192
  return callback(data[i], i, data);
20154
20193
  }
20155
20194
  if (data[i].children) {
20156
- _loop(data[i].children, path, callback);
20195
+ loop(data[i].children, path, callback);
20157
20196
  }
20158
20197
  }
20159
20198
  };
20160
20199
  var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
20161
- _loop(data, dragKey, function (item, index, arr) {
20200
+ loop(data, dragKey, function (item, index, arr) {
20162
20201
  arr.splice(index, 1);
20163
20202
  dragObj = item;
20164
20203
  });
20165
20204
  if (!info.dropToGap) {
20166
20205
  // Drop on the content
20167
- _loop(data, dropKey, function (item) {
20206
+ loop(data, dropKey, function (item) {
20168
20207
  item.children = item.children || [];
20169
20208
  item.children.unshift(dragObj);
20170
20209
  finalDropItem = _objectSpread2({}, item);
@@ -20175,7 +20214,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
20175
20214
  // Is expanded
20176
20215
  dropPosition === 1 // On the bottom gap
20177
20216
  ) {
20178
- _loop(data, dropKey, function (item) {
20217
+ loop(data, dropKey, function (item) {
20179
20218
  item.children = item.children || [];
20180
20219
  item.children.unshift(dragObj);
20181
20220
  finalDropItem = _objectSpread2({}, item);
@@ -20183,7 +20222,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
20183
20222
  } else {
20184
20223
  var ar;
20185
20224
  var i;
20186
- _loop(data, dropKey, function (item, index, arr) {
20225
+ loop(data, dropKey, function (item, index, arr) {
20187
20226
  ar = arr;
20188
20227
  i = index;
20189
20228
  });
@@ -20222,17 +20261,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
20222
20261
  title: '编辑名称',
20223
20262
  callBack: function callBack(newName) {
20224
20263
  var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
20225
- var _editTreeDataName = function editTreeDataName(oldTreeData) {
20264
+ var editTreeDataName = function editTreeDataName(oldTreeData) {
20226
20265
  oldTreeData.forEach(function (treeItem) {
20227
20266
  if (treeItem.path === item.path) {
20228
20267
  treeItem.name = newName;
20229
20268
  }
20230
20269
  if (treeItem.children) {
20231
- _editTreeDataName(treeItem.children);
20270
+ editTreeDataName(treeItem.children);
20232
20271
  }
20233
20272
  });
20234
20273
  };
20235
- _editTreeDataName(oldTreeData);
20274
+ editTreeDataName(oldTreeData);
20236
20275
  _this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
20237
20276
  _this.setState({
20238
20277
  modalInfo: {
@@ -20277,7 +20316,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
20277
20316
  title: '新增子目录',
20278
20317
  callBack: function callBack(newName) {
20279
20318
  var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
20280
- var _addChildFolder = function addChildFolder(oldTreeData) {
20319
+ var addChildFolder = function addChildFolder(oldTreeData) {
20281
20320
  oldTreeData.forEach(function (treeItem) {
20282
20321
  if (treeItem.path === item.path) {
20283
20322
  treeItem.children ? treeItem.children.push({
@@ -20289,11 +20328,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
20289
20328
  }];
20290
20329
  }
20291
20330
  if (treeItem.children) {
20292
- _addChildFolder(treeItem.children);
20331
+ addChildFolder(treeItem.children);
20293
20332
  }
20294
20333
  });
20295
20334
  };
20296
- _addChildFolder(oldTreeData);
20335
+ addChildFolder(oldTreeData);
20297
20336
  _this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
20298
20337
  _this.setState({
20299
20338
  modalInfo: {
@@ -20352,7 +20391,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
20352
20391
  var _this$state = this.state,
20353
20392
  modalInfo = _this$state.modalInfo,
20354
20393
  checkedKeys = _this$state.checkedKeys;
20355
- var _loop2 = function loop(data) {
20394
+ var loop = function loop(data) {
20356
20395
  return data.map(function (item) {
20357
20396
  if (item.children && item.children.length) {
20358
20397
  return /*#__PURE__*/React$1.createElement(TreeNode$1, {
@@ -20369,7 +20408,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
20369
20408
  e.stopPropagation();
20370
20409
  }
20371
20410
  }, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
20372
- }, _loop2(item.children));
20411
+ }, loop(item.children));
20373
20412
  }
20374
20413
  return /*#__PURE__*/React$1.createElement(TreeNode$1, {
20375
20414
  path: item.path,
@@ -20448,7 +20487,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
20448
20487
  children: 'children'
20449
20488
  },
20450
20489
  onDrop: this.onDrop
20451
- }, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
20490
+ }, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
20452
20491
  width: 600,
20453
20492
  bodyStyle: {
20454
20493
  paddingTop: '32px',
@@ -20561,7 +20600,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
20561
20600
  pathname: item.path
20562
20601
  });
20563
20602
  };
20564
- var _getMenuDom = function getMenuDom(menuData) {
20603
+ var getMenuDom = function getMenuDom(menuData) {
20565
20604
  return menuData.map(function (item) {
20566
20605
  return /*#__PURE__*/React$1.createElement("div", {
20567
20606
  style: {
@@ -20576,7 +20615,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
20576
20615
  fontWeight: item.children || !item.component ? 'bolder' : '400',
20577
20616
  paddingLeft: '4px'
20578
20617
  }
20579
- }, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
20618
+ }, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
20580
20619
  });
20581
20620
  };
20582
20621
  return /*#__PURE__*/React$1.createElement("div", {
@@ -20602,7 +20641,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
20602
20641
  style: {
20603
20642
  paddingLeft: '5px'
20604
20643
  }
20605
- }, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
20644
+ }, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
20606
20645
  style: {
20607
20646
  left: isDrawer ? 140 : 0
20608
20647
  },
@@ -20623,7 +20662,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
20623
20662
  visible: isDrawer
20624
20663
  }, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
20625
20664
  className: 'menu_title_line'
20626
- }, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
20665
+ }, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
20627
20666
  title: /*#__PURE__*/React$1.createElement("span", {
20628
20667
  style: {
20629
20668
  fontWeight: '600',
@@ -20697,7 +20736,7 @@ var DrawContent$1 = function DrawContent(_ref) {
20697
20736
  return item.path === '/';
20698
20737
  })) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
20699
20738
  var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
20700
- _setMenuTreeData(routesData);
20739
+ setMenuTreeData(routesData);
20701
20740
  routesData.forEach(function (item) {
20702
20741
  if (item.children) {
20703
20742
  routesDataList.push(item);
@@ -20727,7 +20766,7 @@ var DrawContent$1 = function DrawContent(_ref) {
20727
20766
  setHeight(clientHeight - 190);
20728
20767
  setDrawHeight(clientHeight - 70);
20729
20768
  };
20730
- var _renderChildItem = function renderChildItem(child) {
20769
+ var renderChildItem = function renderChildItem(child) {
20731
20770
  if (!child.hideInMenu && child.children) {
20732
20771
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
20733
20772
  style: {
@@ -20737,7 +20776,7 @@ var DrawContent$1 = function DrawContent(_ref) {
20737
20776
  }, formatMessage({
20738
20777
  id: "".concat(child.locale)
20739
20778
  })), child.children.map(function (menuItem) {
20740
- return _renderChildItem(menuItem);
20779
+ return renderChildItem(menuItem);
20741
20780
  }));
20742
20781
  } else if (!child.hideInMenu && child.path) {
20743
20782
  return /*#__PURE__*/React$1.createElement(List.Item, {
@@ -20879,7 +20918,7 @@ var DrawContent$1 = function DrawContent(_ref) {
20879
20918
  onMenuClick(e, item);
20880
20919
  }
20881
20920
  }, item.name);
20882
- }))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
20921
+ }))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
20883
20922
  className: 'search_menu_content'
20884
20923
  }, SearhData.map(function (item) {
20885
20924
  return /*#__PURE__*/React$1.createElement("div", {
@@ -20888,7 +20927,7 @@ var DrawContent$1 = function DrawContent(_ref) {
20888
20927
  },
20889
20928
  key: item.path
20890
20929
  }, item.name);
20891
- }))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
20930
+ }))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
20892
20931
  style: {
20893
20932
  height: "".concat(rightMenuHeight, "px"),
20894
20933
  overflowY: 'scroll',
@@ -20900,7 +20939,7 @@ var DrawContent$1 = function DrawContent(_ref) {
20900
20939
  className: 'drawerWarp_right'
20901
20940
  }, homepageData && homepageData.filter(function (d) {
20902
20941
  return !d.hideInMenu;
20903
- }).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
20942
+ }).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
20904
20943
  className: classNames('allFunsList', 'allFunsListWarp'),
20905
20944
  dataSource: homepageData,
20906
20945
  renderItem: function renderItem(child) {
@@ -20941,7 +20980,7 @@ var DrawContent$1 = function DrawContent(_ref) {
20941
20980
  bordered: true,
20942
20981
  dataSource: item.children,
20943
20982
  renderItem: function renderItem(child) {
20944
- return _renderChildItem(child);
20983
+ return renderChildItem(child);
20945
20984
  }
20946
20985
  });
20947
20986
  })), /*#__PURE__*/React$1.createElement("div", {
@@ -21099,10 +21138,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
21099
21138
  var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
21100
21139
  var menuKeys = [];
21101
21140
  var docsId = [];
21102
- var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
21141
+ var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
21103
21142
  data.forEach(function (item) {
21104
21143
  if (item.children && item.children.length > 0) {
21105
- _getLimitedMenuKeys(item.children);
21144
+ getLimitedMenuKeys(item.children);
21106
21145
  } else {
21107
21146
  var originPath = item.path.replace(/^\/\w+\//, '/');
21108
21147
  menuKeys.push(originPath);
@@ -21113,7 +21152,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
21113
21152
  });
21114
21153
  };
21115
21154
  try {
21116
- _getLimitedMenuKeys(limitedMenuData);
21155
+ getLimitedMenuKeys(limitedMenuData);
21117
21156
  } catch (e) {}
21118
21157
  return {
21119
21158
  menuKeys: menuKeys,
@@ -21347,10 +21386,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
21347
21386
  return (node.path || '').includes('all-general-documents');
21348
21387
  };
21349
21388
  // 递归获取树列表
21350
- var _getTreeList = function getTreeList(data) {
21389
+ var getTreeList = function getTreeList(data) {
21351
21390
  data.forEach(function (node) {
21352
21391
  if (node.routes && node.routes.length > 0) {
21353
- _getTreeList(node.routes);
21392
+ getTreeList(node.routes);
21354
21393
  return;
21355
21394
  }
21356
21395
  // todo:暂时处理非wujie环境不做404管控
@@ -21381,7 +21420,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
21381
21420
  }
21382
21421
  });
21383
21422
  };
21384
- _getTreeList(treeData);
21423
+ getTreeList(treeData);
21385
21424
  return treeList;
21386
21425
  };
21387
21426
  _this.getDictionarySource = function (dicCode) {
@@ -22010,7 +22049,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
22010
22049
  updateState = _ref8.updateState;
22011
22050
  return /*#__PURE__*/React$1.createElement("div", {
22012
22051
  className: "tab_title_content"
22013
- }, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
22052
+ }, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
22014
22053
  info: item,
22015
22054
  operateFun: _this3.operateFun,
22016
22055
  listenRouterState: listenRouterState
@@ -22146,7 +22185,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
22146
22185
  };
22147
22186
  }
22148
22187
  var OperationsSlot = {
22149
- left: (/*#__PURE__*/React$1.createElement("div", {
22188
+ left: ( /*#__PURE__*/React$1.createElement("div", {
22150
22189
  className: 'tab_left_operate'
22151
22190
  }, /*#__PURE__*/React$1.createElement("div", {
22152
22191
  onClick: function onClick() {
@@ -22162,7 +22201,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
22162
22201
  _this3.setTabNavTransLate(-100);
22163
22202
  }
22164
22203
  }, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
22165
- right: (/*#__PURE__*/React$1.createElement("div", {
22204
+ right: ( /*#__PURE__*/React$1.createElement("div", {
22166
22205
  style: {
22167
22206
  opacity: this.state.isSlider ? 1 : 0.5
22168
22207
  },
@@ -22260,7 +22299,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
22260
22299
  onMouseLeave: function onMouseLeave() {
22261
22300
  _this3.setShowMenu(false);
22262
22301
  }
22263
- }, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
22302
+ }, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
22264
22303
  style: {
22265
22304
  position: 'absolute',
22266
22305
  top: '14px',
@@ -22279,7 +22318,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
22279
22318
  postMenuData: function postMenuData(menus) {
22280
22319
  return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
22281
22320
  },
22282
- links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
22321
+ links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
22283
22322
  ref: this.allFunc,
22284
22323
  itemPath: itemPath,
22285
22324
  handleClose: this.handleClose,
@@ -22297,7 +22336,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
22297
22336
  },
22298
22337
  menu: {
22299
22338
  request: function () {
22300
- var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
22339
+ var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
22301
22340
  return _regeneratorRuntime().wrap(function _callee$(_context) {
22302
22341
  while (1) switch (_context.prev = _context.next) {
22303
22342
  case 0:
@@ -22432,7 +22471,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
22432
22471
  getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
22433
22472
  timeFormat = _this$props4.timeFormat,
22434
22473
  transparentProps = _this$props4.transparentProps;
22435
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (/*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
22474
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? ( /*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
22436
22475
  getDictionarySource: getDictionarySource,
22437
22476
  getDictionaryTextByValue: getDictionaryTextByValue,
22438
22477
  timeFormat: timeFormat
@@ -22456,12 +22495,12 @@ var index$5 = (function (props) {
22456
22495
  });
22457
22496
 
22458
22497
  // @ts-nocheck
22459
- var _getAllColumns = function getAllColumns(columns) {
22498
+ var getAllColumns = function getAllColumns(columns) {
22460
22499
  var result = [];
22461
22500
  columns.forEach(function (column) {
22462
22501
  if (column.children) {
22463
22502
  result.push(column);
22464
- result.push.apply(result, _getAllColumns(column.children));
22503
+ result.push.apply(result, getAllColumns(column.children));
22465
22504
  } else {
22466
22505
  result.push(column);
22467
22506
  }
@@ -22470,7 +22509,7 @@ var _getAllColumns = function getAllColumns(columns) {
22470
22509
  };
22471
22510
  var convertToRows = function convertToRows(originColumns) {
22472
22511
  var maxLevel = 1;
22473
- var _traverse = function traverse(column, parent) {
22512
+ var traverse = function traverse(column, parent) {
22474
22513
  if (parent) {
22475
22514
  column.level = parent.level + 1;
22476
22515
  if (maxLevel < column.level) {
@@ -22480,7 +22519,7 @@ var convertToRows = function convertToRows(originColumns) {
22480
22519
  if (column.children) {
22481
22520
  var colSpan = 0;
22482
22521
  column.children.forEach(function (subColumn) {
22483
- _traverse(subColumn, column);
22522
+ traverse(subColumn, column);
22484
22523
  colSpan += subColumn.colSpan;
22485
22524
  });
22486
22525
  column.colSpan = colSpan;
@@ -22490,13 +22529,13 @@ var convertToRows = function convertToRows(originColumns) {
22490
22529
  };
22491
22530
  originColumns.forEach(function (column) {
22492
22531
  column.level = 1;
22493
- _traverse(column);
22532
+ traverse(column);
22494
22533
  });
22495
22534
  var rows = [];
22496
22535
  for (var i = 0; i < maxLevel; i++) {
22497
22536
  rows.push([]);
22498
22537
  }
22499
- var allColumns = _getAllColumns(originColumns);
22538
+ var allColumns = getAllColumns(originColumns);
22500
22539
  allColumns.forEach(function (column) {
22501
22540
  if (!column.children) {
22502
22541
  column.rowSpan = maxLevel - column.level + 1;
@@ -22536,7 +22575,7 @@ var convertToRows = function convertToRows(originColumns) {
22536
22575
  };
22537
22576
  var headersToRows = function headersToRows(originColumns) {
22538
22577
  var maxLevel = 1;
22539
- var _traverse2 = function traverse(column, parent) {
22578
+ var traverse = function traverse(column, parent) {
22540
22579
  if (parent) {
22541
22580
  //计算当前元素属于第几个层级
22542
22581
  column.level = parent.level + 1;
@@ -22549,7 +22588,7 @@ var headersToRows = function headersToRows(originColumns) {
22549
22588
  var colSpan = 0;
22550
22589
  column.children.forEach(function (subColumn) {
22551
22590
  //进行递归
22552
- _traverse2(subColumn, column);
22591
+ traverse(subColumn, column);
22553
22592
  colSpan += subColumn.colSpan;
22554
22593
  });
22555
22594
  column.colSpan = colSpan;
@@ -22559,14 +22598,14 @@ var headersToRows = function headersToRows(originColumns) {
22559
22598
  };
22560
22599
  originColumns.forEach(function (column) {
22561
22600
  column.level = 1;
22562
- _traverse2(column);
22601
+ traverse(column);
22563
22602
  });
22564
22603
  var rows = [];
22565
22604
  var lastData = [];
22566
22605
  for (var i = 0; i < maxLevel; i++) {
22567
22606
  rows.push([]);
22568
22607
  }
22569
- var allColumns = _getAllColumns(originColumns);
22608
+ var allColumns = getAllColumns(originColumns);
22570
22609
  allColumns.forEach(function (column) {
22571
22610
  if (!column.children) {
22572
22611
  column.rowSpan = maxLevel - column.level + 1;
@@ -28583,7 +28622,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
28583
28622
  }
28584
28623
  return lineStart <= highLightLine && lineEnd >= highLightLine;
28585
28624
  };
28586
- var _hasHighLightChildren = function hasHighLightChildren() {
28625
+ var hasHighLightChildren = function hasHighLightChildren() {
28587
28626
  var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
28588
28627
  var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
28589
28628
  var children = hightLightData.children,
@@ -28594,7 +28633,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
28594
28633
  lineEnd = _loc2[2];
28595
28634
  if (children) {
28596
28635
  return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
28597
- return _hasHighLightChildren(v, highLightLine);
28636
+ return hasHighLightChildren(v, highLightLine);
28598
28637
  });
28599
28638
  }
28600
28639
  return lineStart <= highLightLine && lineEnd >= highLightLine;
@@ -28606,7 +28645,7 @@ function createHighLightTreeData(treeData, highLightLine) {
28606
28645
  var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
28607
28646
  data.forEach(function (node) {
28608
28647
  if (!node) return;
28609
- node.toggled = _hasHighLightChildren(node, highLightLine);
28648
+ node.toggled = hasHighLightChildren(node, highLightLine);
28610
28649
  node.active = isHightLight(node, highLightLine);
28611
28650
  if (node.children) {
28612
28651
  if (node.active) {
@@ -30037,7 +30076,7 @@ var valueType = {
30037
30076
  };
30038
30077
 
30039
30078
  var getDynamicDict = /*#__PURE__*/function () {
30040
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
30079
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
30041
30080
  return _regeneratorRuntime().wrap(function _callee$(_context) {
30042
30081
  while (1) switch (_context.prev = _context.next) {
30043
30082
  case 0:
@@ -30105,7 +30144,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30105
30144
  value: false
30106
30145
  }];
30107
30146
  var ref = useRef();
30108
- useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
30147
+ useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
30109
30148
  var _ref$current, source;
30110
30149
  return _regeneratorRuntime().wrap(function _callee$(_context) {
30111
30150
  while (1) switch (_context.prev = _context.next) {
@@ -30219,7 +30258,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30219
30258
  source: {
30220
30259
  relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
30221
30260
  type: function () {
30222
- var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
30261
+ var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
30223
30262
  var form, values, name, relates, source;
30224
30263
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
30225
30264
  while (1) switch (_context2.prev = _context2.next) {
@@ -30699,7 +30738,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30699
30738
  source: {
30700
30739
  relates: ['choiceType', 'inputType'],
30701
30740
  type: function () {
30702
- var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
30741
+ var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
30703
30742
  var values, name, form, source;
30704
30743
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
30705
30744
  while (1) switch (_context3.prev = _context3.next) {
@@ -30921,7 +30960,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30921
30960
  width: 900,
30922
30961
  maskClosable: false,
30923
30962
  onOk: function () {
30924
- var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
30963
+ var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
30925
30964
  var _ref$current4, _res$editableStatus;
30926
30965
  var res, _res$defaultValue;
30927
30966
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
@@ -30993,7 +31032,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30993
31032
  }()
30994
31033
  }), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
30995
31034
  ref: ref
30996
- })), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
31035
+ })), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
30997
31036
  };
30998
31037
 
30999
31038
  // @ts-nocheck
@@ -31607,7 +31646,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
31607
31646
  return setVisible(false);
31608
31647
  },
31609
31648
  className: 'customFieldsDrawer'
31610
- }, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
31649
+ }, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
31611
31650
  style: {
31612
31651
  display: 'flex'
31613
31652
  }
@@ -31616,13 +31655,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
31616
31655
  flex: 1,
31617
31656
  width: 500
31618
31657
  }
31619
- }, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
31658
+ }, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
31620
31659
  style: {
31621
31660
  padding: "10px 0",
31622
31661
  fontSize: "16px",
31623
31662
  fontWeight: "bolder"
31624
31663
  }
31625
- }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
31664
+ }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
31626
31665
  style: {
31627
31666
  flex: 1
31628
31667
  }
@@ -31631,7 +31670,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
31631
31670
  onRun: onClickRun,
31632
31671
  value: jsonEditorVal,
31633
31672
  shallowHeight: height
31634
- })))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
31673
+ })))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
31635
31674
  defaultActiveKey: activeKey,
31636
31675
  onChange: function onChange(v) {
31637
31676
  return setActiveKey(v);
@@ -31648,13 +31687,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
31648
31687
  flex: 1,
31649
31688
  width: 500
31650
31689
  }
31651
- }, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
31690
+ }, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
31652
31691
  style: {
31653
31692
  padding: "10px 0",
31654
31693
  fontSize: "16px",
31655
31694
  fontWeight: "bolder"
31656
31695
  }
31657
- }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
31696
+ }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
31658
31697
  style: {
31659
31698
  flex: 1
31660
31699
  }
@@ -31676,13 +31715,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
31676
31715
  flex: 1,
31677
31716
  width: 500
31678
31717
  }
31679
- }, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
31718
+ }, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
31680
31719
  style: {
31681
31720
  padding: "10px 0",
31682
31721
  fontSize: "16px",
31683
31722
  fontWeight: "bolder"
31684
31723
  }
31685
- }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
31724
+ }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
31686
31725
  style: {
31687
31726
  flex: 1
31688
31727
  }
@@ -31828,7 +31867,7 @@ function getMetaData(_x) {
31828
31867
 
31829
31868
  // 获取数据
31830
31869
  function _getMetaData() {
31831
- _getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
31870
+ _getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
31832
31871
  return _regeneratorRuntime().wrap(function _callee$(_context) {
31833
31872
  while (1) switch (_context.prev = _context.next) {
31834
31873
  case 0:
@@ -32050,7 +32089,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
32050
32089
  tableState = _useState4[0],
32051
32090
  setTableState = _useState4[1];
32052
32091
  var handleOpen = /*#__PURE__*/function () {
32053
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
32092
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
32054
32093
  var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
32055
32094
  var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
32056
32095
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -32369,7 +32408,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
32369
32408
  destroyOnClose: true
32370
32409
  }, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
32371
32410
  ref: queryTableRef
32372
- }, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (/*#__PURE__*/React$1.createElement(Row, {
32411
+ }, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && ( /*#__PURE__*/React$1.createElement(Row, {
32373
32412
  justify: "center",
32374
32413
  style: {
32375
32414
  marginBottom: 30,
@@ -32485,7 +32524,7 @@ var CustomSelector = (function (props) {
32485
32524
  var _props$ctx7;
32486
32525
  return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
32487
32526
  }
32488
- })), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
32527
+ })), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
32489
32528
  type: "primary",
32490
32529
  style: {
32491
32530
  width: '30px',
@@ -32571,7 +32610,7 @@ var BsCascader = function BsCascader(_ref) {
32571
32610
  _useState2 = _slicedToArray(_useState, 2),
32572
32611
  handSource = _useState2[0],
32573
32612
  setHandSource = _useState2[1];
32574
- useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
32613
+ useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
32575
32614
  var resData, data;
32576
32615
  return _regeneratorRuntime().wrap(function _callee$(_context) {
32577
32616
  while (1) switch (_context.prev = _context.next) {
@@ -32723,7 +32762,7 @@ function getRegularThresholdRange(_x) {
32723
32762
  return _getRegularThresholdRange.apply(this, arguments);
32724
32763
  }
32725
32764
  function _getRegularThresholdRange() {
32726
- _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
32765
+ _getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
32727
32766
  return _regeneratorRuntime().wrap(function _callee$(_context) {
32728
32767
  while (1) switch (_context.prev = _context.next) {
32729
32768
  case 0:
@@ -32877,7 +32916,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
32877
32916
  };
32878
32917
  //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
32879
32918
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
32880
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
32919
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
32881
32920
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
32882
32921
  return _regeneratorRuntime().wrap(function _callee$(_context) {
32883
32922
  while (1) switch (_context.prev = _context.next) {
@@ -33834,7 +33873,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
33834
33873
  isAll: true,
33835
33874
  needNameAndCode: true,
33836
33875
  notChangeOnSelect: true,
33837
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
33876
+ initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
33838
33877
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
33839
33878
  while (1) switch (_context2.prev = _context2.next) {
33840
33879
  case 0:
@@ -33883,7 +33922,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
33883
33922
  isAll: true,
33884
33923
  needNameAndCode: true,
33885
33924
  notChangeOnSelect: true,
33886
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
33925
+ initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
33887
33926
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
33888
33927
  while (1) switch (_context3.prev = _context3.next) {
33889
33928
  case 0:
@@ -33934,7 +33973,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
33934
33973
  isAll: true,
33935
33974
  needNameAndCode: true,
33936
33975
  notChangeOnSelect: true,
33937
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
33976
+ initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
33938
33977
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
33939
33978
  while (1) switch (_context4.prev = _context4.next) {
33940
33979
  case 0:
@@ -35912,7 +35951,7 @@ var App$1 = function App(_ref) {
35912
35951
  borderRadius: '5px',
35913
35952
  cursor: 'pointer'
35914
35953
  }
35915
- }, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
35954
+ }, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
35916
35955
  autoFocus: true,
35917
35956
  onClick: function onClick(e) {
35918
35957
  return e.stopPropagation();
@@ -36199,7 +36238,7 @@ function RenderCompItem(props) {
36199
36238
  dictData = _useState2[0],
36200
36239
  setDictData = _useState2[1];
36201
36240
  var getDictData = /*#__PURE__*/function () {
36202
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
36241
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
36203
36242
  var _data$map;
36204
36243
  var data;
36205
36244
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -36241,7 +36280,7 @@ function RenderCompItem(props) {
36241
36280
  var style2 = {
36242
36281
  width: '100px'
36243
36282
  };
36244
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React$1.createElement(Input, {
36283
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && ( /*#__PURE__*/React$1.createElement(Input, {
36245
36284
  disabled: disabled,
36246
36285
  allowClear: true,
36247
36286
  onClear: function onClear() {
@@ -36252,7 +36291,7 @@ function RenderCompItem(props) {
36252
36291
  onBlur: function onBlur(e) {
36253
36292
  handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
36254
36293
  }
36255
- })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (/*#__PURE__*/React$1.createElement(InputNumber, {
36294
+ })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && ( /*#__PURE__*/React$1.createElement(InputNumber, {
36256
36295
  disabled: disabled,
36257
36296
  // max={Number.MAX_SAFE_INTEGER}
36258
36297
  max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
@@ -36265,7 +36304,7 @@ function RenderCompItem(props) {
36265
36304
  onChange: function onChange(value) {
36266
36305
  handleEdit(ites.code, value);
36267
36306
  }
36268
- })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (/*#__PURE__*/React$1.createElement(DatePicker, {
36307
+ })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && ( /*#__PURE__*/React$1.createElement(DatePicker, {
36269
36308
  showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
36270
36309
  format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
36271
36310
  disabled: disabled,
@@ -36275,7 +36314,7 @@ function RenderCompItem(props) {
36275
36314
  onChange: function onChange(value, dateString) {
36276
36315
  handleEdit(ites.code, dateString);
36277
36316
  }
36278
- })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React$1.createElement(RangePicker$1, {
36317
+ })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React$1.createElement(RangePicker$1, {
36279
36318
  showTime: true,
36280
36319
  disabled: disabled,
36281
36320
  defaultValue: ites.defaultValue,
@@ -36284,7 +36323,7 @@ function RenderCompItem(props) {
36284
36323
  onChange: function onChange(value, timeString) {
36285
36324
  handleEdit(ites.code, timeString);
36286
36325
  }
36287
- })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React$1.createElement(Switch, {
36326
+ })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React$1.createElement(Switch, {
36288
36327
  disabled: disabled,
36289
36328
  defaultChecked: !!ites.defaultValue,
36290
36329
  style: style2,
@@ -36292,7 +36331,7 @@ function RenderCompItem(props) {
36292
36331
  onChange: function onChange(value) {
36293
36332
  handleEdit(ites.code, value);
36294
36333
  }
36295
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
36334
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && ( /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
36296
36335
  disabled: disabled,
36297
36336
  allowClear: true,
36298
36337
  showArrow: true
@@ -36310,7 +36349,7 @@ function RenderCompItem(props) {
36310
36349
  key: it,
36311
36350
  value: it
36312
36351
  }, ites.enumeration[it]);
36313
- }))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React$1.createElement(InnerSelect, {
36352
+ }))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && ( /*#__PURE__*/React$1.createElement(InnerSelect, {
36314
36353
  disabled: disabled,
36315
36354
  inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
36316
36355
  defaultValue: ites.defaultValue,
@@ -36320,7 +36359,7 @@ function RenderCompItem(props) {
36320
36359
  handleEdit(ites.code, value);
36321
36360
  },
36322
36361
  dictionaryCode: ites.dictionaryCode
36323
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36362
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36324
36363
  selectBusinessType: "physicalWarehouse",
36325
36364
  selectProps: _objectSpread2({
36326
36365
  style: styleCommon,
@@ -36342,7 +36381,7 @@ function RenderCompItem(props) {
36342
36381
  getPopupContainer: function getPopupContainer() {
36343
36382
  return document.body;
36344
36383
  }
36345
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36384
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36346
36385
  selectBusinessType: "realWarehouse",
36347
36386
  selectProps: _objectSpread2({
36348
36387
  style: styleCommon,
@@ -36364,7 +36403,7 @@ function RenderCompItem(props) {
36364
36403
  getPopupContainer: function getPopupContainer() {
36365
36404
  return document.body;
36366
36405
  }
36367
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36406
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36368
36407
  selectBusinessType: "virtualWarehouse",
36369
36408
  selectProps: _objectSpread2({
36370
36409
  style: styleCommon,
@@ -36386,7 +36425,7 @@ function RenderCompItem(props) {
36386
36425
  getPopupContainer: function getPopupContainer() {
36387
36426
  return document.body;
36388
36427
  }
36389
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36428
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36390
36429
  selectBusinessType: "channelWarehouse",
36391
36430
  selectProps: _objectSpread2({
36392
36431
  style: styleCommon,
@@ -36408,7 +36447,7 @@ function RenderCompItem(props) {
36408
36447
  getPopupContainer: function getPopupContainer() {
36409
36448
  return document.body;
36410
36449
  }
36411
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36450
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36412
36451
  selectBusinessType: "spuCommodity",
36413
36452
  selectProps: _objectSpread2({
36414
36453
  style: styleCommon,
@@ -36429,7 +36468,7 @@ function RenderCompItem(props) {
36429
36468
  getPopupContainer: function getPopupContainer() {
36430
36469
  return document.body;
36431
36470
  }
36432
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36471
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36433
36472
  selectBusinessType: "skuCommodity",
36434
36473
  selectProps: _objectSpread2({
36435
36474
  style: styleCommon,
@@ -36450,13 +36489,13 @@ function RenderCompItem(props) {
36450
36489
  getPopupContainer: function getPopupContainer() {
36451
36490
  return document.body;
36452
36491
  }
36453
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React$1.createElement(BsCascader, {
36492
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && ( /*#__PURE__*/React$1.createElement(BsCascader, {
36454
36493
  disabled: disabled,
36455
36494
  isAll: true,
36456
36495
  needNameAndCode: true,
36457
36496
  notChangeOnSelect: true,
36458
36497
  initRequestSource: function () {
36459
- var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
36498
+ var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
36460
36499
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
36461
36500
  while (1) switch (_context2.prev = _context2.next) {
36462
36501
  case 0:
@@ -36498,7 +36537,7 @@ function RenderCompItem(props) {
36498
36537
  getPopupContainer: function getPopupContainer() {
36499
36538
  return document.body;
36500
36539
  }
36501
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36540
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36502
36541
  disabled: disabled,
36503
36542
  treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
36504
36543
  businessType: "department",
@@ -36511,7 +36550,7 @@ function RenderCompItem(props) {
36511
36550
  getPopupContainer: function getPopupContainer() {
36512
36551
  return document.body;
36513
36552
  }
36514
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36553
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36515
36554
  disabled: disabled,
36516
36555
  treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
36517
36556
  businessType: "purchase-organization",
@@ -36524,7 +36563,7 @@ function RenderCompItem(props) {
36524
36563
  getPopupContainer: function getPopupContainer() {
36525
36564
  return document.body;
36526
36565
  }
36527
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36566
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36528
36567
  disabled: disabled,
36529
36568
  treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
36530
36569
  businessType: "sales-organization",
@@ -36537,7 +36576,7 @@ function RenderCompItem(props) {
36537
36576
  getPopupContainer: function getPopupContainer() {
36538
36577
  return document.body;
36539
36578
  }
36540
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36579
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36541
36580
  selectBusinessType: "supplier2",
36542
36581
  selectProps: _objectSpread2({
36543
36582
  style: styleCommon,
@@ -36558,7 +36597,7 @@ function RenderCompItem(props) {
36558
36597
  getPopupContainer: function getPopupContainer() {
36559
36598
  return document.body;
36560
36599
  }
36561
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36600
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36562
36601
  selectBusinessType: "customer2",
36563
36602
  selectProps: _objectSpread2({
36564
36603
  style: styleCommon,
@@ -36579,7 +36618,7 @@ function RenderCompItem(props) {
36579
36618
  getPopupContainer: function getPopupContainer() {
36580
36619
  return document.body;
36581
36620
  }
36582
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36621
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36583
36622
  selectBusinessType: "shopFile2",
36584
36623
  selectProps: _objectSpread2({
36585
36624
  style: styleCommon,
@@ -36600,7 +36639,7 @@ function RenderCompItem(props) {
36600
36639
  getPopupContainer: function getPopupContainer() {
36601
36640
  return document.body;
36602
36641
  }
36603
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36642
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36604
36643
  selectBusinessType: "employee2",
36605
36644
  selectProps: _objectSpread2({
36606
36645
  style: styleCommon,
@@ -36621,7 +36660,7 @@ function RenderCompItem(props) {
36621
36660
  getPopupContainer: function getPopupContainer() {
36622
36661
  return document.body;
36623
36662
  }
36624
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36663
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36625
36664
  disabled: disabled,
36626
36665
  treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
36627
36666
  businessType: "stock-organization",
@@ -36634,7 +36673,7 @@ function RenderCompItem(props) {
36634
36673
  getPopupContainer: function getPopupContainer() {
36635
36674
  return document.body;
36636
36675
  }
36637
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36676
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36638
36677
  disabled: disabled,
36639
36678
  treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
36640
36679
  businessType: "settle-organization",
@@ -36647,7 +36686,7 @@ function RenderCompItem(props) {
36647
36686
  getPopupContainer: function getPopupContainer() {
36648
36687
  return document.body;
36649
36688
  }
36650
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36689
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36651
36690
  selectBusinessType: "deliveryMode",
36652
36691
  selectProps: _objectSpread2({
36653
36692
  style: styleCommon,
@@ -36668,7 +36707,7 @@ function RenderCompItem(props) {
36668
36707
  getPopupContainer: function getPopupContainer() {
36669
36708
  return document.body;
36670
36709
  }
36671
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36710
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36672
36711
  selectBusinessType: "role",
36673
36712
  selectProps: _objectSpread2({
36674
36713
  style: styleCommon,
@@ -36689,7 +36728,7 @@ function RenderCompItem(props) {
36689
36728
  getPopupContainer: function getPopupContainer() {
36690
36729
  return document.body;
36691
36730
  }
36692
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36731
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36693
36732
  selectBusinessType: "brand",
36694
36733
  selectProps: _objectSpread2({
36695
36734
  style: styleCommon,
@@ -36710,7 +36749,7 @@ function RenderCompItem(props) {
36710
36749
  getPopupContainer: function getPopupContainer() {
36711
36750
  return document.body;
36712
36751
  }
36713
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36752
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
36714
36753
  disabled: disabled,
36715
36754
  treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
36716
36755
  businessType: "background-category",
@@ -36723,7 +36762,7 @@ function RenderCompItem(props) {
36723
36762
  getPopupContainer: function getPopupContainer() {
36724
36763
  return document.body;
36725
36764
  }
36726
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React$1.createElement(CustomSelector, {
36765
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && ( /*#__PURE__*/React$1.createElement(CustomSelector, {
36727
36766
  selectProps: _objectSpread2(_objectSpread2({
36728
36767
  style: styleCommon,
36729
36768
  placeholder: '请选择'
@@ -36746,7 +36785,7 @@ function RenderCompItem(props) {
36746
36785
  onChange: function onChange(value) {
36747
36786
  handleEdit(ites.code, value);
36748
36787
  }
36749
- })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
36788
+ })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
36750
36789
  style: {
36751
36790
  display: 'flex'
36752
36791
  }
@@ -37259,7 +37298,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
37259
37298
  queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
37260
37299
  queryIdentifyType = 'dynamicDictCodeIdentify';
37261
37300
  }
37262
- var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
37301
+ var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
37263
37302
  var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
37264
37303
  var _i$key;
37265
37304
  return ((i === null || i === void 0 ? void 0 : (_i$key = i.key) === null || _i$key === void 0 ? void 0 : _i$key.indexOf('.')) > -1 ? i.id : i.key) === (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId);
@@ -38228,13 +38267,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
38228
38267
  var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
38229
38268
  // 处理对象-设置了必填-规则实例保存时数据必填校验
38230
38269
  if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
38231
- var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
38270
+ var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
38232
38271
  var requiredList = list.filter(function (c) {
38233
38272
  return c.required == 1;
38234
38273
  }) || []; // 获取对象属性为true的集合
38235
38274
  (requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
38236
38275
  var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
38237
- var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ? _coverToParallel(s === null || s === void 0 ? void 0 : (_s$expression2 = s.expression) === null || _s$expression2 === void 0 ? void 0 : _s$expression2.subExpression, [], 'subExpression') : (s === null || s === void 0 ? void 0 : s.expression) && [s === null || s === void 0 ? void 0 : s.expression];
38276
+ var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ? coverToParallel(s === null || s === void 0 ? void 0 : (_s$expression2 = s.expression) === null || _s$expression2 === void 0 ? void 0 : _s$expression2.subExpression, [], 'subExpression') : (s === null || s === void 0 ? void 0 : s.expression) && [s === null || s === void 0 ? void 0 : s.expression];
38238
38277
  (coverExpressionTree === null || coverExpressionTree === void 0 ? void 0 : coverExpressionTree.length) && (coverExpressionTree === null || coverExpressionTree === void 0 ? void 0 : (_coverExpressionTree$ = coverExpressionTree.forEach) === null || _coverExpressionTree$ === void 0 ? void 0 : _coverExpressionTree$.call(coverExpressionTree, function (e) {
38239
38278
  if (requiredList.some(function (r) {
38240
38279
  return r.id === e.elementId;
@@ -38823,7 +38862,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
38823
38862
  style: {
38824
38863
  float: 'right'
38825
38864
  }
38826
- })), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
38865
+ })), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
38827
38866
  onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
38828
38867
  ruleGroupInfo: {
38829
38868
  ruleGroupList: ruleGroupList,
@@ -38841,7 +38880,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
38841
38880
  callBack: function callBack(newData) {
38842
38881
  upDateData(newData);
38843
38882
  }
38844
- }))) : (/*#__PURE__*/React$1.createElement("div", {
38883
+ }))) : ( /*#__PURE__*/React$1.createElement("div", {
38845
38884
  style: {
38846
38885
  padding: 20
38847
38886
  }
@@ -39216,4 +39255,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
39216
39255
  }, children));
39217
39256
  };
39218
39257
 
39219
- export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
39258
+ export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };