@bit-sun/business-component 4.0.13-alpha.34 → 4.0.13-alpha.35
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/components/Functional/DataValidation/index.d.ts +11 -1
- package/dist/index.esm.js +581 -432
- package/dist/index.js +582 -433
- package/package.json +1 -1
- package/src/components/Functional/DataValidation/index.tsx +127 -19
package/dist/index.esm.js
CHANGED
|
@@ -32,88 +32,9 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
32
32
|
import { visit } from 'ast-types';
|
|
33
33
|
import isArray$1 from 'lodash/isArray';
|
|
34
34
|
|
|
35
|
-
function _arrayLikeToArray(r, a) {
|
|
36
|
-
(null == a || a > r.length) && (a = r.length);
|
|
37
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
38
|
-
return n;
|
|
39
|
-
}
|
|
40
|
-
function _arrayWithHoles(r) {
|
|
41
|
-
if (Array.isArray(r)) return r;
|
|
42
|
-
}
|
|
43
|
-
function _arrayWithoutHoles(r) {
|
|
44
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
45
|
-
}
|
|
46
|
-
function _assertThisInitialized(e) {
|
|
47
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
48
|
-
return e;
|
|
49
|
-
}
|
|
50
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
51
|
-
try {
|
|
52
|
-
var i = n[a](c),
|
|
53
|
-
u = i.value;
|
|
54
|
-
} catch (n) {
|
|
55
|
-
return void e(n);
|
|
56
|
-
}
|
|
57
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
58
|
-
}
|
|
59
|
-
function _asyncToGenerator(n) {
|
|
60
|
-
return function () {
|
|
61
|
-
var t = this,
|
|
62
|
-
e = arguments;
|
|
63
|
-
return new Promise(function (r, o) {
|
|
64
|
-
var a = n.apply(t, e);
|
|
65
|
-
function _next(n) {
|
|
66
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
67
|
-
}
|
|
68
|
-
function _throw(n) {
|
|
69
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
70
|
-
}
|
|
71
|
-
_next(void 0);
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
35
|
function _callSuper(t, o, e) {
|
|
76
36
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
77
37
|
}
|
|
78
|
-
function _classCallCheck(a, n) {
|
|
79
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
80
|
-
}
|
|
81
|
-
function _defineProperties(e, r) {
|
|
82
|
-
for (var t = 0; t < r.length; t++) {
|
|
83
|
-
var o = r[t];
|
|
84
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function _createClass(e, r, t) {
|
|
88
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
89
|
-
writable: !1
|
|
90
|
-
}), e;
|
|
91
|
-
}
|
|
92
|
-
function _defineProperty(e, r, t) {
|
|
93
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
94
|
-
value: t,
|
|
95
|
-
enumerable: !0,
|
|
96
|
-
configurable: !0,
|
|
97
|
-
writable: !0
|
|
98
|
-
}) : e[r] = t, e;
|
|
99
|
-
}
|
|
100
|
-
function _getPrototypeOf(t) {
|
|
101
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
102
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
103
|
-
}, _getPrototypeOf(t);
|
|
104
|
-
}
|
|
105
|
-
function _inherits(t, e) {
|
|
106
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
107
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
108
|
-
constructor: {
|
|
109
|
-
value: t,
|
|
110
|
-
writable: !0,
|
|
111
|
-
configurable: !0
|
|
112
|
-
}
|
|
113
|
-
}), Object.defineProperty(t, "prototype", {
|
|
114
|
-
writable: !1
|
|
115
|
-
}), e && _setPrototypeOf(t, e);
|
|
116
|
-
}
|
|
117
38
|
function _isNativeReflectConstruct() {
|
|
118
39
|
try {
|
|
119
40
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -122,9 +43,6 @@ function _isNativeReflectConstruct() {
|
|
|
122
43
|
return !!t;
|
|
123
44
|
})();
|
|
124
45
|
}
|
|
125
|
-
function _iterableToArray(r) {
|
|
126
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
127
|
-
}
|
|
128
46
|
function _iterableToArrayLimit(r, l) {
|
|
129
47
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
130
48
|
if (null != t) {
|
|
@@ -152,15 +70,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
152
70
|
return a;
|
|
153
71
|
}
|
|
154
72
|
}
|
|
155
|
-
function _nonIterableRest() {
|
|
156
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
157
|
-
}
|
|
158
|
-
function _nonIterableSpread() {
|
|
159
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
160
|
-
}
|
|
161
|
-
function _objectDestructuringEmpty(t) {
|
|
162
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
163
|
-
}
|
|
164
73
|
function ownKeys(e, r) {
|
|
165
74
|
var t = Object.keys(e);
|
|
166
75
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -182,31 +91,6 @@ function _objectSpread2(e) {
|
|
|
182
91
|
}
|
|
183
92
|
return e;
|
|
184
93
|
}
|
|
185
|
-
function _objectWithoutProperties(e, t) {
|
|
186
|
-
if (null == e) return {};
|
|
187
|
-
var o,
|
|
188
|
-
r,
|
|
189
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
190
|
-
if (Object.getOwnPropertySymbols) {
|
|
191
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
192
|
-
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
193
|
-
}
|
|
194
|
-
return i;
|
|
195
|
-
}
|
|
196
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
197
|
-
if (null == r) return {};
|
|
198
|
-
var t = {};
|
|
199
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
200
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
201
|
-
t[n] = r[n];
|
|
202
|
-
}
|
|
203
|
-
return t;
|
|
204
|
-
}
|
|
205
|
-
function _possibleConstructorReturn(t, e) {
|
|
206
|
-
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
207
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
208
|
-
return _assertThisInitialized(t);
|
|
209
|
-
}
|
|
210
94
|
function _regeneratorRuntime() {
|
|
211
95
|
_regeneratorRuntime = function () {
|
|
212
96
|
return e;
|
|
@@ -508,20 +392,6 @@ function _regeneratorRuntime() {
|
|
|
508
392
|
}
|
|
509
393
|
}, e;
|
|
510
394
|
}
|
|
511
|
-
function _setPrototypeOf(t, e) {
|
|
512
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
513
|
-
return t.__proto__ = e, t;
|
|
514
|
-
}, _setPrototypeOf(t, e);
|
|
515
|
-
}
|
|
516
|
-
function _slicedToArray(r, e) {
|
|
517
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
518
|
-
}
|
|
519
|
-
function _toArray(r) {
|
|
520
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
521
|
-
}
|
|
522
|
-
function _toConsumableArray(r) {
|
|
523
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
524
|
-
}
|
|
525
395
|
function _toPrimitive(t, r) {
|
|
526
396
|
if ("object" != typeof t || !t) return t;
|
|
527
397
|
var e = t[Symbol.toPrimitive];
|
|
@@ -545,12 +415,180 @@ function _typeof(o) {
|
|
|
545
415
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
546
416
|
}, _typeof(o);
|
|
547
417
|
}
|
|
548
|
-
function
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
var
|
|
552
|
-
|
|
418
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
419
|
+
try {
|
|
420
|
+
var info = gen[key](arg);
|
|
421
|
+
var value = info.value;
|
|
422
|
+
} catch (error) {
|
|
423
|
+
reject(error);
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
if (info.done) {
|
|
427
|
+
resolve(value);
|
|
428
|
+
} else {
|
|
429
|
+
Promise.resolve(value).then(_next, _throw);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
function _asyncToGenerator(fn) {
|
|
433
|
+
return function () {
|
|
434
|
+
var self = this,
|
|
435
|
+
args = arguments;
|
|
436
|
+
return new Promise(function (resolve, reject) {
|
|
437
|
+
var gen = fn.apply(self, args);
|
|
438
|
+
function _next(value) {
|
|
439
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
440
|
+
}
|
|
441
|
+
function _throw(err) {
|
|
442
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
443
|
+
}
|
|
444
|
+
_next(undefined);
|
|
445
|
+
});
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
function _classCallCheck(instance, Constructor) {
|
|
449
|
+
if (!(instance instanceof Constructor)) {
|
|
450
|
+
throw new TypeError("Cannot call a class as a function");
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
function _defineProperties(target, props) {
|
|
454
|
+
for (var i = 0; i < props.length; i++) {
|
|
455
|
+
var descriptor = props[i];
|
|
456
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
457
|
+
descriptor.configurable = true;
|
|
458
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
459
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
463
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
464
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
465
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
466
|
+
writable: false
|
|
467
|
+
});
|
|
468
|
+
return Constructor;
|
|
469
|
+
}
|
|
470
|
+
function _defineProperty(obj, key, value) {
|
|
471
|
+
key = _toPropertyKey(key);
|
|
472
|
+
if (key in obj) {
|
|
473
|
+
Object.defineProperty(obj, key, {
|
|
474
|
+
value: value,
|
|
475
|
+
enumerable: true,
|
|
476
|
+
configurable: true,
|
|
477
|
+
writable: true
|
|
478
|
+
});
|
|
479
|
+
} else {
|
|
480
|
+
obj[key] = value;
|
|
481
|
+
}
|
|
482
|
+
return obj;
|
|
483
|
+
}
|
|
484
|
+
function _inherits(subClass, superClass) {
|
|
485
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
486
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
487
|
+
}
|
|
488
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
489
|
+
constructor: {
|
|
490
|
+
value: subClass,
|
|
491
|
+
writable: true,
|
|
492
|
+
configurable: true
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
Object.defineProperty(subClass, "prototype", {
|
|
496
|
+
writable: false
|
|
497
|
+
});
|
|
498
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
499
|
+
}
|
|
500
|
+
function _getPrototypeOf(o) {
|
|
501
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
502
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
503
|
+
};
|
|
504
|
+
return _getPrototypeOf(o);
|
|
505
|
+
}
|
|
506
|
+
function _setPrototypeOf(o, p) {
|
|
507
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
508
|
+
o.__proto__ = p;
|
|
509
|
+
return o;
|
|
510
|
+
};
|
|
511
|
+
return _setPrototypeOf(o, p);
|
|
512
|
+
}
|
|
513
|
+
function _objectDestructuringEmpty(obj) {
|
|
514
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
515
|
+
}
|
|
516
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
517
|
+
if (source == null) return {};
|
|
518
|
+
var target = {};
|
|
519
|
+
for (var key in source) {
|
|
520
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
521
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
522
|
+
target[key] = source[key];
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return target;
|
|
526
|
+
}
|
|
527
|
+
function _objectWithoutProperties(source, excluded) {
|
|
528
|
+
if (source == null) return {};
|
|
529
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
530
|
+
var key, i;
|
|
531
|
+
if (Object.getOwnPropertySymbols) {
|
|
532
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
533
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
534
|
+
key = sourceSymbolKeys[i];
|
|
535
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
536
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
537
|
+
target[key] = source[key];
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
return target;
|
|
541
|
+
}
|
|
542
|
+
function _assertThisInitialized(self) {
|
|
543
|
+
if (self === void 0) {
|
|
544
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
553
545
|
}
|
|
546
|
+
return self;
|
|
547
|
+
}
|
|
548
|
+
function _possibleConstructorReturn(self, call) {
|
|
549
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
550
|
+
return call;
|
|
551
|
+
} else if (call !== void 0) {
|
|
552
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
553
|
+
}
|
|
554
|
+
return _assertThisInitialized(self);
|
|
555
|
+
}
|
|
556
|
+
function _slicedToArray(arr, i) {
|
|
557
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
558
|
+
}
|
|
559
|
+
function _toArray(arr) {
|
|
560
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
561
|
+
}
|
|
562
|
+
function _toConsumableArray(arr) {
|
|
563
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
564
|
+
}
|
|
565
|
+
function _arrayWithoutHoles(arr) {
|
|
566
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
567
|
+
}
|
|
568
|
+
function _arrayWithHoles(arr) {
|
|
569
|
+
if (Array.isArray(arr)) return arr;
|
|
570
|
+
}
|
|
571
|
+
function _iterableToArray(iter) {
|
|
572
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
573
|
+
}
|
|
574
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
575
|
+
if (!o) return;
|
|
576
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
577
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
578
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
579
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
580
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
581
|
+
}
|
|
582
|
+
function _arrayLikeToArray(arr, len) {
|
|
583
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
584
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
585
|
+
return arr2;
|
|
586
|
+
}
|
|
587
|
+
function _nonIterableSpread() {
|
|
588
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
589
|
+
}
|
|
590
|
+
function _nonIterableRest() {
|
|
591
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
554
592
|
}
|
|
555
593
|
|
|
556
594
|
var ENUM = {
|
|
@@ -1060,13 +1098,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1060
1098
|
imgHtml.innerHTML = str;
|
|
1061
1099
|
}
|
|
1062
1100
|
// 测试使用 测试类型缩小 end
|
|
1063
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1101
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1064
1102
|
className: "clomnsImg"
|
|
1065
1103
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1066
1104
|
src: url,
|
|
1067
1105
|
width: "16px",
|
|
1068
1106
|
height: "16px"
|
|
1069
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1107
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
1070
1108
|
className: "clomnsImg2"
|
|
1071
1109
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1072
1110
|
src: noImg
|
|
@@ -1203,7 +1241,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1203
1241
|
}
|
|
1204
1242
|
save_link.click();
|
|
1205
1243
|
}
|
|
1206
|
-
var
|
|
1244
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1207
1245
|
return data.map(function (item) {
|
|
1208
1246
|
if (!item.name || !item.path) {
|
|
1209
1247
|
return null;
|
|
@@ -1223,7 +1261,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1223
1261
|
authority: item.authority || parentAuthority
|
|
1224
1262
|
});
|
|
1225
1263
|
if (item.routes) {
|
|
1226
|
-
var children =
|
|
1264
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1227
1265
|
// Reduce memory usage
|
|
1228
1266
|
result.children = children;
|
|
1229
1267
|
}
|
|
@@ -1233,7 +1271,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1233
1271
|
return item;
|
|
1234
1272
|
});
|
|
1235
1273
|
};
|
|
1236
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1274
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual);
|
|
1237
1275
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1238
1276
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1239
1277
|
if (backHistoryPath) {
|
|
@@ -1542,7 +1580,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1542
1580
|
// sheepMap是表头字段中英文映射
|
|
1543
1581
|
// sheetCount:表的数量,默认一张
|
|
1544
1582
|
var resolveFile = /*#__PURE__*/function () {
|
|
1545
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1583
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1546
1584
|
var config,
|
|
1547
1585
|
data,
|
|
1548
1586
|
_args = arguments;
|
|
@@ -1581,7 +1619,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1581
1619
|
}();
|
|
1582
1620
|
//读取文件
|
|
1583
1621
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1584
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1622
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1585
1623
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1586
1624
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1587
1625
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1674,14 +1712,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1674
1712
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1675
1713
|
|
|
1676
1714
|
// 获取树平行结构
|
|
1677
|
-
var
|
|
1715
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1678
1716
|
var childrenKey = chilKey || 'children';
|
|
1679
1717
|
treeData.forEach(function (el) {
|
|
1680
1718
|
var _el$childrenKey;
|
|
1681
1719
|
result.push(el);
|
|
1682
1720
|
if ((el === null || el === void 0 ? void 0 : el[childrenKey]) && (el === null || el === void 0 ? void 0 : (_el$childrenKey = el[childrenKey]) === null || _el$childrenKey === void 0 ? void 0 : _el$childrenKey.length) > 0) {
|
|
1683
1721
|
// 子级递归
|
|
1684
|
-
|
|
1722
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1685
1723
|
}
|
|
1686
1724
|
});
|
|
1687
1725
|
return result;
|
|
@@ -1958,13 +1996,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1958
1996
|
imgHtml.innerHTML = str;
|
|
1959
1997
|
}
|
|
1960
1998
|
// 测试使用 测试类型缩小 end
|
|
1961
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1999
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1962
2000
|
className: "clomnsImg"
|
|
1963
2001
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1964
2002
|
src: url,
|
|
1965
2003
|
width: "16px",
|
|
1966
2004
|
height: "16px"
|
|
1967
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2005
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1968
2006
|
src: noImg
|
|
1969
2007
|
}))));
|
|
1970
2008
|
};
|
|
@@ -2026,7 +2064,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2026
2064
|
}
|
|
2027
2065
|
});
|
|
2028
2066
|
};
|
|
2029
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2067
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && ( /*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2030
2068
|
disabled: disabled,
|
|
2031
2069
|
onChange: function onChange(e) {
|
|
2032
2070
|
var v = e.target.value;
|
|
@@ -2036,7 +2074,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2036
2074
|
width: 170
|
|
2037
2075
|
},
|
|
2038
2076
|
value: inputValue
|
|
2039
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2077
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2040
2078
|
disabled: disabled,
|
|
2041
2079
|
onBlur: function onBlur(e) {
|
|
2042
2080
|
var v = parseFloat(e.target.value);
|
|
@@ -2415,16 +2453,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2415
2453
|
var handleExportBarCode = handleExport;
|
|
2416
2454
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2417
2455
|
var routerMap = {};
|
|
2418
|
-
var
|
|
2456
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2419
2457
|
data.forEach(function (menuItem) {
|
|
2420
2458
|
if (menuItem.children) {
|
|
2421
|
-
|
|
2459
|
+
flattenMenuData(menuItem.children);
|
|
2422
2460
|
}
|
|
2423
2461
|
// Reduce memory usage
|
|
2424
2462
|
routerMap[menuItem.path] = menuItem;
|
|
2425
2463
|
});
|
|
2426
2464
|
};
|
|
2427
|
-
|
|
2465
|
+
flattenMenuData(menuData);
|
|
2428
2466
|
return routerMap;
|
|
2429
2467
|
};
|
|
2430
2468
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2567,7 +2605,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2567
2605
|
return request$1(url, parms).then(handleResponseData);
|
|
2568
2606
|
};
|
|
2569
2607
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2570
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2608
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2571
2609
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2572
2610
|
while (1) switch (_context.prev = _context.next) {
|
|
2573
2611
|
case 0:
|
|
@@ -2658,11 +2696,34 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2658
2696
|
_this = _callSuper(this, DataValidation, [props]);
|
|
2659
2697
|
// this.props.onRef(this);
|
|
2660
2698
|
_this.getCount = function () {
|
|
2661
|
-
var
|
|
2699
|
+
var _this$state$resultDat = _this.state.resultData,
|
|
2700
|
+
resultData = _this$state$resultDat === void 0 ? [] : _this$state$resultDat;
|
|
2701
|
+
var totalQuantity = resultData.reduce(function (total, item) {
|
|
2702
|
+
total += Number(item.quantity || 0);
|
|
2703
|
+
return total;
|
|
2704
|
+
}, 0);
|
|
2705
|
+
var totalSuccessQuantity = resultData.filter(function (item) {
|
|
2706
|
+
return item.flag;
|
|
2707
|
+
}).reduce(function (total, item) {
|
|
2708
|
+
total += Number(item.quantity || 0);
|
|
2709
|
+
return total;
|
|
2710
|
+
}, 0);
|
|
2711
|
+
var totalErrorQuantity = resultData.filter(function (item) {
|
|
2712
|
+
return !item.flag;
|
|
2713
|
+
}).reduce(function (total, item) {
|
|
2714
|
+
total += Number(item.quantity || 0);
|
|
2715
|
+
return total;
|
|
2716
|
+
}, 0);
|
|
2662
2717
|
return {
|
|
2663
2718
|
total: resultData.length,
|
|
2719
|
+
totalQuantity: totalQuantity,
|
|
2720
|
+
totalSuccessQuantity: totalSuccessQuantity,
|
|
2721
|
+
totalErrorQuantity: totalErrorQuantity,
|
|
2664
2722
|
error: resultData.filter(function (item) {
|
|
2665
2723
|
return !item.flag;
|
|
2724
|
+
}).length,
|
|
2725
|
+
success: resultData.filter(function (item) {
|
|
2726
|
+
return item.flag;
|
|
2666
2727
|
}).length
|
|
2667
2728
|
};
|
|
2668
2729
|
};
|
|
@@ -2671,7 +2732,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2671
2732
|
var notValid = _this.props.notValid;
|
|
2672
2733
|
return {
|
|
2673
2734
|
container: 'luckysheet',
|
|
2674
|
-
showtoolbar: false,
|
|
2735
|
+
// showtoolbar: false,
|
|
2675
2736
|
hook: {
|
|
2676
2737
|
columnTitleCellRenderBefore: function columnTitleCellRenderBefore(columnAbc, postion, ctx) {
|
|
2677
2738
|
if (columnAbc.name) {
|
|
@@ -2708,17 +2769,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2708
2769
|
// console.info(data,sheetFile,ctx)
|
|
2709
2770
|
}
|
|
2710
2771
|
},
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
// currencyFormat: false, //货币格式
|
|
2715
|
-
// percentageFormat: false, //百分比格式
|
|
2716
|
-
// numberDecrease: false, // '减少小数位数'
|
|
2717
|
-
// numberIncrease: false, // '增加小数位数
|
|
2718
|
-
// moreFormats: false, // '更多格式'
|
|
2719
|
-
// font: true, // '字体'
|
|
2720
|
-
// fontSize: true, // '字号大小'
|
|
2721
|
-
// },
|
|
2772
|
+
showtoolbarConfig: {
|
|
2773
|
+
sortAndFilter: true
|
|
2774
|
+
},
|
|
2722
2775
|
data: [_defineProperty(_defineProperty({
|
|
2723
2776
|
name: 'Cell',
|
|
2724
2777
|
color: '',
|
|
@@ -2842,7 +2895,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2842
2895
|
showsheetbar: false,
|
|
2843
2896
|
optionstate: false,
|
|
2844
2897
|
showstatisticBarConfig: {
|
|
2845
|
-
count:
|
|
2898
|
+
count: true,
|
|
2846
2899
|
view: false,
|
|
2847
2900
|
zoom: false // 缩放
|
|
2848
2901
|
},
|
|
@@ -2897,6 +2950,44 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2897
2950
|
return _.compact(Object.values(d)).length;
|
|
2898
2951
|
});
|
|
2899
2952
|
};
|
|
2953
|
+
_this.naturalCompare = function (a, b) {
|
|
2954
|
+
var checkNumber = function checkNumber(value) {
|
|
2955
|
+
return /^[-+]?(\d+\.?\d*|\.\d+)([eE][-+]?\d+)?$/.test(value.trim());
|
|
2956
|
+
};
|
|
2957
|
+
if (checkNumber(a) && checkNumber(b)) {
|
|
2958
|
+
return Number(a) - Number(b);
|
|
2959
|
+
}
|
|
2960
|
+
// 优先处理 "通过" 的情况
|
|
2961
|
+
if (a === "通过" && b !== "通过") return -1;
|
|
2962
|
+
if (b === "通过" && a !== "通过") return 1;
|
|
2963
|
+
return a.localeCompare(b);
|
|
2964
|
+
};
|
|
2965
|
+
_this.customSort = function (a, b) {
|
|
2966
|
+
// 处理空值
|
|
2967
|
+
var aEmpty = !a;
|
|
2968
|
+
var bEmpty = !b;
|
|
2969
|
+
if (aEmpty && bEmpty) return 0;
|
|
2970
|
+
if (aEmpty) return 1; // a空,排后面
|
|
2971
|
+
if (bEmpty) return -1; // b空,a排前面
|
|
2972
|
+
return _this.naturalCompare(a, b);
|
|
2973
|
+
};
|
|
2974
|
+
_this.sortData = function (sorterKey) {
|
|
2975
|
+
var sheetData = luckysheet.getSheetData();
|
|
2976
|
+
var newData = JSON.parse(JSON.stringify(sheetData)).sort(function (cur, prev) {
|
|
2977
|
+
var _cur$cellIndex, _prev$cellIndex;
|
|
2978
|
+
var cellIndex = itemsTemp.findIndex(function (item) {
|
|
2979
|
+
return item.code === sorterKey;
|
|
2980
|
+
});
|
|
2981
|
+
if (sorterKey === 'checkresult') {
|
|
2982
|
+
cellIndex = itemsTemp.length;
|
|
2983
|
+
}
|
|
2984
|
+
return _this.customSort((_cur$cellIndex = cur[cellIndex]) === null || _cur$cellIndex === void 0 ? void 0 : _cur$cellIndex.v, (_prev$cellIndex = prev[cellIndex]) === null || _prev$cellIndex === void 0 ? void 0 : _prev$cellIndex.v);
|
|
2985
|
+
});
|
|
2986
|
+
luckysheet.create(_this.setConfig(luckysheet.transToCellData(newData)));
|
|
2987
|
+
_this.setState({
|
|
2988
|
+
data: luckysheet.transToCellData(newData)
|
|
2989
|
+
});
|
|
2990
|
+
};
|
|
2900
2991
|
_this.resetData = function () {
|
|
2901
2992
|
var _customerColumnsMappi;
|
|
2902
2993
|
var _this$props = _this.props,
|
|
@@ -3079,10 +3170,43 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3079
3170
|
});
|
|
3080
3171
|
}), provided.placeholder);
|
|
3081
3172
|
}))));
|
|
3173
|
+
_this.getSortList = function () {
|
|
3174
|
+
var _this$props2, _this$props2$customer;
|
|
3175
|
+
var sortList = [];
|
|
3176
|
+
if ((_this$props2 = _this.props) === null || _this$props2 === void 0 ? void 0 : (_this$props2$customer = _this$props2.customerColumnsMapping) === null || _this$props2$customer === void 0 ? void 0 : _this$props2$customer.length) {
|
|
3177
|
+
var _this$props3, _this$props3$customer;
|
|
3178
|
+
sortList = ((_this$props3 = _this.props) === null || _this$props3 === void 0 ? void 0 : (_this$props3$customer = _this$props3.customerColumnsMapping) === null || _this$props3$customer === void 0 ? void 0 : _this$props3$customer.map(function (item, index) {
|
|
3179
|
+
return createItem('item-0', index, item.title, item.name, _this.format);
|
|
3180
|
+
})) || [];
|
|
3181
|
+
} else {
|
|
3182
|
+
var _this$props4, _this$props4$columns;
|
|
3183
|
+
sortList = ((_this$props4 = _this.props) === null || _this$props4 === void 0 ? void 0 : (_this$props4$columns = _this$props4.columns) === null || _this$props4$columns === void 0 ? void 0 : _this$props4$columns.map(function (item, index) {
|
|
3184
|
+
if (!mapping.get(item)) throw Error("".concat(item, " is not in DataValidation component, please fix this error"));
|
|
3185
|
+
return createItem('item-0', index, mapping.get(item), item, _this.format);
|
|
3186
|
+
})) || [];
|
|
3187
|
+
}
|
|
3188
|
+
return /*#__PURE__*/React$1.createElement(Menu, null, (sortList || []).map(function (item, index) {
|
|
3189
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(Menu.Item, {
|
|
3190
|
+
key: index,
|
|
3191
|
+
className: "sheet_table-menu_item_text"
|
|
3192
|
+
}, /*#__PURE__*/React$1.createElement("a", {
|
|
3193
|
+
onClick: function onClick() {
|
|
3194
|
+
return _this.sortData(item.code);
|
|
3195
|
+
}
|
|
3196
|
+
}, item.content)), /*#__PURE__*/React$1.createElement(Menu.Divider, null));
|
|
3197
|
+
}), /*#__PURE__*/React$1.createElement(Menu.Item, {
|
|
3198
|
+
key: "checkresult",
|
|
3199
|
+
className: "sheet_table-menu_item_text"
|
|
3200
|
+
}, /*#__PURE__*/React$1.createElement("a", {
|
|
3201
|
+
onClick: function onClick() {
|
|
3202
|
+
return _this.sortData('checkresult');
|
|
3203
|
+
}
|
|
3204
|
+
}, "\u6821\u9A8C\u7ED3\u679C")));
|
|
3205
|
+
};
|
|
3082
3206
|
_this.getSheetMap = function () {
|
|
3083
|
-
var _this$
|
|
3084
|
-
customerColumnsMapping = _this$
|
|
3085
|
-
columns = _this$
|
|
3207
|
+
var _this$props5 = _this.props,
|
|
3208
|
+
customerColumnsMapping = _this$props5.customerColumnsMapping,
|
|
3209
|
+
columns = _this$props5.columns;
|
|
3086
3210
|
var sheetData = customerColumnsMapping || columns.map(function (s) {
|
|
3087
3211
|
return {
|
|
3088
3212
|
title: mapping.get(s),
|
|
@@ -3173,12 +3297,12 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3173
3297
|
key: "render",
|
|
3174
3298
|
value: function render() {
|
|
3175
3299
|
var errorListCheck = this.state.errorListCheck;
|
|
3176
|
-
var _this$
|
|
3177
|
-
title = _this$
|
|
3178
|
-
notValid = _this$
|
|
3179
|
-
notExcelImport = _this$
|
|
3180
|
-
excelImportConfig = _this$
|
|
3181
|
-
getTemplate = _this$
|
|
3300
|
+
var _this$props6 = this.props,
|
|
3301
|
+
title = _this$props6.title,
|
|
3302
|
+
notValid = _this$props6.notValid,
|
|
3303
|
+
notExcelImport = _this$props6.notExcelImport,
|
|
3304
|
+
excelImportConfig = _this$props6.excelImportConfig,
|
|
3305
|
+
getTemplate = _this$props6.getTemplate;
|
|
3182
3306
|
var _ref5 = excelImportConfig || {},
|
|
3183
3307
|
size = _ref5.size,
|
|
3184
3308
|
accept = _ref5.accept,
|
|
@@ -3234,6 +3358,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3234
3358
|
left: '0px',
|
|
3235
3359
|
top: '0px'
|
|
3236
3360
|
};
|
|
3361
|
+
console.log('itemsTemp', itemsTemp);
|
|
3237
3362
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
3238
3363
|
className: "sheet_table_top"
|
|
3239
3364
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement("span", null, "\u6392\u5E8F\u5217"), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
@@ -3246,13 +3371,17 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3246
3371
|
style: {
|
|
3247
3372
|
color: 'red'
|
|
3248
3373
|
}
|
|
3249
|
-
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, getTemplate && (/*#__PURE__*/React$1.createElement(Button, {
|
|
3374
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, getTemplate && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
3250
3375
|
onClick: getTemplate
|
|
3251
3376
|
}, "\u4E0B\u8F7D\u6A21\u677F")), /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165")))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3252
3377
|
trigger: ['click'],
|
|
3253
3378
|
overlay: this.menuList,
|
|
3254
3379
|
placement: "bottomRight"
|
|
3255
|
-
}, /*#__PURE__*/React$1.createElement(Button, null, "\u6E05\u7A7A", /*#__PURE__*/React$1.createElement(DownOutlined, null))),
|
|
3380
|
+
}, /*#__PURE__*/React$1.createElement(Button, null, "\u6E05\u7A7A", /*#__PURE__*/React$1.createElement(DownOutlined, null))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3381
|
+
trigger: ['click'],
|
|
3382
|
+
overlay: this.getSortList(),
|
|
3383
|
+
placement: "bottomRight"
|
|
3384
|
+
}, /*#__PURE__*/React$1.createElement(Button, null, "\u6392\u5E8F", /*#__PURE__*/React$1.createElement(DownOutlined, null))), !notValid && /*#__PURE__*/React$1.createElement(Button, {
|
|
3256
3385
|
type: "primary",
|
|
3257
3386
|
onClick: this.resetData
|
|
3258
3387
|
}, "\u8BC6\u522B"))), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -3263,11 +3392,31 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3263
3392
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
3264
3393
|
id: "luckysheet",
|
|
3265
3394
|
style: luckyCss
|
|
3266
|
-
})), !this.props.notValid && /*#__PURE__*/React$1.createElement("div", {
|
|
3395
|
+
})), !this.props.notValid && !!totalSummary.total && /*#__PURE__*/React$1.createElement("div", {
|
|
3267
3396
|
className: "sheet_table_footer"
|
|
3268
3397
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
3269
3398
|
className: "sheet_table_footer_l"
|
|
3270
|
-
}, "\u5171 ", totalSummary.total, " \u6761\u6570\u636E
|
|
3399
|
+
}, "\u5171 ", totalSummary.total, " \u6761\u6570\u636E\uFF1A", /*#__PURE__*/React$1.createElement("span", {
|
|
3400
|
+
style: {
|
|
3401
|
+
color: 'green',
|
|
3402
|
+
marginLeft: '5px'
|
|
3403
|
+
}
|
|
3404
|
+
}, " \u6210\u529F\u6761\u6570\uFF1A"), totalSummary.success, /*#__PURE__*/React$1.createElement("span", {
|
|
3405
|
+
style: {
|
|
3406
|
+
color: 'green',
|
|
3407
|
+
marginLeft: '5px'
|
|
3408
|
+
}
|
|
3409
|
+
}, " \u6210\u529F\u6570\u91CF\uFF1A"), totalSummary.totalSuccessQuantity || 0, /*#__PURE__*/React$1.createElement("span", {
|
|
3410
|
+
style: {
|
|
3411
|
+
color: 'red',
|
|
3412
|
+
marginLeft: '5px'
|
|
3413
|
+
}
|
|
3414
|
+
}, " \u5931\u8D25\u6761\u6570\uFF1A"), totalSummary.error || 0, /*#__PURE__*/React$1.createElement("span", {
|
|
3415
|
+
style: {
|
|
3416
|
+
color: 'red',
|
|
3417
|
+
marginLeft: '5px'
|
|
3418
|
+
}
|
|
3419
|
+
}, " \u5931\u8D25\u6570\u91CF\uFF1A"), totalSummary.totalErrorQuantity || 0), !notValid && /*#__PURE__*/React$1.createElement(Space, {
|
|
3271
3420
|
className: "sheet_table_footer_r"
|
|
3272
3421
|
}, /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
3273
3422
|
checked: errorListCheck,
|
|
@@ -3923,7 +4072,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3923
4072
|
placement: "bottomLeft"
|
|
3924
4073
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3925
4074
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3926
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
4075
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3927
4076
|
trigger: ['click'],
|
|
3928
4077
|
overlay: this.menuList,
|
|
3929
4078
|
placement: "bottomRight"
|
|
@@ -4447,7 +4596,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref4) {
|
|
|
4447
4596
|
destroyTooltipOnHide: true,
|
|
4448
4597
|
placement: "topRight",
|
|
4449
4598
|
autoAdjustOverflow: false,
|
|
4450
|
-
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4599
|
+
title: ( /*#__PURE__*/React$1.createElement("div", {
|
|
4451
4600
|
style: {
|
|
4452
4601
|
margin: '6px 8px 0px'
|
|
4453
4602
|
},
|
|
@@ -4749,10 +4898,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4749
4898
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4750
4899
|
});
|
|
4751
4900
|
},
|
|
4752
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4901
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
4753
4902
|
size: "small",
|
|
4754
4903
|
className: 'searchSelectSpin'
|
|
4755
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4904
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
4756
4905
|
style: {
|
|
4757
4906
|
textAlign: 'center'
|
|
4758
4907
|
}
|
|
@@ -4984,7 +5133,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4984
5133
|
title: item.name,
|
|
4985
5134
|
className: "propertyGroup_checkbox_container"
|
|
4986
5135
|
}, item.name));
|
|
4987
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
5136
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
4988
5137
|
style: {
|
|
4989
5138
|
width: '50px',
|
|
4990
5139
|
cursor: 'pointer',
|
|
@@ -4997,7 +5146,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4997
5146
|
setShowNotCommon(!showNotCommon);
|
|
4998
5147
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4999
5148
|
}
|
|
5000
|
-
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
5149
|
+
}, showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
5001
5150
|
};
|
|
5002
5151
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
5003
5152
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5227,7 +5376,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5227
5376
|
propertyData: item,
|
|
5228
5377
|
handleProperyItemChange: handleProperyItemChange
|
|
5229
5378
|
});
|
|
5230
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5379
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5231
5380
|
style: {
|
|
5232
5381
|
width: '50px',
|
|
5233
5382
|
cursor: 'pointer',
|
|
@@ -5237,7 +5386,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5237
5386
|
onClick: function onClick() {
|
|
5238
5387
|
return setShowNotCommon(!showNotCommon);
|
|
5239
5388
|
}
|
|
5240
|
-
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5389
|
+
}, showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5241
5390
|
};
|
|
5242
5391
|
|
|
5243
5392
|
var _excluded$4 = ["onChange", "value", "propertyCode", "name"];
|
|
@@ -6355,13 +6504,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6355
6504
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6356
6505
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6357
6506
|
className: 'search_select'
|
|
6358
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6507
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
6359
6508
|
onClick: function onClick() {
|
|
6360
6509
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6361
6510
|
(_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);
|
|
6362
6511
|
showModal();
|
|
6363
6512
|
}
|
|
6364
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6513
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
6365
6514
|
title: getShowStr({
|
|
6366
6515
|
viewShowValueStr: viewShowValueStr,
|
|
6367
6516
|
labelInValue: labelInValue,
|
|
@@ -6400,10 +6549,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6400
6549
|
dropdownRender: function dropdownRender(menu) {
|
|
6401
6550
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6402
6551
|
},
|
|
6403
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6552
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
6404
6553
|
size: "small",
|
|
6405
6554
|
className: 'searchSelectSpin'
|
|
6406
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6555
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
6407
6556
|
style: {
|
|
6408
6557
|
textAlign: 'center'
|
|
6409
6558
|
}
|
|
@@ -6443,7 +6592,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6443
6592
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6444
6593
|
filterTxt: searchValue
|
|
6445
6594
|
}));
|
|
6446
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6595
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6447
6596
|
maskClosable: false,
|
|
6448
6597
|
destroyOnClose: true,
|
|
6449
6598
|
width: "calc(100% - 320px)",
|
|
@@ -7042,7 +7191,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7042
7191
|
style: {
|
|
7043
7192
|
width: 525
|
|
7044
7193
|
}
|
|
7045
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
7194
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
7046
7195
|
checked: !dataSource.some(function (item) {
|
|
7047
7196
|
if (item.hidden) return true;
|
|
7048
7197
|
return false;
|
|
@@ -7080,13 +7229,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7080
7229
|
_this2.onChange(e, item.title);
|
|
7081
7230
|
}
|
|
7082
7231
|
}, item.title);
|
|
7083
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
7232
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
7084
7233
|
style: {
|
|
7085
7234
|
width: '144px'
|
|
7086
7235
|
}
|
|
7087
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
7236
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
7088
7237
|
className: 'sort_table_column_all_empty'
|
|
7089
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
7238
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
7090
7239
|
className: 'sort_table_column_special'
|
|
7091
7240
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
7092
7241
|
className: 'sort_table_column_all'
|
|
@@ -7275,7 +7424,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7275
7424
|
});
|
|
7276
7425
|
};
|
|
7277
7426
|
// 格式化树选择器数据源
|
|
7278
|
-
var
|
|
7427
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7279
7428
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7280
7429
|
return {
|
|
7281
7430
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7285,7 +7434,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7285
7434
|
isLeaf: !haveChildren,
|
|
7286
7435
|
disabled: haveChildren,
|
|
7287
7436
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7288
|
-
return
|
|
7437
|
+
return mapSearchTree(i, resKeyValue);
|
|
7289
7438
|
}) : []
|
|
7290
7439
|
};
|
|
7291
7440
|
};
|
|
@@ -7294,7 +7443,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7294
7443
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7295
7444
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7296
7445
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7297
|
-
return
|
|
7446
|
+
return mapSearchTree(ites, resKeyValue);
|
|
7298
7447
|
}) || [];
|
|
7299
7448
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7300
7449
|
};
|
|
@@ -7466,7 +7615,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7466
7615
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7467
7616
|
// FIXME: 特殊业务逻辑
|
|
7468
7617
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7469
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7618
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7470
7619
|
var result;
|
|
7471
7620
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7472
7621
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7719,7 +7868,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7719
7868
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7720
7869
|
value: text || null,
|
|
7721
7870
|
onChange: function () {
|
|
7722
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7871
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7723
7872
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7724
7873
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7725
7874
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8327,10 +8476,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8327
8476
|
var newColumns = arr.map(function (col) {
|
|
8328
8477
|
return _objectSpread2({}, col);
|
|
8329
8478
|
});
|
|
8330
|
-
var
|
|
8479
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8331
8480
|
var i = indexArr.shift();
|
|
8332
8481
|
if (indexArr.length > 0) {
|
|
8333
|
-
|
|
8482
|
+
handleIndex(arr[i].children, indexArr);
|
|
8334
8483
|
} else {
|
|
8335
8484
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8336
8485
|
width: size.width
|
|
@@ -8338,7 +8487,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8338
8487
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8339
8488
|
}
|
|
8340
8489
|
};
|
|
8341
|
-
|
|
8490
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8342
8491
|
callback(newColumns);
|
|
8343
8492
|
};
|
|
8344
8493
|
};
|
|
@@ -8348,13 +8497,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8348
8497
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8349
8498
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8350
8499
|
};
|
|
8351
|
-
var
|
|
8500
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8352
8501
|
arr.forEach(function (item, index) {
|
|
8353
8502
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8354
8503
|
return i || i === 0;
|
|
8355
8504
|
});
|
|
8356
8505
|
if (noEmptyArray$1(item.children)) {
|
|
8357
|
-
|
|
8506
|
+
handleColumns(item.children, indexArrInside);
|
|
8358
8507
|
} else {
|
|
8359
8508
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8360
8509
|
item.onHeaderCell = function (column) {
|
|
@@ -8370,14 +8519,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8370
8519
|
handleAntdColumnsSpecialParams(item);
|
|
8371
8520
|
return _objectSpread2({}, item);
|
|
8372
8521
|
});
|
|
8373
|
-
|
|
8522
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
8374
8523
|
return setShowToChooseColumnsCallback(res);
|
|
8375
8524
|
});
|
|
8376
8525
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8377
8526
|
handleAntdColumnsSpecialParams(item);
|
|
8378
8527
|
return _objectSpread2({}, item);
|
|
8379
8528
|
});
|
|
8380
|
-
|
|
8529
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8381
8530
|
return setShowColumnsCallback(res);
|
|
8382
8531
|
});
|
|
8383
8532
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8388,7 +8537,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8388
8537
|
id: "add_select_div_".concat(uniqueValue)
|
|
8389
8538
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
8390
8539
|
onClick: handleShowModal
|
|
8391
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
8540
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
8392
8541
|
width: "calc(100% - 320px)",
|
|
8393
8542
|
style: {
|
|
8394
8543
|
top: 20
|
|
@@ -9302,7 +9451,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9302
9451
|
});
|
|
9303
9452
|
};
|
|
9304
9453
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9305
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9454
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9306
9455
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9307
9456
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9308
9457
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9385,10 +9534,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9385
9534
|
var newColumns = arr.map(function (col) {
|
|
9386
9535
|
return _objectSpread2({}, col);
|
|
9387
9536
|
});
|
|
9388
|
-
var
|
|
9537
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
9389
9538
|
var i = indexArr.shift();
|
|
9390
9539
|
if (indexArr.length > 0) {
|
|
9391
|
-
|
|
9540
|
+
handleIndex(arr[i].children, indexArr);
|
|
9392
9541
|
} else {
|
|
9393
9542
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9394
9543
|
width: size.width
|
|
@@ -9396,17 +9545,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9396
9545
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9397
9546
|
}
|
|
9398
9547
|
};
|
|
9399
|
-
|
|
9548
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
9400
9549
|
callback(newColumns);
|
|
9401
9550
|
};
|
|
9402
9551
|
};
|
|
9403
|
-
var
|
|
9552
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9404
9553
|
arr.forEach(function (item, index) {
|
|
9405
9554
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9406
9555
|
return i || i === 0;
|
|
9407
9556
|
});
|
|
9408
9557
|
if (noEmptyArray$1(item.children)) {
|
|
9409
|
-
|
|
9558
|
+
handleColumns(item.children, indexArrInside);
|
|
9410
9559
|
} else {
|
|
9411
9560
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9412
9561
|
item.onHeaderCell = function (column) {
|
|
@@ -9422,7 +9571,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9422
9571
|
handleAntdColumnsSpecialParams(item);
|
|
9423
9572
|
return _objectSpread2({}, item);
|
|
9424
9573
|
});
|
|
9425
|
-
|
|
9574
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
9426
9575
|
return setShowColumnsCallback(res);
|
|
9427
9576
|
});
|
|
9428
9577
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9738,7 +9887,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9738
9887
|
});
|
|
9739
9888
|
};
|
|
9740
9889
|
// 格式化树选择器数据源
|
|
9741
|
-
var
|
|
9890
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9742
9891
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9743
9892
|
return {
|
|
9744
9893
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9748,7 +9897,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9748
9897
|
isLeaf: !haveChildren,
|
|
9749
9898
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9750
9899
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9751
|
-
return
|
|
9900
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9752
9901
|
}) : []
|
|
9753
9902
|
};
|
|
9754
9903
|
};
|
|
@@ -9762,7 +9911,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9762
9911
|
disabledJudge = false;
|
|
9763
9912
|
}
|
|
9764
9913
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9765
|
-
return
|
|
9914
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9766
9915
|
}) || [];
|
|
9767
9916
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9768
9917
|
};
|
|
@@ -14083,7 +14232,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
14083
14232
|
};
|
|
14084
14233
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
14085
14234
|
onClick: handleShowModal
|
|
14086
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
14235
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
14087
14236
|
onOk: handleOk,
|
|
14088
14237
|
onCancel: handleCancel,
|
|
14089
14238
|
destroyOnClose: true,
|
|
@@ -14202,7 +14351,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14202
14351
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
14203
14352
|
_remoteSource$special = remoteSource.specialBracket,
|
|
14204
14353
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
14205
|
-
var
|
|
14354
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
14206
14355
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
14207
14356
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
14208
14357
|
return {
|
|
@@ -14214,7 +14363,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14214
14363
|
isLeaf: !haveChildren,
|
|
14215
14364
|
disabled: isDisabled(haveChildren, isRoot),
|
|
14216
14365
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
14217
|
-
return
|
|
14366
|
+
return mapSearchTree(i);
|
|
14218
14367
|
}) : []
|
|
14219
14368
|
};
|
|
14220
14369
|
};
|
|
@@ -14232,8 +14381,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14232
14381
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
14233
14382
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
14234
14383
|
headers: headers
|
|
14235
|
-
}).then(/*#__PURE__*/function () {
|
|
14236
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14384
|
+
}).then( /*#__PURE__*/function () {
|
|
14385
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14237
14386
|
var _ctx$form;
|
|
14238
14387
|
var resData, coverData, data, dataList;
|
|
14239
14388
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -14260,7 +14409,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14260
14409
|
case 9:
|
|
14261
14410
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14262
14411
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14263
|
-
return
|
|
14412
|
+
return mapSearchTree(ites);
|
|
14264
14413
|
}) || [];
|
|
14265
14414
|
case 11:
|
|
14266
14415
|
_context.next = 14;
|
|
@@ -14298,11 +14447,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14298
14447
|
return _formatResult;
|
|
14299
14448
|
}
|
|
14300
14449
|
};
|
|
14301
|
-
var
|
|
14450
|
+
var parallelData = function parallelData(data, result) {
|
|
14302
14451
|
data.forEach(function (i) {
|
|
14303
14452
|
result.push(i);
|
|
14304
14453
|
if (i[treeChildrenRoom]) {
|
|
14305
|
-
|
|
14454
|
+
parallelData(i[treeChildrenRoom], result);
|
|
14306
14455
|
}
|
|
14307
14456
|
});
|
|
14308
14457
|
return result;
|
|
@@ -14342,7 +14491,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14342
14491
|
var _ctx$form2;
|
|
14343
14492
|
var handleData = formatData(data);
|
|
14344
14493
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
14345
|
-
var parallelTreeData =
|
|
14494
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
14346
14495
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
14347
14496
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
14348
14497
|
onChangeName && onChangeName(dataName);
|
|
@@ -14385,7 +14534,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14385
14534
|
var getShowStr = function getShowStr() {
|
|
14386
14535
|
var isMultiple = multiple || treeCheckable;
|
|
14387
14536
|
var kongValue = '无';
|
|
14388
|
-
var parallelTreeData =
|
|
14537
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
14389
14538
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14390
14539
|
if (isMultiple) {
|
|
14391
14540
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14397,7 +14546,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14397
14546
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14398
14547
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14399
14548
|
className: 'tree_search_select'
|
|
14400
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14549
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
14401
14550
|
title: getShowStr(),
|
|
14402
14551
|
style: {
|
|
14403
14552
|
overflow: 'hidden',
|
|
@@ -14405,7 +14554,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14405
14554
|
whiteSpace: 'nowrap'
|
|
14406
14555
|
},
|
|
14407
14556
|
className: 'search_select_show'
|
|
14408
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14557
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14409
14558
|
treeCheckable: treeCheckable,
|
|
14410
14559
|
maxTagCount: maxTagCount,
|
|
14411
14560
|
showSearch: showSearch,
|
|
@@ -14602,7 +14751,7 @@ var index$2 = (function (props) {
|
|
|
14602
14751
|
} : {}
|
|
14603
14752
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
14604
14753
|
className: 'status-label-operate'
|
|
14605
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14754
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
14606
14755
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14607
14756
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
14608
14757
|
style: {
|
|
@@ -15383,7 +15532,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15383
15532
|
style: {
|
|
15384
15533
|
width: 525
|
|
15385
15534
|
}
|
|
15386
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15535
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15387
15536
|
checked: !dataSource.some(function (item) {
|
|
15388
15537
|
if (item.hidden) return true;
|
|
15389
15538
|
return false;
|
|
@@ -15421,13 +15570,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15421
15570
|
_this2.onChange(e, item.title);
|
|
15422
15571
|
}
|
|
15423
15572
|
}, item.title);
|
|
15424
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15573
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
15425
15574
|
style: {
|
|
15426
15575
|
width: '144px'
|
|
15427
15576
|
}
|
|
15428
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15577
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
15429
15578
|
className: 'sort_table_column_all_empty'
|
|
15430
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15579
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15431
15580
|
className: 'sort_table_column_special'
|
|
15432
15581
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15433
15582
|
className: 'sort_table_column_all'
|
|
@@ -15606,10 +15755,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15606
15755
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15607
15756
|
return _objectSpread2({}, col);
|
|
15608
15757
|
});
|
|
15609
|
-
var
|
|
15758
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15610
15759
|
var i = indexArr.shift();
|
|
15611
15760
|
if (indexArr.length > 0) {
|
|
15612
|
-
|
|
15761
|
+
handleIndex(arr[i].children, indexArr);
|
|
15613
15762
|
} else {
|
|
15614
15763
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15615
15764
|
width: size.width
|
|
@@ -15617,7 +15766,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15617
15766
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15618
15767
|
}
|
|
15619
15768
|
};
|
|
15620
|
-
|
|
15769
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15621
15770
|
_this.setState({
|
|
15622
15771
|
showColumns: _toConsumableArray(newColumns)
|
|
15623
15772
|
});
|
|
@@ -15658,7 +15807,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15658
15807
|
};
|
|
15659
15808
|
setIsResizing(true);
|
|
15660
15809
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15661
|
-
document.addEventListener('mouseup',
|
|
15810
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
15662
15811
|
};
|
|
15663
15812
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15664
15813
|
e.stopPropagation();
|
|
@@ -15674,9 +15823,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15674
15823
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15675
15824
|
}
|
|
15676
15825
|
};
|
|
15677
|
-
var
|
|
15826
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
15678
15827
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15679
|
-
document.removeEventListener('mouseup',
|
|
15828
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
15680
15829
|
setIsResizing(false);
|
|
15681
15830
|
};
|
|
15682
15831
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15797,13 +15946,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15797
15946
|
showSummary = summary;
|
|
15798
15947
|
}
|
|
15799
15948
|
}
|
|
15800
|
-
var
|
|
15949
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15801
15950
|
arr.forEach(function (item, index) {
|
|
15802
15951
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15803
15952
|
return i || i === 0;
|
|
15804
15953
|
});
|
|
15805
15954
|
if (noEmptyArray$1(item.children)) {
|
|
15806
|
-
|
|
15955
|
+
handleColumns(item.children, indexArrInside);
|
|
15807
15956
|
} else {
|
|
15808
15957
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15809
15958
|
item.onHeaderCell = function (column) {
|
|
@@ -15819,7 +15968,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15819
15968
|
handleBssulaColumnsSpecialParams(item);
|
|
15820
15969
|
return _objectSpread2({}, item);
|
|
15821
15970
|
});
|
|
15822
|
-
|
|
15971
|
+
handleColumns(showCol, []);
|
|
15823
15972
|
if (dynamicColumns.length) {
|
|
15824
15973
|
showCol = this.handledynamicColumns(showCol);
|
|
15825
15974
|
}
|
|
@@ -15860,7 +16009,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15860
16009
|
cell: this.ResizeableTitle
|
|
15861
16010
|
}
|
|
15862
16011
|
}
|
|
15863
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
16012
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15864
16013
|
summary: summary
|
|
15865
16014
|
})));
|
|
15866
16015
|
}
|
|
@@ -15957,10 +16106,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15957
16106
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15958
16107
|
return _objectSpread2({}, col);
|
|
15959
16108
|
});
|
|
15960
|
-
var
|
|
16109
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15961
16110
|
var i = indexArr.shift();
|
|
15962
16111
|
if (indexArr.length > 0) {
|
|
15963
|
-
|
|
16112
|
+
handleIndex(arr[i].children, indexArr);
|
|
15964
16113
|
} else {
|
|
15965
16114
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15966
16115
|
width: size.width
|
|
@@ -15968,7 +16117,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15968
16117
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15969
16118
|
}
|
|
15970
16119
|
};
|
|
15971
|
-
|
|
16120
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15972
16121
|
_this.setState({
|
|
15973
16122
|
showColumns: _toConsumableArray(newColumns)
|
|
15974
16123
|
});
|
|
@@ -16044,13 +16193,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16044
16193
|
showSummary = summary;
|
|
16045
16194
|
}
|
|
16046
16195
|
}
|
|
16047
|
-
var
|
|
16196
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
16048
16197
|
arr.forEach(function (item, index) {
|
|
16049
16198
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
16050
16199
|
return i || i === 0;
|
|
16051
16200
|
});
|
|
16052
16201
|
if (noEmptyArray$1(item.children)) {
|
|
16053
|
-
|
|
16202
|
+
handleColumns(item.children, indexArrInside);
|
|
16054
16203
|
} else {
|
|
16055
16204
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
16056
16205
|
item.onHeaderCell = function (column) {
|
|
@@ -16066,7 +16215,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16066
16215
|
handleAntdColumnsSpecialParams(item);
|
|
16067
16216
|
return _objectSpread2({}, item);
|
|
16068
16217
|
});
|
|
16069
|
-
|
|
16218
|
+
handleColumns(showCol, []);
|
|
16070
16219
|
if (dynamicColumns.length) {
|
|
16071
16220
|
showCol = this.handledynamicColumns(showCol);
|
|
16072
16221
|
}
|
|
@@ -16106,7 +16255,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16106
16255
|
cell: this.ResizeableTitle
|
|
16107
16256
|
}
|
|
16108
16257
|
}
|
|
16109
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
16258
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
16110
16259
|
summary: summary
|
|
16111
16260
|
})));
|
|
16112
16261
|
}
|
|
@@ -16166,7 +16315,7 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
16166
16315
|
};
|
|
16167
16316
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
16168
16317
|
var routerMap = {};
|
|
16169
|
-
var
|
|
16318
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
16170
16319
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
16171
16320
|
data.forEach(function (menuItem) {
|
|
16172
16321
|
// 面包屑路径,增加显示一级导航路径显示
|
|
@@ -16181,13 +16330,13 @@ var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
|
16181
16330
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
16182
16331
|
});
|
|
16183
16332
|
if (newMenuItem.children) {
|
|
16184
|
-
|
|
16333
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
16185
16334
|
}
|
|
16186
16335
|
// Reduce memory usage
|
|
16187
16336
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
16188
16337
|
});
|
|
16189
16338
|
};
|
|
16190
|
-
|
|
16339
|
+
flattenMenuData(menuData, {
|
|
16191
16340
|
isMenuRoot: true
|
|
16192
16341
|
});
|
|
16193
16342
|
return routerMap;
|
|
@@ -16552,7 +16701,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16552
16701
|
display: 'flex',
|
|
16553
16702
|
gap: '8px'
|
|
16554
16703
|
}
|
|
16555
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16704
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16556
16705
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16557
16706
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16558
16707
|
onClick: function onClick() {
|
|
@@ -16560,7 +16709,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16560
16709
|
},
|
|
16561
16710
|
width: 24,
|
|
16562
16711
|
src: scanning
|
|
16563
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16712
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16564
16713
|
title: "\u5168\u5C4F"
|
|
16565
16714
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16566
16715
|
onClick: function onClick() {
|
|
@@ -16568,7 +16717,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16568
16717
|
},
|
|
16569
16718
|
width: 24,
|
|
16570
16719
|
src: quanping
|
|
16571
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16720
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16572
16721
|
}, function (prevProps, nextProps) {
|
|
16573
16722
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16574
16723
|
return false;
|
|
@@ -16653,7 +16802,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16653
16802
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16654
16803
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16655
16804
|
}, item));
|
|
16656
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16805
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16657
16806
|
}, function (prevProps, nextProps) {
|
|
16658
16807
|
if (prevProps.title !== nextProps.title) {
|
|
16659
16808
|
return false;
|
|
@@ -17293,7 +17442,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17293
17442
|
});
|
|
17294
17443
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17295
17444
|
className: 'sort_table_wrapper'
|
|
17296
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17445
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
17297
17446
|
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
17298
17447
|
wrapClassName: 'sort_table_wrapper',
|
|
17299
17448
|
width: 810,
|
|
@@ -17344,7 +17493,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17344
17493
|
width: 525,
|
|
17345
17494
|
height: 24
|
|
17346
17495
|
}
|
|
17347
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17496
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17348
17497
|
checked: !dataSource.some(function (item) {
|
|
17349
17498
|
if (item.hidden) return true;
|
|
17350
17499
|
return false;
|
|
@@ -17398,13 +17547,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17398
17547
|
_this2.onChange(e, item.title);
|
|
17399
17548
|
}
|
|
17400
17549
|
}, item.title);
|
|
17401
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17550
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17402
17551
|
style: {
|
|
17403
17552
|
width: '144px'
|
|
17404
17553
|
}
|
|
17405
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17554
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17406
17555
|
className: 'sort_table_column_all_empty'
|
|
17407
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
17556
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
17408
17557
|
className: 'sort_table_column_special'
|
|
17409
17558
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
17410
17559
|
className: 'sort_table_column_all'
|
|
@@ -17878,7 +18027,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17878
18027
|
});
|
|
17879
18028
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17880
18029
|
className: 'sort_table_wrapper'
|
|
17881
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
18030
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
17882
18031
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17883
18032
|
wrapClassName: 'sort_table_wrapper',
|
|
17884
18033
|
width: 820,
|
|
@@ -17923,7 +18072,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17923
18072
|
style: {
|
|
17924
18073
|
width: 525
|
|
17925
18074
|
}
|
|
17926
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
18075
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17927
18076
|
checked: !dataSource.some(function (item) {
|
|
17928
18077
|
if (item.hidden) return true;
|
|
17929
18078
|
return false;
|
|
@@ -17959,11 +18108,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17959
18108
|
_this2.onChange(e, item.name);
|
|
17960
18109
|
}
|
|
17961
18110
|
}, item.label);
|
|
17962
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
18111
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17963
18112
|
style: {
|
|
17964
18113
|
width: '144px'
|
|
17965
18114
|
}
|
|
17966
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
18115
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17967
18116
|
className: 'sort_table_column_all_empty'
|
|
17968
18117
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17969
18118
|
className: 'sort_table_content_wrapper'
|
|
@@ -18062,7 +18211,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18062
18211
|
};
|
|
18063
18212
|
setIsResizing(true);
|
|
18064
18213
|
document.addEventListener('mousemove', handleMouseMove);
|
|
18065
|
-
document.addEventListener('mouseup',
|
|
18214
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
18066
18215
|
};
|
|
18067
18216
|
var handleMouseMove = function handleMouseMove(e) {
|
|
18068
18217
|
e.stopPropagation();
|
|
@@ -18078,9 +18227,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18078
18227
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
18079
18228
|
}
|
|
18080
18229
|
};
|
|
18081
|
-
var
|
|
18230
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
18082
18231
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
18083
|
-
document.removeEventListener('mouseup',
|
|
18232
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
18084
18233
|
setIsResizing(false);
|
|
18085
18234
|
};
|
|
18086
18235
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18491,7 +18640,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18491
18640
|
actionsRender = actionsRender.concat([{
|
|
18492
18641
|
type: 'text',
|
|
18493
18642
|
props: {
|
|
18494
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18643
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18495
18644
|
request: {
|
|
18496
18645
|
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),
|
|
18497
18646
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18737,7 +18886,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18737
18886
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18738
18887
|
bsTableCode: bsTableCode,
|
|
18739
18888
|
onlyModal: true
|
|
18740
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
18889
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
18741
18890
|
ref: exportTableRef,
|
|
18742
18891
|
setShowColumns: setShowExportColumns,
|
|
18743
18892
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18830,11 +18979,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18830
18979
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18831
18980
|
var resultList = [];
|
|
18832
18981
|
var newRouter = cloneDeep(router);
|
|
18833
|
-
var
|
|
18982
|
+
var deep = function deep(router) {
|
|
18834
18983
|
if (router && Array.isArray(router)) {
|
|
18835
18984
|
router.forEach(function (item) {
|
|
18836
18985
|
if (item.children && Array.isArray(item.children)) {
|
|
18837
|
-
|
|
18986
|
+
deep(item.children);
|
|
18838
18987
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18839
18988
|
return d === item.code;
|
|
18840
18989
|
})) {
|
|
@@ -18848,10 +18997,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18848
18997
|
resultList.push(_objectSpread2({}, router));
|
|
18849
18998
|
}
|
|
18850
18999
|
};
|
|
18851
|
-
|
|
19000
|
+
deep(newRouter);
|
|
18852
19001
|
callBack([].concat(resultList));
|
|
18853
19002
|
};
|
|
18854
|
-
var
|
|
19003
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18855
19004
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18856
19005
|
var _loop = function _loop(i) {
|
|
18857
19006
|
if (routesData[i].hideInMenu) {
|
|
@@ -18865,7 +19014,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18865
19014
|
return 0; // continue
|
|
18866
19015
|
}
|
|
18867
19016
|
if (routesData[i].children) {
|
|
18868
|
-
|
|
19017
|
+
setMenuTreeData(routesData[i].children);
|
|
18869
19018
|
}
|
|
18870
19019
|
},
|
|
18871
19020
|
_ret;
|
|
@@ -18886,16 +19035,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18886
19035
|
};
|
|
18887
19036
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18888
19037
|
var routerMap = {};
|
|
18889
|
-
var
|
|
19038
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18890
19039
|
data.forEach(function (menuItem) {
|
|
18891
19040
|
if (menuItem.children) {
|
|
18892
|
-
|
|
19041
|
+
flattenMenuData(menuItem.children);
|
|
18893
19042
|
}
|
|
18894
19043
|
// Reduce memory usage
|
|
18895
19044
|
routerMap[menuItem.path] = menuItem;
|
|
18896
19045
|
});
|
|
18897
19046
|
};
|
|
18898
|
-
|
|
19047
|
+
flattenMenuData(menuData);
|
|
18899
19048
|
return routerMap;
|
|
18900
19049
|
};
|
|
18901
19050
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -19041,7 +19190,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19041
19190
|
sethomepageData(homepageDataList);
|
|
19042
19191
|
setroutesData(routesDataList);
|
|
19043
19192
|
}, []);
|
|
19044
|
-
var
|
|
19193
|
+
var renderChildItem = function renderChildItem(child) {
|
|
19045
19194
|
if (!child.hideInMenu && child.children) {
|
|
19046
19195
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19047
19196
|
style: {
|
|
@@ -19051,7 +19200,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19051
19200
|
}, formatMessage({
|
|
19052
19201
|
id: "".concat(child.locale)
|
|
19053
19202
|
})), child.children.map(function (menuItem) {
|
|
19054
|
-
return
|
|
19203
|
+
return renderChildItem(menuItem);
|
|
19055
19204
|
}));
|
|
19056
19205
|
} else if (!child.hideInMenu && child.path) {
|
|
19057
19206
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19086,7 +19235,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19086
19235
|
className: 'drawerWarp'
|
|
19087
19236
|
}, homepageData && homepageData.filter(function (d) {
|
|
19088
19237
|
return !d.hideInMenu;
|
|
19089
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19238
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
19090
19239
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19091
19240
|
dataSource: homepageData,
|
|
19092
19241
|
renderItem: function renderItem(child) {
|
|
@@ -19121,7 +19270,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19121
19270
|
bordered: true,
|
|
19122
19271
|
dataSource: item.children,
|
|
19123
19272
|
renderItem: function renderItem(child) {
|
|
19124
|
-
return
|
|
19273
|
+
return renderChildItem(child);
|
|
19125
19274
|
}
|
|
19126
19275
|
});
|
|
19127
19276
|
})));
|
|
@@ -19181,7 +19330,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19181
19330
|
src: allfunc
|
|
19182
19331
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
19183
19332
|
className: 'btnSpan2'
|
|
19184
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19333
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19185
19334
|
style: {
|
|
19186
19335
|
left: isDrawer ? 140 : 0,
|
|
19187
19336
|
top: 50
|
|
@@ -19227,7 +19376,7 @@ function outLogin(_x) {
|
|
|
19227
19376
|
return _outLogin.apply(this, arguments);
|
|
19228
19377
|
}
|
|
19229
19378
|
function _outLogin() {
|
|
19230
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19379
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19231
19380
|
var res;
|
|
19232
19381
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19233
19382
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19369,7 +19518,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19369
19518
|
});
|
|
19370
19519
|
};
|
|
19371
19520
|
var loginOut = /*#__PURE__*/function () {
|
|
19372
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19521
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19373
19522
|
var sessionId;
|
|
19374
19523
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19375
19524
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19473,7 +19622,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19473
19622
|
marginRight: '0px'
|
|
19474
19623
|
},
|
|
19475
19624
|
src: './xialajiantou-new.svg'
|
|
19476
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19625
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19477
19626
|
};
|
|
19478
19627
|
|
|
19479
19628
|
// -- 查询店铺 --
|
|
@@ -19481,7 +19630,7 @@ function getStoreByName(_x) {
|
|
|
19481
19630
|
return _getStoreByName.apply(this, arguments);
|
|
19482
19631
|
}
|
|
19483
19632
|
function _getStoreByName() {
|
|
19484
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19633
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19485
19634
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19486
19635
|
while (1) switch (_context.prev = _context.next) {
|
|
19487
19636
|
case 0:
|
|
@@ -19549,7 +19698,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19549
19698
|
return _fetchUserList.apply(this, arguments);
|
|
19550
19699
|
}
|
|
19551
19700
|
function _fetchUserList() {
|
|
19552
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19701
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19553
19702
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19554
19703
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19555
19704
|
case 0:
|
|
@@ -19597,7 +19746,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19597
19746
|
return debounce$1(loadOptions, debounceTimeout);
|
|
19598
19747
|
}, [debounceTimeout, key]);
|
|
19599
19748
|
var changeInput = /*#__PURE__*/function () {
|
|
19600
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19749
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19601
19750
|
var res;
|
|
19602
19751
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19603
19752
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19619,7 +19768,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19619
19768
|
};
|
|
19620
19769
|
}();
|
|
19621
19770
|
useEffect(function () {
|
|
19622
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19771
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19623
19772
|
var res;
|
|
19624
19773
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19625
19774
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19784,7 +19933,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19784
19933
|
var resultList = [];
|
|
19785
19934
|
var newRouter = cloneDeep$1(router);
|
|
19786
19935
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19787
|
-
var
|
|
19936
|
+
var deep = function deep(router) {
|
|
19788
19937
|
if (router && Array.isArray(router)) {
|
|
19789
19938
|
router.forEach(function (item) {
|
|
19790
19939
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19794,7 +19943,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19794
19943
|
d.nameEdit = true;
|
|
19795
19944
|
}
|
|
19796
19945
|
});
|
|
19797
|
-
|
|
19946
|
+
deep(item.routes);
|
|
19798
19947
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19799
19948
|
id: "menu.".concat(item.name)
|
|
19800
19949
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19813,7 +19962,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19813
19962
|
}));
|
|
19814
19963
|
}
|
|
19815
19964
|
};
|
|
19816
|
-
|
|
19965
|
+
deep(newRouter);
|
|
19817
19966
|
setroutesData([].concat(resultList));
|
|
19818
19967
|
};
|
|
19819
19968
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19895,7 +20044,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19895
20044
|
},
|
|
19896
20045
|
title: item.fullPathName
|
|
19897
20046
|
}, renderLineStyl(item.fullPathName));
|
|
19898
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
20047
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19899
20048
|
employeeCode: employeeCode
|
|
19900
20049
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19901
20050
|
};
|
|
@@ -19910,7 +20059,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19910
20059
|
var TreeNode = Tree.TreeNode;
|
|
19911
20060
|
var Search$2 = Input.Search;
|
|
19912
20061
|
var dataList = [];
|
|
19913
|
-
var
|
|
20062
|
+
var generateList = function generateList(data) {
|
|
19914
20063
|
for (var i = 0; i < data.length; i++) {
|
|
19915
20064
|
var node = data[i];
|
|
19916
20065
|
var path = node.path,
|
|
@@ -19920,11 +20069,11 @@ var _generateList = function generateList(data) {
|
|
|
19920
20069
|
name: name
|
|
19921
20070
|
});
|
|
19922
20071
|
if (node.children) {
|
|
19923
|
-
|
|
20072
|
+
generateList(node.children);
|
|
19924
20073
|
}
|
|
19925
20074
|
}
|
|
19926
20075
|
};
|
|
19927
|
-
var
|
|
20076
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19928
20077
|
var parentKey;
|
|
19929
20078
|
for (var i = 0; i < tree.length; i++) {
|
|
19930
20079
|
var node = tree[i];
|
|
@@ -19933,8 +20082,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19933
20082
|
return item.path === path;
|
|
19934
20083
|
})) {
|
|
19935
20084
|
parentKey = node.path;
|
|
19936
|
-
} else if (
|
|
19937
|
-
parentKey =
|
|
20085
|
+
} else if (getParentKey(path, node.children)) {
|
|
20086
|
+
parentKey = getParentKey(path, node.children);
|
|
19938
20087
|
}
|
|
19939
20088
|
}
|
|
19940
20089
|
}
|
|
@@ -19965,7 +20114,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19965
20114
|
var treeData = _this.state.treeData;
|
|
19966
20115
|
var expandedKeys = dataList.map(function (item) {
|
|
19967
20116
|
if (item.name.indexOf(value) > -1) {
|
|
19968
|
-
return
|
|
20117
|
+
return getParentKey(item.path, treeData);
|
|
19969
20118
|
}
|
|
19970
20119
|
return null;
|
|
19971
20120
|
}).filter(function (item, i, self) {
|
|
@@ -19979,22 +20128,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19979
20128
|
};
|
|
19980
20129
|
_this.getPathList = function (originData) {
|
|
19981
20130
|
var pathList = [];
|
|
19982
|
-
var
|
|
20131
|
+
var getList = function getList(data) {
|
|
19983
20132
|
if (Array.isArray(data)) {
|
|
19984
20133
|
data.forEach(function (item) {
|
|
19985
20134
|
pathList.push(item.path);
|
|
19986
20135
|
if (item.children) {
|
|
19987
|
-
|
|
20136
|
+
getList(item.children);
|
|
19988
20137
|
}
|
|
19989
20138
|
});
|
|
19990
20139
|
} else {
|
|
19991
20140
|
pathList.push(data.path);
|
|
19992
20141
|
if (data.children) {
|
|
19993
|
-
|
|
20142
|
+
getList(data.children);
|
|
19994
20143
|
}
|
|
19995
20144
|
}
|
|
19996
20145
|
};
|
|
19997
|
-
|
|
20146
|
+
getList(originData);
|
|
19998
20147
|
return pathList;
|
|
19999
20148
|
};
|
|
20000
20149
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -20003,18 +20152,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20003
20152
|
customerMenuData = _this$props.customerMenuData,
|
|
20004
20153
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
20005
20154
|
var filterItem;
|
|
20006
|
-
var
|
|
20155
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
20007
20156
|
menuData.forEach(function (item) {
|
|
20008
20157
|
if (item.path === path) {
|
|
20009
20158
|
filterItem = _objectSpread2({}, item);
|
|
20010
20159
|
return;
|
|
20011
20160
|
}
|
|
20012
20161
|
if (item.children) {
|
|
20013
|
-
|
|
20162
|
+
filterMenuItem(item.children);
|
|
20014
20163
|
}
|
|
20015
20164
|
});
|
|
20016
20165
|
};
|
|
20017
|
-
|
|
20166
|
+
filterMenuItem(treeData);
|
|
20018
20167
|
var addPathList = _this.getPathList(filterItem);
|
|
20019
20168
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
20020
20169
|
var isRepet = false;
|
|
@@ -20044,8 +20193,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20044
20193
|
return item.path === '/';
|
|
20045
20194
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20046
20195
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20047
|
-
|
|
20048
|
-
|
|
20196
|
+
setMenuTreeData(routesData);
|
|
20197
|
+
generateList(routesData);
|
|
20049
20198
|
this.setState({
|
|
20050
20199
|
treeData: routesData
|
|
20051
20200
|
});
|
|
@@ -20059,16 +20208,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20059
20208
|
expandedKeys = _this$state.expandedKeys,
|
|
20060
20209
|
autoExpandParent = _this$state.autoExpandParent,
|
|
20061
20210
|
treeData = _this$state.treeData;
|
|
20062
|
-
var
|
|
20211
|
+
var loop = function loop(data) {
|
|
20063
20212
|
return data.map(function (item) {
|
|
20064
20213
|
var index = item.name.indexOf(searchValue);
|
|
20065
20214
|
var beforeStr = item.name.substr(0, index);
|
|
20066
20215
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
20067
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
20216
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
20068
20217
|
style: {
|
|
20069
20218
|
color: '#f50'
|
|
20070
20219
|
}
|
|
20071
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
20220
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
20072
20221
|
if (item.children && item.children.length) {
|
|
20073
20222
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
20074
20223
|
path: item.path,
|
|
@@ -20090,7 +20239,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20090
20239
|
width: 18,
|
|
20091
20240
|
src: arrowRight
|
|
20092
20241
|
}))))
|
|
20093
|
-
},
|
|
20242
|
+
}, loop(item.children));
|
|
20094
20243
|
}
|
|
20095
20244
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
20096
20245
|
path: item.path,
|
|
@@ -20140,7 +20289,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20140
20289
|
onExpand: this.onExpand,
|
|
20141
20290
|
expandedKeys: expandedKeys,
|
|
20142
20291
|
autoExpandParent: autoExpandParent
|
|
20143
|
-
},
|
|
20292
|
+
}, loop(treeData))));
|
|
20144
20293
|
}
|
|
20145
20294
|
}]);
|
|
20146
20295
|
}(React$1.Component);
|
|
@@ -20173,24 +20322,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20173
20322
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
20174
20323
|
var dragObj;
|
|
20175
20324
|
var finalDropItem;
|
|
20176
|
-
var
|
|
20325
|
+
var loop = function loop(data, path, callback) {
|
|
20177
20326
|
for (var i = 0; i < data.length; i++) {
|
|
20178
20327
|
if (data[i].path === path) {
|
|
20179
20328
|
return callback(data[i], i, data);
|
|
20180
20329
|
}
|
|
20181
20330
|
if (data[i].children) {
|
|
20182
|
-
|
|
20331
|
+
loop(data[i].children, path, callback);
|
|
20183
20332
|
}
|
|
20184
20333
|
}
|
|
20185
20334
|
};
|
|
20186
20335
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
20187
|
-
|
|
20336
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
20188
20337
|
arr.splice(index, 1);
|
|
20189
20338
|
dragObj = item;
|
|
20190
20339
|
});
|
|
20191
20340
|
if (!info.dropToGap) {
|
|
20192
20341
|
// Drop on the content
|
|
20193
|
-
|
|
20342
|
+
loop(data, dropKey, function (item) {
|
|
20194
20343
|
item.children = item.children || [];
|
|
20195
20344
|
item.children.unshift(dragObj);
|
|
20196
20345
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20201,7 +20350,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20201
20350
|
// Is expanded
|
|
20202
20351
|
dropPosition === 1 // On the bottom gap
|
|
20203
20352
|
) {
|
|
20204
|
-
|
|
20353
|
+
loop(data, dropKey, function (item) {
|
|
20205
20354
|
item.children = item.children || [];
|
|
20206
20355
|
item.children.unshift(dragObj);
|
|
20207
20356
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20209,7 +20358,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20209
20358
|
} else {
|
|
20210
20359
|
var ar;
|
|
20211
20360
|
var i;
|
|
20212
|
-
|
|
20361
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
20213
20362
|
ar = arr;
|
|
20214
20363
|
i = index;
|
|
20215
20364
|
});
|
|
@@ -20248,17 +20397,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20248
20397
|
title: '编辑名称',
|
|
20249
20398
|
callBack: function callBack(newName) {
|
|
20250
20399
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20251
|
-
var
|
|
20400
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
20252
20401
|
oldTreeData.forEach(function (treeItem) {
|
|
20253
20402
|
if (treeItem.path === item.path) {
|
|
20254
20403
|
treeItem.name = newName;
|
|
20255
20404
|
}
|
|
20256
20405
|
if (treeItem.children) {
|
|
20257
|
-
|
|
20406
|
+
editTreeDataName(treeItem.children);
|
|
20258
20407
|
}
|
|
20259
20408
|
});
|
|
20260
20409
|
};
|
|
20261
|
-
|
|
20410
|
+
editTreeDataName(oldTreeData);
|
|
20262
20411
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20263
20412
|
_this.setState({
|
|
20264
20413
|
modalInfo: {
|
|
@@ -20303,7 +20452,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20303
20452
|
title: '新增子目录',
|
|
20304
20453
|
callBack: function callBack(newName) {
|
|
20305
20454
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20306
|
-
var
|
|
20455
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
20307
20456
|
oldTreeData.forEach(function (treeItem) {
|
|
20308
20457
|
if (treeItem.path === item.path) {
|
|
20309
20458
|
treeItem.children ? treeItem.children.push({
|
|
@@ -20315,11 +20464,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20315
20464
|
}];
|
|
20316
20465
|
}
|
|
20317
20466
|
if (treeItem.children) {
|
|
20318
|
-
|
|
20467
|
+
addChildFolder(treeItem.children);
|
|
20319
20468
|
}
|
|
20320
20469
|
});
|
|
20321
20470
|
};
|
|
20322
|
-
|
|
20471
|
+
addChildFolder(oldTreeData);
|
|
20323
20472
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20324
20473
|
_this.setState({
|
|
20325
20474
|
modalInfo: {
|
|
@@ -20378,7 +20527,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20378
20527
|
var _this$state = this.state,
|
|
20379
20528
|
modalInfo = _this$state.modalInfo,
|
|
20380
20529
|
checkedKeys = _this$state.checkedKeys;
|
|
20381
|
-
var
|
|
20530
|
+
var loop = function loop(data) {
|
|
20382
20531
|
return data.map(function (item) {
|
|
20383
20532
|
if (item.children && item.children.length) {
|
|
20384
20533
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -20395,7 +20544,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20395
20544
|
e.stopPropagation();
|
|
20396
20545
|
}
|
|
20397
20546
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
20398
|
-
},
|
|
20547
|
+
}, loop(item.children));
|
|
20399
20548
|
}
|
|
20400
20549
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
20401
20550
|
path: item.path,
|
|
@@ -20474,7 +20623,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20474
20623
|
children: 'children'
|
|
20475
20624
|
},
|
|
20476
20625
|
onDrop: this.onDrop
|
|
20477
|
-
},
|
|
20626
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
20478
20627
|
width: 600,
|
|
20479
20628
|
bodyStyle: {
|
|
20480
20629
|
paddingTop: '32px',
|
|
@@ -20587,7 +20736,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20587
20736
|
pathname: item.path
|
|
20588
20737
|
});
|
|
20589
20738
|
};
|
|
20590
|
-
var
|
|
20739
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
20591
20740
|
return menuData.map(function (item) {
|
|
20592
20741
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20593
20742
|
style: {
|
|
@@ -20602,7 +20751,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20602
20751
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20603
20752
|
paddingLeft: '4px'
|
|
20604
20753
|
}
|
|
20605
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20754
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
20606
20755
|
});
|
|
20607
20756
|
};
|
|
20608
20757
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20628,7 +20777,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20628
20777
|
style: {
|
|
20629
20778
|
paddingLeft: '5px'
|
|
20630
20779
|
}
|
|
20631
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20780
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20632
20781
|
style: {
|
|
20633
20782
|
left: isDrawer ? 140 : 0
|
|
20634
20783
|
},
|
|
@@ -20649,7 +20798,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20649
20798
|
visible: isDrawer
|
|
20650
20799
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
20651
20800
|
className: 'menu_title_line'
|
|
20652
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20801
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
20653
20802
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
20654
20803
|
style: {
|
|
20655
20804
|
fontWeight: '600',
|
|
@@ -20723,7 +20872,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20723
20872
|
return item.path === '/';
|
|
20724
20873
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20725
20874
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20726
|
-
|
|
20875
|
+
setMenuTreeData(routesData);
|
|
20727
20876
|
routesData.forEach(function (item) {
|
|
20728
20877
|
if (item.children) {
|
|
20729
20878
|
routesDataList.push(item);
|
|
@@ -20753,7 +20902,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20753
20902
|
setHeight(clientHeight - 190);
|
|
20754
20903
|
setDrawHeight(clientHeight - 70);
|
|
20755
20904
|
};
|
|
20756
|
-
var
|
|
20905
|
+
var renderChildItem = function renderChildItem(child) {
|
|
20757
20906
|
if (!child.hideInMenu && child.children) {
|
|
20758
20907
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20759
20908
|
style: {
|
|
@@ -20763,7 +20912,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20763
20912
|
}, formatMessage({
|
|
20764
20913
|
id: "".concat(child.locale)
|
|
20765
20914
|
})), child.children.map(function (menuItem) {
|
|
20766
|
-
return
|
|
20915
|
+
return renderChildItem(menuItem);
|
|
20767
20916
|
}));
|
|
20768
20917
|
} else if (!child.hideInMenu && child.path) {
|
|
20769
20918
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20905,7 +21054,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20905
21054
|
onMenuClick(e, item);
|
|
20906
21055
|
}
|
|
20907
21056
|
}, item.name);
|
|
20908
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
21057
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
20909
21058
|
className: 'search_menu_content'
|
|
20910
21059
|
}, SearhData.map(function (item) {
|
|
20911
21060
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20914,7 +21063,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20914
21063
|
},
|
|
20915
21064
|
key: item.path
|
|
20916
21065
|
}, item.name);
|
|
20917
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
21066
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20918
21067
|
style: {
|
|
20919
21068
|
height: "".concat(rightMenuHeight, "px"),
|
|
20920
21069
|
overflowY: 'scroll',
|
|
@@ -20926,7 +21075,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20926
21075
|
className: 'drawerWarp_right'
|
|
20927
21076
|
}, homepageData && homepageData.filter(function (d) {
|
|
20928
21077
|
return !d.hideInMenu;
|
|
20929
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
21078
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
20930
21079
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20931
21080
|
dataSource: homepageData,
|
|
20932
21081
|
renderItem: function renderItem(child) {
|
|
@@ -20967,7 +21116,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20967
21116
|
bordered: true,
|
|
20968
21117
|
dataSource: item.children,
|
|
20969
21118
|
renderItem: function renderItem(child) {
|
|
20970
|
-
return
|
|
21119
|
+
return renderChildItem(child);
|
|
20971
21120
|
}
|
|
20972
21121
|
});
|
|
20973
21122
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -21125,10 +21274,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21125
21274
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
21126
21275
|
var menuKeys = [];
|
|
21127
21276
|
var docsId = [];
|
|
21128
|
-
var
|
|
21277
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
21129
21278
|
data.forEach(function (item) {
|
|
21130
21279
|
if (item.children && item.children.length > 0) {
|
|
21131
|
-
|
|
21280
|
+
getLimitedMenuKeys(item.children);
|
|
21132
21281
|
} else {
|
|
21133
21282
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
21134
21283
|
menuKeys.push(originPath);
|
|
@@ -21139,7 +21288,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21139
21288
|
});
|
|
21140
21289
|
};
|
|
21141
21290
|
try {
|
|
21142
|
-
|
|
21291
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
21143
21292
|
} catch (e) {}
|
|
21144
21293
|
return {
|
|
21145
21294
|
menuKeys: menuKeys,
|
|
@@ -21373,10 +21522,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21373
21522
|
return (node.path || '').includes('all-general-documents');
|
|
21374
21523
|
};
|
|
21375
21524
|
// 递归获取树列表
|
|
21376
|
-
var
|
|
21525
|
+
var getTreeList = function getTreeList(data) {
|
|
21377
21526
|
data.forEach(function (node) {
|
|
21378
21527
|
if (node.routes && node.routes.length > 0) {
|
|
21379
|
-
|
|
21528
|
+
getTreeList(node.routes);
|
|
21380
21529
|
return;
|
|
21381
21530
|
}
|
|
21382
21531
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -21407,7 +21556,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21407
21556
|
}
|
|
21408
21557
|
});
|
|
21409
21558
|
};
|
|
21410
|
-
|
|
21559
|
+
getTreeList(treeData);
|
|
21411
21560
|
return treeList;
|
|
21412
21561
|
};
|
|
21413
21562
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -22036,7 +22185,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22036
22185
|
updateState = _ref8.updateState;
|
|
22037
22186
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
22038
22187
|
className: "tab_title_content"
|
|
22039
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
22188
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
22040
22189
|
info: item,
|
|
22041
22190
|
operateFun: _this3.operateFun,
|
|
22042
22191
|
listenRouterState: listenRouterState
|
|
@@ -22172,7 +22321,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22172
22321
|
};
|
|
22173
22322
|
}
|
|
22174
22323
|
var OperationsSlot = {
|
|
22175
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
22324
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
22176
22325
|
className: 'tab_left_operate'
|
|
22177
22326
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
22178
22327
|
onClick: function onClick() {
|
|
@@ -22188,7 +22337,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22188
22337
|
_this3.setTabNavTransLate(-100);
|
|
22189
22338
|
}
|
|
22190
22339
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
22191
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
22340
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
22192
22341
|
style: {
|
|
22193
22342
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
22194
22343
|
},
|
|
@@ -22286,7 +22435,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22286
22435
|
onMouseLeave: function onMouseLeave() {
|
|
22287
22436
|
_this3.setShowMenu(false);
|
|
22288
22437
|
}
|
|
22289
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
22438
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
22290
22439
|
style: {
|
|
22291
22440
|
position: 'absolute',
|
|
22292
22441
|
top: '14px',
|
|
@@ -22305,7 +22454,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22305
22454
|
postMenuData: function postMenuData(menus) {
|
|
22306
22455
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
22307
22456
|
},
|
|
22308
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
22457
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
22309
22458
|
ref: this.allFunc,
|
|
22310
22459
|
itemPath: itemPath,
|
|
22311
22460
|
handleClose: this.handleClose,
|
|
@@ -22323,7 +22472,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22323
22472
|
},
|
|
22324
22473
|
menu: {
|
|
22325
22474
|
request: function () {
|
|
22326
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22475
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22327
22476
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22328
22477
|
while (1) switch (_context.prev = _context.next) {
|
|
22329
22478
|
case 0:
|
|
@@ -22458,7 +22607,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22458
22607
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22459
22608
|
timeFormat = _this$props4.timeFormat,
|
|
22460
22609
|
transparentProps = _this$props4.transparentProps;
|
|
22461
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (/*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
22610
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? ( /*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
22462
22611
|
getDictionarySource: getDictionarySource,
|
|
22463
22612
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22464
22613
|
timeFormat: timeFormat
|
|
@@ -22482,12 +22631,12 @@ var index$5 = (function (props) {
|
|
|
22482
22631
|
});
|
|
22483
22632
|
|
|
22484
22633
|
// @ts-nocheck
|
|
22485
|
-
var
|
|
22634
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
22486
22635
|
var result = [];
|
|
22487
22636
|
columns.forEach(function (column) {
|
|
22488
22637
|
if (column.children) {
|
|
22489
22638
|
result.push(column);
|
|
22490
|
-
result.push.apply(result,
|
|
22639
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
22491
22640
|
} else {
|
|
22492
22641
|
result.push(column);
|
|
22493
22642
|
}
|
|
@@ -22496,7 +22645,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
22496
22645
|
};
|
|
22497
22646
|
var convertToRows = function convertToRows(originColumns) {
|
|
22498
22647
|
var maxLevel = 1;
|
|
22499
|
-
var
|
|
22648
|
+
var traverse = function traverse(column, parent) {
|
|
22500
22649
|
if (parent) {
|
|
22501
22650
|
column.level = parent.level + 1;
|
|
22502
22651
|
if (maxLevel < column.level) {
|
|
@@ -22506,7 +22655,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22506
22655
|
if (column.children) {
|
|
22507
22656
|
var colSpan = 0;
|
|
22508
22657
|
column.children.forEach(function (subColumn) {
|
|
22509
|
-
|
|
22658
|
+
traverse(subColumn, column);
|
|
22510
22659
|
colSpan += subColumn.colSpan;
|
|
22511
22660
|
});
|
|
22512
22661
|
column.colSpan = colSpan;
|
|
@@ -22516,13 +22665,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22516
22665
|
};
|
|
22517
22666
|
originColumns.forEach(function (column) {
|
|
22518
22667
|
column.level = 1;
|
|
22519
|
-
|
|
22668
|
+
traverse(column);
|
|
22520
22669
|
});
|
|
22521
22670
|
var rows = [];
|
|
22522
22671
|
for (var i = 0; i < maxLevel; i++) {
|
|
22523
22672
|
rows.push([]);
|
|
22524
22673
|
}
|
|
22525
|
-
var allColumns =
|
|
22674
|
+
var allColumns = getAllColumns(originColumns);
|
|
22526
22675
|
allColumns.forEach(function (column) {
|
|
22527
22676
|
if (!column.children) {
|
|
22528
22677
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22562,7 +22711,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22562
22711
|
};
|
|
22563
22712
|
var headersToRows = function headersToRows(originColumns) {
|
|
22564
22713
|
var maxLevel = 1;
|
|
22565
|
-
var
|
|
22714
|
+
var traverse = function traverse(column, parent) {
|
|
22566
22715
|
if (parent) {
|
|
22567
22716
|
//计算当前元素属于第几个层级
|
|
22568
22717
|
column.level = parent.level + 1;
|
|
@@ -22575,7 +22724,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22575
22724
|
var colSpan = 0;
|
|
22576
22725
|
column.children.forEach(function (subColumn) {
|
|
22577
22726
|
//进行递归
|
|
22578
|
-
|
|
22727
|
+
traverse(subColumn, column);
|
|
22579
22728
|
colSpan += subColumn.colSpan;
|
|
22580
22729
|
});
|
|
22581
22730
|
column.colSpan = colSpan;
|
|
@@ -22585,14 +22734,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22585
22734
|
};
|
|
22586
22735
|
originColumns.forEach(function (column) {
|
|
22587
22736
|
column.level = 1;
|
|
22588
|
-
|
|
22737
|
+
traverse(column);
|
|
22589
22738
|
});
|
|
22590
22739
|
var rows = [];
|
|
22591
22740
|
var lastData = [];
|
|
22592
22741
|
for (var i = 0; i < maxLevel; i++) {
|
|
22593
22742
|
rows.push([]);
|
|
22594
22743
|
}
|
|
22595
|
-
var allColumns =
|
|
22744
|
+
var allColumns = getAllColumns(originColumns);
|
|
22596
22745
|
allColumns.forEach(function (column) {
|
|
22597
22746
|
if (!column.children) {
|
|
22598
22747
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28609,7 +28758,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28609
28758
|
}
|
|
28610
28759
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28611
28760
|
};
|
|
28612
|
-
var
|
|
28761
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
28613
28762
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28614
28763
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28615
28764
|
var children = hightLightData.children,
|
|
@@ -28620,7 +28769,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28620
28769
|
lineEnd = _loc2[2];
|
|
28621
28770
|
if (children) {
|
|
28622
28771
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28623
|
-
return
|
|
28772
|
+
return hasHighLightChildren(v, highLightLine);
|
|
28624
28773
|
});
|
|
28625
28774
|
}
|
|
28626
28775
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28632,7 +28781,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28632
28781
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28633
28782
|
data.forEach(function (node) {
|
|
28634
28783
|
if (!node) return;
|
|
28635
|
-
node.toggled =
|
|
28784
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
28636
28785
|
node.active = isHightLight(node, highLightLine);
|
|
28637
28786
|
if (node.children) {
|
|
28638
28787
|
if (node.active) {
|
|
@@ -30063,7 +30212,7 @@ var valueType = {
|
|
|
30063
30212
|
};
|
|
30064
30213
|
|
|
30065
30214
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30066
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
30215
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
30067
30216
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30068
30217
|
while (1) switch (_context.prev = _context.next) {
|
|
30069
30218
|
case 0:
|
|
@@ -30131,7 +30280,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30131
30280
|
value: false
|
|
30132
30281
|
}];
|
|
30133
30282
|
var ref = useRef();
|
|
30134
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30283
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30135
30284
|
var _ref$current, source;
|
|
30136
30285
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30137
30286
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -30245,7 +30394,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30245
30394
|
source: {
|
|
30246
30395
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
30247
30396
|
type: function () {
|
|
30248
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30397
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30249
30398
|
var form, values, name, relates, source;
|
|
30250
30399
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30251
30400
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30725,7 +30874,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30725
30874
|
source: {
|
|
30726
30875
|
relates: ['choiceType', 'inputType'],
|
|
30727
30876
|
type: function () {
|
|
30728
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30877
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30729
30878
|
var values, name, form, source;
|
|
30730
30879
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30731
30880
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30947,7 +31096,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30947
31096
|
width: 900,
|
|
30948
31097
|
maskClosable: false,
|
|
30949
31098
|
onOk: function () {
|
|
30950
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
31099
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30951
31100
|
var _ref$current4, _res$editableStatus;
|
|
30952
31101
|
var res, _res$defaultValue;
|
|
30953
31102
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -31019,7 +31168,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31019
31168
|
}()
|
|
31020
31169
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
31021
31170
|
ref: ref
|
|
31022
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
31171
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
31023
31172
|
};
|
|
31024
31173
|
|
|
31025
31174
|
// @ts-nocheck
|
|
@@ -31633,7 +31782,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31633
31782
|
return setVisible(false);
|
|
31634
31783
|
},
|
|
31635
31784
|
className: 'customFieldsDrawer'
|
|
31636
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
31785
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
31637
31786
|
style: {
|
|
31638
31787
|
display: 'flex'
|
|
31639
31788
|
}
|
|
@@ -31642,13 +31791,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31642
31791
|
flex: 1,
|
|
31643
31792
|
width: 500
|
|
31644
31793
|
}
|
|
31645
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31794
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31646
31795
|
style: {
|
|
31647
31796
|
padding: "10px 0",
|
|
31648
31797
|
fontSize: "16px",
|
|
31649
31798
|
fontWeight: "bolder"
|
|
31650
31799
|
}
|
|
31651
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
31800
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
31652
31801
|
style: {
|
|
31653
31802
|
flex: 1
|
|
31654
31803
|
}
|
|
@@ -31657,7 +31806,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31657
31806
|
onRun: onClickRun,
|
|
31658
31807
|
value: jsonEditorVal,
|
|
31659
31808
|
shallowHeight: height
|
|
31660
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
31809
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
31661
31810
|
defaultActiveKey: activeKey,
|
|
31662
31811
|
onChange: function onChange(v) {
|
|
31663
31812
|
return setActiveKey(v);
|
|
@@ -31674,13 +31823,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31674
31823
|
flex: 1,
|
|
31675
31824
|
width: 500
|
|
31676
31825
|
}
|
|
31677
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31826
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31678
31827
|
style: {
|
|
31679
31828
|
padding: "10px 0",
|
|
31680
31829
|
fontSize: "16px",
|
|
31681
31830
|
fontWeight: "bolder"
|
|
31682
31831
|
}
|
|
31683
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
31832
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
31684
31833
|
style: {
|
|
31685
31834
|
flex: 1
|
|
31686
31835
|
}
|
|
@@ -31702,13 +31851,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31702
31851
|
flex: 1,
|
|
31703
31852
|
width: 500
|
|
31704
31853
|
}
|
|
31705
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31854
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31706
31855
|
style: {
|
|
31707
31856
|
padding: "10px 0",
|
|
31708
31857
|
fontSize: "16px",
|
|
31709
31858
|
fontWeight: "bolder"
|
|
31710
31859
|
}
|
|
31711
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
31860
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
31712
31861
|
style: {
|
|
31713
31862
|
flex: 1
|
|
31714
31863
|
}
|
|
@@ -31854,7 +32003,7 @@ function getMetaData(_x) {
|
|
|
31854
32003
|
|
|
31855
32004
|
// 获取数据
|
|
31856
32005
|
function _getMetaData() {
|
|
31857
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
32006
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31858
32007
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31859
32008
|
while (1) switch (_context.prev = _context.next) {
|
|
31860
32009
|
case 0:
|
|
@@ -32076,7 +32225,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32076
32225
|
tableState = _useState4[0],
|
|
32077
32226
|
setTableState = _useState4[1];
|
|
32078
32227
|
var handleOpen = /*#__PURE__*/function () {
|
|
32079
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32228
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32080
32229
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32081
32230
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32082
32231
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -32395,7 +32544,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32395
32544
|
destroyOnClose: true
|
|
32396
32545
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
32397
32546
|
ref: queryTableRef
|
|
32398
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (/*#__PURE__*/React$1.createElement(Row, {
|
|
32547
|
+
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && ( /*#__PURE__*/React$1.createElement(Row, {
|
|
32399
32548
|
justify: "center",
|
|
32400
32549
|
style: {
|
|
32401
32550
|
marginBottom: 30,
|
|
@@ -32511,7 +32660,7 @@ var CustomSelector = (function (props) {
|
|
|
32511
32660
|
var _props$ctx7;
|
|
32512
32661
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32513
32662
|
}
|
|
32514
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
32663
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
32515
32664
|
type: "primary",
|
|
32516
32665
|
style: {
|
|
32517
32666
|
width: '30px',
|
|
@@ -32597,7 +32746,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32597
32746
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32598
32747
|
handSource = _useState2[0],
|
|
32599
32748
|
setHandSource = _useState2[1];
|
|
32600
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32749
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32601
32750
|
var resData, data;
|
|
32602
32751
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32603
32752
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32749,7 +32898,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32749
32898
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32750
32899
|
}
|
|
32751
32900
|
function _getRegularThresholdRange() {
|
|
32752
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32901
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32753
32902
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32754
32903
|
while (1) switch (_context.prev = _context.next) {
|
|
32755
32904
|
case 0:
|
|
@@ -32903,7 +33052,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32903
33052
|
};
|
|
32904
33053
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32905
33054
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32906
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
33055
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32907
33056
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32908
33057
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32909
33058
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33860,7 +34009,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33860
34009
|
isAll: true,
|
|
33861
34010
|
needNameAndCode: true,
|
|
33862
34011
|
notChangeOnSelect: true,
|
|
33863
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34012
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33864
34013
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33865
34014
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33866
34015
|
case 0:
|
|
@@ -33909,7 +34058,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33909
34058
|
isAll: true,
|
|
33910
34059
|
needNameAndCode: true,
|
|
33911
34060
|
notChangeOnSelect: true,
|
|
33912
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
34061
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33913
34062
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33914
34063
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33915
34064
|
case 0:
|
|
@@ -33960,7 +34109,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33960
34109
|
isAll: true,
|
|
33961
34110
|
needNameAndCode: true,
|
|
33962
34111
|
notChangeOnSelect: true,
|
|
33963
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
34112
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33964
34113
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33965
34114
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33966
34115
|
case 0:
|
|
@@ -35938,7 +36087,7 @@ var App$1 = function App(_ref) {
|
|
|
35938
36087
|
borderRadius: '5px',
|
|
35939
36088
|
cursor: 'pointer'
|
|
35940
36089
|
}
|
|
35941
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
36090
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
35942
36091
|
autoFocus: true,
|
|
35943
36092
|
onClick: function onClick(e) {
|
|
35944
36093
|
return e.stopPropagation();
|
|
@@ -36225,7 +36374,7 @@ function RenderCompItem(props) {
|
|
|
36225
36374
|
dictData = _useState2[0],
|
|
36226
36375
|
setDictData = _useState2[1];
|
|
36227
36376
|
var getDictData = /*#__PURE__*/function () {
|
|
36228
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36377
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36229
36378
|
var _data$map;
|
|
36230
36379
|
var data;
|
|
36231
36380
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -36267,7 +36416,7 @@ function RenderCompItem(props) {
|
|
|
36267
36416
|
var style2 = {
|
|
36268
36417
|
width: '100px'
|
|
36269
36418
|
};
|
|
36270
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React$1.createElement(Input, {
|
|
36419
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && ( /*#__PURE__*/React$1.createElement(Input, {
|
|
36271
36420
|
disabled: disabled,
|
|
36272
36421
|
allowClear: true,
|
|
36273
36422
|
onClear: function onClear() {
|
|
@@ -36278,7 +36427,7 @@ function RenderCompItem(props) {
|
|
|
36278
36427
|
onBlur: function onBlur(e) {
|
|
36279
36428
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
36280
36429
|
}
|
|
36281
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (/*#__PURE__*/React$1.createElement(InputNumber, {
|
|
36430
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && ( /*#__PURE__*/React$1.createElement(InputNumber, {
|
|
36282
36431
|
disabled: disabled,
|
|
36283
36432
|
// max={Number.MAX_SAFE_INTEGER}
|
|
36284
36433
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -36291,7 +36440,7 @@ function RenderCompItem(props) {
|
|
|
36291
36440
|
onChange: function onChange(value) {
|
|
36292
36441
|
handleEdit(ites.code, value);
|
|
36293
36442
|
}
|
|
36294
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (/*#__PURE__*/React$1.createElement(DatePicker, {
|
|
36443
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && ( /*#__PURE__*/React$1.createElement(DatePicker, {
|
|
36295
36444
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
36296
36445
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
36297
36446
|
disabled: disabled,
|
|
@@ -36301,7 +36450,7 @@ function RenderCompItem(props) {
|
|
|
36301
36450
|
onChange: function onChange(value, dateString) {
|
|
36302
36451
|
handleEdit(ites.code, dateString);
|
|
36303
36452
|
}
|
|
36304
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React$1.createElement(RangePicker$1, {
|
|
36453
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React$1.createElement(RangePicker$1, {
|
|
36305
36454
|
showTime: true,
|
|
36306
36455
|
disabled: disabled,
|
|
36307
36456
|
defaultValue: ites.defaultValue,
|
|
@@ -36310,7 +36459,7 @@ function RenderCompItem(props) {
|
|
|
36310
36459
|
onChange: function onChange(value, timeString) {
|
|
36311
36460
|
handleEdit(ites.code, timeString);
|
|
36312
36461
|
}
|
|
36313
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React$1.createElement(Switch, {
|
|
36462
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React$1.createElement(Switch, {
|
|
36314
36463
|
disabled: disabled,
|
|
36315
36464
|
defaultChecked: !!ites.defaultValue,
|
|
36316
36465
|
style: style2,
|
|
@@ -36318,7 +36467,7 @@ function RenderCompItem(props) {
|
|
|
36318
36467
|
onChange: function onChange(value) {
|
|
36319
36468
|
handleEdit(ites.code, value);
|
|
36320
36469
|
}
|
|
36321
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
36470
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && ( /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
36322
36471
|
disabled: disabled,
|
|
36323
36472
|
allowClear: true,
|
|
36324
36473
|
showArrow: true
|
|
@@ -36336,7 +36485,7 @@ function RenderCompItem(props) {
|
|
|
36336
36485
|
key: it,
|
|
36337
36486
|
value: it
|
|
36338
36487
|
}, ites.enumeration[it]);
|
|
36339
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
36488
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && ( /*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
36340
36489
|
disabled: disabled,
|
|
36341
36490
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
36342
36491
|
defaultValue: ites.defaultValue,
|
|
@@ -36346,7 +36495,7 @@ function RenderCompItem(props) {
|
|
|
36346
36495
|
handleEdit(ites.code, value);
|
|
36347
36496
|
},
|
|
36348
36497
|
dictionaryCode: ites.dictionaryCode
|
|
36349
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36498
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36350
36499
|
selectBusinessType: "physicalWarehouse",
|
|
36351
36500
|
selectProps: _objectSpread2({
|
|
36352
36501
|
style: styleCommon,
|
|
@@ -36368,7 +36517,7 @@ function RenderCompItem(props) {
|
|
|
36368
36517
|
getPopupContainer: function getPopupContainer() {
|
|
36369
36518
|
return document.body;
|
|
36370
36519
|
}
|
|
36371
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36520
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36372
36521
|
selectBusinessType: "realWarehouse",
|
|
36373
36522
|
selectProps: _objectSpread2({
|
|
36374
36523
|
style: styleCommon,
|
|
@@ -36390,7 +36539,7 @@ function RenderCompItem(props) {
|
|
|
36390
36539
|
getPopupContainer: function getPopupContainer() {
|
|
36391
36540
|
return document.body;
|
|
36392
36541
|
}
|
|
36393
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36542
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36394
36543
|
selectBusinessType: "virtualWarehouse",
|
|
36395
36544
|
selectProps: _objectSpread2({
|
|
36396
36545
|
style: styleCommon,
|
|
@@ -36412,7 +36561,7 @@ function RenderCompItem(props) {
|
|
|
36412
36561
|
getPopupContainer: function getPopupContainer() {
|
|
36413
36562
|
return document.body;
|
|
36414
36563
|
}
|
|
36415
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36564
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36416
36565
|
selectBusinessType: "channelWarehouse",
|
|
36417
36566
|
selectProps: _objectSpread2({
|
|
36418
36567
|
style: styleCommon,
|
|
@@ -36434,7 +36583,7 @@ function RenderCompItem(props) {
|
|
|
36434
36583
|
getPopupContainer: function getPopupContainer() {
|
|
36435
36584
|
return document.body;
|
|
36436
36585
|
}
|
|
36437
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36586
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36438
36587
|
selectBusinessType: "spuCommodity",
|
|
36439
36588
|
selectProps: _objectSpread2({
|
|
36440
36589
|
style: styleCommon,
|
|
@@ -36455,7 +36604,7 @@ function RenderCompItem(props) {
|
|
|
36455
36604
|
getPopupContainer: function getPopupContainer() {
|
|
36456
36605
|
return document.body;
|
|
36457
36606
|
}
|
|
36458
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36607
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36459
36608
|
selectBusinessType: "skuCommodity",
|
|
36460
36609
|
selectProps: _objectSpread2({
|
|
36461
36610
|
style: styleCommon,
|
|
@@ -36476,13 +36625,13 @@ function RenderCompItem(props) {
|
|
|
36476
36625
|
getPopupContainer: function getPopupContainer() {
|
|
36477
36626
|
return document.body;
|
|
36478
36627
|
}
|
|
36479
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React$1.createElement(BsCascader, {
|
|
36628
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && ( /*#__PURE__*/React$1.createElement(BsCascader, {
|
|
36480
36629
|
disabled: disabled,
|
|
36481
36630
|
isAll: true,
|
|
36482
36631
|
needNameAndCode: true,
|
|
36483
36632
|
notChangeOnSelect: true,
|
|
36484
36633
|
initRequestSource: function () {
|
|
36485
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36634
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36486
36635
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36487
36636
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36488
36637
|
case 0:
|
|
@@ -36524,7 +36673,7 @@ function RenderCompItem(props) {
|
|
|
36524
36673
|
getPopupContainer: function getPopupContainer() {
|
|
36525
36674
|
return document.body;
|
|
36526
36675
|
}
|
|
36527
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36676
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36528
36677
|
disabled: disabled,
|
|
36529
36678
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36530
36679
|
businessType: "department",
|
|
@@ -36537,7 +36686,7 @@ function RenderCompItem(props) {
|
|
|
36537
36686
|
getPopupContainer: function getPopupContainer() {
|
|
36538
36687
|
return document.body;
|
|
36539
36688
|
}
|
|
36540
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36689
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36541
36690
|
disabled: disabled,
|
|
36542
36691
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36543
36692
|
businessType: "purchase-organization",
|
|
@@ -36550,7 +36699,7 @@ function RenderCompItem(props) {
|
|
|
36550
36699
|
getPopupContainer: function getPopupContainer() {
|
|
36551
36700
|
return document.body;
|
|
36552
36701
|
}
|
|
36553
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36702
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36554
36703
|
disabled: disabled,
|
|
36555
36704
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36556
36705
|
businessType: "sales-organization",
|
|
@@ -36563,7 +36712,7 @@ function RenderCompItem(props) {
|
|
|
36563
36712
|
getPopupContainer: function getPopupContainer() {
|
|
36564
36713
|
return document.body;
|
|
36565
36714
|
}
|
|
36566
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36715
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36567
36716
|
selectBusinessType: "supplier2",
|
|
36568
36717
|
selectProps: _objectSpread2({
|
|
36569
36718
|
style: styleCommon,
|
|
@@ -36584,7 +36733,7 @@ function RenderCompItem(props) {
|
|
|
36584
36733
|
getPopupContainer: function getPopupContainer() {
|
|
36585
36734
|
return document.body;
|
|
36586
36735
|
}
|
|
36587
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36736
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36588
36737
|
selectBusinessType: "customer2",
|
|
36589
36738
|
selectProps: _objectSpread2({
|
|
36590
36739
|
style: styleCommon,
|
|
@@ -36605,7 +36754,7 @@ function RenderCompItem(props) {
|
|
|
36605
36754
|
getPopupContainer: function getPopupContainer() {
|
|
36606
36755
|
return document.body;
|
|
36607
36756
|
}
|
|
36608
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36757
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36609
36758
|
selectBusinessType: "shopFile2",
|
|
36610
36759
|
selectProps: _objectSpread2({
|
|
36611
36760
|
style: styleCommon,
|
|
@@ -36626,7 +36775,7 @@ function RenderCompItem(props) {
|
|
|
36626
36775
|
getPopupContainer: function getPopupContainer() {
|
|
36627
36776
|
return document.body;
|
|
36628
36777
|
}
|
|
36629
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36778
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36630
36779
|
selectBusinessType: "employee2",
|
|
36631
36780
|
selectProps: _objectSpread2({
|
|
36632
36781
|
style: styleCommon,
|
|
@@ -36647,7 +36796,7 @@ function RenderCompItem(props) {
|
|
|
36647
36796
|
getPopupContainer: function getPopupContainer() {
|
|
36648
36797
|
return document.body;
|
|
36649
36798
|
}
|
|
36650
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36799
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36651
36800
|
disabled: disabled,
|
|
36652
36801
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36653
36802
|
businessType: "stock-organization",
|
|
@@ -36660,7 +36809,7 @@ function RenderCompItem(props) {
|
|
|
36660
36809
|
getPopupContainer: function getPopupContainer() {
|
|
36661
36810
|
return document.body;
|
|
36662
36811
|
}
|
|
36663
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36812
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36664
36813
|
disabled: disabled,
|
|
36665
36814
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36666
36815
|
businessType: "settle-organization",
|
|
@@ -36673,7 +36822,7 @@ function RenderCompItem(props) {
|
|
|
36673
36822
|
getPopupContainer: function getPopupContainer() {
|
|
36674
36823
|
return document.body;
|
|
36675
36824
|
}
|
|
36676
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36825
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36677
36826
|
selectBusinessType: "deliveryMode",
|
|
36678
36827
|
selectProps: _objectSpread2({
|
|
36679
36828
|
style: styleCommon,
|
|
@@ -36694,7 +36843,7 @@ function RenderCompItem(props) {
|
|
|
36694
36843
|
getPopupContainer: function getPopupContainer() {
|
|
36695
36844
|
return document.body;
|
|
36696
36845
|
}
|
|
36697
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36846
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36698
36847
|
selectBusinessType: "role",
|
|
36699
36848
|
selectProps: _objectSpread2({
|
|
36700
36849
|
style: styleCommon,
|
|
@@ -36715,7 +36864,7 @@ function RenderCompItem(props) {
|
|
|
36715
36864
|
getPopupContainer: function getPopupContainer() {
|
|
36716
36865
|
return document.body;
|
|
36717
36866
|
}
|
|
36718
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36867
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36719
36868
|
selectBusinessType: "brand",
|
|
36720
36869
|
selectProps: _objectSpread2({
|
|
36721
36870
|
style: styleCommon,
|
|
@@ -36736,7 +36885,7 @@ function RenderCompItem(props) {
|
|
|
36736
36885
|
getPopupContainer: function getPopupContainer() {
|
|
36737
36886
|
return document.body;
|
|
36738
36887
|
}
|
|
36739
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36888
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36740
36889
|
disabled: disabled,
|
|
36741
36890
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36742
36891
|
businessType: "background-category",
|
|
@@ -36749,7 +36898,7 @@ function RenderCompItem(props) {
|
|
|
36749
36898
|
getPopupContainer: function getPopupContainer() {
|
|
36750
36899
|
return document.body;
|
|
36751
36900
|
}
|
|
36752
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
36901
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && ( /*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
36753
36902
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36754
36903
|
style: styleCommon,
|
|
36755
36904
|
placeholder: '请选择'
|
|
@@ -36772,7 +36921,7 @@ function RenderCompItem(props) {
|
|
|
36772
36921
|
onChange: function onChange(value) {
|
|
36773
36922
|
handleEdit(ites.code, value);
|
|
36774
36923
|
}
|
|
36775
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36924
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
36776
36925
|
style: {
|
|
36777
36926
|
display: 'flex'
|
|
36778
36927
|
}
|
|
@@ -37285,7 +37434,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37285
37434
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
37286
37435
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
37287
37436
|
}
|
|
37288
|
-
var parallelTreeData =
|
|
37437
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
37289
37438
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
37290
37439
|
var _i$key;
|
|
37291
37440
|
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);
|
|
@@ -38254,13 +38403,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
38254
38403
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
38255
38404
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
38256
38405
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
38257
|
-
var list =
|
|
38406
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
38258
38407
|
var requiredList = list.filter(function (c) {
|
|
38259
38408
|
return c.required == 1;
|
|
38260
38409
|
}) || []; // 获取对象属性为true的集合
|
|
38261
38410
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
38262
38411
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
38263
|
-
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) ?
|
|
38412
|
+
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];
|
|
38264
38413
|
(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) {
|
|
38265
38414
|
if (requiredList.some(function (r) {
|
|
38266
38415
|
return r.id === e.elementId;
|
|
@@ -38849,7 +38998,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38849
38998
|
style: {
|
|
38850
38999
|
float: 'right'
|
|
38851
39000
|
}
|
|
38852
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
39001
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38853
39002
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38854
39003
|
ruleGroupInfo: {
|
|
38855
39004
|
ruleGroupList: ruleGroupList,
|
|
@@ -38867,7 +39016,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38867
39016
|
callBack: function callBack(newData) {
|
|
38868
39017
|
upDateData(newData);
|
|
38869
39018
|
}
|
|
38870
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
39019
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
38871
39020
|
style: {
|
|
38872
39021
|
padding: 20
|
|
38873
39022
|
}
|
|
@@ -39242,4 +39391,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
39242
39391
|
}, children));
|
|
39243
39392
|
};
|
|
39244
39393
|
|
|
39245
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy,
|
|
39394
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|