@bit-sun/business-component 4.0.13-alpha.2 → 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/Business/BsSulaQueryTable/utils.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +1 -0
- package/dist/index.esm.js +514 -495
- package/dist/index.js +515 -496
- package/package.json +1 -1
- package/src/components/Business/BsSulaQueryTable/utils.tsx +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,181 +544,13 @@ 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");
|
|
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;
|
|
450
552
|
}
|
|
451
553
|
}
|
|
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");
|
|
544
|
-
}
|
|
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
|
-
}
|
|
592
554
|
|
|
593
555
|
var ENUM = {
|
|
594
556
|
// 浏览器缓存信息
|
|
@@ -1023,12 +985,6 @@ styleInject(css_248z);
|
|
|
1023
985
|
|
|
1024
986
|
var noImg = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2244px%22%20height%3D%2244px%22%20viewBox%3D%220%200%2044%2044%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E8%92%99%E7%89%88%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22path-1%22%20points%3D%22-1.56319402e-13%201.84741111e-13%2044%201.84741111e-13%2044%2044%20-1.56319402e-13%2044%22%3E%3C%2Fpolygon%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-354.000000%2C%20-672.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E4%B8%80%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%28240.000000%2C%20664.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%8D%95%E6%8D%AE%E7%BC%96%E5%8F%B7%22%20transform%3D%22translate%28106.000000%2C%200.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20transform%3D%22translate%288.000000%2C%208.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23E6F3FF%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M28.4962332%2C15%20C29.4007284%2C15%2030.1339666%2C15.7383979%2030.1339666%2C16.6492578%20L30.1339666%2C27.5596481%20C30.1339666%2C28.4705081%2029.4007284%2C29.208906%2028.4962332%2C29.208906%20L14.6377334%2C29.208906%20C13.7332382%2C29.208906%2013%2C28.4705081%2013%2C27.5596481%20L13%2C16.6492578%20C13%2C15.7383979%2013.7332382%2C15%2014.6377334%2C15%20L28.4956873%2C15%20L28.4962332%2C15%20Z%20M28.4962332%2C16.6492578%20L14.6377334%2C16.6492578%20L14.6377334%2C27.5596481%20L28.4956873%2C27.5596481%20L28.4956873%2C16.6492578%20L28.4962332%2C16.6492578%20Z%20M26.6996397%2C18.6899395%20L26.6996397%2C20.3369983%20C24.5001638%2C20.357889%2023.12283%2C21.0967565%2022.4448084%2C22.5305113%20L22.3847582%2C22.6624519%20L22.3137897%2C22.8224299%20C21.2241511%2C25.1880154%2019.0819959%2C26.322155%2016.0560105%2C26.1940627%20L16.243258%2C26.2001099%20L16.2443498%2C24.5508521%20C18.5633803%2C24.6206707%2020.0357026%2C23.8290269%2020.8190851%2C22.1473337%20L20.8824107%2C22.006597%20L20.9479201%2C21.8603628%20C21.9158205%2C19.7680044%2023.8767333%2C18.7196262%2026.6996397%2C18.6899395%20L26.6996397%2C18.6899395%20Z%20M17.5583579%2C18.3435954%20C18.1149239%2C18.3435954%2018.5661099%2C18.7979562%2018.5661099%2C19.3584387%20C18.5661099%2C19.9189212%2018.1149239%2C20.373282%2017.5583579%2C20.373282%20C17.0016411%2C20.373282%2016.550333%2C19.9187981%2016.550333%2C19.3581638%20C16.550333%2C18.7975295%2017.0016411%2C18.3430456%2017.5583579%2C18.3430456%20L17.5583579%2C18.3435954%20Z%22%20fill%3D%22%23A3D1FF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
1025
987
|
|
|
1026
|
-
module.exports = require('./server.node');
|
|
1027
|
-
|
|
1028
|
-
var ReactDOMServer = /*#__PURE__*/Object.freeze({
|
|
1029
|
-
__proto__: null
|
|
1030
|
-
});
|
|
1031
|
-
|
|
1032
988
|
// 带有toptile 清提示 并且会换行的
|
|
1033
989
|
var handleTextDouble = function handleTextDouble(textOne, textTwo) {
|
|
1034
990
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -1103,13 +1059,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1103
1059
|
imgHtml.innerHTML = str;
|
|
1104
1060
|
}
|
|
1105
1061
|
// 测试使用 测试类型缩小 end
|
|
1106
|
-
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", {
|
|
1107
1063
|
className: "clomnsImg"
|
|
1108
1064
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1109
1065
|
src: url,
|
|
1110
1066
|
width: "16px",
|
|
1111
1067
|
height: "16px"
|
|
1112
|
-
}, paramsObj)))) : (
|
|
1068
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1113
1069
|
className: "clomnsImg2"
|
|
1114
1070
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1115
1071
|
src: noImg
|
|
@@ -1231,7 +1187,7 @@ var authFn = function authFn(code) {
|
|
|
1231
1187
|
};
|
|
1232
1188
|
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1233
1189
|
var renderToString = function renderToString(render) {
|
|
1234
|
-
return
|
|
1190
|
+
return render;
|
|
1235
1191
|
};
|
|
1236
1192
|
|
|
1237
1193
|
function downloadExcel(data, fileName, isResUrl) {
|
|
@@ -1245,7 +1201,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1245
1201
|
}
|
|
1246
1202
|
save_link.click();
|
|
1247
1203
|
}
|
|
1248
|
-
var
|
|
1204
|
+
var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
1249
1205
|
return data.map(function (item) {
|
|
1250
1206
|
if (!item.name || !item.path) {
|
|
1251
1207
|
return null;
|
|
@@ -1265,7 +1221,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1265
1221
|
authority: item.authority || parentAuthority
|
|
1266
1222
|
});
|
|
1267
1223
|
if (item.routes) {
|
|
1268
|
-
var children =
|
|
1224
|
+
var children = _formatter(item.routes, item.authority, locale);
|
|
1269
1225
|
// Reduce memory usage
|
|
1270
1226
|
result.children = children;
|
|
1271
1227
|
}
|
|
@@ -1275,7 +1231,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1275
1231
|
return item;
|
|
1276
1232
|
});
|
|
1277
1233
|
};
|
|
1278
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1234
|
+
var memoizeOneFormatter = memoizeOne(_formatter, isEqual);
|
|
1279
1235
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1280
1236
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1281
1237
|
if (backHistoryPath) {
|
|
@@ -1584,7 +1540,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1584
1540
|
// sheepMap是表头字段中英文映射
|
|
1585
1541
|
// sheetCount:表的数量,默认一张
|
|
1586
1542
|
var resolveFile = /*#__PURE__*/function () {
|
|
1587
|
-
var _ref3 = _asyncToGenerator(
|
|
1543
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1588
1544
|
var config,
|
|
1589
1545
|
data,
|
|
1590
1546
|
_args = arguments;
|
|
@@ -1623,7 +1579,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1623
1579
|
}();
|
|
1624
1580
|
//读取文件
|
|
1625
1581
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1626
|
-
var _ref4 = _asyncToGenerator(
|
|
1582
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1627
1583
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1628
1584
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1629
1585
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1716,14 +1672,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1716
1672
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1717
1673
|
|
|
1718
1674
|
// 获取树平行结构
|
|
1719
|
-
var
|
|
1675
|
+
var _coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1720
1676
|
var childrenKey = chilKey || 'children';
|
|
1721
1677
|
treeData.forEach(function (el) {
|
|
1722
1678
|
var _el$childrenKey;
|
|
1723
1679
|
result.push(el);
|
|
1724
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) {
|
|
1725
1681
|
// 子级递归
|
|
1726
|
-
|
|
1682
|
+
_coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1727
1683
|
}
|
|
1728
1684
|
});
|
|
1729
1685
|
return result;
|
|
@@ -2000,13 +1956,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
2000
1956
|
imgHtml.innerHTML = str;
|
|
2001
1957
|
}
|
|
2002
1958
|
// 测试使用 测试类型缩小 end
|
|
2003
|
-
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", {
|
|
2004
1960
|
className: "clomnsImg"
|
|
2005
1961
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
2006
1962
|
src: url,
|
|
2007
1963
|
width: "16px",
|
|
2008
1964
|
height: "16px"
|
|
2009
|
-
}, paramsObj)))) : (
|
|
1965
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2010
1966
|
src: noImg
|
|
2011
1967
|
}))));
|
|
2012
1968
|
};
|
|
@@ -2068,7 +2024,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2068
2024
|
}
|
|
2069
2025
|
});
|
|
2070
2026
|
};
|
|
2071
|
-
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({
|
|
2072
2028
|
disabled: disabled,
|
|
2073
2029
|
onChange: function onChange(e) {
|
|
2074
2030
|
var v = e.target.value;
|
|
@@ -2078,7 +2034,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2078
2034
|
width: 170
|
|
2079
2035
|
},
|
|
2080
2036
|
value: inputValue
|
|
2081
|
-
}, inpProps))), type === 'number' && (
|
|
2037
|
+
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2082
2038
|
disabled: disabled,
|
|
2083
2039
|
onBlur: function onBlur(e) {
|
|
2084
2040
|
var v = parseFloat(e.target.value);
|
|
@@ -2457,16 +2413,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2457
2413
|
var handleExportBarCode = handleExport;
|
|
2458
2414
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2459
2415
|
var routerMap = {};
|
|
2460
|
-
var
|
|
2416
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
2461
2417
|
data.forEach(function (menuItem) {
|
|
2462
2418
|
if (menuItem.children) {
|
|
2463
|
-
|
|
2419
|
+
_flattenMenuData(menuItem.children);
|
|
2464
2420
|
}
|
|
2465
2421
|
// Reduce memory usage
|
|
2466
2422
|
routerMap[menuItem.path] = menuItem;
|
|
2467
2423
|
});
|
|
2468
2424
|
};
|
|
2469
|
-
|
|
2425
|
+
_flattenMenuData(menuData);
|
|
2470
2426
|
return routerMap;
|
|
2471
2427
|
};
|
|
2472
2428
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2609,7 +2565,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2609
2565
|
return request$1(url, parms).then(handleResponseData);
|
|
2610
2566
|
};
|
|
2611
2567
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2612
|
-
var _ref2 = _asyncToGenerator(
|
|
2568
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2613
2569
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2614
2570
|
while (1) switch (_context.prev = _context.next) {
|
|
2615
2571
|
case 0:
|
|
@@ -3287,7 +3243,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3287
3243
|
style: {
|
|
3288
3244
|
color: 'red'
|
|
3289
3245
|
}
|
|
3290
|
-
}, "\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, {
|
|
3291
3247
|
trigger: ['click'],
|
|
3292
3248
|
overlay: this.menuList,
|
|
3293
3249
|
placement: "bottomRight"
|
|
@@ -3962,7 +3918,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3962
3918
|
placement: "bottomLeft"
|
|
3963
3919
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3964
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"))
|
|
3965
|
-
}, /*#__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, {
|
|
3966
3922
|
trigger: ['click'],
|
|
3967
3923
|
overlay: this.menuList,
|
|
3968
3924
|
placement: "bottomRight"
|
|
@@ -4481,7 +4437,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4481
4437
|
destroyTooltipOnHide: true,
|
|
4482
4438
|
placement: "topRight",
|
|
4483
4439
|
autoAdjustOverflow: false,
|
|
4484
|
-
title: (
|
|
4440
|
+
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4485
4441
|
style: {
|
|
4486
4442
|
margin: '6px 8px 0px'
|
|
4487
4443
|
},
|
|
@@ -4508,6 +4464,66 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4508
4464
|
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
4509
4465
|
};
|
|
4510
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
|
+
// ------------------------------------------ 选中数据展示 相关处理--结束---------------------------------------
|
|
4511
4527
|
|
|
4512
4528
|
var getValue = function getValue(value, selectMode) {
|
|
4513
4529
|
var _value$split;
|
|
@@ -4712,14 +4728,14 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4712
4728
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4713
4729
|
});
|
|
4714
4730
|
},
|
|
4715
|
-
notFoundContent: fetching ? (
|
|
4731
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4716
4732
|
size: "small",
|
|
4717
4733
|
className: 'searchSelectSpin'
|
|
4718
|
-
})) : (
|
|
4734
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4719
4735
|
style: {
|
|
4720
4736
|
textAlign: 'center'
|
|
4721
4737
|
}
|
|
4722
|
-
}, /*#__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"))),
|
|
4723
4739
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
4724
4740
|
return triggerNode.parentElement;
|
|
4725
4741
|
}
|
|
@@ -4947,7 +4963,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4947
4963
|
title: item.name,
|
|
4948
4964
|
className: "propertyGroup_checkbox_container"
|
|
4949
4965
|
}, item.name));
|
|
4950
|
-
}), !!notCommonUseProperty.length && (
|
|
4966
|
+
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
4951
4967
|
style: {
|
|
4952
4968
|
width: '50px',
|
|
4953
4969
|
cursor: 'pointer',
|
|
@@ -4960,7 +4976,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4960
4976
|
setShowNotCommon(!showNotCommon);
|
|
4961
4977
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4962
4978
|
}
|
|
4963
|
-
}, 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"))))));
|
|
4964
4980
|
};
|
|
4965
4981
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4966
4982
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5190,7 +5206,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5190
5206
|
propertyData: item,
|
|
5191
5207
|
handleProperyItemChange: handleProperyItemChange
|
|
5192
5208
|
});
|
|
5193
|
-
}))), !!notCommonProperty.length && (
|
|
5209
|
+
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5194
5210
|
style: {
|
|
5195
5211
|
width: '50px',
|
|
5196
5212
|
cursor: 'pointer',
|
|
@@ -5200,7 +5216,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5200
5216
|
onClick: function onClick() {
|
|
5201
5217
|
return setShowNotCommon(!showNotCommon);
|
|
5202
5218
|
}
|
|
5203
|
-
}, 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"))))))));
|
|
5204
5220
|
};
|
|
5205
5221
|
|
|
5206
5222
|
var Option$1 = Select.Option;
|
|
@@ -5214,7 +5230,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5214
5230
|
modalTableProps = _props$modalTableProp === void 0 ? {} : _props$modalTableProp,
|
|
5215
5231
|
_props$labelInValue = props.labelInValue,
|
|
5216
5232
|
labelInValue = _props$labelInValue === void 0 ? false : _props$labelInValue,
|
|
5217
|
-
|
|
5233
|
+
rCTemp = props.requestConfig,
|
|
5218
5234
|
ctx = props.ctx,
|
|
5219
5235
|
_props$onlyShowStr = props.onlyShowStr,
|
|
5220
5236
|
sourceName = props.sourceName,
|
|
@@ -5226,7 +5242,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5226
5242
|
fieldComponent = props.fieldComponent,
|
|
5227
5243
|
onSaveCallback = props.onSaveCallback,
|
|
5228
5244
|
selectBusinessType = props.selectBusinessType;
|
|
5229
|
-
var _ref =
|
|
5245
|
+
var _ref = rCTemp || {},
|
|
5230
5246
|
url = _ref.url,
|
|
5231
5247
|
_ref$method = _ref.method,
|
|
5232
5248
|
method = _ref$method === void 0 ? 'get' : _ref$method,
|
|
@@ -5253,6 +5269,26 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5253
5269
|
noOperate = _ref.noOperate,
|
|
5254
5270
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
5255
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);
|
|
5256
5292
|
var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'supplierCode');
|
|
5257
5293
|
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
5258
5294
|
var initVal = value || (selectMode ? [] : null);
|
|
@@ -5287,7 +5323,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5287
5323
|
total: 0,
|
|
5288
5324
|
current: 1
|
|
5289
5325
|
});
|
|
5290
|
-
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);
|
|
5291
5327
|
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
5292
5328
|
var isHaveDValue = function isHaveDValue() {
|
|
5293
5329
|
var formValueList = [];
|
|
@@ -5473,6 +5509,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5473
5509
|
});
|
|
5474
5510
|
// 获取数据源 (type: 1下拉框 2/3弹框 不传值默认为下拉框)
|
|
5475
5511
|
var getData = function getData() {
|
|
5512
|
+
var _method$toLocaleLower;
|
|
5476
5513
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
5477
5514
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
5478
5515
|
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
@@ -5516,7 +5553,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5516
5553
|
queryParams[selectParamsKey] = searchValue;
|
|
5517
5554
|
}
|
|
5518
5555
|
var getRequest;
|
|
5519
|
-
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);
|
|
5520
5557
|
if (['post', 'patch', 'put'].includes(methodName)) {
|
|
5521
5558
|
getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams));
|
|
5522
5559
|
} else {
|
|
@@ -6181,59 +6218,36 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6181
6218
|
}
|
|
6182
6219
|
})));
|
|
6183
6220
|
};
|
|
6184
|
-
var getShowLabelTextStr = function getShowLabelTextStr(kongValue) {
|
|
6185
|
-
if (selectMode) {
|
|
6186
|
-
var _value$map;
|
|
6187
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
6188
|
-
return item.label || item.text || '';
|
|
6189
|
-
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
6190
|
-
}
|
|
6191
|
-
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
6192
|
-
};
|
|
6193
|
-
var getSelectValueText = function getSelectValueText(v) {
|
|
6194
|
-
var _filter, _filter$;
|
|
6195
|
-
return ((_filter = (items || []).filter(function (item) {
|
|
6196
|
-
return item.value === v;
|
|
6197
|
-
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
6198
|
-
};
|
|
6199
|
-
var getShowValueStr = function getShowValueStr(kongValue) {
|
|
6200
|
-
if (selectMode) {
|
|
6201
|
-
var _value$map2;
|
|
6202
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
6203
|
-
return getSelectValueText(item);
|
|
6204
|
-
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
6205
|
-
}
|
|
6206
|
-
return getSelectValueText(value) || kongValue;
|
|
6207
|
-
};
|
|
6208
|
-
var getShowStr = function getShowStr() {
|
|
6209
|
-
// 优先使用业务使用传入的展示
|
|
6210
|
-
if (viewShowValueStr) return viewShowValueStr;
|
|
6211
|
-
var kongValue = '无';
|
|
6212
|
-
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
6213
|
-
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
6214
|
-
if (labelInValue) {
|
|
6215
|
-
return getShowLabelTextStr(kongValue);
|
|
6216
|
-
}
|
|
6217
|
-
return getShowValueStr(kongValue);
|
|
6218
|
-
};
|
|
6219
6221
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6220
6222
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6221
6223
|
className: 'search_select'
|
|
6222
|
-
}, fieldComponent ? (
|
|
6224
|
+
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6223
6225
|
onClick: function onClick() {
|
|
6224
6226
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6225
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);
|
|
6226
6228
|
showModal();
|
|
6227
6229
|
}
|
|
6228
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
6229
|
-
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
|
+
}),
|
|
6230
6238
|
style: {
|
|
6231
6239
|
overflow: 'hidden',
|
|
6232
6240
|
textOverflow: 'ellipsis',
|
|
6233
6241
|
whiteSpace: 'nowrap'
|
|
6234
6242
|
},
|
|
6235
6243
|
className: 'search_select_show'
|
|
6236
|
-
}, getShowStr(
|
|
6244
|
+
}, getShowStr({
|
|
6245
|
+
viewShowValueStr: viewShowValueStr,
|
|
6246
|
+
labelInValue: labelInValue,
|
|
6247
|
+
selectMode: selectMode,
|
|
6248
|
+
value: value,
|
|
6249
|
+
items: items
|
|
6250
|
+
}))) : /*#__PURE__*/React$1.createElement("div", {
|
|
6237
6251
|
className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
|
|
6238
6252
|
id: "search_select_div_".concat(uniqueValue)
|
|
6239
6253
|
}, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
@@ -6252,10 +6266,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6252
6266
|
dropdownRender: function dropdownRender(menu) {
|
|
6253
6267
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6254
6268
|
},
|
|
6255
|
-
notFoundContent: fetching ? (
|
|
6269
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6256
6270
|
size: "small",
|
|
6257
6271
|
className: 'searchSelectSpin'
|
|
6258
|
-
})) : (
|
|
6272
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6259
6273
|
style: {
|
|
6260
6274
|
textAlign: 'center'
|
|
6261
6275
|
}
|
|
@@ -6295,7 +6309,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6295
6309
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6296
6310
|
filterTxt: searchValue
|
|
6297
6311
|
}));
|
|
6298
|
-
}))), needModalTable && isModalVisible && (
|
|
6312
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6299
6313
|
maskClosable: false,
|
|
6300
6314
|
destroyOnClose: true,
|
|
6301
6315
|
width: "80%",
|
|
@@ -6892,7 +6906,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6892
6906
|
style: {
|
|
6893
6907
|
width: 525
|
|
6894
6908
|
}
|
|
6895
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
6909
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6896
6910
|
checked: !dataSource.some(function (item) {
|
|
6897
6911
|
if (item.hidden) return true;
|
|
6898
6912
|
return false;
|
|
@@ -6930,13 +6944,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6930
6944
|
_this2.onChange(e, item.title);
|
|
6931
6945
|
}
|
|
6932
6946
|
}, item.title);
|
|
6933
|
-
}), !!seatchDataSource.length && (
|
|
6947
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6934
6948
|
style: {
|
|
6935
6949
|
width: '144px'
|
|
6936
6950
|
}
|
|
6937
|
-
})), !seatchDataSource.length && (
|
|
6951
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6938
6952
|
className: 'sort_table_column_all_empty'
|
|
6939
|
-
}, "\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", {
|
|
6940
6954
|
className: 'sort_table_column_special'
|
|
6941
6955
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6942
6956
|
className: 'sort_table_column_all'
|
|
@@ -7125,7 +7139,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7125
7139
|
});
|
|
7126
7140
|
};
|
|
7127
7141
|
// 格式化树选择器数据源
|
|
7128
|
-
var
|
|
7142
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7129
7143
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7130
7144
|
return {
|
|
7131
7145
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7135,7 +7149,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7135
7149
|
isLeaf: !haveChildren,
|
|
7136
7150
|
disabled: haveChildren,
|
|
7137
7151
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7138
|
-
return
|
|
7152
|
+
return _mapSearchTree(i, resKeyValue);
|
|
7139
7153
|
}) : []
|
|
7140
7154
|
};
|
|
7141
7155
|
};
|
|
@@ -7144,7 +7158,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7144
7158
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7145
7159
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7146
7160
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7147
|
-
return
|
|
7161
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
7148
7162
|
}) || [];
|
|
7149
7163
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7150
7164
|
};
|
|
@@ -7315,7 +7329,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7315
7329
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7316
7330
|
// FIXME: 特殊业务逻辑
|
|
7317
7331
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7318
|
-
var _ref2 = _asyncToGenerator(
|
|
7332
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7319
7333
|
var result;
|
|
7320
7334
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7321
7335
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7568,7 +7582,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7568
7582
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7569
7583
|
value: text || null,
|
|
7570
7584
|
onChange: function () {
|
|
7571
|
-
var _onChange = _asyncToGenerator(
|
|
7585
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7572
7586
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7573
7587
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7574
7588
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8176,10 +8190,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8176
8190
|
var newColumns = arr.map(function (col) {
|
|
8177
8191
|
return _objectSpread2({}, col);
|
|
8178
8192
|
});
|
|
8179
|
-
var
|
|
8193
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8180
8194
|
var i = indexArr.shift();
|
|
8181
8195
|
if (indexArr.length > 0) {
|
|
8182
|
-
|
|
8196
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8183
8197
|
} else {
|
|
8184
8198
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8185
8199
|
width: size.width
|
|
@@ -8187,7 +8201,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8187
8201
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8188
8202
|
}
|
|
8189
8203
|
};
|
|
8190
|
-
|
|
8204
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8191
8205
|
callback(newColumns);
|
|
8192
8206
|
};
|
|
8193
8207
|
};
|
|
@@ -8197,13 +8211,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8197
8211
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8198
8212
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8199
8213
|
};
|
|
8200
|
-
var
|
|
8214
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8201
8215
|
arr.forEach(function (item, index) {
|
|
8202
8216
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8203
8217
|
return i || i === 0;
|
|
8204
8218
|
});
|
|
8205
8219
|
if (noEmptyArray$1(item.children)) {
|
|
8206
|
-
|
|
8220
|
+
_handleColumns(item.children, indexArrInside);
|
|
8207
8221
|
} else {
|
|
8208
8222
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8209
8223
|
item.onHeaderCell = function (column) {
|
|
@@ -8219,14 +8233,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8219
8233
|
handleAntdColumnsSpecialParams(item);
|
|
8220
8234
|
return _objectSpread2({}, item);
|
|
8221
8235
|
});
|
|
8222
|
-
|
|
8236
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
8223
8237
|
return setShowToChooseColumnsCallback(res);
|
|
8224
8238
|
});
|
|
8225
8239
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8226
8240
|
handleAntdColumnsSpecialParams(item);
|
|
8227
8241
|
return _objectSpread2({}, item);
|
|
8228
8242
|
});
|
|
8229
|
-
|
|
8243
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8230
8244
|
return setShowColumnsCallback(res);
|
|
8231
8245
|
});
|
|
8232
8246
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8237,7 +8251,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8237
8251
|
id: "add_select_div_".concat(uniqueValue)
|
|
8238
8252
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
8239
8253
|
onClick: handleShowModal
|
|
8240
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
8254
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
8241
8255
|
width: '1200px',
|
|
8242
8256
|
style: {
|
|
8243
8257
|
top: 20
|
|
@@ -9151,7 +9165,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9151
9165
|
});
|
|
9152
9166
|
};
|
|
9153
9167
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9154
|
-
var _ref4 = _asyncToGenerator(
|
|
9168
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9155
9169
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9156
9170
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9157
9171
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9234,10 +9248,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9234
9248
|
var newColumns = arr.map(function (col) {
|
|
9235
9249
|
return _objectSpread2({}, col);
|
|
9236
9250
|
});
|
|
9237
|
-
var
|
|
9251
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
9238
9252
|
var i = indexArr.shift();
|
|
9239
9253
|
if (indexArr.length > 0) {
|
|
9240
|
-
|
|
9254
|
+
_handleIndex(arr[i].children, indexArr);
|
|
9241
9255
|
} else {
|
|
9242
9256
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9243
9257
|
width: size.width
|
|
@@ -9245,17 +9259,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9245
9259
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9246
9260
|
}
|
|
9247
9261
|
};
|
|
9248
|
-
|
|
9262
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
9249
9263
|
callback(newColumns);
|
|
9250
9264
|
};
|
|
9251
9265
|
};
|
|
9252
|
-
var
|
|
9266
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9253
9267
|
arr.forEach(function (item, index) {
|
|
9254
9268
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9255
9269
|
return i || i === 0;
|
|
9256
9270
|
});
|
|
9257
9271
|
if (noEmptyArray$1(item.children)) {
|
|
9258
|
-
|
|
9272
|
+
_handleColumns(item.children, indexArrInside);
|
|
9259
9273
|
} else {
|
|
9260
9274
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9261
9275
|
item.onHeaderCell = function (column) {
|
|
@@ -9271,7 +9285,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9271
9285
|
handleAntdColumnsSpecialParams(item);
|
|
9272
9286
|
return _objectSpread2({}, item);
|
|
9273
9287
|
});
|
|
9274
|
-
|
|
9288
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
9275
9289
|
return setShowColumnsCallback(res);
|
|
9276
9290
|
});
|
|
9277
9291
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9586,7 +9600,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9586
9600
|
});
|
|
9587
9601
|
};
|
|
9588
9602
|
// 格式化树选择器数据源
|
|
9589
|
-
var
|
|
9603
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9590
9604
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9591
9605
|
return {
|
|
9592
9606
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9596,7 +9610,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9596
9610
|
isLeaf: !haveChildren,
|
|
9597
9611
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9598
9612
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9599
|
-
return
|
|
9613
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9600
9614
|
}) : []
|
|
9601
9615
|
};
|
|
9602
9616
|
};
|
|
@@ -9610,7 +9624,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9610
9624
|
disabledJudge = false;
|
|
9611
9625
|
}
|
|
9612
9626
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9613
|
-
return
|
|
9627
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9614
9628
|
}) || [];
|
|
9615
9629
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9616
9630
|
};
|
|
@@ -9888,7 +9902,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9888
9902
|
sourceName: 'qp-skuCode-in',
|
|
9889
9903
|
specialBracket: true,
|
|
9890
9904
|
otherParams: {
|
|
9891
|
-
'ownOrgSign': getCurrentTargetBgId()
|
|
9905
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
9906
|
+
'ctl-count': true
|
|
9892
9907
|
} // 默认参数
|
|
9893
9908
|
}
|
|
9894
9909
|
}
|
|
@@ -9911,7 +9926,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9911
9926
|
mappingTextField: 'name',
|
|
9912
9927
|
mappingValueField: 'itemCode',
|
|
9913
9928
|
sourceName: 'qp-itemCode-in',
|
|
9914
|
-
specialBracket: true
|
|
9929
|
+
specialBracket: true,
|
|
9930
|
+
otherParams: {
|
|
9931
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
9932
|
+
'ctl-count': true
|
|
9933
|
+
} // 默认参数
|
|
9915
9934
|
}
|
|
9916
9935
|
}
|
|
9917
9936
|
}
|
|
@@ -13715,7 +13734,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13715
13734
|
};
|
|
13716
13735
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
13717
13736
|
onClick: handleShowModal
|
|
13718
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
13737
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13719
13738
|
onOk: handleOk,
|
|
13720
13739
|
onCancel: handleCancel,
|
|
13721
13740
|
destroyOnClose: true,
|
|
@@ -13834,7 +13853,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13834
13853
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13835
13854
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13836
13855
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13837
|
-
var
|
|
13856
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13838
13857
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13839
13858
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13840
13859
|
return {
|
|
@@ -13846,7 +13865,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13846
13865
|
isLeaf: !haveChildren,
|
|
13847
13866
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13848
13867
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13849
|
-
return
|
|
13868
|
+
return _mapSearchTree(i);
|
|
13850
13869
|
}) : []
|
|
13851
13870
|
};
|
|
13852
13871
|
};
|
|
@@ -13864,8 +13883,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13864
13883
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13865
13884
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
13866
13885
|
headers: headers
|
|
13867
|
-
}).then(
|
|
13868
|
-
var _ref = _asyncToGenerator(
|
|
13886
|
+
}).then(/*#__PURE__*/function () {
|
|
13887
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13869
13888
|
var _ctx$form;
|
|
13870
13889
|
var resData, coverData, data, dataList;
|
|
13871
13890
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13892,7 +13911,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13892
13911
|
case 9:
|
|
13893
13912
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13894
13913
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13895
|
-
return
|
|
13914
|
+
return _mapSearchTree(ites);
|
|
13896
13915
|
}) || [];
|
|
13897
13916
|
case 11:
|
|
13898
13917
|
_context.next = 14;
|
|
@@ -13930,11 +13949,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13930
13949
|
return _formatResult;
|
|
13931
13950
|
}
|
|
13932
13951
|
};
|
|
13933
|
-
var
|
|
13952
|
+
var _parallelData = function parallelData(data, result) {
|
|
13934
13953
|
data.forEach(function (i) {
|
|
13935
13954
|
result.push(i);
|
|
13936
13955
|
if (i[treeChildrenRoom]) {
|
|
13937
|
-
|
|
13956
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
13938
13957
|
}
|
|
13939
13958
|
});
|
|
13940
13959
|
return result;
|
|
@@ -13974,7 +13993,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13974
13993
|
var _ctx$form2;
|
|
13975
13994
|
var handleData = formatData(data);
|
|
13976
13995
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13977
|
-
var parallelTreeData =
|
|
13996
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13978
13997
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13979
13998
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13980
13999
|
onChangeName && onChangeName(dataName);
|
|
@@ -14017,7 +14036,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14017
14036
|
var getShowStr = function getShowStr() {
|
|
14018
14037
|
var isMultiple = multiple || treeCheckable;
|
|
14019
14038
|
var kongValue = '无';
|
|
14020
|
-
var parallelTreeData =
|
|
14039
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
14021
14040
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14022
14041
|
if (isMultiple) {
|
|
14023
14042
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14029,7 +14048,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14029
14048
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14030
14049
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14031
14050
|
className: 'tree_search_select'
|
|
14032
|
-
}, isShouldShowStr ? (
|
|
14051
|
+
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14033
14052
|
title: getShowStr(),
|
|
14034
14053
|
style: {
|
|
14035
14054
|
overflow: 'hidden',
|
|
@@ -14037,7 +14056,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14037
14056
|
whiteSpace: 'nowrap'
|
|
14038
14057
|
},
|
|
14039
14058
|
className: 'search_select_show'
|
|
14040
|
-
}, getShowStr())) : (
|
|
14059
|
+
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14041
14060
|
treeCheckable: treeCheckable,
|
|
14042
14061
|
maxTagCount: maxTagCount,
|
|
14043
14062
|
showSearch: showSearch,
|
|
@@ -14234,7 +14253,7 @@ var index$2 = (function (props) {
|
|
|
14234
14253
|
} : {}
|
|
14235
14254
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
14236
14255
|
className: 'status-label-operate'
|
|
14237
|
-
}, item.isDone ? (
|
|
14256
|
+
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14238
14257
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14239
14258
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
14240
14259
|
style: {
|
|
@@ -15015,7 +15034,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15015
15034
|
style: {
|
|
15016
15035
|
width: 525
|
|
15017
15036
|
}
|
|
15018
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
15037
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15019
15038
|
checked: !dataSource.some(function (item) {
|
|
15020
15039
|
if (item.hidden) return true;
|
|
15021
15040
|
return false;
|
|
@@ -15053,13 +15072,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15053
15072
|
_this2.onChange(e, item.title);
|
|
15054
15073
|
}
|
|
15055
15074
|
}, item.title);
|
|
15056
|
-
}), !!seatchDataSource.length && (
|
|
15075
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15057
15076
|
style: {
|
|
15058
15077
|
width: '144px'
|
|
15059
15078
|
}
|
|
15060
|
-
})), !seatchDataSource.length && (
|
|
15079
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15061
15080
|
className: 'sort_table_column_all_empty'
|
|
15062
|
-
}, "\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", {
|
|
15063
15082
|
className: 'sort_table_column_special'
|
|
15064
15083
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15065
15084
|
className: 'sort_table_column_all'
|
|
@@ -15238,10 +15257,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15238
15257
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15239
15258
|
return _objectSpread2({}, col);
|
|
15240
15259
|
});
|
|
15241
|
-
var
|
|
15260
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15242
15261
|
var i = indexArr.shift();
|
|
15243
15262
|
if (indexArr.length > 0) {
|
|
15244
|
-
|
|
15263
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15245
15264
|
} else {
|
|
15246
15265
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15247
15266
|
width: size.width
|
|
@@ -15249,7 +15268,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15249
15268
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15250
15269
|
}
|
|
15251
15270
|
};
|
|
15252
|
-
|
|
15271
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15253
15272
|
_this.setState({
|
|
15254
15273
|
showColumns: _toConsumableArray(newColumns)
|
|
15255
15274
|
});
|
|
@@ -15290,7 +15309,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15290
15309
|
};
|
|
15291
15310
|
setIsResizing(true);
|
|
15292
15311
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15293
|
-
document.addEventListener('mouseup',
|
|
15312
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
15294
15313
|
};
|
|
15295
15314
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15296
15315
|
e.stopPropagation();
|
|
@@ -15306,9 +15325,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15306
15325
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15307
15326
|
}
|
|
15308
15327
|
};
|
|
15309
|
-
var
|
|
15328
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
15310
15329
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15311
|
-
document.removeEventListener('mouseup',
|
|
15330
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
15312
15331
|
setIsResizing(false);
|
|
15313
15332
|
};
|
|
15314
15333
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15429,13 +15448,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15429
15448
|
showSummary = summary;
|
|
15430
15449
|
}
|
|
15431
15450
|
}
|
|
15432
|
-
var
|
|
15451
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15433
15452
|
arr.forEach(function (item, index) {
|
|
15434
15453
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15435
15454
|
return i || i === 0;
|
|
15436
15455
|
});
|
|
15437
15456
|
if (noEmptyArray$1(item.children)) {
|
|
15438
|
-
|
|
15457
|
+
_handleColumns(item.children, indexArrInside);
|
|
15439
15458
|
} else {
|
|
15440
15459
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15441
15460
|
item.onHeaderCell = function (column) {
|
|
@@ -15451,7 +15470,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15451
15470
|
handleBssulaColumnsSpecialParams(item);
|
|
15452
15471
|
return _objectSpread2({}, item);
|
|
15453
15472
|
});
|
|
15454
|
-
|
|
15473
|
+
_handleColumns(showCol, []);
|
|
15455
15474
|
if (dynamicColumns.length) {
|
|
15456
15475
|
showCol = this.handledynamicColumns(showCol);
|
|
15457
15476
|
}
|
|
@@ -15492,7 +15511,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15492
15511
|
cell: this.ResizeableTitle
|
|
15493
15512
|
}
|
|
15494
15513
|
}
|
|
15495
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15514
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15496
15515
|
summary: summary
|
|
15497
15516
|
})));
|
|
15498
15517
|
}
|
|
@@ -15589,10 +15608,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15589
15608
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15590
15609
|
return _objectSpread2({}, col);
|
|
15591
15610
|
});
|
|
15592
|
-
var
|
|
15611
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15593
15612
|
var i = indexArr.shift();
|
|
15594
15613
|
if (indexArr.length > 0) {
|
|
15595
|
-
|
|
15614
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15596
15615
|
} else {
|
|
15597
15616
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15598
15617
|
width: size.width
|
|
@@ -15600,7 +15619,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15600
15619
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15601
15620
|
}
|
|
15602
15621
|
};
|
|
15603
|
-
|
|
15622
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15604
15623
|
_this.setState({
|
|
15605
15624
|
showColumns: _toConsumableArray(newColumns)
|
|
15606
15625
|
});
|
|
@@ -15676,13 +15695,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15676
15695
|
showSummary = summary;
|
|
15677
15696
|
}
|
|
15678
15697
|
}
|
|
15679
|
-
var
|
|
15698
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15680
15699
|
arr.forEach(function (item, index) {
|
|
15681
15700
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15682
15701
|
return i || i === 0;
|
|
15683
15702
|
});
|
|
15684
15703
|
if (noEmptyArray$1(item.children)) {
|
|
15685
|
-
|
|
15704
|
+
_handleColumns(item.children, indexArrInside);
|
|
15686
15705
|
} else {
|
|
15687
15706
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15688
15707
|
item.onHeaderCell = function (column) {
|
|
@@ -15698,7 +15717,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15698
15717
|
handleAntdColumnsSpecialParams(item);
|
|
15699
15718
|
return _objectSpread2({}, item);
|
|
15700
15719
|
});
|
|
15701
|
-
|
|
15720
|
+
_handleColumns(showCol, []);
|
|
15702
15721
|
if (dynamicColumns.length) {
|
|
15703
15722
|
showCol = this.handledynamicColumns(showCol);
|
|
15704
15723
|
}
|
|
@@ -15738,7 +15757,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15738
15757
|
cell: this.ResizeableTitle
|
|
15739
15758
|
}
|
|
15740
15759
|
}
|
|
15741
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15760
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15742
15761
|
summary: summary
|
|
15743
15762
|
})));
|
|
15744
15763
|
}
|
|
@@ -15798,20 +15817,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15798
15817
|
};
|
|
15799
15818
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15800
15819
|
var routerMap = {};
|
|
15801
|
-
var
|
|
15820
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
15802
15821
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15803
15822
|
data.forEach(function (menuItem) {
|
|
15804
15823
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15805
15824
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15806
15825
|
});
|
|
15807
15826
|
if (newMenuItem.children) {
|
|
15808
|
-
|
|
15827
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
15809
15828
|
}
|
|
15810
15829
|
// Reduce memory usage
|
|
15811
15830
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15812
15831
|
});
|
|
15813
15832
|
};
|
|
15814
|
-
|
|
15833
|
+
_flattenMenuData2(menuData, {});
|
|
15815
15834
|
return routerMap;
|
|
15816
15835
|
};
|
|
15817
15836
|
// mode类型判断
|
|
@@ -16137,7 +16156,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16137
16156
|
display: 'flex',
|
|
16138
16157
|
gap: '8px'
|
|
16139
16158
|
}
|
|
16140
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
16159
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16141
16160
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16142
16161
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16143
16162
|
onClick: function onClick() {
|
|
@@ -16145,7 +16164,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16145
16164
|
},
|
|
16146
16165
|
width: 24,
|
|
16147
16166
|
src: scanning
|
|
16148
|
-
}))) : (
|
|
16167
|
+
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16149
16168
|
title: "\u5168\u5C4F"
|
|
16150
16169
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16151
16170
|
onClick: function onClick() {
|
|
@@ -16153,7 +16172,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16153
16172
|
},
|
|
16154
16173
|
width: 24,
|
|
16155
16174
|
src: quanping
|
|
16156
|
-
}))))) : null)), alertProps && (
|
|
16175
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16157
16176
|
}, function (prevProps, nextProps) {
|
|
16158
16177
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16159
16178
|
return false;
|
|
@@ -16238,7 +16257,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16238
16257
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16239
16258
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16240
16259
|
}, item));
|
|
16241
|
-
}))), 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))));
|
|
16242
16261
|
}, function (prevProps, nextProps) {
|
|
16243
16262
|
if (prevProps.title !== nextProps.title) {
|
|
16244
16263
|
return false;
|
|
@@ -16878,7 +16897,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16878
16897
|
});
|
|
16879
16898
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16880
16899
|
className: 'sort_table_wrapper'
|
|
16881
|
-
}, visible && (
|
|
16900
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16882
16901
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16883
16902
|
wrapClassName: 'sort_table_wrapper',
|
|
16884
16903
|
width: 810,
|
|
@@ -16929,7 +16948,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16929
16948
|
width: 525,
|
|
16930
16949
|
height: 24
|
|
16931
16950
|
}
|
|
16932
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
16951
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16933
16952
|
checked: !dataSource.some(function (item) {
|
|
16934
16953
|
if (item.hidden) return true;
|
|
16935
16954
|
return false;
|
|
@@ -16983,13 +17002,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16983
17002
|
_this2.onChange(e, item.title);
|
|
16984
17003
|
}
|
|
16985
17004
|
}, item.title);
|
|
16986
|
-
}), !!seatchDataSource.length && (
|
|
17005
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16987
17006
|
style: {
|
|
16988
17007
|
width: '144px'
|
|
16989
17008
|
}
|
|
16990
|
-
})), !seatchDataSource.length && (
|
|
17009
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16991
17010
|
className: 'sort_table_column_all_empty'
|
|
16992
|
-
}, "\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", {
|
|
16993
17012
|
className: 'sort_table_column_special'
|
|
16994
17013
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
16995
17014
|
className: 'sort_table_column_all'
|
|
@@ -17463,7 +17482,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17463
17482
|
});
|
|
17464
17483
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17465
17484
|
className: 'sort_table_wrapper'
|
|
17466
|
-
}, visible && (
|
|
17485
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17467
17486
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17468
17487
|
wrapClassName: 'sort_table_wrapper',
|
|
17469
17488
|
width: 820,
|
|
@@ -17508,7 +17527,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17508
17527
|
style: {
|
|
17509
17528
|
width: 525
|
|
17510
17529
|
}
|
|
17511
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
17530
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17512
17531
|
checked: !dataSource.some(function (item) {
|
|
17513
17532
|
if (item.hidden) return true;
|
|
17514
17533
|
return false;
|
|
@@ -17544,11 +17563,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17544
17563
|
_this2.onChange(e, item.name);
|
|
17545
17564
|
}
|
|
17546
17565
|
}, item.label);
|
|
17547
|
-
}), !!newSearchSource.length && (
|
|
17566
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17548
17567
|
style: {
|
|
17549
17568
|
width: '144px'
|
|
17550
17569
|
}
|
|
17551
|
-
})), !newSearchSource.length && (
|
|
17570
|
+
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17552
17571
|
className: 'sort_table_column_all_empty'
|
|
17553
17572
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17554
17573
|
className: 'sort_table_content_wrapper'
|
|
@@ -17647,7 +17666,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17647
17666
|
};
|
|
17648
17667
|
setIsResizing(true);
|
|
17649
17668
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17650
|
-
document.addEventListener('mouseup',
|
|
17669
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
17651
17670
|
};
|
|
17652
17671
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17653
17672
|
e.stopPropagation();
|
|
@@ -17663,9 +17682,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17663
17682
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17664
17683
|
}
|
|
17665
17684
|
};
|
|
17666
|
-
var
|
|
17685
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
17667
17686
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17668
|
-
document.removeEventListener('mouseup',
|
|
17687
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
17669
17688
|
setIsResizing(false);
|
|
17670
17689
|
};
|
|
17671
17690
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18076,7 +18095,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18076
18095
|
actionsRender = actionsRender.concat([{
|
|
18077
18096
|
type: 'text',
|
|
18078
18097
|
props: {
|
|
18079
|
-
children: (
|
|
18098
|
+
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18080
18099
|
request: {
|
|
18081
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),
|
|
18082
18101
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18322,7 +18341,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18322
18341
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18323
18342
|
bsTableCode: bsTableCode,
|
|
18324
18343
|
onlyModal: true
|
|
18325
|
-
}), (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, {
|
|
18326
18345
|
ref: exportTableRef,
|
|
18327
18346
|
setShowColumns: setShowExportColumns,
|
|
18328
18347
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18415,11 +18434,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18415
18434
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18416
18435
|
var resultList = [];
|
|
18417
18436
|
var newRouter = cloneDeep(router);
|
|
18418
|
-
var
|
|
18437
|
+
var _deep = function deep(router) {
|
|
18419
18438
|
if (router && Array.isArray(router)) {
|
|
18420
18439
|
router.forEach(function (item) {
|
|
18421
18440
|
if (item.children && Array.isArray(item.children)) {
|
|
18422
|
-
|
|
18441
|
+
_deep(item.children);
|
|
18423
18442
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18424
18443
|
return d === item.code;
|
|
18425
18444
|
})) {
|
|
@@ -18433,10 +18452,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18433
18452
|
resultList.push(_objectSpread2({}, router));
|
|
18434
18453
|
}
|
|
18435
18454
|
};
|
|
18436
|
-
|
|
18455
|
+
_deep(newRouter);
|
|
18437
18456
|
callBack([].concat(resultList));
|
|
18438
18457
|
};
|
|
18439
|
-
var
|
|
18458
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18440
18459
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18441
18460
|
var _loop = function _loop(i) {
|
|
18442
18461
|
if (routesData[i].hideInMenu) {
|
|
@@ -18450,7 +18469,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18450
18469
|
return 0; // continue
|
|
18451
18470
|
}
|
|
18452
18471
|
if (routesData[i].children) {
|
|
18453
|
-
|
|
18472
|
+
_setMenuTreeData(routesData[i].children);
|
|
18454
18473
|
}
|
|
18455
18474
|
},
|
|
18456
18475
|
_ret;
|
|
@@ -18471,16 +18490,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18471
18490
|
};
|
|
18472
18491
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18473
18492
|
var routerMap = {};
|
|
18474
|
-
var
|
|
18493
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
18475
18494
|
data.forEach(function (menuItem) {
|
|
18476
18495
|
if (menuItem.children) {
|
|
18477
|
-
|
|
18496
|
+
_flattenMenuData(menuItem.children);
|
|
18478
18497
|
}
|
|
18479
18498
|
// Reduce memory usage
|
|
18480
18499
|
routerMap[menuItem.path] = menuItem;
|
|
18481
18500
|
});
|
|
18482
18501
|
};
|
|
18483
|
-
|
|
18502
|
+
_flattenMenuData(menuData);
|
|
18484
18503
|
return routerMap;
|
|
18485
18504
|
};
|
|
18486
18505
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18626,7 +18645,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18626
18645
|
sethomepageData(homepageDataList);
|
|
18627
18646
|
setroutesData(routesDataList);
|
|
18628
18647
|
}, []);
|
|
18629
|
-
var
|
|
18648
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
18630
18649
|
if (!child.hideInMenu && child.children) {
|
|
18631
18650
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18632
18651
|
style: {
|
|
@@ -18636,7 +18655,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18636
18655
|
}, formatMessage({
|
|
18637
18656
|
id: "".concat(child.locale)
|
|
18638
18657
|
})), child.children.map(function (menuItem) {
|
|
18639
|
-
return
|
|
18658
|
+
return _renderChildItem(menuItem);
|
|
18640
18659
|
}));
|
|
18641
18660
|
} else if (!child.hideInMenu && child.path) {
|
|
18642
18661
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18671,7 +18690,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18671
18690
|
className: 'drawerWarp'
|
|
18672
18691
|
}, homepageData && homepageData.filter(function (d) {
|
|
18673
18692
|
return !d.hideInMenu;
|
|
18674
|
-
}).length > 0 && (
|
|
18693
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
18675
18694
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
18676
18695
|
dataSource: homepageData,
|
|
18677
18696
|
renderItem: function renderItem(child) {
|
|
@@ -18706,7 +18725,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18706
18725
|
bordered: true,
|
|
18707
18726
|
dataSource: item.children,
|
|
18708
18727
|
renderItem: function renderItem(child) {
|
|
18709
|
-
return
|
|
18728
|
+
return _renderChildItem(child);
|
|
18710
18729
|
}
|
|
18711
18730
|
});
|
|
18712
18731
|
})));
|
|
@@ -18766,7 +18785,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18766
18785
|
src: allfunc
|
|
18767
18786
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
18768
18787
|
className: 'btnSpan2'
|
|
18769
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
18788
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18770
18789
|
style: {
|
|
18771
18790
|
left: isDrawer ? 140 : 0,
|
|
18772
18791
|
top: 50
|
|
@@ -18812,7 +18831,7 @@ function outLogin(_x) {
|
|
|
18812
18831
|
return _outLogin.apply(this, arguments);
|
|
18813
18832
|
}
|
|
18814
18833
|
function _outLogin() {
|
|
18815
|
-
_outLogin = _asyncToGenerator(
|
|
18834
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18816
18835
|
var res;
|
|
18817
18836
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18818
18837
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18954,7 +18973,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18954
18973
|
});
|
|
18955
18974
|
};
|
|
18956
18975
|
var loginOut = /*#__PURE__*/function () {
|
|
18957
|
-
var _ref2 = _asyncToGenerator(
|
|
18976
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18958
18977
|
var sessionId;
|
|
18959
18978
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18960
18979
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19058,7 +19077,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19058
19077
|
marginRight: '0px'
|
|
19059
19078
|
},
|
|
19060
19079
|
src: './xialajiantou-new.svg'
|
|
19061
|
-
}))))), loginModalParams.visible && (
|
|
19080
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19062
19081
|
};
|
|
19063
19082
|
|
|
19064
19083
|
// -- 查询店铺 --
|
|
@@ -19066,7 +19085,7 @@ function getStoreByName(_x) {
|
|
|
19066
19085
|
return _getStoreByName.apply(this, arguments);
|
|
19067
19086
|
}
|
|
19068
19087
|
function _getStoreByName() {
|
|
19069
|
-
_getStoreByName = _asyncToGenerator(
|
|
19088
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19070
19089
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19071
19090
|
while (1) switch (_context.prev = _context.next) {
|
|
19072
19091
|
case 0:
|
|
@@ -19134,7 +19153,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19134
19153
|
return _fetchUserList.apply(this, arguments);
|
|
19135
19154
|
}
|
|
19136
19155
|
function _fetchUserList() {
|
|
19137
|
-
_fetchUserList = _asyncToGenerator(
|
|
19156
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19138
19157
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19139
19158
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19140
19159
|
case 0:
|
|
@@ -19182,7 +19201,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19182
19201
|
return debounce$1(loadOptions, debounceTimeout);
|
|
19183
19202
|
}, [debounceTimeout, key]);
|
|
19184
19203
|
var changeInput = /*#__PURE__*/function () {
|
|
19185
|
-
var _ref = _asyncToGenerator(
|
|
19204
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19186
19205
|
var res;
|
|
19187
19206
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19188
19207
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19204,7 +19223,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19204
19223
|
};
|
|
19205
19224
|
}();
|
|
19206
19225
|
useEffect(function () {
|
|
19207
|
-
_asyncToGenerator(
|
|
19226
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19208
19227
|
var res;
|
|
19209
19228
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19210
19229
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19369,7 +19388,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19369
19388
|
var resultList = [];
|
|
19370
19389
|
var newRouter = cloneDeep$1(router);
|
|
19371
19390
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19372
|
-
var
|
|
19391
|
+
var _deep = function deep(router) {
|
|
19373
19392
|
if (router && Array.isArray(router)) {
|
|
19374
19393
|
router.forEach(function (item) {
|
|
19375
19394
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19379,7 +19398,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19379
19398
|
d.nameEdit = true;
|
|
19380
19399
|
}
|
|
19381
19400
|
});
|
|
19382
|
-
|
|
19401
|
+
_deep(item.routes);
|
|
19383
19402
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19384
19403
|
id: "menu.".concat(item.name)
|
|
19385
19404
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19398,7 +19417,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19398
19417
|
}));
|
|
19399
19418
|
}
|
|
19400
19419
|
};
|
|
19401
|
-
|
|
19420
|
+
_deep(newRouter);
|
|
19402
19421
|
setroutesData([].concat(resultList));
|
|
19403
19422
|
};
|
|
19404
19423
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19480,7 +19499,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19480
19499
|
},
|
|
19481
19500
|
title: item.fullPathName
|
|
19482
19501
|
}, renderLineStyl(item.fullPathName));
|
|
19483
|
-
}))))), showSelectStore && (
|
|
19502
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19484
19503
|
employeeCode: employeeCode
|
|
19485
19504
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19486
19505
|
};
|
|
@@ -19495,7 +19514,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19495
19514
|
var TreeNode = Tree.TreeNode;
|
|
19496
19515
|
var Search$2 = Input.Search;
|
|
19497
19516
|
var dataList = [];
|
|
19498
|
-
var
|
|
19517
|
+
var _generateList = function generateList(data) {
|
|
19499
19518
|
for (var i = 0; i < data.length; i++) {
|
|
19500
19519
|
var node = data[i];
|
|
19501
19520
|
var path = node.path,
|
|
@@ -19505,11 +19524,11 @@ var generateList = function generateList(data) {
|
|
|
19505
19524
|
name: name
|
|
19506
19525
|
});
|
|
19507
19526
|
if (node.children) {
|
|
19508
|
-
|
|
19527
|
+
_generateList(node.children);
|
|
19509
19528
|
}
|
|
19510
19529
|
}
|
|
19511
19530
|
};
|
|
19512
|
-
var
|
|
19531
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
19513
19532
|
var parentKey;
|
|
19514
19533
|
for (var i = 0; i < tree.length; i++) {
|
|
19515
19534
|
var node = tree[i];
|
|
@@ -19518,8 +19537,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
19518
19537
|
return item.path === path;
|
|
19519
19538
|
})) {
|
|
19520
19539
|
parentKey = node.path;
|
|
19521
|
-
} else if (
|
|
19522
|
-
parentKey =
|
|
19540
|
+
} else if (_getParentKey(path, node.children)) {
|
|
19541
|
+
parentKey = _getParentKey(path, node.children);
|
|
19523
19542
|
}
|
|
19524
19543
|
}
|
|
19525
19544
|
}
|
|
@@ -19550,7 +19569,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19550
19569
|
var treeData = _this.state.treeData;
|
|
19551
19570
|
var expandedKeys = dataList.map(function (item) {
|
|
19552
19571
|
if (item.name.indexOf(value) > -1) {
|
|
19553
|
-
return
|
|
19572
|
+
return _getParentKey(item.path, treeData);
|
|
19554
19573
|
}
|
|
19555
19574
|
return null;
|
|
19556
19575
|
}).filter(function (item, i, self) {
|
|
@@ -19564,22 +19583,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19564
19583
|
};
|
|
19565
19584
|
_this.getPathList = function (originData) {
|
|
19566
19585
|
var pathList = [];
|
|
19567
|
-
var
|
|
19586
|
+
var _getList = function getList(data) {
|
|
19568
19587
|
if (Array.isArray(data)) {
|
|
19569
19588
|
data.forEach(function (item) {
|
|
19570
19589
|
pathList.push(item.path);
|
|
19571
19590
|
if (item.children) {
|
|
19572
|
-
|
|
19591
|
+
_getList(item.children);
|
|
19573
19592
|
}
|
|
19574
19593
|
});
|
|
19575
19594
|
} else {
|
|
19576
19595
|
pathList.push(data.path);
|
|
19577
19596
|
if (data.children) {
|
|
19578
|
-
|
|
19597
|
+
_getList(data.children);
|
|
19579
19598
|
}
|
|
19580
19599
|
}
|
|
19581
19600
|
};
|
|
19582
|
-
|
|
19601
|
+
_getList(originData);
|
|
19583
19602
|
return pathList;
|
|
19584
19603
|
};
|
|
19585
19604
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19588,18 +19607,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19588
19607
|
customerMenuData = _this$props.customerMenuData,
|
|
19589
19608
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19590
19609
|
var filterItem;
|
|
19591
|
-
var
|
|
19610
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
19592
19611
|
menuData.forEach(function (item) {
|
|
19593
19612
|
if (item.path === path) {
|
|
19594
19613
|
filterItem = _objectSpread2({}, item);
|
|
19595
19614
|
return;
|
|
19596
19615
|
}
|
|
19597
19616
|
if (item.children) {
|
|
19598
|
-
|
|
19617
|
+
_filterMenuItem(item.children);
|
|
19599
19618
|
}
|
|
19600
19619
|
});
|
|
19601
19620
|
};
|
|
19602
|
-
|
|
19621
|
+
_filterMenuItem(treeData);
|
|
19603
19622
|
var addPathList = _this.getPathList(filterItem);
|
|
19604
19623
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19605
19624
|
var isRepet = false;
|
|
@@ -19629,8 +19648,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19629
19648
|
return item.path === '/';
|
|
19630
19649
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19631
19650
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19632
|
-
|
|
19633
|
-
|
|
19651
|
+
_setMenuTreeData(routesData);
|
|
19652
|
+
_generateList(routesData);
|
|
19634
19653
|
this.setState({
|
|
19635
19654
|
treeData: routesData
|
|
19636
19655
|
});
|
|
@@ -19644,16 +19663,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19644
19663
|
expandedKeys = _this$state.expandedKeys,
|
|
19645
19664
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19646
19665
|
treeData = _this$state.treeData;
|
|
19647
|
-
var
|
|
19666
|
+
var _loop = function loop(data) {
|
|
19648
19667
|
return data.map(function (item) {
|
|
19649
19668
|
var index = item.name.indexOf(searchValue);
|
|
19650
19669
|
var beforeStr = item.name.substr(0, index);
|
|
19651
19670
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19652
|
-
var name = index > -1 ? (
|
|
19671
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19653
19672
|
style: {
|
|
19654
19673
|
color: '#f50'
|
|
19655
19674
|
}
|
|
19656
|
-
}, searchValue), afterStr)) : (
|
|
19675
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19657
19676
|
if (item.children && item.children.length) {
|
|
19658
19677
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19659
19678
|
path: item.path,
|
|
@@ -19675,7 +19694,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19675
19694
|
width: 18,
|
|
19676
19695
|
src: arrowRight
|
|
19677
19696
|
}))))
|
|
19678
|
-
},
|
|
19697
|
+
}, _loop(item.children));
|
|
19679
19698
|
}
|
|
19680
19699
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19681
19700
|
path: item.path,
|
|
@@ -19725,7 +19744,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19725
19744
|
onExpand: this.onExpand,
|
|
19726
19745
|
expandedKeys: expandedKeys,
|
|
19727
19746
|
autoExpandParent: autoExpandParent
|
|
19728
|
-
},
|
|
19747
|
+
}, _loop(treeData))));
|
|
19729
19748
|
}
|
|
19730
19749
|
}]);
|
|
19731
19750
|
}(React$1.Component);
|
|
@@ -19758,24 +19777,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19758
19777
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19759
19778
|
var dragObj;
|
|
19760
19779
|
var finalDropItem;
|
|
19761
|
-
var
|
|
19780
|
+
var _loop = function loop(data, path, callback) {
|
|
19762
19781
|
for (var i = 0; i < data.length; i++) {
|
|
19763
19782
|
if (data[i].path === path) {
|
|
19764
19783
|
return callback(data[i], i, data);
|
|
19765
19784
|
}
|
|
19766
19785
|
if (data[i].children) {
|
|
19767
|
-
|
|
19786
|
+
_loop(data[i].children, path, callback);
|
|
19768
19787
|
}
|
|
19769
19788
|
}
|
|
19770
19789
|
};
|
|
19771
19790
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19772
|
-
|
|
19791
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
19773
19792
|
arr.splice(index, 1);
|
|
19774
19793
|
dragObj = item;
|
|
19775
19794
|
});
|
|
19776
19795
|
if (!info.dropToGap) {
|
|
19777
19796
|
// Drop on the content
|
|
19778
|
-
|
|
19797
|
+
_loop(data, dropKey, function (item) {
|
|
19779
19798
|
item.children = item.children || [];
|
|
19780
19799
|
item.children.unshift(dragObj);
|
|
19781
19800
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19786,7 +19805,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19786
19805
|
// Is expanded
|
|
19787
19806
|
dropPosition === 1 // On the bottom gap
|
|
19788
19807
|
) {
|
|
19789
|
-
|
|
19808
|
+
_loop(data, dropKey, function (item) {
|
|
19790
19809
|
item.children = item.children || [];
|
|
19791
19810
|
item.children.unshift(dragObj);
|
|
19792
19811
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19794,7 +19813,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19794
19813
|
} else {
|
|
19795
19814
|
var ar;
|
|
19796
19815
|
var i;
|
|
19797
|
-
|
|
19816
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
19798
19817
|
ar = arr;
|
|
19799
19818
|
i = index;
|
|
19800
19819
|
});
|
|
@@ -19833,17 +19852,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19833
19852
|
title: '编辑名称',
|
|
19834
19853
|
callBack: function callBack(newName) {
|
|
19835
19854
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19836
|
-
var
|
|
19855
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19837
19856
|
oldTreeData.forEach(function (treeItem) {
|
|
19838
19857
|
if (treeItem.path === item.path) {
|
|
19839
19858
|
treeItem.name = newName;
|
|
19840
19859
|
}
|
|
19841
19860
|
if (treeItem.children) {
|
|
19842
|
-
|
|
19861
|
+
_editTreeDataName(treeItem.children);
|
|
19843
19862
|
}
|
|
19844
19863
|
});
|
|
19845
19864
|
};
|
|
19846
|
-
|
|
19865
|
+
_editTreeDataName(oldTreeData);
|
|
19847
19866
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19848
19867
|
_this.setState({
|
|
19849
19868
|
modalInfo: {
|
|
@@ -19888,7 +19907,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19888
19907
|
title: '新增子目录',
|
|
19889
19908
|
callBack: function callBack(newName) {
|
|
19890
19909
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19891
|
-
var
|
|
19910
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
19892
19911
|
oldTreeData.forEach(function (treeItem) {
|
|
19893
19912
|
if (treeItem.path === item.path) {
|
|
19894
19913
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19900,11 +19919,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19900
19919
|
}];
|
|
19901
19920
|
}
|
|
19902
19921
|
if (treeItem.children) {
|
|
19903
|
-
|
|
19922
|
+
_addChildFolder(treeItem.children);
|
|
19904
19923
|
}
|
|
19905
19924
|
});
|
|
19906
19925
|
};
|
|
19907
|
-
|
|
19926
|
+
_addChildFolder(oldTreeData);
|
|
19908
19927
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19909
19928
|
_this.setState({
|
|
19910
19929
|
modalInfo: {
|
|
@@ -19963,7 +19982,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19963
19982
|
var _this$state = this.state,
|
|
19964
19983
|
modalInfo = _this$state.modalInfo,
|
|
19965
19984
|
checkedKeys = _this$state.checkedKeys;
|
|
19966
|
-
var
|
|
19985
|
+
var _loop2 = function loop(data) {
|
|
19967
19986
|
return data.map(function (item) {
|
|
19968
19987
|
if (item.children && item.children.length) {
|
|
19969
19988
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -19980,7 +19999,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19980
19999
|
e.stopPropagation();
|
|
19981
20000
|
}
|
|
19982
20001
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
19983
|
-
},
|
|
20002
|
+
}, _loop2(item.children));
|
|
19984
20003
|
}
|
|
19985
20004
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
19986
20005
|
path: item.path,
|
|
@@ -20059,7 +20078,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20059
20078
|
children: 'children'
|
|
20060
20079
|
},
|
|
20061
20080
|
onDrop: this.onDrop
|
|
20062
|
-
},
|
|
20081
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
20063
20082
|
width: 600,
|
|
20064
20083
|
bodyStyle: {
|
|
20065
20084
|
paddingTop: '32px',
|
|
@@ -20172,7 +20191,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20172
20191
|
pathname: item.path
|
|
20173
20192
|
});
|
|
20174
20193
|
};
|
|
20175
|
-
var
|
|
20194
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
20176
20195
|
return menuData.map(function (item) {
|
|
20177
20196
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20178
20197
|
style: {
|
|
@@ -20187,7 +20206,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20187
20206
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20188
20207
|
paddingLeft: '4px'
|
|
20189
20208
|
}
|
|
20190
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20209
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
20191
20210
|
});
|
|
20192
20211
|
};
|
|
20193
20212
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20213,7 +20232,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20213
20232
|
style: {
|
|
20214
20233
|
paddingLeft: '5px'
|
|
20215
20234
|
}
|
|
20216
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
20235
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20217
20236
|
style: {
|
|
20218
20237
|
left: isDrawer ? 140 : 0
|
|
20219
20238
|
},
|
|
@@ -20234,7 +20253,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20234
20253
|
visible: isDrawer
|
|
20235
20254
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
20236
20255
|
className: 'menu_title_line'
|
|
20237
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20256
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
20238
20257
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
20239
20258
|
style: {
|
|
20240
20259
|
fontWeight: '600',
|
|
@@ -20308,7 +20327,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20308
20327
|
return item.path === '/';
|
|
20309
20328
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20310
20329
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20311
|
-
|
|
20330
|
+
_setMenuTreeData(routesData);
|
|
20312
20331
|
routesData.forEach(function (item) {
|
|
20313
20332
|
if (item.children) {
|
|
20314
20333
|
routesDataList.push(item);
|
|
@@ -20338,7 +20357,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20338
20357
|
setHeight(clientHeight - 190);
|
|
20339
20358
|
setDrawHeight(clientHeight - 70);
|
|
20340
20359
|
};
|
|
20341
|
-
var
|
|
20360
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
20342
20361
|
if (!child.hideInMenu && child.children) {
|
|
20343
20362
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20344
20363
|
style: {
|
|
@@ -20348,7 +20367,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20348
20367
|
}, formatMessage({
|
|
20349
20368
|
id: "".concat(child.locale)
|
|
20350
20369
|
})), child.children.map(function (menuItem) {
|
|
20351
|
-
return
|
|
20370
|
+
return _renderChildItem(menuItem);
|
|
20352
20371
|
}));
|
|
20353
20372
|
} else if (!child.hideInMenu && child.path) {
|
|
20354
20373
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20490,7 +20509,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20490
20509
|
onMenuClick(e, item);
|
|
20491
20510
|
}
|
|
20492
20511
|
}, item.name);
|
|
20493
|
-
}))), !!SearhData.length ? (
|
|
20512
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20494
20513
|
className: 'search_menu_content'
|
|
20495
20514
|
}, SearhData.map(function (item) {
|
|
20496
20515
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20499,7 +20518,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20499
20518
|
},
|
|
20500
20519
|
key: item.path
|
|
20501
20520
|
}, item.name);
|
|
20502
|
-
}))) : (
|
|
20521
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20503
20522
|
style: {
|
|
20504
20523
|
height: "".concat(rightMenuHeight, "px"),
|
|
20505
20524
|
overflowY: 'scroll',
|
|
@@ -20511,7 +20530,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20511
20530
|
className: 'drawerWarp_right'
|
|
20512
20531
|
}, homepageData && homepageData.filter(function (d) {
|
|
20513
20532
|
return !d.hideInMenu;
|
|
20514
|
-
}).length > 0 && (
|
|
20533
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20515
20534
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20516
20535
|
dataSource: homepageData,
|
|
20517
20536
|
renderItem: function renderItem(child) {
|
|
@@ -20552,7 +20571,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20552
20571
|
bordered: true,
|
|
20553
20572
|
dataSource: item.children,
|
|
20554
20573
|
renderItem: function renderItem(child) {
|
|
20555
|
-
return
|
|
20574
|
+
return _renderChildItem(child);
|
|
20556
20575
|
}
|
|
20557
20576
|
});
|
|
20558
20577
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20710,10 +20729,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20710
20729
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20711
20730
|
var menuKeys = [];
|
|
20712
20731
|
var docsId = [];
|
|
20713
|
-
var
|
|
20732
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20714
20733
|
data.forEach(function (item) {
|
|
20715
20734
|
if (item.children && item.children.length > 0) {
|
|
20716
|
-
|
|
20735
|
+
_getLimitedMenuKeys(item.children);
|
|
20717
20736
|
} else {
|
|
20718
20737
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20719
20738
|
menuKeys.push(originPath);
|
|
@@ -20724,7 +20743,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20724
20743
|
});
|
|
20725
20744
|
};
|
|
20726
20745
|
try {
|
|
20727
|
-
|
|
20746
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
20728
20747
|
} catch (e) {}
|
|
20729
20748
|
return {
|
|
20730
20749
|
menuKeys: menuKeys,
|
|
@@ -20958,10 +20977,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20958
20977
|
return (node.path || '').includes('all-general-documents');
|
|
20959
20978
|
};
|
|
20960
20979
|
// 递归获取树列表
|
|
20961
|
-
var
|
|
20980
|
+
var _getTreeList = function getTreeList(data) {
|
|
20962
20981
|
data.forEach(function (node) {
|
|
20963
20982
|
if (node.routes && node.routes.length > 0) {
|
|
20964
|
-
|
|
20983
|
+
_getTreeList(node.routes);
|
|
20965
20984
|
return;
|
|
20966
20985
|
}
|
|
20967
20986
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20992,7 +21011,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20992
21011
|
}
|
|
20993
21012
|
});
|
|
20994
21013
|
};
|
|
20995
|
-
|
|
21014
|
+
_getTreeList(treeData);
|
|
20996
21015
|
return treeList;
|
|
20997
21016
|
};
|
|
20998
21017
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21621,7 +21640,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21621
21640
|
updateState = _ref8.updateState;
|
|
21622
21641
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21623
21642
|
className: "tab_title_content"
|
|
21624
|
-
}, item.tab, item.key !== '/' && (
|
|
21643
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21625
21644
|
info: item,
|
|
21626
21645
|
operateFun: _this3.operateFun,
|
|
21627
21646
|
listenRouterState: listenRouterState
|
|
@@ -21757,7 +21776,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21757
21776
|
};
|
|
21758
21777
|
}
|
|
21759
21778
|
var OperationsSlot = {
|
|
21760
|
-
left: (
|
|
21779
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
21761
21780
|
className: 'tab_left_operate'
|
|
21762
21781
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
21763
21782
|
onClick: function onClick() {
|
|
@@ -21773,7 +21792,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21773
21792
|
_this3.setTabNavTransLate(-100);
|
|
21774
21793
|
}
|
|
21775
21794
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
21776
|
-
right: (
|
|
21795
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
21777
21796
|
style: {
|
|
21778
21797
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21779
21798
|
},
|
|
@@ -21871,7 +21890,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21871
21890
|
onMouseLeave: function onMouseLeave() {
|
|
21872
21891
|
_this3.setShowMenu(false);
|
|
21873
21892
|
}
|
|
21874
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
21893
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21875
21894
|
style: {
|
|
21876
21895
|
position: 'absolute',
|
|
21877
21896
|
top: '14px',
|
|
@@ -21890,7 +21909,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21890
21909
|
postMenuData: function postMenuData(menus) {
|
|
21891
21910
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21892
21911
|
},
|
|
21893
|
-
links: [!this.state.collapse ? (
|
|
21912
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21894
21913
|
ref: this.allFunc,
|
|
21895
21914
|
itemPath: itemPath,
|
|
21896
21915
|
handleClose: this.handleClose,
|
|
@@ -21908,7 +21927,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21908
21927
|
},
|
|
21909
21928
|
menu: {
|
|
21910
21929
|
request: function () {
|
|
21911
|
-
var _request = _asyncToGenerator(
|
|
21930
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21912
21931
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21913
21932
|
while (1) switch (_context.prev = _context.next) {
|
|
21914
21933
|
case 0:
|
|
@@ -22043,7 +22062,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22043
22062
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22044
22063
|
timeFormat = _this$props4.timeFormat,
|
|
22045
22064
|
transparentProps = _this$props4.transparentProps;
|
|
22046
|
-
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({
|
|
22047
22066
|
getDictionarySource: getDictionarySource,
|
|
22048
22067
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22049
22068
|
timeFormat: timeFormat
|
|
@@ -22067,12 +22086,12 @@ var index$5 = (function (props) {
|
|
|
22067
22086
|
});
|
|
22068
22087
|
|
|
22069
22088
|
// @ts-nocheck
|
|
22070
|
-
var
|
|
22089
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
22071
22090
|
var result = [];
|
|
22072
22091
|
columns.forEach(function (column) {
|
|
22073
22092
|
if (column.children) {
|
|
22074
22093
|
result.push(column);
|
|
22075
|
-
result.push.apply(result,
|
|
22094
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
22076
22095
|
} else {
|
|
22077
22096
|
result.push(column);
|
|
22078
22097
|
}
|
|
@@ -22081,7 +22100,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
22081
22100
|
};
|
|
22082
22101
|
var convertToRows = function convertToRows(originColumns) {
|
|
22083
22102
|
var maxLevel = 1;
|
|
22084
|
-
var
|
|
22103
|
+
var _traverse = function traverse(column, parent) {
|
|
22085
22104
|
if (parent) {
|
|
22086
22105
|
column.level = parent.level + 1;
|
|
22087
22106
|
if (maxLevel < column.level) {
|
|
@@ -22091,7 +22110,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22091
22110
|
if (column.children) {
|
|
22092
22111
|
var colSpan = 0;
|
|
22093
22112
|
column.children.forEach(function (subColumn) {
|
|
22094
|
-
|
|
22113
|
+
_traverse(subColumn, column);
|
|
22095
22114
|
colSpan += subColumn.colSpan;
|
|
22096
22115
|
});
|
|
22097
22116
|
column.colSpan = colSpan;
|
|
@@ -22101,13 +22120,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22101
22120
|
};
|
|
22102
22121
|
originColumns.forEach(function (column) {
|
|
22103
22122
|
column.level = 1;
|
|
22104
|
-
|
|
22123
|
+
_traverse(column);
|
|
22105
22124
|
});
|
|
22106
22125
|
var rows = [];
|
|
22107
22126
|
for (var i = 0; i < maxLevel; i++) {
|
|
22108
22127
|
rows.push([]);
|
|
22109
22128
|
}
|
|
22110
|
-
var allColumns =
|
|
22129
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22111
22130
|
allColumns.forEach(function (column) {
|
|
22112
22131
|
if (!column.children) {
|
|
22113
22132
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22147,7 +22166,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22147
22166
|
};
|
|
22148
22167
|
var headersToRows = function headersToRows(originColumns) {
|
|
22149
22168
|
var maxLevel = 1;
|
|
22150
|
-
var
|
|
22169
|
+
var _traverse2 = function traverse(column, parent) {
|
|
22151
22170
|
if (parent) {
|
|
22152
22171
|
//计算当前元素属于第几个层级
|
|
22153
22172
|
column.level = parent.level + 1;
|
|
@@ -22160,7 +22179,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22160
22179
|
var colSpan = 0;
|
|
22161
22180
|
column.children.forEach(function (subColumn) {
|
|
22162
22181
|
//进行递归
|
|
22163
|
-
|
|
22182
|
+
_traverse2(subColumn, column);
|
|
22164
22183
|
colSpan += subColumn.colSpan;
|
|
22165
22184
|
});
|
|
22166
22185
|
column.colSpan = colSpan;
|
|
@@ -22170,14 +22189,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22170
22189
|
};
|
|
22171
22190
|
originColumns.forEach(function (column) {
|
|
22172
22191
|
column.level = 1;
|
|
22173
|
-
|
|
22192
|
+
_traverse2(column);
|
|
22174
22193
|
});
|
|
22175
22194
|
var rows = [];
|
|
22176
22195
|
var lastData = [];
|
|
22177
22196
|
for (var i = 0; i < maxLevel; i++) {
|
|
22178
22197
|
rows.push([]);
|
|
22179
22198
|
}
|
|
22180
|
-
var allColumns =
|
|
22199
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22181
22200
|
allColumns.forEach(function (column) {
|
|
22182
22201
|
if (!column.children) {
|
|
22183
22202
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28194,7 +28213,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28194
28213
|
}
|
|
28195
28214
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28196
28215
|
};
|
|
28197
|
-
var
|
|
28216
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
28198
28217
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28199
28218
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28200
28219
|
var children = hightLightData.children,
|
|
@@ -28205,7 +28224,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28205
28224
|
lineEnd = _loc2[2];
|
|
28206
28225
|
if (children) {
|
|
28207
28226
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28208
|
-
return
|
|
28227
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
28209
28228
|
});
|
|
28210
28229
|
}
|
|
28211
28230
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28217,7 +28236,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28217
28236
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28218
28237
|
data.forEach(function (node) {
|
|
28219
28238
|
if (!node) return;
|
|
28220
|
-
node.toggled =
|
|
28239
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
28221
28240
|
node.active = isHightLight(node, highLightLine);
|
|
28222
28241
|
if (node.children) {
|
|
28223
28242
|
if (node.active) {
|
|
@@ -29648,7 +29667,7 @@ var valueType = {
|
|
|
29648
29667
|
};
|
|
29649
29668
|
|
|
29650
29669
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29651
|
-
var _ref = _asyncToGenerator(
|
|
29670
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29652
29671
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29653
29672
|
while (1) switch (_context.prev = _context.next) {
|
|
29654
29673
|
case 0:
|
|
@@ -29716,7 +29735,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29716
29735
|
value: false
|
|
29717
29736
|
}];
|
|
29718
29737
|
var ref = useRef();
|
|
29719
|
-
useMount(
|
|
29738
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29720
29739
|
var _ref$current, source;
|
|
29721
29740
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29722
29741
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29830,7 +29849,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29830
29849
|
source: {
|
|
29831
29850
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29832
29851
|
type: function () {
|
|
29833
|
-
var _type = _asyncToGenerator(
|
|
29852
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29834
29853
|
var form, values, name, relates, source;
|
|
29835
29854
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29836
29855
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30310,7 +30329,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30310
30329
|
source: {
|
|
30311
30330
|
relates: ['choiceType', 'inputType'],
|
|
30312
30331
|
type: function () {
|
|
30313
|
-
var _type2 = _asyncToGenerator(
|
|
30332
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30314
30333
|
var values, name, form, source;
|
|
30315
30334
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30316
30335
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30532,7 +30551,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30532
30551
|
width: 900,
|
|
30533
30552
|
maskClosable: false,
|
|
30534
30553
|
onOk: function () {
|
|
30535
|
-
var _onOk = _asyncToGenerator(
|
|
30554
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30536
30555
|
var _ref$current4, _res$editableStatus;
|
|
30537
30556
|
var res, _res$defaultValue;
|
|
30538
30557
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30604,7 +30623,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30604
30623
|
}()
|
|
30605
30624
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30606
30625
|
ref: ref
|
|
30607
|
-
})), maintainOptionsModal.visible && (
|
|
30626
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30608
30627
|
};
|
|
30609
30628
|
|
|
30610
30629
|
// @ts-nocheck
|
|
@@ -31218,7 +31237,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31218
31237
|
return setVisible(false);
|
|
31219
31238
|
},
|
|
31220
31239
|
className: 'customFieldsDrawer'
|
|
31221
|
-
}, detailTablesSetting.length == 0 && (
|
|
31240
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
31222
31241
|
style: {
|
|
31223
31242
|
display: 'flex'
|
|
31224
31243
|
}
|
|
@@ -31227,13 +31246,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31227
31246
|
flex: 1,
|
|
31228
31247
|
width: 500
|
|
31229
31248
|
}
|
|
31230
|
-
}, isEmpty(moduleParams) ? (
|
|
31249
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31231
31250
|
style: {
|
|
31232
31251
|
padding: "10px 0",
|
|
31233
31252
|
fontSize: "16px",
|
|
31234
31253
|
fontWeight: "bolder"
|
|
31235
31254
|
}
|
|
31236
|
-
}, "\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", {
|
|
31237
31256
|
style: {
|
|
31238
31257
|
flex: 1
|
|
31239
31258
|
}
|
|
@@ -31242,7 +31261,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31242
31261
|
onRun: onClickRun,
|
|
31243
31262
|
value: jsonEditorVal,
|
|
31244
31263
|
shallowHeight: height
|
|
31245
|
-
})))), detailTablesSetting.length > 0 && (
|
|
31264
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
31246
31265
|
defaultActiveKey: activeKey,
|
|
31247
31266
|
onChange: function onChange(v) {
|
|
31248
31267
|
return setActiveKey(v);
|
|
@@ -31259,13 +31278,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31259
31278
|
flex: 1,
|
|
31260
31279
|
width: 500
|
|
31261
31280
|
}
|
|
31262
|
-
}, isEmpty(moduleParams) ? (
|
|
31281
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31263
31282
|
style: {
|
|
31264
31283
|
padding: "10px 0",
|
|
31265
31284
|
fontSize: "16px",
|
|
31266
31285
|
fontWeight: "bolder"
|
|
31267
31286
|
}
|
|
31268
|
-
}, "\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", {
|
|
31269
31288
|
style: {
|
|
31270
31289
|
flex: 1
|
|
31271
31290
|
}
|
|
@@ -31287,13 +31306,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31287
31306
|
flex: 1,
|
|
31288
31307
|
width: 500
|
|
31289
31308
|
}
|
|
31290
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
31309
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31291
31310
|
style: {
|
|
31292
31311
|
padding: "10px 0",
|
|
31293
31312
|
fontSize: "16px",
|
|
31294
31313
|
fontWeight: "bolder"
|
|
31295
31314
|
}
|
|
31296
|
-
}, "\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", {
|
|
31297
31316
|
style: {
|
|
31298
31317
|
flex: 1
|
|
31299
31318
|
}
|
|
@@ -31439,7 +31458,7 @@ function getMetaData(_x) {
|
|
|
31439
31458
|
|
|
31440
31459
|
// 获取数据
|
|
31441
31460
|
function _getMetaData() {
|
|
31442
|
-
_getMetaData = _asyncToGenerator(
|
|
31461
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31443
31462
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31444
31463
|
while (1) switch (_context.prev = _context.next) {
|
|
31445
31464
|
case 0:
|
|
@@ -31661,7 +31680,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31661
31680
|
tableState = _useState4[0],
|
|
31662
31681
|
setTableState = _useState4[1];
|
|
31663
31682
|
var handleOpen = /*#__PURE__*/function () {
|
|
31664
|
-
var _ref = _asyncToGenerator(
|
|
31683
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31665
31684
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31666
31685
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31667
31686
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31980,7 +31999,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31980
31999
|
destroyOnClose: true
|
|
31981
32000
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
31982
32001
|
ref: queryTableRef
|
|
31983
|
-
}, 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, {
|
|
31984
32003
|
justify: "center",
|
|
31985
32004
|
style: {
|
|
31986
32005
|
marginBottom: 30,
|
|
@@ -32096,7 +32115,7 @@ var CustomSelector = (function (props) {
|
|
|
32096
32115
|
var _props$ctx7;
|
|
32097
32116
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32098
32117
|
}
|
|
32099
|
-
})), showType === 'modalTable' && (
|
|
32118
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
32100
32119
|
type: "primary",
|
|
32101
32120
|
style: {
|
|
32102
32121
|
width: '30px',
|
|
@@ -32182,7 +32201,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32182
32201
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32183
32202
|
handSource = _useState2[0],
|
|
32184
32203
|
setHandSource = _useState2[1];
|
|
32185
|
-
useEffect(
|
|
32204
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32186
32205
|
var resData, data;
|
|
32187
32206
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32188
32207
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32334,7 +32353,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32334
32353
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32335
32354
|
}
|
|
32336
32355
|
function _getRegularThresholdRange() {
|
|
32337
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
32356
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32338
32357
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32339
32358
|
while (1) switch (_context.prev = _context.next) {
|
|
32340
32359
|
case 0:
|
|
@@ -32488,7 +32507,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32488
32507
|
};
|
|
32489
32508
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32490
32509
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32491
|
-
var _ref = _asyncToGenerator(
|
|
32510
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32492
32511
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32493
32512
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32494
32513
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33445,7 +33464,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33445
33464
|
isAll: true,
|
|
33446
33465
|
needNameAndCode: true,
|
|
33447
33466
|
notChangeOnSelect: true,
|
|
33448
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33467
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33449
33468
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33450
33469
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33451
33470
|
case 0:
|
|
@@ -33494,7 +33513,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33494
33513
|
isAll: true,
|
|
33495
33514
|
needNameAndCode: true,
|
|
33496
33515
|
notChangeOnSelect: true,
|
|
33497
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33516
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33498
33517
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33499
33518
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33500
33519
|
case 0:
|
|
@@ -33545,7 +33564,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33545
33564
|
isAll: true,
|
|
33546
33565
|
needNameAndCode: true,
|
|
33547
33566
|
notChangeOnSelect: true,
|
|
33548
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33567
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33549
33568
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33550
33569
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33551
33570
|
case 0:
|
|
@@ -35523,7 +35542,7 @@ var App$1 = function App(_ref) {
|
|
|
35523
35542
|
borderRadius: '5px',
|
|
35524
35543
|
cursor: 'pointer'
|
|
35525
35544
|
}
|
|
35526
|
-
}, isStaticNumber ? (
|
|
35545
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35527
35546
|
autoFocus: true,
|
|
35528
35547
|
onClick: function onClick(e) {
|
|
35529
35548
|
return e.stopPropagation();
|
|
@@ -35810,7 +35829,7 @@ function RenderCompItem(props) {
|
|
|
35810
35829
|
dictData = _useState2[0],
|
|
35811
35830
|
setDictData = _useState2[1];
|
|
35812
35831
|
var getDictData = /*#__PURE__*/function () {
|
|
35813
|
-
var _ref = _asyncToGenerator(
|
|
35832
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35814
35833
|
var _data$map;
|
|
35815
35834
|
var data;
|
|
35816
35835
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35852,7 +35871,7 @@ function RenderCompItem(props) {
|
|
|
35852
35871
|
var style2 = {
|
|
35853
35872
|
width: '100px'
|
|
35854
35873
|
};
|
|
35855
|
-
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, {
|
|
35856
35875
|
disabled: disabled,
|
|
35857
35876
|
allowClear: true,
|
|
35858
35877
|
onClear: function onClear() {
|
|
@@ -35863,7 +35882,7 @@ function RenderCompItem(props) {
|
|
|
35863
35882
|
onBlur: function onBlur(e) {
|
|
35864
35883
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35865
35884
|
}
|
|
35866
|
-
})) || 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, {
|
|
35867
35886
|
disabled: disabled,
|
|
35868
35887
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35869
35888
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35876,7 +35895,7 @@ function RenderCompItem(props) {
|
|
|
35876
35895
|
onChange: function onChange(value) {
|
|
35877
35896
|
handleEdit(ites.code, value);
|
|
35878
35897
|
}
|
|
35879
|
-
})) || 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, {
|
|
35880
35899
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35881
35900
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35882
35901
|
disabled: disabled,
|
|
@@ -35886,7 +35905,7 @@ function RenderCompItem(props) {
|
|
|
35886
35905
|
onChange: function onChange(value, dateString) {
|
|
35887
35906
|
handleEdit(ites.code, dateString);
|
|
35888
35907
|
}
|
|
35889
|
-
})) || 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, {
|
|
35890
35909
|
showTime: true,
|
|
35891
35910
|
disabled: disabled,
|
|
35892
35911
|
defaultValue: ites.defaultValue,
|
|
@@ -35895,7 +35914,7 @@ function RenderCompItem(props) {
|
|
|
35895
35914
|
onChange: function onChange(value, timeString) {
|
|
35896
35915
|
handleEdit(ites.code, timeString);
|
|
35897
35916
|
}
|
|
35898
|
-
})) || 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, {
|
|
35899
35918
|
disabled: disabled,
|
|
35900
35919
|
defaultChecked: !!ites.defaultValue,
|
|
35901
35920
|
style: style2,
|
|
@@ -35903,7 +35922,7 @@ function RenderCompItem(props) {
|
|
|
35903
35922
|
onChange: function onChange(value) {
|
|
35904
35923
|
handleEdit(ites.code, value);
|
|
35905
35924
|
}
|
|
35906
|
-
})) || 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({
|
|
35907
35926
|
disabled: disabled,
|
|
35908
35927
|
allowClear: true,
|
|
35909
35928
|
showArrow: true
|
|
@@ -35921,7 +35940,7 @@ function RenderCompItem(props) {
|
|
|
35921
35940
|
key: it,
|
|
35922
35941
|
value: it
|
|
35923
35942
|
}, ites.enumeration[it]);
|
|
35924
|
-
}))) || 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, {
|
|
35925
35944
|
disabled: disabled,
|
|
35926
35945
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35927
35946
|
defaultValue: ites.defaultValue,
|
|
@@ -35931,7 +35950,7 @@ function RenderCompItem(props) {
|
|
|
35931
35950
|
handleEdit(ites.code, value);
|
|
35932
35951
|
},
|
|
35933
35952
|
dictionaryCode: ites.dictionaryCode
|
|
35934
|
-
})) || 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, {
|
|
35935
35954
|
selectBusinessType: "physicalWarehouse",
|
|
35936
35955
|
selectProps: _objectSpread2({
|
|
35937
35956
|
style: styleCommon,
|
|
@@ -35953,7 +35972,7 @@ function RenderCompItem(props) {
|
|
|
35953
35972
|
getPopupContainer: function getPopupContainer() {
|
|
35954
35973
|
return document.body;
|
|
35955
35974
|
}
|
|
35956
|
-
})) || 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, {
|
|
35957
35976
|
selectBusinessType: "realWarehouse",
|
|
35958
35977
|
selectProps: _objectSpread2({
|
|
35959
35978
|
style: styleCommon,
|
|
@@ -35975,7 +35994,7 @@ function RenderCompItem(props) {
|
|
|
35975
35994
|
getPopupContainer: function getPopupContainer() {
|
|
35976
35995
|
return document.body;
|
|
35977
35996
|
}
|
|
35978
|
-
})) || 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, {
|
|
35979
35998
|
selectBusinessType: "virtualWarehouse",
|
|
35980
35999
|
selectProps: _objectSpread2({
|
|
35981
36000
|
style: styleCommon,
|
|
@@ -35997,7 +36016,7 @@ function RenderCompItem(props) {
|
|
|
35997
36016
|
getPopupContainer: function getPopupContainer() {
|
|
35998
36017
|
return document.body;
|
|
35999
36018
|
}
|
|
36000
|
-
})) || 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, {
|
|
36001
36020
|
selectBusinessType: "channelWarehouse",
|
|
36002
36021
|
selectProps: _objectSpread2({
|
|
36003
36022
|
style: styleCommon,
|
|
@@ -36019,7 +36038,7 @@ function RenderCompItem(props) {
|
|
|
36019
36038
|
getPopupContainer: function getPopupContainer() {
|
|
36020
36039
|
return document.body;
|
|
36021
36040
|
}
|
|
36022
|
-
})) || 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, {
|
|
36023
36042
|
selectBusinessType: "spuCommodity",
|
|
36024
36043
|
selectProps: _objectSpread2({
|
|
36025
36044
|
style: styleCommon,
|
|
@@ -36040,7 +36059,7 @@ function RenderCompItem(props) {
|
|
|
36040
36059
|
getPopupContainer: function getPopupContainer() {
|
|
36041
36060
|
return document.body;
|
|
36042
36061
|
}
|
|
36043
|
-
})) || 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, {
|
|
36044
36063
|
selectBusinessType: "skuCommodity",
|
|
36045
36064
|
selectProps: _objectSpread2({
|
|
36046
36065
|
style: styleCommon,
|
|
@@ -36061,13 +36080,13 @@ function RenderCompItem(props) {
|
|
|
36061
36080
|
getPopupContainer: function getPopupContainer() {
|
|
36062
36081
|
return document.body;
|
|
36063
36082
|
}
|
|
36064
|
-
})) || 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, {
|
|
36065
36084
|
disabled: disabled,
|
|
36066
36085
|
isAll: true,
|
|
36067
36086
|
needNameAndCode: true,
|
|
36068
36087
|
notChangeOnSelect: true,
|
|
36069
36088
|
initRequestSource: function () {
|
|
36070
|
-
var _initRequestSource = _asyncToGenerator(
|
|
36089
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36071
36090
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36072
36091
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36073
36092
|
case 0:
|
|
@@ -36109,7 +36128,7 @@ function RenderCompItem(props) {
|
|
|
36109
36128
|
getPopupContainer: function getPopupContainer() {
|
|
36110
36129
|
return document.body;
|
|
36111
36130
|
}
|
|
36112
|
-
})) || 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, {
|
|
36113
36132
|
disabled: disabled,
|
|
36114
36133
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36115
36134
|
businessType: "department",
|
|
@@ -36122,7 +36141,7 @@ function RenderCompItem(props) {
|
|
|
36122
36141
|
getPopupContainer: function getPopupContainer() {
|
|
36123
36142
|
return document.body;
|
|
36124
36143
|
}
|
|
36125
|
-
})) || 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, {
|
|
36126
36145
|
disabled: disabled,
|
|
36127
36146
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36128
36147
|
businessType: "purchase-organization",
|
|
@@ -36135,7 +36154,7 @@ function RenderCompItem(props) {
|
|
|
36135
36154
|
getPopupContainer: function getPopupContainer() {
|
|
36136
36155
|
return document.body;
|
|
36137
36156
|
}
|
|
36138
|
-
})) || 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, {
|
|
36139
36158
|
disabled: disabled,
|
|
36140
36159
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36141
36160
|
businessType: "sales-organization",
|
|
@@ -36148,7 +36167,7 @@ function RenderCompItem(props) {
|
|
|
36148
36167
|
getPopupContainer: function getPopupContainer() {
|
|
36149
36168
|
return document.body;
|
|
36150
36169
|
}
|
|
36151
|
-
})) || 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, {
|
|
36152
36171
|
selectBusinessType: "supplier2",
|
|
36153
36172
|
selectProps: _objectSpread2({
|
|
36154
36173
|
style: styleCommon,
|
|
@@ -36169,7 +36188,7 @@ function RenderCompItem(props) {
|
|
|
36169
36188
|
getPopupContainer: function getPopupContainer() {
|
|
36170
36189
|
return document.body;
|
|
36171
36190
|
}
|
|
36172
|
-
})) || 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, {
|
|
36173
36192
|
selectBusinessType: "customer2",
|
|
36174
36193
|
selectProps: _objectSpread2({
|
|
36175
36194
|
style: styleCommon,
|
|
@@ -36190,7 +36209,7 @@ function RenderCompItem(props) {
|
|
|
36190
36209
|
getPopupContainer: function getPopupContainer() {
|
|
36191
36210
|
return document.body;
|
|
36192
36211
|
}
|
|
36193
|
-
})) || 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, {
|
|
36194
36213
|
selectBusinessType: "shopFile2",
|
|
36195
36214
|
selectProps: _objectSpread2({
|
|
36196
36215
|
style: styleCommon,
|
|
@@ -36211,7 +36230,7 @@ function RenderCompItem(props) {
|
|
|
36211
36230
|
getPopupContainer: function getPopupContainer() {
|
|
36212
36231
|
return document.body;
|
|
36213
36232
|
}
|
|
36214
|
-
})) || 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, {
|
|
36215
36234
|
selectBusinessType: "employee2",
|
|
36216
36235
|
selectProps: _objectSpread2({
|
|
36217
36236
|
style: styleCommon,
|
|
@@ -36232,7 +36251,7 @@ function RenderCompItem(props) {
|
|
|
36232
36251
|
getPopupContainer: function getPopupContainer() {
|
|
36233
36252
|
return document.body;
|
|
36234
36253
|
}
|
|
36235
|
-
})) || 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, {
|
|
36236
36255
|
disabled: disabled,
|
|
36237
36256
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36238
36257
|
businessType: "stock-organization",
|
|
@@ -36245,7 +36264,7 @@ function RenderCompItem(props) {
|
|
|
36245
36264
|
getPopupContainer: function getPopupContainer() {
|
|
36246
36265
|
return document.body;
|
|
36247
36266
|
}
|
|
36248
|
-
})) || 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, {
|
|
36249
36268
|
disabled: disabled,
|
|
36250
36269
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36251
36270
|
businessType: "settle-organization",
|
|
@@ -36258,7 +36277,7 @@ function RenderCompItem(props) {
|
|
|
36258
36277
|
getPopupContainer: function getPopupContainer() {
|
|
36259
36278
|
return document.body;
|
|
36260
36279
|
}
|
|
36261
|
-
})) || 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, {
|
|
36262
36281
|
selectBusinessType: "deliveryMode",
|
|
36263
36282
|
selectProps: _objectSpread2({
|
|
36264
36283
|
style: styleCommon,
|
|
@@ -36279,7 +36298,7 @@ function RenderCompItem(props) {
|
|
|
36279
36298
|
getPopupContainer: function getPopupContainer() {
|
|
36280
36299
|
return document.body;
|
|
36281
36300
|
}
|
|
36282
|
-
})) || 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, {
|
|
36283
36302
|
selectBusinessType: "role",
|
|
36284
36303
|
selectProps: _objectSpread2({
|
|
36285
36304
|
style: styleCommon,
|
|
@@ -36300,7 +36319,7 @@ function RenderCompItem(props) {
|
|
|
36300
36319
|
getPopupContainer: function getPopupContainer() {
|
|
36301
36320
|
return document.body;
|
|
36302
36321
|
}
|
|
36303
|
-
})) || 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, {
|
|
36304
36323
|
selectBusinessType: "brand",
|
|
36305
36324
|
selectProps: _objectSpread2({
|
|
36306
36325
|
style: styleCommon,
|
|
@@ -36321,7 +36340,7 @@ function RenderCompItem(props) {
|
|
|
36321
36340
|
getPopupContainer: function getPopupContainer() {
|
|
36322
36341
|
return document.body;
|
|
36323
36342
|
}
|
|
36324
|
-
})) || 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, {
|
|
36325
36344
|
disabled: disabled,
|
|
36326
36345
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36327
36346
|
businessType: "background-category",
|
|
@@ -36334,7 +36353,7 @@ function RenderCompItem(props) {
|
|
|
36334
36353
|
getPopupContainer: function getPopupContainer() {
|
|
36335
36354
|
return document.body;
|
|
36336
36355
|
}
|
|
36337
|
-
})) || 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, {
|
|
36338
36357
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36339
36358
|
style: styleCommon,
|
|
36340
36359
|
placeholder: '请选择'
|
|
@@ -36357,7 +36376,7 @@ function RenderCompItem(props) {
|
|
|
36357
36376
|
onChange: function onChange(value) {
|
|
36358
36377
|
handleEdit(ites.code, value);
|
|
36359
36378
|
}
|
|
36360
|
-
})) || 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", {
|
|
36361
36380
|
style: {
|
|
36362
36381
|
display: 'flex'
|
|
36363
36382
|
}
|
|
@@ -36869,7 +36888,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36869
36888
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36870
36889
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36871
36890
|
}
|
|
36872
|
-
var parallelTreeData =
|
|
36891
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
36873
36892
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36874
36893
|
var _i$key;
|
|
36875
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);
|
|
@@ -37796,13 +37815,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37796
37815
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37797
37816
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37798
37817
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37799
|
-
var list =
|
|
37818
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37800
37819
|
var requiredList = list.filter(function (c) {
|
|
37801
37820
|
return c.required == 1;
|
|
37802
37821
|
}) || []; // 获取对象属性为true的集合
|
|
37803
37822
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37804
37823
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37805
|
-
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];
|
|
37806
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) {
|
|
37807
37826
|
if (requiredList.some(function (r) {
|
|
37808
37827
|
return r.id === e.elementId;
|
|
@@ -38391,7 +38410,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38391
38410
|
style: {
|
|
38392
38411
|
float: 'right'
|
|
38393
38412
|
}
|
|
38394
|
-
})), /*#__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), {}, {
|
|
38395
38414
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38396
38415
|
ruleGroupInfo: {
|
|
38397
38416
|
ruleGroupList: ruleGroupList,
|
|
@@ -38409,7 +38428,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38409
38428
|
callBack: function callBack(newData) {
|
|
38410
38429
|
upDateData(newData);
|
|
38411
38430
|
}
|
|
38412
|
-
}))) : (
|
|
38431
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38413
38432
|
style: {
|
|
38414
38433
|
padding: 20
|
|
38415
38434
|
}
|
|
@@ -38784,4 +38803,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
38784
38803
|
}, children));
|
|
38785
38804
|
};
|
|
38786
38805
|
|
|
38787
|
-
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 };
|