@bit-sun/business-component 4.0.13-alpha.1 → 4.0.13-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +468 -420
- package/dist/index.js +469 -421
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +9 -4
- package/src/components/Functional/DataValidation/index.tsx +1 -0
- package/src/components/Functional/QueryMutipleSelect/index.tsx +2 -5
- package/src/components/Functional/SearchSelect/utils.tsx +0 -1
package/dist/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var moment$1 = require('moment');
|
|
|
15
15
|
var icons = require('@ant-design/icons');
|
|
16
16
|
var bssula = require('bssula');
|
|
17
17
|
require('qs');
|
|
18
|
-
var ReactDOMServer = require('react-dom/server');
|
|
19
18
|
var XLSX = require('xlsx');
|
|
20
19
|
var reactBeautifulDnd = require('react-beautiful-dnd');
|
|
21
20
|
var ahooks = require('ahooks');
|
|
@@ -55,88 +54,9 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
|
|
|
55
54
|
var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
|
|
56
55
|
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
|
|
57
56
|
|
|
58
|
-
function _arrayLikeToArray(r, a) {
|
|
59
|
-
(null == a || a > r.length) && (a = r.length);
|
|
60
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
61
|
-
return n;
|
|
62
|
-
}
|
|
63
|
-
function _arrayWithHoles(r) {
|
|
64
|
-
if (Array.isArray(r)) return r;
|
|
65
|
-
}
|
|
66
|
-
function _arrayWithoutHoles(r) {
|
|
67
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
68
|
-
}
|
|
69
|
-
function _assertThisInitialized(e) {
|
|
70
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
71
|
-
return e;
|
|
72
|
-
}
|
|
73
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
74
|
-
try {
|
|
75
|
-
var i = n[a](c),
|
|
76
|
-
u = i.value;
|
|
77
|
-
} catch (n) {
|
|
78
|
-
return void e(n);
|
|
79
|
-
}
|
|
80
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
81
|
-
}
|
|
82
|
-
function _asyncToGenerator(n) {
|
|
83
|
-
return function () {
|
|
84
|
-
var t = this,
|
|
85
|
-
e = arguments;
|
|
86
|
-
return new Promise(function (r, o) {
|
|
87
|
-
var a = n.apply(t, e);
|
|
88
|
-
function _next(n) {
|
|
89
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
90
|
-
}
|
|
91
|
-
function _throw(n) {
|
|
92
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
93
|
-
}
|
|
94
|
-
_next(void 0);
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
57
|
function _callSuper(t, o, e) {
|
|
99
58
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
100
59
|
}
|
|
101
|
-
function _classCallCheck(a, n) {
|
|
102
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
103
|
-
}
|
|
104
|
-
function _defineProperties(e, r) {
|
|
105
|
-
for (var t = 0; t < r.length; t++) {
|
|
106
|
-
var o = r[t];
|
|
107
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function _createClass(e, r, t) {
|
|
111
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
112
|
-
writable: !1
|
|
113
|
-
}), e;
|
|
114
|
-
}
|
|
115
|
-
function _defineProperty(e, r, t) {
|
|
116
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
117
|
-
value: t,
|
|
118
|
-
enumerable: !0,
|
|
119
|
-
configurable: !0,
|
|
120
|
-
writable: !0
|
|
121
|
-
}) : e[r] = t, e;
|
|
122
|
-
}
|
|
123
|
-
function _getPrototypeOf(t) {
|
|
124
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
125
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
126
|
-
}, _getPrototypeOf(t);
|
|
127
|
-
}
|
|
128
|
-
function _inherits(t, e) {
|
|
129
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
130
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
131
|
-
constructor: {
|
|
132
|
-
value: t,
|
|
133
|
-
writable: !0,
|
|
134
|
-
configurable: !0
|
|
135
|
-
}
|
|
136
|
-
}), Object.defineProperty(t, "prototype", {
|
|
137
|
-
writable: !1
|
|
138
|
-
}), e && _setPrototypeOf(t, e);
|
|
139
|
-
}
|
|
140
60
|
function _isNativeReflectConstruct() {
|
|
141
61
|
try {
|
|
142
62
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -145,9 +65,6 @@ function _isNativeReflectConstruct() {
|
|
|
145
65
|
return !!t;
|
|
146
66
|
})();
|
|
147
67
|
}
|
|
148
|
-
function _iterableToArray(r) {
|
|
149
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
150
|
-
}
|
|
151
68
|
function _iterableToArrayLimit(r, l) {
|
|
152
69
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
153
70
|
if (null != t) {
|
|
@@ -175,15 +92,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
175
92
|
return a;
|
|
176
93
|
}
|
|
177
94
|
}
|
|
178
|
-
function _nonIterableRest() {
|
|
179
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
180
|
-
}
|
|
181
|
-
function _nonIterableSpread() {
|
|
182
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
183
|
-
}
|
|
184
|
-
function _objectDestructuringEmpty(t) {
|
|
185
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
186
|
-
}
|
|
187
95
|
function ownKeys(e, r) {
|
|
188
96
|
var t = Object.keys(e);
|
|
189
97
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -205,31 +113,6 @@ function _objectSpread2(e) {
|
|
|
205
113
|
}
|
|
206
114
|
return e;
|
|
207
115
|
}
|
|
208
|
-
function _objectWithoutProperties(e, t) {
|
|
209
|
-
if (null == e) return {};
|
|
210
|
-
var o,
|
|
211
|
-
r,
|
|
212
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
|
-
if (Object.getOwnPropertySymbols) {
|
|
214
|
-
var s = Object.getOwnPropertySymbols(e);
|
|
215
|
-
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
216
|
-
}
|
|
217
|
-
return i;
|
|
218
|
-
}
|
|
219
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
220
|
-
if (null == r) return {};
|
|
221
|
-
var t = {};
|
|
222
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
223
|
-
if (e.includes(n)) continue;
|
|
224
|
-
t[n] = r[n];
|
|
225
|
-
}
|
|
226
|
-
return t;
|
|
227
|
-
}
|
|
228
|
-
function _possibleConstructorReturn(t, e) {
|
|
229
|
-
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
230
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
|
-
return _assertThisInitialized(t);
|
|
232
|
-
}
|
|
233
116
|
function _regeneratorRuntime() {
|
|
234
117
|
_regeneratorRuntime = function () {
|
|
235
118
|
return e;
|
|
@@ -531,20 +414,6 @@ function _regeneratorRuntime() {
|
|
|
531
414
|
}
|
|
532
415
|
}, e;
|
|
533
416
|
}
|
|
534
|
-
function _setPrototypeOf(t, e) {
|
|
535
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
536
|
-
return t.__proto__ = e, t;
|
|
537
|
-
}, _setPrototypeOf(t, e);
|
|
538
|
-
}
|
|
539
|
-
function _slicedToArray(r, e) {
|
|
540
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
541
|
-
}
|
|
542
|
-
function _toArray(r) {
|
|
543
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
544
|
-
}
|
|
545
|
-
function _toConsumableArray(r) {
|
|
546
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
547
|
-
}
|
|
548
417
|
function _toPrimitive(t, r) {
|
|
549
418
|
if ("object" != typeof t || !t) return t;
|
|
550
419
|
var e = t[Symbol.toPrimitive];
|
|
@@ -568,12 +437,180 @@ function _typeof(o) {
|
|
|
568
437
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
569
438
|
}, _typeof(o);
|
|
570
439
|
}
|
|
571
|
-
function
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
var
|
|
575
|
-
|
|
440
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
441
|
+
try {
|
|
442
|
+
var info = gen[key](arg);
|
|
443
|
+
var value = info.value;
|
|
444
|
+
} catch (error) {
|
|
445
|
+
reject(error);
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
if (info.done) {
|
|
449
|
+
resolve(value);
|
|
450
|
+
} else {
|
|
451
|
+
Promise.resolve(value).then(_next, _throw);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
function _asyncToGenerator(fn) {
|
|
455
|
+
return function () {
|
|
456
|
+
var self = this,
|
|
457
|
+
args = arguments;
|
|
458
|
+
return new Promise(function (resolve, reject) {
|
|
459
|
+
var gen = fn.apply(self, args);
|
|
460
|
+
function _next(value) {
|
|
461
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
462
|
+
}
|
|
463
|
+
function _throw(err) {
|
|
464
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
465
|
+
}
|
|
466
|
+
_next(undefined);
|
|
467
|
+
});
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
function _classCallCheck(instance, Constructor) {
|
|
471
|
+
if (!(instance instanceof Constructor)) {
|
|
472
|
+
throw new TypeError("Cannot call a class as a function");
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
function _defineProperties(target, props) {
|
|
476
|
+
for (var i = 0; i < props.length; i++) {
|
|
477
|
+
var descriptor = props[i];
|
|
478
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
479
|
+
descriptor.configurable = true;
|
|
480
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
481
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
485
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
486
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
487
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
488
|
+
writable: false
|
|
489
|
+
});
|
|
490
|
+
return Constructor;
|
|
491
|
+
}
|
|
492
|
+
function _defineProperty(obj, key, value) {
|
|
493
|
+
key = _toPropertyKey(key);
|
|
494
|
+
if (key in obj) {
|
|
495
|
+
Object.defineProperty(obj, key, {
|
|
496
|
+
value: value,
|
|
497
|
+
enumerable: true,
|
|
498
|
+
configurable: true,
|
|
499
|
+
writable: true
|
|
500
|
+
});
|
|
501
|
+
} else {
|
|
502
|
+
obj[key] = value;
|
|
503
|
+
}
|
|
504
|
+
return obj;
|
|
505
|
+
}
|
|
506
|
+
function _inherits(subClass, superClass) {
|
|
507
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
508
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
576
509
|
}
|
|
510
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
511
|
+
constructor: {
|
|
512
|
+
value: subClass,
|
|
513
|
+
writable: true,
|
|
514
|
+
configurable: true
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
Object.defineProperty(subClass, "prototype", {
|
|
518
|
+
writable: false
|
|
519
|
+
});
|
|
520
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
521
|
+
}
|
|
522
|
+
function _getPrototypeOf(o) {
|
|
523
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
524
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
525
|
+
};
|
|
526
|
+
return _getPrototypeOf(o);
|
|
527
|
+
}
|
|
528
|
+
function _setPrototypeOf(o, p) {
|
|
529
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
530
|
+
o.__proto__ = p;
|
|
531
|
+
return o;
|
|
532
|
+
};
|
|
533
|
+
return _setPrototypeOf(o, p);
|
|
534
|
+
}
|
|
535
|
+
function _objectDestructuringEmpty(obj) {
|
|
536
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
537
|
+
}
|
|
538
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
539
|
+
if (source == null) return {};
|
|
540
|
+
var target = {};
|
|
541
|
+
for (var key in source) {
|
|
542
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
543
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
544
|
+
target[key] = source[key];
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
return target;
|
|
548
|
+
}
|
|
549
|
+
function _objectWithoutProperties(source, excluded) {
|
|
550
|
+
if (source == null) return {};
|
|
551
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
552
|
+
var key, i;
|
|
553
|
+
if (Object.getOwnPropertySymbols) {
|
|
554
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
555
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
556
|
+
key = sourceSymbolKeys[i];
|
|
557
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
558
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
559
|
+
target[key] = source[key];
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
return target;
|
|
563
|
+
}
|
|
564
|
+
function _assertThisInitialized(self) {
|
|
565
|
+
if (self === void 0) {
|
|
566
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
567
|
+
}
|
|
568
|
+
return self;
|
|
569
|
+
}
|
|
570
|
+
function _possibleConstructorReturn(self, call) {
|
|
571
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
572
|
+
return call;
|
|
573
|
+
} else if (call !== void 0) {
|
|
574
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
575
|
+
}
|
|
576
|
+
return _assertThisInitialized(self);
|
|
577
|
+
}
|
|
578
|
+
function _slicedToArray(arr, i) {
|
|
579
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
580
|
+
}
|
|
581
|
+
function _toArray(arr) {
|
|
582
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
583
|
+
}
|
|
584
|
+
function _toConsumableArray(arr) {
|
|
585
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
586
|
+
}
|
|
587
|
+
function _arrayWithoutHoles(arr) {
|
|
588
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
589
|
+
}
|
|
590
|
+
function _arrayWithHoles(arr) {
|
|
591
|
+
if (Array.isArray(arr)) return arr;
|
|
592
|
+
}
|
|
593
|
+
function _iterableToArray(iter) {
|
|
594
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
595
|
+
}
|
|
596
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
597
|
+
if (!o) return;
|
|
598
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
599
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
600
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
601
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
602
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
603
|
+
}
|
|
604
|
+
function _arrayLikeToArray(arr, len) {
|
|
605
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
606
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
607
|
+
return arr2;
|
|
608
|
+
}
|
|
609
|
+
function _nonIterableSpread() {
|
|
610
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
611
|
+
}
|
|
612
|
+
function _nonIterableRest() {
|
|
613
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
577
614
|
}
|
|
578
615
|
|
|
579
616
|
var ENUM = {
|
|
@@ -1009,6 +1046,12 @@ styleInject(css_248z);
|
|
|
1009
1046
|
|
|
1010
1047
|
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";
|
|
1011
1048
|
|
|
1049
|
+
module.exports = require('./server.node');
|
|
1050
|
+
|
|
1051
|
+
var ReactDOMServer = /*#__PURE__*/Object.freeze({
|
|
1052
|
+
__proto__: null
|
|
1053
|
+
});
|
|
1054
|
+
|
|
1012
1055
|
// 带有toptile 清提示 并且会换行的
|
|
1013
1056
|
var handleTextDouble = function handleTextDouble(textOne, textTwo) {
|
|
1014
1057
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -1083,13 +1126,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1083
1126
|
imgHtml.innerHTML = str;
|
|
1084
1127
|
}
|
|
1085
1128
|
// 测试使用 测试类型缩小 end
|
|
1086
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1129
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1087
1130
|
className: "clomnsImg"
|
|
1088
1131
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1089
1132
|
src: url,
|
|
1090
1133
|
width: "16px",
|
|
1091
1134
|
height: "16px"
|
|
1092
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1135
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1093
1136
|
className: "clomnsImg2"
|
|
1094
1137
|
}, /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1095
1138
|
src: noImg
|
|
@@ -1211,7 +1254,7 @@ var authFn = function authFn(code) {
|
|
|
1211
1254
|
};
|
|
1212
1255
|
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1213
1256
|
var renderToString = function renderToString(render) {
|
|
1214
|
-
return typeof render === 'string' ? render :
|
|
1257
|
+
return typeof render === 'string' ? render : undefined(render);
|
|
1215
1258
|
};
|
|
1216
1259
|
|
|
1217
1260
|
function downloadExcel(data, fileName, isResUrl) {
|
|
@@ -1225,7 +1268,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1225
1268
|
}
|
|
1226
1269
|
save_link.click();
|
|
1227
1270
|
}
|
|
1228
|
-
var
|
|
1271
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1229
1272
|
return data.map(function (item) {
|
|
1230
1273
|
if (!item.name || !item.path) {
|
|
1231
1274
|
return null;
|
|
@@ -1245,7 +1288,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1245
1288
|
authority: item.authority || parentAuthority
|
|
1246
1289
|
});
|
|
1247
1290
|
if (item.routes) {
|
|
1248
|
-
var children =
|
|
1291
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1249
1292
|
// Reduce memory usage
|
|
1250
1293
|
result.children = children;
|
|
1251
1294
|
}
|
|
@@ -1255,7 +1298,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1255
1298
|
return item;
|
|
1256
1299
|
});
|
|
1257
1300
|
};
|
|
1258
|
-
var memoizeOneFormatter = memoizeOne__default['default'](
|
|
1301
|
+
var memoizeOneFormatter = memoizeOne__default['default'](formatter, isEqual__default['default']);
|
|
1259
1302
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1260
1303
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1261
1304
|
if (backHistoryPath) {
|
|
@@ -1564,7 +1607,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1564
1607
|
// sheepMap是表头字段中英文映射
|
|
1565
1608
|
// sheetCount:表的数量,默认一张
|
|
1566
1609
|
var resolveFile = /*#__PURE__*/function () {
|
|
1567
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1610
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1568
1611
|
var config,
|
|
1569
1612
|
data,
|
|
1570
1613
|
_args = arguments;
|
|
@@ -1603,7 +1646,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1603
1646
|
}();
|
|
1604
1647
|
//读取文件
|
|
1605
1648
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1606
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1649
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1607
1650
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1608
1651
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1609
1652
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1696,14 +1739,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1696
1739
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1697
1740
|
|
|
1698
1741
|
// 获取树平行结构
|
|
1699
|
-
var
|
|
1742
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1700
1743
|
var childrenKey = chilKey || 'children';
|
|
1701
1744
|
treeData.forEach(function (el) {
|
|
1702
1745
|
var _el$childrenKey;
|
|
1703
1746
|
result.push(el);
|
|
1704
1747
|
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) {
|
|
1705
1748
|
// 子级递归
|
|
1706
|
-
|
|
1749
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1707
1750
|
}
|
|
1708
1751
|
});
|
|
1709
1752
|
return result;
|
|
@@ -1980,13 +2023,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1980
2023
|
imgHtml.innerHTML = str;
|
|
1981
2024
|
}
|
|
1982
2025
|
// 测试使用 测试类型缩小 end
|
|
1983
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
2026
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1984
2027
|
className: "clomnsImg"
|
|
1985
2028
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1986
2029
|
src: url,
|
|
1987
2030
|
width: "16px",
|
|
1988
2031
|
height: "16px"
|
|
1989
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2032
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1990
2033
|
src: noImg
|
|
1991
2034
|
}))));
|
|
1992
2035
|
};
|
|
@@ -2048,7 +2091,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2048
2091
|
}
|
|
2049
2092
|
});
|
|
2050
2093
|
};
|
|
2051
|
-
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && (/*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
2094
|
+
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && ( /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
2052
2095
|
disabled: disabled,
|
|
2053
2096
|
onChange: function onChange(e) {
|
|
2054
2097
|
var v = e.target.value;
|
|
@@ -2058,7 +2101,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2058
2101
|
width: 170
|
|
2059
2102
|
},
|
|
2060
2103
|
value: inputValue
|
|
2061
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2104
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2062
2105
|
disabled: disabled,
|
|
2063
2106
|
onBlur: function onBlur(e) {
|
|
2064
2107
|
var v = parseFloat(e.target.value);
|
|
@@ -2437,16 +2480,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2437
2480
|
var handleExportBarCode = handleExport;
|
|
2438
2481
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2439
2482
|
var routerMap = {};
|
|
2440
|
-
var
|
|
2483
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2441
2484
|
data.forEach(function (menuItem) {
|
|
2442
2485
|
if (menuItem.children) {
|
|
2443
|
-
|
|
2486
|
+
flattenMenuData(menuItem.children);
|
|
2444
2487
|
}
|
|
2445
2488
|
// Reduce memory usage
|
|
2446
2489
|
routerMap[menuItem.path] = menuItem;
|
|
2447
2490
|
});
|
|
2448
2491
|
};
|
|
2449
|
-
|
|
2492
|
+
flattenMenuData(menuData);
|
|
2450
2493
|
return routerMap;
|
|
2451
2494
|
};
|
|
2452
2495
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2589,7 +2632,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2589
2632
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2590
2633
|
};
|
|
2591
2634
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2592
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2635
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2593
2636
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2594
2637
|
while (1) switch (_context.prev = _context.next) {
|
|
2595
2638
|
case 0:
|
|
@@ -3263,7 +3306,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3263
3306
|
placement: "bottomLeft"
|
|
3264
3307
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3265
3308
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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"))
|
|
3266
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))
|
|
3309
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3310
|
+
style: {
|
|
3311
|
+
color: 'red'
|
|
3312
|
+
}
|
|
3313
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && ( /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3267
3314
|
trigger: ['click'],
|
|
3268
3315
|
overlay: this.menuList,
|
|
3269
3316
|
placement: "bottomRight"
|
|
@@ -3938,7 +3985,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3938
3985
|
placement: "bottomLeft"
|
|
3939
3986
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3940
3987
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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"))
|
|
3941
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3988
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && ( /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3942
3989
|
trigger: ['click'],
|
|
3943
3990
|
overlay: this.menuList,
|
|
3944
3991
|
placement: "bottomRight"
|
|
@@ -4453,12 +4500,11 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4453
4500
|
onChange(newValue);
|
|
4454
4501
|
};
|
|
4455
4502
|
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
4456
|
-
open: true,
|
|
4457
4503
|
overlayClassName: 'searchSelectMaxTagToolTip',
|
|
4458
4504
|
destroyTooltipOnHide: true,
|
|
4459
4505
|
placement: "topRight",
|
|
4460
4506
|
autoAdjustOverflow: false,
|
|
4461
|
-
title: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4507
|
+
title: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4462
4508
|
style: {
|
|
4463
4509
|
margin: '6px 8px 0px'
|
|
4464
4510
|
},
|
|
@@ -4560,10 +4606,8 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4560
4606
|
uniqueValue = _useState16[0],
|
|
4561
4607
|
setUniqueValue = _useState16[1];
|
|
4562
4608
|
React$1.useEffect(function () {
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
onValueChange(value);
|
|
4566
|
-
}
|
|
4609
|
+
setPopValue(value);
|
|
4610
|
+
onValueChange(value);
|
|
4567
4611
|
}, [value]);
|
|
4568
4612
|
React$1.useEffect(function () {
|
|
4569
4613
|
setUniqueValue(makeUniqueValue());
|
|
@@ -4584,7 +4628,6 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4584
4628
|
var formatValue = (_ToCDB = ToCDB$1(v)) === null || _ToCDB === void 0 ? void 0 : (_ToCDB$split = _ToCDB.split(/[/\n/\s,;]/)) === null || _ToCDB$split === void 0 ? void 0 : (_ToCDB$split$filter = _ToCDB$split.filter(function (item) {
|
|
4585
4629
|
return item;
|
|
4586
4630
|
})) === null || _ToCDB$split$filter === void 0 ? void 0 : _ToCDB$split$filter.join(',');
|
|
4587
|
-
console.log(formatValue, '1111formatValue');
|
|
4588
4631
|
setValue(formatValue);
|
|
4589
4632
|
};
|
|
4590
4633
|
var handleCancel = function handleCancel() {
|
|
@@ -4692,10 +4735,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4692
4735
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4693
4736
|
});
|
|
4694
4737
|
},
|
|
4695
|
-
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
4738
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
4696
4739
|
size: "small",
|
|
4697
4740
|
className: 'searchSelectSpin'
|
|
4698
|
-
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4741
|
+
})) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4699
4742
|
style: {
|
|
4700
4743
|
textAlign: 'center'
|
|
4701
4744
|
}
|
|
@@ -4927,7 +4970,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4927
4970
|
title: item.name,
|
|
4928
4971
|
className: "propertyGroup_checkbox_container"
|
|
4929
4972
|
}, item.name));
|
|
4930
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4973
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4931
4974
|
style: {
|
|
4932
4975
|
width: '50px',
|
|
4933
4976
|
cursor: 'pointer',
|
|
@@ -4940,7 +4983,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4940
4983
|
setShowNotCommon(!showNotCommon);
|
|
4941
4984
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4942
4985
|
}
|
|
4943
|
-
}, showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4986
|
+
}, showNotCommon && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4944
4987
|
};
|
|
4945
4988
|
var PropertyGroup$1 = /*#__PURE__*/React__default['default'].memo(PropertyGroup, function (props, nextProps) {
|
|
4946
4989
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5170,7 +5213,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5170
5213
|
propertyData: item,
|
|
5171
5214
|
handleProperyItemChange: handleProperyItemChange
|
|
5172
5215
|
});
|
|
5173
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5216
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5174
5217
|
style: {
|
|
5175
5218
|
width: '50px',
|
|
5176
5219
|
cursor: 'pointer',
|
|
@@ -5180,7 +5223,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5180
5223
|
onClick: function onClick() {
|
|
5181
5224
|
return setShowNotCommon(!showNotCommon);
|
|
5182
5225
|
}
|
|
5183
|
-
}, showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5226
|
+
}, showNotCommon && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5184
5227
|
};
|
|
5185
5228
|
|
|
5186
5229
|
var Option$1 = antd.Select.Option;
|
|
@@ -6199,13 +6242,13 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6199
6242
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6200
6243
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6201
6244
|
className: 'search_select'
|
|
6202
|
-
}, fieldComponent ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6245
|
+
}, fieldComponent ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6203
6246
|
onClick: function onClick() {
|
|
6204
6247
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6205
6248
|
(_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);
|
|
6206
6249
|
showModal();
|
|
6207
6250
|
}
|
|
6208
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6251
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6209
6252
|
title: getShowStr(),
|
|
6210
6253
|
style: {
|
|
6211
6254
|
overflow: 'hidden',
|
|
@@ -6232,10 +6275,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6232
6275
|
dropdownRender: function dropdownRender(menu) {
|
|
6233
6276
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6234
6277
|
},
|
|
6235
|
-
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
6278
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
6236
6279
|
size: "small",
|
|
6237
6280
|
className: 'searchSelectSpin'
|
|
6238
|
-
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6281
|
+
})) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6239
6282
|
style: {
|
|
6240
6283
|
textAlign: 'center'
|
|
6241
6284
|
}
|
|
@@ -6275,7 +6318,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6275
6318
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6276
6319
|
filterTxt: searchValue
|
|
6277
6320
|
}));
|
|
6278
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6321
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6279
6322
|
maskClosable: false,
|
|
6280
6323
|
destroyOnClose: true,
|
|
6281
6324
|
width: "80%",
|
|
@@ -6872,7 +6915,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6872
6915
|
style: {
|
|
6873
6916
|
width: 525
|
|
6874
6917
|
}
|
|
6875
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6918
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6876
6919
|
checked: !dataSource.some(function (item) {
|
|
6877
6920
|
if (item.hidden) return true;
|
|
6878
6921
|
return false;
|
|
@@ -6910,13 +6953,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6910
6953
|
_this2.onChange(e, item.title);
|
|
6911
6954
|
}
|
|
6912
6955
|
}, item.title);
|
|
6913
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
6956
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
6914
6957
|
style: {
|
|
6915
6958
|
width: '144px'
|
|
6916
6959
|
}
|
|
6917
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6960
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6918
6961
|
className: 'sort_table_column_all_empty'
|
|
6919
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6962
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6920
6963
|
className: 'sort_table_column_special'
|
|
6921
6964
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6922
6965
|
className: 'sort_table_column_all'
|
|
@@ -7105,7 +7148,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7105
7148
|
});
|
|
7106
7149
|
};
|
|
7107
7150
|
// 格式化树选择器数据源
|
|
7108
|
-
var
|
|
7151
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7109
7152
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7110
7153
|
return {
|
|
7111
7154
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7115,7 +7158,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7115
7158
|
isLeaf: !haveChildren,
|
|
7116
7159
|
disabled: haveChildren,
|
|
7117
7160
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7118
|
-
return
|
|
7161
|
+
return mapSearchTree(i, resKeyValue);
|
|
7119
7162
|
}) : []
|
|
7120
7163
|
};
|
|
7121
7164
|
};
|
|
@@ -7124,7 +7167,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7124
7167
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7125
7168
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7126
7169
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7127
|
-
return
|
|
7170
|
+
return mapSearchTree(ites, resKeyValue);
|
|
7128
7171
|
}) || [];
|
|
7129
7172
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7130
7173
|
};
|
|
@@ -7295,7 +7338,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7295
7338
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7296
7339
|
// FIXME: 特殊业务逻辑
|
|
7297
7340
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7298
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7341
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7299
7342
|
var result;
|
|
7300
7343
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7301
7344
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7548,7 +7591,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7548
7591
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7549
7592
|
value: text || null,
|
|
7550
7593
|
onChange: function () {
|
|
7551
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7594
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7552
7595
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7553
7596
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7554
7597
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8156,10 +8199,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8156
8199
|
var newColumns = arr.map(function (col) {
|
|
8157
8200
|
return _objectSpread2({}, col);
|
|
8158
8201
|
});
|
|
8159
|
-
var
|
|
8202
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8160
8203
|
var i = indexArr.shift();
|
|
8161
8204
|
if (indexArr.length > 0) {
|
|
8162
|
-
|
|
8205
|
+
handleIndex(arr[i].children, indexArr);
|
|
8163
8206
|
} else {
|
|
8164
8207
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8165
8208
|
width: size.width
|
|
@@ -8167,7 +8210,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8167
8210
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8168
8211
|
}
|
|
8169
8212
|
};
|
|
8170
|
-
|
|
8213
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8171
8214
|
callback(newColumns);
|
|
8172
8215
|
};
|
|
8173
8216
|
};
|
|
@@ -8177,13 +8220,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8177
8220
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8178
8221
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8179
8222
|
};
|
|
8180
|
-
var
|
|
8223
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8181
8224
|
arr.forEach(function (item, index) {
|
|
8182
8225
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8183
8226
|
return i || i === 0;
|
|
8184
8227
|
});
|
|
8185
8228
|
if (noEmptyArray$1(item.children)) {
|
|
8186
|
-
|
|
8229
|
+
handleColumns(item.children, indexArrInside);
|
|
8187
8230
|
} else {
|
|
8188
8231
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8189
8232
|
item.onHeaderCell = function (column) {
|
|
@@ -8199,14 +8242,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8199
8242
|
handleAntdColumnsSpecialParams(item);
|
|
8200
8243
|
return _objectSpread2({}, item);
|
|
8201
8244
|
});
|
|
8202
|
-
|
|
8245
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
8203
8246
|
return setShowToChooseColumnsCallback(res);
|
|
8204
8247
|
});
|
|
8205
8248
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8206
8249
|
handleAntdColumnsSpecialParams(item);
|
|
8207
8250
|
return _objectSpread2({}, item);
|
|
8208
8251
|
});
|
|
8209
|
-
|
|
8252
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8210
8253
|
return setShowColumnsCallback(res);
|
|
8211
8254
|
});
|
|
8212
8255
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8217,7 +8260,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8217
8260
|
id: "add_select_div_".concat(uniqueValue)
|
|
8218
8261
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
8219
8262
|
onClick: handleShowModal
|
|
8220
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
8263
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
8221
8264
|
width: '1200px',
|
|
8222
8265
|
style: {
|
|
8223
8266
|
top: 20
|
|
@@ -9131,7 +9174,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9131
9174
|
});
|
|
9132
9175
|
};
|
|
9133
9176
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9134
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9177
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9135
9178
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9136
9179
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9137
9180
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9214,10 +9257,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9214
9257
|
var newColumns = arr.map(function (col) {
|
|
9215
9258
|
return _objectSpread2({}, col);
|
|
9216
9259
|
});
|
|
9217
|
-
var
|
|
9260
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
9218
9261
|
var i = indexArr.shift();
|
|
9219
9262
|
if (indexArr.length > 0) {
|
|
9220
|
-
|
|
9263
|
+
handleIndex(arr[i].children, indexArr);
|
|
9221
9264
|
} else {
|
|
9222
9265
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9223
9266
|
width: size.width
|
|
@@ -9225,17 +9268,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9225
9268
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9226
9269
|
}
|
|
9227
9270
|
};
|
|
9228
|
-
|
|
9271
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
9229
9272
|
callback(newColumns);
|
|
9230
9273
|
};
|
|
9231
9274
|
};
|
|
9232
|
-
var
|
|
9275
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9233
9276
|
arr.forEach(function (item, index) {
|
|
9234
9277
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9235
9278
|
return i || i === 0;
|
|
9236
9279
|
});
|
|
9237
9280
|
if (noEmptyArray$1(item.children)) {
|
|
9238
|
-
|
|
9281
|
+
handleColumns(item.children, indexArrInside);
|
|
9239
9282
|
} else {
|
|
9240
9283
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9241
9284
|
item.onHeaderCell = function (column) {
|
|
@@ -9251,7 +9294,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9251
9294
|
handleAntdColumnsSpecialParams(item);
|
|
9252
9295
|
return _objectSpread2({}, item);
|
|
9253
9296
|
});
|
|
9254
|
-
|
|
9297
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
9255
9298
|
return setShowColumnsCallback(res);
|
|
9256
9299
|
});
|
|
9257
9300
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -9566,7 +9609,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9566
9609
|
});
|
|
9567
9610
|
};
|
|
9568
9611
|
// 格式化树选择器数据源
|
|
9569
|
-
var
|
|
9612
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9570
9613
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9571
9614
|
return {
|
|
9572
9615
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9576,7 +9619,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9576
9619
|
isLeaf: !haveChildren,
|
|
9577
9620
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9578
9621
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9579
|
-
return
|
|
9622
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9580
9623
|
}) : []
|
|
9581
9624
|
};
|
|
9582
9625
|
};
|
|
@@ -9590,7 +9633,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9590
9633
|
disabledJudge = false;
|
|
9591
9634
|
}
|
|
9592
9635
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9593
|
-
return
|
|
9636
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9594
9637
|
}) || [];
|
|
9595
9638
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9596
9639
|
};
|
|
@@ -9857,16 +9900,19 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9857
9900
|
type: 'multipleQuerySearchSelect',
|
|
9858
9901
|
props: {
|
|
9859
9902
|
selectProps: {
|
|
9860
|
-
mode: "multiple"
|
|
9903
|
+
mode: "multiple",
|
|
9904
|
+
placeholder: '请输入SKU编码查询'
|
|
9861
9905
|
},
|
|
9862
9906
|
requestConfig: {
|
|
9863
9907
|
url: '/items/sku//listNoPage/Simple',
|
|
9864
|
-
filter: 'qp-name-like',
|
|
9865
|
-
// filter: 'qp-itemCode,name-orGroup,like',
|
|
9908
|
+
filter: 'qp-skuCode,name-orGroup,like',
|
|
9866
9909
|
mappingTextField: 'name',
|
|
9867
9910
|
mappingValueField: 'skuCode',
|
|
9868
9911
|
sourceName: 'qp-skuCode-in',
|
|
9869
|
-
specialBracket: true
|
|
9912
|
+
specialBracket: true,
|
|
9913
|
+
otherParams: {
|
|
9914
|
+
'ownOrgSign': getCurrentTargetBgId()
|
|
9915
|
+
} // 默认参数
|
|
9870
9916
|
}
|
|
9871
9917
|
}
|
|
9872
9918
|
}
|
|
@@ -9879,10 +9925,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9879
9925
|
field: {
|
|
9880
9926
|
type: 'multipleQuerySearchSelect',
|
|
9881
9927
|
props: {
|
|
9928
|
+
selectProps: {
|
|
9929
|
+
placeholder: '请输入SPU编码查询'
|
|
9930
|
+
},
|
|
9882
9931
|
requestConfig: {
|
|
9883
9932
|
url: '/items/item/listNoPage/Simple',
|
|
9884
|
-
filter: 'qp-name-like',
|
|
9885
|
-
// filter: 'qp-skuCode,name-orGroup,like',
|
|
9933
|
+
filter: 'qp-itemCode,name-orGroup,like',
|
|
9886
9934
|
mappingTextField: 'name',
|
|
9887
9935
|
mappingValueField: 'itemCode',
|
|
9888
9936
|
sourceName: 'qp-itemCode-in',
|
|
@@ -13690,7 +13738,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13690
13738
|
};
|
|
13691
13739
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
13692
13740
|
onClick: handleShowModal
|
|
13693
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13741
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13694
13742
|
onOk: handleOk,
|
|
13695
13743
|
onCancel: handleCancel,
|
|
13696
13744
|
destroyOnClose: true,
|
|
@@ -13809,7 +13857,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13809
13857
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13810
13858
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13811
13859
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13812
|
-
var
|
|
13860
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13813
13861
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13814
13862
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13815
13863
|
return {
|
|
@@ -13821,7 +13869,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13821
13869
|
isLeaf: !haveChildren,
|
|
13822
13870
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13823
13871
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13824
|
-
return
|
|
13872
|
+
return mapSearchTree(i);
|
|
13825
13873
|
}) : []
|
|
13826
13874
|
};
|
|
13827
13875
|
};
|
|
@@ -13839,8 +13887,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13839
13887
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13840
13888
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
13841
13889
|
headers: headers
|
|
13842
|
-
}).then(/*#__PURE__*/function () {
|
|
13843
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13890
|
+
}).then( /*#__PURE__*/function () {
|
|
13891
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13844
13892
|
var _ctx$form;
|
|
13845
13893
|
var resData, coverData, data, dataList;
|
|
13846
13894
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13867,7 +13915,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13867
13915
|
case 9:
|
|
13868
13916
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13869
13917
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13870
|
-
return
|
|
13918
|
+
return mapSearchTree(ites);
|
|
13871
13919
|
}) || [];
|
|
13872
13920
|
case 11:
|
|
13873
13921
|
_context.next = 14;
|
|
@@ -13905,11 +13953,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13905
13953
|
return _formatResult;
|
|
13906
13954
|
}
|
|
13907
13955
|
};
|
|
13908
|
-
var
|
|
13956
|
+
var parallelData = function parallelData(data, result) {
|
|
13909
13957
|
data.forEach(function (i) {
|
|
13910
13958
|
result.push(i);
|
|
13911
13959
|
if (i[treeChildrenRoom]) {
|
|
13912
|
-
|
|
13960
|
+
parallelData(i[treeChildrenRoom], result);
|
|
13913
13961
|
}
|
|
13914
13962
|
});
|
|
13915
13963
|
return result;
|
|
@@ -13949,7 +13997,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13949
13997
|
var _ctx$form2;
|
|
13950
13998
|
var handleData = formatData(data);
|
|
13951
13999
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13952
|
-
var parallelTreeData =
|
|
14000
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13953
14001
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13954
14002
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13955
14003
|
onChangeName && onChangeName(dataName);
|
|
@@ -13992,7 +14040,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13992
14040
|
var getShowStr = function getShowStr() {
|
|
13993
14041
|
var isMultiple = multiple || treeCheckable;
|
|
13994
14042
|
var kongValue = '无';
|
|
13995
|
-
var parallelTreeData =
|
|
14043
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13996
14044
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13997
14045
|
if (isMultiple) {
|
|
13998
14046
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14004,7 +14052,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14004
14052
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14005
14053
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14006
14054
|
className: 'tree_search_select'
|
|
14007
|
-
}, isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14055
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14008
14056
|
title: getShowStr(),
|
|
14009
14057
|
style: {
|
|
14010
14058
|
overflow: 'hidden',
|
|
@@ -14012,7 +14060,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14012
14060
|
whiteSpace: 'nowrap'
|
|
14013
14061
|
},
|
|
14014
14062
|
className: 'search_select_show'
|
|
14015
|
-
}, getShowStr())) : (/*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14063
|
+
}, getShowStr())) : ( /*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14016
14064
|
treeCheckable: treeCheckable,
|
|
14017
14065
|
maxTagCount: maxTagCount,
|
|
14018
14066
|
showSearch: showSearch,
|
|
@@ -14209,7 +14257,7 @@ var index$2 = (function (props) {
|
|
|
14209
14257
|
} : {}
|
|
14210
14258
|
}, item.text)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14211
14259
|
className: 'status-label-operate'
|
|
14212
|
-
}, item.isDone ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14260
|
+
}, item.isDone ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14213
14261
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14214
14262
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14215
14263
|
style: {
|
|
@@ -14990,7 +15038,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14990
15038
|
style: {
|
|
14991
15039
|
width: 525
|
|
14992
15040
|
}
|
|
14993
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
15041
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
14994
15042
|
checked: !dataSource.some(function (item) {
|
|
14995
15043
|
if (item.hidden) return true;
|
|
14996
15044
|
return false;
|
|
@@ -15028,13 +15076,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15028
15076
|
_this2.onChange(e, item.title);
|
|
15029
15077
|
}
|
|
15030
15078
|
}, item.title);
|
|
15031
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
15079
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15032
15080
|
style: {
|
|
15033
15081
|
width: '144px'
|
|
15034
15082
|
}
|
|
15035
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
15083
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15036
15084
|
className: 'sort_table_column_all_empty'
|
|
15037
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15085
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15038
15086
|
className: 'sort_table_column_special'
|
|
15039
15087
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15040
15088
|
className: 'sort_table_column_all'
|
|
@@ -15213,10 +15261,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15213
15261
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15214
15262
|
return _objectSpread2({}, col);
|
|
15215
15263
|
});
|
|
15216
|
-
var
|
|
15264
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15217
15265
|
var i = indexArr.shift();
|
|
15218
15266
|
if (indexArr.length > 0) {
|
|
15219
|
-
|
|
15267
|
+
handleIndex(arr[i].children, indexArr);
|
|
15220
15268
|
} else {
|
|
15221
15269
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15222
15270
|
width: size.width
|
|
@@ -15224,7 +15272,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15224
15272
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15225
15273
|
}
|
|
15226
15274
|
};
|
|
15227
|
-
|
|
15275
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15228
15276
|
_this.setState({
|
|
15229
15277
|
showColumns: _toConsumableArray(newColumns)
|
|
15230
15278
|
});
|
|
@@ -15265,7 +15313,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15265
15313
|
};
|
|
15266
15314
|
setIsResizing(true);
|
|
15267
15315
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15268
|
-
document.addEventListener('mouseup',
|
|
15316
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
15269
15317
|
};
|
|
15270
15318
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15271
15319
|
e.stopPropagation();
|
|
@@ -15281,9 +15329,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15281
15329
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15282
15330
|
}
|
|
15283
15331
|
};
|
|
15284
|
-
var
|
|
15332
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
15285
15333
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15286
|
-
document.removeEventListener('mouseup',
|
|
15334
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
15287
15335
|
setIsResizing(false);
|
|
15288
15336
|
};
|
|
15289
15337
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15404,13 +15452,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15404
15452
|
showSummary = summary;
|
|
15405
15453
|
}
|
|
15406
15454
|
}
|
|
15407
|
-
var
|
|
15455
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15408
15456
|
arr.forEach(function (item, index) {
|
|
15409
15457
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15410
15458
|
return i || i === 0;
|
|
15411
15459
|
});
|
|
15412
15460
|
if (noEmptyArray$1(item.children)) {
|
|
15413
|
-
|
|
15461
|
+
handleColumns(item.children, indexArrInside);
|
|
15414
15462
|
} else {
|
|
15415
15463
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15416
15464
|
item.onHeaderCell = function (column) {
|
|
@@ -15426,7 +15474,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15426
15474
|
handleBssulaColumnsSpecialParams(item);
|
|
15427
15475
|
return _objectSpread2({}, item);
|
|
15428
15476
|
});
|
|
15429
|
-
|
|
15477
|
+
handleColumns(showCol, []);
|
|
15430
15478
|
if (dynamicColumns.length) {
|
|
15431
15479
|
showCol = this.handledynamicColumns(showCol);
|
|
15432
15480
|
}
|
|
@@ -15467,7 +15515,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15467
15515
|
cell: this.ResizeableTitle
|
|
15468
15516
|
}
|
|
15469
15517
|
}
|
|
15470
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15518
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15471
15519
|
summary: summary
|
|
15472
15520
|
})));
|
|
15473
15521
|
}
|
|
@@ -15564,10 +15612,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15564
15612
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15565
15613
|
return _objectSpread2({}, col);
|
|
15566
15614
|
});
|
|
15567
|
-
var
|
|
15615
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15568
15616
|
var i = indexArr.shift();
|
|
15569
15617
|
if (indexArr.length > 0) {
|
|
15570
|
-
|
|
15618
|
+
handleIndex(arr[i].children, indexArr);
|
|
15571
15619
|
} else {
|
|
15572
15620
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15573
15621
|
width: size.width
|
|
@@ -15575,7 +15623,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15575
15623
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15576
15624
|
}
|
|
15577
15625
|
};
|
|
15578
|
-
|
|
15626
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15579
15627
|
_this.setState({
|
|
15580
15628
|
showColumns: _toConsumableArray(newColumns)
|
|
15581
15629
|
});
|
|
@@ -15651,13 +15699,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15651
15699
|
showSummary = summary;
|
|
15652
15700
|
}
|
|
15653
15701
|
}
|
|
15654
|
-
var
|
|
15702
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15655
15703
|
arr.forEach(function (item, index) {
|
|
15656
15704
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15657
15705
|
return i || i === 0;
|
|
15658
15706
|
});
|
|
15659
15707
|
if (noEmptyArray$1(item.children)) {
|
|
15660
|
-
|
|
15708
|
+
handleColumns(item.children, indexArrInside);
|
|
15661
15709
|
} else {
|
|
15662
15710
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15663
15711
|
item.onHeaderCell = function (column) {
|
|
@@ -15673,7 +15721,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15673
15721
|
handleAntdColumnsSpecialParams(item);
|
|
15674
15722
|
return _objectSpread2({}, item);
|
|
15675
15723
|
});
|
|
15676
|
-
|
|
15724
|
+
handleColumns(showCol, []);
|
|
15677
15725
|
if (dynamicColumns.length) {
|
|
15678
15726
|
showCol = this.handledynamicColumns(showCol);
|
|
15679
15727
|
}
|
|
@@ -15713,7 +15761,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15713
15761
|
cell: this.ResizeableTitle
|
|
15714
15762
|
}
|
|
15715
15763
|
}
|
|
15716
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15764
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15717
15765
|
summary: summary
|
|
15718
15766
|
})));
|
|
15719
15767
|
}
|
|
@@ -15773,20 +15821,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15773
15821
|
};
|
|
15774
15822
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15775
15823
|
var routerMap = {};
|
|
15776
|
-
var
|
|
15824
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
15777
15825
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15778
15826
|
data.forEach(function (menuItem) {
|
|
15779
15827
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15780
15828
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15781
15829
|
});
|
|
15782
15830
|
if (newMenuItem.children) {
|
|
15783
|
-
|
|
15831
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
15784
15832
|
}
|
|
15785
15833
|
// Reduce memory usage
|
|
15786
15834
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15787
15835
|
});
|
|
15788
15836
|
};
|
|
15789
|
-
|
|
15837
|
+
flattenMenuData(menuData, {});
|
|
15790
15838
|
return routerMap;
|
|
15791
15839
|
};
|
|
15792
15840
|
// mode类型判断
|
|
@@ -16112,7 +16160,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16112
16160
|
display: 'flex',
|
|
16113
16161
|
gap: '8px'
|
|
16114
16162
|
}
|
|
16115
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16163
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16116
16164
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16117
16165
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16118
16166
|
onClick: function onClick() {
|
|
@@ -16120,7 +16168,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16120
16168
|
},
|
|
16121
16169
|
width: 24,
|
|
16122
16170
|
src: scanning
|
|
16123
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16171
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16124
16172
|
title: "\u5168\u5C4F"
|
|
16125
16173
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16126
16174
|
onClick: function onClick() {
|
|
@@ -16128,7 +16176,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16128
16176
|
},
|
|
16129
16177
|
width: 24,
|
|
16130
16178
|
src: quanping
|
|
16131
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16179
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16132
16180
|
}, function (prevProps, nextProps) {
|
|
16133
16181
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16134
16182
|
return false;
|
|
@@ -16213,7 +16261,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16213
16261
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16214
16262
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16215
16263
|
}, item));
|
|
16216
|
-
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16264
|
+
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16217
16265
|
}, function (prevProps, nextProps) {
|
|
16218
16266
|
if (prevProps.title !== nextProps.title) {
|
|
16219
16267
|
return false;
|
|
@@ -16853,7 +16901,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16853
16901
|
});
|
|
16854
16902
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16855
16903
|
className: 'sort_table_wrapper'
|
|
16856
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16904
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16857
16905
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16858
16906
|
wrapClassName: 'sort_table_wrapper',
|
|
16859
16907
|
width: 810,
|
|
@@ -16904,7 +16952,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16904
16952
|
width: 525,
|
|
16905
16953
|
height: 24
|
|
16906
16954
|
}
|
|
16907
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16955
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16908
16956
|
checked: !dataSource.some(function (item) {
|
|
16909
16957
|
if (item.hidden) return true;
|
|
16910
16958
|
return false;
|
|
@@ -16958,13 +17006,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16958
17006
|
_this2.onChange(e, item.title);
|
|
16959
17007
|
}
|
|
16960
17008
|
}, item.title);
|
|
16961
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
17009
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16962
17010
|
style: {
|
|
16963
17011
|
width: '144px'
|
|
16964
17012
|
}
|
|
16965
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
17013
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16966
17014
|
className: 'sort_table_column_all_empty'
|
|
16967
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17015
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16968
17016
|
className: 'sort_table_column_special'
|
|
16969
17017
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16970
17018
|
className: 'sort_table_column_all'
|
|
@@ -17438,7 +17486,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17438
17486
|
});
|
|
17439
17487
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17440
17488
|
className: 'sort_table_wrapper'
|
|
17441
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17489
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17442
17490
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17443
17491
|
wrapClassName: 'sort_table_wrapper',
|
|
17444
17492
|
width: 820,
|
|
@@ -17483,7 +17531,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17483
17531
|
style: {
|
|
17484
17532
|
width: 525
|
|
17485
17533
|
}
|
|
17486
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17534
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17487
17535
|
checked: !dataSource.some(function (item) {
|
|
17488
17536
|
if (item.hidden) return true;
|
|
17489
17537
|
return false;
|
|
@@ -17519,11 +17567,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17519
17567
|
_this2.onChange(e, item.name);
|
|
17520
17568
|
}
|
|
17521
17569
|
}, item.label);
|
|
17522
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
17570
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17523
17571
|
style: {
|
|
17524
17572
|
width: '144px'
|
|
17525
17573
|
}
|
|
17526
|
-
})), !newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
17574
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17527
17575
|
className: 'sort_table_column_all_empty'
|
|
17528
17576
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17529
17577
|
className: 'sort_table_content_wrapper'
|
|
@@ -17622,7 +17670,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17622
17670
|
};
|
|
17623
17671
|
setIsResizing(true);
|
|
17624
17672
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17625
|
-
document.addEventListener('mouseup',
|
|
17673
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
17626
17674
|
};
|
|
17627
17675
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17628
17676
|
e.stopPropagation();
|
|
@@ -17638,9 +17686,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17638
17686
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17639
17687
|
}
|
|
17640
17688
|
};
|
|
17641
|
-
var
|
|
17689
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
17642
17690
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17643
|
-
document.removeEventListener('mouseup',
|
|
17691
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
17644
17692
|
setIsResizing(false);
|
|
17645
17693
|
};
|
|
17646
17694
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18051,7 +18099,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18051
18099
|
actionsRender = actionsRender.concat([{
|
|
18052
18100
|
type: 'text',
|
|
18053
18101
|
props: {
|
|
18054
|
-
children: (/*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
18102
|
+
children: ( /*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
18055
18103
|
request: {
|
|
18056
18104
|
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),
|
|
18057
18105
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18297,7 +18345,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18297
18345
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18298
18346
|
bsTableCode: bsTableCode,
|
|
18299
18347
|
onlyModal: true
|
|
18300
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
18348
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
18301
18349
|
ref: exportTableRef,
|
|
18302
18350
|
setShowColumns: setShowExportColumns,
|
|
18303
18351
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18390,11 +18438,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18390
18438
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18391
18439
|
var resultList = [];
|
|
18392
18440
|
var newRouter = cloneDeep__default['default'](router);
|
|
18393
|
-
var
|
|
18441
|
+
var deep = function deep(router) {
|
|
18394
18442
|
if (router && Array.isArray(router)) {
|
|
18395
18443
|
router.forEach(function (item) {
|
|
18396
18444
|
if (item.children && Array.isArray(item.children)) {
|
|
18397
|
-
|
|
18445
|
+
deep(item.children);
|
|
18398
18446
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18399
18447
|
return d === item.code;
|
|
18400
18448
|
})) {
|
|
@@ -18408,10 +18456,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18408
18456
|
resultList.push(_objectSpread2({}, router));
|
|
18409
18457
|
}
|
|
18410
18458
|
};
|
|
18411
|
-
|
|
18459
|
+
deep(newRouter);
|
|
18412
18460
|
callBack([].concat(resultList));
|
|
18413
18461
|
};
|
|
18414
|
-
var
|
|
18462
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18415
18463
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18416
18464
|
var _loop = function _loop(i) {
|
|
18417
18465
|
if (routesData[i].hideInMenu) {
|
|
@@ -18425,7 +18473,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18425
18473
|
return 0; // continue
|
|
18426
18474
|
}
|
|
18427
18475
|
if (routesData[i].children) {
|
|
18428
|
-
|
|
18476
|
+
setMenuTreeData(routesData[i].children);
|
|
18429
18477
|
}
|
|
18430
18478
|
},
|
|
18431
18479
|
_ret;
|
|
@@ -18446,16 +18494,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18446
18494
|
};
|
|
18447
18495
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18448
18496
|
var routerMap = {};
|
|
18449
|
-
var
|
|
18497
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18450
18498
|
data.forEach(function (menuItem) {
|
|
18451
18499
|
if (menuItem.children) {
|
|
18452
|
-
|
|
18500
|
+
flattenMenuData(menuItem.children);
|
|
18453
18501
|
}
|
|
18454
18502
|
// Reduce memory usage
|
|
18455
18503
|
routerMap[menuItem.path] = menuItem;
|
|
18456
18504
|
});
|
|
18457
18505
|
};
|
|
18458
|
-
|
|
18506
|
+
flattenMenuData(menuData);
|
|
18459
18507
|
return routerMap;
|
|
18460
18508
|
};
|
|
18461
18509
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18601,7 +18649,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18601
18649
|
sethomepageData(homepageDataList);
|
|
18602
18650
|
setroutesData(routesDataList);
|
|
18603
18651
|
}, []);
|
|
18604
|
-
var
|
|
18652
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18605
18653
|
if (!child.hideInMenu && child.children) {
|
|
18606
18654
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
18607
18655
|
style: {
|
|
@@ -18611,7 +18659,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18611
18659
|
}, umi.formatMessage({
|
|
18612
18660
|
id: "".concat(child.locale)
|
|
18613
18661
|
})), child.children.map(function (menuItem) {
|
|
18614
|
-
return
|
|
18662
|
+
return renderChildItem(menuItem);
|
|
18615
18663
|
}));
|
|
18616
18664
|
} else if (!child.hideInMenu && child.path) {
|
|
18617
18665
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -18646,7 +18694,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18646
18694
|
className: 'drawerWarp'
|
|
18647
18695
|
}, homepageData && homepageData.filter(function (d) {
|
|
18648
18696
|
return !d.hideInMenu;
|
|
18649
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
18697
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
18650
18698
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
18651
18699
|
dataSource: homepageData,
|
|
18652
18700
|
renderItem: function renderItem(child) {
|
|
@@ -18681,7 +18729,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18681
18729
|
bordered: true,
|
|
18682
18730
|
dataSource: item.children,
|
|
18683
18731
|
renderItem: function renderItem(child) {
|
|
18684
|
-
return
|
|
18732
|
+
return renderChildItem(child);
|
|
18685
18733
|
}
|
|
18686
18734
|
});
|
|
18687
18735
|
})));
|
|
@@ -18741,7 +18789,7 @@ var AllFunc$1 = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18741
18789
|
src: allfunc
|
|
18742
18790
|
})), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18743
18791
|
className: 'btnSpan2'
|
|
18744
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
18792
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
18745
18793
|
style: {
|
|
18746
18794
|
left: isDrawer ? 140 : 0,
|
|
18747
18795
|
top: 50
|
|
@@ -18787,7 +18835,7 @@ function outLogin(_x) {
|
|
|
18787
18835
|
return _outLogin.apply(this, arguments);
|
|
18788
18836
|
}
|
|
18789
18837
|
function _outLogin() {
|
|
18790
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18838
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18791
18839
|
var res;
|
|
18792
18840
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18793
18841
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18929,7 +18977,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18929
18977
|
});
|
|
18930
18978
|
};
|
|
18931
18979
|
var loginOut = /*#__PURE__*/function () {
|
|
18932
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18980
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18933
18981
|
var sessionId;
|
|
18934
18982
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18935
18983
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19033,7 +19081,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19033
19081
|
marginRight: '0px'
|
|
19034
19082
|
},
|
|
19035
19083
|
src: './xialajiantou-new.svg'
|
|
19036
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19084
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19037
19085
|
};
|
|
19038
19086
|
|
|
19039
19087
|
// -- 查询店铺 --
|
|
@@ -19041,7 +19089,7 @@ function getStoreByName(_x) {
|
|
|
19041
19089
|
return _getStoreByName.apply(this, arguments);
|
|
19042
19090
|
}
|
|
19043
19091
|
function _getStoreByName() {
|
|
19044
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19092
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19045
19093
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19046
19094
|
while (1) switch (_context.prev = _context.next) {
|
|
19047
19095
|
case 0:
|
|
@@ -19109,7 +19157,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19109
19157
|
return _fetchUserList.apply(this, arguments);
|
|
19110
19158
|
}
|
|
19111
19159
|
function _fetchUserList() {
|
|
19112
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19160
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19113
19161
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19114
19162
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19115
19163
|
case 0:
|
|
@@ -19157,7 +19205,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19157
19205
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
19158
19206
|
}, [debounceTimeout, key]);
|
|
19159
19207
|
var changeInput = /*#__PURE__*/function () {
|
|
19160
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19208
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19161
19209
|
var res;
|
|
19162
19210
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19163
19211
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19179,7 +19227,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19179
19227
|
};
|
|
19180
19228
|
}();
|
|
19181
19229
|
React$1.useEffect(function () {
|
|
19182
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19230
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19183
19231
|
var res;
|
|
19184
19232
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19185
19233
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19344,7 +19392,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19344
19392
|
var resultList = [];
|
|
19345
19393
|
var newRouter = _.cloneDeep(router);
|
|
19346
19394
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19347
|
-
var
|
|
19395
|
+
var deep = function deep(router) {
|
|
19348
19396
|
if (router && Array.isArray(router)) {
|
|
19349
19397
|
router.forEach(function (item) {
|
|
19350
19398
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19354,7 +19402,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19354
19402
|
d.nameEdit = true;
|
|
19355
19403
|
}
|
|
19356
19404
|
});
|
|
19357
|
-
|
|
19405
|
+
deep(item.routes);
|
|
19358
19406
|
} else if (!item.hideInMenu && (name ? umi.formatMessage({
|
|
19359
19407
|
id: "menu.".concat(item.name)
|
|
19360
19408
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19373,7 +19421,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19373
19421
|
}));
|
|
19374
19422
|
}
|
|
19375
19423
|
};
|
|
19376
|
-
|
|
19424
|
+
deep(newRouter);
|
|
19377
19425
|
setroutesData([].concat(resultList));
|
|
19378
19426
|
};
|
|
19379
19427
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19455,7 +19503,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19455
19503
|
},
|
|
19456
19504
|
title: item.fullPathName
|
|
19457
19505
|
}, renderLineStyl(item.fullPathName));
|
|
19458
|
-
}))))), showSelectStore && (/*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
19506
|
+
}))))), showSelectStore && ( /*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
19459
19507
|
employeeCode: employeeCode
|
|
19460
19508
|
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
19461
19509
|
};
|
|
@@ -19470,7 +19518,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19470
19518
|
var TreeNode = antd.Tree.TreeNode;
|
|
19471
19519
|
var Search$2 = antd.Input.Search;
|
|
19472
19520
|
var dataList = [];
|
|
19473
|
-
var
|
|
19521
|
+
var generateList = function generateList(data) {
|
|
19474
19522
|
for (var i = 0; i < data.length; i++) {
|
|
19475
19523
|
var node = data[i];
|
|
19476
19524
|
var path = node.path,
|
|
@@ -19480,11 +19528,11 @@ var _generateList = function generateList(data) {
|
|
|
19480
19528
|
name: name
|
|
19481
19529
|
});
|
|
19482
19530
|
if (node.children) {
|
|
19483
|
-
|
|
19531
|
+
generateList(node.children);
|
|
19484
19532
|
}
|
|
19485
19533
|
}
|
|
19486
19534
|
};
|
|
19487
|
-
var
|
|
19535
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19488
19536
|
var parentKey;
|
|
19489
19537
|
for (var i = 0; i < tree.length; i++) {
|
|
19490
19538
|
var node = tree[i];
|
|
@@ -19493,8 +19541,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19493
19541
|
return item.path === path;
|
|
19494
19542
|
})) {
|
|
19495
19543
|
parentKey = node.path;
|
|
19496
|
-
} else if (
|
|
19497
|
-
parentKey =
|
|
19544
|
+
} else if (getParentKey(path, node.children)) {
|
|
19545
|
+
parentKey = getParentKey(path, node.children);
|
|
19498
19546
|
}
|
|
19499
19547
|
}
|
|
19500
19548
|
}
|
|
@@ -19525,7 +19573,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19525
19573
|
var treeData = _this.state.treeData;
|
|
19526
19574
|
var expandedKeys = dataList.map(function (item) {
|
|
19527
19575
|
if (item.name.indexOf(value) > -1) {
|
|
19528
|
-
return
|
|
19576
|
+
return getParentKey(item.path, treeData);
|
|
19529
19577
|
}
|
|
19530
19578
|
return null;
|
|
19531
19579
|
}).filter(function (item, i, self) {
|
|
@@ -19539,22 +19587,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19539
19587
|
};
|
|
19540
19588
|
_this.getPathList = function (originData) {
|
|
19541
19589
|
var pathList = [];
|
|
19542
|
-
var
|
|
19590
|
+
var getList = function getList(data) {
|
|
19543
19591
|
if (Array.isArray(data)) {
|
|
19544
19592
|
data.forEach(function (item) {
|
|
19545
19593
|
pathList.push(item.path);
|
|
19546
19594
|
if (item.children) {
|
|
19547
|
-
|
|
19595
|
+
getList(item.children);
|
|
19548
19596
|
}
|
|
19549
19597
|
});
|
|
19550
19598
|
} else {
|
|
19551
19599
|
pathList.push(data.path);
|
|
19552
19600
|
if (data.children) {
|
|
19553
|
-
|
|
19601
|
+
getList(data.children);
|
|
19554
19602
|
}
|
|
19555
19603
|
}
|
|
19556
19604
|
};
|
|
19557
|
-
|
|
19605
|
+
getList(originData);
|
|
19558
19606
|
return pathList;
|
|
19559
19607
|
};
|
|
19560
19608
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19563,18 +19611,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19563
19611
|
customerMenuData = _this$props.customerMenuData,
|
|
19564
19612
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19565
19613
|
var filterItem;
|
|
19566
|
-
var
|
|
19614
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
19567
19615
|
menuData.forEach(function (item) {
|
|
19568
19616
|
if (item.path === path) {
|
|
19569
19617
|
filterItem = _objectSpread2({}, item);
|
|
19570
19618
|
return;
|
|
19571
19619
|
}
|
|
19572
19620
|
if (item.children) {
|
|
19573
|
-
|
|
19621
|
+
filterMenuItem(item.children);
|
|
19574
19622
|
}
|
|
19575
19623
|
});
|
|
19576
19624
|
};
|
|
19577
|
-
|
|
19625
|
+
filterMenuItem(treeData);
|
|
19578
19626
|
var addPathList = _this.getPathList(filterItem);
|
|
19579
19627
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19580
19628
|
var isRepet = false;
|
|
@@ -19604,8 +19652,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19604
19652
|
return item.path === '/';
|
|
19605
19653
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19606
19654
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19607
|
-
|
|
19608
|
-
|
|
19655
|
+
setMenuTreeData(routesData);
|
|
19656
|
+
generateList(routesData);
|
|
19609
19657
|
this.setState({
|
|
19610
19658
|
treeData: routesData
|
|
19611
19659
|
});
|
|
@@ -19619,16 +19667,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19619
19667
|
expandedKeys = _this$state.expandedKeys,
|
|
19620
19668
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19621
19669
|
treeData = _this$state.treeData;
|
|
19622
|
-
var
|
|
19670
|
+
var loop = function loop(data) {
|
|
19623
19671
|
return data.map(function (item) {
|
|
19624
19672
|
var index = item.name.indexOf(searchValue);
|
|
19625
19673
|
var beforeStr = item.name.substr(0, index);
|
|
19626
19674
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19627
|
-
var name = index > -1 ? (/*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19675
|
+
var name = index > -1 ? ( /*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19628
19676
|
style: {
|
|
19629
19677
|
color: '#f50'
|
|
19630
19678
|
}
|
|
19631
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
19679
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
19632
19680
|
if (item.children && item.children.length) {
|
|
19633
19681
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19634
19682
|
path: item.path,
|
|
@@ -19650,7 +19698,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19650
19698
|
width: 18,
|
|
19651
19699
|
src: arrowRight
|
|
19652
19700
|
}))))
|
|
19653
|
-
},
|
|
19701
|
+
}, loop(item.children));
|
|
19654
19702
|
}
|
|
19655
19703
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19656
19704
|
path: item.path,
|
|
@@ -19700,7 +19748,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19700
19748
|
onExpand: this.onExpand,
|
|
19701
19749
|
expandedKeys: expandedKeys,
|
|
19702
19750
|
autoExpandParent: autoExpandParent
|
|
19703
|
-
},
|
|
19751
|
+
}, loop(treeData))));
|
|
19704
19752
|
}
|
|
19705
19753
|
}]);
|
|
19706
19754
|
}(React__default['default'].Component);
|
|
@@ -19733,24 +19781,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19733
19781
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19734
19782
|
var dragObj;
|
|
19735
19783
|
var finalDropItem;
|
|
19736
|
-
var
|
|
19784
|
+
var loop = function loop(data, path, callback) {
|
|
19737
19785
|
for (var i = 0; i < data.length; i++) {
|
|
19738
19786
|
if (data[i].path === path) {
|
|
19739
19787
|
return callback(data[i], i, data);
|
|
19740
19788
|
}
|
|
19741
19789
|
if (data[i].children) {
|
|
19742
|
-
|
|
19790
|
+
loop(data[i].children, path, callback);
|
|
19743
19791
|
}
|
|
19744
19792
|
}
|
|
19745
19793
|
};
|
|
19746
19794
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19747
|
-
|
|
19795
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
19748
19796
|
arr.splice(index, 1);
|
|
19749
19797
|
dragObj = item;
|
|
19750
19798
|
});
|
|
19751
19799
|
if (!info.dropToGap) {
|
|
19752
19800
|
// Drop on the content
|
|
19753
|
-
|
|
19801
|
+
loop(data, dropKey, function (item) {
|
|
19754
19802
|
item.children = item.children || [];
|
|
19755
19803
|
item.children.unshift(dragObj);
|
|
19756
19804
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19761,7 +19809,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19761
19809
|
// Is expanded
|
|
19762
19810
|
dropPosition === 1 // On the bottom gap
|
|
19763
19811
|
) {
|
|
19764
|
-
|
|
19812
|
+
loop(data, dropKey, function (item) {
|
|
19765
19813
|
item.children = item.children || [];
|
|
19766
19814
|
item.children.unshift(dragObj);
|
|
19767
19815
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19769,7 +19817,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19769
19817
|
} else {
|
|
19770
19818
|
var ar;
|
|
19771
19819
|
var i;
|
|
19772
|
-
|
|
19820
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
19773
19821
|
ar = arr;
|
|
19774
19822
|
i = index;
|
|
19775
19823
|
});
|
|
@@ -19808,17 +19856,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19808
19856
|
title: '编辑名称',
|
|
19809
19857
|
callBack: function callBack(newName) {
|
|
19810
19858
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19811
|
-
var
|
|
19859
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19812
19860
|
oldTreeData.forEach(function (treeItem) {
|
|
19813
19861
|
if (treeItem.path === item.path) {
|
|
19814
19862
|
treeItem.name = newName;
|
|
19815
19863
|
}
|
|
19816
19864
|
if (treeItem.children) {
|
|
19817
|
-
|
|
19865
|
+
editTreeDataName(treeItem.children);
|
|
19818
19866
|
}
|
|
19819
19867
|
});
|
|
19820
19868
|
};
|
|
19821
|
-
|
|
19869
|
+
editTreeDataName(oldTreeData);
|
|
19822
19870
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19823
19871
|
_this.setState({
|
|
19824
19872
|
modalInfo: {
|
|
@@ -19863,7 +19911,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19863
19911
|
title: '新增子目录',
|
|
19864
19912
|
callBack: function callBack(newName) {
|
|
19865
19913
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19866
|
-
var
|
|
19914
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
19867
19915
|
oldTreeData.forEach(function (treeItem) {
|
|
19868
19916
|
if (treeItem.path === item.path) {
|
|
19869
19917
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19875,11 +19923,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19875
19923
|
}];
|
|
19876
19924
|
}
|
|
19877
19925
|
if (treeItem.children) {
|
|
19878
|
-
|
|
19926
|
+
addChildFolder(treeItem.children);
|
|
19879
19927
|
}
|
|
19880
19928
|
});
|
|
19881
19929
|
};
|
|
19882
|
-
|
|
19930
|
+
addChildFolder(oldTreeData);
|
|
19883
19931
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19884
19932
|
_this.setState({
|
|
19885
19933
|
modalInfo: {
|
|
@@ -19938,7 +19986,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19938
19986
|
var _this$state = this.state,
|
|
19939
19987
|
modalInfo = _this$state.modalInfo,
|
|
19940
19988
|
checkedKeys = _this$state.checkedKeys;
|
|
19941
|
-
var
|
|
19989
|
+
var loop = function loop(data) {
|
|
19942
19990
|
return data.map(function (item) {
|
|
19943
19991
|
if (item.children && item.children.length) {
|
|
19944
19992
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
@@ -19955,7 +20003,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19955
20003
|
e.stopPropagation();
|
|
19956
20004
|
}
|
|
19957
20005
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(icons.EllipsisOutlined, null))))))
|
|
19958
|
-
},
|
|
20006
|
+
}, loop(item.children));
|
|
19959
20007
|
}
|
|
19960
20008
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
19961
20009
|
path: item.path,
|
|
@@ -20034,7 +20082,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20034
20082
|
children: 'children'
|
|
20035
20083
|
},
|
|
20036
20084
|
onDrop: this.onDrop
|
|
20037
|
-
},
|
|
20085
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
20038
20086
|
width: 600,
|
|
20039
20087
|
bodyStyle: {
|
|
20040
20088
|
paddingTop: '32px',
|
|
@@ -20147,7 +20195,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20147
20195
|
pathname: item.path
|
|
20148
20196
|
});
|
|
20149
20197
|
};
|
|
20150
|
-
var
|
|
20198
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
20151
20199
|
return menuData.map(function (item) {
|
|
20152
20200
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20153
20201
|
style: {
|
|
@@ -20162,7 +20210,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20162
20210
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20163
20211
|
paddingLeft: '4px'
|
|
20164
20212
|
}
|
|
20165
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20213
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
20166
20214
|
});
|
|
20167
20215
|
};
|
|
20168
20216
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20188,7 +20236,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20188
20236
|
style: {
|
|
20189
20237
|
paddingLeft: '5px'
|
|
20190
20238
|
}
|
|
20191
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
20239
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
20192
20240
|
style: {
|
|
20193
20241
|
left: isDrawer ? 140 : 0
|
|
20194
20242
|
},
|
|
@@ -20209,7 +20257,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20209
20257
|
visible: isDrawer
|
|
20210
20258
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
20211
20259
|
className: 'menu_title_line'
|
|
20212
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20260
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
20213
20261
|
title: /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20214
20262
|
style: {
|
|
20215
20263
|
fontWeight: '600',
|
|
@@ -20283,7 +20331,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20283
20331
|
return item.path === '/';
|
|
20284
20332
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20285
20333
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20286
|
-
|
|
20334
|
+
setMenuTreeData(routesData);
|
|
20287
20335
|
routesData.forEach(function (item) {
|
|
20288
20336
|
if (item.children) {
|
|
20289
20337
|
routesDataList.push(item);
|
|
@@ -20313,7 +20361,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20313
20361
|
setHeight(clientHeight - 190);
|
|
20314
20362
|
setDrawHeight(clientHeight - 70);
|
|
20315
20363
|
};
|
|
20316
|
-
var
|
|
20364
|
+
var renderChildItem = function renderChildItem(child) {
|
|
20317
20365
|
if (!child.hideInMenu && child.children) {
|
|
20318
20366
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
20319
20367
|
style: {
|
|
@@ -20323,7 +20371,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20323
20371
|
}, umi.formatMessage({
|
|
20324
20372
|
id: "".concat(child.locale)
|
|
20325
20373
|
})), child.children.map(function (menuItem) {
|
|
20326
|
-
return
|
|
20374
|
+
return renderChildItem(menuItem);
|
|
20327
20375
|
}));
|
|
20328
20376
|
} else if (!child.hideInMenu && child.path) {
|
|
20329
20377
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -20465,7 +20513,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20465
20513
|
onMenuClick(e, item);
|
|
20466
20514
|
}
|
|
20467
20515
|
}, item.name);
|
|
20468
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
20516
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20469
20517
|
className: 'search_menu_content'
|
|
20470
20518
|
}, SearhData.map(function (item) {
|
|
20471
20519
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20474,7 +20522,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20474
20522
|
},
|
|
20475
20523
|
key: item.path
|
|
20476
20524
|
}, item.name);
|
|
20477
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20525
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20478
20526
|
style: {
|
|
20479
20527
|
height: "".concat(rightMenuHeight, "px"),
|
|
20480
20528
|
overflowY: 'scroll',
|
|
@@ -20486,7 +20534,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20486
20534
|
className: 'drawerWarp_right'
|
|
20487
20535
|
}, homepageData && homepageData.filter(function (d) {
|
|
20488
20536
|
return !d.hideInMenu;
|
|
20489
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
20537
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
20490
20538
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
20491
20539
|
dataSource: homepageData,
|
|
20492
20540
|
renderItem: function renderItem(child) {
|
|
@@ -20527,7 +20575,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20527
20575
|
bordered: true,
|
|
20528
20576
|
dataSource: item.children,
|
|
20529
20577
|
renderItem: function renderItem(child) {
|
|
20530
|
-
return
|
|
20578
|
+
return renderChildItem(child);
|
|
20531
20579
|
}
|
|
20532
20580
|
});
|
|
20533
20581
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20685,10 +20733,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20685
20733
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20686
20734
|
var menuKeys = [];
|
|
20687
20735
|
var docsId = [];
|
|
20688
|
-
var
|
|
20736
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20689
20737
|
data.forEach(function (item) {
|
|
20690
20738
|
if (item.children && item.children.length > 0) {
|
|
20691
|
-
|
|
20739
|
+
getLimitedMenuKeys(item.children);
|
|
20692
20740
|
} else {
|
|
20693
20741
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20694
20742
|
menuKeys.push(originPath);
|
|
@@ -20699,7 +20747,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20699
20747
|
});
|
|
20700
20748
|
};
|
|
20701
20749
|
try {
|
|
20702
|
-
|
|
20750
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
20703
20751
|
} catch (e) {}
|
|
20704
20752
|
return {
|
|
20705
20753
|
menuKeys: menuKeys,
|
|
@@ -20933,10 +20981,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20933
20981
|
return (node.path || '').includes('all-general-documents');
|
|
20934
20982
|
};
|
|
20935
20983
|
// 递归获取树列表
|
|
20936
|
-
var
|
|
20984
|
+
var getTreeList = function getTreeList(data) {
|
|
20937
20985
|
data.forEach(function (node) {
|
|
20938
20986
|
if (node.routes && node.routes.length > 0) {
|
|
20939
|
-
|
|
20987
|
+
getTreeList(node.routes);
|
|
20940
20988
|
return;
|
|
20941
20989
|
}
|
|
20942
20990
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20967,7 +21015,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20967
21015
|
}
|
|
20968
21016
|
});
|
|
20969
21017
|
};
|
|
20970
|
-
|
|
21018
|
+
getTreeList(treeData);
|
|
20971
21019
|
return treeList;
|
|
20972
21020
|
};
|
|
20973
21021
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21596,7 +21644,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21596
21644
|
updateState = _ref8.updateState;
|
|
21597
21645
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21598
21646
|
className: "tab_title_content"
|
|
21599
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
21647
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
21600
21648
|
info: item,
|
|
21601
21649
|
operateFun: _this3.operateFun,
|
|
21602
21650
|
listenRouterState: listenRouterState
|
|
@@ -21732,7 +21780,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21732
21780
|
};
|
|
21733
21781
|
}
|
|
21734
21782
|
var OperationsSlot = {
|
|
21735
|
-
left: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
21783
|
+
left: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21736
21784
|
className: 'tab_left_operate'
|
|
21737
21785
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21738
21786
|
onClick: function onClick() {
|
|
@@ -21748,7 +21796,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21748
21796
|
_this3.setTabNavTransLate(-100);
|
|
21749
21797
|
}
|
|
21750
21798
|
}, /*#__PURE__*/React__default['default'].createElement(icons.DoubleLeftOutlined, null)))),
|
|
21751
|
-
right: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
21799
|
+
right: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21752
21800
|
style: {
|
|
21753
21801
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21754
21802
|
},
|
|
@@ -21846,7 +21894,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21846
21894
|
onMouseLeave: function onMouseLeave() {
|
|
21847
21895
|
_this3.setShowMenu(false);
|
|
21848
21896
|
}
|
|
21849
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
21897
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
21850
21898
|
style: {
|
|
21851
21899
|
position: 'absolute',
|
|
21852
21900
|
top: '14px',
|
|
@@ -21865,7 +21913,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21865
21913
|
postMenuData: function postMenuData(menus) {
|
|
21866
21914
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21867
21915
|
},
|
|
21868
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
21916
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
21869
21917
|
ref: this.allFunc,
|
|
21870
21918
|
itemPath: itemPath,
|
|
21871
21919
|
handleClose: this.handleClose,
|
|
@@ -21883,7 +21931,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21883
21931
|
},
|
|
21884
21932
|
menu: {
|
|
21885
21933
|
request: function () {
|
|
21886
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21934
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21887
21935
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21888
21936
|
while (1) switch (_context.prev = _context.next) {
|
|
21889
21937
|
case 0:
|
|
@@ -22018,7 +22066,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22018
22066
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22019
22067
|
timeFormat = _this$props4.timeFormat,
|
|
22020
22068
|
transparentProps = _this$props4.transparentProps;
|
|
22021
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? (/*#__PURE__*/React__default['default'].createElement(NoFoundPage, null)) : /*#__PURE__*/React__default['default'].createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
22069
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? ( /*#__PURE__*/React__default['default'].createElement(NoFoundPage, null)) : /*#__PURE__*/React__default['default'].createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
22022
22070
|
getDictionarySource: getDictionarySource,
|
|
22023
22071
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22024
22072
|
timeFormat: timeFormat
|
|
@@ -22042,12 +22090,12 @@ var index$5 = (function (props) {
|
|
|
22042
22090
|
});
|
|
22043
22091
|
|
|
22044
22092
|
// @ts-nocheck
|
|
22045
|
-
var
|
|
22093
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
22046
22094
|
var result = [];
|
|
22047
22095
|
columns.forEach(function (column) {
|
|
22048
22096
|
if (column.children) {
|
|
22049
22097
|
result.push(column);
|
|
22050
|
-
result.push.apply(result,
|
|
22098
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
22051
22099
|
} else {
|
|
22052
22100
|
result.push(column);
|
|
22053
22101
|
}
|
|
@@ -22056,7 +22104,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
22056
22104
|
};
|
|
22057
22105
|
var convertToRows = function convertToRows(originColumns) {
|
|
22058
22106
|
var maxLevel = 1;
|
|
22059
|
-
var
|
|
22107
|
+
var traverse = function traverse(column, parent) {
|
|
22060
22108
|
if (parent) {
|
|
22061
22109
|
column.level = parent.level + 1;
|
|
22062
22110
|
if (maxLevel < column.level) {
|
|
@@ -22066,7 +22114,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22066
22114
|
if (column.children) {
|
|
22067
22115
|
var colSpan = 0;
|
|
22068
22116
|
column.children.forEach(function (subColumn) {
|
|
22069
|
-
|
|
22117
|
+
traverse(subColumn, column);
|
|
22070
22118
|
colSpan += subColumn.colSpan;
|
|
22071
22119
|
});
|
|
22072
22120
|
column.colSpan = colSpan;
|
|
@@ -22076,13 +22124,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22076
22124
|
};
|
|
22077
22125
|
originColumns.forEach(function (column) {
|
|
22078
22126
|
column.level = 1;
|
|
22079
|
-
|
|
22127
|
+
traverse(column);
|
|
22080
22128
|
});
|
|
22081
22129
|
var rows = [];
|
|
22082
22130
|
for (var i = 0; i < maxLevel; i++) {
|
|
22083
22131
|
rows.push([]);
|
|
22084
22132
|
}
|
|
22085
|
-
var allColumns =
|
|
22133
|
+
var allColumns = getAllColumns(originColumns);
|
|
22086
22134
|
allColumns.forEach(function (column) {
|
|
22087
22135
|
if (!column.children) {
|
|
22088
22136
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22122,7 +22170,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22122
22170
|
};
|
|
22123
22171
|
var headersToRows = function headersToRows(originColumns) {
|
|
22124
22172
|
var maxLevel = 1;
|
|
22125
|
-
var
|
|
22173
|
+
var traverse = function traverse(column, parent) {
|
|
22126
22174
|
if (parent) {
|
|
22127
22175
|
//计算当前元素属于第几个层级
|
|
22128
22176
|
column.level = parent.level + 1;
|
|
@@ -22135,7 +22183,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22135
22183
|
var colSpan = 0;
|
|
22136
22184
|
column.children.forEach(function (subColumn) {
|
|
22137
22185
|
//进行递归
|
|
22138
|
-
|
|
22186
|
+
traverse(subColumn, column);
|
|
22139
22187
|
colSpan += subColumn.colSpan;
|
|
22140
22188
|
});
|
|
22141
22189
|
column.colSpan = colSpan;
|
|
@@ -22145,14 +22193,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22145
22193
|
};
|
|
22146
22194
|
originColumns.forEach(function (column) {
|
|
22147
22195
|
column.level = 1;
|
|
22148
|
-
|
|
22196
|
+
traverse(column);
|
|
22149
22197
|
});
|
|
22150
22198
|
var rows = [];
|
|
22151
22199
|
var lastData = [];
|
|
22152
22200
|
for (var i = 0; i < maxLevel; i++) {
|
|
22153
22201
|
rows.push([]);
|
|
22154
22202
|
}
|
|
22155
|
-
var allColumns =
|
|
22203
|
+
var allColumns = getAllColumns(originColumns);
|
|
22156
22204
|
allColumns.forEach(function (column) {
|
|
22157
22205
|
if (!column.children) {
|
|
22158
22206
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28169,7 +28217,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28169
28217
|
}
|
|
28170
28218
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28171
28219
|
};
|
|
28172
|
-
var
|
|
28220
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
28173
28221
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28174
28222
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28175
28223
|
var children = hightLightData.children,
|
|
@@ -28180,7 +28228,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28180
28228
|
lineEnd = _loc2[2];
|
|
28181
28229
|
if (children) {
|
|
28182
28230
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28183
|
-
return
|
|
28231
|
+
return hasHighLightChildren(v, highLightLine);
|
|
28184
28232
|
});
|
|
28185
28233
|
}
|
|
28186
28234
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28192,7 +28240,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28192
28240
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28193
28241
|
data.forEach(function (node) {
|
|
28194
28242
|
if (!node) return;
|
|
28195
|
-
node.toggled =
|
|
28243
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
28196
28244
|
node.active = isHightLight(node, highLightLine);
|
|
28197
28245
|
if (node.children) {
|
|
28198
28246
|
if (node.active) {
|
|
@@ -29623,7 +29671,7 @@ var valueType = {
|
|
|
29623
29671
|
};
|
|
29624
29672
|
|
|
29625
29673
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29626
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29674
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29627
29675
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29628
29676
|
while (1) switch (_context.prev = _context.next) {
|
|
29629
29677
|
case 0:
|
|
@@ -29691,7 +29739,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29691
29739
|
value: false
|
|
29692
29740
|
}];
|
|
29693
29741
|
var ref = React$1.useRef();
|
|
29694
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29742
|
+
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29695
29743
|
var _ref$current, source;
|
|
29696
29744
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29697
29745
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29805,7 +29853,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29805
29853
|
source: {
|
|
29806
29854
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29807
29855
|
type: function () {
|
|
29808
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29856
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29809
29857
|
var form, values, name, relates, source;
|
|
29810
29858
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29811
29859
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30285,7 +30333,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30285
30333
|
source: {
|
|
30286
30334
|
relates: ['choiceType', 'inputType'],
|
|
30287
30335
|
type: function () {
|
|
30288
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30336
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30289
30337
|
var values, name, form, source;
|
|
30290
30338
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30291
30339
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30507,7 +30555,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30507
30555
|
width: 900,
|
|
30508
30556
|
maskClosable: false,
|
|
30509
30557
|
onOk: function () {
|
|
30510
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30558
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30511
30559
|
var _ref$current4, _res$editableStatus;
|
|
30512
30560
|
var res, _res$defaultValue;
|
|
30513
30561
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30579,7 +30627,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30579
30627
|
}()
|
|
30580
30628
|
}), /*#__PURE__*/React__default['default'].createElement(bssula.Form, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30581
30629
|
ref: ref
|
|
30582
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30630
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30583
30631
|
};
|
|
30584
30632
|
|
|
30585
30633
|
// @ts-nocheck
|
|
@@ -31193,7 +31241,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31193
31241
|
return setVisible(false);
|
|
31194
31242
|
},
|
|
31195
31243
|
className: 'customFieldsDrawer'
|
|
31196
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31244
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31197
31245
|
style: {
|
|
31198
31246
|
display: 'flex'
|
|
31199
31247
|
}
|
|
@@ -31202,13 +31250,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31202
31250
|
flex: 1,
|
|
31203
31251
|
width: 500
|
|
31204
31252
|
}
|
|
31205
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31253
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31206
31254
|
style: {
|
|
31207
31255
|
padding: "10px 0",
|
|
31208
31256
|
fontSize: "16px",
|
|
31209
31257
|
fontWeight: "bolder"
|
|
31210
31258
|
}
|
|
31211
|
-
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31259
|
+
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31212
31260
|
style: {
|
|
31213
31261
|
flex: 1
|
|
31214
31262
|
}
|
|
@@ -31217,7 +31265,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31217
31265
|
onRun: onClickRun,
|
|
31218
31266
|
value: jsonEditorVal,
|
|
31219
31267
|
shallowHeight: height
|
|
31220
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
31268
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
31221
31269
|
defaultActiveKey: activeKey,
|
|
31222
31270
|
onChange: function onChange(v) {
|
|
31223
31271
|
return setActiveKey(v);
|
|
@@ -31234,13 +31282,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31234
31282
|
flex: 1,
|
|
31235
31283
|
width: 500
|
|
31236
31284
|
}
|
|
31237
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31285
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31238
31286
|
style: {
|
|
31239
31287
|
padding: "10px 0",
|
|
31240
31288
|
fontSize: "16px",
|
|
31241
31289
|
fontWeight: "bolder"
|
|
31242
31290
|
}
|
|
31243
|
-
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31291
|
+
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31244
31292
|
style: {
|
|
31245
31293
|
flex: 1
|
|
31246
31294
|
}
|
|
@@ -31262,13 +31310,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31262
31310
|
flex: 1,
|
|
31263
31311
|
width: 500
|
|
31264
31312
|
}
|
|
31265
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31313
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31266
31314
|
style: {
|
|
31267
31315
|
padding: "10px 0",
|
|
31268
31316
|
fontSize: "16px",
|
|
31269
31317
|
fontWeight: "bolder"
|
|
31270
31318
|
}
|
|
31271
|
-
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31319
|
+
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31272
31320
|
style: {
|
|
31273
31321
|
flex: 1
|
|
31274
31322
|
}
|
|
@@ -31414,7 +31462,7 @@ function getMetaData(_x) {
|
|
|
31414
31462
|
|
|
31415
31463
|
// 获取数据
|
|
31416
31464
|
function _getMetaData() {
|
|
31417
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31465
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31418
31466
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31419
31467
|
while (1) switch (_context.prev = _context.next) {
|
|
31420
31468
|
case 0:
|
|
@@ -31636,7 +31684,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
31636
31684
|
tableState = _useState4[0],
|
|
31637
31685
|
setTableState = _useState4[1];
|
|
31638
31686
|
var handleOpen = /*#__PURE__*/function () {
|
|
31639
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31687
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31640
31688
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31641
31689
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31642
31690
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31955,7 +32003,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
31955
32003
|
destroyOnClose: true
|
|
31956
32004
|
}, config && /*#__PURE__*/React__default['default'].createElement(bssula.QueryTable, _objectSpread2({
|
|
31957
32005
|
ref: queryTableRef
|
|
31958
|
-
}, 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__default['default'].createElement(antd.Row, {
|
|
32006
|
+
}, 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__default['default'].createElement(antd.Row, {
|
|
31959
32007
|
justify: "center",
|
|
31960
32008
|
style: {
|
|
31961
32009
|
marginBottom: 30,
|
|
@@ -32071,7 +32119,7 @@ var CustomSelector = (function (props) {
|
|
|
32071
32119
|
var _props$ctx7;
|
|
32072
32120
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32073
32121
|
}
|
|
32074
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32122
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32075
32123
|
type: "primary",
|
|
32076
32124
|
style: {
|
|
32077
32125
|
width: '30px',
|
|
@@ -32157,7 +32205,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32157
32205
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32158
32206
|
handSource = _useState2[0],
|
|
32159
32207
|
setHandSource = _useState2[1];
|
|
32160
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32208
|
+
React$1.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32161
32209
|
var resData, data;
|
|
32162
32210
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32163
32211
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32309,7 +32357,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32309
32357
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32310
32358
|
}
|
|
32311
32359
|
function _getRegularThresholdRange() {
|
|
32312
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32360
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32313
32361
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32314
32362
|
while (1) switch (_context.prev = _context.next) {
|
|
32315
32363
|
case 0:
|
|
@@ -32463,7 +32511,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32463
32511
|
};
|
|
32464
32512
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32465
32513
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32466
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32514
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32467
32515
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32468
32516
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32469
32517
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33420,7 +33468,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33420
33468
|
isAll: true,
|
|
33421
33469
|
needNameAndCode: true,
|
|
33422
33470
|
notChangeOnSelect: true,
|
|
33423
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33471
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33424
33472
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33425
33473
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33426
33474
|
case 0:
|
|
@@ -33469,7 +33517,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33469
33517
|
isAll: true,
|
|
33470
33518
|
needNameAndCode: true,
|
|
33471
33519
|
notChangeOnSelect: true,
|
|
33472
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33520
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33473
33521
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33474
33522
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33475
33523
|
case 0:
|
|
@@ -33520,7 +33568,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33520
33568
|
isAll: true,
|
|
33521
33569
|
needNameAndCode: true,
|
|
33522
33570
|
notChangeOnSelect: true,
|
|
33523
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33571
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33524
33572
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33525
33573
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33526
33574
|
case 0:
|
|
@@ -35498,7 +35546,7 @@ var App$1 = function App(_ref) {
|
|
|
35498
35546
|
borderRadius: '5px',
|
|
35499
35547
|
cursor: 'pointer'
|
|
35500
35548
|
}
|
|
35501
|
-
}, isStaticNumber ? (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35549
|
+
}, isStaticNumber ? ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35502
35550
|
autoFocus: true,
|
|
35503
35551
|
onClick: function onClick(e) {
|
|
35504
35552
|
return e.stopPropagation();
|
|
@@ -35785,7 +35833,7 @@ function RenderCompItem(props) {
|
|
|
35785
35833
|
dictData = _useState2[0],
|
|
35786
35834
|
setDictData = _useState2[1];
|
|
35787
35835
|
var getDictData = /*#__PURE__*/function () {
|
|
35788
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35836
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35789
35837
|
var _data$map;
|
|
35790
35838
|
var data;
|
|
35791
35839
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35827,7 +35875,7 @@ function RenderCompItem(props) {
|
|
|
35827
35875
|
var style2 = {
|
|
35828
35876
|
width: '100px'
|
|
35829
35877
|
};
|
|
35830
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35878
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35831
35879
|
disabled: disabled,
|
|
35832
35880
|
allowClear: true,
|
|
35833
35881
|
onClear: function onClear() {
|
|
@@ -35838,7 +35886,7 @@ function RenderCompItem(props) {
|
|
|
35838
35886
|
onBlur: function onBlur(e) {
|
|
35839
35887
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35840
35888
|
}
|
|
35841
|
-
})) || 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__default['default'].createElement(antd.InputNumber, {
|
|
35889
|
+
})) || 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__default['default'].createElement(antd.InputNumber, {
|
|
35842
35890
|
disabled: disabled,
|
|
35843
35891
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35844
35892
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35851,7 +35899,7 @@ function RenderCompItem(props) {
|
|
|
35851
35899
|
onChange: function onChange(value) {
|
|
35852
35900
|
handleEdit(ites.code, value);
|
|
35853
35901
|
}
|
|
35854
|
-
})) || 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__default['default'].createElement(antd.DatePicker, {
|
|
35902
|
+
})) || 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__default['default'].createElement(antd.DatePicker, {
|
|
35855
35903
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35856
35904
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35857
35905
|
disabled: disabled,
|
|
@@ -35861,7 +35909,7 @@ function RenderCompItem(props) {
|
|
|
35861
35909
|
onChange: function onChange(value, dateString) {
|
|
35862
35910
|
handleEdit(ites.code, dateString);
|
|
35863
35911
|
}
|
|
35864
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
35912
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
35865
35913
|
showTime: true,
|
|
35866
35914
|
disabled: disabled,
|
|
35867
35915
|
defaultValue: ites.defaultValue,
|
|
@@ -35870,7 +35918,7 @@ function RenderCompItem(props) {
|
|
|
35870
35918
|
onChange: function onChange(value, timeString) {
|
|
35871
35919
|
handleEdit(ites.code, timeString);
|
|
35872
35920
|
}
|
|
35873
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
35921
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
35874
35922
|
disabled: disabled,
|
|
35875
35923
|
defaultChecked: !!ites.defaultValue,
|
|
35876
35924
|
style: style2,
|
|
@@ -35878,7 +35926,7 @@ function RenderCompItem(props) {
|
|
|
35878
35926
|
onChange: function onChange(value) {
|
|
35879
35927
|
handleEdit(ites.code, value);
|
|
35880
35928
|
}
|
|
35881
|
-
})) || 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__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
35929
|
+
})) || 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__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
35882
35930
|
disabled: disabled,
|
|
35883
35931
|
allowClear: true,
|
|
35884
35932
|
showArrow: true
|
|
@@ -35896,7 +35944,7 @@ function RenderCompItem(props) {
|
|
|
35896
35944
|
key: it,
|
|
35897
35945
|
value: it
|
|
35898
35946
|
}, ites.enumeration[it]);
|
|
35899
|
-
}))) || 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__default['default'].createElement(InnerSelect, {
|
|
35947
|
+
}))) || 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__default['default'].createElement(InnerSelect, {
|
|
35900
35948
|
disabled: disabled,
|
|
35901
35949
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35902
35950
|
defaultValue: ites.defaultValue,
|
|
@@ -35906,7 +35954,7 @@ function RenderCompItem(props) {
|
|
|
35906
35954
|
handleEdit(ites.code, value);
|
|
35907
35955
|
},
|
|
35908
35956
|
dictionaryCode: ites.dictionaryCode
|
|
35909
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35957
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35910
35958
|
selectBusinessType: "physicalWarehouse",
|
|
35911
35959
|
selectProps: _objectSpread2({
|
|
35912
35960
|
style: styleCommon,
|
|
@@ -35928,7 +35976,7 @@ function RenderCompItem(props) {
|
|
|
35928
35976
|
getPopupContainer: function getPopupContainer() {
|
|
35929
35977
|
return document.body;
|
|
35930
35978
|
}
|
|
35931
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35979
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35932
35980
|
selectBusinessType: "realWarehouse",
|
|
35933
35981
|
selectProps: _objectSpread2({
|
|
35934
35982
|
style: styleCommon,
|
|
@@ -35950,7 +35998,7 @@ function RenderCompItem(props) {
|
|
|
35950
35998
|
getPopupContainer: function getPopupContainer() {
|
|
35951
35999
|
return document.body;
|
|
35952
36000
|
}
|
|
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) === 130 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36001
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35954
36002
|
selectBusinessType: "virtualWarehouse",
|
|
35955
36003
|
selectProps: _objectSpread2({
|
|
35956
36004
|
style: styleCommon,
|
|
@@ -35972,7 +36020,7 @@ function RenderCompItem(props) {
|
|
|
35972
36020
|
getPopupContainer: function getPopupContainer() {
|
|
35973
36021
|
return document.body;
|
|
35974
36022
|
}
|
|
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) === 140 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36023
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35976
36024
|
selectBusinessType: "channelWarehouse",
|
|
35977
36025
|
selectProps: _objectSpread2({
|
|
35978
36026
|
style: styleCommon,
|
|
@@ -35994,7 +36042,7 @@ function RenderCompItem(props) {
|
|
|
35994
36042
|
getPopupContainer: function getPopupContainer() {
|
|
35995
36043
|
return document.body;
|
|
35996
36044
|
}
|
|
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) === 150 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36045
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35998
36046
|
selectBusinessType: "spuCommodity",
|
|
35999
36047
|
selectProps: _objectSpread2({
|
|
36000
36048
|
style: styleCommon,
|
|
@@ -36015,7 +36063,7 @@ function RenderCompItem(props) {
|
|
|
36015
36063
|
getPopupContainer: function getPopupContainer() {
|
|
36016
36064
|
return document.body;
|
|
36017
36065
|
}
|
|
36018
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36066
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36019
36067
|
selectBusinessType: "skuCommodity",
|
|
36020
36068
|
selectProps: _objectSpread2({
|
|
36021
36069
|
style: styleCommon,
|
|
@@ -36036,13 +36084,13 @@ function RenderCompItem(props) {
|
|
|
36036
36084
|
getPopupContainer: function getPopupContainer() {
|
|
36037
36085
|
return document.body;
|
|
36038
36086
|
}
|
|
36039
|
-
})) || 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__default['default'].createElement(BsCascader, {
|
|
36087
|
+
})) || 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__default['default'].createElement(BsCascader, {
|
|
36040
36088
|
disabled: disabled,
|
|
36041
36089
|
isAll: true,
|
|
36042
36090
|
needNameAndCode: true,
|
|
36043
36091
|
notChangeOnSelect: true,
|
|
36044
36092
|
initRequestSource: function () {
|
|
36045
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36093
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36046
36094
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36047
36095
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36048
36096
|
case 0:
|
|
@@ -36084,7 +36132,7 @@ function RenderCompItem(props) {
|
|
|
36084
36132
|
getPopupContainer: function getPopupContainer() {
|
|
36085
36133
|
return document.body;
|
|
36086
36134
|
}
|
|
36087
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36135
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36088
36136
|
disabled: disabled,
|
|
36089
36137
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36090
36138
|
businessType: "department",
|
|
@@ -36097,7 +36145,7 @@ function RenderCompItem(props) {
|
|
|
36097
36145
|
getPopupContainer: function getPopupContainer() {
|
|
36098
36146
|
return document.body;
|
|
36099
36147
|
}
|
|
36100
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36148
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36101
36149
|
disabled: disabled,
|
|
36102
36150
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36103
36151
|
businessType: "purchase-organization",
|
|
@@ -36110,7 +36158,7 @@ function RenderCompItem(props) {
|
|
|
36110
36158
|
getPopupContainer: function getPopupContainer() {
|
|
36111
36159
|
return document.body;
|
|
36112
36160
|
}
|
|
36113
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36161
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36114
36162
|
disabled: disabled,
|
|
36115
36163
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36116
36164
|
businessType: "sales-organization",
|
|
@@ -36123,7 +36171,7 @@ function RenderCompItem(props) {
|
|
|
36123
36171
|
getPopupContainer: function getPopupContainer() {
|
|
36124
36172
|
return document.body;
|
|
36125
36173
|
}
|
|
36126
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36174
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36127
36175
|
selectBusinessType: "supplier2",
|
|
36128
36176
|
selectProps: _objectSpread2({
|
|
36129
36177
|
style: styleCommon,
|
|
@@ -36144,7 +36192,7 @@ function RenderCompItem(props) {
|
|
|
36144
36192
|
getPopupContainer: function getPopupContainer() {
|
|
36145
36193
|
return document.body;
|
|
36146
36194
|
}
|
|
36147
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36195
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36148
36196
|
selectBusinessType: "customer2",
|
|
36149
36197
|
selectProps: _objectSpread2({
|
|
36150
36198
|
style: styleCommon,
|
|
@@ -36165,7 +36213,7 @@ function RenderCompItem(props) {
|
|
|
36165
36213
|
getPopupContainer: function getPopupContainer() {
|
|
36166
36214
|
return document.body;
|
|
36167
36215
|
}
|
|
36168
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36216
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36169
36217
|
selectBusinessType: "shopFile2",
|
|
36170
36218
|
selectProps: _objectSpread2({
|
|
36171
36219
|
style: styleCommon,
|
|
@@ -36186,7 +36234,7 @@ function RenderCompItem(props) {
|
|
|
36186
36234
|
getPopupContainer: function getPopupContainer() {
|
|
36187
36235
|
return document.body;
|
|
36188
36236
|
}
|
|
36189
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36237
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36190
36238
|
selectBusinessType: "employee2",
|
|
36191
36239
|
selectProps: _objectSpread2({
|
|
36192
36240
|
style: styleCommon,
|
|
@@ -36207,7 +36255,7 @@ function RenderCompItem(props) {
|
|
|
36207
36255
|
getPopupContainer: function getPopupContainer() {
|
|
36208
36256
|
return document.body;
|
|
36209
36257
|
}
|
|
36210
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36258
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36211
36259
|
disabled: disabled,
|
|
36212
36260
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36213
36261
|
businessType: "stock-organization",
|
|
@@ -36220,7 +36268,7 @@ function RenderCompItem(props) {
|
|
|
36220
36268
|
getPopupContainer: function getPopupContainer() {
|
|
36221
36269
|
return document.body;
|
|
36222
36270
|
}
|
|
36223
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36271
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36224
36272
|
disabled: disabled,
|
|
36225
36273
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36226
36274
|
businessType: "settle-organization",
|
|
@@ -36233,7 +36281,7 @@ function RenderCompItem(props) {
|
|
|
36233
36281
|
getPopupContainer: function getPopupContainer() {
|
|
36234
36282
|
return document.body;
|
|
36235
36283
|
}
|
|
36236
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36284
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36237
36285
|
selectBusinessType: "deliveryMode",
|
|
36238
36286
|
selectProps: _objectSpread2({
|
|
36239
36287
|
style: styleCommon,
|
|
@@ -36254,7 +36302,7 @@ function RenderCompItem(props) {
|
|
|
36254
36302
|
getPopupContainer: function getPopupContainer() {
|
|
36255
36303
|
return document.body;
|
|
36256
36304
|
}
|
|
36257
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36305
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36258
36306
|
selectBusinessType: "role",
|
|
36259
36307
|
selectProps: _objectSpread2({
|
|
36260
36308
|
style: styleCommon,
|
|
@@ -36275,7 +36323,7 @@ function RenderCompItem(props) {
|
|
|
36275
36323
|
getPopupContainer: function getPopupContainer() {
|
|
36276
36324
|
return document.body;
|
|
36277
36325
|
}
|
|
36278
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36326
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36279
36327
|
selectBusinessType: "brand",
|
|
36280
36328
|
selectProps: _objectSpread2({
|
|
36281
36329
|
style: styleCommon,
|
|
@@ -36296,7 +36344,7 @@ function RenderCompItem(props) {
|
|
|
36296
36344
|
getPopupContainer: function getPopupContainer() {
|
|
36297
36345
|
return document.body;
|
|
36298
36346
|
}
|
|
36299
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36347
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36300
36348
|
disabled: disabled,
|
|
36301
36349
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36302
36350
|
businessType: "background-category",
|
|
@@ -36309,7 +36357,7 @@ function RenderCompItem(props) {
|
|
|
36309
36357
|
getPopupContainer: function getPopupContainer() {
|
|
36310
36358
|
return document.body;
|
|
36311
36359
|
}
|
|
36312
|
-
})) || 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__default['default'].createElement(CustomSelector, {
|
|
36360
|
+
})) || 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__default['default'].createElement(CustomSelector, {
|
|
36313
36361
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36314
36362
|
style: styleCommon,
|
|
36315
36363
|
placeholder: '请选择'
|
|
@@ -36332,7 +36380,7 @@ function RenderCompItem(props) {
|
|
|
36332
36380
|
onChange: function onChange(value) {
|
|
36333
36381
|
handleEdit(ites.code, value);
|
|
36334
36382
|
}
|
|
36335
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
36383
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
36336
36384
|
style: {
|
|
36337
36385
|
display: 'flex'
|
|
36338
36386
|
}
|
|
@@ -36844,7 +36892,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36844
36892
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36845
36893
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36846
36894
|
}
|
|
36847
|
-
var parallelTreeData =
|
|
36895
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
36848
36896
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36849
36897
|
var _i$key;
|
|
36850
36898
|
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);
|
|
@@ -37771,13 +37819,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37771
37819
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37772
37820
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37773
37821
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37774
|
-
var list =
|
|
37822
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37775
37823
|
var requiredList = list.filter(function (c) {
|
|
37776
37824
|
return c.required == 1;
|
|
37777
37825
|
}) || []; // 获取对象属性为true的集合
|
|
37778
37826
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37779
37827
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37780
|
-
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) ?
|
|
37828
|
+
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];
|
|
37781
37829
|
(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) {
|
|
37782
37830
|
if (requiredList.some(function (r) {
|
|
37783
37831
|
return r.id === e.elementId;
|
|
@@ -38366,7 +38414,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38366
38414
|
style: {
|
|
38367
38415
|
float: 'right'
|
|
38368
38416
|
}
|
|
38369
|
-
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? (/*#__PURE__*/React__default['default'].createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38417
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? ( /*#__PURE__*/React__default['default'].createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38370
38418
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38371
38419
|
ruleGroupInfo: {
|
|
38372
38420
|
ruleGroupList: ruleGroupList,
|
|
@@ -38384,7 +38432,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38384
38432
|
callBack: function callBack(newData) {
|
|
38385
38433
|
upDateData(newData);
|
|
38386
38434
|
}
|
|
38387
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
38435
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38388
38436
|
style: {
|
|
38389
38437
|
padding: 20
|
|
38390
38438
|
}
|
|
@@ -38801,11 +38849,11 @@ exports.TreeSearchSelect = TreeSearchSelect;
|
|
|
38801
38849
|
exports.authFunc = authFunc;
|
|
38802
38850
|
exports.calculateValidPeriod = calculateValidPeriod;
|
|
38803
38851
|
exports.checkQuantityAccuracy = checkQuantityAccuracy;
|
|
38804
|
-
exports.coverToParallel =
|
|
38852
|
+
exports.coverToParallel = coverToParallel;
|
|
38805
38853
|
exports.createUniqID = createUniqID;
|
|
38806
38854
|
exports.downloadExcel = downloadExcel;
|
|
38807
38855
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
38808
|
-
exports.formatter =
|
|
38856
|
+
exports.formatter = formatter;
|
|
38809
38857
|
exports.getAccountID = getAccountID;
|
|
38810
38858
|
exports.getAccountId = getAccountId;
|
|
38811
38859
|
exports.getBreadcrumbNameMap = getBreadcrumbNameMap;
|