@bit-sun/business-component 4.0.13-alpha.3 → 4.0.13-alpha.4
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/Untitled-1 +0 -0
- package/dist/components/Functional/SearchSelect/utils.d.ts +1 -0
- package/dist/index.esm.js +513 -488
- package/dist/index.js +514 -489
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +5 -0
- package/src/components/Business/SearchSelect/index.md +1 -1
- package/src/components/Functional/QueryMutipleSelect/index.tsx +1 -1
- package/src/components/Functional/SearchSelect/index.tsx +8 -35
- package/src/components/Functional/SearchSelect/utils.tsx +33 -1
package/dist/index.esm.js
CHANGED
|
@@ -31,9 +31,88 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
31
31
|
import { visit } from 'ast-types';
|
|
32
32
|
import isArray$1 from 'lodash/isArray';
|
|
33
33
|
|
|
34
|
+
function _arrayLikeToArray(r, a) {
|
|
35
|
+
(null == a || a > r.length) && (a = r.length);
|
|
36
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
37
|
+
return n;
|
|
38
|
+
}
|
|
39
|
+
function _arrayWithHoles(r) {
|
|
40
|
+
if (Array.isArray(r)) return r;
|
|
41
|
+
}
|
|
42
|
+
function _arrayWithoutHoles(r) {
|
|
43
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
44
|
+
}
|
|
45
|
+
function _assertThisInitialized(e) {
|
|
46
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
47
|
+
return e;
|
|
48
|
+
}
|
|
49
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
50
|
+
try {
|
|
51
|
+
var i = n[a](c),
|
|
52
|
+
u = i.value;
|
|
53
|
+
} catch (n) {
|
|
54
|
+
return void e(n);
|
|
55
|
+
}
|
|
56
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
57
|
+
}
|
|
58
|
+
function _asyncToGenerator(n) {
|
|
59
|
+
return function () {
|
|
60
|
+
var t = this,
|
|
61
|
+
e = arguments;
|
|
62
|
+
return new Promise(function (r, o) {
|
|
63
|
+
var a = n.apply(t, e);
|
|
64
|
+
function _next(n) {
|
|
65
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
66
|
+
}
|
|
67
|
+
function _throw(n) {
|
|
68
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
69
|
+
}
|
|
70
|
+
_next(void 0);
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
}
|
|
34
74
|
function _callSuper(t, o, e) {
|
|
35
75
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
36
76
|
}
|
|
77
|
+
function _classCallCheck(a, n) {
|
|
78
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
79
|
+
}
|
|
80
|
+
function _defineProperties(e, r) {
|
|
81
|
+
for (var t = 0; t < r.length; t++) {
|
|
82
|
+
var o = r[t];
|
|
83
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function _createClass(e, r, t) {
|
|
87
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
88
|
+
writable: !1
|
|
89
|
+
}), e;
|
|
90
|
+
}
|
|
91
|
+
function _defineProperty(e, r, t) {
|
|
92
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
93
|
+
value: t,
|
|
94
|
+
enumerable: !0,
|
|
95
|
+
configurable: !0,
|
|
96
|
+
writable: !0
|
|
97
|
+
}) : e[r] = t, e;
|
|
98
|
+
}
|
|
99
|
+
function _getPrototypeOf(t) {
|
|
100
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
101
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
102
|
+
}, _getPrototypeOf(t);
|
|
103
|
+
}
|
|
104
|
+
function _inherits(t, e) {
|
|
105
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
106
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
107
|
+
constructor: {
|
|
108
|
+
value: t,
|
|
109
|
+
writable: !0,
|
|
110
|
+
configurable: !0
|
|
111
|
+
}
|
|
112
|
+
}), Object.defineProperty(t, "prototype", {
|
|
113
|
+
writable: !1
|
|
114
|
+
}), e && _setPrototypeOf(t, e);
|
|
115
|
+
}
|
|
37
116
|
function _isNativeReflectConstruct() {
|
|
38
117
|
try {
|
|
39
118
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -42,6 +121,9 @@ function _isNativeReflectConstruct() {
|
|
|
42
121
|
return !!t;
|
|
43
122
|
})();
|
|
44
123
|
}
|
|
124
|
+
function _iterableToArray(r) {
|
|
125
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
126
|
+
}
|
|
45
127
|
function _iterableToArrayLimit(r, l) {
|
|
46
128
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
47
129
|
if (null != t) {
|
|
@@ -69,6 +151,15 @@ function _iterableToArrayLimit(r, l) {
|
|
|
69
151
|
return a;
|
|
70
152
|
}
|
|
71
153
|
}
|
|
154
|
+
function _nonIterableRest() {
|
|
155
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
156
|
+
}
|
|
157
|
+
function _nonIterableSpread() {
|
|
158
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
159
|
+
}
|
|
160
|
+
function _objectDestructuringEmpty(t) {
|
|
161
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
162
|
+
}
|
|
72
163
|
function ownKeys(e, r) {
|
|
73
164
|
var t = Object.keys(e);
|
|
74
165
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -90,6 +181,31 @@ function _objectSpread2(e) {
|
|
|
90
181
|
}
|
|
91
182
|
return e;
|
|
92
183
|
}
|
|
184
|
+
function _objectWithoutProperties(e, t) {
|
|
185
|
+
if (null == e) return {};
|
|
186
|
+
var o,
|
|
187
|
+
r,
|
|
188
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
189
|
+
if (Object.getOwnPropertySymbols) {
|
|
190
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
191
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
192
|
+
}
|
|
193
|
+
return i;
|
|
194
|
+
}
|
|
195
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
196
|
+
if (null == r) return {};
|
|
197
|
+
var t = {};
|
|
198
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
199
|
+
if (e.includes(n)) continue;
|
|
200
|
+
t[n] = r[n];
|
|
201
|
+
}
|
|
202
|
+
return t;
|
|
203
|
+
}
|
|
204
|
+
function _possibleConstructorReturn(t, e) {
|
|
205
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
206
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
207
|
+
return _assertThisInitialized(t);
|
|
208
|
+
}
|
|
93
209
|
function _regeneratorRuntime() {
|
|
94
210
|
_regeneratorRuntime = function () {
|
|
95
211
|
return e;
|
|
@@ -391,6 +507,20 @@ function _regeneratorRuntime() {
|
|
|
391
507
|
}
|
|
392
508
|
}, e;
|
|
393
509
|
}
|
|
510
|
+
function _setPrototypeOf(t, e) {
|
|
511
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
512
|
+
return t.__proto__ = e, t;
|
|
513
|
+
}, _setPrototypeOf(t, e);
|
|
514
|
+
}
|
|
515
|
+
function _slicedToArray(r, e) {
|
|
516
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
517
|
+
}
|
|
518
|
+
function _toArray(r) {
|
|
519
|
+
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
520
|
+
}
|
|
521
|
+
function _toConsumableArray(r) {
|
|
522
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
523
|
+
}
|
|
394
524
|
function _toPrimitive(t, r) {
|
|
395
525
|
if ("object" != typeof t || !t) return t;
|
|
396
526
|
var e = t[Symbol.toPrimitive];
|
|
@@ -414,180 +544,12 @@ function _typeof(o) {
|
|
|
414
544
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
415
545
|
}, _typeof(o);
|
|
416
546
|
}
|
|
417
|
-
function
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
var
|
|
421
|
-
|
|
422
|
-
reject(error);
|
|
423
|
-
return;
|
|
424
|
-
}
|
|
425
|
-
if (info.done) {
|
|
426
|
-
resolve(value);
|
|
427
|
-
} else {
|
|
428
|
-
Promise.resolve(value).then(_next, _throw);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
function _asyncToGenerator(fn) {
|
|
432
|
-
return function () {
|
|
433
|
-
var self = this,
|
|
434
|
-
args = arguments;
|
|
435
|
-
return new Promise(function (resolve, reject) {
|
|
436
|
-
var gen = fn.apply(self, args);
|
|
437
|
-
function _next(value) {
|
|
438
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
439
|
-
}
|
|
440
|
-
function _throw(err) {
|
|
441
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
442
|
-
}
|
|
443
|
-
_next(undefined);
|
|
444
|
-
});
|
|
445
|
-
};
|
|
446
|
-
}
|
|
447
|
-
function _classCallCheck(instance, Constructor) {
|
|
448
|
-
if (!(instance instanceof Constructor)) {
|
|
449
|
-
throw new TypeError("Cannot call a class as a function");
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
function _defineProperties(target, props) {
|
|
453
|
-
for (var i = 0; i < props.length; i++) {
|
|
454
|
-
var descriptor = props[i];
|
|
455
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
456
|
-
descriptor.configurable = true;
|
|
457
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
458
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
462
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
463
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
464
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
465
|
-
writable: false
|
|
466
|
-
});
|
|
467
|
-
return Constructor;
|
|
468
|
-
}
|
|
469
|
-
function _defineProperty(obj, key, value) {
|
|
470
|
-
key = _toPropertyKey(key);
|
|
471
|
-
if (key in obj) {
|
|
472
|
-
Object.defineProperty(obj, key, {
|
|
473
|
-
value: value,
|
|
474
|
-
enumerable: true,
|
|
475
|
-
configurable: true,
|
|
476
|
-
writable: true
|
|
477
|
-
});
|
|
478
|
-
} else {
|
|
479
|
-
obj[key] = value;
|
|
480
|
-
}
|
|
481
|
-
return obj;
|
|
482
|
-
}
|
|
483
|
-
function _inherits(subClass, superClass) {
|
|
484
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
485
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
486
|
-
}
|
|
487
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
488
|
-
constructor: {
|
|
489
|
-
value: subClass,
|
|
490
|
-
writable: true,
|
|
491
|
-
configurable: true
|
|
492
|
-
}
|
|
493
|
-
});
|
|
494
|
-
Object.defineProperty(subClass, "prototype", {
|
|
495
|
-
writable: false
|
|
496
|
-
});
|
|
497
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
498
|
-
}
|
|
499
|
-
function _getPrototypeOf(o) {
|
|
500
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
501
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
502
|
-
};
|
|
503
|
-
return _getPrototypeOf(o);
|
|
504
|
-
}
|
|
505
|
-
function _setPrototypeOf(o, p) {
|
|
506
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
507
|
-
o.__proto__ = p;
|
|
508
|
-
return o;
|
|
509
|
-
};
|
|
510
|
-
return _setPrototypeOf(o, p);
|
|
511
|
-
}
|
|
512
|
-
function _objectDestructuringEmpty(obj) {
|
|
513
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
514
|
-
}
|
|
515
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
516
|
-
if (source == null) return {};
|
|
517
|
-
var target = {};
|
|
518
|
-
for (var key in source) {
|
|
519
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
520
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
521
|
-
target[key] = source[key];
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
return target;
|
|
525
|
-
}
|
|
526
|
-
function _objectWithoutProperties(source, excluded) {
|
|
527
|
-
if (source == null) return {};
|
|
528
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
529
|
-
var key, i;
|
|
530
|
-
if (Object.getOwnPropertySymbols) {
|
|
531
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
532
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
533
|
-
key = sourceSymbolKeys[i];
|
|
534
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
535
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
536
|
-
target[key] = source[key];
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
return target;
|
|
540
|
-
}
|
|
541
|
-
function _assertThisInitialized(self) {
|
|
542
|
-
if (self === void 0) {
|
|
543
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
547
|
+
function _unsupportedIterableToArray(r, a) {
|
|
548
|
+
if (r) {
|
|
549
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
550
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
551
|
+
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;
|
|
544
552
|
}
|
|
545
|
-
return self;
|
|
546
|
-
}
|
|
547
|
-
function _possibleConstructorReturn(self, call) {
|
|
548
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
549
|
-
return call;
|
|
550
|
-
} else if (call !== void 0) {
|
|
551
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
552
|
-
}
|
|
553
|
-
return _assertThisInitialized(self);
|
|
554
|
-
}
|
|
555
|
-
function _slicedToArray(arr, i) {
|
|
556
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
557
|
-
}
|
|
558
|
-
function _toArray(arr) {
|
|
559
|
-
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
560
|
-
}
|
|
561
|
-
function _toConsumableArray(arr) {
|
|
562
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
563
|
-
}
|
|
564
|
-
function _arrayWithoutHoles(arr) {
|
|
565
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
566
|
-
}
|
|
567
|
-
function _arrayWithHoles(arr) {
|
|
568
|
-
if (Array.isArray(arr)) return arr;
|
|
569
|
-
}
|
|
570
|
-
function _iterableToArray(iter) {
|
|
571
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
572
|
-
}
|
|
573
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
574
|
-
if (!o) return;
|
|
575
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
576
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
577
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
578
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
579
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
580
|
-
}
|
|
581
|
-
function _arrayLikeToArray(arr, len) {
|
|
582
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
583
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
584
|
-
return arr2;
|
|
585
|
-
}
|
|
586
|
-
function _nonIterableSpread() {
|
|
587
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
588
|
-
}
|
|
589
|
-
function _nonIterableRest() {
|
|
590
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
591
553
|
}
|
|
592
554
|
|
|
593
555
|
var ENUM = {
|
|
@@ -1097,13 +1059,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1097
1059
|
imgHtml.innerHTML = str;
|
|
1098
1060
|
}
|
|
1099
1061
|
// 测试使用 测试类型缩小 end
|
|
1100
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1062
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1101
1063
|
className: "clomnsImg"
|
|
1102
1064
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1103
1065
|
src: url,
|
|
1104
1066
|
width: "16px",
|
|
1105
1067
|
height: "16px"
|
|
1106
|
-
}, paramsObj)))) : (
|
|
1068
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1107
1069
|
className: "clomnsImg2"
|
|
1108
1070
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1109
1071
|
src: noImg
|
|
@@ -1239,7 +1201,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1239
1201
|
}
|
|
1240
1202
|
save_link.click();
|
|
1241
1203
|
}
|
|
1242
|
-
var
|
|
1204
|
+
var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
1243
1205
|
return data.map(function (item) {
|
|
1244
1206
|
if (!item.name || !item.path) {
|
|
1245
1207
|
return null;
|
|
@@ -1259,7 +1221,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1259
1221
|
authority: item.authority || parentAuthority
|
|
1260
1222
|
});
|
|
1261
1223
|
if (item.routes) {
|
|
1262
|
-
var children =
|
|
1224
|
+
var children = _formatter(item.routes, item.authority, locale);
|
|
1263
1225
|
// Reduce memory usage
|
|
1264
1226
|
result.children = children;
|
|
1265
1227
|
}
|
|
@@ -1269,7 +1231,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1269
1231
|
return item;
|
|
1270
1232
|
});
|
|
1271
1233
|
};
|
|
1272
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1234
|
+
var memoizeOneFormatter = memoizeOne(_formatter, isEqual);
|
|
1273
1235
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1274
1236
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1275
1237
|
if (backHistoryPath) {
|
|
@@ -1578,7 +1540,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1578
1540
|
// sheepMap是表头字段中英文映射
|
|
1579
1541
|
// sheetCount:表的数量,默认一张
|
|
1580
1542
|
var resolveFile = /*#__PURE__*/function () {
|
|
1581
|
-
var _ref3 = _asyncToGenerator(
|
|
1543
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1582
1544
|
var config,
|
|
1583
1545
|
data,
|
|
1584
1546
|
_args = arguments;
|
|
@@ -1617,7 +1579,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1617
1579
|
}();
|
|
1618
1580
|
//读取文件
|
|
1619
1581
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1620
|
-
var _ref4 = _asyncToGenerator(
|
|
1582
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1621
1583
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1622
1584
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1623
1585
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1710,14 +1672,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1710
1672
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1711
1673
|
|
|
1712
1674
|
// 获取树平行结构
|
|
1713
|
-
var
|
|
1675
|
+
var _coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1714
1676
|
var childrenKey = chilKey || 'children';
|
|
1715
1677
|
treeData.forEach(function (el) {
|
|
1716
1678
|
var _el$childrenKey;
|
|
1717
1679
|
result.push(el);
|
|
1718
1680
|
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) {
|
|
1719
1681
|
// 子级递归
|
|
1720
|
-
|
|
1682
|
+
_coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1721
1683
|
}
|
|
1722
1684
|
});
|
|
1723
1685
|
return result;
|
|
@@ -1994,13 +1956,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1994
1956
|
imgHtml.innerHTML = str;
|
|
1995
1957
|
}
|
|
1996
1958
|
// 测试使用 测试类型缩小 end
|
|
1997
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1959
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1998
1960
|
className: "clomnsImg"
|
|
1999
1961
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
2000
1962
|
src: url,
|
|
2001
1963
|
width: "16px",
|
|
2002
1964
|
height: "16px"
|
|
2003
|
-
}, paramsObj)))) : (
|
|
1965
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2004
1966
|
src: noImg
|
|
2005
1967
|
}))));
|
|
2006
1968
|
};
|
|
@@ -2062,7 +2024,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2062
2024
|
}
|
|
2063
2025
|
});
|
|
2064
2026
|
};
|
|
2065
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (
|
|
2027
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2066
2028
|
disabled: disabled,
|
|
2067
2029
|
onChange: function onChange(e) {
|
|
2068
2030
|
var v = e.target.value;
|
|
@@ -2072,7 +2034,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2072
2034
|
width: 170
|
|
2073
2035
|
},
|
|
2074
2036
|
value: inputValue
|
|
2075
|
-
}, inpProps))), type === 'number' && (
|
|
2037
|
+
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2076
2038
|
disabled: disabled,
|
|
2077
2039
|
onBlur: function onBlur(e) {
|
|
2078
2040
|
var v = parseFloat(e.target.value);
|
|
@@ -2451,16 +2413,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2451
2413
|
var handleExportBarCode = handleExport;
|
|
2452
2414
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2453
2415
|
var routerMap = {};
|
|
2454
|
-
var
|
|
2416
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
2455
2417
|
data.forEach(function (menuItem) {
|
|
2456
2418
|
if (menuItem.children) {
|
|
2457
|
-
|
|
2419
|
+
_flattenMenuData(menuItem.children);
|
|
2458
2420
|
}
|
|
2459
2421
|
// Reduce memory usage
|
|
2460
2422
|
routerMap[menuItem.path] = menuItem;
|
|
2461
2423
|
});
|
|
2462
2424
|
};
|
|
2463
|
-
|
|
2425
|
+
_flattenMenuData(menuData);
|
|
2464
2426
|
return routerMap;
|
|
2465
2427
|
};
|
|
2466
2428
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2603,7 +2565,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2603
2565
|
return request$1(url, parms).then(handleResponseData);
|
|
2604
2566
|
};
|
|
2605
2567
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2606
|
-
var _ref2 = _asyncToGenerator(
|
|
2568
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2607
2569
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2608
2570
|
while (1) switch (_context.prev = _context.next) {
|
|
2609
2571
|
case 0:
|
|
@@ -3281,7 +3243,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3281
3243
|
style: {
|
|
3282
3244
|
color: 'red'
|
|
3283
3245
|
}
|
|
3284
|
-
}, "\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 && (
|
|
3246
|
+
}, "\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, {
|
|
3285
3247
|
trigger: ['click'],
|
|
3286
3248
|
overlay: this.menuList,
|
|
3287
3249
|
placement: "bottomRight"
|
|
@@ -3956,7 +3918,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3956
3918
|
placement: "bottomLeft"
|
|
3957
3919
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3958
3920
|
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"))
|
|
3959
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3921
|
+
}, /*#__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, {
|
|
3960
3922
|
trigger: ['click'],
|
|
3961
3923
|
overlay: this.menuList,
|
|
3962
3924
|
placement: "bottomRight"
|
|
@@ -4475,7 +4437,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4475
4437
|
destroyTooltipOnHide: true,
|
|
4476
4438
|
placement: "topRight",
|
|
4477
4439
|
autoAdjustOverflow: false,
|
|
4478
|
-
title: (
|
|
4440
|
+
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4479
4441
|
style: {
|
|
4480
4442
|
margin: '6px 8px 0px'
|
|
4481
4443
|
},
|
|
@@ -4502,6 +4464,66 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4502
4464
|
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
4503
4465
|
};
|
|
4504
4466
|
// ------------------------------------------ 数据源展示 相关处理--结束----------------------------------------
|
|
4467
|
+
// ------------------------------------------ 选中数据展示 相关处理--开始----------------------------------------
|
|
4468
|
+
var getShowLabelTextStr = function getShowLabelTextStr(_ref4) {
|
|
4469
|
+
var kongValue = _ref4.kongValue,
|
|
4470
|
+
selectMode = _ref4.selectMode,
|
|
4471
|
+
value = _ref4.value,
|
|
4472
|
+
items = _ref4.items;
|
|
4473
|
+
if (selectMode) {
|
|
4474
|
+
var _value$map;
|
|
4475
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
4476
|
+
return item.label || item.text || '';
|
|
4477
|
+
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
4478
|
+
}
|
|
4479
|
+
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
4480
|
+
};
|
|
4481
|
+
var getSelectValueText = function getSelectValueText(v, items) {
|
|
4482
|
+
var _filter, _filter$;
|
|
4483
|
+
return ((_filter = (items || []).filter(function (item) {
|
|
4484
|
+
return item.value === v;
|
|
4485
|
+
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
4486
|
+
};
|
|
4487
|
+
var getShowValueStr = function getShowValueStr(_ref5) {
|
|
4488
|
+
var kongValue = _ref5.kongValue,
|
|
4489
|
+
selectMode = _ref5.selectMode,
|
|
4490
|
+
value = _ref5.value,
|
|
4491
|
+
items = _ref5.items;
|
|
4492
|
+
if (selectMode) {
|
|
4493
|
+
var _value$map2;
|
|
4494
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
4495
|
+
return getSelectValueText(item, items);
|
|
4496
|
+
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
4497
|
+
}
|
|
4498
|
+
return getSelectValueText(value, items) || kongValue;
|
|
4499
|
+
};
|
|
4500
|
+
var getShowStr = function getShowStr(_ref6) {
|
|
4501
|
+
var viewShowValueStr = _ref6.viewShowValueStr,
|
|
4502
|
+
labelInValue = _ref6.labelInValue,
|
|
4503
|
+
selectMode = _ref6.selectMode,
|
|
4504
|
+
value = _ref6.value,
|
|
4505
|
+
items = _ref6.items;
|
|
4506
|
+
// 优先使用业务使用传入的展示
|
|
4507
|
+
if (viewShowValueStr) return viewShowValueStr;
|
|
4508
|
+
var kongValue = '无';
|
|
4509
|
+
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
4510
|
+
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
4511
|
+
if (labelInValue) {
|
|
4512
|
+
return getShowLabelTextStr({
|
|
4513
|
+
kongValue: kongValue,
|
|
4514
|
+
selectMode: selectMode,
|
|
4515
|
+
value: value,
|
|
4516
|
+
items: items
|
|
4517
|
+
});
|
|
4518
|
+
}
|
|
4519
|
+
return getShowValueStr({
|
|
4520
|
+
kongValue: kongValue,
|
|
4521
|
+
selectMode: selectMode,
|
|
4522
|
+
value: value,
|
|
4523
|
+
items: items
|
|
4524
|
+
});
|
|
4525
|
+
};
|
|
4526
|
+
// ------------------------------------------ 选中数据展示 相关处理--结束---------------------------------------
|
|
4505
4527
|
|
|
4506
4528
|
var getValue = function getValue(value, selectMode) {
|
|
4507
4529
|
var _value$split;
|
|
@@ -4706,14 +4728,14 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4706
4728
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4707
4729
|
});
|
|
4708
4730
|
},
|
|
4709
|
-
notFoundContent: fetching ? (
|
|
4731
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4710
4732
|
size: "small",
|
|
4711
4733
|
className: 'searchSelectSpin'
|
|
4712
|
-
})) : (
|
|
4734
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4713
4735
|
style: {
|
|
4714
4736
|
textAlign: 'center'
|
|
4715
4737
|
}
|
|
4716
|
-
}, /*#__PURE__*/React$1.createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : "\u8BF7\u5F55\u5165\
|
|
4738
|
+
}, /*#__PURE__*/React$1.createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : (selectProps === null || selectProps === void 0 ? void 0 : selectProps.notFoundText) || "\u8BF7\u5F55\u5165\u7F16\u7801/\u540D\u79F0\u6A21\u7CCA\u67E5\u8BE2"))),
|
|
4717
4739
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
4718
4740
|
return triggerNode.parentElement;
|
|
4719
4741
|
}
|
|
@@ -4941,7 +4963,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4941
4963
|
title: item.name,
|
|
4942
4964
|
className: "propertyGroup_checkbox_container"
|
|
4943
4965
|
}, item.name));
|
|
4944
|
-
}), !!notCommonUseProperty.length && (
|
|
4966
|
+
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
4945
4967
|
style: {
|
|
4946
4968
|
width: '50px',
|
|
4947
4969
|
cursor: 'pointer',
|
|
@@ -4954,7 +4976,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4954
4976
|
setShowNotCommon(!showNotCommon);
|
|
4955
4977
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4956
4978
|
}
|
|
4957
|
-
}, showNotCommon && (
|
|
4979
|
+
}, 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"))))));
|
|
4958
4980
|
};
|
|
4959
4981
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4960
4982
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5184,7 +5206,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5184
5206
|
propertyData: item,
|
|
5185
5207
|
handleProperyItemChange: handleProperyItemChange
|
|
5186
5208
|
});
|
|
5187
|
-
}))), !!notCommonProperty.length && (
|
|
5209
|
+
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5188
5210
|
style: {
|
|
5189
5211
|
width: '50px',
|
|
5190
5212
|
cursor: 'pointer',
|
|
@@ -5194,7 +5216,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5194
5216
|
onClick: function onClick() {
|
|
5195
5217
|
return setShowNotCommon(!showNotCommon);
|
|
5196
5218
|
}
|
|
5197
|
-
}, showNotCommon && (
|
|
5219
|
+
}, 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"))))))));
|
|
5198
5220
|
};
|
|
5199
5221
|
|
|
5200
5222
|
var Option$1 = Select.Option;
|
|
@@ -5208,7 +5230,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5208
5230
|
modalTableProps = _props$modalTableProp === void 0 ? {} : _props$modalTableProp,
|
|
5209
5231
|
_props$labelInValue = props.labelInValue,
|
|
5210
5232
|
labelInValue = _props$labelInValue === void 0 ? false : _props$labelInValue,
|
|
5211
|
-
|
|
5233
|
+
rCTemp = props.requestConfig,
|
|
5212
5234
|
ctx = props.ctx,
|
|
5213
5235
|
_props$onlyShowStr = props.onlyShowStr,
|
|
5214
5236
|
sourceName = props.sourceName,
|
|
@@ -5220,7 +5242,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5220
5242
|
fieldComponent = props.fieldComponent,
|
|
5221
5243
|
onSaveCallback = props.onSaveCallback,
|
|
5222
5244
|
selectBusinessType = props.selectBusinessType;
|
|
5223
|
-
var _ref =
|
|
5245
|
+
var _ref = rCTemp || {},
|
|
5224
5246
|
url = _ref.url,
|
|
5225
5247
|
_ref$method = _ref.method,
|
|
5226
5248
|
method = _ref$method === void 0 ? 'get' : _ref$method,
|
|
@@ -5247,6 +5269,26 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5247
5269
|
noOperate = _ref.noOperate,
|
|
5248
5270
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
5249
5271
|
searchStartLength = _ref.searchStartLength;
|
|
5272
|
+
var requestConfig = _objectSpread2({
|
|
5273
|
+
url: url,
|
|
5274
|
+
method: method,
|
|
5275
|
+
otherParams: otherParams,
|
|
5276
|
+
isMap: isMap,
|
|
5277
|
+
fixedparameter: fixedparameter,
|
|
5278
|
+
fieldValToParam: fieldValToParam,
|
|
5279
|
+
fixedparamsDisabled: fixedparamsDisabled,
|
|
5280
|
+
mappingTextField: mappingTextField,
|
|
5281
|
+
mappingTextShowKeyField: mappingTextShowKeyField,
|
|
5282
|
+
mappingValueField: mappingValueField,
|
|
5283
|
+
mappingTextShowTextField: mappingTextShowTextField,
|
|
5284
|
+
init: init,
|
|
5285
|
+
extralHeaders: extralHeaders,
|
|
5286
|
+
specialBracket: specialBracket,
|
|
5287
|
+
noNeedSplit: noNeedSplit,
|
|
5288
|
+
noOperate: noOperate,
|
|
5289
|
+
viewShowValueStr: viewShowValueStr,
|
|
5290
|
+
searchStartLength: searchStartLength
|
|
5291
|
+
}, rCTemp);
|
|
5250
5292
|
var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'supplierCode');
|
|
5251
5293
|
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
5252
5294
|
var initVal = value || (selectMode ? [] : null);
|
|
@@ -5281,7 +5323,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5281
5323
|
total: 0,
|
|
5282
5324
|
current: 1
|
|
5283
5325
|
});
|
|
5284
|
-
var disabled = noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5326
|
+
var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5285
5327
|
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
5286
5328
|
var isHaveDValue = function isHaveDValue() {
|
|
5287
5329
|
var formValueList = [];
|
|
@@ -5467,6 +5509,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5467
5509
|
});
|
|
5468
5510
|
// 获取数据源 (type: 1下拉框 2/3弹框 不传值默认为下拉框)
|
|
5469
5511
|
var getData = function getData() {
|
|
5512
|
+
var _method$toLocaleLower;
|
|
5470
5513
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
5471
5514
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
5472
5515
|
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
@@ -5510,7 +5553,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5510
5553
|
queryParams[selectParamsKey] = searchValue;
|
|
5511
5554
|
}
|
|
5512
5555
|
var getRequest;
|
|
5513
|
-
var methodName = method === null || method === void 0 ? void 0 : method.toLocaleLowerCase();
|
|
5556
|
+
var methodName = method === null || method === void 0 ? void 0 : (_method$toLocaleLower = method.toLocaleLowerCase) === null || _method$toLocaleLower === void 0 ? void 0 : _method$toLocaleLower.call(method);
|
|
5514
5557
|
if (['post', 'patch', 'put'].includes(methodName)) {
|
|
5515
5558
|
getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams));
|
|
5516
5559
|
} else {
|
|
@@ -6175,59 +6218,36 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6175
6218
|
}
|
|
6176
6219
|
})));
|
|
6177
6220
|
};
|
|
6178
|
-
var getShowLabelTextStr = function getShowLabelTextStr(kongValue) {
|
|
6179
|
-
if (selectMode) {
|
|
6180
|
-
var _value$map;
|
|
6181
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
6182
|
-
return item.label || item.text || '';
|
|
6183
|
-
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
6184
|
-
}
|
|
6185
|
-
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
6186
|
-
};
|
|
6187
|
-
var getSelectValueText = function getSelectValueText(v) {
|
|
6188
|
-
var _filter, _filter$;
|
|
6189
|
-
return ((_filter = (items || []).filter(function (item) {
|
|
6190
|
-
return item.value === v;
|
|
6191
|
-
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
6192
|
-
};
|
|
6193
|
-
var getShowValueStr = function getShowValueStr(kongValue) {
|
|
6194
|
-
if (selectMode) {
|
|
6195
|
-
var _value$map2;
|
|
6196
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
6197
|
-
return getSelectValueText(item);
|
|
6198
|
-
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
6199
|
-
}
|
|
6200
|
-
return getSelectValueText(value) || kongValue;
|
|
6201
|
-
};
|
|
6202
|
-
var getShowStr = function getShowStr() {
|
|
6203
|
-
// 优先使用业务使用传入的展示
|
|
6204
|
-
if (viewShowValueStr) return viewShowValueStr;
|
|
6205
|
-
var kongValue = '无';
|
|
6206
|
-
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
6207
|
-
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
6208
|
-
if (labelInValue) {
|
|
6209
|
-
return getShowLabelTextStr(kongValue);
|
|
6210
|
-
}
|
|
6211
|
-
return getShowValueStr(kongValue);
|
|
6212
|
-
};
|
|
6213
6221
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6214
6222
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6215
6223
|
className: 'search_select'
|
|
6216
|
-
}, fieldComponent ? (
|
|
6224
|
+
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6217
6225
|
onClick: function onClick() {
|
|
6218
6226
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6219
6227
|
(_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);
|
|
6220
6228
|
showModal();
|
|
6221
6229
|
}
|
|
6222
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
6223
|
-
title: getShowStr(
|
|
6230
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6231
|
+
title: getShowStr({
|
|
6232
|
+
viewShowValueStr: viewShowValueStr,
|
|
6233
|
+
labelInValue: labelInValue,
|
|
6234
|
+
selectMode: selectMode,
|
|
6235
|
+
value: value,
|
|
6236
|
+
items: items
|
|
6237
|
+
}),
|
|
6224
6238
|
style: {
|
|
6225
6239
|
overflow: 'hidden',
|
|
6226
6240
|
textOverflow: 'ellipsis',
|
|
6227
6241
|
whiteSpace: 'nowrap'
|
|
6228
6242
|
},
|
|
6229
6243
|
className: 'search_select_show'
|
|
6230
|
-
}, getShowStr(
|
|
6244
|
+
}, getShowStr({
|
|
6245
|
+
viewShowValueStr: viewShowValueStr,
|
|
6246
|
+
labelInValue: labelInValue,
|
|
6247
|
+
selectMode: selectMode,
|
|
6248
|
+
value: value,
|
|
6249
|
+
items: items
|
|
6250
|
+
}))) : /*#__PURE__*/React$1.createElement("div", {
|
|
6231
6251
|
className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
|
|
6232
6252
|
id: "search_select_div_".concat(uniqueValue)
|
|
6233
6253
|
}, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
@@ -6246,10 +6266,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6246
6266
|
dropdownRender: function dropdownRender(menu) {
|
|
6247
6267
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6248
6268
|
},
|
|
6249
|
-
notFoundContent: fetching ? (
|
|
6269
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6250
6270
|
size: "small",
|
|
6251
6271
|
className: 'searchSelectSpin'
|
|
6252
|
-
})) : (
|
|
6272
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6253
6273
|
style: {
|
|
6254
6274
|
textAlign: 'center'
|
|
6255
6275
|
}
|
|
@@ -6289,7 +6309,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6289
6309
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6290
6310
|
filterTxt: searchValue
|
|
6291
6311
|
}));
|
|
6292
|
-
}))), needModalTable && isModalVisible && (
|
|
6312
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6293
6313
|
maskClosable: false,
|
|
6294
6314
|
destroyOnClose: true,
|
|
6295
6315
|
width: "80%",
|
|
@@ -6886,7 +6906,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6886
6906
|
style: {
|
|
6887
6907
|
width: 525
|
|
6888
6908
|
}
|
|
6889
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
6909
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6890
6910
|
checked: !dataSource.some(function (item) {
|
|
6891
6911
|
if (item.hidden) return true;
|
|
6892
6912
|
return false;
|
|
@@ -6924,13 +6944,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6924
6944
|
_this2.onChange(e, item.title);
|
|
6925
6945
|
}
|
|
6926
6946
|
}, item.title);
|
|
6927
|
-
}), !!seatchDataSource.length && (
|
|
6947
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6928
6948
|
style: {
|
|
6929
6949
|
width: '144px'
|
|
6930
6950
|
}
|
|
6931
|
-
})), !seatchDataSource.length && (
|
|
6951
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6932
6952
|
className: 'sort_table_column_all_empty'
|
|
6933
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
6953
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6934
6954
|
className: 'sort_table_column_special'
|
|
6935
6955
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6936
6956
|
className: 'sort_table_column_all'
|
|
@@ -7119,7 +7139,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7119
7139
|
});
|
|
7120
7140
|
};
|
|
7121
7141
|
// 格式化树选择器数据源
|
|
7122
|
-
var
|
|
7142
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7123
7143
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7124
7144
|
return {
|
|
7125
7145
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7129,7 +7149,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7129
7149
|
isLeaf: !haveChildren,
|
|
7130
7150
|
disabled: haveChildren,
|
|
7131
7151
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7132
|
-
return
|
|
7152
|
+
return _mapSearchTree(i, resKeyValue);
|
|
7133
7153
|
}) : []
|
|
7134
7154
|
};
|
|
7135
7155
|
};
|
|
@@ -7138,7 +7158,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7138
7158
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7139
7159
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7140
7160
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7141
|
-
return
|
|
7161
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
7142
7162
|
}) || [];
|
|
7143
7163
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7144
7164
|
};
|
|
@@ -7309,7 +7329,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7309
7329
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7310
7330
|
// FIXME: 特殊业务逻辑
|
|
7311
7331
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7312
|
-
var _ref2 = _asyncToGenerator(
|
|
7332
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7313
7333
|
var result;
|
|
7314
7334
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7315
7335
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7562,7 +7582,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7562
7582
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7563
7583
|
value: text || null,
|
|
7564
7584
|
onChange: function () {
|
|
7565
|
-
var _onChange = _asyncToGenerator(
|
|
7585
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7566
7586
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7567
7587
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7568
7588
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8170,10 +8190,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8170
8190
|
var newColumns = arr.map(function (col) {
|
|
8171
8191
|
return _objectSpread2({}, col);
|
|
8172
8192
|
});
|
|
8173
|
-
var
|
|
8193
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8174
8194
|
var i = indexArr.shift();
|
|
8175
8195
|
if (indexArr.length > 0) {
|
|
8176
|
-
|
|
8196
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8177
8197
|
} else {
|
|
8178
8198
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8179
8199
|
width: size.width
|
|
@@ -8181,7 +8201,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8181
8201
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8182
8202
|
}
|
|
8183
8203
|
};
|
|
8184
|
-
|
|
8204
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8185
8205
|
callback(newColumns);
|
|
8186
8206
|
};
|
|
8187
8207
|
};
|
|
@@ -8191,13 +8211,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8191
8211
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8192
8212
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8193
8213
|
};
|
|
8194
|
-
var
|
|
8214
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8195
8215
|
arr.forEach(function (item, index) {
|
|
8196
8216
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8197
8217
|
return i || i === 0;
|
|
8198
8218
|
});
|
|
8199
8219
|
if (noEmptyArray$1(item.children)) {
|
|
8200
|
-
|
|
8220
|
+
_handleColumns(item.children, indexArrInside);
|
|
8201
8221
|
} else {
|
|
8202
8222
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8203
8223
|
item.onHeaderCell = function (column) {
|
|
@@ -8213,14 +8233,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8213
8233
|
handleAntdColumnsSpecialParams(item);
|
|
8214
8234
|
return _objectSpread2({}, item);
|
|
8215
8235
|
});
|
|
8216
|
-
|
|
8236
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
8217
8237
|
return setShowToChooseColumnsCallback(res);
|
|
8218
8238
|
});
|
|
8219
8239
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8220
8240
|
handleAntdColumnsSpecialParams(item);
|
|
8221
8241
|
return _objectSpread2({}, item);
|
|
8222
8242
|
});
|
|
8223
|
-
|
|
8243
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8224
8244
|
return setShowColumnsCallback(res);
|
|
8225
8245
|
});
|
|
8226
8246
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8231,7 +8251,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8231
8251
|
id: "add_select_div_".concat(uniqueValue)
|
|
8232
8252
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
8233
8253
|
onClick: handleShowModal
|
|
8234
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
8254
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
8235
8255
|
width: '1200px',
|
|
8236
8256
|
style: {
|
|
8237
8257
|
top: 20
|
|
@@ -9145,7 +9165,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9145
9165
|
});
|
|
9146
9166
|
};
|
|
9147
9167
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9148
|
-
var _ref4 = _asyncToGenerator(
|
|
9168
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9149
9169
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9150
9170
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9151
9171
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9228,10 +9248,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9228
9248
|
var newColumns = arr.map(function (col) {
|
|
9229
9249
|
return _objectSpread2({}, col);
|
|
9230
9250
|
});
|
|
9231
|
-
var
|
|
9251
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
9232
9252
|
var i = indexArr.shift();
|
|
9233
9253
|
if (indexArr.length > 0) {
|
|
9234
|
-
|
|
9254
|
+
_handleIndex(arr[i].children, indexArr);
|
|
9235
9255
|
} else {
|
|
9236
9256
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9237
9257
|
width: size.width
|
|
@@ -9239,17 +9259,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9239
9259
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9240
9260
|
}
|
|
9241
9261
|
};
|
|
9242
|
-
|
|
9262
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
9243
9263
|
callback(newColumns);
|
|
9244
9264
|
};
|
|
9245
9265
|
};
|
|
9246
|
-
var
|
|
9266
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9247
9267
|
arr.forEach(function (item, index) {
|
|
9248
9268
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9249
9269
|
return i || i === 0;
|
|
9250
9270
|
});
|
|
9251
9271
|
if (noEmptyArray$1(item.children)) {
|
|
9252
|
-
|
|
9272
|
+
_handleColumns(item.children, indexArrInside);
|
|
9253
9273
|
} else {
|
|
9254
9274
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9255
9275
|
item.onHeaderCell = function (column) {
|
|
@@ -9265,7 +9285,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9265
9285
|
handleAntdColumnsSpecialParams(item);
|
|
9266
9286
|
return _objectSpread2({}, item);
|
|
9267
9287
|
});
|
|
9268
|
-
|
|
9288
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
9269
9289
|
return setShowColumnsCallback(res);
|
|
9270
9290
|
});
|
|
9271
9291
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9580,7 +9600,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9580
9600
|
});
|
|
9581
9601
|
};
|
|
9582
9602
|
// 格式化树选择器数据源
|
|
9583
|
-
var
|
|
9603
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9584
9604
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9585
9605
|
return {
|
|
9586
9606
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9590,7 +9610,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9590
9610
|
isLeaf: !haveChildren,
|
|
9591
9611
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9592
9612
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9593
|
-
return
|
|
9613
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9594
9614
|
}) : []
|
|
9595
9615
|
};
|
|
9596
9616
|
};
|
|
@@ -9604,7 +9624,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9604
9624
|
disabledJudge = false;
|
|
9605
9625
|
}
|
|
9606
9626
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9607
|
-
return
|
|
9627
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9608
9628
|
}) || [];
|
|
9609
9629
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9610
9630
|
};
|
|
@@ -9882,7 +9902,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9882
9902
|
sourceName: 'qp-skuCode-in',
|
|
9883
9903
|
specialBracket: true,
|
|
9884
9904
|
otherParams: {
|
|
9885
|
-
'ownOrgSign': getCurrentTargetBgId()
|
|
9905
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
9906
|
+
'ctl-count': true
|
|
9886
9907
|
} // 默认参数
|
|
9887
9908
|
}
|
|
9888
9909
|
}
|
|
@@ -9905,7 +9926,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9905
9926
|
mappingTextField: 'name',
|
|
9906
9927
|
mappingValueField: 'itemCode',
|
|
9907
9928
|
sourceName: 'qp-itemCode-in',
|
|
9908
|
-
specialBracket: true
|
|
9929
|
+
specialBracket: true,
|
|
9930
|
+
otherParams: {
|
|
9931
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
9932
|
+
'ctl-count': true
|
|
9933
|
+
} // 默认参数
|
|
9909
9934
|
}
|
|
9910
9935
|
}
|
|
9911
9936
|
}
|
|
@@ -13709,7 +13734,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13709
13734
|
};
|
|
13710
13735
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
13711
13736
|
onClick: handleShowModal
|
|
13712
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
13737
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13713
13738
|
onOk: handleOk,
|
|
13714
13739
|
onCancel: handleCancel,
|
|
13715
13740
|
destroyOnClose: true,
|
|
@@ -13828,7 +13853,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13828
13853
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13829
13854
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13830
13855
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13831
|
-
var
|
|
13856
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13832
13857
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13833
13858
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13834
13859
|
return {
|
|
@@ -13840,7 +13865,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13840
13865
|
isLeaf: !haveChildren,
|
|
13841
13866
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13842
13867
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13843
|
-
return
|
|
13868
|
+
return _mapSearchTree(i);
|
|
13844
13869
|
}) : []
|
|
13845
13870
|
};
|
|
13846
13871
|
};
|
|
@@ -13858,8 +13883,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13858
13883
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13859
13884
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
13860
13885
|
headers: headers
|
|
13861
|
-
}).then(
|
|
13862
|
-
var _ref = _asyncToGenerator(
|
|
13886
|
+
}).then(/*#__PURE__*/function () {
|
|
13887
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13863
13888
|
var _ctx$form;
|
|
13864
13889
|
var resData, coverData, data, dataList;
|
|
13865
13890
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13886,7 +13911,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13886
13911
|
case 9:
|
|
13887
13912
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13888
13913
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13889
|
-
return
|
|
13914
|
+
return _mapSearchTree(ites);
|
|
13890
13915
|
}) || [];
|
|
13891
13916
|
case 11:
|
|
13892
13917
|
_context.next = 14;
|
|
@@ -13924,11 +13949,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13924
13949
|
return _formatResult;
|
|
13925
13950
|
}
|
|
13926
13951
|
};
|
|
13927
|
-
var
|
|
13952
|
+
var _parallelData = function parallelData(data, result) {
|
|
13928
13953
|
data.forEach(function (i) {
|
|
13929
13954
|
result.push(i);
|
|
13930
13955
|
if (i[treeChildrenRoom]) {
|
|
13931
|
-
|
|
13956
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
13932
13957
|
}
|
|
13933
13958
|
});
|
|
13934
13959
|
return result;
|
|
@@ -13968,7 +13993,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13968
13993
|
var _ctx$form2;
|
|
13969
13994
|
var handleData = formatData(data);
|
|
13970
13995
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13971
|
-
var parallelTreeData =
|
|
13996
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13972
13997
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13973
13998
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13974
13999
|
onChangeName && onChangeName(dataName);
|
|
@@ -14011,7 +14036,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14011
14036
|
var getShowStr = function getShowStr() {
|
|
14012
14037
|
var isMultiple = multiple || treeCheckable;
|
|
14013
14038
|
var kongValue = '无';
|
|
14014
|
-
var parallelTreeData =
|
|
14039
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
14015
14040
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14016
14041
|
if (isMultiple) {
|
|
14017
14042
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14023,7 +14048,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14023
14048
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14024
14049
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14025
14050
|
className: 'tree_search_select'
|
|
14026
|
-
}, isShouldShowStr ? (
|
|
14051
|
+
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14027
14052
|
title: getShowStr(),
|
|
14028
14053
|
style: {
|
|
14029
14054
|
overflow: 'hidden',
|
|
@@ -14031,7 +14056,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14031
14056
|
whiteSpace: 'nowrap'
|
|
14032
14057
|
},
|
|
14033
14058
|
className: 'search_select_show'
|
|
14034
|
-
}, getShowStr())) : (
|
|
14059
|
+
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14035
14060
|
treeCheckable: treeCheckable,
|
|
14036
14061
|
maxTagCount: maxTagCount,
|
|
14037
14062
|
showSearch: showSearch,
|
|
@@ -14228,7 +14253,7 @@ var index$2 = (function (props) {
|
|
|
14228
14253
|
} : {}
|
|
14229
14254
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
14230
14255
|
className: 'status-label-operate'
|
|
14231
|
-
}, item.isDone ? (
|
|
14256
|
+
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14232
14257
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14233
14258
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
14234
14259
|
style: {
|
|
@@ -15009,7 +15034,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15009
15034
|
style: {
|
|
15010
15035
|
width: 525
|
|
15011
15036
|
}
|
|
15012
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
15037
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15013
15038
|
checked: !dataSource.some(function (item) {
|
|
15014
15039
|
if (item.hidden) return true;
|
|
15015
15040
|
return false;
|
|
@@ -15047,13 +15072,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15047
15072
|
_this2.onChange(e, item.title);
|
|
15048
15073
|
}
|
|
15049
15074
|
}, item.title);
|
|
15050
|
-
}), !!seatchDataSource.length && (
|
|
15075
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15051
15076
|
style: {
|
|
15052
15077
|
width: '144px'
|
|
15053
15078
|
}
|
|
15054
|
-
})), !seatchDataSource.length && (
|
|
15079
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15055
15080
|
className: 'sort_table_column_all_empty'
|
|
15056
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
15081
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15057
15082
|
className: 'sort_table_column_special'
|
|
15058
15083
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15059
15084
|
className: 'sort_table_column_all'
|
|
@@ -15232,10 +15257,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15232
15257
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15233
15258
|
return _objectSpread2({}, col);
|
|
15234
15259
|
});
|
|
15235
|
-
var
|
|
15260
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15236
15261
|
var i = indexArr.shift();
|
|
15237
15262
|
if (indexArr.length > 0) {
|
|
15238
|
-
|
|
15263
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15239
15264
|
} else {
|
|
15240
15265
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15241
15266
|
width: size.width
|
|
@@ -15243,7 +15268,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15243
15268
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15244
15269
|
}
|
|
15245
15270
|
};
|
|
15246
|
-
|
|
15271
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15247
15272
|
_this.setState({
|
|
15248
15273
|
showColumns: _toConsumableArray(newColumns)
|
|
15249
15274
|
});
|
|
@@ -15284,7 +15309,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15284
15309
|
};
|
|
15285
15310
|
setIsResizing(true);
|
|
15286
15311
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15287
|
-
document.addEventListener('mouseup',
|
|
15312
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
15288
15313
|
};
|
|
15289
15314
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15290
15315
|
e.stopPropagation();
|
|
@@ -15300,9 +15325,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15300
15325
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15301
15326
|
}
|
|
15302
15327
|
};
|
|
15303
|
-
var
|
|
15328
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
15304
15329
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15305
|
-
document.removeEventListener('mouseup',
|
|
15330
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
15306
15331
|
setIsResizing(false);
|
|
15307
15332
|
};
|
|
15308
15333
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15423,13 +15448,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15423
15448
|
showSummary = summary;
|
|
15424
15449
|
}
|
|
15425
15450
|
}
|
|
15426
|
-
var
|
|
15451
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15427
15452
|
arr.forEach(function (item, index) {
|
|
15428
15453
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15429
15454
|
return i || i === 0;
|
|
15430
15455
|
});
|
|
15431
15456
|
if (noEmptyArray$1(item.children)) {
|
|
15432
|
-
|
|
15457
|
+
_handleColumns(item.children, indexArrInside);
|
|
15433
15458
|
} else {
|
|
15434
15459
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15435
15460
|
item.onHeaderCell = function (column) {
|
|
@@ -15445,7 +15470,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15445
15470
|
handleBssulaColumnsSpecialParams(item);
|
|
15446
15471
|
return _objectSpread2({}, item);
|
|
15447
15472
|
});
|
|
15448
|
-
|
|
15473
|
+
_handleColumns(showCol, []);
|
|
15449
15474
|
if (dynamicColumns.length) {
|
|
15450
15475
|
showCol = this.handledynamicColumns(showCol);
|
|
15451
15476
|
}
|
|
@@ -15486,7 +15511,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15486
15511
|
cell: this.ResizeableTitle
|
|
15487
15512
|
}
|
|
15488
15513
|
}
|
|
15489
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15514
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15490
15515
|
summary: summary
|
|
15491
15516
|
})));
|
|
15492
15517
|
}
|
|
@@ -15583,10 +15608,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15583
15608
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15584
15609
|
return _objectSpread2({}, col);
|
|
15585
15610
|
});
|
|
15586
|
-
var
|
|
15611
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15587
15612
|
var i = indexArr.shift();
|
|
15588
15613
|
if (indexArr.length > 0) {
|
|
15589
|
-
|
|
15614
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15590
15615
|
} else {
|
|
15591
15616
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15592
15617
|
width: size.width
|
|
@@ -15594,7 +15619,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15594
15619
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15595
15620
|
}
|
|
15596
15621
|
};
|
|
15597
|
-
|
|
15622
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15598
15623
|
_this.setState({
|
|
15599
15624
|
showColumns: _toConsumableArray(newColumns)
|
|
15600
15625
|
});
|
|
@@ -15670,13 +15695,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15670
15695
|
showSummary = summary;
|
|
15671
15696
|
}
|
|
15672
15697
|
}
|
|
15673
|
-
var
|
|
15698
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15674
15699
|
arr.forEach(function (item, index) {
|
|
15675
15700
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15676
15701
|
return i || i === 0;
|
|
15677
15702
|
});
|
|
15678
15703
|
if (noEmptyArray$1(item.children)) {
|
|
15679
|
-
|
|
15704
|
+
_handleColumns(item.children, indexArrInside);
|
|
15680
15705
|
} else {
|
|
15681
15706
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15682
15707
|
item.onHeaderCell = function (column) {
|
|
@@ -15692,7 +15717,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15692
15717
|
handleAntdColumnsSpecialParams(item);
|
|
15693
15718
|
return _objectSpread2({}, item);
|
|
15694
15719
|
});
|
|
15695
|
-
|
|
15720
|
+
_handleColumns(showCol, []);
|
|
15696
15721
|
if (dynamicColumns.length) {
|
|
15697
15722
|
showCol = this.handledynamicColumns(showCol);
|
|
15698
15723
|
}
|
|
@@ -15732,7 +15757,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15732
15757
|
cell: this.ResizeableTitle
|
|
15733
15758
|
}
|
|
15734
15759
|
}
|
|
15735
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15760
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15736
15761
|
summary: summary
|
|
15737
15762
|
})));
|
|
15738
15763
|
}
|
|
@@ -15792,20 +15817,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15792
15817
|
};
|
|
15793
15818
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15794
15819
|
var routerMap = {};
|
|
15795
|
-
var
|
|
15820
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
15796
15821
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15797
15822
|
data.forEach(function (menuItem) {
|
|
15798
15823
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15799
15824
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15800
15825
|
});
|
|
15801
15826
|
if (newMenuItem.children) {
|
|
15802
|
-
|
|
15827
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
15803
15828
|
}
|
|
15804
15829
|
// Reduce memory usage
|
|
15805
15830
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15806
15831
|
});
|
|
15807
15832
|
};
|
|
15808
|
-
|
|
15833
|
+
_flattenMenuData2(menuData, {});
|
|
15809
15834
|
return routerMap;
|
|
15810
15835
|
};
|
|
15811
15836
|
// mode类型判断
|
|
@@ -16131,7 +16156,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16131
16156
|
display: 'flex',
|
|
16132
16157
|
gap: '8px'
|
|
16133
16158
|
}
|
|
16134
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
16159
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16135
16160
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16136
16161
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16137
16162
|
onClick: function onClick() {
|
|
@@ -16139,7 +16164,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16139
16164
|
},
|
|
16140
16165
|
width: 24,
|
|
16141
16166
|
src: scanning
|
|
16142
|
-
}))) : (
|
|
16167
|
+
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16143
16168
|
title: "\u5168\u5C4F"
|
|
16144
16169
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16145
16170
|
onClick: function onClick() {
|
|
@@ -16147,7 +16172,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16147
16172
|
},
|
|
16148
16173
|
width: 24,
|
|
16149
16174
|
src: quanping
|
|
16150
|
-
}))))) : null)), alertProps && (
|
|
16175
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16151
16176
|
}, function (prevProps, nextProps) {
|
|
16152
16177
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16153
16178
|
return false;
|
|
@@ -16232,7 +16257,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16232
16257
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16233
16258
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16234
16259
|
}, item));
|
|
16235
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (
|
|
16260
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16236
16261
|
}, function (prevProps, nextProps) {
|
|
16237
16262
|
if (prevProps.title !== nextProps.title) {
|
|
16238
16263
|
return false;
|
|
@@ -16872,7 +16897,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16872
16897
|
});
|
|
16873
16898
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16874
16899
|
className: 'sort_table_wrapper'
|
|
16875
|
-
}, visible && (
|
|
16900
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16876
16901
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16877
16902
|
wrapClassName: 'sort_table_wrapper',
|
|
16878
16903
|
width: 810,
|
|
@@ -16923,7 +16948,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16923
16948
|
width: 525,
|
|
16924
16949
|
height: 24
|
|
16925
16950
|
}
|
|
16926
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
16951
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16927
16952
|
checked: !dataSource.some(function (item) {
|
|
16928
16953
|
if (item.hidden) return true;
|
|
16929
16954
|
return false;
|
|
@@ -16977,13 +17002,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16977
17002
|
_this2.onChange(e, item.title);
|
|
16978
17003
|
}
|
|
16979
17004
|
}, item.title);
|
|
16980
|
-
}), !!seatchDataSource.length && (
|
|
17005
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16981
17006
|
style: {
|
|
16982
17007
|
width: '144px'
|
|
16983
17008
|
}
|
|
16984
|
-
})), !seatchDataSource.length && (
|
|
17009
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16985
17010
|
className: 'sort_table_column_all_empty'
|
|
16986
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
17011
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16987
17012
|
className: 'sort_table_column_special'
|
|
16988
17013
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
16989
17014
|
className: 'sort_table_column_all'
|
|
@@ -17457,7 +17482,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17457
17482
|
});
|
|
17458
17483
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17459
17484
|
className: 'sort_table_wrapper'
|
|
17460
|
-
}, visible && (
|
|
17485
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17461
17486
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17462
17487
|
wrapClassName: 'sort_table_wrapper',
|
|
17463
17488
|
width: 820,
|
|
@@ -17502,7 +17527,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17502
17527
|
style: {
|
|
17503
17528
|
width: 525
|
|
17504
17529
|
}
|
|
17505
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
17530
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17506
17531
|
checked: !dataSource.some(function (item) {
|
|
17507
17532
|
if (item.hidden) return true;
|
|
17508
17533
|
return false;
|
|
@@ -17538,11 +17563,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17538
17563
|
_this2.onChange(e, item.name);
|
|
17539
17564
|
}
|
|
17540
17565
|
}, item.label);
|
|
17541
|
-
}), !!newSearchSource.length && (
|
|
17566
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17542
17567
|
style: {
|
|
17543
17568
|
width: '144px'
|
|
17544
17569
|
}
|
|
17545
|
-
})), !newSearchSource.length && (
|
|
17570
|
+
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17546
17571
|
className: 'sort_table_column_all_empty'
|
|
17547
17572
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17548
17573
|
className: 'sort_table_content_wrapper'
|
|
@@ -17641,7 +17666,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17641
17666
|
};
|
|
17642
17667
|
setIsResizing(true);
|
|
17643
17668
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17644
|
-
document.addEventListener('mouseup',
|
|
17669
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
17645
17670
|
};
|
|
17646
17671
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17647
17672
|
e.stopPropagation();
|
|
@@ -17657,9 +17682,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17657
17682
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17658
17683
|
}
|
|
17659
17684
|
};
|
|
17660
|
-
var
|
|
17685
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
17661
17686
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17662
|
-
document.removeEventListener('mouseup',
|
|
17687
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
17663
17688
|
setIsResizing(false);
|
|
17664
17689
|
};
|
|
17665
17690
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18070,7 +18095,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18070
18095
|
actionsRender = actionsRender.concat([{
|
|
18071
18096
|
type: 'text',
|
|
18072
18097
|
props: {
|
|
18073
|
-
children: (
|
|
18098
|
+
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18074
18099
|
request: {
|
|
18075
18100
|
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),
|
|
18076
18101
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18316,7 +18341,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18316
18341
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18317
18342
|
bsTableCode: bsTableCode,
|
|
18318
18343
|
onlyModal: true
|
|
18319
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
18344
|
+
}), (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, {
|
|
18320
18345
|
ref: exportTableRef,
|
|
18321
18346
|
setShowColumns: setShowExportColumns,
|
|
18322
18347
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18409,11 +18434,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18409
18434
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18410
18435
|
var resultList = [];
|
|
18411
18436
|
var newRouter = cloneDeep(router);
|
|
18412
|
-
var
|
|
18437
|
+
var _deep = function deep(router) {
|
|
18413
18438
|
if (router && Array.isArray(router)) {
|
|
18414
18439
|
router.forEach(function (item) {
|
|
18415
18440
|
if (item.children && Array.isArray(item.children)) {
|
|
18416
|
-
|
|
18441
|
+
_deep(item.children);
|
|
18417
18442
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18418
18443
|
return d === item.code;
|
|
18419
18444
|
})) {
|
|
@@ -18427,10 +18452,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18427
18452
|
resultList.push(_objectSpread2({}, router));
|
|
18428
18453
|
}
|
|
18429
18454
|
};
|
|
18430
|
-
|
|
18455
|
+
_deep(newRouter);
|
|
18431
18456
|
callBack([].concat(resultList));
|
|
18432
18457
|
};
|
|
18433
|
-
var
|
|
18458
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18434
18459
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18435
18460
|
var _loop = function _loop(i) {
|
|
18436
18461
|
if (routesData[i].hideInMenu) {
|
|
@@ -18444,7 +18469,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18444
18469
|
return 0; // continue
|
|
18445
18470
|
}
|
|
18446
18471
|
if (routesData[i].children) {
|
|
18447
|
-
|
|
18472
|
+
_setMenuTreeData(routesData[i].children);
|
|
18448
18473
|
}
|
|
18449
18474
|
},
|
|
18450
18475
|
_ret;
|
|
@@ -18465,16 +18490,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18465
18490
|
};
|
|
18466
18491
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18467
18492
|
var routerMap = {};
|
|
18468
|
-
var
|
|
18493
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
18469
18494
|
data.forEach(function (menuItem) {
|
|
18470
18495
|
if (menuItem.children) {
|
|
18471
|
-
|
|
18496
|
+
_flattenMenuData(menuItem.children);
|
|
18472
18497
|
}
|
|
18473
18498
|
// Reduce memory usage
|
|
18474
18499
|
routerMap[menuItem.path] = menuItem;
|
|
18475
18500
|
});
|
|
18476
18501
|
};
|
|
18477
|
-
|
|
18502
|
+
_flattenMenuData(menuData);
|
|
18478
18503
|
return routerMap;
|
|
18479
18504
|
};
|
|
18480
18505
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18620,7 +18645,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18620
18645
|
sethomepageData(homepageDataList);
|
|
18621
18646
|
setroutesData(routesDataList);
|
|
18622
18647
|
}, []);
|
|
18623
|
-
var
|
|
18648
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
18624
18649
|
if (!child.hideInMenu && child.children) {
|
|
18625
18650
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18626
18651
|
style: {
|
|
@@ -18630,7 +18655,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18630
18655
|
}, formatMessage({
|
|
18631
18656
|
id: "".concat(child.locale)
|
|
18632
18657
|
})), child.children.map(function (menuItem) {
|
|
18633
|
-
return
|
|
18658
|
+
return _renderChildItem(menuItem);
|
|
18634
18659
|
}));
|
|
18635
18660
|
} else if (!child.hideInMenu && child.path) {
|
|
18636
18661
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18665,7 +18690,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18665
18690
|
className: 'drawerWarp'
|
|
18666
18691
|
}, homepageData && homepageData.filter(function (d) {
|
|
18667
18692
|
return !d.hideInMenu;
|
|
18668
|
-
}).length > 0 && (
|
|
18693
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
18669
18694
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
18670
18695
|
dataSource: homepageData,
|
|
18671
18696
|
renderItem: function renderItem(child) {
|
|
@@ -18700,7 +18725,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18700
18725
|
bordered: true,
|
|
18701
18726
|
dataSource: item.children,
|
|
18702
18727
|
renderItem: function renderItem(child) {
|
|
18703
|
-
return
|
|
18728
|
+
return _renderChildItem(child);
|
|
18704
18729
|
}
|
|
18705
18730
|
});
|
|
18706
18731
|
})));
|
|
@@ -18760,7 +18785,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18760
18785
|
src: allfunc
|
|
18761
18786
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
18762
18787
|
className: 'btnSpan2'
|
|
18763
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
18788
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18764
18789
|
style: {
|
|
18765
18790
|
left: isDrawer ? 140 : 0,
|
|
18766
18791
|
top: 50
|
|
@@ -18806,7 +18831,7 @@ function outLogin(_x) {
|
|
|
18806
18831
|
return _outLogin.apply(this, arguments);
|
|
18807
18832
|
}
|
|
18808
18833
|
function _outLogin() {
|
|
18809
|
-
_outLogin = _asyncToGenerator(
|
|
18834
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18810
18835
|
var res;
|
|
18811
18836
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18812
18837
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18948,7 +18973,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18948
18973
|
});
|
|
18949
18974
|
};
|
|
18950
18975
|
var loginOut = /*#__PURE__*/function () {
|
|
18951
|
-
var _ref2 = _asyncToGenerator(
|
|
18976
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18952
18977
|
var sessionId;
|
|
18953
18978
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18954
18979
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19052,7 +19077,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19052
19077
|
marginRight: '0px'
|
|
19053
19078
|
},
|
|
19054
19079
|
src: './xialajiantou-new.svg'
|
|
19055
|
-
}))))), loginModalParams.visible && (
|
|
19080
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19056
19081
|
};
|
|
19057
19082
|
|
|
19058
19083
|
// -- 查询店铺 --
|
|
@@ -19060,7 +19085,7 @@ function getStoreByName(_x) {
|
|
|
19060
19085
|
return _getStoreByName.apply(this, arguments);
|
|
19061
19086
|
}
|
|
19062
19087
|
function _getStoreByName() {
|
|
19063
|
-
_getStoreByName = _asyncToGenerator(
|
|
19088
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19064
19089
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19065
19090
|
while (1) switch (_context.prev = _context.next) {
|
|
19066
19091
|
case 0:
|
|
@@ -19128,7 +19153,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19128
19153
|
return _fetchUserList.apply(this, arguments);
|
|
19129
19154
|
}
|
|
19130
19155
|
function _fetchUserList() {
|
|
19131
|
-
_fetchUserList = _asyncToGenerator(
|
|
19156
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19132
19157
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19133
19158
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19134
19159
|
case 0:
|
|
@@ -19176,7 +19201,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19176
19201
|
return debounce$1(loadOptions, debounceTimeout);
|
|
19177
19202
|
}, [debounceTimeout, key]);
|
|
19178
19203
|
var changeInput = /*#__PURE__*/function () {
|
|
19179
|
-
var _ref = _asyncToGenerator(
|
|
19204
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19180
19205
|
var res;
|
|
19181
19206
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19182
19207
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19198,7 +19223,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19198
19223
|
};
|
|
19199
19224
|
}();
|
|
19200
19225
|
useEffect(function () {
|
|
19201
|
-
_asyncToGenerator(
|
|
19226
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19202
19227
|
var res;
|
|
19203
19228
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19204
19229
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19363,7 +19388,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19363
19388
|
var resultList = [];
|
|
19364
19389
|
var newRouter = cloneDeep$1(router);
|
|
19365
19390
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19366
|
-
var
|
|
19391
|
+
var _deep = function deep(router) {
|
|
19367
19392
|
if (router && Array.isArray(router)) {
|
|
19368
19393
|
router.forEach(function (item) {
|
|
19369
19394
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19373,7 +19398,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19373
19398
|
d.nameEdit = true;
|
|
19374
19399
|
}
|
|
19375
19400
|
});
|
|
19376
|
-
|
|
19401
|
+
_deep(item.routes);
|
|
19377
19402
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19378
19403
|
id: "menu.".concat(item.name)
|
|
19379
19404
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19392,7 +19417,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19392
19417
|
}));
|
|
19393
19418
|
}
|
|
19394
19419
|
};
|
|
19395
|
-
|
|
19420
|
+
_deep(newRouter);
|
|
19396
19421
|
setroutesData([].concat(resultList));
|
|
19397
19422
|
};
|
|
19398
19423
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19474,7 +19499,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19474
19499
|
},
|
|
19475
19500
|
title: item.fullPathName
|
|
19476
19501
|
}, renderLineStyl(item.fullPathName));
|
|
19477
|
-
}))))), showSelectStore && (
|
|
19502
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19478
19503
|
employeeCode: employeeCode
|
|
19479
19504
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19480
19505
|
};
|
|
@@ -19489,7 +19514,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19489
19514
|
var TreeNode = Tree.TreeNode;
|
|
19490
19515
|
var Search$2 = Input.Search;
|
|
19491
19516
|
var dataList = [];
|
|
19492
|
-
var
|
|
19517
|
+
var _generateList = function generateList(data) {
|
|
19493
19518
|
for (var i = 0; i < data.length; i++) {
|
|
19494
19519
|
var node = data[i];
|
|
19495
19520
|
var path = node.path,
|
|
@@ -19499,11 +19524,11 @@ var generateList = function generateList(data) {
|
|
|
19499
19524
|
name: name
|
|
19500
19525
|
});
|
|
19501
19526
|
if (node.children) {
|
|
19502
|
-
|
|
19527
|
+
_generateList(node.children);
|
|
19503
19528
|
}
|
|
19504
19529
|
}
|
|
19505
19530
|
};
|
|
19506
|
-
var
|
|
19531
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
19507
19532
|
var parentKey;
|
|
19508
19533
|
for (var i = 0; i < tree.length; i++) {
|
|
19509
19534
|
var node = tree[i];
|
|
@@ -19512,8 +19537,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
19512
19537
|
return item.path === path;
|
|
19513
19538
|
})) {
|
|
19514
19539
|
parentKey = node.path;
|
|
19515
|
-
} else if (
|
|
19516
|
-
parentKey =
|
|
19540
|
+
} else if (_getParentKey(path, node.children)) {
|
|
19541
|
+
parentKey = _getParentKey(path, node.children);
|
|
19517
19542
|
}
|
|
19518
19543
|
}
|
|
19519
19544
|
}
|
|
@@ -19544,7 +19569,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19544
19569
|
var treeData = _this.state.treeData;
|
|
19545
19570
|
var expandedKeys = dataList.map(function (item) {
|
|
19546
19571
|
if (item.name.indexOf(value) > -1) {
|
|
19547
|
-
return
|
|
19572
|
+
return _getParentKey(item.path, treeData);
|
|
19548
19573
|
}
|
|
19549
19574
|
return null;
|
|
19550
19575
|
}).filter(function (item, i, self) {
|
|
@@ -19558,22 +19583,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19558
19583
|
};
|
|
19559
19584
|
_this.getPathList = function (originData) {
|
|
19560
19585
|
var pathList = [];
|
|
19561
|
-
var
|
|
19586
|
+
var _getList = function getList(data) {
|
|
19562
19587
|
if (Array.isArray(data)) {
|
|
19563
19588
|
data.forEach(function (item) {
|
|
19564
19589
|
pathList.push(item.path);
|
|
19565
19590
|
if (item.children) {
|
|
19566
|
-
|
|
19591
|
+
_getList(item.children);
|
|
19567
19592
|
}
|
|
19568
19593
|
});
|
|
19569
19594
|
} else {
|
|
19570
19595
|
pathList.push(data.path);
|
|
19571
19596
|
if (data.children) {
|
|
19572
|
-
|
|
19597
|
+
_getList(data.children);
|
|
19573
19598
|
}
|
|
19574
19599
|
}
|
|
19575
19600
|
};
|
|
19576
|
-
|
|
19601
|
+
_getList(originData);
|
|
19577
19602
|
return pathList;
|
|
19578
19603
|
};
|
|
19579
19604
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19582,18 +19607,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19582
19607
|
customerMenuData = _this$props.customerMenuData,
|
|
19583
19608
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19584
19609
|
var filterItem;
|
|
19585
|
-
var
|
|
19610
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
19586
19611
|
menuData.forEach(function (item) {
|
|
19587
19612
|
if (item.path === path) {
|
|
19588
19613
|
filterItem = _objectSpread2({}, item);
|
|
19589
19614
|
return;
|
|
19590
19615
|
}
|
|
19591
19616
|
if (item.children) {
|
|
19592
|
-
|
|
19617
|
+
_filterMenuItem(item.children);
|
|
19593
19618
|
}
|
|
19594
19619
|
});
|
|
19595
19620
|
};
|
|
19596
|
-
|
|
19621
|
+
_filterMenuItem(treeData);
|
|
19597
19622
|
var addPathList = _this.getPathList(filterItem);
|
|
19598
19623
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19599
19624
|
var isRepet = false;
|
|
@@ -19623,8 +19648,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19623
19648
|
return item.path === '/';
|
|
19624
19649
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19625
19650
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19626
|
-
|
|
19627
|
-
|
|
19651
|
+
_setMenuTreeData(routesData);
|
|
19652
|
+
_generateList(routesData);
|
|
19628
19653
|
this.setState({
|
|
19629
19654
|
treeData: routesData
|
|
19630
19655
|
});
|
|
@@ -19638,16 +19663,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19638
19663
|
expandedKeys = _this$state.expandedKeys,
|
|
19639
19664
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19640
19665
|
treeData = _this$state.treeData;
|
|
19641
|
-
var
|
|
19666
|
+
var _loop = function loop(data) {
|
|
19642
19667
|
return data.map(function (item) {
|
|
19643
19668
|
var index = item.name.indexOf(searchValue);
|
|
19644
19669
|
var beforeStr = item.name.substr(0, index);
|
|
19645
19670
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19646
|
-
var name = index > -1 ? (
|
|
19671
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19647
19672
|
style: {
|
|
19648
19673
|
color: '#f50'
|
|
19649
19674
|
}
|
|
19650
|
-
}, searchValue), afterStr)) : (
|
|
19675
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19651
19676
|
if (item.children && item.children.length) {
|
|
19652
19677
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19653
19678
|
path: item.path,
|
|
@@ -19669,7 +19694,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19669
19694
|
width: 18,
|
|
19670
19695
|
src: arrowRight
|
|
19671
19696
|
}))))
|
|
19672
|
-
},
|
|
19697
|
+
}, _loop(item.children));
|
|
19673
19698
|
}
|
|
19674
19699
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19675
19700
|
path: item.path,
|
|
@@ -19719,7 +19744,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19719
19744
|
onExpand: this.onExpand,
|
|
19720
19745
|
expandedKeys: expandedKeys,
|
|
19721
19746
|
autoExpandParent: autoExpandParent
|
|
19722
|
-
},
|
|
19747
|
+
}, _loop(treeData))));
|
|
19723
19748
|
}
|
|
19724
19749
|
}]);
|
|
19725
19750
|
}(React$1.Component);
|
|
@@ -19752,24 +19777,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19752
19777
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19753
19778
|
var dragObj;
|
|
19754
19779
|
var finalDropItem;
|
|
19755
|
-
var
|
|
19780
|
+
var _loop = function loop(data, path, callback) {
|
|
19756
19781
|
for (var i = 0; i < data.length; i++) {
|
|
19757
19782
|
if (data[i].path === path) {
|
|
19758
19783
|
return callback(data[i], i, data);
|
|
19759
19784
|
}
|
|
19760
19785
|
if (data[i].children) {
|
|
19761
|
-
|
|
19786
|
+
_loop(data[i].children, path, callback);
|
|
19762
19787
|
}
|
|
19763
19788
|
}
|
|
19764
19789
|
};
|
|
19765
19790
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19766
|
-
|
|
19791
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
19767
19792
|
arr.splice(index, 1);
|
|
19768
19793
|
dragObj = item;
|
|
19769
19794
|
});
|
|
19770
19795
|
if (!info.dropToGap) {
|
|
19771
19796
|
// Drop on the content
|
|
19772
|
-
|
|
19797
|
+
_loop(data, dropKey, function (item) {
|
|
19773
19798
|
item.children = item.children || [];
|
|
19774
19799
|
item.children.unshift(dragObj);
|
|
19775
19800
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19780,7 +19805,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19780
19805
|
// Is expanded
|
|
19781
19806
|
dropPosition === 1 // On the bottom gap
|
|
19782
19807
|
) {
|
|
19783
|
-
|
|
19808
|
+
_loop(data, dropKey, function (item) {
|
|
19784
19809
|
item.children = item.children || [];
|
|
19785
19810
|
item.children.unshift(dragObj);
|
|
19786
19811
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19788,7 +19813,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19788
19813
|
} else {
|
|
19789
19814
|
var ar;
|
|
19790
19815
|
var i;
|
|
19791
|
-
|
|
19816
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
19792
19817
|
ar = arr;
|
|
19793
19818
|
i = index;
|
|
19794
19819
|
});
|
|
@@ -19827,17 +19852,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19827
19852
|
title: '编辑名称',
|
|
19828
19853
|
callBack: function callBack(newName) {
|
|
19829
19854
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19830
|
-
var
|
|
19855
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19831
19856
|
oldTreeData.forEach(function (treeItem) {
|
|
19832
19857
|
if (treeItem.path === item.path) {
|
|
19833
19858
|
treeItem.name = newName;
|
|
19834
19859
|
}
|
|
19835
19860
|
if (treeItem.children) {
|
|
19836
|
-
|
|
19861
|
+
_editTreeDataName(treeItem.children);
|
|
19837
19862
|
}
|
|
19838
19863
|
});
|
|
19839
19864
|
};
|
|
19840
|
-
|
|
19865
|
+
_editTreeDataName(oldTreeData);
|
|
19841
19866
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19842
19867
|
_this.setState({
|
|
19843
19868
|
modalInfo: {
|
|
@@ -19882,7 +19907,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19882
19907
|
title: '新增子目录',
|
|
19883
19908
|
callBack: function callBack(newName) {
|
|
19884
19909
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19885
|
-
var
|
|
19910
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
19886
19911
|
oldTreeData.forEach(function (treeItem) {
|
|
19887
19912
|
if (treeItem.path === item.path) {
|
|
19888
19913
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19894,11 +19919,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19894
19919
|
}];
|
|
19895
19920
|
}
|
|
19896
19921
|
if (treeItem.children) {
|
|
19897
|
-
|
|
19922
|
+
_addChildFolder(treeItem.children);
|
|
19898
19923
|
}
|
|
19899
19924
|
});
|
|
19900
19925
|
};
|
|
19901
|
-
|
|
19926
|
+
_addChildFolder(oldTreeData);
|
|
19902
19927
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19903
19928
|
_this.setState({
|
|
19904
19929
|
modalInfo: {
|
|
@@ -19957,7 +19982,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19957
19982
|
var _this$state = this.state,
|
|
19958
19983
|
modalInfo = _this$state.modalInfo,
|
|
19959
19984
|
checkedKeys = _this$state.checkedKeys;
|
|
19960
|
-
var
|
|
19985
|
+
var _loop2 = function loop(data) {
|
|
19961
19986
|
return data.map(function (item) {
|
|
19962
19987
|
if (item.children && item.children.length) {
|
|
19963
19988
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -19974,7 +19999,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19974
19999
|
e.stopPropagation();
|
|
19975
20000
|
}
|
|
19976
20001
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
19977
|
-
},
|
|
20002
|
+
}, _loop2(item.children));
|
|
19978
20003
|
}
|
|
19979
20004
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
19980
20005
|
path: item.path,
|
|
@@ -20053,7 +20078,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20053
20078
|
children: 'children'
|
|
20054
20079
|
},
|
|
20055
20080
|
onDrop: this.onDrop
|
|
20056
|
-
},
|
|
20081
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
20057
20082
|
width: 600,
|
|
20058
20083
|
bodyStyle: {
|
|
20059
20084
|
paddingTop: '32px',
|
|
@@ -20166,7 +20191,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20166
20191
|
pathname: item.path
|
|
20167
20192
|
});
|
|
20168
20193
|
};
|
|
20169
|
-
var
|
|
20194
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
20170
20195
|
return menuData.map(function (item) {
|
|
20171
20196
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20172
20197
|
style: {
|
|
@@ -20181,7 +20206,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20181
20206
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20182
20207
|
paddingLeft: '4px'
|
|
20183
20208
|
}
|
|
20184
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20209
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
20185
20210
|
});
|
|
20186
20211
|
};
|
|
20187
20212
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20207,7 +20232,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20207
20232
|
style: {
|
|
20208
20233
|
paddingLeft: '5px'
|
|
20209
20234
|
}
|
|
20210
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
20235
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20211
20236
|
style: {
|
|
20212
20237
|
left: isDrawer ? 140 : 0
|
|
20213
20238
|
},
|
|
@@ -20228,7 +20253,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20228
20253
|
visible: isDrawer
|
|
20229
20254
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
20230
20255
|
className: 'menu_title_line'
|
|
20231
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20256
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
20232
20257
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
20233
20258
|
style: {
|
|
20234
20259
|
fontWeight: '600',
|
|
@@ -20302,7 +20327,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20302
20327
|
return item.path === '/';
|
|
20303
20328
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20304
20329
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20305
|
-
|
|
20330
|
+
_setMenuTreeData(routesData);
|
|
20306
20331
|
routesData.forEach(function (item) {
|
|
20307
20332
|
if (item.children) {
|
|
20308
20333
|
routesDataList.push(item);
|
|
@@ -20332,7 +20357,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20332
20357
|
setHeight(clientHeight - 190);
|
|
20333
20358
|
setDrawHeight(clientHeight - 70);
|
|
20334
20359
|
};
|
|
20335
|
-
var
|
|
20360
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
20336
20361
|
if (!child.hideInMenu && child.children) {
|
|
20337
20362
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20338
20363
|
style: {
|
|
@@ -20342,7 +20367,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20342
20367
|
}, formatMessage({
|
|
20343
20368
|
id: "".concat(child.locale)
|
|
20344
20369
|
})), child.children.map(function (menuItem) {
|
|
20345
|
-
return
|
|
20370
|
+
return _renderChildItem(menuItem);
|
|
20346
20371
|
}));
|
|
20347
20372
|
} else if (!child.hideInMenu && child.path) {
|
|
20348
20373
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20484,7 +20509,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20484
20509
|
onMenuClick(e, item);
|
|
20485
20510
|
}
|
|
20486
20511
|
}, item.name);
|
|
20487
|
-
}))), !!SearhData.length ? (
|
|
20512
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20488
20513
|
className: 'search_menu_content'
|
|
20489
20514
|
}, SearhData.map(function (item) {
|
|
20490
20515
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20493,7 +20518,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20493
20518
|
},
|
|
20494
20519
|
key: item.path
|
|
20495
20520
|
}, item.name);
|
|
20496
|
-
}))) : (
|
|
20521
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20497
20522
|
style: {
|
|
20498
20523
|
height: "".concat(rightMenuHeight, "px"),
|
|
20499
20524
|
overflowY: 'scroll',
|
|
@@ -20505,7 +20530,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20505
20530
|
className: 'drawerWarp_right'
|
|
20506
20531
|
}, homepageData && homepageData.filter(function (d) {
|
|
20507
20532
|
return !d.hideInMenu;
|
|
20508
|
-
}).length > 0 && (
|
|
20533
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20509
20534
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20510
20535
|
dataSource: homepageData,
|
|
20511
20536
|
renderItem: function renderItem(child) {
|
|
@@ -20546,7 +20571,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20546
20571
|
bordered: true,
|
|
20547
20572
|
dataSource: item.children,
|
|
20548
20573
|
renderItem: function renderItem(child) {
|
|
20549
|
-
return
|
|
20574
|
+
return _renderChildItem(child);
|
|
20550
20575
|
}
|
|
20551
20576
|
});
|
|
20552
20577
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20704,10 +20729,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20704
20729
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20705
20730
|
var menuKeys = [];
|
|
20706
20731
|
var docsId = [];
|
|
20707
|
-
var
|
|
20732
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20708
20733
|
data.forEach(function (item) {
|
|
20709
20734
|
if (item.children && item.children.length > 0) {
|
|
20710
|
-
|
|
20735
|
+
_getLimitedMenuKeys(item.children);
|
|
20711
20736
|
} else {
|
|
20712
20737
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20713
20738
|
menuKeys.push(originPath);
|
|
@@ -20718,7 +20743,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20718
20743
|
});
|
|
20719
20744
|
};
|
|
20720
20745
|
try {
|
|
20721
|
-
|
|
20746
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
20722
20747
|
} catch (e) {}
|
|
20723
20748
|
return {
|
|
20724
20749
|
menuKeys: menuKeys,
|
|
@@ -20952,10 +20977,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20952
20977
|
return (node.path || '').includes('all-general-documents');
|
|
20953
20978
|
};
|
|
20954
20979
|
// 递归获取树列表
|
|
20955
|
-
var
|
|
20980
|
+
var _getTreeList = function getTreeList(data) {
|
|
20956
20981
|
data.forEach(function (node) {
|
|
20957
20982
|
if (node.routes && node.routes.length > 0) {
|
|
20958
|
-
|
|
20983
|
+
_getTreeList(node.routes);
|
|
20959
20984
|
return;
|
|
20960
20985
|
}
|
|
20961
20986
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20986,7 +21011,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20986
21011
|
}
|
|
20987
21012
|
});
|
|
20988
21013
|
};
|
|
20989
|
-
|
|
21014
|
+
_getTreeList(treeData);
|
|
20990
21015
|
return treeList;
|
|
20991
21016
|
};
|
|
20992
21017
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21615,7 +21640,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21615
21640
|
updateState = _ref8.updateState;
|
|
21616
21641
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21617
21642
|
className: "tab_title_content"
|
|
21618
|
-
}, item.tab, item.key !== '/' && (
|
|
21643
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21619
21644
|
info: item,
|
|
21620
21645
|
operateFun: _this3.operateFun,
|
|
21621
21646
|
listenRouterState: listenRouterState
|
|
@@ -21751,7 +21776,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21751
21776
|
};
|
|
21752
21777
|
}
|
|
21753
21778
|
var OperationsSlot = {
|
|
21754
|
-
left: (
|
|
21779
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
21755
21780
|
className: 'tab_left_operate'
|
|
21756
21781
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
21757
21782
|
onClick: function onClick() {
|
|
@@ -21767,7 +21792,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21767
21792
|
_this3.setTabNavTransLate(-100);
|
|
21768
21793
|
}
|
|
21769
21794
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
21770
|
-
right: (
|
|
21795
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
21771
21796
|
style: {
|
|
21772
21797
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21773
21798
|
},
|
|
@@ -21865,7 +21890,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21865
21890
|
onMouseLeave: function onMouseLeave() {
|
|
21866
21891
|
_this3.setShowMenu(false);
|
|
21867
21892
|
}
|
|
21868
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
21893
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21869
21894
|
style: {
|
|
21870
21895
|
position: 'absolute',
|
|
21871
21896
|
top: '14px',
|
|
@@ -21884,7 +21909,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21884
21909
|
postMenuData: function postMenuData(menus) {
|
|
21885
21910
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21886
21911
|
},
|
|
21887
|
-
links: [!this.state.collapse ? (
|
|
21912
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21888
21913
|
ref: this.allFunc,
|
|
21889
21914
|
itemPath: itemPath,
|
|
21890
21915
|
handleClose: this.handleClose,
|
|
@@ -21902,7 +21927,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21902
21927
|
},
|
|
21903
21928
|
menu: {
|
|
21904
21929
|
request: function () {
|
|
21905
|
-
var _request = _asyncToGenerator(
|
|
21930
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21906
21931
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21907
21932
|
while (1) switch (_context.prev = _context.next) {
|
|
21908
21933
|
case 0:
|
|
@@ -22037,7 +22062,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22037
22062
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22038
22063
|
timeFormat = _this$props4.timeFormat,
|
|
22039
22064
|
transparentProps = _this$props4.transparentProps;
|
|
22040
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (
|
|
22065
|
+
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({
|
|
22041
22066
|
getDictionarySource: getDictionarySource,
|
|
22042
22067
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22043
22068
|
timeFormat: timeFormat
|
|
@@ -22061,12 +22086,12 @@ var index$5 = (function (props) {
|
|
|
22061
22086
|
});
|
|
22062
22087
|
|
|
22063
22088
|
// @ts-nocheck
|
|
22064
|
-
var
|
|
22089
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
22065
22090
|
var result = [];
|
|
22066
22091
|
columns.forEach(function (column) {
|
|
22067
22092
|
if (column.children) {
|
|
22068
22093
|
result.push(column);
|
|
22069
|
-
result.push.apply(result,
|
|
22094
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
22070
22095
|
} else {
|
|
22071
22096
|
result.push(column);
|
|
22072
22097
|
}
|
|
@@ -22075,7 +22100,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
22075
22100
|
};
|
|
22076
22101
|
var convertToRows = function convertToRows(originColumns) {
|
|
22077
22102
|
var maxLevel = 1;
|
|
22078
|
-
var
|
|
22103
|
+
var _traverse = function traverse(column, parent) {
|
|
22079
22104
|
if (parent) {
|
|
22080
22105
|
column.level = parent.level + 1;
|
|
22081
22106
|
if (maxLevel < column.level) {
|
|
@@ -22085,7 +22110,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22085
22110
|
if (column.children) {
|
|
22086
22111
|
var colSpan = 0;
|
|
22087
22112
|
column.children.forEach(function (subColumn) {
|
|
22088
|
-
|
|
22113
|
+
_traverse(subColumn, column);
|
|
22089
22114
|
colSpan += subColumn.colSpan;
|
|
22090
22115
|
});
|
|
22091
22116
|
column.colSpan = colSpan;
|
|
@@ -22095,13 +22120,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22095
22120
|
};
|
|
22096
22121
|
originColumns.forEach(function (column) {
|
|
22097
22122
|
column.level = 1;
|
|
22098
|
-
|
|
22123
|
+
_traverse(column);
|
|
22099
22124
|
});
|
|
22100
22125
|
var rows = [];
|
|
22101
22126
|
for (var i = 0; i < maxLevel; i++) {
|
|
22102
22127
|
rows.push([]);
|
|
22103
22128
|
}
|
|
22104
|
-
var allColumns =
|
|
22129
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22105
22130
|
allColumns.forEach(function (column) {
|
|
22106
22131
|
if (!column.children) {
|
|
22107
22132
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22141,7 +22166,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22141
22166
|
};
|
|
22142
22167
|
var headersToRows = function headersToRows(originColumns) {
|
|
22143
22168
|
var maxLevel = 1;
|
|
22144
|
-
var
|
|
22169
|
+
var _traverse2 = function traverse(column, parent) {
|
|
22145
22170
|
if (parent) {
|
|
22146
22171
|
//计算当前元素属于第几个层级
|
|
22147
22172
|
column.level = parent.level + 1;
|
|
@@ -22154,7 +22179,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22154
22179
|
var colSpan = 0;
|
|
22155
22180
|
column.children.forEach(function (subColumn) {
|
|
22156
22181
|
//进行递归
|
|
22157
|
-
|
|
22182
|
+
_traverse2(subColumn, column);
|
|
22158
22183
|
colSpan += subColumn.colSpan;
|
|
22159
22184
|
});
|
|
22160
22185
|
column.colSpan = colSpan;
|
|
@@ -22164,14 +22189,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22164
22189
|
};
|
|
22165
22190
|
originColumns.forEach(function (column) {
|
|
22166
22191
|
column.level = 1;
|
|
22167
|
-
|
|
22192
|
+
_traverse2(column);
|
|
22168
22193
|
});
|
|
22169
22194
|
var rows = [];
|
|
22170
22195
|
var lastData = [];
|
|
22171
22196
|
for (var i = 0; i < maxLevel; i++) {
|
|
22172
22197
|
rows.push([]);
|
|
22173
22198
|
}
|
|
22174
|
-
var allColumns =
|
|
22199
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22175
22200
|
allColumns.forEach(function (column) {
|
|
22176
22201
|
if (!column.children) {
|
|
22177
22202
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28188,7 +28213,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28188
28213
|
}
|
|
28189
28214
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28190
28215
|
};
|
|
28191
|
-
var
|
|
28216
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
28192
28217
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28193
28218
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28194
28219
|
var children = hightLightData.children,
|
|
@@ -28199,7 +28224,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28199
28224
|
lineEnd = _loc2[2];
|
|
28200
28225
|
if (children) {
|
|
28201
28226
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28202
|
-
return
|
|
28227
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
28203
28228
|
});
|
|
28204
28229
|
}
|
|
28205
28230
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28211,7 +28236,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28211
28236
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28212
28237
|
data.forEach(function (node) {
|
|
28213
28238
|
if (!node) return;
|
|
28214
|
-
node.toggled =
|
|
28239
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
28215
28240
|
node.active = isHightLight(node, highLightLine);
|
|
28216
28241
|
if (node.children) {
|
|
28217
28242
|
if (node.active) {
|
|
@@ -29642,7 +29667,7 @@ var valueType = {
|
|
|
29642
29667
|
};
|
|
29643
29668
|
|
|
29644
29669
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29645
|
-
var _ref = _asyncToGenerator(
|
|
29670
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29646
29671
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29647
29672
|
while (1) switch (_context.prev = _context.next) {
|
|
29648
29673
|
case 0:
|
|
@@ -29710,7 +29735,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29710
29735
|
value: false
|
|
29711
29736
|
}];
|
|
29712
29737
|
var ref = useRef();
|
|
29713
|
-
useMount(
|
|
29738
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29714
29739
|
var _ref$current, source;
|
|
29715
29740
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29716
29741
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29824,7 +29849,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29824
29849
|
source: {
|
|
29825
29850
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29826
29851
|
type: function () {
|
|
29827
|
-
var _type = _asyncToGenerator(
|
|
29852
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29828
29853
|
var form, values, name, relates, source;
|
|
29829
29854
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29830
29855
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30304,7 +30329,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30304
30329
|
source: {
|
|
30305
30330
|
relates: ['choiceType', 'inputType'],
|
|
30306
30331
|
type: function () {
|
|
30307
|
-
var _type2 = _asyncToGenerator(
|
|
30332
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30308
30333
|
var values, name, form, source;
|
|
30309
30334
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30310
30335
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30526,7 +30551,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30526
30551
|
width: 900,
|
|
30527
30552
|
maskClosable: false,
|
|
30528
30553
|
onOk: function () {
|
|
30529
|
-
var _onOk = _asyncToGenerator(
|
|
30554
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30530
30555
|
var _ref$current4, _res$editableStatus;
|
|
30531
30556
|
var res, _res$defaultValue;
|
|
30532
30557
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30598,7 +30623,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30598
30623
|
}()
|
|
30599
30624
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30600
30625
|
ref: ref
|
|
30601
|
-
})), maintainOptionsModal.visible && (
|
|
30626
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30602
30627
|
};
|
|
30603
30628
|
|
|
30604
30629
|
// @ts-nocheck
|
|
@@ -31212,7 +31237,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31212
31237
|
return setVisible(false);
|
|
31213
31238
|
},
|
|
31214
31239
|
className: 'customFieldsDrawer'
|
|
31215
|
-
}, detailTablesSetting.length == 0 && (
|
|
31240
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
31216
31241
|
style: {
|
|
31217
31242
|
display: 'flex'
|
|
31218
31243
|
}
|
|
@@ -31221,13 +31246,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31221
31246
|
flex: 1,
|
|
31222
31247
|
width: 500
|
|
31223
31248
|
}
|
|
31224
|
-
}, isEmpty(moduleParams) ? (
|
|
31249
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31225
31250
|
style: {
|
|
31226
31251
|
padding: "10px 0",
|
|
31227
31252
|
fontSize: "16px",
|
|
31228
31253
|
fontWeight: "bolder"
|
|
31229
31254
|
}
|
|
31230
|
-
}, "\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")) : (
|
|
31255
|
+
}, "\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", {
|
|
31231
31256
|
style: {
|
|
31232
31257
|
flex: 1
|
|
31233
31258
|
}
|
|
@@ -31236,7 +31261,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31236
31261
|
onRun: onClickRun,
|
|
31237
31262
|
value: jsonEditorVal,
|
|
31238
31263
|
shallowHeight: height
|
|
31239
|
-
})))), detailTablesSetting.length > 0 && (
|
|
31264
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
31240
31265
|
defaultActiveKey: activeKey,
|
|
31241
31266
|
onChange: function onChange(v) {
|
|
31242
31267
|
return setActiveKey(v);
|
|
@@ -31253,13 +31278,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31253
31278
|
flex: 1,
|
|
31254
31279
|
width: 500
|
|
31255
31280
|
}
|
|
31256
|
-
}, isEmpty(moduleParams) ? (
|
|
31281
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31257
31282
|
style: {
|
|
31258
31283
|
padding: "10px 0",
|
|
31259
31284
|
fontSize: "16px",
|
|
31260
31285
|
fontWeight: "bolder"
|
|
31261
31286
|
}
|
|
31262
|
-
}, "\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")) : (
|
|
31287
|
+
}, "\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", {
|
|
31263
31288
|
style: {
|
|
31264
31289
|
flex: 1
|
|
31265
31290
|
}
|
|
@@ -31281,13 +31306,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31281
31306
|
flex: 1,
|
|
31282
31307
|
width: 500
|
|
31283
31308
|
}
|
|
31284
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
31309
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31285
31310
|
style: {
|
|
31286
31311
|
padding: "10px 0",
|
|
31287
31312
|
fontSize: "16px",
|
|
31288
31313
|
fontWeight: "bolder"
|
|
31289
31314
|
}
|
|
31290
|
-
}, "\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")) : (
|
|
31315
|
+
}, "\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", {
|
|
31291
31316
|
style: {
|
|
31292
31317
|
flex: 1
|
|
31293
31318
|
}
|
|
@@ -31433,7 +31458,7 @@ function getMetaData(_x) {
|
|
|
31433
31458
|
|
|
31434
31459
|
// 获取数据
|
|
31435
31460
|
function _getMetaData() {
|
|
31436
|
-
_getMetaData = _asyncToGenerator(
|
|
31461
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31437
31462
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31438
31463
|
while (1) switch (_context.prev = _context.next) {
|
|
31439
31464
|
case 0:
|
|
@@ -31655,7 +31680,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31655
31680
|
tableState = _useState4[0],
|
|
31656
31681
|
setTableState = _useState4[1];
|
|
31657
31682
|
var handleOpen = /*#__PURE__*/function () {
|
|
31658
|
-
var _ref = _asyncToGenerator(
|
|
31683
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31659
31684
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31660
31685
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31661
31686
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31974,7 +31999,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31974
31999
|
destroyOnClose: true
|
|
31975
32000
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
31976
32001
|
ref: queryTableRef
|
|
31977
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
32002
|
+
}, 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, {
|
|
31978
32003
|
justify: "center",
|
|
31979
32004
|
style: {
|
|
31980
32005
|
marginBottom: 30,
|
|
@@ -32090,7 +32115,7 @@ var CustomSelector = (function (props) {
|
|
|
32090
32115
|
var _props$ctx7;
|
|
32091
32116
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32092
32117
|
}
|
|
32093
|
-
})), showType === 'modalTable' && (
|
|
32118
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
32094
32119
|
type: "primary",
|
|
32095
32120
|
style: {
|
|
32096
32121
|
width: '30px',
|
|
@@ -32176,7 +32201,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32176
32201
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32177
32202
|
handSource = _useState2[0],
|
|
32178
32203
|
setHandSource = _useState2[1];
|
|
32179
|
-
useEffect(
|
|
32204
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32180
32205
|
var resData, data;
|
|
32181
32206
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32182
32207
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32328,7 +32353,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32328
32353
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32329
32354
|
}
|
|
32330
32355
|
function _getRegularThresholdRange() {
|
|
32331
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
32356
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32332
32357
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32333
32358
|
while (1) switch (_context.prev = _context.next) {
|
|
32334
32359
|
case 0:
|
|
@@ -32482,7 +32507,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32482
32507
|
};
|
|
32483
32508
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32484
32509
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32485
|
-
var _ref = _asyncToGenerator(
|
|
32510
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32486
32511
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32487
32512
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32488
32513
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33439,7 +33464,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33439
33464
|
isAll: true,
|
|
33440
33465
|
needNameAndCode: true,
|
|
33441
33466
|
notChangeOnSelect: true,
|
|
33442
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33467
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33443
33468
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33444
33469
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33445
33470
|
case 0:
|
|
@@ -33488,7 +33513,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33488
33513
|
isAll: true,
|
|
33489
33514
|
needNameAndCode: true,
|
|
33490
33515
|
notChangeOnSelect: true,
|
|
33491
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33516
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33492
33517
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33493
33518
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33494
33519
|
case 0:
|
|
@@ -33539,7 +33564,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33539
33564
|
isAll: true,
|
|
33540
33565
|
needNameAndCode: true,
|
|
33541
33566
|
notChangeOnSelect: true,
|
|
33542
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33567
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33543
33568
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33544
33569
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33545
33570
|
case 0:
|
|
@@ -35517,7 +35542,7 @@ var App$1 = function App(_ref) {
|
|
|
35517
35542
|
borderRadius: '5px',
|
|
35518
35543
|
cursor: 'pointer'
|
|
35519
35544
|
}
|
|
35520
|
-
}, isStaticNumber ? (
|
|
35545
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35521
35546
|
autoFocus: true,
|
|
35522
35547
|
onClick: function onClick(e) {
|
|
35523
35548
|
return e.stopPropagation();
|
|
@@ -35804,7 +35829,7 @@ function RenderCompItem(props) {
|
|
|
35804
35829
|
dictData = _useState2[0],
|
|
35805
35830
|
setDictData = _useState2[1];
|
|
35806
35831
|
var getDictData = /*#__PURE__*/function () {
|
|
35807
|
-
var _ref = _asyncToGenerator(
|
|
35832
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35808
35833
|
var _data$map;
|
|
35809
35834
|
var data;
|
|
35810
35835
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35846,7 +35871,7 @@ function RenderCompItem(props) {
|
|
|
35846
35871
|
var style2 = {
|
|
35847
35872
|
width: '100px'
|
|
35848
35873
|
};
|
|
35849
|
-
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 && (
|
|
35874
|
+
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, {
|
|
35850
35875
|
disabled: disabled,
|
|
35851
35876
|
allowClear: true,
|
|
35852
35877
|
onClear: function onClear() {
|
|
@@ -35857,7 +35882,7 @@ function RenderCompItem(props) {
|
|
|
35857
35882
|
onBlur: function onBlur(e) {
|
|
35858
35883
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35859
35884
|
}
|
|
35860
|
-
})) || 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) && (
|
|
35885
|
+
})) || 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, {
|
|
35861
35886
|
disabled: disabled,
|
|
35862
35887
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35863
35888
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35870,7 +35895,7 @@ function RenderCompItem(props) {
|
|
|
35870
35895
|
onChange: function onChange(value) {
|
|
35871
35896
|
handleEdit(ites.code, value);
|
|
35872
35897
|
}
|
|
35873
|
-
})) || 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) && (
|
|
35898
|
+
})) || 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, {
|
|
35874
35899
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35875
35900
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35876
35901
|
disabled: disabled,
|
|
@@ -35880,7 +35905,7 @@ function RenderCompItem(props) {
|
|
|
35880
35905
|
onChange: function onChange(value, dateString) {
|
|
35881
35906
|
handleEdit(ites.code, dateString);
|
|
35882
35907
|
}
|
|
35883
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
35908
|
+
})) || 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, {
|
|
35884
35909
|
showTime: true,
|
|
35885
35910
|
disabled: disabled,
|
|
35886
35911
|
defaultValue: ites.defaultValue,
|
|
@@ -35889,7 +35914,7 @@ function RenderCompItem(props) {
|
|
|
35889
35914
|
onChange: function onChange(value, timeString) {
|
|
35890
35915
|
handleEdit(ites.code, timeString);
|
|
35891
35916
|
}
|
|
35892
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
35917
|
+
})) || 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, {
|
|
35893
35918
|
disabled: disabled,
|
|
35894
35919
|
defaultChecked: !!ites.defaultValue,
|
|
35895
35920
|
style: style2,
|
|
@@ -35897,7 +35922,7 @@ function RenderCompItem(props) {
|
|
|
35897
35922
|
onChange: function onChange(value) {
|
|
35898
35923
|
handleEdit(ites.code, value);
|
|
35899
35924
|
}
|
|
35900
|
-
})) || 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 && (
|
|
35925
|
+
})) || 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({
|
|
35901
35926
|
disabled: disabled,
|
|
35902
35927
|
allowClear: true,
|
|
35903
35928
|
showArrow: true
|
|
@@ -35915,7 +35940,7 @@ function RenderCompItem(props) {
|
|
|
35915
35940
|
key: it,
|
|
35916
35941
|
value: it
|
|
35917
35942
|
}, ites.enumeration[it]);
|
|
35918
|
-
}))) || 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 && (
|
|
35943
|
+
}))) || 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, {
|
|
35919
35944
|
disabled: disabled,
|
|
35920
35945
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35921
35946
|
defaultValue: ites.defaultValue,
|
|
@@ -35925,7 +35950,7 @@ function RenderCompItem(props) {
|
|
|
35925
35950
|
handleEdit(ites.code, value);
|
|
35926
35951
|
},
|
|
35927
35952
|
dictionaryCode: ites.dictionaryCode
|
|
35928
|
-
})) || 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 && (
|
|
35953
|
+
})) || 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, {
|
|
35929
35954
|
selectBusinessType: "physicalWarehouse",
|
|
35930
35955
|
selectProps: _objectSpread2({
|
|
35931
35956
|
style: styleCommon,
|
|
@@ -35947,7 +35972,7 @@ function RenderCompItem(props) {
|
|
|
35947
35972
|
getPopupContainer: function getPopupContainer() {
|
|
35948
35973
|
return document.body;
|
|
35949
35974
|
}
|
|
35950
|
-
})) || 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 && (
|
|
35975
|
+
})) || 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, {
|
|
35951
35976
|
selectBusinessType: "realWarehouse",
|
|
35952
35977
|
selectProps: _objectSpread2({
|
|
35953
35978
|
style: styleCommon,
|
|
@@ -35969,7 +35994,7 @@ function RenderCompItem(props) {
|
|
|
35969
35994
|
getPopupContainer: function getPopupContainer() {
|
|
35970
35995
|
return document.body;
|
|
35971
35996
|
}
|
|
35972
|
-
})) || 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 && (
|
|
35997
|
+
})) || 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, {
|
|
35973
35998
|
selectBusinessType: "virtualWarehouse",
|
|
35974
35999
|
selectProps: _objectSpread2({
|
|
35975
36000
|
style: styleCommon,
|
|
@@ -35991,7 +36016,7 @@ function RenderCompItem(props) {
|
|
|
35991
36016
|
getPopupContainer: function getPopupContainer() {
|
|
35992
36017
|
return document.body;
|
|
35993
36018
|
}
|
|
35994
|
-
})) || 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 && (
|
|
36019
|
+
})) || 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, {
|
|
35995
36020
|
selectBusinessType: "channelWarehouse",
|
|
35996
36021
|
selectProps: _objectSpread2({
|
|
35997
36022
|
style: styleCommon,
|
|
@@ -36013,7 +36038,7 @@ function RenderCompItem(props) {
|
|
|
36013
36038
|
getPopupContainer: function getPopupContainer() {
|
|
36014
36039
|
return document.body;
|
|
36015
36040
|
}
|
|
36016
|
-
})) || 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 && (
|
|
36041
|
+
})) || 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, {
|
|
36017
36042
|
selectBusinessType: "spuCommodity",
|
|
36018
36043
|
selectProps: _objectSpread2({
|
|
36019
36044
|
style: styleCommon,
|
|
@@ -36034,7 +36059,7 @@ function RenderCompItem(props) {
|
|
|
36034
36059
|
getPopupContainer: function getPopupContainer() {
|
|
36035
36060
|
return document.body;
|
|
36036
36061
|
}
|
|
36037
|
-
})) || 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 && (
|
|
36062
|
+
})) || 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, {
|
|
36038
36063
|
selectBusinessType: "skuCommodity",
|
|
36039
36064
|
selectProps: _objectSpread2({
|
|
36040
36065
|
style: styleCommon,
|
|
@@ -36055,13 +36080,13 @@ function RenderCompItem(props) {
|
|
|
36055
36080
|
getPopupContainer: function getPopupContainer() {
|
|
36056
36081
|
return document.body;
|
|
36057
36082
|
}
|
|
36058
|
-
})) || 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 && (
|
|
36083
|
+
})) || 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, {
|
|
36059
36084
|
disabled: disabled,
|
|
36060
36085
|
isAll: true,
|
|
36061
36086
|
needNameAndCode: true,
|
|
36062
36087
|
notChangeOnSelect: true,
|
|
36063
36088
|
initRequestSource: function () {
|
|
36064
|
-
var _initRequestSource = _asyncToGenerator(
|
|
36089
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36065
36090
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36066
36091
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36067
36092
|
case 0:
|
|
@@ -36103,7 +36128,7 @@ function RenderCompItem(props) {
|
|
|
36103
36128
|
getPopupContainer: function getPopupContainer() {
|
|
36104
36129
|
return document.body;
|
|
36105
36130
|
}
|
|
36106
|
-
})) || 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 && (
|
|
36131
|
+
})) || 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, {
|
|
36107
36132
|
disabled: disabled,
|
|
36108
36133
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36109
36134
|
businessType: "department",
|
|
@@ -36116,7 +36141,7 @@ function RenderCompItem(props) {
|
|
|
36116
36141
|
getPopupContainer: function getPopupContainer() {
|
|
36117
36142
|
return document.body;
|
|
36118
36143
|
}
|
|
36119
|
-
})) || 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 && (
|
|
36144
|
+
})) || 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, {
|
|
36120
36145
|
disabled: disabled,
|
|
36121
36146
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36122
36147
|
businessType: "purchase-organization",
|
|
@@ -36129,7 +36154,7 @@ function RenderCompItem(props) {
|
|
|
36129
36154
|
getPopupContainer: function getPopupContainer() {
|
|
36130
36155
|
return document.body;
|
|
36131
36156
|
}
|
|
36132
|
-
})) || 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 && (
|
|
36157
|
+
})) || 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, {
|
|
36133
36158
|
disabled: disabled,
|
|
36134
36159
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36135
36160
|
businessType: "sales-organization",
|
|
@@ -36142,7 +36167,7 @@ function RenderCompItem(props) {
|
|
|
36142
36167
|
getPopupContainer: function getPopupContainer() {
|
|
36143
36168
|
return document.body;
|
|
36144
36169
|
}
|
|
36145
|
-
})) || 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 && (
|
|
36170
|
+
})) || 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, {
|
|
36146
36171
|
selectBusinessType: "supplier2",
|
|
36147
36172
|
selectProps: _objectSpread2({
|
|
36148
36173
|
style: styleCommon,
|
|
@@ -36163,7 +36188,7 @@ function RenderCompItem(props) {
|
|
|
36163
36188
|
getPopupContainer: function getPopupContainer() {
|
|
36164
36189
|
return document.body;
|
|
36165
36190
|
}
|
|
36166
|
-
})) || 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 && (
|
|
36191
|
+
})) || 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, {
|
|
36167
36192
|
selectBusinessType: "customer2",
|
|
36168
36193
|
selectProps: _objectSpread2({
|
|
36169
36194
|
style: styleCommon,
|
|
@@ -36184,7 +36209,7 @@ function RenderCompItem(props) {
|
|
|
36184
36209
|
getPopupContainer: function getPopupContainer() {
|
|
36185
36210
|
return document.body;
|
|
36186
36211
|
}
|
|
36187
|
-
})) || 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 && (
|
|
36212
|
+
})) || 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, {
|
|
36188
36213
|
selectBusinessType: "shopFile2",
|
|
36189
36214
|
selectProps: _objectSpread2({
|
|
36190
36215
|
style: styleCommon,
|
|
@@ -36205,7 +36230,7 @@ function RenderCompItem(props) {
|
|
|
36205
36230
|
getPopupContainer: function getPopupContainer() {
|
|
36206
36231
|
return document.body;
|
|
36207
36232
|
}
|
|
36208
|
-
})) || 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 && (
|
|
36233
|
+
})) || 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, {
|
|
36209
36234
|
selectBusinessType: "employee2",
|
|
36210
36235
|
selectProps: _objectSpread2({
|
|
36211
36236
|
style: styleCommon,
|
|
@@ -36226,7 +36251,7 @@ function RenderCompItem(props) {
|
|
|
36226
36251
|
getPopupContainer: function getPopupContainer() {
|
|
36227
36252
|
return document.body;
|
|
36228
36253
|
}
|
|
36229
|
-
})) || 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 && (
|
|
36254
|
+
})) || 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, {
|
|
36230
36255
|
disabled: disabled,
|
|
36231
36256
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36232
36257
|
businessType: "stock-organization",
|
|
@@ -36239,7 +36264,7 @@ function RenderCompItem(props) {
|
|
|
36239
36264
|
getPopupContainer: function getPopupContainer() {
|
|
36240
36265
|
return document.body;
|
|
36241
36266
|
}
|
|
36242
|
-
})) || 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 && (
|
|
36267
|
+
})) || 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, {
|
|
36243
36268
|
disabled: disabled,
|
|
36244
36269
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36245
36270
|
businessType: "settle-organization",
|
|
@@ -36252,7 +36277,7 @@ function RenderCompItem(props) {
|
|
|
36252
36277
|
getPopupContainer: function getPopupContainer() {
|
|
36253
36278
|
return document.body;
|
|
36254
36279
|
}
|
|
36255
|
-
})) || 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 && (
|
|
36280
|
+
})) || 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, {
|
|
36256
36281
|
selectBusinessType: "deliveryMode",
|
|
36257
36282
|
selectProps: _objectSpread2({
|
|
36258
36283
|
style: styleCommon,
|
|
@@ -36273,7 +36298,7 @@ function RenderCompItem(props) {
|
|
|
36273
36298
|
getPopupContainer: function getPopupContainer() {
|
|
36274
36299
|
return document.body;
|
|
36275
36300
|
}
|
|
36276
|
-
})) || 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 && (
|
|
36301
|
+
})) || 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, {
|
|
36277
36302
|
selectBusinessType: "role",
|
|
36278
36303
|
selectProps: _objectSpread2({
|
|
36279
36304
|
style: styleCommon,
|
|
@@ -36294,7 +36319,7 @@ function RenderCompItem(props) {
|
|
|
36294
36319
|
getPopupContainer: function getPopupContainer() {
|
|
36295
36320
|
return document.body;
|
|
36296
36321
|
}
|
|
36297
|
-
})) || 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 && (
|
|
36322
|
+
})) || 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, {
|
|
36298
36323
|
selectBusinessType: "brand",
|
|
36299
36324
|
selectProps: _objectSpread2({
|
|
36300
36325
|
style: styleCommon,
|
|
@@ -36315,7 +36340,7 @@ function RenderCompItem(props) {
|
|
|
36315
36340
|
getPopupContainer: function getPopupContainer() {
|
|
36316
36341
|
return document.body;
|
|
36317
36342
|
}
|
|
36318
|
-
})) || 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 && (
|
|
36343
|
+
})) || 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, {
|
|
36319
36344
|
disabled: disabled,
|
|
36320
36345
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36321
36346
|
businessType: "background-category",
|
|
@@ -36328,7 +36353,7 @@ function RenderCompItem(props) {
|
|
|
36328
36353
|
getPopupContainer: function getPopupContainer() {
|
|
36329
36354
|
return document.body;
|
|
36330
36355
|
}
|
|
36331
|
-
})) || 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 && (
|
|
36356
|
+
})) || 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, {
|
|
36332
36357
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36333
36358
|
style: styleCommon,
|
|
36334
36359
|
placeholder: '请选择'
|
|
@@ -36351,7 +36376,7 @@ function RenderCompItem(props) {
|
|
|
36351
36376
|
onChange: function onChange(value) {
|
|
36352
36377
|
handleEdit(ites.code, value);
|
|
36353
36378
|
}
|
|
36354
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
36379
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36355
36380
|
style: {
|
|
36356
36381
|
display: 'flex'
|
|
36357
36382
|
}
|
|
@@ -36863,7 +36888,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36863
36888
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36864
36889
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36865
36890
|
}
|
|
36866
|
-
var parallelTreeData =
|
|
36891
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
36867
36892
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36868
36893
|
var _i$key;
|
|
36869
36894
|
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);
|
|
@@ -37790,13 +37815,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37790
37815
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37791
37816
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37792
37817
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37793
|
-
var list =
|
|
37818
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37794
37819
|
var requiredList = list.filter(function (c) {
|
|
37795
37820
|
return c.required == 1;
|
|
37796
37821
|
}) || []; // 获取对象属性为true的集合
|
|
37797
37822
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37798
37823
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37799
|
-
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) ?
|
|
37824
|
+
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];
|
|
37800
37825
|
(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) {
|
|
37801
37826
|
if (requiredList.some(function (r) {
|
|
37802
37827
|
return r.id === e.elementId;
|
|
@@ -38385,7 +38410,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38385
38410
|
style: {
|
|
38386
38411
|
float: 'right'
|
|
38387
38412
|
}
|
|
38388
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (
|
|
38413
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38389
38414
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38390
38415
|
ruleGroupInfo: {
|
|
38391
38416
|
ruleGroupList: ruleGroupList,
|
|
@@ -38403,7 +38428,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38403
38428
|
callBack: function callBack(newData) {
|
|
38404
38429
|
upDateData(newData);
|
|
38405
38430
|
}
|
|
38406
|
-
}))) : (
|
|
38431
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38407
38432
|
style: {
|
|
38408
38433
|
padding: 20
|
|
38409
38434
|
}
|
|
@@ -38778,4 +38803,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
38778
38803
|
}, children));
|
|
38779
38804
|
};
|
|
38780
38805
|
|
|
38781
|
-
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 };
|
|
38806
|
+
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 };
|