@bit-sun/business-component 4.0.12-alpha.23 → 4.0.12-alpha.24
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 +455 -413
- package/dist/index.js +456 -414
- package/package.json +1 -1
- package/src/components/Business/PropertyModal/index.tsx +12 -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,13 +414,181 @@ 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);
|
|
552
429
|
}
|
|
553
430
|
}
|
|
431
|
+
function _asyncToGenerator(fn) {
|
|
432
|
+
return function () {
|
|
433
|
+
var self = this,
|
|
434
|
+
args = arguments;
|
|
435
|
+
return new Promise(function (resolve, reject) {
|
|
436
|
+
var gen = fn.apply(self, args);
|
|
437
|
+
function _next(value) {
|
|
438
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
439
|
+
}
|
|
440
|
+
function _throw(err) {
|
|
441
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
442
|
+
}
|
|
443
|
+
_next(undefined);
|
|
444
|
+
});
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
function _classCallCheck(instance, Constructor) {
|
|
448
|
+
if (!(instance instanceof Constructor)) {
|
|
449
|
+
throw new TypeError("Cannot call a class as a function");
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
function _defineProperties(target, props) {
|
|
453
|
+
for (var i = 0; i < props.length; i++) {
|
|
454
|
+
var descriptor = props[i];
|
|
455
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
456
|
+
descriptor.configurable = true;
|
|
457
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
458
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
462
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
463
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
464
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
465
|
+
writable: false
|
|
466
|
+
});
|
|
467
|
+
return Constructor;
|
|
468
|
+
}
|
|
469
|
+
function _defineProperty(obj, key, value) {
|
|
470
|
+
key = _toPropertyKey(key);
|
|
471
|
+
if (key in obj) {
|
|
472
|
+
Object.defineProperty(obj, key, {
|
|
473
|
+
value: value,
|
|
474
|
+
enumerable: true,
|
|
475
|
+
configurable: true,
|
|
476
|
+
writable: true
|
|
477
|
+
});
|
|
478
|
+
} else {
|
|
479
|
+
obj[key] = value;
|
|
480
|
+
}
|
|
481
|
+
return obj;
|
|
482
|
+
}
|
|
483
|
+
function _inherits(subClass, superClass) {
|
|
484
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
485
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
486
|
+
}
|
|
487
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
488
|
+
constructor: {
|
|
489
|
+
value: subClass,
|
|
490
|
+
writable: true,
|
|
491
|
+
configurable: true
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
Object.defineProperty(subClass, "prototype", {
|
|
495
|
+
writable: false
|
|
496
|
+
});
|
|
497
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
498
|
+
}
|
|
499
|
+
function _getPrototypeOf(o) {
|
|
500
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
501
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
502
|
+
};
|
|
503
|
+
return _getPrototypeOf(o);
|
|
504
|
+
}
|
|
505
|
+
function _setPrototypeOf(o, p) {
|
|
506
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
507
|
+
o.__proto__ = p;
|
|
508
|
+
return o;
|
|
509
|
+
};
|
|
510
|
+
return _setPrototypeOf(o, p);
|
|
511
|
+
}
|
|
512
|
+
function _objectDestructuringEmpty(obj) {
|
|
513
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
514
|
+
}
|
|
515
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
516
|
+
if (source == null) return {};
|
|
517
|
+
var target = {};
|
|
518
|
+
for (var key in source) {
|
|
519
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
520
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
521
|
+
target[key] = source[key];
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
return target;
|
|
525
|
+
}
|
|
526
|
+
function _objectWithoutProperties(source, excluded) {
|
|
527
|
+
if (source == null) return {};
|
|
528
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
529
|
+
var key, i;
|
|
530
|
+
if (Object.getOwnPropertySymbols) {
|
|
531
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
532
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
533
|
+
key = sourceSymbolKeys[i];
|
|
534
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
535
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
536
|
+
target[key] = source[key];
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
return target;
|
|
540
|
+
}
|
|
541
|
+
function _assertThisInitialized(self) {
|
|
542
|
+
if (self === void 0) {
|
|
543
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
544
|
+
}
|
|
545
|
+
return self;
|
|
546
|
+
}
|
|
547
|
+
function _possibleConstructorReturn(self, call) {
|
|
548
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
549
|
+
return call;
|
|
550
|
+
} else if (call !== void 0) {
|
|
551
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
552
|
+
}
|
|
553
|
+
return _assertThisInitialized(self);
|
|
554
|
+
}
|
|
555
|
+
function _slicedToArray(arr, i) {
|
|
556
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
557
|
+
}
|
|
558
|
+
function _toArray(arr) {
|
|
559
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
560
|
+
}
|
|
561
|
+
function _toConsumableArray(arr) {
|
|
562
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
563
|
+
}
|
|
564
|
+
function _arrayWithoutHoles(arr) {
|
|
565
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
566
|
+
}
|
|
567
|
+
function _arrayWithHoles(arr) {
|
|
568
|
+
if (Array.isArray(arr)) return arr;
|
|
569
|
+
}
|
|
570
|
+
function _iterableToArray(iter) {
|
|
571
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
572
|
+
}
|
|
573
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
574
|
+
if (!o) return;
|
|
575
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
576
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
577
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
578
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
579
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
580
|
+
}
|
|
581
|
+
function _arrayLikeToArray(arr, len) {
|
|
582
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
583
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
584
|
+
return arr2;
|
|
585
|
+
}
|
|
586
|
+
function _nonIterableSpread() {
|
|
587
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
588
|
+
}
|
|
589
|
+
function _nonIterableRest() {
|
|
590
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
591
|
+
}
|
|
554
592
|
|
|
555
593
|
var ENUM = {
|
|
556
594
|
// 浏览器缓存信息
|
|
@@ -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,11 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4433
4472
|
});
|
|
4434
4473
|
}, [choosedClassify]);
|
|
4435
4474
|
useEffect(function () {
|
|
4436
|
-
|
|
4437
|
-
|
|
4475
|
+
if (visible) {
|
|
4476
|
+
var _classifyOptionList$;
|
|
4477
|
+
// 获取选中品类信息
|
|
4478
|
+
setChoosedClassify((value === null || value === void 0 ? void 0 : value.classifyCode) || ((_classifyOptionList$ = classifyOptionList[0]) === null || _classifyOptionList$ === void 0 ? void 0 : _classifyOptionList$.value));
|
|
4479
|
+
}
|
|
4438
4480
|
// 获取选中属性值展示
|
|
4439
4481
|
var choosedPropertyList = ((value === null || value === void 0 ? void 0 : value.propertyList) || []).map(function (item) {
|
|
4440
4482
|
return (item.detailList || []).map(function (detail) {
|
|
@@ -4446,9 +4488,9 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4446
4488
|
})) {
|
|
4447
4489
|
setShowNotCommon(true);
|
|
4448
4490
|
}
|
|
4449
|
-
setChoosedValues(choosedPropertyList);
|
|
4450
4491
|
settingValue.current = _objectSpread2({}, value);
|
|
4451
|
-
|
|
4492
|
+
setChoosedValues(choosedPropertyList);
|
|
4493
|
+
}, [value, visible]);
|
|
4452
4494
|
// 关闭弹窗回传组件值
|
|
4453
4495
|
var handleConfirm = function handleConfirm() {
|
|
4454
4496
|
setVisible(false);
|
|
@@ -4552,7 +4594,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4552
4594
|
propertyData: item,
|
|
4553
4595
|
handleProperyItemChange: handleProperyItemChange
|
|
4554
4596
|
});
|
|
4555
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
4597
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
4556
4598
|
style: {
|
|
4557
4599
|
width: '50px',
|
|
4558
4600
|
cursor: 'pointer',
|
|
@@ -4562,7 +4604,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4562
4604
|
onClick: function onClick() {
|
|
4563
4605
|
return setShowNotCommon(!showNotCommon);
|
|
4564
4606
|
}
|
|
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"))))))));
|
|
4607
|
+
}, 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
4608
|
};
|
|
4567
4609
|
|
|
4568
4610
|
var Option$1 = Select.Option;
|
|
@@ -5842,7 +5884,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5842
5884
|
destroyTooltipOnHide: true,
|
|
5843
5885
|
placement: "topRight",
|
|
5844
5886
|
autoAdjustOverflow: false,
|
|
5845
|
-
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
5887
|
+
title: ( /*#__PURE__*/React$1.createElement("div", {
|
|
5846
5888
|
style: {
|
|
5847
5889
|
margin: '6px 8px 0px'
|
|
5848
5890
|
},
|
|
@@ -5914,13 +5956,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5914
5956
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5915
5957
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5916
5958
|
className: 'search_select'
|
|
5917
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5959
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5918
5960
|
onClick: function onClick() {
|
|
5919
5961
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5920
5962
|
(_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
5963
|
showModal();
|
|
5922
5964
|
}
|
|
5923
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5965
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5924
5966
|
title: getShowStr(),
|
|
5925
5967
|
style: {
|
|
5926
5968
|
overflow: 'hidden',
|
|
@@ -5947,10 +5989,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5947
5989
|
dropdownRender: function dropdownRender(menu) {
|
|
5948
5990
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5949
5991
|
},
|
|
5950
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5992
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
5951
5993
|
size: "small",
|
|
5952
5994
|
className: 'searchSelectSpin'
|
|
5953
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5995
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
5954
5996
|
style: {
|
|
5955
5997
|
textAlign: 'center'
|
|
5956
5998
|
}
|
|
@@ -5981,7 +6023,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5981
6023
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5982
6024
|
filterTxt: searchValue
|
|
5983
6025
|
}));
|
|
5984
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6026
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5985
6027
|
maskClosable: false,
|
|
5986
6028
|
destroyOnClose: true,
|
|
5987
6029
|
width: "80%",
|
|
@@ -6578,7 +6620,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6578
6620
|
style: {
|
|
6579
6621
|
width: 525
|
|
6580
6622
|
}
|
|
6581
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6623
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6582
6624
|
checked: !dataSource.some(function (item) {
|
|
6583
6625
|
if (item.hidden) return true;
|
|
6584
6626
|
return false;
|
|
@@ -6616,13 +6658,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6616
6658
|
_this2.onChange(e, item.title);
|
|
6617
6659
|
}
|
|
6618
6660
|
}, item.title);
|
|
6619
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6661
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
6620
6662
|
style: {
|
|
6621
6663
|
width: '144px'
|
|
6622
6664
|
}
|
|
6623
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6665
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
6624
6666
|
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", {
|
|
6667
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6626
6668
|
className: 'sort_table_column_special'
|
|
6627
6669
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6628
6670
|
className: 'sort_table_column_all'
|
|
@@ -6811,7 +6853,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6811
6853
|
});
|
|
6812
6854
|
};
|
|
6813
6855
|
// 格式化树选择器数据源
|
|
6814
|
-
var
|
|
6856
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6815
6857
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6816
6858
|
return {
|
|
6817
6859
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6821,7 +6863,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6821
6863
|
isLeaf: !haveChildren,
|
|
6822
6864
|
disabled: haveChildren,
|
|
6823
6865
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6824
|
-
return
|
|
6866
|
+
return mapSearchTree(i, resKeyValue);
|
|
6825
6867
|
}) : []
|
|
6826
6868
|
};
|
|
6827
6869
|
};
|
|
@@ -6830,7 +6872,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6830
6872
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6831
6873
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6832
6874
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6833
|
-
return
|
|
6875
|
+
return mapSearchTree(ites, resKeyValue);
|
|
6834
6876
|
}) || [];
|
|
6835
6877
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6836
6878
|
};
|
|
@@ -7001,7 +7043,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7001
7043
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7002
7044
|
// FIXME: 特殊业务逻辑
|
|
7003
7045
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7004
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7046
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7005
7047
|
var result;
|
|
7006
7048
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7007
7049
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7254,7 +7296,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7254
7296
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7255
7297
|
value: text || null,
|
|
7256
7298
|
onChange: function () {
|
|
7257
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7299
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7258
7300
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7259
7301
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7260
7302
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7862,10 +7904,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7862
7904
|
var newColumns = arr.map(function (col) {
|
|
7863
7905
|
return _objectSpread2({}, col);
|
|
7864
7906
|
});
|
|
7865
|
-
var
|
|
7907
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
7866
7908
|
var i = indexArr.shift();
|
|
7867
7909
|
if (indexArr.length > 0) {
|
|
7868
|
-
|
|
7910
|
+
handleIndex(arr[i].children, indexArr);
|
|
7869
7911
|
} else {
|
|
7870
7912
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7871
7913
|
width: size.width
|
|
@@ -7873,7 +7915,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7873
7915
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7874
7916
|
}
|
|
7875
7917
|
};
|
|
7876
|
-
|
|
7918
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
7877
7919
|
callback(newColumns);
|
|
7878
7920
|
};
|
|
7879
7921
|
};
|
|
@@ -7883,13 +7925,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7883
7925
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7884
7926
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7885
7927
|
};
|
|
7886
|
-
var
|
|
7928
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7887
7929
|
arr.forEach(function (item, index) {
|
|
7888
7930
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7889
7931
|
return i || i === 0;
|
|
7890
7932
|
});
|
|
7891
7933
|
if (noEmptyArray$1(item.children)) {
|
|
7892
|
-
|
|
7934
|
+
handleColumns(item.children, indexArrInside);
|
|
7893
7935
|
} else {
|
|
7894
7936
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7895
7937
|
item.onHeaderCell = function (column) {
|
|
@@ -7905,14 +7947,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7905
7947
|
handleAntdColumnsSpecialParams(item);
|
|
7906
7948
|
return _objectSpread2({}, item);
|
|
7907
7949
|
});
|
|
7908
|
-
|
|
7950
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7909
7951
|
return setShowToChooseColumnsCallback(res);
|
|
7910
7952
|
});
|
|
7911
7953
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7912
7954
|
handleAntdColumnsSpecialParams(item);
|
|
7913
7955
|
return _objectSpread2({}, item);
|
|
7914
7956
|
});
|
|
7915
|
-
|
|
7957
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7916
7958
|
return setShowColumnsCallback(res);
|
|
7917
7959
|
});
|
|
7918
7960
|
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 +7965,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7923
7965
|
id: "add_select_div_".concat(uniqueValue)
|
|
7924
7966
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7925
7967
|
onClick: handleShowModal
|
|
7926
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7968
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
7927
7969
|
width: '1200px',
|
|
7928
7970
|
style: {
|
|
7929
7971
|
top: 20
|
|
@@ -8837,7 +8879,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8837
8879
|
});
|
|
8838
8880
|
};
|
|
8839
8881
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8840
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8882
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8841
8883
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8842
8884
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8843
8885
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8920,10 +8962,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8920
8962
|
var newColumns = arr.map(function (col) {
|
|
8921
8963
|
return _objectSpread2({}, col);
|
|
8922
8964
|
});
|
|
8923
|
-
var
|
|
8965
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8924
8966
|
var i = indexArr.shift();
|
|
8925
8967
|
if (indexArr.length > 0) {
|
|
8926
|
-
|
|
8968
|
+
handleIndex(arr[i].children, indexArr);
|
|
8927
8969
|
} else {
|
|
8928
8970
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8929
8971
|
width: size.width
|
|
@@ -8931,17 +8973,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8931
8973
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8932
8974
|
}
|
|
8933
8975
|
};
|
|
8934
|
-
|
|
8976
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8935
8977
|
callback(newColumns);
|
|
8936
8978
|
};
|
|
8937
8979
|
};
|
|
8938
|
-
var
|
|
8980
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8939
8981
|
arr.forEach(function (item, index) {
|
|
8940
8982
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8941
8983
|
return i || i === 0;
|
|
8942
8984
|
});
|
|
8943
8985
|
if (noEmptyArray$1(item.children)) {
|
|
8944
|
-
|
|
8986
|
+
handleColumns(item.children, indexArrInside);
|
|
8945
8987
|
} else {
|
|
8946
8988
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8947
8989
|
item.onHeaderCell = function (column) {
|
|
@@ -8957,7 +8999,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8957
8999
|
handleAntdColumnsSpecialParams(item);
|
|
8958
9000
|
return _objectSpread2({}, item);
|
|
8959
9001
|
});
|
|
8960
|
-
|
|
9002
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8961
9003
|
return setShowColumnsCallback(res);
|
|
8962
9004
|
});
|
|
8963
9005
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9272,7 +9314,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9272
9314
|
});
|
|
9273
9315
|
};
|
|
9274
9316
|
// 格式化树选择器数据源
|
|
9275
|
-
var
|
|
9317
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9276
9318
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9277
9319
|
return {
|
|
9278
9320
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9282,7 +9324,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9282
9324
|
isLeaf: !haveChildren,
|
|
9283
9325
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9284
9326
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9285
|
-
return
|
|
9327
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9286
9328
|
}) : []
|
|
9287
9329
|
};
|
|
9288
9330
|
};
|
|
@@ -9296,7 +9338,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9296
9338
|
disabledJudge = false;
|
|
9297
9339
|
}
|
|
9298
9340
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9299
|
-
return
|
|
9341
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9300
9342
|
}) || [];
|
|
9301
9343
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9302
9344
|
};
|
|
@@ -13366,7 +13408,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13366
13408
|
};
|
|
13367
13409
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
13368
13410
|
onClick: handleShowModal
|
|
13369
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13411
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13370
13412
|
onOk: handleOk,
|
|
13371
13413
|
onCancel: handleCancel,
|
|
13372
13414
|
destroyOnClose: true,
|
|
@@ -13485,7 +13527,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13485
13527
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13486
13528
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13487
13529
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13488
|
-
var
|
|
13530
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13489
13531
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13490
13532
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13491
13533
|
return {
|
|
@@ -13497,7 +13539,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13497
13539
|
isLeaf: !haveChildren,
|
|
13498
13540
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13499
13541
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13500
|
-
return
|
|
13542
|
+
return mapSearchTree(i);
|
|
13501
13543
|
}) : []
|
|
13502
13544
|
};
|
|
13503
13545
|
};
|
|
@@ -13515,8 +13557,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13515
13557
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13516
13558
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
13517
13559
|
headers: headers
|
|
13518
|
-
}).then(/*#__PURE__*/function () {
|
|
13519
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13560
|
+
}).then( /*#__PURE__*/function () {
|
|
13561
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13520
13562
|
var _ctx$form;
|
|
13521
13563
|
var resData, coverData, data, dataList;
|
|
13522
13564
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13543,7 +13585,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13543
13585
|
case 9:
|
|
13544
13586
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13545
13587
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13546
|
-
return
|
|
13588
|
+
return mapSearchTree(ites);
|
|
13547
13589
|
}) || [];
|
|
13548
13590
|
case 11:
|
|
13549
13591
|
_context.next = 14;
|
|
@@ -13581,11 +13623,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13581
13623
|
return _formatResult;
|
|
13582
13624
|
}
|
|
13583
13625
|
};
|
|
13584
|
-
var
|
|
13626
|
+
var parallelData = function parallelData(data, result) {
|
|
13585
13627
|
data.forEach(function (i) {
|
|
13586
13628
|
result.push(i);
|
|
13587
13629
|
if (i[treeChildrenRoom]) {
|
|
13588
|
-
|
|
13630
|
+
parallelData(i[treeChildrenRoom], result);
|
|
13589
13631
|
}
|
|
13590
13632
|
});
|
|
13591
13633
|
return result;
|
|
@@ -13625,7 +13667,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13625
13667
|
var _ctx$form2;
|
|
13626
13668
|
var handleData = formatData(data);
|
|
13627
13669
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13628
|
-
var parallelTreeData =
|
|
13670
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13629
13671
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13630
13672
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13631
13673
|
onChangeName && onChangeName(dataName);
|
|
@@ -13668,7 +13710,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13668
13710
|
var getShowStr = function getShowStr() {
|
|
13669
13711
|
var isMultiple = multiple || treeCheckable;
|
|
13670
13712
|
var kongValue = '无';
|
|
13671
|
-
var parallelTreeData =
|
|
13713
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13672
13714
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13673
13715
|
if (isMultiple) {
|
|
13674
13716
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13680,7 +13722,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13680
13722
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13681
13723
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13682
13724
|
className: 'tree_search_select'
|
|
13683
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13725
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13684
13726
|
title: getShowStr(),
|
|
13685
13727
|
style: {
|
|
13686
13728
|
overflow: 'hidden',
|
|
@@ -13688,7 +13730,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13688
13730
|
whiteSpace: 'nowrap'
|
|
13689
13731
|
},
|
|
13690
13732
|
className: 'search_select_show'
|
|
13691
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13733
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13692
13734
|
treeCheckable: treeCheckable,
|
|
13693
13735
|
maxTagCount: maxTagCount,
|
|
13694
13736
|
showSearch: showSearch,
|
|
@@ -13885,7 +13927,7 @@ var index$2 = (function (props) {
|
|
|
13885
13927
|
} : {}
|
|
13886
13928
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13887
13929
|
className: 'status-label-operate'
|
|
13888
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13930
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13889
13931
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13890
13932
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13891
13933
|
style: {
|
|
@@ -14666,7 +14708,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14666
14708
|
style: {
|
|
14667
14709
|
width: 525
|
|
14668
14710
|
}
|
|
14669
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14711
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14670
14712
|
checked: !dataSource.some(function (item) {
|
|
14671
14713
|
if (item.hidden) return true;
|
|
14672
14714
|
return false;
|
|
@@ -14704,13 +14746,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14704
14746
|
_this2.onChange(e, item.title);
|
|
14705
14747
|
}
|
|
14706
14748
|
}, item.title);
|
|
14707
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14749
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
14708
14750
|
style: {
|
|
14709
14751
|
width: '144px'
|
|
14710
14752
|
}
|
|
14711
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14753
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
14712
14754
|
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", {
|
|
14755
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14714
14756
|
className: 'sort_table_column_special'
|
|
14715
14757
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14716
14758
|
className: 'sort_table_column_all'
|
|
@@ -14889,10 +14931,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14889
14931
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14890
14932
|
return _objectSpread2({}, col);
|
|
14891
14933
|
});
|
|
14892
|
-
var
|
|
14934
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14893
14935
|
var i = indexArr.shift();
|
|
14894
14936
|
if (indexArr.length > 0) {
|
|
14895
|
-
|
|
14937
|
+
handleIndex(arr[i].children, indexArr);
|
|
14896
14938
|
} else {
|
|
14897
14939
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14898
14940
|
width: size.width
|
|
@@ -14900,7 +14942,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14900
14942
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14901
14943
|
}
|
|
14902
14944
|
};
|
|
14903
|
-
|
|
14945
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14904
14946
|
_this.setState({
|
|
14905
14947
|
showColumns: _toConsumableArray(newColumns)
|
|
14906
14948
|
});
|
|
@@ -14941,7 +14983,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14941
14983
|
};
|
|
14942
14984
|
setIsResizing(true);
|
|
14943
14985
|
document.addEventListener('mousemove', handleMouseMove);
|
|
14944
|
-
document.addEventListener('mouseup',
|
|
14986
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
14945
14987
|
};
|
|
14946
14988
|
var handleMouseMove = function handleMouseMove(e) {
|
|
14947
14989
|
e.stopPropagation();
|
|
@@ -14957,9 +14999,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14957
14999
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
14958
15000
|
}
|
|
14959
15001
|
};
|
|
14960
|
-
var
|
|
15002
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
14961
15003
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
14962
|
-
document.removeEventListener('mouseup',
|
|
15004
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
14963
15005
|
setIsResizing(false);
|
|
14964
15006
|
};
|
|
14965
15007
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15080,13 +15122,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15080
15122
|
showSummary = summary;
|
|
15081
15123
|
}
|
|
15082
15124
|
}
|
|
15083
|
-
var
|
|
15125
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15084
15126
|
arr.forEach(function (item, index) {
|
|
15085
15127
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15086
15128
|
return i || i === 0;
|
|
15087
15129
|
});
|
|
15088
15130
|
if (noEmptyArray$1(item.children)) {
|
|
15089
|
-
|
|
15131
|
+
handleColumns(item.children, indexArrInside);
|
|
15090
15132
|
} else {
|
|
15091
15133
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15092
15134
|
item.onHeaderCell = function (column) {
|
|
@@ -15102,7 +15144,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15102
15144
|
handleBssulaColumnsSpecialParams(item);
|
|
15103
15145
|
return _objectSpread2({}, item);
|
|
15104
15146
|
});
|
|
15105
|
-
|
|
15147
|
+
handleColumns(showCol, []);
|
|
15106
15148
|
if (dynamicColumns.length) {
|
|
15107
15149
|
showCol = this.handledynamicColumns(showCol);
|
|
15108
15150
|
}
|
|
@@ -15143,7 +15185,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15143
15185
|
cell: this.ResizeableTitle
|
|
15144
15186
|
}
|
|
15145
15187
|
}
|
|
15146
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15188
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15147
15189
|
summary: summary
|
|
15148
15190
|
})));
|
|
15149
15191
|
}
|
|
@@ -15240,10 +15282,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15240
15282
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15241
15283
|
return _objectSpread2({}, col);
|
|
15242
15284
|
});
|
|
15243
|
-
var
|
|
15285
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15244
15286
|
var i = indexArr.shift();
|
|
15245
15287
|
if (indexArr.length > 0) {
|
|
15246
|
-
|
|
15288
|
+
handleIndex(arr[i].children, indexArr);
|
|
15247
15289
|
} else {
|
|
15248
15290
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15249
15291
|
width: size.width
|
|
@@ -15251,7 +15293,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15251
15293
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15252
15294
|
}
|
|
15253
15295
|
};
|
|
15254
|
-
|
|
15296
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15255
15297
|
_this.setState({
|
|
15256
15298
|
showColumns: _toConsumableArray(newColumns)
|
|
15257
15299
|
});
|
|
@@ -15327,13 +15369,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15327
15369
|
showSummary = summary;
|
|
15328
15370
|
}
|
|
15329
15371
|
}
|
|
15330
|
-
var
|
|
15372
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15331
15373
|
arr.forEach(function (item, index) {
|
|
15332
15374
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15333
15375
|
return i || i === 0;
|
|
15334
15376
|
});
|
|
15335
15377
|
if (noEmptyArray$1(item.children)) {
|
|
15336
|
-
|
|
15378
|
+
handleColumns(item.children, indexArrInside);
|
|
15337
15379
|
} else {
|
|
15338
15380
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15339
15381
|
item.onHeaderCell = function (column) {
|
|
@@ -15349,7 +15391,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15349
15391
|
handleAntdColumnsSpecialParams(item);
|
|
15350
15392
|
return _objectSpread2({}, item);
|
|
15351
15393
|
});
|
|
15352
|
-
|
|
15394
|
+
handleColumns(showCol, []);
|
|
15353
15395
|
if (dynamicColumns.length) {
|
|
15354
15396
|
showCol = this.handledynamicColumns(showCol);
|
|
15355
15397
|
}
|
|
@@ -15389,7 +15431,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15389
15431
|
cell: this.ResizeableTitle
|
|
15390
15432
|
}
|
|
15391
15433
|
}
|
|
15392
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15434
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15393
15435
|
summary: summary
|
|
15394
15436
|
})));
|
|
15395
15437
|
}
|
|
@@ -15449,20 +15491,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15449
15491
|
};
|
|
15450
15492
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15451
15493
|
var routerMap = {};
|
|
15452
|
-
var
|
|
15494
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
15453
15495
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15454
15496
|
data.forEach(function (menuItem) {
|
|
15455
15497
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15456
15498
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15457
15499
|
});
|
|
15458
15500
|
if (newMenuItem.children) {
|
|
15459
|
-
|
|
15501
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
15460
15502
|
}
|
|
15461
15503
|
// Reduce memory usage
|
|
15462
15504
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15463
15505
|
});
|
|
15464
15506
|
};
|
|
15465
|
-
|
|
15507
|
+
flattenMenuData(menuData, {});
|
|
15466
15508
|
return routerMap;
|
|
15467
15509
|
};
|
|
15468
15510
|
// mode类型判断
|
|
@@ -15788,7 +15830,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15788
15830
|
display: 'flex',
|
|
15789
15831
|
gap: '8px'
|
|
15790
15832
|
}
|
|
15791
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15833
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15792
15834
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15793
15835
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15794
15836
|
onClick: function onClick() {
|
|
@@ -15796,7 +15838,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15796
15838
|
},
|
|
15797
15839
|
width: 24,
|
|
15798
15840
|
src: scanning
|
|
15799
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15841
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15800
15842
|
title: "\u5168\u5C4F"
|
|
15801
15843
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15802
15844
|
onClick: function onClick() {
|
|
@@ -15804,7 +15846,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15804
15846
|
},
|
|
15805
15847
|
width: 24,
|
|
15806
15848
|
src: quanping
|
|
15807
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15849
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15808
15850
|
}, function (prevProps, nextProps) {
|
|
15809
15851
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15810
15852
|
return false;
|
|
@@ -15889,7 +15931,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15889
15931
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15890
15932
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15891
15933
|
}, item));
|
|
15892
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15934
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15893
15935
|
}, function (prevProps, nextProps) {
|
|
15894
15936
|
if (prevProps.title !== nextProps.title) {
|
|
15895
15937
|
return false;
|
|
@@ -16529,7 +16571,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16529
16571
|
});
|
|
16530
16572
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16531
16573
|
className: 'sort_table_wrapper'
|
|
16532
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16574
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
16533
16575
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16534
16576
|
wrapClassName: 'sort_table_wrapper',
|
|
16535
16577
|
width: 810,
|
|
@@ -16580,7 +16622,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16580
16622
|
width: 525,
|
|
16581
16623
|
height: 24
|
|
16582
16624
|
}
|
|
16583
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16625
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16584
16626
|
checked: !dataSource.some(function (item) {
|
|
16585
16627
|
if (item.hidden) return true;
|
|
16586
16628
|
return false;
|
|
@@ -16634,13 +16676,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16634
16676
|
_this2.onChange(e, item.title);
|
|
16635
16677
|
}
|
|
16636
16678
|
}, item.title);
|
|
16637
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16679
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
16638
16680
|
style: {
|
|
16639
16681
|
width: '144px'
|
|
16640
16682
|
}
|
|
16641
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16683
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
16642
16684
|
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", {
|
|
16685
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16644
16686
|
className: 'sort_table_column_special'
|
|
16645
16687
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
16646
16688
|
className: 'sort_table_column_all'
|
|
@@ -17114,7 +17156,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17114
17156
|
});
|
|
17115
17157
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17116
17158
|
className: 'sort_table_wrapper'
|
|
17117
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17159
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
17118
17160
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17119
17161
|
wrapClassName: 'sort_table_wrapper',
|
|
17120
17162
|
width: 820,
|
|
@@ -17159,7 +17201,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17159
17201
|
style: {
|
|
17160
17202
|
width: 525
|
|
17161
17203
|
}
|
|
17162
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17204
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17163
17205
|
checked: !dataSource.some(function (item) {
|
|
17164
17206
|
if (item.hidden) return true;
|
|
17165
17207
|
return false;
|
|
@@ -17195,11 +17237,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17195
17237
|
_this2.onChange(e, item.name);
|
|
17196
17238
|
}
|
|
17197
17239
|
}, item.label);
|
|
17198
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17240
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17199
17241
|
style: {
|
|
17200
17242
|
width: '144px'
|
|
17201
17243
|
}
|
|
17202
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17244
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17203
17245
|
className: 'sort_table_column_all_empty'
|
|
17204
17246
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17205
17247
|
className: 'sort_table_content_wrapper'
|
|
@@ -17298,7 +17340,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17298
17340
|
};
|
|
17299
17341
|
setIsResizing(true);
|
|
17300
17342
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17301
|
-
document.addEventListener('mouseup',
|
|
17343
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
17302
17344
|
};
|
|
17303
17345
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17304
17346
|
e.stopPropagation();
|
|
@@ -17314,9 +17356,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17314
17356
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17315
17357
|
}
|
|
17316
17358
|
};
|
|
17317
|
-
var
|
|
17359
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
17318
17360
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17319
|
-
document.removeEventListener('mouseup',
|
|
17361
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
17320
17362
|
setIsResizing(false);
|
|
17321
17363
|
};
|
|
17322
17364
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -17727,7 +17769,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17727
17769
|
actionsRender = actionsRender.concat([{
|
|
17728
17770
|
type: 'text',
|
|
17729
17771
|
props: {
|
|
17730
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
17772
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
17731
17773
|
request: {
|
|
17732
17774
|
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
17775
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17973,7 +18015,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17973
18015
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17974
18016
|
bsTableCode: bsTableCode,
|
|
17975
18017
|
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, {
|
|
18018
|
+
}), (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
18019
|
ref: exportTableRef,
|
|
17978
18020
|
setShowColumns: setShowExportColumns,
|
|
17979
18021
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18066,11 +18108,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18066
18108
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18067
18109
|
var resultList = [];
|
|
18068
18110
|
var newRouter = cloneDeep(router);
|
|
18069
|
-
var
|
|
18111
|
+
var deep = function deep(router) {
|
|
18070
18112
|
if (router && Array.isArray(router)) {
|
|
18071
18113
|
router.forEach(function (item) {
|
|
18072
18114
|
if (item.children && Array.isArray(item.children)) {
|
|
18073
|
-
|
|
18115
|
+
deep(item.children);
|
|
18074
18116
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18075
18117
|
return d === item.code;
|
|
18076
18118
|
})) {
|
|
@@ -18084,10 +18126,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18084
18126
|
resultList.push(_objectSpread2({}, router));
|
|
18085
18127
|
}
|
|
18086
18128
|
};
|
|
18087
|
-
|
|
18129
|
+
deep(newRouter);
|
|
18088
18130
|
callBack([].concat(resultList));
|
|
18089
18131
|
};
|
|
18090
|
-
var
|
|
18132
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18091
18133
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18092
18134
|
var _loop = function _loop(i) {
|
|
18093
18135
|
if (routesData[i].hideInMenu) {
|
|
@@ -18101,7 +18143,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18101
18143
|
return 0; // continue
|
|
18102
18144
|
}
|
|
18103
18145
|
if (routesData[i].children) {
|
|
18104
|
-
|
|
18146
|
+
setMenuTreeData(routesData[i].children);
|
|
18105
18147
|
}
|
|
18106
18148
|
},
|
|
18107
18149
|
_ret;
|
|
@@ -18122,16 +18164,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18122
18164
|
};
|
|
18123
18165
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18124
18166
|
var routerMap = {};
|
|
18125
|
-
var
|
|
18167
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18126
18168
|
data.forEach(function (menuItem) {
|
|
18127
18169
|
if (menuItem.children) {
|
|
18128
|
-
|
|
18170
|
+
flattenMenuData(menuItem.children);
|
|
18129
18171
|
}
|
|
18130
18172
|
// Reduce memory usage
|
|
18131
18173
|
routerMap[menuItem.path] = menuItem;
|
|
18132
18174
|
});
|
|
18133
18175
|
};
|
|
18134
|
-
|
|
18176
|
+
flattenMenuData(menuData);
|
|
18135
18177
|
return routerMap;
|
|
18136
18178
|
};
|
|
18137
18179
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18277,7 +18319,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18277
18319
|
sethomepageData(homepageDataList);
|
|
18278
18320
|
setroutesData(routesDataList);
|
|
18279
18321
|
}, []);
|
|
18280
|
-
var
|
|
18322
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18281
18323
|
if (!child.hideInMenu && child.children) {
|
|
18282
18324
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18283
18325
|
style: {
|
|
@@ -18287,7 +18329,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18287
18329
|
}, formatMessage({
|
|
18288
18330
|
id: "".concat(child.locale)
|
|
18289
18331
|
})), child.children.map(function (menuItem) {
|
|
18290
|
-
return
|
|
18332
|
+
return renderChildItem(menuItem);
|
|
18291
18333
|
}));
|
|
18292
18334
|
} else if (!child.hideInMenu && child.path) {
|
|
18293
18335
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18322,7 +18364,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18322
18364
|
className: 'drawerWarp'
|
|
18323
18365
|
}, homepageData && homepageData.filter(function (d) {
|
|
18324
18366
|
return !d.hideInMenu;
|
|
18325
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
18367
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
18326
18368
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
18327
18369
|
dataSource: homepageData,
|
|
18328
18370
|
renderItem: function renderItem(child) {
|
|
@@ -18357,7 +18399,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18357
18399
|
bordered: true,
|
|
18358
18400
|
dataSource: item.children,
|
|
18359
18401
|
renderItem: function renderItem(child) {
|
|
18360
|
-
return
|
|
18402
|
+
return renderChildItem(child);
|
|
18361
18403
|
}
|
|
18362
18404
|
});
|
|
18363
18405
|
})));
|
|
@@ -18417,7 +18459,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18417
18459
|
src: allfunc
|
|
18418
18460
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
18419
18461
|
className: 'btnSpan2'
|
|
18420
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18462
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18421
18463
|
style: {
|
|
18422
18464
|
left: isDrawer ? 140 : 0,
|
|
18423
18465
|
top: 50
|
|
@@ -18463,7 +18505,7 @@ function outLogin(_x) {
|
|
|
18463
18505
|
return _outLogin.apply(this, arguments);
|
|
18464
18506
|
}
|
|
18465
18507
|
function _outLogin() {
|
|
18466
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18508
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18467
18509
|
var res;
|
|
18468
18510
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18469
18511
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18605,7 +18647,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18605
18647
|
});
|
|
18606
18648
|
};
|
|
18607
18649
|
var loginOut = /*#__PURE__*/function () {
|
|
18608
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18650
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18609
18651
|
var sessionId;
|
|
18610
18652
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18611
18653
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18709,7 +18751,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18709
18751
|
marginRight: '0px'
|
|
18710
18752
|
},
|
|
18711
18753
|
src: './xialajiantou-new.svg'
|
|
18712
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18754
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18713
18755
|
};
|
|
18714
18756
|
|
|
18715
18757
|
// -- 查询店铺 --
|
|
@@ -18717,7 +18759,7 @@ function getStoreByName(_x) {
|
|
|
18717
18759
|
return _getStoreByName.apply(this, arguments);
|
|
18718
18760
|
}
|
|
18719
18761
|
function _getStoreByName() {
|
|
18720
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18762
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18721
18763
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18722
18764
|
while (1) switch (_context.prev = _context.next) {
|
|
18723
18765
|
case 0:
|
|
@@ -18785,7 +18827,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18785
18827
|
return _fetchUserList.apply(this, arguments);
|
|
18786
18828
|
}
|
|
18787
18829
|
function _fetchUserList() {
|
|
18788
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18830
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18789
18831
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
18790
18832
|
while (1) switch (_context3.prev = _context3.next) {
|
|
18791
18833
|
case 0:
|
|
@@ -18833,7 +18875,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18833
18875
|
return debounce$1(loadOptions, debounceTimeout);
|
|
18834
18876
|
}, [debounceTimeout, key]);
|
|
18835
18877
|
var changeInput = /*#__PURE__*/function () {
|
|
18836
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18878
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18837
18879
|
var res;
|
|
18838
18880
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18839
18881
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18855,7 +18897,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18855
18897
|
};
|
|
18856
18898
|
}();
|
|
18857
18899
|
useEffect(function () {
|
|
18858
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18900
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18859
18901
|
var res;
|
|
18860
18902
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
18861
18903
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19020,7 +19062,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19020
19062
|
var resultList = [];
|
|
19021
19063
|
var newRouter = cloneDeep$1(router);
|
|
19022
19064
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19023
|
-
var
|
|
19065
|
+
var deep = function deep(router) {
|
|
19024
19066
|
if (router && Array.isArray(router)) {
|
|
19025
19067
|
router.forEach(function (item) {
|
|
19026
19068
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19030,7 +19072,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19030
19072
|
d.nameEdit = true;
|
|
19031
19073
|
}
|
|
19032
19074
|
});
|
|
19033
|
-
|
|
19075
|
+
deep(item.routes);
|
|
19034
19076
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19035
19077
|
id: "menu.".concat(item.name)
|
|
19036
19078
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19049,7 +19091,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19049
19091
|
}));
|
|
19050
19092
|
}
|
|
19051
19093
|
};
|
|
19052
|
-
|
|
19094
|
+
deep(newRouter);
|
|
19053
19095
|
setroutesData([].concat(resultList));
|
|
19054
19096
|
};
|
|
19055
19097
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19131,7 +19173,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19131
19173
|
},
|
|
19132
19174
|
title: item.fullPathName
|
|
19133
19175
|
}, renderLineStyl(item.fullPathName));
|
|
19134
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19176
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19135
19177
|
employeeCode: employeeCode
|
|
19136
19178
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19137
19179
|
};
|
|
@@ -19146,7 +19188,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19146
19188
|
var TreeNode = Tree.TreeNode;
|
|
19147
19189
|
var Search$2 = Input.Search;
|
|
19148
19190
|
var dataList = [];
|
|
19149
|
-
var
|
|
19191
|
+
var generateList = function generateList(data) {
|
|
19150
19192
|
for (var i = 0; i < data.length; i++) {
|
|
19151
19193
|
var node = data[i];
|
|
19152
19194
|
var path = node.path,
|
|
@@ -19156,11 +19198,11 @@ var _generateList = function generateList(data) {
|
|
|
19156
19198
|
name: name
|
|
19157
19199
|
});
|
|
19158
19200
|
if (node.children) {
|
|
19159
|
-
|
|
19201
|
+
generateList(node.children);
|
|
19160
19202
|
}
|
|
19161
19203
|
}
|
|
19162
19204
|
};
|
|
19163
|
-
var
|
|
19205
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19164
19206
|
var parentKey;
|
|
19165
19207
|
for (var i = 0; i < tree.length; i++) {
|
|
19166
19208
|
var node = tree[i];
|
|
@@ -19169,8 +19211,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19169
19211
|
return item.path === path;
|
|
19170
19212
|
})) {
|
|
19171
19213
|
parentKey = node.path;
|
|
19172
|
-
} else if (
|
|
19173
|
-
parentKey =
|
|
19214
|
+
} else if (getParentKey(path, node.children)) {
|
|
19215
|
+
parentKey = getParentKey(path, node.children);
|
|
19174
19216
|
}
|
|
19175
19217
|
}
|
|
19176
19218
|
}
|
|
@@ -19201,7 +19243,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19201
19243
|
var treeData = _this.state.treeData;
|
|
19202
19244
|
var expandedKeys = dataList.map(function (item) {
|
|
19203
19245
|
if (item.name.indexOf(value) > -1) {
|
|
19204
|
-
return
|
|
19246
|
+
return getParentKey(item.path, treeData);
|
|
19205
19247
|
}
|
|
19206
19248
|
return null;
|
|
19207
19249
|
}).filter(function (item, i, self) {
|
|
@@ -19215,22 +19257,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19215
19257
|
};
|
|
19216
19258
|
_this.getPathList = function (originData) {
|
|
19217
19259
|
var pathList = [];
|
|
19218
|
-
var
|
|
19260
|
+
var getList = function getList(data) {
|
|
19219
19261
|
if (Array.isArray(data)) {
|
|
19220
19262
|
data.forEach(function (item) {
|
|
19221
19263
|
pathList.push(item.path);
|
|
19222
19264
|
if (item.children) {
|
|
19223
|
-
|
|
19265
|
+
getList(item.children);
|
|
19224
19266
|
}
|
|
19225
19267
|
});
|
|
19226
19268
|
} else {
|
|
19227
19269
|
pathList.push(data.path);
|
|
19228
19270
|
if (data.children) {
|
|
19229
|
-
|
|
19271
|
+
getList(data.children);
|
|
19230
19272
|
}
|
|
19231
19273
|
}
|
|
19232
19274
|
};
|
|
19233
|
-
|
|
19275
|
+
getList(originData);
|
|
19234
19276
|
return pathList;
|
|
19235
19277
|
};
|
|
19236
19278
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19239,18 +19281,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19239
19281
|
customerMenuData = _this$props.customerMenuData,
|
|
19240
19282
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19241
19283
|
var filterItem;
|
|
19242
|
-
var
|
|
19284
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
19243
19285
|
menuData.forEach(function (item) {
|
|
19244
19286
|
if (item.path === path) {
|
|
19245
19287
|
filterItem = _objectSpread2({}, item);
|
|
19246
19288
|
return;
|
|
19247
19289
|
}
|
|
19248
19290
|
if (item.children) {
|
|
19249
|
-
|
|
19291
|
+
filterMenuItem(item.children);
|
|
19250
19292
|
}
|
|
19251
19293
|
});
|
|
19252
19294
|
};
|
|
19253
|
-
|
|
19295
|
+
filterMenuItem(treeData);
|
|
19254
19296
|
var addPathList = _this.getPathList(filterItem);
|
|
19255
19297
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19256
19298
|
var isRepet = false;
|
|
@@ -19280,8 +19322,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19280
19322
|
return item.path === '/';
|
|
19281
19323
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19282
19324
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19283
|
-
|
|
19284
|
-
|
|
19325
|
+
setMenuTreeData(routesData);
|
|
19326
|
+
generateList(routesData);
|
|
19285
19327
|
this.setState({
|
|
19286
19328
|
treeData: routesData
|
|
19287
19329
|
});
|
|
@@ -19295,16 +19337,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19295
19337
|
expandedKeys = _this$state.expandedKeys,
|
|
19296
19338
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19297
19339
|
treeData = _this$state.treeData;
|
|
19298
|
-
var
|
|
19340
|
+
var loop = function loop(data) {
|
|
19299
19341
|
return data.map(function (item) {
|
|
19300
19342
|
var index = item.name.indexOf(searchValue);
|
|
19301
19343
|
var beforeStr = item.name.substr(0, index);
|
|
19302
19344
|
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", {
|
|
19345
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19304
19346
|
style: {
|
|
19305
19347
|
color: '#f50'
|
|
19306
19348
|
}
|
|
19307
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19349
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19308
19350
|
if (item.children && item.children.length) {
|
|
19309
19351
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19310
19352
|
path: item.path,
|
|
@@ -19326,7 +19368,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19326
19368
|
width: 18,
|
|
19327
19369
|
src: arrowRight
|
|
19328
19370
|
}))))
|
|
19329
|
-
},
|
|
19371
|
+
}, loop(item.children));
|
|
19330
19372
|
}
|
|
19331
19373
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19332
19374
|
path: item.path,
|
|
@@ -19376,7 +19418,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19376
19418
|
onExpand: this.onExpand,
|
|
19377
19419
|
expandedKeys: expandedKeys,
|
|
19378
19420
|
autoExpandParent: autoExpandParent
|
|
19379
|
-
},
|
|
19421
|
+
}, loop(treeData))));
|
|
19380
19422
|
}
|
|
19381
19423
|
}]);
|
|
19382
19424
|
}(React$1.Component);
|
|
@@ -19409,24 +19451,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19409
19451
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19410
19452
|
var dragObj;
|
|
19411
19453
|
var finalDropItem;
|
|
19412
|
-
var
|
|
19454
|
+
var loop = function loop(data, path, callback) {
|
|
19413
19455
|
for (var i = 0; i < data.length; i++) {
|
|
19414
19456
|
if (data[i].path === path) {
|
|
19415
19457
|
return callback(data[i], i, data);
|
|
19416
19458
|
}
|
|
19417
19459
|
if (data[i].children) {
|
|
19418
|
-
|
|
19460
|
+
loop(data[i].children, path, callback);
|
|
19419
19461
|
}
|
|
19420
19462
|
}
|
|
19421
19463
|
};
|
|
19422
19464
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19423
|
-
|
|
19465
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
19424
19466
|
arr.splice(index, 1);
|
|
19425
19467
|
dragObj = item;
|
|
19426
19468
|
});
|
|
19427
19469
|
if (!info.dropToGap) {
|
|
19428
19470
|
// Drop on the content
|
|
19429
|
-
|
|
19471
|
+
loop(data, dropKey, function (item) {
|
|
19430
19472
|
item.children = item.children || [];
|
|
19431
19473
|
item.children.unshift(dragObj);
|
|
19432
19474
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19437,7 +19479,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19437
19479
|
// Is expanded
|
|
19438
19480
|
dropPosition === 1 // On the bottom gap
|
|
19439
19481
|
) {
|
|
19440
|
-
|
|
19482
|
+
loop(data, dropKey, function (item) {
|
|
19441
19483
|
item.children = item.children || [];
|
|
19442
19484
|
item.children.unshift(dragObj);
|
|
19443
19485
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19445,7 +19487,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19445
19487
|
} else {
|
|
19446
19488
|
var ar;
|
|
19447
19489
|
var i;
|
|
19448
|
-
|
|
19490
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
19449
19491
|
ar = arr;
|
|
19450
19492
|
i = index;
|
|
19451
19493
|
});
|
|
@@ -19484,17 +19526,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19484
19526
|
title: '编辑名称',
|
|
19485
19527
|
callBack: function callBack(newName) {
|
|
19486
19528
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19487
|
-
var
|
|
19529
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19488
19530
|
oldTreeData.forEach(function (treeItem) {
|
|
19489
19531
|
if (treeItem.path === item.path) {
|
|
19490
19532
|
treeItem.name = newName;
|
|
19491
19533
|
}
|
|
19492
19534
|
if (treeItem.children) {
|
|
19493
|
-
|
|
19535
|
+
editTreeDataName(treeItem.children);
|
|
19494
19536
|
}
|
|
19495
19537
|
});
|
|
19496
19538
|
};
|
|
19497
|
-
|
|
19539
|
+
editTreeDataName(oldTreeData);
|
|
19498
19540
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19499
19541
|
_this.setState({
|
|
19500
19542
|
modalInfo: {
|
|
@@ -19539,7 +19581,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19539
19581
|
title: '新增子目录',
|
|
19540
19582
|
callBack: function callBack(newName) {
|
|
19541
19583
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19542
|
-
var
|
|
19584
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
19543
19585
|
oldTreeData.forEach(function (treeItem) {
|
|
19544
19586
|
if (treeItem.path === item.path) {
|
|
19545
19587
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19551,11 +19593,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19551
19593
|
}];
|
|
19552
19594
|
}
|
|
19553
19595
|
if (treeItem.children) {
|
|
19554
|
-
|
|
19596
|
+
addChildFolder(treeItem.children);
|
|
19555
19597
|
}
|
|
19556
19598
|
});
|
|
19557
19599
|
};
|
|
19558
|
-
|
|
19600
|
+
addChildFolder(oldTreeData);
|
|
19559
19601
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19560
19602
|
_this.setState({
|
|
19561
19603
|
modalInfo: {
|
|
@@ -19614,7 +19656,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19614
19656
|
var _this$state = this.state,
|
|
19615
19657
|
modalInfo = _this$state.modalInfo,
|
|
19616
19658
|
checkedKeys = _this$state.checkedKeys;
|
|
19617
|
-
var
|
|
19659
|
+
var loop = function loop(data) {
|
|
19618
19660
|
return data.map(function (item) {
|
|
19619
19661
|
if (item.children && item.children.length) {
|
|
19620
19662
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -19631,7 +19673,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19631
19673
|
e.stopPropagation();
|
|
19632
19674
|
}
|
|
19633
19675
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
19634
|
-
},
|
|
19676
|
+
}, loop(item.children));
|
|
19635
19677
|
}
|
|
19636
19678
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
19637
19679
|
path: item.path,
|
|
@@ -19710,7 +19752,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19710
19752
|
children: 'children'
|
|
19711
19753
|
},
|
|
19712
19754
|
onDrop: this.onDrop
|
|
19713
|
-
},
|
|
19755
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
19714
19756
|
width: 600,
|
|
19715
19757
|
bodyStyle: {
|
|
19716
19758
|
paddingTop: '32px',
|
|
@@ -19823,7 +19865,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19823
19865
|
pathname: item.path
|
|
19824
19866
|
});
|
|
19825
19867
|
};
|
|
19826
|
-
var
|
|
19868
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
19827
19869
|
return menuData.map(function (item) {
|
|
19828
19870
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
19829
19871
|
style: {
|
|
@@ -19838,7 +19880,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19838
19880
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
19839
19881
|
paddingLeft: '4px'
|
|
19840
19882
|
}
|
|
19841
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19883
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
19842
19884
|
});
|
|
19843
19885
|
};
|
|
19844
19886
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19864,7 +19906,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19864
19906
|
style: {
|
|
19865
19907
|
paddingLeft: '5px'
|
|
19866
19908
|
}
|
|
19867
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19909
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19868
19910
|
style: {
|
|
19869
19911
|
left: isDrawer ? 140 : 0
|
|
19870
19912
|
},
|
|
@@ -19885,7 +19927,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19885
19927
|
visible: isDrawer
|
|
19886
19928
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
19887
19929
|
className: 'menu_title_line'
|
|
19888
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19930
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
19889
19931
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
19890
19932
|
style: {
|
|
19891
19933
|
fontWeight: '600',
|
|
@@ -19959,7 +20001,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19959
20001
|
return item.path === '/';
|
|
19960
20002
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19961
20003
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19962
|
-
|
|
20004
|
+
setMenuTreeData(routesData);
|
|
19963
20005
|
routesData.forEach(function (item) {
|
|
19964
20006
|
if (item.children) {
|
|
19965
20007
|
routesDataList.push(item);
|
|
@@ -19989,7 +20031,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19989
20031
|
setHeight(clientHeight - 190);
|
|
19990
20032
|
setDrawHeight(clientHeight - 70);
|
|
19991
20033
|
};
|
|
19992
|
-
var
|
|
20034
|
+
var renderChildItem = function renderChildItem(child) {
|
|
19993
20035
|
if (!child.hideInMenu && child.children) {
|
|
19994
20036
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19995
20037
|
style: {
|
|
@@ -19999,7 +20041,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19999
20041
|
}, formatMessage({
|
|
20000
20042
|
id: "".concat(child.locale)
|
|
20001
20043
|
})), child.children.map(function (menuItem) {
|
|
20002
|
-
return
|
|
20044
|
+
return renderChildItem(menuItem);
|
|
20003
20045
|
}));
|
|
20004
20046
|
} else if (!child.hideInMenu && child.path) {
|
|
20005
20047
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20141,7 +20183,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20141
20183
|
onMenuClick(e, item);
|
|
20142
20184
|
}
|
|
20143
20185
|
}, item.name);
|
|
20144
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20186
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
20145
20187
|
className: 'search_menu_content'
|
|
20146
20188
|
}, SearhData.map(function (item) {
|
|
20147
20189
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20150,7 +20192,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20150
20192
|
},
|
|
20151
20193
|
key: item.path
|
|
20152
20194
|
}, item.name);
|
|
20153
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20195
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20154
20196
|
style: {
|
|
20155
20197
|
height: "".concat(rightMenuHeight, "px"),
|
|
20156
20198
|
overflowY: 'scroll',
|
|
@@ -20162,7 +20204,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20162
20204
|
className: 'drawerWarp_right'
|
|
20163
20205
|
}, homepageData && homepageData.filter(function (d) {
|
|
20164
20206
|
return !d.hideInMenu;
|
|
20165
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20207
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
20166
20208
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20167
20209
|
dataSource: homepageData,
|
|
20168
20210
|
renderItem: function renderItem(child) {
|
|
@@ -20203,7 +20245,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20203
20245
|
bordered: true,
|
|
20204
20246
|
dataSource: item.children,
|
|
20205
20247
|
renderItem: function renderItem(child) {
|
|
20206
|
-
return
|
|
20248
|
+
return renderChildItem(child);
|
|
20207
20249
|
}
|
|
20208
20250
|
});
|
|
20209
20251
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20361,10 +20403,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20361
20403
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20362
20404
|
var menuKeys = [];
|
|
20363
20405
|
var docsId = [];
|
|
20364
|
-
var
|
|
20406
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20365
20407
|
data.forEach(function (item) {
|
|
20366
20408
|
if (item.children && item.children.length > 0) {
|
|
20367
|
-
|
|
20409
|
+
getLimitedMenuKeys(item.children);
|
|
20368
20410
|
} else {
|
|
20369
20411
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20370
20412
|
menuKeys.push(originPath);
|
|
@@ -20375,7 +20417,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20375
20417
|
});
|
|
20376
20418
|
};
|
|
20377
20419
|
try {
|
|
20378
|
-
|
|
20420
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
20379
20421
|
} catch (e) {}
|
|
20380
20422
|
return {
|
|
20381
20423
|
menuKeys: menuKeys,
|
|
@@ -20609,10 +20651,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20609
20651
|
return (node.path || '').includes('all-general-documents');
|
|
20610
20652
|
};
|
|
20611
20653
|
// 递归获取树列表
|
|
20612
|
-
var
|
|
20654
|
+
var getTreeList = function getTreeList(data) {
|
|
20613
20655
|
data.forEach(function (node) {
|
|
20614
20656
|
if (node.routes && node.routes.length > 0) {
|
|
20615
|
-
|
|
20657
|
+
getTreeList(node.routes);
|
|
20616
20658
|
return;
|
|
20617
20659
|
}
|
|
20618
20660
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20643,7 +20685,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20643
20685
|
}
|
|
20644
20686
|
});
|
|
20645
20687
|
};
|
|
20646
|
-
|
|
20688
|
+
getTreeList(treeData);
|
|
20647
20689
|
return treeList;
|
|
20648
20690
|
};
|
|
20649
20691
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21272,7 +21314,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21272
21314
|
updateState = _ref8.updateState;
|
|
21273
21315
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21274
21316
|
className: "tab_title_content"
|
|
21275
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21317
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21276
21318
|
info: item,
|
|
21277
21319
|
operateFun: _this3.operateFun,
|
|
21278
21320
|
listenRouterState: listenRouterState
|
|
@@ -21408,7 +21450,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21408
21450
|
};
|
|
21409
21451
|
}
|
|
21410
21452
|
var OperationsSlot = {
|
|
21411
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
21453
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
21412
21454
|
className: 'tab_left_operate'
|
|
21413
21455
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
21414
21456
|
onClick: function onClick() {
|
|
@@ -21424,7 +21466,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21424
21466
|
_this3.setTabNavTransLate(-100);
|
|
21425
21467
|
}
|
|
21426
21468
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
21427
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
21469
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
21428
21470
|
style: {
|
|
21429
21471
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21430
21472
|
},
|
|
@@ -21522,7 +21564,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21522
21564
|
onMouseLeave: function onMouseLeave() {
|
|
21523
21565
|
_this3.setShowMenu(false);
|
|
21524
21566
|
}
|
|
21525
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21567
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21526
21568
|
style: {
|
|
21527
21569
|
position: 'absolute',
|
|
21528
21570
|
top: '14px',
|
|
@@ -21541,7 +21583,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21541
21583
|
postMenuData: function postMenuData(menus) {
|
|
21542
21584
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21543
21585
|
},
|
|
21544
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21586
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21545
21587
|
ref: this.allFunc,
|
|
21546
21588
|
itemPath: itemPath,
|
|
21547
21589
|
handleClose: this.handleClose,
|
|
@@ -21559,7 +21601,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21559
21601
|
},
|
|
21560
21602
|
menu: {
|
|
21561
21603
|
request: function () {
|
|
21562
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21604
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21563
21605
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21564
21606
|
while (1) switch (_context.prev = _context.next) {
|
|
21565
21607
|
case 0:
|
|
@@ -21694,7 +21736,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
21694
21736
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
21695
21737
|
timeFormat = _this$props4.timeFormat,
|
|
21696
21738
|
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({
|
|
21739
|
+
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
21740
|
getDictionarySource: getDictionarySource,
|
|
21699
21741
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
21700
21742
|
timeFormat: timeFormat
|
|
@@ -21718,12 +21760,12 @@ var index$5 = (function (props) {
|
|
|
21718
21760
|
});
|
|
21719
21761
|
|
|
21720
21762
|
// @ts-nocheck
|
|
21721
|
-
var
|
|
21763
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
21722
21764
|
var result = [];
|
|
21723
21765
|
columns.forEach(function (column) {
|
|
21724
21766
|
if (column.children) {
|
|
21725
21767
|
result.push(column);
|
|
21726
|
-
result.push.apply(result,
|
|
21768
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
21727
21769
|
} else {
|
|
21728
21770
|
result.push(column);
|
|
21729
21771
|
}
|
|
@@ -21732,7 +21774,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
21732
21774
|
};
|
|
21733
21775
|
var convertToRows = function convertToRows(originColumns) {
|
|
21734
21776
|
var maxLevel = 1;
|
|
21735
|
-
var
|
|
21777
|
+
var traverse = function traverse(column, parent) {
|
|
21736
21778
|
if (parent) {
|
|
21737
21779
|
column.level = parent.level + 1;
|
|
21738
21780
|
if (maxLevel < column.level) {
|
|
@@ -21742,7 +21784,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21742
21784
|
if (column.children) {
|
|
21743
21785
|
var colSpan = 0;
|
|
21744
21786
|
column.children.forEach(function (subColumn) {
|
|
21745
|
-
|
|
21787
|
+
traverse(subColumn, column);
|
|
21746
21788
|
colSpan += subColumn.colSpan;
|
|
21747
21789
|
});
|
|
21748
21790
|
column.colSpan = colSpan;
|
|
@@ -21752,13 +21794,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21752
21794
|
};
|
|
21753
21795
|
originColumns.forEach(function (column) {
|
|
21754
21796
|
column.level = 1;
|
|
21755
|
-
|
|
21797
|
+
traverse(column);
|
|
21756
21798
|
});
|
|
21757
21799
|
var rows = [];
|
|
21758
21800
|
for (var i = 0; i < maxLevel; i++) {
|
|
21759
21801
|
rows.push([]);
|
|
21760
21802
|
}
|
|
21761
|
-
var allColumns =
|
|
21803
|
+
var allColumns = getAllColumns(originColumns);
|
|
21762
21804
|
allColumns.forEach(function (column) {
|
|
21763
21805
|
if (!column.children) {
|
|
21764
21806
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -21798,7 +21840,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21798
21840
|
};
|
|
21799
21841
|
var headersToRows = function headersToRows(originColumns) {
|
|
21800
21842
|
var maxLevel = 1;
|
|
21801
|
-
var
|
|
21843
|
+
var traverse = function traverse(column, parent) {
|
|
21802
21844
|
if (parent) {
|
|
21803
21845
|
//计算当前元素属于第几个层级
|
|
21804
21846
|
column.level = parent.level + 1;
|
|
@@ -21811,7 +21853,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21811
21853
|
var colSpan = 0;
|
|
21812
21854
|
column.children.forEach(function (subColumn) {
|
|
21813
21855
|
//进行递归
|
|
21814
|
-
|
|
21856
|
+
traverse(subColumn, column);
|
|
21815
21857
|
colSpan += subColumn.colSpan;
|
|
21816
21858
|
});
|
|
21817
21859
|
column.colSpan = colSpan;
|
|
@@ -21821,14 +21863,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21821
21863
|
};
|
|
21822
21864
|
originColumns.forEach(function (column) {
|
|
21823
21865
|
column.level = 1;
|
|
21824
|
-
|
|
21866
|
+
traverse(column);
|
|
21825
21867
|
});
|
|
21826
21868
|
var rows = [];
|
|
21827
21869
|
var lastData = [];
|
|
21828
21870
|
for (var i = 0; i < maxLevel; i++) {
|
|
21829
21871
|
rows.push([]);
|
|
21830
21872
|
}
|
|
21831
|
-
var allColumns =
|
|
21873
|
+
var allColumns = getAllColumns(originColumns);
|
|
21832
21874
|
allColumns.forEach(function (column) {
|
|
21833
21875
|
if (!column.children) {
|
|
21834
21876
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -27845,7 +27887,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
27845
27887
|
}
|
|
27846
27888
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
27847
27889
|
};
|
|
27848
|
-
var
|
|
27890
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
27849
27891
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27850
27892
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
27851
27893
|
var children = hightLightData.children,
|
|
@@ -27856,7 +27898,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
27856
27898
|
lineEnd = _loc2[2];
|
|
27857
27899
|
if (children) {
|
|
27858
27900
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
27859
|
-
return
|
|
27901
|
+
return hasHighLightChildren(v, highLightLine);
|
|
27860
27902
|
});
|
|
27861
27903
|
}
|
|
27862
27904
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27868,7 +27910,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27868
27910
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27869
27911
|
data.forEach(function (node) {
|
|
27870
27912
|
if (!node) return;
|
|
27871
|
-
node.toggled =
|
|
27913
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
27872
27914
|
node.active = isHightLight(node, highLightLine);
|
|
27873
27915
|
if (node.children) {
|
|
27874
27916
|
if (node.active) {
|
|
@@ -29299,7 +29341,7 @@ var valueType = {
|
|
|
29299
29341
|
};
|
|
29300
29342
|
|
|
29301
29343
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29302
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29344
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29303
29345
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29304
29346
|
while (1) switch (_context.prev = _context.next) {
|
|
29305
29347
|
case 0:
|
|
@@ -29367,7 +29409,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29367
29409
|
value: false
|
|
29368
29410
|
}];
|
|
29369
29411
|
var ref = useRef();
|
|
29370
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29412
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29371
29413
|
var _ref$current, source;
|
|
29372
29414
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29373
29415
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29481,7 +29523,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29481
29523
|
source: {
|
|
29482
29524
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29483
29525
|
type: function () {
|
|
29484
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29526
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29485
29527
|
var form, values, name, relates, source;
|
|
29486
29528
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29487
29529
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29961,7 +30003,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29961
30003
|
source: {
|
|
29962
30004
|
relates: ['choiceType', 'inputType'],
|
|
29963
30005
|
type: function () {
|
|
29964
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30006
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29965
30007
|
var values, name, form, source;
|
|
29966
30008
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29967
30009
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30183,7 +30225,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30183
30225
|
width: 900,
|
|
30184
30226
|
maskClosable: false,
|
|
30185
30227
|
onOk: function () {
|
|
30186
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30228
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30187
30229
|
var _ref$current4, _res$editableStatus;
|
|
30188
30230
|
var res, _res$defaultValue;
|
|
30189
30231
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30255,7 +30297,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30255
30297
|
}()
|
|
30256
30298
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30257
30299
|
ref: ref
|
|
30258
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30300
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30259
30301
|
};
|
|
30260
30302
|
|
|
30261
30303
|
// @ts-nocheck
|
|
@@ -30869,7 +30911,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30869
30911
|
return setVisible(false);
|
|
30870
30912
|
},
|
|
30871
30913
|
className: 'customFieldsDrawer'
|
|
30872
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
30914
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
30873
30915
|
style: {
|
|
30874
30916
|
display: 'flex'
|
|
30875
30917
|
}
|
|
@@ -30878,13 +30920,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30878
30920
|
flex: 1,
|
|
30879
30921
|
width: 500
|
|
30880
30922
|
}
|
|
30881
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30923
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30882
30924
|
style: {
|
|
30883
30925
|
padding: "10px 0",
|
|
30884
30926
|
fontSize: "16px",
|
|
30885
30927
|
fontWeight: "bolder"
|
|
30886
30928
|
}
|
|
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", {
|
|
30929
|
+
}, "\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
30930
|
style: {
|
|
30889
30931
|
flex: 1
|
|
30890
30932
|
}
|
|
@@ -30893,7 +30935,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30893
30935
|
onRun: onClickRun,
|
|
30894
30936
|
value: jsonEditorVal,
|
|
30895
30937
|
shallowHeight: height
|
|
30896
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
30938
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
30897
30939
|
defaultActiveKey: activeKey,
|
|
30898
30940
|
onChange: function onChange(v) {
|
|
30899
30941
|
return setActiveKey(v);
|
|
@@ -30910,13 +30952,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30910
30952
|
flex: 1,
|
|
30911
30953
|
width: 500
|
|
30912
30954
|
}
|
|
30913
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30955
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30914
30956
|
style: {
|
|
30915
30957
|
padding: "10px 0",
|
|
30916
30958
|
fontSize: "16px",
|
|
30917
30959
|
fontWeight: "bolder"
|
|
30918
30960
|
}
|
|
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", {
|
|
30961
|
+
}, "\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
30962
|
style: {
|
|
30921
30963
|
flex: 1
|
|
30922
30964
|
}
|
|
@@ -30938,13 +30980,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30938
30980
|
flex: 1,
|
|
30939
30981
|
width: 500
|
|
30940
30982
|
}
|
|
30941
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30983
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30942
30984
|
style: {
|
|
30943
30985
|
padding: "10px 0",
|
|
30944
30986
|
fontSize: "16px",
|
|
30945
30987
|
fontWeight: "bolder"
|
|
30946
30988
|
}
|
|
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", {
|
|
30989
|
+
}, "\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
30990
|
style: {
|
|
30949
30991
|
flex: 1
|
|
30950
30992
|
}
|
|
@@ -31090,7 +31132,7 @@ function getMetaData(_x) {
|
|
|
31090
31132
|
|
|
31091
31133
|
// 获取数据
|
|
31092
31134
|
function _getMetaData() {
|
|
31093
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31135
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31094
31136
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31095
31137
|
while (1) switch (_context.prev = _context.next) {
|
|
31096
31138
|
case 0:
|
|
@@ -31312,7 +31354,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31312
31354
|
tableState = _useState4[0],
|
|
31313
31355
|
setTableState = _useState4[1];
|
|
31314
31356
|
var handleOpen = /*#__PURE__*/function () {
|
|
31315
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31357
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31316
31358
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31317
31359
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31318
31360
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31631,7 +31673,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31631
31673
|
destroyOnClose: true
|
|
31632
31674
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
31633
31675
|
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, {
|
|
31676
|
+
}, 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
31677
|
justify: "center",
|
|
31636
31678
|
style: {
|
|
31637
31679
|
marginBottom: 30,
|
|
@@ -31747,7 +31789,7 @@ var CustomSelector = (function (props) {
|
|
|
31747
31789
|
var _props$ctx7;
|
|
31748
31790
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
31749
31791
|
}
|
|
31750
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
31792
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
31751
31793
|
type: "primary",
|
|
31752
31794
|
style: {
|
|
31753
31795
|
width: '30px',
|
|
@@ -31833,7 +31875,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31833
31875
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31834
31876
|
handSource = _useState2[0],
|
|
31835
31877
|
setHandSource = _useState2[1];
|
|
31836
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31878
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31837
31879
|
var resData, data;
|
|
31838
31880
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31839
31881
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31985,7 +32027,7 @@ function getRegularThresholdRange(_x) {
|
|
|
31985
32027
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
31986
32028
|
}
|
|
31987
32029
|
function _getRegularThresholdRange() {
|
|
31988
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32030
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31989
32031
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31990
32032
|
while (1) switch (_context.prev = _context.next) {
|
|
31991
32033
|
case 0:
|
|
@@ -32139,7 +32181,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32139
32181
|
};
|
|
32140
32182
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32141
32183
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32142
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32184
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32143
32185
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32144
32186
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32145
32187
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33084,7 +33126,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33084
33126
|
isAll: true,
|
|
33085
33127
|
needNameAndCode: true,
|
|
33086
33128
|
notChangeOnSelect: true,
|
|
33087
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33129
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33088
33130
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33089
33131
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33090
33132
|
case 0:
|
|
@@ -33133,7 +33175,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33133
33175
|
isAll: true,
|
|
33134
33176
|
needNameAndCode: true,
|
|
33135
33177
|
notChangeOnSelect: true,
|
|
33136
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33178
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33137
33179
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33138
33180
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33139
33181
|
case 0:
|
|
@@ -33184,7 +33226,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33184
33226
|
isAll: true,
|
|
33185
33227
|
needNameAndCode: true,
|
|
33186
33228
|
notChangeOnSelect: true,
|
|
33187
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33229
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33188
33230
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33189
33231
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33190
33232
|
case 0:
|
|
@@ -35148,7 +35190,7 @@ var App$1 = function App(_ref) {
|
|
|
35148
35190
|
borderRadius: '5px',
|
|
35149
35191
|
cursor: 'pointer'
|
|
35150
35192
|
}
|
|
35151
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35193
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
35152
35194
|
autoFocus: true,
|
|
35153
35195
|
onClick: function onClick(e) {
|
|
35154
35196
|
return e.stopPropagation();
|
|
@@ -35435,7 +35477,7 @@ function RenderCompItem(props) {
|
|
|
35435
35477
|
dictData = _useState2[0],
|
|
35436
35478
|
setDictData = _useState2[1];
|
|
35437
35479
|
var getDictData = /*#__PURE__*/function () {
|
|
35438
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35480
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35439
35481
|
var _data$map;
|
|
35440
35482
|
var data;
|
|
35441
35483
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35477,7 +35519,7 @@ function RenderCompItem(props) {
|
|
|
35477
35519
|
var style2 = {
|
|
35478
35520
|
width: '100px'
|
|
35479
35521
|
};
|
|
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, {
|
|
35522
|
+
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
35523
|
disabled: disabled,
|
|
35482
35524
|
allowClear: true,
|
|
35483
35525
|
onClear: function onClear() {
|
|
@@ -35488,7 +35530,7 @@ function RenderCompItem(props) {
|
|
|
35488
35530
|
onBlur: function onBlur(e) {
|
|
35489
35531
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35490
35532
|
}
|
|
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, {
|
|
35533
|
+
})) || 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
35534
|
disabled: disabled,
|
|
35493
35535
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35494
35536
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35501,7 +35543,7 @@ function RenderCompItem(props) {
|
|
|
35501
35543
|
onChange: function onChange(value) {
|
|
35502
35544
|
handleEdit(ites.code, value);
|
|
35503
35545
|
}
|
|
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, {
|
|
35546
|
+
})) || 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
35547
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35506
35548
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35507
35549
|
disabled: disabled,
|
|
@@ -35511,7 +35553,7 @@ function RenderCompItem(props) {
|
|
|
35511
35553
|
onChange: function onChange(value, dateString) {
|
|
35512
35554
|
handleEdit(ites.code, dateString);
|
|
35513
35555
|
}
|
|
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, {
|
|
35556
|
+
})) || 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
35557
|
showTime: true,
|
|
35516
35558
|
disabled: disabled,
|
|
35517
35559
|
defaultValue: ites.defaultValue,
|
|
@@ -35520,7 +35562,7 @@ function RenderCompItem(props) {
|
|
|
35520
35562
|
onChange: function onChange(value, timeString) {
|
|
35521
35563
|
handleEdit(ites.code, timeString);
|
|
35522
35564
|
}
|
|
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, {
|
|
35565
|
+
})) || 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
35566
|
disabled: disabled,
|
|
35525
35567
|
defaultChecked: !!ites.defaultValue,
|
|
35526
35568
|
style: style2,
|
|
@@ -35528,7 +35570,7 @@ function RenderCompItem(props) {
|
|
|
35528
35570
|
onChange: function onChange(value) {
|
|
35529
35571
|
handleEdit(ites.code, value);
|
|
35530
35572
|
}
|
|
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({
|
|
35573
|
+
})) || 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
35574
|
disabled: disabled,
|
|
35533
35575
|
allowClear: true,
|
|
35534
35576
|
showArrow: true
|
|
@@ -35546,7 +35588,7 @@ function RenderCompItem(props) {
|
|
|
35546
35588
|
key: it,
|
|
35547
35589
|
value: it
|
|
35548
35590
|
}, 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, {
|
|
35591
|
+
}))) || 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
35592
|
disabled: disabled,
|
|
35551
35593
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35552
35594
|
defaultValue: ites.defaultValue,
|
|
@@ -35556,7 +35598,7 @@ function RenderCompItem(props) {
|
|
|
35556
35598
|
handleEdit(ites.code, value);
|
|
35557
35599
|
},
|
|
35558
35600
|
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, {
|
|
35601
|
+
})) || 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
35602
|
selectBusinessType: "physicalWarehouse",
|
|
35561
35603
|
selectProps: _objectSpread2({
|
|
35562
35604
|
style: styleCommon,
|
|
@@ -35578,7 +35620,7 @@ function RenderCompItem(props) {
|
|
|
35578
35620
|
getPopupContainer: function getPopupContainer() {
|
|
35579
35621
|
return document.body;
|
|
35580
35622
|
}
|
|
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, {
|
|
35623
|
+
})) || 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
35624
|
selectBusinessType: "realWarehouse",
|
|
35583
35625
|
selectProps: _objectSpread2({
|
|
35584
35626
|
style: styleCommon,
|
|
@@ -35600,7 +35642,7 @@ function RenderCompItem(props) {
|
|
|
35600
35642
|
getPopupContainer: function getPopupContainer() {
|
|
35601
35643
|
return document.body;
|
|
35602
35644
|
}
|
|
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, {
|
|
35645
|
+
})) || 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
35646
|
selectBusinessType: "virtualWarehouse",
|
|
35605
35647
|
selectProps: _objectSpread2({
|
|
35606
35648
|
style: styleCommon,
|
|
@@ -35622,7 +35664,7 @@ function RenderCompItem(props) {
|
|
|
35622
35664
|
getPopupContainer: function getPopupContainer() {
|
|
35623
35665
|
return document.body;
|
|
35624
35666
|
}
|
|
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, {
|
|
35667
|
+
})) || 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
35668
|
selectBusinessType: "channelWarehouse",
|
|
35627
35669
|
selectProps: _objectSpread2({
|
|
35628
35670
|
style: styleCommon,
|
|
@@ -35644,7 +35686,7 @@ function RenderCompItem(props) {
|
|
|
35644
35686
|
getPopupContainer: function getPopupContainer() {
|
|
35645
35687
|
return document.body;
|
|
35646
35688
|
}
|
|
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, {
|
|
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) === 150 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35648
35690
|
selectBusinessType: "spuCommodity",
|
|
35649
35691
|
selectProps: _objectSpread2({
|
|
35650
35692
|
style: styleCommon,
|
|
@@ -35665,7 +35707,7 @@ function RenderCompItem(props) {
|
|
|
35665
35707
|
getPopupContainer: function getPopupContainer() {
|
|
35666
35708
|
return document.body;
|
|
35667
35709
|
}
|
|
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, {
|
|
35710
|
+
})) || 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
35711
|
selectBusinessType: "skuCommodity",
|
|
35670
35712
|
selectProps: _objectSpread2({
|
|
35671
35713
|
style: styleCommon,
|
|
@@ -35686,13 +35728,13 @@ function RenderCompItem(props) {
|
|
|
35686
35728
|
getPopupContainer: function getPopupContainer() {
|
|
35687
35729
|
return document.body;
|
|
35688
35730
|
}
|
|
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, {
|
|
35731
|
+
})) || 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
35732
|
disabled: disabled,
|
|
35691
35733
|
isAll: true,
|
|
35692
35734
|
needNameAndCode: true,
|
|
35693
35735
|
notChangeOnSelect: true,
|
|
35694
35736
|
initRequestSource: function () {
|
|
35695
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35737
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35696
35738
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35697
35739
|
while (1) switch (_context2.prev = _context2.next) {
|
|
35698
35740
|
case 0:
|
|
@@ -35734,7 +35776,7 @@ function RenderCompItem(props) {
|
|
|
35734
35776
|
getPopupContainer: function getPopupContainer() {
|
|
35735
35777
|
return document.body;
|
|
35736
35778
|
}
|
|
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, {
|
|
35779
|
+
})) || 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
35780
|
disabled: disabled,
|
|
35739
35781
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35740
35782
|
businessType: "department",
|
|
@@ -35747,7 +35789,7 @@ function RenderCompItem(props) {
|
|
|
35747
35789
|
getPopupContainer: function getPopupContainer() {
|
|
35748
35790
|
return document.body;
|
|
35749
35791
|
}
|
|
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, {
|
|
35792
|
+
})) || 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
35793
|
disabled: disabled,
|
|
35752
35794
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35753
35795
|
businessType: "purchase-organization",
|
|
@@ -35760,7 +35802,7 @@ function RenderCompItem(props) {
|
|
|
35760
35802
|
getPopupContainer: function getPopupContainer() {
|
|
35761
35803
|
return document.body;
|
|
35762
35804
|
}
|
|
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, {
|
|
35805
|
+
})) || 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
35806
|
disabled: disabled,
|
|
35765
35807
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35766
35808
|
businessType: "sales-organization",
|
|
@@ -35773,7 +35815,7 @@ function RenderCompItem(props) {
|
|
|
35773
35815
|
getPopupContainer: function getPopupContainer() {
|
|
35774
35816
|
return document.body;
|
|
35775
35817
|
}
|
|
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, {
|
|
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) === 240 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35777
35819
|
selectBusinessType: "supplier2",
|
|
35778
35820
|
selectProps: _objectSpread2({
|
|
35779
35821
|
style: styleCommon,
|
|
@@ -35794,7 +35836,7 @@ function RenderCompItem(props) {
|
|
|
35794
35836
|
getPopupContainer: function getPopupContainer() {
|
|
35795
35837
|
return document.body;
|
|
35796
35838
|
}
|
|
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, {
|
|
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) === 250 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35798
35840
|
selectBusinessType: "customer2",
|
|
35799
35841
|
selectProps: _objectSpread2({
|
|
35800
35842
|
style: styleCommon,
|
|
@@ -35815,7 +35857,7 @@ function RenderCompItem(props) {
|
|
|
35815
35857
|
getPopupContainer: function getPopupContainer() {
|
|
35816
35858
|
return document.body;
|
|
35817
35859
|
}
|
|
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, {
|
|
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) === 260 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35819
35861
|
selectBusinessType: "shopFile2",
|
|
35820
35862
|
selectProps: _objectSpread2({
|
|
35821
35863
|
style: styleCommon,
|
|
@@ -35836,7 +35878,7 @@ function RenderCompItem(props) {
|
|
|
35836
35878
|
getPopupContainer: function getPopupContainer() {
|
|
35837
35879
|
return document.body;
|
|
35838
35880
|
}
|
|
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, {
|
|
35881
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35840
35882
|
selectBusinessType: "employee2",
|
|
35841
35883
|
selectProps: _objectSpread2({
|
|
35842
35884
|
style: styleCommon,
|
|
@@ -35857,7 +35899,7 @@ function RenderCompItem(props) {
|
|
|
35857
35899
|
getPopupContainer: function getPopupContainer() {
|
|
35858
35900
|
return document.body;
|
|
35859
35901
|
}
|
|
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, {
|
|
35902
|
+
})) || 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
35903
|
disabled: disabled,
|
|
35862
35904
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35863
35905
|
businessType: "stock-organization",
|
|
@@ -35870,7 +35912,7 @@ function RenderCompItem(props) {
|
|
|
35870
35912
|
getPopupContainer: function getPopupContainer() {
|
|
35871
35913
|
return document.body;
|
|
35872
35914
|
}
|
|
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, {
|
|
35915
|
+
})) || 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
35916
|
disabled: disabled,
|
|
35875
35917
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35876
35918
|
businessType: "settle-organization",
|
|
@@ -35883,7 +35925,7 @@ function RenderCompItem(props) {
|
|
|
35883
35925
|
getPopupContainer: function getPopupContainer() {
|
|
35884
35926
|
return document.body;
|
|
35885
35927
|
}
|
|
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, {
|
|
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) === 310 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35887
35929
|
selectBusinessType: "deliveryMode",
|
|
35888
35930
|
selectProps: _objectSpread2({
|
|
35889
35931
|
style: styleCommon,
|
|
@@ -35904,7 +35946,7 @@ function RenderCompItem(props) {
|
|
|
35904
35946
|
getPopupContainer: function getPopupContainer() {
|
|
35905
35947
|
return document.body;
|
|
35906
35948
|
}
|
|
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, {
|
|
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) === 360 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35908
35950
|
selectBusinessType: "role",
|
|
35909
35951
|
selectProps: _objectSpread2({
|
|
35910
35952
|
style: styleCommon,
|
|
@@ -35925,7 +35967,7 @@ function RenderCompItem(props) {
|
|
|
35925
35967
|
getPopupContainer: function getPopupContainer() {
|
|
35926
35968
|
return document.body;
|
|
35927
35969
|
}
|
|
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, {
|
|
35970
|
+
})) || 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
35971
|
selectBusinessType: "brand",
|
|
35930
35972
|
selectProps: _objectSpread2({
|
|
35931
35973
|
style: styleCommon,
|
|
@@ -35946,7 +35988,7 @@ function RenderCompItem(props) {
|
|
|
35946
35988
|
getPopupContainer: function getPopupContainer() {
|
|
35947
35989
|
return document.body;
|
|
35948
35990
|
}
|
|
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, {
|
|
35991
|
+
})) || 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
35992
|
disabled: disabled,
|
|
35951
35993
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35952
35994
|
businessType: "background-category",
|
|
@@ -35959,7 +36001,7 @@ function RenderCompItem(props) {
|
|
|
35959
36001
|
getPopupContainer: function getPopupContainer() {
|
|
35960
36002
|
return document.body;
|
|
35961
36003
|
}
|
|
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, {
|
|
36004
|
+
})) || 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
36005
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35964
36006
|
style: styleCommon,
|
|
35965
36007
|
placeholder: '请选择'
|
|
@@ -35982,7 +36024,7 @@ function RenderCompItem(props) {
|
|
|
35982
36024
|
onChange: function onChange(value) {
|
|
35983
36025
|
handleEdit(ites.code, value);
|
|
35984
36026
|
}
|
|
35985
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36027
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
35986
36028
|
style: {
|
|
35987
36029
|
display: 'flex'
|
|
35988
36030
|
}
|
|
@@ -36494,7 +36536,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36494
36536
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36495
36537
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36496
36538
|
}
|
|
36497
|
-
var parallelTreeData =
|
|
36539
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
36498
36540
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36499
36541
|
var _i$key;
|
|
36500
36542
|
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 +37463,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37421
37463
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37422
37464
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37423
37465
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37424
|
-
var list =
|
|
37466
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37425
37467
|
var requiredList = list.filter(function (c) {
|
|
37426
37468
|
return c.required == 1;
|
|
37427
37469
|
}) || []; // 获取对象属性为true的集合
|
|
37428
37470
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37429
37471
|
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) ?
|
|
37472
|
+
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
37473
|
(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
37474
|
if (requiredList.some(function (r) {
|
|
37433
37475
|
return r.id === e.elementId;
|
|
@@ -38016,7 +38058,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38016
38058
|
style: {
|
|
38017
38059
|
float: 'right'
|
|
38018
38060
|
}
|
|
38019
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38061
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38020
38062
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38021
38063
|
ruleGroupInfo: {
|
|
38022
38064
|
ruleGroupList: ruleGroupList,
|
|
@@ -38034,7 +38076,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38034
38076
|
callBack: function callBack(newData) {
|
|
38035
38077
|
upDateData(newData);
|
|
38036
38078
|
}
|
|
38037
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38079
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
38038
38080
|
style: {
|
|
38039
38081
|
padding: 20
|
|
38040
38082
|
}
|
|
@@ -38409,4 +38451,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
38409
38451
|
}, children));
|
|
38410
38452
|
};
|
|
38411
38453
|
|
|
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,
|
|
38454
|
+
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 };
|