@bit-sun/business-component 4.0.12-alpha.23 → 4.0.12-alpha.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +458 -413
- package/dist/index.js +459 -414
- package/package.json +1 -1
- package/src/components/Business/PropertyModal/index.tsx +15 -10
package/dist/index.esm.js
CHANGED
|
@@ -31,88 +31,9 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
31
31
|
import { visit } from 'ast-types';
|
|
32
32
|
import isArray$1 from 'lodash/isArray';
|
|
33
33
|
|
|
34
|
-
function _arrayLikeToArray(r, a) {
|
|
35
|
-
(null == a || a > r.length) && (a = r.length);
|
|
36
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
37
|
-
return n;
|
|
38
|
-
}
|
|
39
|
-
function _arrayWithHoles(r) {
|
|
40
|
-
if (Array.isArray(r)) return r;
|
|
41
|
-
}
|
|
42
|
-
function _arrayWithoutHoles(r) {
|
|
43
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
44
|
-
}
|
|
45
|
-
function _assertThisInitialized(e) {
|
|
46
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
47
|
-
return e;
|
|
48
|
-
}
|
|
49
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
50
|
-
try {
|
|
51
|
-
var i = n[a](c),
|
|
52
|
-
u = i.value;
|
|
53
|
-
} catch (n) {
|
|
54
|
-
return void e(n);
|
|
55
|
-
}
|
|
56
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
57
|
-
}
|
|
58
|
-
function _asyncToGenerator(n) {
|
|
59
|
-
return function () {
|
|
60
|
-
var t = this,
|
|
61
|
-
e = arguments;
|
|
62
|
-
return new Promise(function (r, o) {
|
|
63
|
-
var a = n.apply(t, e);
|
|
64
|
-
function _next(n) {
|
|
65
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
66
|
-
}
|
|
67
|
-
function _throw(n) {
|
|
68
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
69
|
-
}
|
|
70
|
-
_next(void 0);
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
34
|
function _callSuper(t, o, e) {
|
|
75
35
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
76
36
|
}
|
|
77
|
-
function _classCallCheck(a, n) {
|
|
78
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
79
|
-
}
|
|
80
|
-
function _defineProperties(e, r) {
|
|
81
|
-
for (var t = 0; t < r.length; t++) {
|
|
82
|
-
var o = r[t];
|
|
83
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function _createClass(e, r, t) {
|
|
87
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
88
|
-
writable: !1
|
|
89
|
-
}), e;
|
|
90
|
-
}
|
|
91
|
-
function _defineProperty(e, r, t) {
|
|
92
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
93
|
-
value: t,
|
|
94
|
-
enumerable: !0,
|
|
95
|
-
configurable: !0,
|
|
96
|
-
writable: !0
|
|
97
|
-
}) : e[r] = t, e;
|
|
98
|
-
}
|
|
99
|
-
function _getPrototypeOf(t) {
|
|
100
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
101
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
102
|
-
}, _getPrototypeOf(t);
|
|
103
|
-
}
|
|
104
|
-
function _inherits(t, e) {
|
|
105
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
106
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
107
|
-
constructor: {
|
|
108
|
-
value: t,
|
|
109
|
-
writable: !0,
|
|
110
|
-
configurable: !0
|
|
111
|
-
}
|
|
112
|
-
}), Object.defineProperty(t, "prototype", {
|
|
113
|
-
writable: !1
|
|
114
|
-
}), e && _setPrototypeOf(t, e);
|
|
115
|
-
}
|
|
116
37
|
function _isNativeReflectConstruct() {
|
|
117
38
|
try {
|
|
118
39
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -121,9 +42,6 @@ function _isNativeReflectConstruct() {
|
|
|
121
42
|
return !!t;
|
|
122
43
|
})();
|
|
123
44
|
}
|
|
124
|
-
function _iterableToArray(r) {
|
|
125
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
126
|
-
}
|
|
127
45
|
function _iterableToArrayLimit(r, l) {
|
|
128
46
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
129
47
|
if (null != t) {
|
|
@@ -151,15 +69,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
151
69
|
return a;
|
|
152
70
|
}
|
|
153
71
|
}
|
|
154
|
-
function _nonIterableRest() {
|
|
155
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
156
|
-
}
|
|
157
|
-
function _nonIterableSpread() {
|
|
158
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
159
|
-
}
|
|
160
|
-
function _objectDestructuringEmpty(t) {
|
|
161
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
162
|
-
}
|
|
163
72
|
function ownKeys(e, r) {
|
|
164
73
|
var t = Object.keys(e);
|
|
165
74
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -181,31 +90,6 @@ function _objectSpread2(e) {
|
|
|
181
90
|
}
|
|
182
91
|
return e;
|
|
183
92
|
}
|
|
184
|
-
function _objectWithoutProperties(e, t) {
|
|
185
|
-
if (null == e) return {};
|
|
186
|
-
var o,
|
|
187
|
-
r,
|
|
188
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
189
|
-
if (Object.getOwnPropertySymbols) {
|
|
190
|
-
var s = Object.getOwnPropertySymbols(e);
|
|
191
|
-
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
192
|
-
}
|
|
193
|
-
return i;
|
|
194
|
-
}
|
|
195
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
196
|
-
if (null == r) return {};
|
|
197
|
-
var t = {};
|
|
198
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
199
|
-
if (e.includes(n)) continue;
|
|
200
|
-
t[n] = r[n];
|
|
201
|
-
}
|
|
202
|
-
return t;
|
|
203
|
-
}
|
|
204
|
-
function _possibleConstructorReturn(t, e) {
|
|
205
|
-
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
206
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
207
|
-
return _assertThisInitialized(t);
|
|
208
|
-
}
|
|
209
93
|
function _regeneratorRuntime() {
|
|
210
94
|
_regeneratorRuntime = function () {
|
|
211
95
|
return e;
|
|
@@ -507,20 +391,6 @@ function _regeneratorRuntime() {
|
|
|
507
391
|
}
|
|
508
392
|
}, e;
|
|
509
393
|
}
|
|
510
|
-
function _setPrototypeOf(t, e) {
|
|
511
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
512
|
-
return t.__proto__ = e, t;
|
|
513
|
-
}, _setPrototypeOf(t, e);
|
|
514
|
-
}
|
|
515
|
-
function _slicedToArray(r, e) {
|
|
516
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
517
|
-
}
|
|
518
|
-
function _toArray(r) {
|
|
519
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
520
|
-
}
|
|
521
|
-
function _toConsumableArray(r) {
|
|
522
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
523
|
-
}
|
|
524
394
|
function _toPrimitive(t, r) {
|
|
525
395
|
if ("object" != typeof t || !t) return t;
|
|
526
396
|
var e = t[Symbol.toPrimitive];
|
|
@@ -544,12 +414,180 @@ function _typeof(o) {
|
|
|
544
414
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
545
415
|
}, _typeof(o);
|
|
546
416
|
}
|
|
547
|
-
function
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
var
|
|
551
|
-
|
|
417
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
418
|
+
try {
|
|
419
|
+
var info = gen[key](arg);
|
|
420
|
+
var value = info.value;
|
|
421
|
+
} catch (error) {
|
|
422
|
+
reject(error);
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
if (info.done) {
|
|
426
|
+
resolve(value);
|
|
427
|
+
} else {
|
|
428
|
+
Promise.resolve(value).then(_next, _throw);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
function _asyncToGenerator(fn) {
|
|
432
|
+
return function () {
|
|
433
|
+
var self = this,
|
|
434
|
+
args = arguments;
|
|
435
|
+
return new Promise(function (resolve, reject) {
|
|
436
|
+
var gen = fn.apply(self, args);
|
|
437
|
+
function _next(value) {
|
|
438
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
439
|
+
}
|
|
440
|
+
function _throw(err) {
|
|
441
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
442
|
+
}
|
|
443
|
+
_next(undefined);
|
|
444
|
+
});
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
function _classCallCheck(instance, Constructor) {
|
|
448
|
+
if (!(instance instanceof Constructor)) {
|
|
449
|
+
throw new TypeError("Cannot call a class as a function");
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
function _defineProperties(target, props) {
|
|
453
|
+
for (var i = 0; i < props.length; i++) {
|
|
454
|
+
var descriptor = props[i];
|
|
455
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
456
|
+
descriptor.configurable = true;
|
|
457
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
458
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
462
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
463
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
464
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
465
|
+
writable: false
|
|
466
|
+
});
|
|
467
|
+
return Constructor;
|
|
468
|
+
}
|
|
469
|
+
function _defineProperty(obj, key, value) {
|
|
470
|
+
key = _toPropertyKey(key);
|
|
471
|
+
if (key in obj) {
|
|
472
|
+
Object.defineProperty(obj, key, {
|
|
473
|
+
value: value,
|
|
474
|
+
enumerable: true,
|
|
475
|
+
configurable: true,
|
|
476
|
+
writable: true
|
|
477
|
+
});
|
|
478
|
+
} else {
|
|
479
|
+
obj[key] = value;
|
|
480
|
+
}
|
|
481
|
+
return obj;
|
|
482
|
+
}
|
|
483
|
+
function _inherits(subClass, superClass) {
|
|
484
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
485
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
486
|
+
}
|
|
487
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
488
|
+
constructor: {
|
|
489
|
+
value: subClass,
|
|
490
|
+
writable: true,
|
|
491
|
+
configurable: true
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
Object.defineProperty(subClass, "prototype", {
|
|
495
|
+
writable: false
|
|
496
|
+
});
|
|
497
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
498
|
+
}
|
|
499
|
+
function _getPrototypeOf(o) {
|
|
500
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
501
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
502
|
+
};
|
|
503
|
+
return _getPrototypeOf(o);
|
|
504
|
+
}
|
|
505
|
+
function _setPrototypeOf(o, p) {
|
|
506
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
507
|
+
o.__proto__ = p;
|
|
508
|
+
return o;
|
|
509
|
+
};
|
|
510
|
+
return _setPrototypeOf(o, p);
|
|
511
|
+
}
|
|
512
|
+
function _objectDestructuringEmpty(obj) {
|
|
513
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
514
|
+
}
|
|
515
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
516
|
+
if (source == null) return {};
|
|
517
|
+
var target = {};
|
|
518
|
+
for (var key in source) {
|
|
519
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
520
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
521
|
+
target[key] = source[key];
|
|
522
|
+
}
|
|
552
523
|
}
|
|
524
|
+
return target;
|
|
525
|
+
}
|
|
526
|
+
function _objectWithoutProperties(source, excluded) {
|
|
527
|
+
if (source == null) return {};
|
|
528
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
529
|
+
var key, i;
|
|
530
|
+
if (Object.getOwnPropertySymbols) {
|
|
531
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
532
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
533
|
+
key = sourceSymbolKeys[i];
|
|
534
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
535
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
536
|
+
target[key] = source[key];
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
return target;
|
|
540
|
+
}
|
|
541
|
+
function _assertThisInitialized(self) {
|
|
542
|
+
if (self === void 0) {
|
|
543
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
544
|
+
}
|
|
545
|
+
return self;
|
|
546
|
+
}
|
|
547
|
+
function _possibleConstructorReturn(self, call) {
|
|
548
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
549
|
+
return call;
|
|
550
|
+
} else if (call !== void 0) {
|
|
551
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
552
|
+
}
|
|
553
|
+
return _assertThisInitialized(self);
|
|
554
|
+
}
|
|
555
|
+
function _slicedToArray(arr, i) {
|
|
556
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
557
|
+
}
|
|
558
|
+
function _toArray(arr) {
|
|
559
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
560
|
+
}
|
|
561
|
+
function _toConsumableArray(arr) {
|
|
562
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
563
|
+
}
|
|
564
|
+
function _arrayWithoutHoles(arr) {
|
|
565
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
566
|
+
}
|
|
567
|
+
function _arrayWithHoles(arr) {
|
|
568
|
+
if (Array.isArray(arr)) return arr;
|
|
569
|
+
}
|
|
570
|
+
function _iterableToArray(iter) {
|
|
571
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
572
|
+
}
|
|
573
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
574
|
+
if (!o) return;
|
|
575
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
576
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
577
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
578
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
579
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
580
|
+
}
|
|
581
|
+
function _arrayLikeToArray(arr, len) {
|
|
582
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
583
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
584
|
+
return arr2;
|
|
585
|
+
}
|
|
586
|
+
function _nonIterableSpread() {
|
|
587
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
588
|
+
}
|
|
589
|
+
function _nonIterableRest() {
|
|
590
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
553
591
|
}
|
|
554
592
|
|
|
555
593
|
var ENUM = {
|
|
@@ -1059,13 +1097,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1059
1097
|
imgHtml.innerHTML = str;
|
|
1060
1098
|
}
|
|
1061
1099
|
// 测试使用 测试类型缩小 end
|
|
1062
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1100
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1063
1101
|
className: "clomnsImg"
|
|
1064
1102
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1065
1103
|
src: url,
|
|
1066
1104
|
width: "16px",
|
|
1067
1105
|
height: "16px"
|
|
1068
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1106
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
1069
1107
|
className: "clomnsImg2"
|
|
1070
1108
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1071
1109
|
src: noImg
|
|
@@ -1204,7 +1242,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1204
1242
|
}
|
|
1205
1243
|
save_link.click();
|
|
1206
1244
|
}
|
|
1207
|
-
var
|
|
1245
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1208
1246
|
return data.map(function (item) {
|
|
1209
1247
|
if (!item.name || !item.path) {
|
|
1210
1248
|
return null;
|
|
@@ -1224,7 +1262,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1224
1262
|
authority: item.authority || parentAuthority
|
|
1225
1263
|
});
|
|
1226
1264
|
if (item.routes) {
|
|
1227
|
-
var children =
|
|
1265
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1228
1266
|
// Reduce memory usage
|
|
1229
1267
|
result.children = children;
|
|
1230
1268
|
}
|
|
@@ -1234,7 +1272,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1234
1272
|
return item;
|
|
1235
1273
|
});
|
|
1236
1274
|
};
|
|
1237
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1275
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual);
|
|
1238
1276
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1239
1277
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1240
1278
|
if (backHistoryPath) {
|
|
@@ -1543,7 +1581,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1543
1581
|
// sheepMap是表头字段中英文映射
|
|
1544
1582
|
// sheetCount:表的数量,默认一张
|
|
1545
1583
|
var resolveFile = /*#__PURE__*/function () {
|
|
1546
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1584
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1547
1585
|
var config,
|
|
1548
1586
|
data,
|
|
1549
1587
|
_args = arguments;
|
|
@@ -1582,7 +1620,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1582
1620
|
}();
|
|
1583
1621
|
//读取文件
|
|
1584
1622
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1585
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1623
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1586
1624
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1587
1625
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1588
1626
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1675,14 +1713,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1675
1713
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1676
1714
|
|
|
1677
1715
|
// 获取树平行结构
|
|
1678
|
-
var
|
|
1716
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1679
1717
|
var childrenKey = chilKey || 'children';
|
|
1680
1718
|
treeData.forEach(function (el) {
|
|
1681
1719
|
var _el$childrenKey;
|
|
1682
1720
|
result.push(el);
|
|
1683
1721
|
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) {
|
|
1684
1722
|
// 子级递归
|
|
1685
|
-
|
|
1723
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1686
1724
|
}
|
|
1687
1725
|
});
|
|
1688
1726
|
return result;
|
|
@@ -1959,13 +1997,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1959
1997
|
imgHtml.innerHTML = str;
|
|
1960
1998
|
}
|
|
1961
1999
|
// 测试使用 测试类型缩小 end
|
|
1962
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
2000
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1963
2001
|
className: "clomnsImg"
|
|
1964
2002
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1965
2003
|
src: url,
|
|
1966
2004
|
width: "16px",
|
|
1967
2005
|
height: "16px"
|
|
1968
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2006
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1969
2007
|
src: noImg
|
|
1970
2008
|
}))));
|
|
1971
2009
|
};
|
|
@@ -2027,7 +2065,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2027
2065
|
}
|
|
2028
2066
|
});
|
|
2029
2067
|
};
|
|
2030
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2068
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && ( /*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2031
2069
|
disabled: disabled,
|
|
2032
2070
|
onChange: function onChange(e) {
|
|
2033
2071
|
var v = e.target.value;
|
|
@@ -2037,7 +2075,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2037
2075
|
width: 170
|
|
2038
2076
|
},
|
|
2039
2077
|
value: inputValue
|
|
2040
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2078
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2041
2079
|
disabled: disabled,
|
|
2042
2080
|
onBlur: function onBlur(e) {
|
|
2043
2081
|
var v = parseFloat(e.target.value);
|
|
@@ -2416,16 +2454,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2416
2454
|
var handleExportBarCode = handleExport;
|
|
2417
2455
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2418
2456
|
var routerMap = {};
|
|
2419
|
-
var
|
|
2457
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2420
2458
|
data.forEach(function (menuItem) {
|
|
2421
2459
|
if (menuItem.children) {
|
|
2422
|
-
|
|
2460
|
+
flattenMenuData(menuItem.children);
|
|
2423
2461
|
}
|
|
2424
2462
|
// Reduce memory usage
|
|
2425
2463
|
routerMap[menuItem.path] = menuItem;
|
|
2426
2464
|
});
|
|
2427
2465
|
};
|
|
2428
|
-
|
|
2466
|
+
flattenMenuData(menuData);
|
|
2429
2467
|
return routerMap;
|
|
2430
2468
|
};
|
|
2431
2469
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2568,7 +2606,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2568
2606
|
return request$1(url, parms).then(handleResponseData);
|
|
2569
2607
|
};
|
|
2570
2608
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2571
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2609
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2572
2610
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2573
2611
|
while (1) switch (_context.prev = _context.next) {
|
|
2574
2612
|
case 0:
|
|
@@ -3242,7 +3280,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3242
3280
|
placement: "bottomLeft"
|
|
3243
3281
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3244
3282
|
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"))
|
|
3245
|
-
}, /*#__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, {
|
|
3283
|
+
}, /*#__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, {
|
|
3246
3284
|
trigger: ['click'],
|
|
3247
3285
|
overlay: this.menuList,
|
|
3248
3286
|
placement: "bottomRight"
|
|
@@ -3917,7 +3955,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3917
3955
|
placement: "bottomLeft"
|
|
3918
3956
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3919
3957
|
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"))
|
|
3920
|
-
}, /*#__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, {
|
|
3958
|
+
}, /*#__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, {
|
|
3921
3959
|
trigger: ['click'],
|
|
3922
3960
|
overlay: this.menuList,
|
|
3923
3961
|
placement: "bottomRight"
|
|
@@ -4316,7 +4354,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4316
4354
|
title: item.name,
|
|
4317
4355
|
className: "propertyGroup_checkbox_container"
|
|
4318
4356
|
}, item.name));
|
|
4319
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
4357
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
4320
4358
|
style: {
|
|
4321
4359
|
width: '50px',
|
|
4322
4360
|
cursor: 'pointer',
|
|
@@ -4329,7 +4367,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4329
4367
|
setShowNotCommon(!showNotCommon);
|
|
4330
4368
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4331
4369
|
}
|
|
4332
|
-
}, 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"))))));
|
|
4370
|
+
}, 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"))))));
|
|
4333
4371
|
};
|
|
4334
4372
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4335
4373
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -4409,12 +4447,13 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4409
4447
|
return;
|
|
4410
4448
|
}
|
|
4411
4449
|
var newArr = ((data === null || data === void 0 ? void 0 : data.data) || []).map(function (item) {
|
|
4450
|
+
var _item$property, _item$property2, _item$property3, _item$property4;
|
|
4412
4451
|
return {
|
|
4413
|
-
propertyCode: item.property.propertyCode,
|
|
4414
|
-
propertyName: item.property.name,
|
|
4415
|
-
propertyId: item.property.id,
|
|
4416
|
-
isCommonUse: item.property.isCommonUse === 'commonUse',
|
|
4417
|
-
detailList: item.propertyValueList.map(function (detail) {
|
|
4452
|
+
propertyCode: (_item$property = item.property) === null || _item$property === void 0 ? void 0 : _item$property.propertyCode,
|
|
4453
|
+
propertyName: (_item$property2 = item.property) === null || _item$property2 === void 0 ? void 0 : _item$property2.name,
|
|
4454
|
+
propertyId: (_item$property3 = item.property) === null || _item$property3 === void 0 ? void 0 : _item$property3.id,
|
|
4455
|
+
isCommonUse: ((_item$property4 = item.property) === null || _item$property4 === void 0 ? void 0 : _item$property4.isCommonUse) === 'commonUse',
|
|
4456
|
+
detailList: (item.propertyValueList || []).map(function (detail) {
|
|
4418
4457
|
return {
|
|
4419
4458
|
name: detail.value,
|
|
4420
4459
|
value: detail.value,
|
|
@@ -4433,8 +4472,12 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4433
4472
|
});
|
|
4434
4473
|
}, [choosedClassify]);
|
|
4435
4474
|
useEffect(function () {
|
|
4436
|
-
|
|
4437
|
-
|
|
4475
|
+
var _classifyOptionList$2;
|
|
4476
|
+
if (visible) {
|
|
4477
|
+
var _classifyOptionList$;
|
|
4478
|
+
// 获取选中品类信息
|
|
4479
|
+
setChoosedClassify((value === null || value === void 0 ? void 0 : value.classifyCode) || ((_classifyOptionList$ = classifyOptionList[0]) === null || _classifyOptionList$ === void 0 ? void 0 : _classifyOptionList$.value));
|
|
4480
|
+
}
|
|
4438
4481
|
// 获取选中属性值展示
|
|
4439
4482
|
var choosedPropertyList = ((value === null || value === void 0 ? void 0 : value.propertyList) || []).map(function (item) {
|
|
4440
4483
|
return (item.detailList || []).map(function (detail) {
|
|
@@ -4446,9 +4489,11 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4446
4489
|
})) {
|
|
4447
4490
|
setShowNotCommon(true);
|
|
4448
4491
|
}
|
|
4492
|
+
settingValue.current = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
4493
|
+
classifyCode: (value === null || value === void 0 ? void 0 : value.classifyCode) || ((_classifyOptionList$2 = classifyOptionList[0]) === null || _classifyOptionList$2 === void 0 ? void 0 : _classifyOptionList$2.value)
|
|
4494
|
+
});
|
|
4449
4495
|
setChoosedValues(choosedPropertyList);
|
|
4450
|
-
|
|
4451
|
-
}, [value]);
|
|
4496
|
+
}, [value, visible]);
|
|
4452
4497
|
// 关闭弹窗回传组件值
|
|
4453
4498
|
var handleConfirm = function handleConfirm() {
|
|
4454
4499
|
setVisible(false);
|
|
@@ -4552,7 +4597,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4552
4597
|
propertyData: item,
|
|
4553
4598
|
handleProperyItemChange: handleProperyItemChange
|
|
4554
4599
|
});
|
|
4555
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
4600
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
4556
4601
|
style: {
|
|
4557
4602
|
width: '50px',
|
|
4558
4603
|
cursor: 'pointer',
|
|
@@ -4562,7 +4607,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4562
4607
|
onClick: function onClick() {
|
|
4563
4608
|
return setShowNotCommon(!showNotCommon);
|
|
4564
4609
|
}
|
|
4565
|
-
}, 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"))))))));
|
|
4610
|
+
}, 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"))))))));
|
|
4566
4611
|
};
|
|
4567
4612
|
|
|
4568
4613
|
var Option$1 = Select.Option;
|
|
@@ -5842,7 +5887,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5842
5887
|
destroyTooltipOnHide: true,
|
|
5843
5888
|
placement: "topRight",
|
|
5844
5889
|
autoAdjustOverflow: false,
|
|
5845
|
-
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
5890
|
+
title: ( /*#__PURE__*/React$1.createElement("div", {
|
|
5846
5891
|
style: {
|
|
5847
5892
|
margin: '6px 8px 0px'
|
|
5848
5893
|
},
|
|
@@ -5914,13 +5959,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5914
5959
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5915
5960
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5916
5961
|
className: 'search_select'
|
|
5917
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5962
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5918
5963
|
onClick: function onClick() {
|
|
5919
5964
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5920
5965
|
(_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);
|
|
5921
5966
|
showModal();
|
|
5922
5967
|
}
|
|
5923
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5968
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5924
5969
|
title: getShowStr(),
|
|
5925
5970
|
style: {
|
|
5926
5971
|
overflow: 'hidden',
|
|
@@ -5947,10 +5992,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5947
5992
|
dropdownRender: function dropdownRender(menu) {
|
|
5948
5993
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5949
5994
|
},
|
|
5950
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5995
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
5951
5996
|
size: "small",
|
|
5952
5997
|
className: 'searchSelectSpin'
|
|
5953
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5998
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
5954
5999
|
style: {
|
|
5955
6000
|
textAlign: 'center'
|
|
5956
6001
|
}
|
|
@@ -5981,7 +6026,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5981
6026
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5982
6027
|
filterTxt: searchValue
|
|
5983
6028
|
}));
|
|
5984
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6029
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5985
6030
|
maskClosable: false,
|
|
5986
6031
|
destroyOnClose: true,
|
|
5987
6032
|
width: "80%",
|
|
@@ -6578,7 +6623,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6578
6623
|
style: {
|
|
6579
6624
|
width: 525
|
|
6580
6625
|
}
|
|
6581
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6626
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6582
6627
|
checked: !dataSource.some(function (item) {
|
|
6583
6628
|
if (item.hidden) return true;
|
|
6584
6629
|
return false;
|
|
@@ -6616,13 +6661,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6616
6661
|
_this2.onChange(e, item.title);
|
|
6617
6662
|
}
|
|
6618
6663
|
}, item.title);
|
|
6619
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6664
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
6620
6665
|
style: {
|
|
6621
6666
|
width: '144px'
|
|
6622
6667
|
}
|
|
6623
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6668
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
6624
6669
|
className: 'sort_table_column_all_empty'
|
|
6625
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6670
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6626
6671
|
className: 'sort_table_column_special'
|
|
6627
6672
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6628
6673
|
className: 'sort_table_column_all'
|
|
@@ -6811,7 +6856,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6811
6856
|
});
|
|
6812
6857
|
};
|
|
6813
6858
|
// 格式化树选择器数据源
|
|
6814
|
-
var
|
|
6859
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6815
6860
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6816
6861
|
return {
|
|
6817
6862
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6821,7 +6866,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6821
6866
|
isLeaf: !haveChildren,
|
|
6822
6867
|
disabled: haveChildren,
|
|
6823
6868
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6824
|
-
return
|
|
6869
|
+
return mapSearchTree(i, resKeyValue);
|
|
6825
6870
|
}) : []
|
|
6826
6871
|
};
|
|
6827
6872
|
};
|
|
@@ -6830,7 +6875,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6830
6875
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6831
6876
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6832
6877
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6833
|
-
return
|
|
6878
|
+
return mapSearchTree(ites, resKeyValue);
|
|
6834
6879
|
}) || [];
|
|
6835
6880
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6836
6881
|
};
|
|
@@ -7001,7 +7046,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7001
7046
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7002
7047
|
// FIXME: 特殊业务逻辑
|
|
7003
7048
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7004
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7049
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7005
7050
|
var result;
|
|
7006
7051
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7007
7052
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7254,7 +7299,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7254
7299
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7255
7300
|
value: text || null,
|
|
7256
7301
|
onChange: function () {
|
|
7257
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7302
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7258
7303
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7259
7304
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7260
7305
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7862,10 +7907,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7862
7907
|
var newColumns = arr.map(function (col) {
|
|
7863
7908
|
return _objectSpread2({}, col);
|
|
7864
7909
|
});
|
|
7865
|
-
var
|
|
7910
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
7866
7911
|
var i = indexArr.shift();
|
|
7867
7912
|
if (indexArr.length > 0) {
|
|
7868
|
-
|
|
7913
|
+
handleIndex(arr[i].children, indexArr);
|
|
7869
7914
|
} else {
|
|
7870
7915
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7871
7916
|
width: size.width
|
|
@@ -7873,7 +7918,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7873
7918
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7874
7919
|
}
|
|
7875
7920
|
};
|
|
7876
|
-
|
|
7921
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
7877
7922
|
callback(newColumns);
|
|
7878
7923
|
};
|
|
7879
7924
|
};
|
|
@@ -7883,13 +7928,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7883
7928
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7884
7929
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7885
7930
|
};
|
|
7886
|
-
var
|
|
7931
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7887
7932
|
arr.forEach(function (item, index) {
|
|
7888
7933
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7889
7934
|
return i || i === 0;
|
|
7890
7935
|
});
|
|
7891
7936
|
if (noEmptyArray$1(item.children)) {
|
|
7892
|
-
|
|
7937
|
+
handleColumns(item.children, indexArrInside);
|
|
7893
7938
|
} else {
|
|
7894
7939
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7895
7940
|
item.onHeaderCell = function (column) {
|
|
@@ -7905,14 +7950,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7905
7950
|
handleAntdColumnsSpecialParams(item);
|
|
7906
7951
|
return _objectSpread2({}, item);
|
|
7907
7952
|
});
|
|
7908
|
-
|
|
7953
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7909
7954
|
return setShowToChooseColumnsCallback(res);
|
|
7910
7955
|
});
|
|
7911
7956
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7912
7957
|
handleAntdColumnsSpecialParams(item);
|
|
7913
7958
|
return _objectSpread2({}, item);
|
|
7914
7959
|
});
|
|
7915
|
-
|
|
7960
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7916
7961
|
return setShowColumnsCallback(res);
|
|
7917
7962
|
});
|
|
7918
7963
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7923,7 +7968,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7923
7968
|
id: "add_select_div_".concat(uniqueValue)
|
|
7924
7969
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7925
7970
|
onClick: handleShowModal
|
|
7926
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7971
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
7927
7972
|
width: '1200px',
|
|
7928
7973
|
style: {
|
|
7929
7974
|
top: 20
|
|
@@ -8837,7 +8882,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8837
8882
|
});
|
|
8838
8883
|
};
|
|
8839
8884
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8840
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8885
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8841
8886
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8842
8887
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8843
8888
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8920,10 +8965,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8920
8965
|
var newColumns = arr.map(function (col) {
|
|
8921
8966
|
return _objectSpread2({}, col);
|
|
8922
8967
|
});
|
|
8923
|
-
var
|
|
8968
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8924
8969
|
var i = indexArr.shift();
|
|
8925
8970
|
if (indexArr.length > 0) {
|
|
8926
|
-
|
|
8971
|
+
handleIndex(arr[i].children, indexArr);
|
|
8927
8972
|
} else {
|
|
8928
8973
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8929
8974
|
width: size.width
|
|
@@ -8931,17 +8976,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8931
8976
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8932
8977
|
}
|
|
8933
8978
|
};
|
|
8934
|
-
|
|
8979
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8935
8980
|
callback(newColumns);
|
|
8936
8981
|
};
|
|
8937
8982
|
};
|
|
8938
|
-
var
|
|
8983
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8939
8984
|
arr.forEach(function (item, index) {
|
|
8940
8985
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8941
8986
|
return i || i === 0;
|
|
8942
8987
|
});
|
|
8943
8988
|
if (noEmptyArray$1(item.children)) {
|
|
8944
|
-
|
|
8989
|
+
handleColumns(item.children, indexArrInside);
|
|
8945
8990
|
} else {
|
|
8946
8991
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8947
8992
|
item.onHeaderCell = function (column) {
|
|
@@ -8957,7 +9002,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8957
9002
|
handleAntdColumnsSpecialParams(item);
|
|
8958
9003
|
return _objectSpread2({}, item);
|
|
8959
9004
|
});
|
|
8960
|
-
|
|
9005
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8961
9006
|
return setShowColumnsCallback(res);
|
|
8962
9007
|
});
|
|
8963
9008
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9272,7 +9317,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9272
9317
|
});
|
|
9273
9318
|
};
|
|
9274
9319
|
// 格式化树选择器数据源
|
|
9275
|
-
var
|
|
9320
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9276
9321
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9277
9322
|
return {
|
|
9278
9323
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9282,7 +9327,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9282
9327
|
isLeaf: !haveChildren,
|
|
9283
9328
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9284
9329
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9285
|
-
return
|
|
9330
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9286
9331
|
}) : []
|
|
9287
9332
|
};
|
|
9288
9333
|
};
|
|
@@ -9296,7 +9341,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9296
9341
|
disabledJudge = false;
|
|
9297
9342
|
}
|
|
9298
9343
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9299
|
-
return
|
|
9344
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9300
9345
|
}) || [];
|
|
9301
9346
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9302
9347
|
};
|
|
@@ -13366,7 +13411,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13366
13411
|
};
|
|
13367
13412
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
13368
13413
|
onClick: handleShowModal
|
|
13369
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13414
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13370
13415
|
onOk: handleOk,
|
|
13371
13416
|
onCancel: handleCancel,
|
|
13372
13417
|
destroyOnClose: true,
|
|
@@ -13485,7 +13530,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13485
13530
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13486
13531
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13487
13532
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13488
|
-
var
|
|
13533
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13489
13534
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13490
13535
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13491
13536
|
return {
|
|
@@ -13497,7 +13542,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13497
13542
|
isLeaf: !haveChildren,
|
|
13498
13543
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13499
13544
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13500
|
-
return
|
|
13545
|
+
return mapSearchTree(i);
|
|
13501
13546
|
}) : []
|
|
13502
13547
|
};
|
|
13503
13548
|
};
|
|
@@ -13515,8 +13560,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13515
13560
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13516
13561
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
13517
13562
|
headers: headers
|
|
13518
|
-
}).then(/*#__PURE__*/function () {
|
|
13519
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13563
|
+
}).then( /*#__PURE__*/function () {
|
|
13564
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13520
13565
|
var _ctx$form;
|
|
13521
13566
|
var resData, coverData, data, dataList;
|
|
13522
13567
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13543,7 +13588,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13543
13588
|
case 9:
|
|
13544
13589
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13545
13590
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13546
|
-
return
|
|
13591
|
+
return mapSearchTree(ites);
|
|
13547
13592
|
}) || [];
|
|
13548
13593
|
case 11:
|
|
13549
13594
|
_context.next = 14;
|
|
@@ -13581,11 +13626,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13581
13626
|
return _formatResult;
|
|
13582
13627
|
}
|
|
13583
13628
|
};
|
|
13584
|
-
var
|
|
13629
|
+
var parallelData = function parallelData(data, result) {
|
|
13585
13630
|
data.forEach(function (i) {
|
|
13586
13631
|
result.push(i);
|
|
13587
13632
|
if (i[treeChildrenRoom]) {
|
|
13588
|
-
|
|
13633
|
+
parallelData(i[treeChildrenRoom], result);
|
|
13589
13634
|
}
|
|
13590
13635
|
});
|
|
13591
13636
|
return result;
|
|
@@ -13625,7 +13670,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13625
13670
|
var _ctx$form2;
|
|
13626
13671
|
var handleData = formatData(data);
|
|
13627
13672
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13628
|
-
var parallelTreeData =
|
|
13673
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13629
13674
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13630
13675
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13631
13676
|
onChangeName && onChangeName(dataName);
|
|
@@ -13668,7 +13713,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13668
13713
|
var getShowStr = function getShowStr() {
|
|
13669
13714
|
var isMultiple = multiple || treeCheckable;
|
|
13670
13715
|
var kongValue = '无';
|
|
13671
|
-
var parallelTreeData =
|
|
13716
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13672
13717
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13673
13718
|
if (isMultiple) {
|
|
13674
13719
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13680,7 +13725,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13680
13725
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13681
13726
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13682
13727
|
className: 'tree_search_select'
|
|
13683
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13728
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13684
13729
|
title: getShowStr(),
|
|
13685
13730
|
style: {
|
|
13686
13731
|
overflow: 'hidden',
|
|
@@ -13688,7 +13733,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13688
13733
|
whiteSpace: 'nowrap'
|
|
13689
13734
|
},
|
|
13690
13735
|
className: 'search_select_show'
|
|
13691
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13736
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13692
13737
|
treeCheckable: treeCheckable,
|
|
13693
13738
|
maxTagCount: maxTagCount,
|
|
13694
13739
|
showSearch: showSearch,
|
|
@@ -13885,7 +13930,7 @@ var index$2 = (function (props) {
|
|
|
13885
13930
|
} : {}
|
|
13886
13931
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13887
13932
|
className: 'status-label-operate'
|
|
13888
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13933
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13889
13934
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13890
13935
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13891
13936
|
style: {
|
|
@@ -14666,7 +14711,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14666
14711
|
style: {
|
|
14667
14712
|
width: 525
|
|
14668
14713
|
}
|
|
14669
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14714
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14670
14715
|
checked: !dataSource.some(function (item) {
|
|
14671
14716
|
if (item.hidden) return true;
|
|
14672
14717
|
return false;
|
|
@@ -14704,13 +14749,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14704
14749
|
_this2.onChange(e, item.title);
|
|
14705
14750
|
}
|
|
14706
14751
|
}, item.title);
|
|
14707
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14752
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
14708
14753
|
style: {
|
|
14709
14754
|
width: '144px'
|
|
14710
14755
|
}
|
|
14711
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14756
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
14712
14757
|
className: 'sort_table_column_all_empty'
|
|
14713
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14758
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14714
14759
|
className: 'sort_table_column_special'
|
|
14715
14760
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14716
14761
|
className: 'sort_table_column_all'
|
|
@@ -14889,10 +14934,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14889
14934
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14890
14935
|
return _objectSpread2({}, col);
|
|
14891
14936
|
});
|
|
14892
|
-
var
|
|
14937
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14893
14938
|
var i = indexArr.shift();
|
|
14894
14939
|
if (indexArr.length > 0) {
|
|
14895
|
-
|
|
14940
|
+
handleIndex(arr[i].children, indexArr);
|
|
14896
14941
|
} else {
|
|
14897
14942
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14898
14943
|
width: size.width
|
|
@@ -14900,7 +14945,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14900
14945
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14901
14946
|
}
|
|
14902
14947
|
};
|
|
14903
|
-
|
|
14948
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14904
14949
|
_this.setState({
|
|
14905
14950
|
showColumns: _toConsumableArray(newColumns)
|
|
14906
14951
|
});
|
|
@@ -14941,7 +14986,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14941
14986
|
};
|
|
14942
14987
|
setIsResizing(true);
|
|
14943
14988
|
document.addEventListener('mousemove', handleMouseMove);
|
|
14944
|
-
document.addEventListener('mouseup',
|
|
14989
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
14945
14990
|
};
|
|
14946
14991
|
var handleMouseMove = function handleMouseMove(e) {
|
|
14947
14992
|
e.stopPropagation();
|
|
@@ -14957,9 +15002,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14957
15002
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
14958
15003
|
}
|
|
14959
15004
|
};
|
|
14960
|
-
var
|
|
15005
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
14961
15006
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
14962
|
-
document.removeEventListener('mouseup',
|
|
15007
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
14963
15008
|
setIsResizing(false);
|
|
14964
15009
|
};
|
|
14965
15010
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15080,13 +15125,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15080
15125
|
showSummary = summary;
|
|
15081
15126
|
}
|
|
15082
15127
|
}
|
|
15083
|
-
var
|
|
15128
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15084
15129
|
arr.forEach(function (item, index) {
|
|
15085
15130
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15086
15131
|
return i || i === 0;
|
|
15087
15132
|
});
|
|
15088
15133
|
if (noEmptyArray$1(item.children)) {
|
|
15089
|
-
|
|
15134
|
+
handleColumns(item.children, indexArrInside);
|
|
15090
15135
|
} else {
|
|
15091
15136
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15092
15137
|
item.onHeaderCell = function (column) {
|
|
@@ -15102,7 +15147,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15102
15147
|
handleBssulaColumnsSpecialParams(item);
|
|
15103
15148
|
return _objectSpread2({}, item);
|
|
15104
15149
|
});
|
|
15105
|
-
|
|
15150
|
+
handleColumns(showCol, []);
|
|
15106
15151
|
if (dynamicColumns.length) {
|
|
15107
15152
|
showCol = this.handledynamicColumns(showCol);
|
|
15108
15153
|
}
|
|
@@ -15143,7 +15188,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15143
15188
|
cell: this.ResizeableTitle
|
|
15144
15189
|
}
|
|
15145
15190
|
}
|
|
15146
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15191
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15147
15192
|
summary: summary
|
|
15148
15193
|
})));
|
|
15149
15194
|
}
|
|
@@ -15240,10 +15285,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15240
15285
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15241
15286
|
return _objectSpread2({}, col);
|
|
15242
15287
|
});
|
|
15243
|
-
var
|
|
15288
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15244
15289
|
var i = indexArr.shift();
|
|
15245
15290
|
if (indexArr.length > 0) {
|
|
15246
|
-
|
|
15291
|
+
handleIndex(arr[i].children, indexArr);
|
|
15247
15292
|
} else {
|
|
15248
15293
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15249
15294
|
width: size.width
|
|
@@ -15251,7 +15296,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15251
15296
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15252
15297
|
}
|
|
15253
15298
|
};
|
|
15254
|
-
|
|
15299
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15255
15300
|
_this.setState({
|
|
15256
15301
|
showColumns: _toConsumableArray(newColumns)
|
|
15257
15302
|
});
|
|
@@ -15327,13 +15372,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15327
15372
|
showSummary = summary;
|
|
15328
15373
|
}
|
|
15329
15374
|
}
|
|
15330
|
-
var
|
|
15375
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15331
15376
|
arr.forEach(function (item, index) {
|
|
15332
15377
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15333
15378
|
return i || i === 0;
|
|
15334
15379
|
});
|
|
15335
15380
|
if (noEmptyArray$1(item.children)) {
|
|
15336
|
-
|
|
15381
|
+
handleColumns(item.children, indexArrInside);
|
|
15337
15382
|
} else {
|
|
15338
15383
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15339
15384
|
item.onHeaderCell = function (column) {
|
|
@@ -15349,7 +15394,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15349
15394
|
handleAntdColumnsSpecialParams(item);
|
|
15350
15395
|
return _objectSpread2({}, item);
|
|
15351
15396
|
});
|
|
15352
|
-
|
|
15397
|
+
handleColumns(showCol, []);
|
|
15353
15398
|
if (dynamicColumns.length) {
|
|
15354
15399
|
showCol = this.handledynamicColumns(showCol);
|
|
15355
15400
|
}
|
|
@@ -15389,7 +15434,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15389
15434
|
cell: this.ResizeableTitle
|
|
15390
15435
|
}
|
|
15391
15436
|
}
|
|
15392
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15437
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15393
15438
|
summary: summary
|
|
15394
15439
|
})));
|
|
15395
15440
|
}
|
|
@@ -15449,20 +15494,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15449
15494
|
};
|
|
15450
15495
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15451
15496
|
var routerMap = {};
|
|
15452
|
-
var
|
|
15497
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
15453
15498
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15454
15499
|
data.forEach(function (menuItem) {
|
|
15455
15500
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15456
15501
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15457
15502
|
});
|
|
15458
15503
|
if (newMenuItem.children) {
|
|
15459
|
-
|
|
15504
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
15460
15505
|
}
|
|
15461
15506
|
// Reduce memory usage
|
|
15462
15507
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15463
15508
|
});
|
|
15464
15509
|
};
|
|
15465
|
-
|
|
15510
|
+
flattenMenuData(menuData, {});
|
|
15466
15511
|
return routerMap;
|
|
15467
15512
|
};
|
|
15468
15513
|
// mode类型判断
|
|
@@ -15788,7 +15833,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15788
15833
|
display: 'flex',
|
|
15789
15834
|
gap: '8px'
|
|
15790
15835
|
}
|
|
15791
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15836
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15792
15837
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15793
15838
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15794
15839
|
onClick: function onClick() {
|
|
@@ -15796,7 +15841,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15796
15841
|
},
|
|
15797
15842
|
width: 24,
|
|
15798
15843
|
src: scanning
|
|
15799
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15844
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15800
15845
|
title: "\u5168\u5C4F"
|
|
15801
15846
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15802
15847
|
onClick: function onClick() {
|
|
@@ -15804,7 +15849,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15804
15849
|
},
|
|
15805
15850
|
width: 24,
|
|
15806
15851
|
src: quanping
|
|
15807
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15852
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15808
15853
|
}, function (prevProps, nextProps) {
|
|
15809
15854
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15810
15855
|
return false;
|
|
@@ -15889,7 +15934,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15889
15934
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15890
15935
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15891
15936
|
}, item));
|
|
15892
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15937
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15893
15938
|
}, function (prevProps, nextProps) {
|
|
15894
15939
|
if (prevProps.title !== nextProps.title) {
|
|
15895
15940
|
return false;
|
|
@@ -16529,7 +16574,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16529
16574
|
});
|
|
16530
16575
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16531
16576
|
className: 'sort_table_wrapper'
|
|
16532
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16577
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
16533
16578
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16534
16579
|
wrapClassName: 'sort_table_wrapper',
|
|
16535
16580
|
width: 810,
|
|
@@ -16580,7 +16625,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16580
16625
|
width: 525,
|
|
16581
16626
|
height: 24
|
|
16582
16627
|
}
|
|
16583
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16628
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16584
16629
|
checked: !dataSource.some(function (item) {
|
|
16585
16630
|
if (item.hidden) return true;
|
|
16586
16631
|
return false;
|
|
@@ -16634,13 +16679,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16634
16679
|
_this2.onChange(e, item.title);
|
|
16635
16680
|
}
|
|
16636
16681
|
}, item.title);
|
|
16637
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16682
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
16638
16683
|
style: {
|
|
16639
16684
|
width: '144px'
|
|
16640
16685
|
}
|
|
16641
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16686
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
16642
16687
|
className: 'sort_table_column_all_empty'
|
|
16643
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16688
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16644
16689
|
className: 'sort_table_column_special'
|
|
16645
16690
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
16646
16691
|
className: 'sort_table_column_all'
|
|
@@ -17114,7 +17159,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17114
17159
|
});
|
|
17115
17160
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17116
17161
|
className: 'sort_table_wrapper'
|
|
17117
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17162
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
17118
17163
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17119
17164
|
wrapClassName: 'sort_table_wrapper',
|
|
17120
17165
|
width: 820,
|
|
@@ -17159,7 +17204,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17159
17204
|
style: {
|
|
17160
17205
|
width: 525
|
|
17161
17206
|
}
|
|
17162
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17207
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17163
17208
|
checked: !dataSource.some(function (item) {
|
|
17164
17209
|
if (item.hidden) return true;
|
|
17165
17210
|
return false;
|
|
@@ -17195,11 +17240,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17195
17240
|
_this2.onChange(e, item.name);
|
|
17196
17241
|
}
|
|
17197
17242
|
}, item.label);
|
|
17198
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17243
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17199
17244
|
style: {
|
|
17200
17245
|
width: '144px'
|
|
17201
17246
|
}
|
|
17202
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17247
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17203
17248
|
className: 'sort_table_column_all_empty'
|
|
17204
17249
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17205
17250
|
className: 'sort_table_content_wrapper'
|
|
@@ -17298,7 +17343,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17298
17343
|
};
|
|
17299
17344
|
setIsResizing(true);
|
|
17300
17345
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17301
|
-
document.addEventListener('mouseup',
|
|
17346
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
17302
17347
|
};
|
|
17303
17348
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17304
17349
|
e.stopPropagation();
|
|
@@ -17314,9 +17359,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17314
17359
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17315
17360
|
}
|
|
17316
17361
|
};
|
|
17317
|
-
var
|
|
17362
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
17318
17363
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17319
|
-
document.removeEventListener('mouseup',
|
|
17364
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
17320
17365
|
setIsResizing(false);
|
|
17321
17366
|
};
|
|
17322
17367
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -17727,7 +17772,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17727
17772
|
actionsRender = actionsRender.concat([{
|
|
17728
17773
|
type: 'text',
|
|
17729
17774
|
props: {
|
|
17730
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
17775
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
17731
17776
|
request: {
|
|
17732
17777
|
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),
|
|
17733
17778
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17973,7 +18018,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17973
18018
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17974
18019
|
bsTableCode: bsTableCode,
|
|
17975
18020
|
onlyModal: true
|
|
17976
|
-
}), (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, {
|
|
18021
|
+
}), (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, {
|
|
17977
18022
|
ref: exportTableRef,
|
|
17978
18023
|
setShowColumns: setShowExportColumns,
|
|
17979
18024
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18066,11 +18111,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18066
18111
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18067
18112
|
var resultList = [];
|
|
18068
18113
|
var newRouter = cloneDeep(router);
|
|
18069
|
-
var
|
|
18114
|
+
var deep = function deep(router) {
|
|
18070
18115
|
if (router && Array.isArray(router)) {
|
|
18071
18116
|
router.forEach(function (item) {
|
|
18072
18117
|
if (item.children && Array.isArray(item.children)) {
|
|
18073
|
-
|
|
18118
|
+
deep(item.children);
|
|
18074
18119
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18075
18120
|
return d === item.code;
|
|
18076
18121
|
})) {
|
|
@@ -18084,10 +18129,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18084
18129
|
resultList.push(_objectSpread2({}, router));
|
|
18085
18130
|
}
|
|
18086
18131
|
};
|
|
18087
|
-
|
|
18132
|
+
deep(newRouter);
|
|
18088
18133
|
callBack([].concat(resultList));
|
|
18089
18134
|
};
|
|
18090
|
-
var
|
|
18135
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18091
18136
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18092
18137
|
var _loop = function _loop(i) {
|
|
18093
18138
|
if (routesData[i].hideInMenu) {
|
|
@@ -18101,7 +18146,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18101
18146
|
return 0; // continue
|
|
18102
18147
|
}
|
|
18103
18148
|
if (routesData[i].children) {
|
|
18104
|
-
|
|
18149
|
+
setMenuTreeData(routesData[i].children);
|
|
18105
18150
|
}
|
|
18106
18151
|
},
|
|
18107
18152
|
_ret;
|
|
@@ -18122,16 +18167,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18122
18167
|
};
|
|
18123
18168
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18124
18169
|
var routerMap = {};
|
|
18125
|
-
var
|
|
18170
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18126
18171
|
data.forEach(function (menuItem) {
|
|
18127
18172
|
if (menuItem.children) {
|
|
18128
|
-
|
|
18173
|
+
flattenMenuData(menuItem.children);
|
|
18129
18174
|
}
|
|
18130
18175
|
// Reduce memory usage
|
|
18131
18176
|
routerMap[menuItem.path] = menuItem;
|
|
18132
18177
|
});
|
|
18133
18178
|
};
|
|
18134
|
-
|
|
18179
|
+
flattenMenuData(menuData);
|
|
18135
18180
|
return routerMap;
|
|
18136
18181
|
};
|
|
18137
18182
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18277,7 +18322,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18277
18322
|
sethomepageData(homepageDataList);
|
|
18278
18323
|
setroutesData(routesDataList);
|
|
18279
18324
|
}, []);
|
|
18280
|
-
var
|
|
18325
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18281
18326
|
if (!child.hideInMenu && child.children) {
|
|
18282
18327
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18283
18328
|
style: {
|
|
@@ -18287,7 +18332,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18287
18332
|
}, formatMessage({
|
|
18288
18333
|
id: "".concat(child.locale)
|
|
18289
18334
|
})), child.children.map(function (menuItem) {
|
|
18290
|
-
return
|
|
18335
|
+
return renderChildItem(menuItem);
|
|
18291
18336
|
}));
|
|
18292
18337
|
} else if (!child.hideInMenu && child.path) {
|
|
18293
18338
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18322,7 +18367,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18322
18367
|
className: 'drawerWarp'
|
|
18323
18368
|
}, homepageData && homepageData.filter(function (d) {
|
|
18324
18369
|
return !d.hideInMenu;
|
|
18325
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
18370
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
18326
18371
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
18327
18372
|
dataSource: homepageData,
|
|
18328
18373
|
renderItem: function renderItem(child) {
|
|
@@ -18357,7 +18402,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18357
18402
|
bordered: true,
|
|
18358
18403
|
dataSource: item.children,
|
|
18359
18404
|
renderItem: function renderItem(child) {
|
|
18360
|
-
return
|
|
18405
|
+
return renderChildItem(child);
|
|
18361
18406
|
}
|
|
18362
18407
|
});
|
|
18363
18408
|
})));
|
|
@@ -18417,7 +18462,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18417
18462
|
src: allfunc
|
|
18418
18463
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
18419
18464
|
className: 'btnSpan2'
|
|
18420
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18465
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18421
18466
|
style: {
|
|
18422
18467
|
left: isDrawer ? 140 : 0,
|
|
18423
18468
|
top: 50
|
|
@@ -18463,7 +18508,7 @@ function outLogin(_x) {
|
|
|
18463
18508
|
return _outLogin.apply(this, arguments);
|
|
18464
18509
|
}
|
|
18465
18510
|
function _outLogin() {
|
|
18466
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18511
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18467
18512
|
var res;
|
|
18468
18513
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18469
18514
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18605,7 +18650,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18605
18650
|
});
|
|
18606
18651
|
};
|
|
18607
18652
|
var loginOut = /*#__PURE__*/function () {
|
|
18608
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18653
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18609
18654
|
var sessionId;
|
|
18610
18655
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18611
18656
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18709,7 +18754,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18709
18754
|
marginRight: '0px'
|
|
18710
18755
|
},
|
|
18711
18756
|
src: './xialajiantou-new.svg'
|
|
18712
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18757
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18713
18758
|
};
|
|
18714
18759
|
|
|
18715
18760
|
// -- 查询店铺 --
|
|
@@ -18717,7 +18762,7 @@ function getStoreByName(_x) {
|
|
|
18717
18762
|
return _getStoreByName.apply(this, arguments);
|
|
18718
18763
|
}
|
|
18719
18764
|
function _getStoreByName() {
|
|
18720
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18765
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18721
18766
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18722
18767
|
while (1) switch (_context.prev = _context.next) {
|
|
18723
18768
|
case 0:
|
|
@@ -18785,7 +18830,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18785
18830
|
return _fetchUserList.apply(this, arguments);
|
|
18786
18831
|
}
|
|
18787
18832
|
function _fetchUserList() {
|
|
18788
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18833
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18789
18834
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
18790
18835
|
while (1) switch (_context3.prev = _context3.next) {
|
|
18791
18836
|
case 0:
|
|
@@ -18833,7 +18878,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18833
18878
|
return debounce$1(loadOptions, debounceTimeout);
|
|
18834
18879
|
}, [debounceTimeout, key]);
|
|
18835
18880
|
var changeInput = /*#__PURE__*/function () {
|
|
18836
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18881
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18837
18882
|
var res;
|
|
18838
18883
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18839
18884
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18855,7 +18900,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18855
18900
|
};
|
|
18856
18901
|
}();
|
|
18857
18902
|
useEffect(function () {
|
|
18858
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18903
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18859
18904
|
var res;
|
|
18860
18905
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
18861
18906
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19020,7 +19065,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19020
19065
|
var resultList = [];
|
|
19021
19066
|
var newRouter = cloneDeep$1(router);
|
|
19022
19067
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19023
|
-
var
|
|
19068
|
+
var deep = function deep(router) {
|
|
19024
19069
|
if (router && Array.isArray(router)) {
|
|
19025
19070
|
router.forEach(function (item) {
|
|
19026
19071
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19030,7 +19075,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19030
19075
|
d.nameEdit = true;
|
|
19031
19076
|
}
|
|
19032
19077
|
});
|
|
19033
|
-
|
|
19078
|
+
deep(item.routes);
|
|
19034
19079
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19035
19080
|
id: "menu.".concat(item.name)
|
|
19036
19081
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19049,7 +19094,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19049
19094
|
}));
|
|
19050
19095
|
}
|
|
19051
19096
|
};
|
|
19052
|
-
|
|
19097
|
+
deep(newRouter);
|
|
19053
19098
|
setroutesData([].concat(resultList));
|
|
19054
19099
|
};
|
|
19055
19100
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19131,7 +19176,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19131
19176
|
},
|
|
19132
19177
|
title: item.fullPathName
|
|
19133
19178
|
}, renderLineStyl(item.fullPathName));
|
|
19134
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19179
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19135
19180
|
employeeCode: employeeCode
|
|
19136
19181
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19137
19182
|
};
|
|
@@ -19146,7 +19191,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19146
19191
|
var TreeNode = Tree.TreeNode;
|
|
19147
19192
|
var Search$2 = Input.Search;
|
|
19148
19193
|
var dataList = [];
|
|
19149
|
-
var
|
|
19194
|
+
var generateList = function generateList(data) {
|
|
19150
19195
|
for (var i = 0; i < data.length; i++) {
|
|
19151
19196
|
var node = data[i];
|
|
19152
19197
|
var path = node.path,
|
|
@@ -19156,11 +19201,11 @@ var _generateList = function generateList(data) {
|
|
|
19156
19201
|
name: name
|
|
19157
19202
|
});
|
|
19158
19203
|
if (node.children) {
|
|
19159
|
-
|
|
19204
|
+
generateList(node.children);
|
|
19160
19205
|
}
|
|
19161
19206
|
}
|
|
19162
19207
|
};
|
|
19163
|
-
var
|
|
19208
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19164
19209
|
var parentKey;
|
|
19165
19210
|
for (var i = 0; i < tree.length; i++) {
|
|
19166
19211
|
var node = tree[i];
|
|
@@ -19169,8 +19214,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19169
19214
|
return item.path === path;
|
|
19170
19215
|
})) {
|
|
19171
19216
|
parentKey = node.path;
|
|
19172
|
-
} else if (
|
|
19173
|
-
parentKey =
|
|
19217
|
+
} else if (getParentKey(path, node.children)) {
|
|
19218
|
+
parentKey = getParentKey(path, node.children);
|
|
19174
19219
|
}
|
|
19175
19220
|
}
|
|
19176
19221
|
}
|
|
@@ -19201,7 +19246,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19201
19246
|
var treeData = _this.state.treeData;
|
|
19202
19247
|
var expandedKeys = dataList.map(function (item) {
|
|
19203
19248
|
if (item.name.indexOf(value) > -1) {
|
|
19204
|
-
return
|
|
19249
|
+
return getParentKey(item.path, treeData);
|
|
19205
19250
|
}
|
|
19206
19251
|
return null;
|
|
19207
19252
|
}).filter(function (item, i, self) {
|
|
@@ -19215,22 +19260,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19215
19260
|
};
|
|
19216
19261
|
_this.getPathList = function (originData) {
|
|
19217
19262
|
var pathList = [];
|
|
19218
|
-
var
|
|
19263
|
+
var getList = function getList(data) {
|
|
19219
19264
|
if (Array.isArray(data)) {
|
|
19220
19265
|
data.forEach(function (item) {
|
|
19221
19266
|
pathList.push(item.path);
|
|
19222
19267
|
if (item.children) {
|
|
19223
|
-
|
|
19268
|
+
getList(item.children);
|
|
19224
19269
|
}
|
|
19225
19270
|
});
|
|
19226
19271
|
} else {
|
|
19227
19272
|
pathList.push(data.path);
|
|
19228
19273
|
if (data.children) {
|
|
19229
|
-
|
|
19274
|
+
getList(data.children);
|
|
19230
19275
|
}
|
|
19231
19276
|
}
|
|
19232
19277
|
};
|
|
19233
|
-
|
|
19278
|
+
getList(originData);
|
|
19234
19279
|
return pathList;
|
|
19235
19280
|
};
|
|
19236
19281
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19239,18 +19284,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19239
19284
|
customerMenuData = _this$props.customerMenuData,
|
|
19240
19285
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19241
19286
|
var filterItem;
|
|
19242
|
-
var
|
|
19287
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
19243
19288
|
menuData.forEach(function (item) {
|
|
19244
19289
|
if (item.path === path) {
|
|
19245
19290
|
filterItem = _objectSpread2({}, item);
|
|
19246
19291
|
return;
|
|
19247
19292
|
}
|
|
19248
19293
|
if (item.children) {
|
|
19249
|
-
|
|
19294
|
+
filterMenuItem(item.children);
|
|
19250
19295
|
}
|
|
19251
19296
|
});
|
|
19252
19297
|
};
|
|
19253
|
-
|
|
19298
|
+
filterMenuItem(treeData);
|
|
19254
19299
|
var addPathList = _this.getPathList(filterItem);
|
|
19255
19300
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19256
19301
|
var isRepet = false;
|
|
@@ -19280,8 +19325,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19280
19325
|
return item.path === '/';
|
|
19281
19326
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19282
19327
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19283
|
-
|
|
19284
|
-
|
|
19328
|
+
setMenuTreeData(routesData);
|
|
19329
|
+
generateList(routesData);
|
|
19285
19330
|
this.setState({
|
|
19286
19331
|
treeData: routesData
|
|
19287
19332
|
});
|
|
@@ -19295,16 +19340,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19295
19340
|
expandedKeys = _this$state.expandedKeys,
|
|
19296
19341
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19297
19342
|
treeData = _this$state.treeData;
|
|
19298
|
-
var
|
|
19343
|
+
var loop = function loop(data) {
|
|
19299
19344
|
return data.map(function (item) {
|
|
19300
19345
|
var index = item.name.indexOf(searchValue);
|
|
19301
19346
|
var beforeStr = item.name.substr(0, index);
|
|
19302
19347
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19303
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19348
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19304
19349
|
style: {
|
|
19305
19350
|
color: '#f50'
|
|
19306
19351
|
}
|
|
19307
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19352
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19308
19353
|
if (item.children && item.children.length) {
|
|
19309
19354
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19310
19355
|
path: item.path,
|
|
@@ -19326,7 +19371,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19326
19371
|
width: 18,
|
|
19327
19372
|
src: arrowRight
|
|
19328
19373
|
}))))
|
|
19329
|
-
},
|
|
19374
|
+
}, loop(item.children));
|
|
19330
19375
|
}
|
|
19331
19376
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19332
19377
|
path: item.path,
|
|
@@ -19376,7 +19421,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19376
19421
|
onExpand: this.onExpand,
|
|
19377
19422
|
expandedKeys: expandedKeys,
|
|
19378
19423
|
autoExpandParent: autoExpandParent
|
|
19379
|
-
},
|
|
19424
|
+
}, loop(treeData))));
|
|
19380
19425
|
}
|
|
19381
19426
|
}]);
|
|
19382
19427
|
}(React$1.Component);
|
|
@@ -19409,24 +19454,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19409
19454
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19410
19455
|
var dragObj;
|
|
19411
19456
|
var finalDropItem;
|
|
19412
|
-
var
|
|
19457
|
+
var loop = function loop(data, path, callback) {
|
|
19413
19458
|
for (var i = 0; i < data.length; i++) {
|
|
19414
19459
|
if (data[i].path === path) {
|
|
19415
19460
|
return callback(data[i], i, data);
|
|
19416
19461
|
}
|
|
19417
19462
|
if (data[i].children) {
|
|
19418
|
-
|
|
19463
|
+
loop(data[i].children, path, callback);
|
|
19419
19464
|
}
|
|
19420
19465
|
}
|
|
19421
19466
|
};
|
|
19422
19467
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19423
|
-
|
|
19468
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
19424
19469
|
arr.splice(index, 1);
|
|
19425
19470
|
dragObj = item;
|
|
19426
19471
|
});
|
|
19427
19472
|
if (!info.dropToGap) {
|
|
19428
19473
|
// Drop on the content
|
|
19429
|
-
|
|
19474
|
+
loop(data, dropKey, function (item) {
|
|
19430
19475
|
item.children = item.children || [];
|
|
19431
19476
|
item.children.unshift(dragObj);
|
|
19432
19477
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19437,7 +19482,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19437
19482
|
// Is expanded
|
|
19438
19483
|
dropPosition === 1 // On the bottom gap
|
|
19439
19484
|
) {
|
|
19440
|
-
|
|
19485
|
+
loop(data, dropKey, function (item) {
|
|
19441
19486
|
item.children = item.children || [];
|
|
19442
19487
|
item.children.unshift(dragObj);
|
|
19443
19488
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19445,7 +19490,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19445
19490
|
} else {
|
|
19446
19491
|
var ar;
|
|
19447
19492
|
var i;
|
|
19448
|
-
|
|
19493
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
19449
19494
|
ar = arr;
|
|
19450
19495
|
i = index;
|
|
19451
19496
|
});
|
|
@@ -19484,17 +19529,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19484
19529
|
title: '编辑名称',
|
|
19485
19530
|
callBack: function callBack(newName) {
|
|
19486
19531
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19487
|
-
var
|
|
19532
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19488
19533
|
oldTreeData.forEach(function (treeItem) {
|
|
19489
19534
|
if (treeItem.path === item.path) {
|
|
19490
19535
|
treeItem.name = newName;
|
|
19491
19536
|
}
|
|
19492
19537
|
if (treeItem.children) {
|
|
19493
|
-
|
|
19538
|
+
editTreeDataName(treeItem.children);
|
|
19494
19539
|
}
|
|
19495
19540
|
});
|
|
19496
19541
|
};
|
|
19497
|
-
|
|
19542
|
+
editTreeDataName(oldTreeData);
|
|
19498
19543
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19499
19544
|
_this.setState({
|
|
19500
19545
|
modalInfo: {
|
|
@@ -19539,7 +19584,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19539
19584
|
title: '新增子目录',
|
|
19540
19585
|
callBack: function callBack(newName) {
|
|
19541
19586
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19542
|
-
var
|
|
19587
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
19543
19588
|
oldTreeData.forEach(function (treeItem) {
|
|
19544
19589
|
if (treeItem.path === item.path) {
|
|
19545
19590
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19551,11 +19596,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19551
19596
|
}];
|
|
19552
19597
|
}
|
|
19553
19598
|
if (treeItem.children) {
|
|
19554
|
-
|
|
19599
|
+
addChildFolder(treeItem.children);
|
|
19555
19600
|
}
|
|
19556
19601
|
});
|
|
19557
19602
|
};
|
|
19558
|
-
|
|
19603
|
+
addChildFolder(oldTreeData);
|
|
19559
19604
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19560
19605
|
_this.setState({
|
|
19561
19606
|
modalInfo: {
|
|
@@ -19614,7 +19659,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19614
19659
|
var _this$state = this.state,
|
|
19615
19660
|
modalInfo = _this$state.modalInfo,
|
|
19616
19661
|
checkedKeys = _this$state.checkedKeys;
|
|
19617
|
-
var
|
|
19662
|
+
var loop = function loop(data) {
|
|
19618
19663
|
return data.map(function (item) {
|
|
19619
19664
|
if (item.children && item.children.length) {
|
|
19620
19665
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -19631,7 +19676,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19631
19676
|
e.stopPropagation();
|
|
19632
19677
|
}
|
|
19633
19678
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
19634
|
-
},
|
|
19679
|
+
}, loop(item.children));
|
|
19635
19680
|
}
|
|
19636
19681
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
19637
19682
|
path: item.path,
|
|
@@ -19710,7 +19755,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19710
19755
|
children: 'children'
|
|
19711
19756
|
},
|
|
19712
19757
|
onDrop: this.onDrop
|
|
19713
|
-
},
|
|
19758
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
19714
19759
|
width: 600,
|
|
19715
19760
|
bodyStyle: {
|
|
19716
19761
|
paddingTop: '32px',
|
|
@@ -19823,7 +19868,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19823
19868
|
pathname: item.path
|
|
19824
19869
|
});
|
|
19825
19870
|
};
|
|
19826
|
-
var
|
|
19871
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
19827
19872
|
return menuData.map(function (item) {
|
|
19828
19873
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
19829
19874
|
style: {
|
|
@@ -19838,7 +19883,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19838
19883
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
19839
19884
|
paddingLeft: '4px'
|
|
19840
19885
|
}
|
|
19841
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19886
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
19842
19887
|
});
|
|
19843
19888
|
};
|
|
19844
19889
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19864,7 +19909,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19864
19909
|
style: {
|
|
19865
19910
|
paddingLeft: '5px'
|
|
19866
19911
|
}
|
|
19867
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19912
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19868
19913
|
style: {
|
|
19869
19914
|
left: isDrawer ? 140 : 0
|
|
19870
19915
|
},
|
|
@@ -19885,7 +19930,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19885
19930
|
visible: isDrawer
|
|
19886
19931
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
19887
19932
|
className: 'menu_title_line'
|
|
19888
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19933
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
19889
19934
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
19890
19935
|
style: {
|
|
19891
19936
|
fontWeight: '600',
|
|
@@ -19959,7 +20004,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19959
20004
|
return item.path === '/';
|
|
19960
20005
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19961
20006
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19962
|
-
|
|
20007
|
+
setMenuTreeData(routesData);
|
|
19963
20008
|
routesData.forEach(function (item) {
|
|
19964
20009
|
if (item.children) {
|
|
19965
20010
|
routesDataList.push(item);
|
|
@@ -19989,7 +20034,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19989
20034
|
setHeight(clientHeight - 190);
|
|
19990
20035
|
setDrawHeight(clientHeight - 70);
|
|
19991
20036
|
};
|
|
19992
|
-
var
|
|
20037
|
+
var renderChildItem = function renderChildItem(child) {
|
|
19993
20038
|
if (!child.hideInMenu && child.children) {
|
|
19994
20039
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19995
20040
|
style: {
|
|
@@ -19999,7 +20044,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19999
20044
|
}, formatMessage({
|
|
20000
20045
|
id: "".concat(child.locale)
|
|
20001
20046
|
})), child.children.map(function (menuItem) {
|
|
20002
|
-
return
|
|
20047
|
+
return renderChildItem(menuItem);
|
|
20003
20048
|
}));
|
|
20004
20049
|
} else if (!child.hideInMenu && child.path) {
|
|
20005
20050
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20141,7 +20186,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20141
20186
|
onMenuClick(e, item);
|
|
20142
20187
|
}
|
|
20143
20188
|
}, item.name);
|
|
20144
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20189
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
20145
20190
|
className: 'search_menu_content'
|
|
20146
20191
|
}, SearhData.map(function (item) {
|
|
20147
20192
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20150,7 +20195,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20150
20195
|
},
|
|
20151
20196
|
key: item.path
|
|
20152
20197
|
}, item.name);
|
|
20153
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20198
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20154
20199
|
style: {
|
|
20155
20200
|
height: "".concat(rightMenuHeight, "px"),
|
|
20156
20201
|
overflowY: 'scroll',
|
|
@@ -20162,7 +20207,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20162
20207
|
className: 'drawerWarp_right'
|
|
20163
20208
|
}, homepageData && homepageData.filter(function (d) {
|
|
20164
20209
|
return !d.hideInMenu;
|
|
20165
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20210
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
20166
20211
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20167
20212
|
dataSource: homepageData,
|
|
20168
20213
|
renderItem: function renderItem(child) {
|
|
@@ -20203,7 +20248,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20203
20248
|
bordered: true,
|
|
20204
20249
|
dataSource: item.children,
|
|
20205
20250
|
renderItem: function renderItem(child) {
|
|
20206
|
-
return
|
|
20251
|
+
return renderChildItem(child);
|
|
20207
20252
|
}
|
|
20208
20253
|
});
|
|
20209
20254
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20361,10 +20406,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20361
20406
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20362
20407
|
var menuKeys = [];
|
|
20363
20408
|
var docsId = [];
|
|
20364
|
-
var
|
|
20409
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20365
20410
|
data.forEach(function (item) {
|
|
20366
20411
|
if (item.children && item.children.length > 0) {
|
|
20367
|
-
|
|
20412
|
+
getLimitedMenuKeys(item.children);
|
|
20368
20413
|
} else {
|
|
20369
20414
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20370
20415
|
menuKeys.push(originPath);
|
|
@@ -20375,7 +20420,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20375
20420
|
});
|
|
20376
20421
|
};
|
|
20377
20422
|
try {
|
|
20378
|
-
|
|
20423
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
20379
20424
|
} catch (e) {}
|
|
20380
20425
|
return {
|
|
20381
20426
|
menuKeys: menuKeys,
|
|
@@ -20609,10 +20654,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20609
20654
|
return (node.path || '').includes('all-general-documents');
|
|
20610
20655
|
};
|
|
20611
20656
|
// 递归获取树列表
|
|
20612
|
-
var
|
|
20657
|
+
var getTreeList = function getTreeList(data) {
|
|
20613
20658
|
data.forEach(function (node) {
|
|
20614
20659
|
if (node.routes && node.routes.length > 0) {
|
|
20615
|
-
|
|
20660
|
+
getTreeList(node.routes);
|
|
20616
20661
|
return;
|
|
20617
20662
|
}
|
|
20618
20663
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20643,7 +20688,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20643
20688
|
}
|
|
20644
20689
|
});
|
|
20645
20690
|
};
|
|
20646
|
-
|
|
20691
|
+
getTreeList(treeData);
|
|
20647
20692
|
return treeList;
|
|
20648
20693
|
};
|
|
20649
20694
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21272,7 +21317,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21272
21317
|
updateState = _ref8.updateState;
|
|
21273
21318
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21274
21319
|
className: "tab_title_content"
|
|
21275
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21320
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21276
21321
|
info: item,
|
|
21277
21322
|
operateFun: _this3.operateFun,
|
|
21278
21323
|
listenRouterState: listenRouterState
|
|
@@ -21408,7 +21453,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21408
21453
|
};
|
|
21409
21454
|
}
|
|
21410
21455
|
var OperationsSlot = {
|
|
21411
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
21456
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
21412
21457
|
className: 'tab_left_operate'
|
|
21413
21458
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
21414
21459
|
onClick: function onClick() {
|
|
@@ -21424,7 +21469,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21424
21469
|
_this3.setTabNavTransLate(-100);
|
|
21425
21470
|
}
|
|
21426
21471
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
21427
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
21472
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
21428
21473
|
style: {
|
|
21429
21474
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21430
21475
|
},
|
|
@@ -21522,7 +21567,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21522
21567
|
onMouseLeave: function onMouseLeave() {
|
|
21523
21568
|
_this3.setShowMenu(false);
|
|
21524
21569
|
}
|
|
21525
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21570
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21526
21571
|
style: {
|
|
21527
21572
|
position: 'absolute',
|
|
21528
21573
|
top: '14px',
|
|
@@ -21541,7 +21586,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21541
21586
|
postMenuData: function postMenuData(menus) {
|
|
21542
21587
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21543
21588
|
},
|
|
21544
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21589
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21545
21590
|
ref: this.allFunc,
|
|
21546
21591
|
itemPath: itemPath,
|
|
21547
21592
|
handleClose: this.handleClose,
|
|
@@ -21559,7 +21604,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21559
21604
|
},
|
|
21560
21605
|
menu: {
|
|
21561
21606
|
request: function () {
|
|
21562
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21607
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21563
21608
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21564
21609
|
while (1) switch (_context.prev = _context.next) {
|
|
21565
21610
|
case 0:
|
|
@@ -21694,7 +21739,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
21694
21739
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
21695
21740
|
timeFormat = _this$props4.timeFormat,
|
|
21696
21741
|
transparentProps = _this$props4.transparentProps;
|
|
21697
|
-
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({
|
|
21742
|
+
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({
|
|
21698
21743
|
getDictionarySource: getDictionarySource,
|
|
21699
21744
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
21700
21745
|
timeFormat: timeFormat
|
|
@@ -21718,12 +21763,12 @@ var index$5 = (function (props) {
|
|
|
21718
21763
|
});
|
|
21719
21764
|
|
|
21720
21765
|
// @ts-nocheck
|
|
21721
|
-
var
|
|
21766
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
21722
21767
|
var result = [];
|
|
21723
21768
|
columns.forEach(function (column) {
|
|
21724
21769
|
if (column.children) {
|
|
21725
21770
|
result.push(column);
|
|
21726
|
-
result.push.apply(result,
|
|
21771
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
21727
21772
|
} else {
|
|
21728
21773
|
result.push(column);
|
|
21729
21774
|
}
|
|
@@ -21732,7 +21777,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
21732
21777
|
};
|
|
21733
21778
|
var convertToRows = function convertToRows(originColumns) {
|
|
21734
21779
|
var maxLevel = 1;
|
|
21735
|
-
var
|
|
21780
|
+
var traverse = function traverse(column, parent) {
|
|
21736
21781
|
if (parent) {
|
|
21737
21782
|
column.level = parent.level + 1;
|
|
21738
21783
|
if (maxLevel < column.level) {
|
|
@@ -21742,7 +21787,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21742
21787
|
if (column.children) {
|
|
21743
21788
|
var colSpan = 0;
|
|
21744
21789
|
column.children.forEach(function (subColumn) {
|
|
21745
|
-
|
|
21790
|
+
traverse(subColumn, column);
|
|
21746
21791
|
colSpan += subColumn.colSpan;
|
|
21747
21792
|
});
|
|
21748
21793
|
column.colSpan = colSpan;
|
|
@@ -21752,13 +21797,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21752
21797
|
};
|
|
21753
21798
|
originColumns.forEach(function (column) {
|
|
21754
21799
|
column.level = 1;
|
|
21755
|
-
|
|
21800
|
+
traverse(column);
|
|
21756
21801
|
});
|
|
21757
21802
|
var rows = [];
|
|
21758
21803
|
for (var i = 0; i < maxLevel; i++) {
|
|
21759
21804
|
rows.push([]);
|
|
21760
21805
|
}
|
|
21761
|
-
var allColumns =
|
|
21806
|
+
var allColumns = getAllColumns(originColumns);
|
|
21762
21807
|
allColumns.forEach(function (column) {
|
|
21763
21808
|
if (!column.children) {
|
|
21764
21809
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -21798,7 +21843,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21798
21843
|
};
|
|
21799
21844
|
var headersToRows = function headersToRows(originColumns) {
|
|
21800
21845
|
var maxLevel = 1;
|
|
21801
|
-
var
|
|
21846
|
+
var traverse = function traverse(column, parent) {
|
|
21802
21847
|
if (parent) {
|
|
21803
21848
|
//计算当前元素属于第几个层级
|
|
21804
21849
|
column.level = parent.level + 1;
|
|
@@ -21811,7 +21856,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21811
21856
|
var colSpan = 0;
|
|
21812
21857
|
column.children.forEach(function (subColumn) {
|
|
21813
21858
|
//进行递归
|
|
21814
|
-
|
|
21859
|
+
traverse(subColumn, column);
|
|
21815
21860
|
colSpan += subColumn.colSpan;
|
|
21816
21861
|
});
|
|
21817
21862
|
column.colSpan = colSpan;
|
|
@@ -21821,14 +21866,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21821
21866
|
};
|
|
21822
21867
|
originColumns.forEach(function (column) {
|
|
21823
21868
|
column.level = 1;
|
|
21824
|
-
|
|
21869
|
+
traverse(column);
|
|
21825
21870
|
});
|
|
21826
21871
|
var rows = [];
|
|
21827
21872
|
var lastData = [];
|
|
21828
21873
|
for (var i = 0; i < maxLevel; i++) {
|
|
21829
21874
|
rows.push([]);
|
|
21830
21875
|
}
|
|
21831
|
-
var allColumns =
|
|
21876
|
+
var allColumns = getAllColumns(originColumns);
|
|
21832
21877
|
allColumns.forEach(function (column) {
|
|
21833
21878
|
if (!column.children) {
|
|
21834
21879
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -27845,7 +27890,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
27845
27890
|
}
|
|
27846
27891
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
27847
27892
|
};
|
|
27848
|
-
var
|
|
27893
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
27849
27894
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27850
27895
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
27851
27896
|
var children = hightLightData.children,
|
|
@@ -27856,7 +27901,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
27856
27901
|
lineEnd = _loc2[2];
|
|
27857
27902
|
if (children) {
|
|
27858
27903
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
27859
|
-
return
|
|
27904
|
+
return hasHighLightChildren(v, highLightLine);
|
|
27860
27905
|
});
|
|
27861
27906
|
}
|
|
27862
27907
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27868,7 +27913,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27868
27913
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27869
27914
|
data.forEach(function (node) {
|
|
27870
27915
|
if (!node) return;
|
|
27871
|
-
node.toggled =
|
|
27916
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
27872
27917
|
node.active = isHightLight(node, highLightLine);
|
|
27873
27918
|
if (node.children) {
|
|
27874
27919
|
if (node.active) {
|
|
@@ -29299,7 +29344,7 @@ var valueType = {
|
|
|
29299
29344
|
};
|
|
29300
29345
|
|
|
29301
29346
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29302
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29347
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29303
29348
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29304
29349
|
while (1) switch (_context.prev = _context.next) {
|
|
29305
29350
|
case 0:
|
|
@@ -29367,7 +29412,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29367
29412
|
value: false
|
|
29368
29413
|
}];
|
|
29369
29414
|
var ref = useRef();
|
|
29370
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29415
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29371
29416
|
var _ref$current, source;
|
|
29372
29417
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29373
29418
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29481,7 +29526,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29481
29526
|
source: {
|
|
29482
29527
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29483
29528
|
type: function () {
|
|
29484
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29529
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29485
29530
|
var form, values, name, relates, source;
|
|
29486
29531
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29487
29532
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29961,7 +30006,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29961
30006
|
source: {
|
|
29962
30007
|
relates: ['choiceType', 'inputType'],
|
|
29963
30008
|
type: function () {
|
|
29964
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30009
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29965
30010
|
var values, name, form, source;
|
|
29966
30011
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29967
30012
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30183,7 +30228,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30183
30228
|
width: 900,
|
|
30184
30229
|
maskClosable: false,
|
|
30185
30230
|
onOk: function () {
|
|
30186
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30231
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30187
30232
|
var _ref$current4, _res$editableStatus;
|
|
30188
30233
|
var res, _res$defaultValue;
|
|
30189
30234
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30255,7 +30300,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30255
30300
|
}()
|
|
30256
30301
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30257
30302
|
ref: ref
|
|
30258
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30303
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30259
30304
|
};
|
|
30260
30305
|
|
|
30261
30306
|
// @ts-nocheck
|
|
@@ -30869,7 +30914,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30869
30914
|
return setVisible(false);
|
|
30870
30915
|
},
|
|
30871
30916
|
className: 'customFieldsDrawer'
|
|
30872
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
30917
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
30873
30918
|
style: {
|
|
30874
30919
|
display: 'flex'
|
|
30875
30920
|
}
|
|
@@ -30878,13 +30923,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30878
30923
|
flex: 1,
|
|
30879
30924
|
width: 500
|
|
30880
30925
|
}
|
|
30881
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30926
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30882
30927
|
style: {
|
|
30883
30928
|
padding: "10px 0",
|
|
30884
30929
|
fontSize: "16px",
|
|
30885
30930
|
fontWeight: "bolder"
|
|
30886
30931
|
}
|
|
30887
|
-
}, "\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", {
|
|
30932
|
+
}, "\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", {
|
|
30888
30933
|
style: {
|
|
30889
30934
|
flex: 1
|
|
30890
30935
|
}
|
|
@@ -30893,7 +30938,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30893
30938
|
onRun: onClickRun,
|
|
30894
30939
|
value: jsonEditorVal,
|
|
30895
30940
|
shallowHeight: height
|
|
30896
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
30941
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
30897
30942
|
defaultActiveKey: activeKey,
|
|
30898
30943
|
onChange: function onChange(v) {
|
|
30899
30944
|
return setActiveKey(v);
|
|
@@ -30910,13 +30955,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30910
30955
|
flex: 1,
|
|
30911
30956
|
width: 500
|
|
30912
30957
|
}
|
|
30913
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30958
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30914
30959
|
style: {
|
|
30915
30960
|
padding: "10px 0",
|
|
30916
30961
|
fontSize: "16px",
|
|
30917
30962
|
fontWeight: "bolder"
|
|
30918
30963
|
}
|
|
30919
|
-
}, "\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", {
|
|
30964
|
+
}, "\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", {
|
|
30920
30965
|
style: {
|
|
30921
30966
|
flex: 1
|
|
30922
30967
|
}
|
|
@@ -30938,13 +30983,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30938
30983
|
flex: 1,
|
|
30939
30984
|
width: 500
|
|
30940
30985
|
}
|
|
30941
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30986
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30942
30987
|
style: {
|
|
30943
30988
|
padding: "10px 0",
|
|
30944
30989
|
fontSize: "16px",
|
|
30945
30990
|
fontWeight: "bolder"
|
|
30946
30991
|
}
|
|
30947
|
-
}, "\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", {
|
|
30992
|
+
}, "\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", {
|
|
30948
30993
|
style: {
|
|
30949
30994
|
flex: 1
|
|
30950
30995
|
}
|
|
@@ -31090,7 +31135,7 @@ function getMetaData(_x) {
|
|
|
31090
31135
|
|
|
31091
31136
|
// 获取数据
|
|
31092
31137
|
function _getMetaData() {
|
|
31093
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31138
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31094
31139
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31095
31140
|
while (1) switch (_context.prev = _context.next) {
|
|
31096
31141
|
case 0:
|
|
@@ -31312,7 +31357,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31312
31357
|
tableState = _useState4[0],
|
|
31313
31358
|
setTableState = _useState4[1];
|
|
31314
31359
|
var handleOpen = /*#__PURE__*/function () {
|
|
31315
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31360
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31316
31361
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31317
31362
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31318
31363
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31631,7 +31676,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31631
31676
|
destroyOnClose: true
|
|
31632
31677
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
31633
31678
|
ref: queryTableRef
|
|
31634
|
-
}, 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, {
|
|
31679
|
+
}, 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, {
|
|
31635
31680
|
justify: "center",
|
|
31636
31681
|
style: {
|
|
31637
31682
|
marginBottom: 30,
|
|
@@ -31747,7 +31792,7 @@ var CustomSelector = (function (props) {
|
|
|
31747
31792
|
var _props$ctx7;
|
|
31748
31793
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
31749
31794
|
}
|
|
31750
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
31795
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
31751
31796
|
type: "primary",
|
|
31752
31797
|
style: {
|
|
31753
31798
|
width: '30px',
|
|
@@ -31833,7 +31878,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31833
31878
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31834
31879
|
handSource = _useState2[0],
|
|
31835
31880
|
setHandSource = _useState2[1];
|
|
31836
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31881
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31837
31882
|
var resData, data;
|
|
31838
31883
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31839
31884
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31985,7 +32030,7 @@ function getRegularThresholdRange(_x) {
|
|
|
31985
32030
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
31986
32031
|
}
|
|
31987
32032
|
function _getRegularThresholdRange() {
|
|
31988
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32033
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31989
32034
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31990
32035
|
while (1) switch (_context.prev = _context.next) {
|
|
31991
32036
|
case 0:
|
|
@@ -32139,7 +32184,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32139
32184
|
};
|
|
32140
32185
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32141
32186
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32142
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32187
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32143
32188
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32144
32189
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32145
32190
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33084,7 +33129,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33084
33129
|
isAll: true,
|
|
33085
33130
|
needNameAndCode: true,
|
|
33086
33131
|
notChangeOnSelect: true,
|
|
33087
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33132
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33088
33133
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33089
33134
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33090
33135
|
case 0:
|
|
@@ -33133,7 +33178,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33133
33178
|
isAll: true,
|
|
33134
33179
|
needNameAndCode: true,
|
|
33135
33180
|
notChangeOnSelect: true,
|
|
33136
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33181
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33137
33182
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33138
33183
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33139
33184
|
case 0:
|
|
@@ -33184,7 +33229,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33184
33229
|
isAll: true,
|
|
33185
33230
|
needNameAndCode: true,
|
|
33186
33231
|
notChangeOnSelect: true,
|
|
33187
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33232
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33188
33233
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33189
33234
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33190
33235
|
case 0:
|
|
@@ -35148,7 +35193,7 @@ var App$1 = function App(_ref) {
|
|
|
35148
35193
|
borderRadius: '5px',
|
|
35149
35194
|
cursor: 'pointer'
|
|
35150
35195
|
}
|
|
35151
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35196
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
35152
35197
|
autoFocus: true,
|
|
35153
35198
|
onClick: function onClick(e) {
|
|
35154
35199
|
return e.stopPropagation();
|
|
@@ -35435,7 +35480,7 @@ function RenderCompItem(props) {
|
|
|
35435
35480
|
dictData = _useState2[0],
|
|
35436
35481
|
setDictData = _useState2[1];
|
|
35437
35482
|
var getDictData = /*#__PURE__*/function () {
|
|
35438
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35483
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35439
35484
|
var _data$map;
|
|
35440
35485
|
var data;
|
|
35441
35486
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35477,7 +35522,7 @@ function RenderCompItem(props) {
|
|
|
35477
35522
|
var style2 = {
|
|
35478
35523
|
width: '100px'
|
|
35479
35524
|
};
|
|
35480
|
-
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, {
|
|
35525
|
+
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, {
|
|
35481
35526
|
disabled: disabled,
|
|
35482
35527
|
allowClear: true,
|
|
35483
35528
|
onClear: function onClear() {
|
|
@@ -35488,7 +35533,7 @@ function RenderCompItem(props) {
|
|
|
35488
35533
|
onBlur: function onBlur(e) {
|
|
35489
35534
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35490
35535
|
}
|
|
35491
|
-
})) || 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, {
|
|
35536
|
+
})) || 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, {
|
|
35492
35537
|
disabled: disabled,
|
|
35493
35538
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35494
35539
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35501,7 +35546,7 @@ function RenderCompItem(props) {
|
|
|
35501
35546
|
onChange: function onChange(value) {
|
|
35502
35547
|
handleEdit(ites.code, value);
|
|
35503
35548
|
}
|
|
35504
|
-
})) || 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, {
|
|
35549
|
+
})) || 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, {
|
|
35505
35550
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35506
35551
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35507
35552
|
disabled: disabled,
|
|
@@ -35511,7 +35556,7 @@ function RenderCompItem(props) {
|
|
|
35511
35556
|
onChange: function onChange(value, dateString) {
|
|
35512
35557
|
handleEdit(ites.code, dateString);
|
|
35513
35558
|
}
|
|
35514
|
-
})) || 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, {
|
|
35559
|
+
})) || 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, {
|
|
35515
35560
|
showTime: true,
|
|
35516
35561
|
disabled: disabled,
|
|
35517
35562
|
defaultValue: ites.defaultValue,
|
|
@@ -35520,7 +35565,7 @@ function RenderCompItem(props) {
|
|
|
35520
35565
|
onChange: function onChange(value, timeString) {
|
|
35521
35566
|
handleEdit(ites.code, timeString);
|
|
35522
35567
|
}
|
|
35523
|
-
})) || 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, {
|
|
35568
|
+
})) || 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, {
|
|
35524
35569
|
disabled: disabled,
|
|
35525
35570
|
defaultChecked: !!ites.defaultValue,
|
|
35526
35571
|
style: style2,
|
|
@@ -35528,7 +35573,7 @@ function RenderCompItem(props) {
|
|
|
35528
35573
|
onChange: function onChange(value) {
|
|
35529
35574
|
handleEdit(ites.code, value);
|
|
35530
35575
|
}
|
|
35531
|
-
})) || 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({
|
|
35576
|
+
})) || 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({
|
|
35532
35577
|
disabled: disabled,
|
|
35533
35578
|
allowClear: true,
|
|
35534
35579
|
showArrow: true
|
|
@@ -35546,7 +35591,7 @@ function RenderCompItem(props) {
|
|
|
35546
35591
|
key: it,
|
|
35547
35592
|
value: it
|
|
35548
35593
|
}, ites.enumeration[it]);
|
|
35549
|
-
}))) || 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, {
|
|
35594
|
+
}))) || 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, {
|
|
35550
35595
|
disabled: disabled,
|
|
35551
35596
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35552
35597
|
defaultValue: ites.defaultValue,
|
|
@@ -35556,7 +35601,7 @@ function RenderCompItem(props) {
|
|
|
35556
35601
|
handleEdit(ites.code, value);
|
|
35557
35602
|
},
|
|
35558
35603
|
dictionaryCode: ites.dictionaryCode
|
|
35559
|
-
})) || 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, {
|
|
35604
|
+
})) || 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, {
|
|
35560
35605
|
selectBusinessType: "physicalWarehouse",
|
|
35561
35606
|
selectProps: _objectSpread2({
|
|
35562
35607
|
style: styleCommon,
|
|
@@ -35578,7 +35623,7 @@ function RenderCompItem(props) {
|
|
|
35578
35623
|
getPopupContainer: function getPopupContainer() {
|
|
35579
35624
|
return document.body;
|
|
35580
35625
|
}
|
|
35581
|
-
})) || 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, {
|
|
35626
|
+
})) || 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, {
|
|
35582
35627
|
selectBusinessType: "realWarehouse",
|
|
35583
35628
|
selectProps: _objectSpread2({
|
|
35584
35629
|
style: styleCommon,
|
|
@@ -35600,7 +35645,7 @@ function RenderCompItem(props) {
|
|
|
35600
35645
|
getPopupContainer: function getPopupContainer() {
|
|
35601
35646
|
return document.body;
|
|
35602
35647
|
}
|
|
35603
|
-
})) || 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, {
|
|
35648
|
+
})) || 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, {
|
|
35604
35649
|
selectBusinessType: "virtualWarehouse",
|
|
35605
35650
|
selectProps: _objectSpread2({
|
|
35606
35651
|
style: styleCommon,
|
|
@@ -35622,7 +35667,7 @@ function RenderCompItem(props) {
|
|
|
35622
35667
|
getPopupContainer: function getPopupContainer() {
|
|
35623
35668
|
return document.body;
|
|
35624
35669
|
}
|
|
35625
|
-
})) || 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, {
|
|
35670
|
+
})) || 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, {
|
|
35626
35671
|
selectBusinessType: "channelWarehouse",
|
|
35627
35672
|
selectProps: _objectSpread2({
|
|
35628
35673
|
style: styleCommon,
|
|
@@ -35644,7 +35689,7 @@ function RenderCompItem(props) {
|
|
|
35644
35689
|
getPopupContainer: function getPopupContainer() {
|
|
35645
35690
|
return document.body;
|
|
35646
35691
|
}
|
|
35647
|
-
})) || 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, {
|
|
35692
|
+
})) || 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, {
|
|
35648
35693
|
selectBusinessType: "spuCommodity",
|
|
35649
35694
|
selectProps: _objectSpread2({
|
|
35650
35695
|
style: styleCommon,
|
|
@@ -35665,7 +35710,7 @@ function RenderCompItem(props) {
|
|
|
35665
35710
|
getPopupContainer: function getPopupContainer() {
|
|
35666
35711
|
return document.body;
|
|
35667
35712
|
}
|
|
35668
|
-
})) || 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, {
|
|
35713
|
+
})) || 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, {
|
|
35669
35714
|
selectBusinessType: "skuCommodity",
|
|
35670
35715
|
selectProps: _objectSpread2({
|
|
35671
35716
|
style: styleCommon,
|
|
@@ -35686,13 +35731,13 @@ function RenderCompItem(props) {
|
|
|
35686
35731
|
getPopupContainer: function getPopupContainer() {
|
|
35687
35732
|
return document.body;
|
|
35688
35733
|
}
|
|
35689
|
-
})) || 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, {
|
|
35734
|
+
})) || 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, {
|
|
35690
35735
|
disabled: disabled,
|
|
35691
35736
|
isAll: true,
|
|
35692
35737
|
needNameAndCode: true,
|
|
35693
35738
|
notChangeOnSelect: true,
|
|
35694
35739
|
initRequestSource: function () {
|
|
35695
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35740
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35696
35741
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35697
35742
|
while (1) switch (_context2.prev = _context2.next) {
|
|
35698
35743
|
case 0:
|
|
@@ -35734,7 +35779,7 @@ function RenderCompItem(props) {
|
|
|
35734
35779
|
getPopupContainer: function getPopupContainer() {
|
|
35735
35780
|
return document.body;
|
|
35736
35781
|
}
|
|
35737
|
-
})) || 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, {
|
|
35782
|
+
})) || 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, {
|
|
35738
35783
|
disabled: disabled,
|
|
35739
35784
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35740
35785
|
businessType: "department",
|
|
@@ -35747,7 +35792,7 @@ function RenderCompItem(props) {
|
|
|
35747
35792
|
getPopupContainer: function getPopupContainer() {
|
|
35748
35793
|
return document.body;
|
|
35749
35794
|
}
|
|
35750
|
-
})) || 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, {
|
|
35795
|
+
})) || 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, {
|
|
35751
35796
|
disabled: disabled,
|
|
35752
35797
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35753
35798
|
businessType: "purchase-organization",
|
|
@@ -35760,7 +35805,7 @@ function RenderCompItem(props) {
|
|
|
35760
35805
|
getPopupContainer: function getPopupContainer() {
|
|
35761
35806
|
return document.body;
|
|
35762
35807
|
}
|
|
35763
|
-
})) || 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, {
|
|
35808
|
+
})) || 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, {
|
|
35764
35809
|
disabled: disabled,
|
|
35765
35810
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35766
35811
|
businessType: "sales-organization",
|
|
@@ -35773,7 +35818,7 @@ function RenderCompItem(props) {
|
|
|
35773
35818
|
getPopupContainer: function getPopupContainer() {
|
|
35774
35819
|
return document.body;
|
|
35775
35820
|
}
|
|
35776
|
-
})) || 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, {
|
|
35821
|
+
})) || 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, {
|
|
35777
35822
|
selectBusinessType: "supplier2",
|
|
35778
35823
|
selectProps: _objectSpread2({
|
|
35779
35824
|
style: styleCommon,
|
|
@@ -35794,7 +35839,7 @@ function RenderCompItem(props) {
|
|
|
35794
35839
|
getPopupContainer: function getPopupContainer() {
|
|
35795
35840
|
return document.body;
|
|
35796
35841
|
}
|
|
35797
|
-
})) || 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, {
|
|
35842
|
+
})) || 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, {
|
|
35798
35843
|
selectBusinessType: "customer2",
|
|
35799
35844
|
selectProps: _objectSpread2({
|
|
35800
35845
|
style: styleCommon,
|
|
@@ -35815,7 +35860,7 @@ function RenderCompItem(props) {
|
|
|
35815
35860
|
getPopupContainer: function getPopupContainer() {
|
|
35816
35861
|
return document.body;
|
|
35817
35862
|
}
|
|
35818
|
-
})) || 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, {
|
|
35863
|
+
})) || 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, {
|
|
35819
35864
|
selectBusinessType: "shopFile2",
|
|
35820
35865
|
selectProps: _objectSpread2({
|
|
35821
35866
|
style: styleCommon,
|
|
@@ -35836,7 +35881,7 @@ function RenderCompItem(props) {
|
|
|
35836
35881
|
getPopupContainer: function getPopupContainer() {
|
|
35837
35882
|
return document.body;
|
|
35838
35883
|
}
|
|
35839
|
-
})) || 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, {
|
|
35884
|
+
})) || 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, {
|
|
35840
35885
|
selectBusinessType: "employee2",
|
|
35841
35886
|
selectProps: _objectSpread2({
|
|
35842
35887
|
style: styleCommon,
|
|
@@ -35857,7 +35902,7 @@ function RenderCompItem(props) {
|
|
|
35857
35902
|
getPopupContainer: function getPopupContainer() {
|
|
35858
35903
|
return document.body;
|
|
35859
35904
|
}
|
|
35860
|
-
})) || 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, {
|
|
35905
|
+
})) || 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, {
|
|
35861
35906
|
disabled: disabled,
|
|
35862
35907
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35863
35908
|
businessType: "stock-organization",
|
|
@@ -35870,7 +35915,7 @@ function RenderCompItem(props) {
|
|
|
35870
35915
|
getPopupContainer: function getPopupContainer() {
|
|
35871
35916
|
return document.body;
|
|
35872
35917
|
}
|
|
35873
|
-
})) || 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, {
|
|
35918
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35874
35919
|
disabled: disabled,
|
|
35875
35920
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35876
35921
|
businessType: "settle-organization",
|
|
@@ -35883,7 +35928,7 @@ function RenderCompItem(props) {
|
|
|
35883
35928
|
getPopupContainer: function getPopupContainer() {
|
|
35884
35929
|
return document.body;
|
|
35885
35930
|
}
|
|
35886
|
-
})) || 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, {
|
|
35931
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35887
35932
|
selectBusinessType: "deliveryMode",
|
|
35888
35933
|
selectProps: _objectSpread2({
|
|
35889
35934
|
style: styleCommon,
|
|
@@ -35904,7 +35949,7 @@ function RenderCompItem(props) {
|
|
|
35904
35949
|
getPopupContainer: function getPopupContainer() {
|
|
35905
35950
|
return document.body;
|
|
35906
35951
|
}
|
|
35907
|
-
})) || 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, {
|
|
35952
|
+
})) || 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, {
|
|
35908
35953
|
selectBusinessType: "role",
|
|
35909
35954
|
selectProps: _objectSpread2({
|
|
35910
35955
|
style: styleCommon,
|
|
@@ -35925,7 +35970,7 @@ function RenderCompItem(props) {
|
|
|
35925
35970
|
getPopupContainer: function getPopupContainer() {
|
|
35926
35971
|
return document.body;
|
|
35927
35972
|
}
|
|
35928
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35973
|
+
})) || 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, {
|
|
35929
35974
|
selectBusinessType: "brand",
|
|
35930
35975
|
selectProps: _objectSpread2({
|
|
35931
35976
|
style: styleCommon,
|
|
@@ -35946,7 +35991,7 @@ function RenderCompItem(props) {
|
|
|
35946
35991
|
getPopupContainer: function getPopupContainer() {
|
|
35947
35992
|
return document.body;
|
|
35948
35993
|
}
|
|
35949
|
-
})) || 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, {
|
|
35994
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35950
35995
|
disabled: disabled,
|
|
35951
35996
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35952
35997
|
businessType: "background-category",
|
|
@@ -35959,7 +36004,7 @@ function RenderCompItem(props) {
|
|
|
35959
36004
|
getPopupContainer: function getPopupContainer() {
|
|
35960
36005
|
return document.body;
|
|
35961
36006
|
}
|
|
35962
|
-
})) || 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, {
|
|
36007
|
+
})) || 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, {
|
|
35963
36008
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35964
36009
|
style: styleCommon,
|
|
35965
36010
|
placeholder: '请选择'
|
|
@@ -35982,7 +36027,7 @@ function RenderCompItem(props) {
|
|
|
35982
36027
|
onChange: function onChange(value) {
|
|
35983
36028
|
handleEdit(ites.code, value);
|
|
35984
36029
|
}
|
|
35985
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36030
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
35986
36031
|
style: {
|
|
35987
36032
|
display: 'flex'
|
|
35988
36033
|
}
|
|
@@ -36494,7 +36539,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36494
36539
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36495
36540
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36496
36541
|
}
|
|
36497
|
-
var parallelTreeData =
|
|
36542
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
36498
36543
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36499
36544
|
var _i$key;
|
|
36500
36545
|
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);
|
|
@@ -37421,13 +37466,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37421
37466
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37422
37467
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37423
37468
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37424
|
-
var list =
|
|
37469
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37425
37470
|
var requiredList = list.filter(function (c) {
|
|
37426
37471
|
return c.required == 1;
|
|
37427
37472
|
}) || []; // 获取对象属性为true的集合
|
|
37428
37473
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37429
37474
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37430
|
-
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) ?
|
|
37475
|
+
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];
|
|
37431
37476
|
(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) {
|
|
37432
37477
|
if (requiredList.some(function (r) {
|
|
37433
37478
|
return r.id === e.elementId;
|
|
@@ -38016,7 +38061,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38016
38061
|
style: {
|
|
38017
38062
|
float: 'right'
|
|
38018
38063
|
}
|
|
38019
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38064
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38020
38065
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38021
38066
|
ruleGroupInfo: {
|
|
38022
38067
|
ruleGroupList: ruleGroupList,
|
|
@@ -38034,7 +38079,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38034
38079
|
callBack: function callBack(newData) {
|
|
38035
38080
|
upDateData(newData);
|
|
38036
38081
|
}
|
|
38037
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38082
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
38038
38083
|
style: {
|
|
38039
38084
|
padding: 20
|
|
38040
38085
|
}
|
|
@@ -38409,4 +38454,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
38409
38454
|
}, children));
|
|
38410
38455
|
};
|
|
38411
38456
|
|
|
38412
|
-
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, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy,
|
|
38457
|
+
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, 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 };
|