@bit-sun/business-component 4.0.13-alpha.1 → 4.0.13-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +468 -420
- package/dist/index.js +469 -421
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +9 -4
- package/src/components/Functional/DataValidation/index.tsx +1 -0
- package/src/components/Functional/QueryMutipleSelect/index.tsx +2 -5
- package/src/components/Functional/SearchSelect/utils.tsx +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -11,7 +11,6 @@ import moment$1 from 'moment';
|
|
|
11
11
|
import { EyeOutlined, DeleteOutlined, EditOutlined, CopyOutlined, CloseSquareOutlined, WarningOutlined, SendOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, UnorderedListOutlined, DashOutlined, CaretUpOutlined, CaretDownOutlined, SearchOutlined, CloseCircleOutlined, DownCircleFilled, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, CaretLeftOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
12
12
|
import { request as request$2, Table as Table$1, QueryTable, Form as Form$1 } from 'bssula';
|
|
13
13
|
import 'qs';
|
|
14
|
-
import { renderToString as renderToString$1 } from 'react-dom/server';
|
|
15
14
|
import { utils, writeFile, read } from 'xlsx';
|
|
16
15
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
17
16
|
import { useDebounceFn, useSize, useMount } from 'ahooks';
|
|
@@ -32,88 +31,9 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
32
31
|
import { visit } from 'ast-types';
|
|
33
32
|
import isArray$1 from 'lodash/isArray';
|
|
34
33
|
|
|
35
|
-
function _arrayLikeToArray(r, a) {
|
|
36
|
-
(null == a || a > r.length) && (a = r.length);
|
|
37
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
38
|
-
return n;
|
|
39
|
-
}
|
|
40
|
-
function _arrayWithHoles(r) {
|
|
41
|
-
if (Array.isArray(r)) return r;
|
|
42
|
-
}
|
|
43
|
-
function _arrayWithoutHoles(r) {
|
|
44
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
45
|
-
}
|
|
46
|
-
function _assertThisInitialized(e) {
|
|
47
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
48
|
-
return e;
|
|
49
|
-
}
|
|
50
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
51
|
-
try {
|
|
52
|
-
var i = n[a](c),
|
|
53
|
-
u = i.value;
|
|
54
|
-
} catch (n) {
|
|
55
|
-
return void e(n);
|
|
56
|
-
}
|
|
57
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
58
|
-
}
|
|
59
|
-
function _asyncToGenerator(n) {
|
|
60
|
-
return function () {
|
|
61
|
-
var t = this,
|
|
62
|
-
e = arguments;
|
|
63
|
-
return new Promise(function (r, o) {
|
|
64
|
-
var a = n.apply(t, e);
|
|
65
|
-
function _next(n) {
|
|
66
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
67
|
-
}
|
|
68
|
-
function _throw(n) {
|
|
69
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
70
|
-
}
|
|
71
|
-
_next(void 0);
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
34
|
function _callSuper(t, o, e) {
|
|
76
35
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
77
36
|
}
|
|
78
|
-
function _classCallCheck(a, n) {
|
|
79
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
80
|
-
}
|
|
81
|
-
function _defineProperties(e, r) {
|
|
82
|
-
for (var t = 0; t < r.length; t++) {
|
|
83
|
-
var o = r[t];
|
|
84
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function _createClass(e, r, t) {
|
|
88
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
89
|
-
writable: !1
|
|
90
|
-
}), e;
|
|
91
|
-
}
|
|
92
|
-
function _defineProperty(e, r, t) {
|
|
93
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
94
|
-
value: t,
|
|
95
|
-
enumerable: !0,
|
|
96
|
-
configurable: !0,
|
|
97
|
-
writable: !0
|
|
98
|
-
}) : e[r] = t, e;
|
|
99
|
-
}
|
|
100
|
-
function _getPrototypeOf(t) {
|
|
101
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
102
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
103
|
-
}, _getPrototypeOf(t);
|
|
104
|
-
}
|
|
105
|
-
function _inherits(t, e) {
|
|
106
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
107
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
108
|
-
constructor: {
|
|
109
|
-
value: t,
|
|
110
|
-
writable: !0,
|
|
111
|
-
configurable: !0
|
|
112
|
-
}
|
|
113
|
-
}), Object.defineProperty(t, "prototype", {
|
|
114
|
-
writable: !1
|
|
115
|
-
}), e && _setPrototypeOf(t, e);
|
|
116
|
-
}
|
|
117
37
|
function _isNativeReflectConstruct() {
|
|
118
38
|
try {
|
|
119
39
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -122,9 +42,6 @@ function _isNativeReflectConstruct() {
|
|
|
122
42
|
return !!t;
|
|
123
43
|
})();
|
|
124
44
|
}
|
|
125
|
-
function _iterableToArray(r) {
|
|
126
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
127
|
-
}
|
|
128
45
|
function _iterableToArrayLimit(r, l) {
|
|
129
46
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
130
47
|
if (null != t) {
|
|
@@ -152,15 +69,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
152
69
|
return a;
|
|
153
70
|
}
|
|
154
71
|
}
|
|
155
|
-
function _nonIterableRest() {
|
|
156
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
157
|
-
}
|
|
158
|
-
function _nonIterableSpread() {
|
|
159
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
160
|
-
}
|
|
161
|
-
function _objectDestructuringEmpty(t) {
|
|
162
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
163
|
-
}
|
|
164
72
|
function ownKeys(e, r) {
|
|
165
73
|
var t = Object.keys(e);
|
|
166
74
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -182,31 +90,6 @@ function _objectSpread2(e) {
|
|
|
182
90
|
}
|
|
183
91
|
return e;
|
|
184
92
|
}
|
|
185
|
-
function _objectWithoutProperties(e, t) {
|
|
186
|
-
if (null == e) return {};
|
|
187
|
-
var o,
|
|
188
|
-
r,
|
|
189
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
190
|
-
if (Object.getOwnPropertySymbols) {
|
|
191
|
-
var s = Object.getOwnPropertySymbols(e);
|
|
192
|
-
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
193
|
-
}
|
|
194
|
-
return i;
|
|
195
|
-
}
|
|
196
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
197
|
-
if (null == r) return {};
|
|
198
|
-
var t = {};
|
|
199
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
200
|
-
if (e.includes(n)) continue;
|
|
201
|
-
t[n] = r[n];
|
|
202
|
-
}
|
|
203
|
-
return t;
|
|
204
|
-
}
|
|
205
|
-
function _possibleConstructorReturn(t, e) {
|
|
206
|
-
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
207
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
208
|
-
return _assertThisInitialized(t);
|
|
209
|
-
}
|
|
210
93
|
function _regeneratorRuntime() {
|
|
211
94
|
_regeneratorRuntime = function () {
|
|
212
95
|
return e;
|
|
@@ -508,20 +391,6 @@ function _regeneratorRuntime() {
|
|
|
508
391
|
}
|
|
509
392
|
}, e;
|
|
510
393
|
}
|
|
511
|
-
function _setPrototypeOf(t, e) {
|
|
512
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
513
|
-
return t.__proto__ = e, t;
|
|
514
|
-
}, _setPrototypeOf(t, e);
|
|
515
|
-
}
|
|
516
|
-
function _slicedToArray(r, e) {
|
|
517
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
518
|
-
}
|
|
519
|
-
function _toArray(r) {
|
|
520
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
521
|
-
}
|
|
522
|
-
function _toConsumableArray(r) {
|
|
523
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
524
|
-
}
|
|
525
394
|
function _toPrimitive(t, r) {
|
|
526
395
|
if ("object" != typeof t || !t) return t;
|
|
527
396
|
var e = t[Symbol.toPrimitive];
|
|
@@ -545,12 +414,180 @@ function _typeof(o) {
|
|
|
545
414
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
546
415
|
}, _typeof(o);
|
|
547
416
|
}
|
|
548
|
-
function
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
var
|
|
552
|
-
|
|
417
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
418
|
+
try {
|
|
419
|
+
var info = gen[key](arg);
|
|
420
|
+
var value = info.value;
|
|
421
|
+
} catch (error) {
|
|
422
|
+
reject(error);
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
if (info.done) {
|
|
426
|
+
resolve(value);
|
|
427
|
+
} else {
|
|
428
|
+
Promise.resolve(value).then(_next, _throw);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
function _asyncToGenerator(fn) {
|
|
432
|
+
return function () {
|
|
433
|
+
var self = this,
|
|
434
|
+
args = arguments;
|
|
435
|
+
return new Promise(function (resolve, reject) {
|
|
436
|
+
var gen = fn.apply(self, args);
|
|
437
|
+
function _next(value) {
|
|
438
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
439
|
+
}
|
|
440
|
+
function _throw(err) {
|
|
441
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
442
|
+
}
|
|
443
|
+
_next(undefined);
|
|
444
|
+
});
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
function _classCallCheck(instance, Constructor) {
|
|
448
|
+
if (!(instance instanceof Constructor)) {
|
|
449
|
+
throw new TypeError("Cannot call a class as a function");
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
function _defineProperties(target, props) {
|
|
453
|
+
for (var i = 0; i < props.length; i++) {
|
|
454
|
+
var descriptor = props[i];
|
|
455
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
456
|
+
descriptor.configurable = true;
|
|
457
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
458
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
462
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
463
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
464
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
465
|
+
writable: false
|
|
466
|
+
});
|
|
467
|
+
return Constructor;
|
|
468
|
+
}
|
|
469
|
+
function _defineProperty(obj, key, value) {
|
|
470
|
+
key = _toPropertyKey(key);
|
|
471
|
+
if (key in obj) {
|
|
472
|
+
Object.defineProperty(obj, key, {
|
|
473
|
+
value: value,
|
|
474
|
+
enumerable: true,
|
|
475
|
+
configurable: true,
|
|
476
|
+
writable: true
|
|
477
|
+
});
|
|
478
|
+
} else {
|
|
479
|
+
obj[key] = value;
|
|
480
|
+
}
|
|
481
|
+
return obj;
|
|
482
|
+
}
|
|
483
|
+
function _inherits(subClass, superClass) {
|
|
484
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
485
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
553
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.");
|
|
554
591
|
}
|
|
555
592
|
|
|
556
593
|
var ENUM = {
|
|
@@ -986,6 +1023,12 @@ styleInject(css_248z);
|
|
|
986
1023
|
|
|
987
1024
|
var noImg = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2244px%22%20height%3D%2244px%22%20viewBox%3D%220%200%2044%2044%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E8%92%99%E7%89%88%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22path-1%22%20points%3D%22-1.56319402e-13%201.84741111e-13%2044%201.84741111e-13%2044%2044%20-1.56319402e-13%2044%22%3E%3C%2Fpolygon%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-354.000000%2C%20-672.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E4%B8%80%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%28240.000000%2C%20664.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%8D%95%E6%8D%AE%E7%BC%96%E5%8F%B7%22%20transform%3D%22translate%28106.000000%2C%200.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20transform%3D%22translate%288.000000%2C%208.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23E6F3FF%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M28.4962332%2C15%20C29.4007284%2C15%2030.1339666%2C15.7383979%2030.1339666%2C16.6492578%20L30.1339666%2C27.5596481%20C30.1339666%2C28.4705081%2029.4007284%2C29.208906%2028.4962332%2C29.208906%20L14.6377334%2C29.208906%20C13.7332382%2C29.208906%2013%2C28.4705081%2013%2C27.5596481%20L13%2C16.6492578%20C13%2C15.7383979%2013.7332382%2C15%2014.6377334%2C15%20L28.4956873%2C15%20L28.4962332%2C15%20Z%20M28.4962332%2C16.6492578%20L14.6377334%2C16.6492578%20L14.6377334%2C27.5596481%20L28.4956873%2C27.5596481%20L28.4956873%2C16.6492578%20L28.4962332%2C16.6492578%20Z%20M26.6996397%2C18.6899395%20L26.6996397%2C20.3369983%20C24.5001638%2C20.357889%2023.12283%2C21.0967565%2022.4448084%2C22.5305113%20L22.3847582%2C22.6624519%20L22.3137897%2C22.8224299%20C21.2241511%2C25.1880154%2019.0819959%2C26.322155%2016.0560105%2C26.1940627%20L16.243258%2C26.2001099%20L16.2443498%2C24.5508521%20C18.5633803%2C24.6206707%2020.0357026%2C23.8290269%2020.8190851%2C22.1473337%20L20.8824107%2C22.006597%20L20.9479201%2C21.8603628%20C21.9158205%2C19.7680044%2023.8767333%2C18.7196262%2026.6996397%2C18.6899395%20L26.6996397%2C18.6899395%20Z%20M17.5583579%2C18.3435954%20C18.1149239%2C18.3435954%2018.5661099%2C18.7979562%2018.5661099%2C19.3584387%20C18.5661099%2C19.9189212%2018.1149239%2C20.373282%2017.5583579%2C20.373282%20C17.0016411%2C20.373282%2016.550333%2C19.9187981%2016.550333%2C19.3581638%20C16.550333%2C18.7975295%2017.0016411%2C18.3430456%2017.5583579%2C18.3430456%20L17.5583579%2C18.3435954%20Z%22%20fill%3D%22%23A3D1FF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
988
1025
|
|
|
1026
|
+
module.exports = require('./server.node');
|
|
1027
|
+
|
|
1028
|
+
var ReactDOMServer = /*#__PURE__*/Object.freeze({
|
|
1029
|
+
__proto__: null
|
|
1030
|
+
});
|
|
1031
|
+
|
|
989
1032
|
// 带有toptile 清提示 并且会换行的
|
|
990
1033
|
var handleTextDouble = function handleTextDouble(textOne, textTwo) {
|
|
991
1034
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -1060,13 +1103,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1060
1103
|
imgHtml.innerHTML = str;
|
|
1061
1104
|
}
|
|
1062
1105
|
// 测试使用 测试类型缩小 end
|
|
1063
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1106
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1064
1107
|
className: "clomnsImg"
|
|
1065
1108
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1066
1109
|
src: url,
|
|
1067
1110
|
width: "16px",
|
|
1068
1111
|
height: "16px"
|
|
1069
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1112
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
1070
1113
|
className: "clomnsImg2"
|
|
1071
1114
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1072
1115
|
src: noImg
|
|
@@ -1188,7 +1231,7 @@ var authFn = function authFn(code) {
|
|
|
1188
1231
|
};
|
|
1189
1232
|
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1190
1233
|
var renderToString = function renderToString(render) {
|
|
1191
|
-
return typeof render === 'string' ? render :
|
|
1234
|
+
return typeof render === 'string' ? render : undefined(render);
|
|
1192
1235
|
};
|
|
1193
1236
|
|
|
1194
1237
|
function downloadExcel(data, fileName, isResUrl) {
|
|
@@ -1202,7 +1245,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1202
1245
|
}
|
|
1203
1246
|
save_link.click();
|
|
1204
1247
|
}
|
|
1205
|
-
var
|
|
1248
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1206
1249
|
return data.map(function (item) {
|
|
1207
1250
|
if (!item.name || !item.path) {
|
|
1208
1251
|
return null;
|
|
@@ -1222,7 +1265,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1222
1265
|
authority: item.authority || parentAuthority
|
|
1223
1266
|
});
|
|
1224
1267
|
if (item.routes) {
|
|
1225
|
-
var children =
|
|
1268
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1226
1269
|
// Reduce memory usage
|
|
1227
1270
|
result.children = children;
|
|
1228
1271
|
}
|
|
@@ -1232,7 +1275,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1232
1275
|
return item;
|
|
1233
1276
|
});
|
|
1234
1277
|
};
|
|
1235
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1278
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual);
|
|
1236
1279
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1237
1280
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1238
1281
|
if (backHistoryPath) {
|
|
@@ -1541,7 +1584,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1541
1584
|
// sheepMap是表头字段中英文映射
|
|
1542
1585
|
// sheetCount:表的数量,默认一张
|
|
1543
1586
|
var resolveFile = /*#__PURE__*/function () {
|
|
1544
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1587
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1545
1588
|
var config,
|
|
1546
1589
|
data,
|
|
1547
1590
|
_args = arguments;
|
|
@@ -1580,7 +1623,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1580
1623
|
}();
|
|
1581
1624
|
//读取文件
|
|
1582
1625
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1583
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1626
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1584
1627
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1585
1628
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1586
1629
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1673,14 +1716,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1673
1716
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1674
1717
|
|
|
1675
1718
|
// 获取树平行结构
|
|
1676
|
-
var
|
|
1719
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1677
1720
|
var childrenKey = chilKey || 'children';
|
|
1678
1721
|
treeData.forEach(function (el) {
|
|
1679
1722
|
var _el$childrenKey;
|
|
1680
1723
|
result.push(el);
|
|
1681
1724
|
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) {
|
|
1682
1725
|
// 子级递归
|
|
1683
|
-
|
|
1726
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1684
1727
|
}
|
|
1685
1728
|
});
|
|
1686
1729
|
return result;
|
|
@@ -1957,13 +2000,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1957
2000
|
imgHtml.innerHTML = str;
|
|
1958
2001
|
}
|
|
1959
2002
|
// 测试使用 测试类型缩小 end
|
|
1960
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
2003
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1961
2004
|
className: "clomnsImg"
|
|
1962
2005
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1963
2006
|
src: url,
|
|
1964
2007
|
width: "16px",
|
|
1965
2008
|
height: "16px"
|
|
1966
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2009
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1967
2010
|
src: noImg
|
|
1968
2011
|
}))));
|
|
1969
2012
|
};
|
|
@@ -2025,7 +2068,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2025
2068
|
}
|
|
2026
2069
|
});
|
|
2027
2070
|
};
|
|
2028
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2071
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && ( /*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2029
2072
|
disabled: disabled,
|
|
2030
2073
|
onChange: function onChange(e) {
|
|
2031
2074
|
var v = e.target.value;
|
|
@@ -2035,7 +2078,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2035
2078
|
width: 170
|
|
2036
2079
|
},
|
|
2037
2080
|
value: inputValue
|
|
2038
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2081
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2039
2082
|
disabled: disabled,
|
|
2040
2083
|
onBlur: function onBlur(e) {
|
|
2041
2084
|
var v = parseFloat(e.target.value);
|
|
@@ -2414,16 +2457,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2414
2457
|
var handleExportBarCode = handleExport;
|
|
2415
2458
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2416
2459
|
var routerMap = {};
|
|
2417
|
-
var
|
|
2460
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2418
2461
|
data.forEach(function (menuItem) {
|
|
2419
2462
|
if (menuItem.children) {
|
|
2420
|
-
|
|
2463
|
+
flattenMenuData(menuItem.children);
|
|
2421
2464
|
}
|
|
2422
2465
|
// Reduce memory usage
|
|
2423
2466
|
routerMap[menuItem.path] = menuItem;
|
|
2424
2467
|
});
|
|
2425
2468
|
};
|
|
2426
|
-
|
|
2469
|
+
flattenMenuData(menuData);
|
|
2427
2470
|
return routerMap;
|
|
2428
2471
|
};
|
|
2429
2472
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2566,7 +2609,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2566
2609
|
return request$1(url, parms).then(handleResponseData);
|
|
2567
2610
|
};
|
|
2568
2611
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2569
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2612
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2570
2613
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2571
2614
|
while (1) switch (_context.prev = _context.next) {
|
|
2572
2615
|
case 0:
|
|
@@ -3240,7 +3283,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3240
3283
|
placement: "bottomLeft"
|
|
3241
3284
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3242
3285
|
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"))
|
|
3243
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))
|
|
3286
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null)), /*#__PURE__*/React$1.createElement("div", {
|
|
3287
|
+
style: {
|
|
3288
|
+
color: 'red'
|
|
3289
|
+
}
|
|
3290
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3244
3291
|
trigger: ['click'],
|
|
3245
3292
|
overlay: this.menuList,
|
|
3246
3293
|
placement: "bottomRight"
|
|
@@ -3915,7 +3962,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3915
3962
|
placement: "bottomLeft"
|
|
3916
3963
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3917
3964
|
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"))
|
|
3918
|
-
}, /*#__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, {
|
|
3965
|
+
}, /*#__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, {
|
|
3919
3966
|
trigger: ['click'],
|
|
3920
3967
|
overlay: this.menuList,
|
|
3921
3968
|
placement: "bottomRight"
|
|
@@ -4430,12 +4477,11 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4430
4477
|
onChange(newValue);
|
|
4431
4478
|
};
|
|
4432
4479
|
return /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
4433
|
-
open: true,
|
|
4434
4480
|
overlayClassName: 'searchSelectMaxTagToolTip',
|
|
4435
4481
|
destroyTooltipOnHide: true,
|
|
4436
4482
|
placement: "topRight",
|
|
4437
4483
|
autoAdjustOverflow: false,
|
|
4438
|
-
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4484
|
+
title: ( /*#__PURE__*/React$1.createElement("div", {
|
|
4439
4485
|
style: {
|
|
4440
4486
|
margin: '6px 8px 0px'
|
|
4441
4487
|
},
|
|
@@ -4537,10 +4583,8 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4537
4583
|
uniqueValue = _useState16[0],
|
|
4538
4584
|
setUniqueValue = _useState16[1];
|
|
4539
4585
|
useEffect(function () {
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
onValueChange(value);
|
|
4543
|
-
}
|
|
4586
|
+
setPopValue(value);
|
|
4587
|
+
onValueChange(value);
|
|
4544
4588
|
}, [value]);
|
|
4545
4589
|
useEffect(function () {
|
|
4546
4590
|
setUniqueValue(makeUniqueValue());
|
|
@@ -4561,7 +4605,6 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4561
4605
|
var formatValue = (_ToCDB = ToCDB$1(v)) === null || _ToCDB === void 0 ? void 0 : (_ToCDB$split = _ToCDB.split(/[/\n/\s,;]/)) === null || _ToCDB$split === void 0 ? void 0 : (_ToCDB$split$filter = _ToCDB$split.filter(function (item) {
|
|
4562
4606
|
return item;
|
|
4563
4607
|
})) === null || _ToCDB$split$filter === void 0 ? void 0 : _ToCDB$split$filter.join(',');
|
|
4564
|
-
console.log(formatValue, '1111formatValue');
|
|
4565
4608
|
setValue(formatValue);
|
|
4566
4609
|
};
|
|
4567
4610
|
var handleCancel = function handleCancel() {
|
|
@@ -4669,10 +4712,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4669
4712
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4670
4713
|
});
|
|
4671
4714
|
},
|
|
4672
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4715
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
4673
4716
|
size: "small",
|
|
4674
4717
|
className: 'searchSelectSpin'
|
|
4675
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4718
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
4676
4719
|
style: {
|
|
4677
4720
|
textAlign: 'center'
|
|
4678
4721
|
}
|
|
@@ -4904,7 +4947,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4904
4947
|
title: item.name,
|
|
4905
4948
|
className: "propertyGroup_checkbox_container"
|
|
4906
4949
|
}, item.name));
|
|
4907
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
4950
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
4908
4951
|
style: {
|
|
4909
4952
|
width: '50px',
|
|
4910
4953
|
cursor: 'pointer',
|
|
@@ -4917,7 +4960,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4917
4960
|
setShowNotCommon(!showNotCommon);
|
|
4918
4961
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4919
4962
|
}
|
|
4920
|
-
}, 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"))))));
|
|
4963
|
+
}, 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"))))));
|
|
4921
4964
|
};
|
|
4922
4965
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4923
4966
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5147,7 +5190,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5147
5190
|
propertyData: item,
|
|
5148
5191
|
handleProperyItemChange: handleProperyItemChange
|
|
5149
5192
|
});
|
|
5150
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5193
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5151
5194
|
style: {
|
|
5152
5195
|
width: '50px',
|
|
5153
5196
|
cursor: 'pointer',
|
|
@@ -5157,7 +5200,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5157
5200
|
onClick: function onClick() {
|
|
5158
5201
|
return setShowNotCommon(!showNotCommon);
|
|
5159
5202
|
}
|
|
5160
|
-
}, 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"))))))));
|
|
5203
|
+
}, 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"))))))));
|
|
5161
5204
|
};
|
|
5162
5205
|
|
|
5163
5206
|
var Option$1 = Select.Option;
|
|
@@ -6176,13 +6219,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6176
6219
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6177
6220
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6178
6221
|
className: 'search_select'
|
|
6179
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6222
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
6180
6223
|
onClick: function onClick() {
|
|
6181
6224
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6182
6225
|
(_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);
|
|
6183
6226
|
showModal();
|
|
6184
6227
|
}
|
|
6185
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6228
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
6186
6229
|
title: getShowStr(),
|
|
6187
6230
|
style: {
|
|
6188
6231
|
overflow: 'hidden',
|
|
@@ -6209,10 +6252,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6209
6252
|
dropdownRender: function dropdownRender(menu) {
|
|
6210
6253
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6211
6254
|
},
|
|
6212
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6255
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
6213
6256
|
size: "small",
|
|
6214
6257
|
className: 'searchSelectSpin'
|
|
6215
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6258
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
6216
6259
|
style: {
|
|
6217
6260
|
textAlign: 'center'
|
|
6218
6261
|
}
|
|
@@ -6252,7 +6295,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6252
6295
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6253
6296
|
filterTxt: searchValue
|
|
6254
6297
|
}));
|
|
6255
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6298
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6256
6299
|
maskClosable: false,
|
|
6257
6300
|
destroyOnClose: true,
|
|
6258
6301
|
width: "80%",
|
|
@@ -6849,7 +6892,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6849
6892
|
style: {
|
|
6850
6893
|
width: 525
|
|
6851
6894
|
}
|
|
6852
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6895
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6853
6896
|
checked: !dataSource.some(function (item) {
|
|
6854
6897
|
if (item.hidden) return true;
|
|
6855
6898
|
return false;
|
|
@@ -6887,13 +6930,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6887
6930
|
_this2.onChange(e, item.title);
|
|
6888
6931
|
}
|
|
6889
6932
|
}, item.title);
|
|
6890
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6933
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
6891
6934
|
style: {
|
|
6892
6935
|
width: '144px'
|
|
6893
6936
|
}
|
|
6894
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6937
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
6895
6938
|
className: 'sort_table_column_all_empty'
|
|
6896
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6939
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6897
6940
|
className: 'sort_table_column_special'
|
|
6898
6941
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6899
6942
|
className: 'sort_table_column_all'
|
|
@@ -7082,7 +7125,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7082
7125
|
});
|
|
7083
7126
|
};
|
|
7084
7127
|
// 格式化树选择器数据源
|
|
7085
|
-
var
|
|
7128
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7086
7129
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7087
7130
|
return {
|
|
7088
7131
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7092,7 +7135,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7092
7135
|
isLeaf: !haveChildren,
|
|
7093
7136
|
disabled: haveChildren,
|
|
7094
7137
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7095
|
-
return
|
|
7138
|
+
return mapSearchTree(i, resKeyValue);
|
|
7096
7139
|
}) : []
|
|
7097
7140
|
};
|
|
7098
7141
|
};
|
|
@@ -7101,7 +7144,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7101
7144
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7102
7145
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7103
7146
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7104
|
-
return
|
|
7147
|
+
return mapSearchTree(ites, resKeyValue);
|
|
7105
7148
|
}) || [];
|
|
7106
7149
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7107
7150
|
};
|
|
@@ -7272,7 +7315,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7272
7315
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7273
7316
|
// FIXME: 特殊业务逻辑
|
|
7274
7317
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7275
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7318
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7276
7319
|
var result;
|
|
7277
7320
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7278
7321
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7525,7 +7568,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7525
7568
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7526
7569
|
value: text || null,
|
|
7527
7570
|
onChange: function () {
|
|
7528
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7571
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7529
7572
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7530
7573
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7531
7574
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8133,10 +8176,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8133
8176
|
var newColumns = arr.map(function (col) {
|
|
8134
8177
|
return _objectSpread2({}, col);
|
|
8135
8178
|
});
|
|
8136
|
-
var
|
|
8179
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8137
8180
|
var i = indexArr.shift();
|
|
8138
8181
|
if (indexArr.length > 0) {
|
|
8139
|
-
|
|
8182
|
+
handleIndex(arr[i].children, indexArr);
|
|
8140
8183
|
} else {
|
|
8141
8184
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8142
8185
|
width: size.width
|
|
@@ -8144,7 +8187,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8144
8187
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8145
8188
|
}
|
|
8146
8189
|
};
|
|
8147
|
-
|
|
8190
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8148
8191
|
callback(newColumns);
|
|
8149
8192
|
};
|
|
8150
8193
|
};
|
|
@@ -8154,13 +8197,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8154
8197
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8155
8198
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8156
8199
|
};
|
|
8157
|
-
var
|
|
8200
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8158
8201
|
arr.forEach(function (item, index) {
|
|
8159
8202
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8160
8203
|
return i || i === 0;
|
|
8161
8204
|
});
|
|
8162
8205
|
if (noEmptyArray$1(item.children)) {
|
|
8163
|
-
|
|
8206
|
+
handleColumns(item.children, indexArrInside);
|
|
8164
8207
|
} else {
|
|
8165
8208
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8166
8209
|
item.onHeaderCell = function (column) {
|
|
@@ -8176,14 +8219,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8176
8219
|
handleAntdColumnsSpecialParams(item);
|
|
8177
8220
|
return _objectSpread2({}, item);
|
|
8178
8221
|
});
|
|
8179
|
-
|
|
8222
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
8180
8223
|
return setShowToChooseColumnsCallback(res);
|
|
8181
8224
|
});
|
|
8182
8225
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8183
8226
|
handleAntdColumnsSpecialParams(item);
|
|
8184
8227
|
return _objectSpread2({}, item);
|
|
8185
8228
|
});
|
|
8186
|
-
|
|
8229
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8187
8230
|
return setShowColumnsCallback(res);
|
|
8188
8231
|
});
|
|
8189
8232
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8194,7 +8237,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8194
8237
|
id: "add_select_div_".concat(uniqueValue)
|
|
8195
8238
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
8196
8239
|
onClick: handleShowModal
|
|
8197
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
8240
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
8198
8241
|
width: '1200px',
|
|
8199
8242
|
style: {
|
|
8200
8243
|
top: 20
|
|
@@ -9108,7 +9151,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9108
9151
|
});
|
|
9109
9152
|
};
|
|
9110
9153
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9111
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9154
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9112
9155
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9113
9156
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9114
9157
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9191,10 +9234,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9191
9234
|
var newColumns = arr.map(function (col) {
|
|
9192
9235
|
return _objectSpread2({}, col);
|
|
9193
9236
|
});
|
|
9194
|
-
var
|
|
9237
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
9195
9238
|
var i = indexArr.shift();
|
|
9196
9239
|
if (indexArr.length > 0) {
|
|
9197
|
-
|
|
9240
|
+
handleIndex(arr[i].children, indexArr);
|
|
9198
9241
|
} else {
|
|
9199
9242
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9200
9243
|
width: size.width
|
|
@@ -9202,17 +9245,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9202
9245
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9203
9246
|
}
|
|
9204
9247
|
};
|
|
9205
|
-
|
|
9248
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
9206
9249
|
callback(newColumns);
|
|
9207
9250
|
};
|
|
9208
9251
|
};
|
|
9209
|
-
var
|
|
9252
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9210
9253
|
arr.forEach(function (item, index) {
|
|
9211
9254
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9212
9255
|
return i || i === 0;
|
|
9213
9256
|
});
|
|
9214
9257
|
if (noEmptyArray$1(item.children)) {
|
|
9215
|
-
|
|
9258
|
+
handleColumns(item.children, indexArrInside);
|
|
9216
9259
|
} else {
|
|
9217
9260
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9218
9261
|
item.onHeaderCell = function (column) {
|
|
@@ -9228,7 +9271,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9228
9271
|
handleAntdColumnsSpecialParams(item);
|
|
9229
9272
|
return _objectSpread2({}, item);
|
|
9230
9273
|
});
|
|
9231
|
-
|
|
9274
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
9232
9275
|
return setShowColumnsCallback(res);
|
|
9233
9276
|
});
|
|
9234
9277
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9543,7 +9586,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9543
9586
|
});
|
|
9544
9587
|
};
|
|
9545
9588
|
// 格式化树选择器数据源
|
|
9546
|
-
var
|
|
9589
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9547
9590
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9548
9591
|
return {
|
|
9549
9592
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9553,7 +9596,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9553
9596
|
isLeaf: !haveChildren,
|
|
9554
9597
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9555
9598
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9556
|
-
return
|
|
9599
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9557
9600
|
}) : []
|
|
9558
9601
|
};
|
|
9559
9602
|
};
|
|
@@ -9567,7 +9610,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9567
9610
|
disabledJudge = false;
|
|
9568
9611
|
}
|
|
9569
9612
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9570
|
-
return
|
|
9613
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9571
9614
|
}) || [];
|
|
9572
9615
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9573
9616
|
};
|
|
@@ -9834,16 +9877,19 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9834
9877
|
type: 'multipleQuerySearchSelect',
|
|
9835
9878
|
props: {
|
|
9836
9879
|
selectProps: {
|
|
9837
|
-
mode: "multiple"
|
|
9880
|
+
mode: "multiple",
|
|
9881
|
+
placeholder: '请输入SKU编码查询'
|
|
9838
9882
|
},
|
|
9839
9883
|
requestConfig: {
|
|
9840
9884
|
url: '/items/sku//listNoPage/Simple',
|
|
9841
|
-
filter: 'qp-name-like',
|
|
9842
|
-
// filter: 'qp-itemCode,name-orGroup,like',
|
|
9885
|
+
filter: 'qp-skuCode,name-orGroup,like',
|
|
9843
9886
|
mappingTextField: 'name',
|
|
9844
9887
|
mappingValueField: 'skuCode',
|
|
9845
9888
|
sourceName: 'qp-skuCode-in',
|
|
9846
|
-
specialBracket: true
|
|
9889
|
+
specialBracket: true,
|
|
9890
|
+
otherParams: {
|
|
9891
|
+
'ownOrgSign': getCurrentTargetBgId()
|
|
9892
|
+
} // 默认参数
|
|
9847
9893
|
}
|
|
9848
9894
|
}
|
|
9849
9895
|
}
|
|
@@ -9856,10 +9902,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9856
9902
|
field: {
|
|
9857
9903
|
type: 'multipleQuerySearchSelect',
|
|
9858
9904
|
props: {
|
|
9905
|
+
selectProps: {
|
|
9906
|
+
placeholder: '请输入SPU编码查询'
|
|
9907
|
+
},
|
|
9859
9908
|
requestConfig: {
|
|
9860
9909
|
url: '/items/item/listNoPage/Simple',
|
|
9861
|
-
filter: 'qp-name-like',
|
|
9862
|
-
// filter: 'qp-skuCode,name-orGroup,like',
|
|
9910
|
+
filter: 'qp-itemCode,name-orGroup,like',
|
|
9863
9911
|
mappingTextField: 'name',
|
|
9864
9912
|
mappingValueField: 'itemCode',
|
|
9865
9913
|
sourceName: 'qp-itemCode-in',
|
|
@@ -13667,7 +13715,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13667
13715
|
};
|
|
13668
13716
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
13669
13717
|
onClick: handleShowModal
|
|
13670
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13718
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13671
13719
|
onOk: handleOk,
|
|
13672
13720
|
onCancel: handleCancel,
|
|
13673
13721
|
destroyOnClose: true,
|
|
@@ -13786,7 +13834,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13786
13834
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13787
13835
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13788
13836
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13789
|
-
var
|
|
13837
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13790
13838
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13791
13839
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13792
13840
|
return {
|
|
@@ -13798,7 +13846,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13798
13846
|
isLeaf: !haveChildren,
|
|
13799
13847
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13800
13848
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13801
|
-
return
|
|
13849
|
+
return mapSearchTree(i);
|
|
13802
13850
|
}) : []
|
|
13803
13851
|
};
|
|
13804
13852
|
};
|
|
@@ -13816,8 +13864,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13816
13864
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13817
13865
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
13818
13866
|
headers: headers
|
|
13819
|
-
}).then(/*#__PURE__*/function () {
|
|
13820
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13867
|
+
}).then( /*#__PURE__*/function () {
|
|
13868
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13821
13869
|
var _ctx$form;
|
|
13822
13870
|
var resData, coverData, data, dataList;
|
|
13823
13871
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13844,7 +13892,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13844
13892
|
case 9:
|
|
13845
13893
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13846
13894
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13847
|
-
return
|
|
13895
|
+
return mapSearchTree(ites);
|
|
13848
13896
|
}) || [];
|
|
13849
13897
|
case 11:
|
|
13850
13898
|
_context.next = 14;
|
|
@@ -13882,11 +13930,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13882
13930
|
return _formatResult;
|
|
13883
13931
|
}
|
|
13884
13932
|
};
|
|
13885
|
-
var
|
|
13933
|
+
var parallelData = function parallelData(data, result) {
|
|
13886
13934
|
data.forEach(function (i) {
|
|
13887
13935
|
result.push(i);
|
|
13888
13936
|
if (i[treeChildrenRoom]) {
|
|
13889
|
-
|
|
13937
|
+
parallelData(i[treeChildrenRoom], result);
|
|
13890
13938
|
}
|
|
13891
13939
|
});
|
|
13892
13940
|
return result;
|
|
@@ -13926,7 +13974,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13926
13974
|
var _ctx$form2;
|
|
13927
13975
|
var handleData = formatData(data);
|
|
13928
13976
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13929
|
-
var parallelTreeData =
|
|
13977
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13930
13978
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13931
13979
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13932
13980
|
onChangeName && onChangeName(dataName);
|
|
@@ -13969,7 +14017,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13969
14017
|
var getShowStr = function getShowStr() {
|
|
13970
14018
|
var isMultiple = multiple || treeCheckable;
|
|
13971
14019
|
var kongValue = '无';
|
|
13972
|
-
var parallelTreeData =
|
|
14020
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13973
14021
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13974
14022
|
if (isMultiple) {
|
|
13975
14023
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13981,7 +14029,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13981
14029
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13982
14030
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13983
14031
|
className: 'tree_search_select'
|
|
13984
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14032
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13985
14033
|
title: getShowStr(),
|
|
13986
14034
|
style: {
|
|
13987
14035
|
overflow: 'hidden',
|
|
@@ -13989,7 +14037,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13989
14037
|
whiteSpace: 'nowrap'
|
|
13990
14038
|
},
|
|
13991
14039
|
className: 'search_select_show'
|
|
13992
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14040
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13993
14041
|
treeCheckable: treeCheckable,
|
|
13994
14042
|
maxTagCount: maxTagCount,
|
|
13995
14043
|
showSearch: showSearch,
|
|
@@ -14186,7 +14234,7 @@ var index$2 = (function (props) {
|
|
|
14186
14234
|
} : {}
|
|
14187
14235
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
14188
14236
|
className: 'status-label-operate'
|
|
14189
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14237
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
14190
14238
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14191
14239
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
14192
14240
|
style: {
|
|
@@ -14967,7 +15015,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14967
15015
|
style: {
|
|
14968
15016
|
width: 525
|
|
14969
15017
|
}
|
|
14970
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15018
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14971
15019
|
checked: !dataSource.some(function (item) {
|
|
14972
15020
|
if (item.hidden) return true;
|
|
14973
15021
|
return false;
|
|
@@ -15005,13 +15053,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15005
15053
|
_this2.onChange(e, item.title);
|
|
15006
15054
|
}
|
|
15007
15055
|
}, item.title);
|
|
15008
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15056
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
15009
15057
|
style: {
|
|
15010
15058
|
width: '144px'
|
|
15011
15059
|
}
|
|
15012
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15060
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
15013
15061
|
className: 'sort_table_column_all_empty'
|
|
15014
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15062
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15015
15063
|
className: 'sort_table_column_special'
|
|
15016
15064
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15017
15065
|
className: 'sort_table_column_all'
|
|
@@ -15190,10 +15238,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15190
15238
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15191
15239
|
return _objectSpread2({}, col);
|
|
15192
15240
|
});
|
|
15193
|
-
var
|
|
15241
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15194
15242
|
var i = indexArr.shift();
|
|
15195
15243
|
if (indexArr.length > 0) {
|
|
15196
|
-
|
|
15244
|
+
handleIndex(arr[i].children, indexArr);
|
|
15197
15245
|
} else {
|
|
15198
15246
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15199
15247
|
width: size.width
|
|
@@ -15201,7 +15249,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15201
15249
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15202
15250
|
}
|
|
15203
15251
|
};
|
|
15204
|
-
|
|
15252
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15205
15253
|
_this.setState({
|
|
15206
15254
|
showColumns: _toConsumableArray(newColumns)
|
|
15207
15255
|
});
|
|
@@ -15242,7 +15290,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15242
15290
|
};
|
|
15243
15291
|
setIsResizing(true);
|
|
15244
15292
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15245
|
-
document.addEventListener('mouseup',
|
|
15293
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
15246
15294
|
};
|
|
15247
15295
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15248
15296
|
e.stopPropagation();
|
|
@@ -15258,9 +15306,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15258
15306
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15259
15307
|
}
|
|
15260
15308
|
};
|
|
15261
|
-
var
|
|
15309
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
15262
15310
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15263
|
-
document.removeEventListener('mouseup',
|
|
15311
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
15264
15312
|
setIsResizing(false);
|
|
15265
15313
|
};
|
|
15266
15314
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15381,13 +15429,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15381
15429
|
showSummary = summary;
|
|
15382
15430
|
}
|
|
15383
15431
|
}
|
|
15384
|
-
var
|
|
15432
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15385
15433
|
arr.forEach(function (item, index) {
|
|
15386
15434
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15387
15435
|
return i || i === 0;
|
|
15388
15436
|
});
|
|
15389
15437
|
if (noEmptyArray$1(item.children)) {
|
|
15390
|
-
|
|
15438
|
+
handleColumns(item.children, indexArrInside);
|
|
15391
15439
|
} else {
|
|
15392
15440
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15393
15441
|
item.onHeaderCell = function (column) {
|
|
@@ -15403,7 +15451,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15403
15451
|
handleBssulaColumnsSpecialParams(item);
|
|
15404
15452
|
return _objectSpread2({}, item);
|
|
15405
15453
|
});
|
|
15406
|
-
|
|
15454
|
+
handleColumns(showCol, []);
|
|
15407
15455
|
if (dynamicColumns.length) {
|
|
15408
15456
|
showCol = this.handledynamicColumns(showCol);
|
|
15409
15457
|
}
|
|
@@ -15444,7 +15492,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15444
15492
|
cell: this.ResizeableTitle
|
|
15445
15493
|
}
|
|
15446
15494
|
}
|
|
15447
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15495
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15448
15496
|
summary: summary
|
|
15449
15497
|
})));
|
|
15450
15498
|
}
|
|
@@ -15541,10 +15589,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15541
15589
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15542
15590
|
return _objectSpread2({}, col);
|
|
15543
15591
|
});
|
|
15544
|
-
var
|
|
15592
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15545
15593
|
var i = indexArr.shift();
|
|
15546
15594
|
if (indexArr.length > 0) {
|
|
15547
|
-
|
|
15595
|
+
handleIndex(arr[i].children, indexArr);
|
|
15548
15596
|
} else {
|
|
15549
15597
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15550
15598
|
width: size.width
|
|
@@ -15552,7 +15600,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15552
15600
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15553
15601
|
}
|
|
15554
15602
|
};
|
|
15555
|
-
|
|
15603
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15556
15604
|
_this.setState({
|
|
15557
15605
|
showColumns: _toConsumableArray(newColumns)
|
|
15558
15606
|
});
|
|
@@ -15628,13 +15676,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15628
15676
|
showSummary = summary;
|
|
15629
15677
|
}
|
|
15630
15678
|
}
|
|
15631
|
-
var
|
|
15679
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15632
15680
|
arr.forEach(function (item, index) {
|
|
15633
15681
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15634
15682
|
return i || i === 0;
|
|
15635
15683
|
});
|
|
15636
15684
|
if (noEmptyArray$1(item.children)) {
|
|
15637
|
-
|
|
15685
|
+
handleColumns(item.children, indexArrInside);
|
|
15638
15686
|
} else {
|
|
15639
15687
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15640
15688
|
item.onHeaderCell = function (column) {
|
|
@@ -15650,7 +15698,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15650
15698
|
handleAntdColumnsSpecialParams(item);
|
|
15651
15699
|
return _objectSpread2({}, item);
|
|
15652
15700
|
});
|
|
15653
|
-
|
|
15701
|
+
handleColumns(showCol, []);
|
|
15654
15702
|
if (dynamicColumns.length) {
|
|
15655
15703
|
showCol = this.handledynamicColumns(showCol);
|
|
15656
15704
|
}
|
|
@@ -15690,7 +15738,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15690
15738
|
cell: this.ResizeableTitle
|
|
15691
15739
|
}
|
|
15692
15740
|
}
|
|
15693
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15741
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15694
15742
|
summary: summary
|
|
15695
15743
|
})));
|
|
15696
15744
|
}
|
|
@@ -15750,20 +15798,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15750
15798
|
};
|
|
15751
15799
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15752
15800
|
var routerMap = {};
|
|
15753
|
-
var
|
|
15801
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
15754
15802
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15755
15803
|
data.forEach(function (menuItem) {
|
|
15756
15804
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15757
15805
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15758
15806
|
});
|
|
15759
15807
|
if (newMenuItem.children) {
|
|
15760
|
-
|
|
15808
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
15761
15809
|
}
|
|
15762
15810
|
// Reduce memory usage
|
|
15763
15811
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15764
15812
|
});
|
|
15765
15813
|
};
|
|
15766
|
-
|
|
15814
|
+
flattenMenuData(menuData, {});
|
|
15767
15815
|
return routerMap;
|
|
15768
15816
|
};
|
|
15769
15817
|
// mode类型判断
|
|
@@ -16089,7 +16137,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16089
16137
|
display: 'flex',
|
|
16090
16138
|
gap: '8px'
|
|
16091
16139
|
}
|
|
16092
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16140
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16093
16141
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16094
16142
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16095
16143
|
onClick: function onClick() {
|
|
@@ -16097,7 +16145,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16097
16145
|
},
|
|
16098
16146
|
width: 24,
|
|
16099
16147
|
src: scanning
|
|
16100
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16148
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16101
16149
|
title: "\u5168\u5C4F"
|
|
16102
16150
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16103
16151
|
onClick: function onClick() {
|
|
@@ -16105,7 +16153,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16105
16153
|
},
|
|
16106
16154
|
width: 24,
|
|
16107
16155
|
src: quanping
|
|
16108
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16156
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16109
16157
|
}, function (prevProps, nextProps) {
|
|
16110
16158
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16111
16159
|
return false;
|
|
@@ -16190,7 +16238,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16190
16238
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16191
16239
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16192
16240
|
}, item));
|
|
16193
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16241
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16194
16242
|
}, function (prevProps, nextProps) {
|
|
16195
16243
|
if (prevProps.title !== nextProps.title) {
|
|
16196
16244
|
return false;
|
|
@@ -16830,7 +16878,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16830
16878
|
});
|
|
16831
16879
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16832
16880
|
className: 'sort_table_wrapper'
|
|
16833
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16881
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
16834
16882
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16835
16883
|
wrapClassName: 'sort_table_wrapper',
|
|
16836
16884
|
width: 810,
|
|
@@ -16881,7 +16929,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16881
16929
|
width: 525,
|
|
16882
16930
|
height: 24
|
|
16883
16931
|
}
|
|
16884
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16932
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16885
16933
|
checked: !dataSource.some(function (item) {
|
|
16886
16934
|
if (item.hidden) return true;
|
|
16887
16935
|
return false;
|
|
@@ -16935,13 +16983,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16935
16983
|
_this2.onChange(e, item.title);
|
|
16936
16984
|
}
|
|
16937
16985
|
}, item.title);
|
|
16938
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16986
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
16939
16987
|
style: {
|
|
16940
16988
|
width: '144px'
|
|
16941
16989
|
}
|
|
16942
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16990
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
16943
16991
|
className: 'sort_table_column_all_empty'
|
|
16944
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16992
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16945
16993
|
className: 'sort_table_column_special'
|
|
16946
16994
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
16947
16995
|
className: 'sort_table_column_all'
|
|
@@ -17415,7 +17463,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17415
17463
|
});
|
|
17416
17464
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17417
17465
|
className: 'sort_table_wrapper'
|
|
17418
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17466
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
17419
17467
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17420
17468
|
wrapClassName: 'sort_table_wrapper',
|
|
17421
17469
|
width: 820,
|
|
@@ -17460,7 +17508,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17460
17508
|
style: {
|
|
17461
17509
|
width: 525
|
|
17462
17510
|
}
|
|
17463
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17511
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17464
17512
|
checked: !dataSource.some(function (item) {
|
|
17465
17513
|
if (item.hidden) return true;
|
|
17466
17514
|
return false;
|
|
@@ -17496,11 +17544,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17496
17544
|
_this2.onChange(e, item.name);
|
|
17497
17545
|
}
|
|
17498
17546
|
}, item.label);
|
|
17499
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17547
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17500
17548
|
style: {
|
|
17501
17549
|
width: '144px'
|
|
17502
17550
|
}
|
|
17503
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17551
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17504
17552
|
className: 'sort_table_column_all_empty'
|
|
17505
17553
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17506
17554
|
className: 'sort_table_content_wrapper'
|
|
@@ -17599,7 +17647,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17599
17647
|
};
|
|
17600
17648
|
setIsResizing(true);
|
|
17601
17649
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17602
|
-
document.addEventListener('mouseup',
|
|
17650
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
17603
17651
|
};
|
|
17604
17652
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17605
17653
|
e.stopPropagation();
|
|
@@ -17615,9 +17663,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17615
17663
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17616
17664
|
}
|
|
17617
17665
|
};
|
|
17618
|
-
var
|
|
17666
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
17619
17667
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17620
|
-
document.removeEventListener('mouseup',
|
|
17668
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
17621
17669
|
setIsResizing(false);
|
|
17622
17670
|
};
|
|
17623
17671
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18028,7 +18076,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18028
18076
|
actionsRender = actionsRender.concat([{
|
|
18029
18077
|
type: 'text',
|
|
18030
18078
|
props: {
|
|
18031
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18079
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18032
18080
|
request: {
|
|
18033
18081
|
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),
|
|
18034
18082
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18274,7 +18322,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18274
18322
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18275
18323
|
bsTableCode: bsTableCode,
|
|
18276
18324
|
onlyModal: true
|
|
18277
|
-
}), (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, {
|
|
18325
|
+
}), (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, {
|
|
18278
18326
|
ref: exportTableRef,
|
|
18279
18327
|
setShowColumns: setShowExportColumns,
|
|
18280
18328
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18367,11 +18415,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18367
18415
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18368
18416
|
var resultList = [];
|
|
18369
18417
|
var newRouter = cloneDeep(router);
|
|
18370
|
-
var
|
|
18418
|
+
var deep = function deep(router) {
|
|
18371
18419
|
if (router && Array.isArray(router)) {
|
|
18372
18420
|
router.forEach(function (item) {
|
|
18373
18421
|
if (item.children && Array.isArray(item.children)) {
|
|
18374
|
-
|
|
18422
|
+
deep(item.children);
|
|
18375
18423
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18376
18424
|
return d === item.code;
|
|
18377
18425
|
})) {
|
|
@@ -18385,10 +18433,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18385
18433
|
resultList.push(_objectSpread2({}, router));
|
|
18386
18434
|
}
|
|
18387
18435
|
};
|
|
18388
|
-
|
|
18436
|
+
deep(newRouter);
|
|
18389
18437
|
callBack([].concat(resultList));
|
|
18390
18438
|
};
|
|
18391
|
-
var
|
|
18439
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18392
18440
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18393
18441
|
var _loop = function _loop(i) {
|
|
18394
18442
|
if (routesData[i].hideInMenu) {
|
|
@@ -18402,7 +18450,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18402
18450
|
return 0; // continue
|
|
18403
18451
|
}
|
|
18404
18452
|
if (routesData[i].children) {
|
|
18405
|
-
|
|
18453
|
+
setMenuTreeData(routesData[i].children);
|
|
18406
18454
|
}
|
|
18407
18455
|
},
|
|
18408
18456
|
_ret;
|
|
@@ -18423,16 +18471,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18423
18471
|
};
|
|
18424
18472
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18425
18473
|
var routerMap = {};
|
|
18426
|
-
var
|
|
18474
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18427
18475
|
data.forEach(function (menuItem) {
|
|
18428
18476
|
if (menuItem.children) {
|
|
18429
|
-
|
|
18477
|
+
flattenMenuData(menuItem.children);
|
|
18430
18478
|
}
|
|
18431
18479
|
// Reduce memory usage
|
|
18432
18480
|
routerMap[menuItem.path] = menuItem;
|
|
18433
18481
|
});
|
|
18434
18482
|
};
|
|
18435
|
-
|
|
18483
|
+
flattenMenuData(menuData);
|
|
18436
18484
|
return routerMap;
|
|
18437
18485
|
};
|
|
18438
18486
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18578,7 +18626,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18578
18626
|
sethomepageData(homepageDataList);
|
|
18579
18627
|
setroutesData(routesDataList);
|
|
18580
18628
|
}, []);
|
|
18581
|
-
var
|
|
18629
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18582
18630
|
if (!child.hideInMenu && child.children) {
|
|
18583
18631
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18584
18632
|
style: {
|
|
@@ -18588,7 +18636,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18588
18636
|
}, formatMessage({
|
|
18589
18637
|
id: "".concat(child.locale)
|
|
18590
18638
|
})), child.children.map(function (menuItem) {
|
|
18591
|
-
return
|
|
18639
|
+
return renderChildItem(menuItem);
|
|
18592
18640
|
}));
|
|
18593
18641
|
} else if (!child.hideInMenu && child.path) {
|
|
18594
18642
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18623,7 +18671,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18623
18671
|
className: 'drawerWarp'
|
|
18624
18672
|
}, homepageData && homepageData.filter(function (d) {
|
|
18625
18673
|
return !d.hideInMenu;
|
|
18626
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
18674
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
18627
18675
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
18628
18676
|
dataSource: homepageData,
|
|
18629
18677
|
renderItem: function renderItem(child) {
|
|
@@ -18658,7 +18706,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18658
18706
|
bordered: true,
|
|
18659
18707
|
dataSource: item.children,
|
|
18660
18708
|
renderItem: function renderItem(child) {
|
|
18661
|
-
return
|
|
18709
|
+
return renderChildItem(child);
|
|
18662
18710
|
}
|
|
18663
18711
|
});
|
|
18664
18712
|
})));
|
|
@@ -18718,7 +18766,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18718
18766
|
src: allfunc
|
|
18719
18767
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
18720
18768
|
className: 'btnSpan2'
|
|
18721
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18769
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18722
18770
|
style: {
|
|
18723
18771
|
left: isDrawer ? 140 : 0,
|
|
18724
18772
|
top: 50
|
|
@@ -18764,7 +18812,7 @@ function outLogin(_x) {
|
|
|
18764
18812
|
return _outLogin.apply(this, arguments);
|
|
18765
18813
|
}
|
|
18766
18814
|
function _outLogin() {
|
|
18767
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18815
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18768
18816
|
var res;
|
|
18769
18817
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18770
18818
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18906,7 +18954,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18906
18954
|
});
|
|
18907
18955
|
};
|
|
18908
18956
|
var loginOut = /*#__PURE__*/function () {
|
|
18909
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18957
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18910
18958
|
var sessionId;
|
|
18911
18959
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18912
18960
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19010,7 +19058,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19010
19058
|
marginRight: '0px'
|
|
19011
19059
|
},
|
|
19012
19060
|
src: './xialajiantou-new.svg'
|
|
19013
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19061
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19014
19062
|
};
|
|
19015
19063
|
|
|
19016
19064
|
// -- 查询店铺 --
|
|
@@ -19018,7 +19066,7 @@ function getStoreByName(_x) {
|
|
|
19018
19066
|
return _getStoreByName.apply(this, arguments);
|
|
19019
19067
|
}
|
|
19020
19068
|
function _getStoreByName() {
|
|
19021
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19069
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19022
19070
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19023
19071
|
while (1) switch (_context.prev = _context.next) {
|
|
19024
19072
|
case 0:
|
|
@@ -19086,7 +19134,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19086
19134
|
return _fetchUserList.apply(this, arguments);
|
|
19087
19135
|
}
|
|
19088
19136
|
function _fetchUserList() {
|
|
19089
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19137
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19090
19138
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19091
19139
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19092
19140
|
case 0:
|
|
@@ -19134,7 +19182,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19134
19182
|
return debounce$1(loadOptions, debounceTimeout);
|
|
19135
19183
|
}, [debounceTimeout, key]);
|
|
19136
19184
|
var changeInput = /*#__PURE__*/function () {
|
|
19137
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19185
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19138
19186
|
var res;
|
|
19139
19187
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19140
19188
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19156,7 +19204,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19156
19204
|
};
|
|
19157
19205
|
}();
|
|
19158
19206
|
useEffect(function () {
|
|
19159
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19207
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19160
19208
|
var res;
|
|
19161
19209
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19162
19210
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19321,7 +19369,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19321
19369
|
var resultList = [];
|
|
19322
19370
|
var newRouter = cloneDeep$1(router);
|
|
19323
19371
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19324
|
-
var
|
|
19372
|
+
var deep = function deep(router) {
|
|
19325
19373
|
if (router && Array.isArray(router)) {
|
|
19326
19374
|
router.forEach(function (item) {
|
|
19327
19375
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19331,7 +19379,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19331
19379
|
d.nameEdit = true;
|
|
19332
19380
|
}
|
|
19333
19381
|
});
|
|
19334
|
-
|
|
19382
|
+
deep(item.routes);
|
|
19335
19383
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19336
19384
|
id: "menu.".concat(item.name)
|
|
19337
19385
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19350,7 +19398,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19350
19398
|
}));
|
|
19351
19399
|
}
|
|
19352
19400
|
};
|
|
19353
|
-
|
|
19401
|
+
deep(newRouter);
|
|
19354
19402
|
setroutesData([].concat(resultList));
|
|
19355
19403
|
};
|
|
19356
19404
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19432,7 +19480,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19432
19480
|
},
|
|
19433
19481
|
title: item.fullPathName
|
|
19434
19482
|
}, renderLineStyl(item.fullPathName));
|
|
19435
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19483
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19436
19484
|
employeeCode: employeeCode
|
|
19437
19485
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19438
19486
|
};
|
|
@@ -19447,7 +19495,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19447
19495
|
var TreeNode = Tree.TreeNode;
|
|
19448
19496
|
var Search$2 = Input.Search;
|
|
19449
19497
|
var dataList = [];
|
|
19450
|
-
var
|
|
19498
|
+
var generateList = function generateList(data) {
|
|
19451
19499
|
for (var i = 0; i < data.length; i++) {
|
|
19452
19500
|
var node = data[i];
|
|
19453
19501
|
var path = node.path,
|
|
@@ -19457,11 +19505,11 @@ var _generateList = function generateList(data) {
|
|
|
19457
19505
|
name: name
|
|
19458
19506
|
});
|
|
19459
19507
|
if (node.children) {
|
|
19460
|
-
|
|
19508
|
+
generateList(node.children);
|
|
19461
19509
|
}
|
|
19462
19510
|
}
|
|
19463
19511
|
};
|
|
19464
|
-
var
|
|
19512
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19465
19513
|
var parentKey;
|
|
19466
19514
|
for (var i = 0; i < tree.length; i++) {
|
|
19467
19515
|
var node = tree[i];
|
|
@@ -19470,8 +19518,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19470
19518
|
return item.path === path;
|
|
19471
19519
|
})) {
|
|
19472
19520
|
parentKey = node.path;
|
|
19473
|
-
} else if (
|
|
19474
|
-
parentKey =
|
|
19521
|
+
} else if (getParentKey(path, node.children)) {
|
|
19522
|
+
parentKey = getParentKey(path, node.children);
|
|
19475
19523
|
}
|
|
19476
19524
|
}
|
|
19477
19525
|
}
|
|
@@ -19502,7 +19550,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19502
19550
|
var treeData = _this.state.treeData;
|
|
19503
19551
|
var expandedKeys = dataList.map(function (item) {
|
|
19504
19552
|
if (item.name.indexOf(value) > -1) {
|
|
19505
|
-
return
|
|
19553
|
+
return getParentKey(item.path, treeData);
|
|
19506
19554
|
}
|
|
19507
19555
|
return null;
|
|
19508
19556
|
}).filter(function (item, i, self) {
|
|
@@ -19516,22 +19564,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19516
19564
|
};
|
|
19517
19565
|
_this.getPathList = function (originData) {
|
|
19518
19566
|
var pathList = [];
|
|
19519
|
-
var
|
|
19567
|
+
var getList = function getList(data) {
|
|
19520
19568
|
if (Array.isArray(data)) {
|
|
19521
19569
|
data.forEach(function (item) {
|
|
19522
19570
|
pathList.push(item.path);
|
|
19523
19571
|
if (item.children) {
|
|
19524
|
-
|
|
19572
|
+
getList(item.children);
|
|
19525
19573
|
}
|
|
19526
19574
|
});
|
|
19527
19575
|
} else {
|
|
19528
19576
|
pathList.push(data.path);
|
|
19529
19577
|
if (data.children) {
|
|
19530
|
-
|
|
19578
|
+
getList(data.children);
|
|
19531
19579
|
}
|
|
19532
19580
|
}
|
|
19533
19581
|
};
|
|
19534
|
-
|
|
19582
|
+
getList(originData);
|
|
19535
19583
|
return pathList;
|
|
19536
19584
|
};
|
|
19537
19585
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19540,18 +19588,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19540
19588
|
customerMenuData = _this$props.customerMenuData,
|
|
19541
19589
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19542
19590
|
var filterItem;
|
|
19543
|
-
var
|
|
19591
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
19544
19592
|
menuData.forEach(function (item) {
|
|
19545
19593
|
if (item.path === path) {
|
|
19546
19594
|
filterItem = _objectSpread2({}, item);
|
|
19547
19595
|
return;
|
|
19548
19596
|
}
|
|
19549
19597
|
if (item.children) {
|
|
19550
|
-
|
|
19598
|
+
filterMenuItem(item.children);
|
|
19551
19599
|
}
|
|
19552
19600
|
});
|
|
19553
19601
|
};
|
|
19554
|
-
|
|
19602
|
+
filterMenuItem(treeData);
|
|
19555
19603
|
var addPathList = _this.getPathList(filterItem);
|
|
19556
19604
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19557
19605
|
var isRepet = false;
|
|
@@ -19581,8 +19629,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19581
19629
|
return item.path === '/';
|
|
19582
19630
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19583
19631
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19584
|
-
|
|
19585
|
-
|
|
19632
|
+
setMenuTreeData(routesData);
|
|
19633
|
+
generateList(routesData);
|
|
19586
19634
|
this.setState({
|
|
19587
19635
|
treeData: routesData
|
|
19588
19636
|
});
|
|
@@ -19596,16 +19644,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19596
19644
|
expandedKeys = _this$state.expandedKeys,
|
|
19597
19645
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19598
19646
|
treeData = _this$state.treeData;
|
|
19599
|
-
var
|
|
19647
|
+
var loop = function loop(data) {
|
|
19600
19648
|
return data.map(function (item) {
|
|
19601
19649
|
var index = item.name.indexOf(searchValue);
|
|
19602
19650
|
var beforeStr = item.name.substr(0, index);
|
|
19603
19651
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19604
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19652
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19605
19653
|
style: {
|
|
19606
19654
|
color: '#f50'
|
|
19607
19655
|
}
|
|
19608
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19656
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19609
19657
|
if (item.children && item.children.length) {
|
|
19610
19658
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19611
19659
|
path: item.path,
|
|
@@ -19627,7 +19675,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19627
19675
|
width: 18,
|
|
19628
19676
|
src: arrowRight
|
|
19629
19677
|
}))))
|
|
19630
|
-
},
|
|
19678
|
+
}, loop(item.children));
|
|
19631
19679
|
}
|
|
19632
19680
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19633
19681
|
path: item.path,
|
|
@@ -19677,7 +19725,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19677
19725
|
onExpand: this.onExpand,
|
|
19678
19726
|
expandedKeys: expandedKeys,
|
|
19679
19727
|
autoExpandParent: autoExpandParent
|
|
19680
|
-
},
|
|
19728
|
+
}, loop(treeData))));
|
|
19681
19729
|
}
|
|
19682
19730
|
}]);
|
|
19683
19731
|
}(React$1.Component);
|
|
@@ -19710,24 +19758,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19710
19758
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19711
19759
|
var dragObj;
|
|
19712
19760
|
var finalDropItem;
|
|
19713
|
-
var
|
|
19761
|
+
var loop = function loop(data, path, callback) {
|
|
19714
19762
|
for (var i = 0; i < data.length; i++) {
|
|
19715
19763
|
if (data[i].path === path) {
|
|
19716
19764
|
return callback(data[i], i, data);
|
|
19717
19765
|
}
|
|
19718
19766
|
if (data[i].children) {
|
|
19719
|
-
|
|
19767
|
+
loop(data[i].children, path, callback);
|
|
19720
19768
|
}
|
|
19721
19769
|
}
|
|
19722
19770
|
};
|
|
19723
19771
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19724
|
-
|
|
19772
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
19725
19773
|
arr.splice(index, 1);
|
|
19726
19774
|
dragObj = item;
|
|
19727
19775
|
});
|
|
19728
19776
|
if (!info.dropToGap) {
|
|
19729
19777
|
// Drop on the content
|
|
19730
|
-
|
|
19778
|
+
loop(data, dropKey, function (item) {
|
|
19731
19779
|
item.children = item.children || [];
|
|
19732
19780
|
item.children.unshift(dragObj);
|
|
19733
19781
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19738,7 +19786,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19738
19786
|
// Is expanded
|
|
19739
19787
|
dropPosition === 1 // On the bottom gap
|
|
19740
19788
|
) {
|
|
19741
|
-
|
|
19789
|
+
loop(data, dropKey, function (item) {
|
|
19742
19790
|
item.children = item.children || [];
|
|
19743
19791
|
item.children.unshift(dragObj);
|
|
19744
19792
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19746,7 +19794,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19746
19794
|
} else {
|
|
19747
19795
|
var ar;
|
|
19748
19796
|
var i;
|
|
19749
|
-
|
|
19797
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
19750
19798
|
ar = arr;
|
|
19751
19799
|
i = index;
|
|
19752
19800
|
});
|
|
@@ -19785,17 +19833,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19785
19833
|
title: '编辑名称',
|
|
19786
19834
|
callBack: function callBack(newName) {
|
|
19787
19835
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19788
|
-
var
|
|
19836
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19789
19837
|
oldTreeData.forEach(function (treeItem) {
|
|
19790
19838
|
if (treeItem.path === item.path) {
|
|
19791
19839
|
treeItem.name = newName;
|
|
19792
19840
|
}
|
|
19793
19841
|
if (treeItem.children) {
|
|
19794
|
-
|
|
19842
|
+
editTreeDataName(treeItem.children);
|
|
19795
19843
|
}
|
|
19796
19844
|
});
|
|
19797
19845
|
};
|
|
19798
|
-
|
|
19846
|
+
editTreeDataName(oldTreeData);
|
|
19799
19847
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19800
19848
|
_this.setState({
|
|
19801
19849
|
modalInfo: {
|
|
@@ -19840,7 +19888,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19840
19888
|
title: '新增子目录',
|
|
19841
19889
|
callBack: function callBack(newName) {
|
|
19842
19890
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19843
|
-
var
|
|
19891
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
19844
19892
|
oldTreeData.forEach(function (treeItem) {
|
|
19845
19893
|
if (treeItem.path === item.path) {
|
|
19846
19894
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19852,11 +19900,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19852
19900
|
}];
|
|
19853
19901
|
}
|
|
19854
19902
|
if (treeItem.children) {
|
|
19855
|
-
|
|
19903
|
+
addChildFolder(treeItem.children);
|
|
19856
19904
|
}
|
|
19857
19905
|
});
|
|
19858
19906
|
};
|
|
19859
|
-
|
|
19907
|
+
addChildFolder(oldTreeData);
|
|
19860
19908
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19861
19909
|
_this.setState({
|
|
19862
19910
|
modalInfo: {
|
|
@@ -19915,7 +19963,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19915
19963
|
var _this$state = this.state,
|
|
19916
19964
|
modalInfo = _this$state.modalInfo,
|
|
19917
19965
|
checkedKeys = _this$state.checkedKeys;
|
|
19918
|
-
var
|
|
19966
|
+
var loop = function loop(data) {
|
|
19919
19967
|
return data.map(function (item) {
|
|
19920
19968
|
if (item.children && item.children.length) {
|
|
19921
19969
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -19932,7 +19980,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19932
19980
|
e.stopPropagation();
|
|
19933
19981
|
}
|
|
19934
19982
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
19935
|
-
},
|
|
19983
|
+
}, loop(item.children));
|
|
19936
19984
|
}
|
|
19937
19985
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
19938
19986
|
path: item.path,
|
|
@@ -20011,7 +20059,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20011
20059
|
children: 'children'
|
|
20012
20060
|
},
|
|
20013
20061
|
onDrop: this.onDrop
|
|
20014
|
-
},
|
|
20062
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
20015
20063
|
width: 600,
|
|
20016
20064
|
bodyStyle: {
|
|
20017
20065
|
paddingTop: '32px',
|
|
@@ -20124,7 +20172,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20124
20172
|
pathname: item.path
|
|
20125
20173
|
});
|
|
20126
20174
|
};
|
|
20127
|
-
var
|
|
20175
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
20128
20176
|
return menuData.map(function (item) {
|
|
20129
20177
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20130
20178
|
style: {
|
|
@@ -20139,7 +20187,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20139
20187
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20140
20188
|
paddingLeft: '4px'
|
|
20141
20189
|
}
|
|
20142
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20190
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
20143
20191
|
});
|
|
20144
20192
|
};
|
|
20145
20193
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20165,7 +20213,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20165
20213
|
style: {
|
|
20166
20214
|
paddingLeft: '5px'
|
|
20167
20215
|
}
|
|
20168
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20216
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20169
20217
|
style: {
|
|
20170
20218
|
left: isDrawer ? 140 : 0
|
|
20171
20219
|
},
|
|
@@ -20186,7 +20234,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20186
20234
|
visible: isDrawer
|
|
20187
20235
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
20188
20236
|
className: 'menu_title_line'
|
|
20189
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20237
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
20190
20238
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
20191
20239
|
style: {
|
|
20192
20240
|
fontWeight: '600',
|
|
@@ -20260,7 +20308,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20260
20308
|
return item.path === '/';
|
|
20261
20309
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20262
20310
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20263
|
-
|
|
20311
|
+
setMenuTreeData(routesData);
|
|
20264
20312
|
routesData.forEach(function (item) {
|
|
20265
20313
|
if (item.children) {
|
|
20266
20314
|
routesDataList.push(item);
|
|
@@ -20290,7 +20338,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20290
20338
|
setHeight(clientHeight - 190);
|
|
20291
20339
|
setDrawHeight(clientHeight - 70);
|
|
20292
20340
|
};
|
|
20293
|
-
var
|
|
20341
|
+
var renderChildItem = function renderChildItem(child) {
|
|
20294
20342
|
if (!child.hideInMenu && child.children) {
|
|
20295
20343
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20296
20344
|
style: {
|
|
@@ -20300,7 +20348,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20300
20348
|
}, formatMessage({
|
|
20301
20349
|
id: "".concat(child.locale)
|
|
20302
20350
|
})), child.children.map(function (menuItem) {
|
|
20303
|
-
return
|
|
20351
|
+
return renderChildItem(menuItem);
|
|
20304
20352
|
}));
|
|
20305
20353
|
} else if (!child.hideInMenu && child.path) {
|
|
20306
20354
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20442,7 +20490,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20442
20490
|
onMenuClick(e, item);
|
|
20443
20491
|
}
|
|
20444
20492
|
}, item.name);
|
|
20445
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20493
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
20446
20494
|
className: 'search_menu_content'
|
|
20447
20495
|
}, SearhData.map(function (item) {
|
|
20448
20496
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20451,7 +20499,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20451
20499
|
},
|
|
20452
20500
|
key: item.path
|
|
20453
20501
|
}, item.name);
|
|
20454
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20502
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20455
20503
|
style: {
|
|
20456
20504
|
height: "".concat(rightMenuHeight, "px"),
|
|
20457
20505
|
overflowY: 'scroll',
|
|
@@ -20463,7 +20511,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20463
20511
|
className: 'drawerWarp_right'
|
|
20464
20512
|
}, homepageData && homepageData.filter(function (d) {
|
|
20465
20513
|
return !d.hideInMenu;
|
|
20466
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20514
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
20467
20515
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20468
20516
|
dataSource: homepageData,
|
|
20469
20517
|
renderItem: function renderItem(child) {
|
|
@@ -20504,7 +20552,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20504
20552
|
bordered: true,
|
|
20505
20553
|
dataSource: item.children,
|
|
20506
20554
|
renderItem: function renderItem(child) {
|
|
20507
|
-
return
|
|
20555
|
+
return renderChildItem(child);
|
|
20508
20556
|
}
|
|
20509
20557
|
});
|
|
20510
20558
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20662,10 +20710,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20662
20710
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20663
20711
|
var menuKeys = [];
|
|
20664
20712
|
var docsId = [];
|
|
20665
|
-
var
|
|
20713
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20666
20714
|
data.forEach(function (item) {
|
|
20667
20715
|
if (item.children && item.children.length > 0) {
|
|
20668
|
-
|
|
20716
|
+
getLimitedMenuKeys(item.children);
|
|
20669
20717
|
} else {
|
|
20670
20718
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20671
20719
|
menuKeys.push(originPath);
|
|
@@ -20676,7 +20724,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20676
20724
|
});
|
|
20677
20725
|
};
|
|
20678
20726
|
try {
|
|
20679
|
-
|
|
20727
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
20680
20728
|
} catch (e) {}
|
|
20681
20729
|
return {
|
|
20682
20730
|
menuKeys: menuKeys,
|
|
@@ -20910,10 +20958,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20910
20958
|
return (node.path || '').includes('all-general-documents');
|
|
20911
20959
|
};
|
|
20912
20960
|
// 递归获取树列表
|
|
20913
|
-
var
|
|
20961
|
+
var getTreeList = function getTreeList(data) {
|
|
20914
20962
|
data.forEach(function (node) {
|
|
20915
20963
|
if (node.routes && node.routes.length > 0) {
|
|
20916
|
-
|
|
20964
|
+
getTreeList(node.routes);
|
|
20917
20965
|
return;
|
|
20918
20966
|
}
|
|
20919
20967
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20944,7 +20992,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20944
20992
|
}
|
|
20945
20993
|
});
|
|
20946
20994
|
};
|
|
20947
|
-
|
|
20995
|
+
getTreeList(treeData);
|
|
20948
20996
|
return treeList;
|
|
20949
20997
|
};
|
|
20950
20998
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21573,7 +21621,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21573
21621
|
updateState = _ref8.updateState;
|
|
21574
21622
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21575
21623
|
className: "tab_title_content"
|
|
21576
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21624
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21577
21625
|
info: item,
|
|
21578
21626
|
operateFun: _this3.operateFun,
|
|
21579
21627
|
listenRouterState: listenRouterState
|
|
@@ -21709,7 +21757,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21709
21757
|
};
|
|
21710
21758
|
}
|
|
21711
21759
|
var OperationsSlot = {
|
|
21712
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
21760
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
21713
21761
|
className: 'tab_left_operate'
|
|
21714
21762
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
21715
21763
|
onClick: function onClick() {
|
|
@@ -21725,7 +21773,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21725
21773
|
_this3.setTabNavTransLate(-100);
|
|
21726
21774
|
}
|
|
21727
21775
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
21728
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
21776
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
21729
21777
|
style: {
|
|
21730
21778
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21731
21779
|
},
|
|
@@ -21823,7 +21871,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21823
21871
|
onMouseLeave: function onMouseLeave() {
|
|
21824
21872
|
_this3.setShowMenu(false);
|
|
21825
21873
|
}
|
|
21826
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21874
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21827
21875
|
style: {
|
|
21828
21876
|
position: 'absolute',
|
|
21829
21877
|
top: '14px',
|
|
@@ -21842,7 +21890,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21842
21890
|
postMenuData: function postMenuData(menus) {
|
|
21843
21891
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21844
21892
|
},
|
|
21845
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21893
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21846
21894
|
ref: this.allFunc,
|
|
21847
21895
|
itemPath: itemPath,
|
|
21848
21896
|
handleClose: this.handleClose,
|
|
@@ -21860,7 +21908,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21860
21908
|
},
|
|
21861
21909
|
menu: {
|
|
21862
21910
|
request: function () {
|
|
21863
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21911
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21864
21912
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21865
21913
|
while (1) switch (_context.prev = _context.next) {
|
|
21866
21914
|
case 0:
|
|
@@ -21995,7 +22043,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
21995
22043
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
21996
22044
|
timeFormat = _this$props4.timeFormat,
|
|
21997
22045
|
transparentProps = _this$props4.transparentProps;
|
|
21998
|
-
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({
|
|
22046
|
+
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({
|
|
21999
22047
|
getDictionarySource: getDictionarySource,
|
|
22000
22048
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22001
22049
|
timeFormat: timeFormat
|
|
@@ -22019,12 +22067,12 @@ var index$5 = (function (props) {
|
|
|
22019
22067
|
});
|
|
22020
22068
|
|
|
22021
22069
|
// @ts-nocheck
|
|
22022
|
-
var
|
|
22070
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
22023
22071
|
var result = [];
|
|
22024
22072
|
columns.forEach(function (column) {
|
|
22025
22073
|
if (column.children) {
|
|
22026
22074
|
result.push(column);
|
|
22027
|
-
result.push.apply(result,
|
|
22075
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
22028
22076
|
} else {
|
|
22029
22077
|
result.push(column);
|
|
22030
22078
|
}
|
|
@@ -22033,7 +22081,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
22033
22081
|
};
|
|
22034
22082
|
var convertToRows = function convertToRows(originColumns) {
|
|
22035
22083
|
var maxLevel = 1;
|
|
22036
|
-
var
|
|
22084
|
+
var traverse = function traverse(column, parent) {
|
|
22037
22085
|
if (parent) {
|
|
22038
22086
|
column.level = parent.level + 1;
|
|
22039
22087
|
if (maxLevel < column.level) {
|
|
@@ -22043,7 +22091,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22043
22091
|
if (column.children) {
|
|
22044
22092
|
var colSpan = 0;
|
|
22045
22093
|
column.children.forEach(function (subColumn) {
|
|
22046
|
-
|
|
22094
|
+
traverse(subColumn, column);
|
|
22047
22095
|
colSpan += subColumn.colSpan;
|
|
22048
22096
|
});
|
|
22049
22097
|
column.colSpan = colSpan;
|
|
@@ -22053,13 +22101,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22053
22101
|
};
|
|
22054
22102
|
originColumns.forEach(function (column) {
|
|
22055
22103
|
column.level = 1;
|
|
22056
|
-
|
|
22104
|
+
traverse(column);
|
|
22057
22105
|
});
|
|
22058
22106
|
var rows = [];
|
|
22059
22107
|
for (var i = 0; i < maxLevel; i++) {
|
|
22060
22108
|
rows.push([]);
|
|
22061
22109
|
}
|
|
22062
|
-
var allColumns =
|
|
22110
|
+
var allColumns = getAllColumns(originColumns);
|
|
22063
22111
|
allColumns.forEach(function (column) {
|
|
22064
22112
|
if (!column.children) {
|
|
22065
22113
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22099,7 +22147,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22099
22147
|
};
|
|
22100
22148
|
var headersToRows = function headersToRows(originColumns) {
|
|
22101
22149
|
var maxLevel = 1;
|
|
22102
|
-
var
|
|
22150
|
+
var traverse = function traverse(column, parent) {
|
|
22103
22151
|
if (parent) {
|
|
22104
22152
|
//计算当前元素属于第几个层级
|
|
22105
22153
|
column.level = parent.level + 1;
|
|
@@ -22112,7 +22160,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22112
22160
|
var colSpan = 0;
|
|
22113
22161
|
column.children.forEach(function (subColumn) {
|
|
22114
22162
|
//进行递归
|
|
22115
|
-
|
|
22163
|
+
traverse(subColumn, column);
|
|
22116
22164
|
colSpan += subColumn.colSpan;
|
|
22117
22165
|
});
|
|
22118
22166
|
column.colSpan = colSpan;
|
|
@@ -22122,14 +22170,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22122
22170
|
};
|
|
22123
22171
|
originColumns.forEach(function (column) {
|
|
22124
22172
|
column.level = 1;
|
|
22125
|
-
|
|
22173
|
+
traverse(column);
|
|
22126
22174
|
});
|
|
22127
22175
|
var rows = [];
|
|
22128
22176
|
var lastData = [];
|
|
22129
22177
|
for (var i = 0; i < maxLevel; i++) {
|
|
22130
22178
|
rows.push([]);
|
|
22131
22179
|
}
|
|
22132
|
-
var allColumns =
|
|
22180
|
+
var allColumns = getAllColumns(originColumns);
|
|
22133
22181
|
allColumns.forEach(function (column) {
|
|
22134
22182
|
if (!column.children) {
|
|
22135
22183
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28146,7 +28194,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28146
28194
|
}
|
|
28147
28195
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28148
28196
|
};
|
|
28149
|
-
var
|
|
28197
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
28150
28198
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28151
28199
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28152
28200
|
var children = hightLightData.children,
|
|
@@ -28157,7 +28205,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28157
28205
|
lineEnd = _loc2[2];
|
|
28158
28206
|
if (children) {
|
|
28159
28207
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28160
|
-
return
|
|
28208
|
+
return hasHighLightChildren(v, highLightLine);
|
|
28161
28209
|
});
|
|
28162
28210
|
}
|
|
28163
28211
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28169,7 +28217,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28169
28217
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28170
28218
|
data.forEach(function (node) {
|
|
28171
28219
|
if (!node) return;
|
|
28172
|
-
node.toggled =
|
|
28220
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
28173
28221
|
node.active = isHightLight(node, highLightLine);
|
|
28174
28222
|
if (node.children) {
|
|
28175
28223
|
if (node.active) {
|
|
@@ -29600,7 +29648,7 @@ var valueType = {
|
|
|
29600
29648
|
};
|
|
29601
29649
|
|
|
29602
29650
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29603
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29651
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29604
29652
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29605
29653
|
while (1) switch (_context.prev = _context.next) {
|
|
29606
29654
|
case 0:
|
|
@@ -29668,7 +29716,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29668
29716
|
value: false
|
|
29669
29717
|
}];
|
|
29670
29718
|
var ref = useRef();
|
|
29671
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29719
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29672
29720
|
var _ref$current, source;
|
|
29673
29721
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29674
29722
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29782,7 +29830,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29782
29830
|
source: {
|
|
29783
29831
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29784
29832
|
type: function () {
|
|
29785
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29833
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29786
29834
|
var form, values, name, relates, source;
|
|
29787
29835
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29788
29836
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30262,7 +30310,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30262
30310
|
source: {
|
|
30263
30311
|
relates: ['choiceType', 'inputType'],
|
|
30264
30312
|
type: function () {
|
|
30265
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30313
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30266
30314
|
var values, name, form, source;
|
|
30267
30315
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30268
30316
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30484,7 +30532,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30484
30532
|
width: 900,
|
|
30485
30533
|
maskClosable: false,
|
|
30486
30534
|
onOk: function () {
|
|
30487
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30535
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30488
30536
|
var _ref$current4, _res$editableStatus;
|
|
30489
30537
|
var res, _res$defaultValue;
|
|
30490
30538
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30556,7 +30604,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30556
30604
|
}()
|
|
30557
30605
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30558
30606
|
ref: ref
|
|
30559
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30607
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30560
30608
|
};
|
|
30561
30609
|
|
|
30562
30610
|
// @ts-nocheck
|
|
@@ -31170,7 +31218,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31170
31218
|
return setVisible(false);
|
|
31171
31219
|
},
|
|
31172
31220
|
className: 'customFieldsDrawer'
|
|
31173
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
31221
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
31174
31222
|
style: {
|
|
31175
31223
|
display: 'flex'
|
|
31176
31224
|
}
|
|
@@ -31179,13 +31227,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31179
31227
|
flex: 1,
|
|
31180
31228
|
width: 500
|
|
31181
31229
|
}
|
|
31182
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31230
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31183
31231
|
style: {
|
|
31184
31232
|
padding: "10px 0",
|
|
31185
31233
|
fontSize: "16px",
|
|
31186
31234
|
fontWeight: "bolder"
|
|
31187
31235
|
}
|
|
31188
|
-
}, "\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", {
|
|
31236
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
31189
31237
|
style: {
|
|
31190
31238
|
flex: 1
|
|
31191
31239
|
}
|
|
@@ -31194,7 +31242,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31194
31242
|
onRun: onClickRun,
|
|
31195
31243
|
value: jsonEditorVal,
|
|
31196
31244
|
shallowHeight: height
|
|
31197
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
31245
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
31198
31246
|
defaultActiveKey: activeKey,
|
|
31199
31247
|
onChange: function onChange(v) {
|
|
31200
31248
|
return setActiveKey(v);
|
|
@@ -31211,13 +31259,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31211
31259
|
flex: 1,
|
|
31212
31260
|
width: 500
|
|
31213
31261
|
}
|
|
31214
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31262
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31215
31263
|
style: {
|
|
31216
31264
|
padding: "10px 0",
|
|
31217
31265
|
fontSize: "16px",
|
|
31218
31266
|
fontWeight: "bolder"
|
|
31219
31267
|
}
|
|
31220
|
-
}, "\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", {
|
|
31268
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
31221
31269
|
style: {
|
|
31222
31270
|
flex: 1
|
|
31223
31271
|
}
|
|
@@ -31239,13 +31287,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31239
31287
|
flex: 1,
|
|
31240
31288
|
width: 500
|
|
31241
31289
|
}
|
|
31242
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31290
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31243
31291
|
style: {
|
|
31244
31292
|
padding: "10px 0",
|
|
31245
31293
|
fontSize: "16px",
|
|
31246
31294
|
fontWeight: "bolder"
|
|
31247
31295
|
}
|
|
31248
|
-
}, "\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", {
|
|
31296
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
31249
31297
|
style: {
|
|
31250
31298
|
flex: 1
|
|
31251
31299
|
}
|
|
@@ -31391,7 +31439,7 @@ function getMetaData(_x) {
|
|
|
31391
31439
|
|
|
31392
31440
|
// 获取数据
|
|
31393
31441
|
function _getMetaData() {
|
|
31394
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31442
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31395
31443
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31396
31444
|
while (1) switch (_context.prev = _context.next) {
|
|
31397
31445
|
case 0:
|
|
@@ -31613,7 +31661,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31613
31661
|
tableState = _useState4[0],
|
|
31614
31662
|
setTableState = _useState4[1];
|
|
31615
31663
|
var handleOpen = /*#__PURE__*/function () {
|
|
31616
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31664
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31617
31665
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31618
31666
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31619
31667
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31932,7 +31980,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31932
31980
|
destroyOnClose: true
|
|
31933
31981
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
31934
31982
|
ref: queryTableRef
|
|
31935
|
-
}, 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, {
|
|
31983
|
+
}, 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, {
|
|
31936
31984
|
justify: "center",
|
|
31937
31985
|
style: {
|
|
31938
31986
|
marginBottom: 30,
|
|
@@ -32048,7 +32096,7 @@ var CustomSelector = (function (props) {
|
|
|
32048
32096
|
var _props$ctx7;
|
|
32049
32097
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32050
32098
|
}
|
|
32051
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
32099
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
32052
32100
|
type: "primary",
|
|
32053
32101
|
style: {
|
|
32054
32102
|
width: '30px',
|
|
@@ -32134,7 +32182,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32134
32182
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32135
32183
|
handSource = _useState2[0],
|
|
32136
32184
|
setHandSource = _useState2[1];
|
|
32137
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32185
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32138
32186
|
var resData, data;
|
|
32139
32187
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32140
32188
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32286,7 +32334,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32286
32334
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32287
32335
|
}
|
|
32288
32336
|
function _getRegularThresholdRange() {
|
|
32289
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32337
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32290
32338
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32291
32339
|
while (1) switch (_context.prev = _context.next) {
|
|
32292
32340
|
case 0:
|
|
@@ -32440,7 +32488,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32440
32488
|
};
|
|
32441
32489
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32442
32490
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32443
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32491
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32444
32492
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32445
32493
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32446
32494
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33397,7 +33445,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33397
33445
|
isAll: true,
|
|
33398
33446
|
needNameAndCode: true,
|
|
33399
33447
|
notChangeOnSelect: true,
|
|
33400
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33448
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33401
33449
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33402
33450
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33403
33451
|
case 0:
|
|
@@ -33446,7 +33494,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33446
33494
|
isAll: true,
|
|
33447
33495
|
needNameAndCode: true,
|
|
33448
33496
|
notChangeOnSelect: true,
|
|
33449
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33497
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33450
33498
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33451
33499
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33452
33500
|
case 0:
|
|
@@ -33497,7 +33545,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33497
33545
|
isAll: true,
|
|
33498
33546
|
needNameAndCode: true,
|
|
33499
33547
|
notChangeOnSelect: true,
|
|
33500
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33548
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33501
33549
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33502
33550
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33503
33551
|
case 0:
|
|
@@ -35475,7 +35523,7 @@ var App$1 = function App(_ref) {
|
|
|
35475
35523
|
borderRadius: '5px',
|
|
35476
35524
|
cursor: 'pointer'
|
|
35477
35525
|
}
|
|
35478
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35526
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
35479
35527
|
autoFocus: true,
|
|
35480
35528
|
onClick: function onClick(e) {
|
|
35481
35529
|
return e.stopPropagation();
|
|
@@ -35762,7 +35810,7 @@ function RenderCompItem(props) {
|
|
|
35762
35810
|
dictData = _useState2[0],
|
|
35763
35811
|
setDictData = _useState2[1];
|
|
35764
35812
|
var getDictData = /*#__PURE__*/function () {
|
|
35765
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35813
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35766
35814
|
var _data$map;
|
|
35767
35815
|
var data;
|
|
35768
35816
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35804,7 +35852,7 @@ function RenderCompItem(props) {
|
|
|
35804
35852
|
var style2 = {
|
|
35805
35853
|
width: '100px'
|
|
35806
35854
|
};
|
|
35807
|
-
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, {
|
|
35855
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && ( /*#__PURE__*/React$1.createElement(Input, {
|
|
35808
35856
|
disabled: disabled,
|
|
35809
35857
|
allowClear: true,
|
|
35810
35858
|
onClear: function onClear() {
|
|
@@ -35815,7 +35863,7 @@ function RenderCompItem(props) {
|
|
|
35815
35863
|
onBlur: function onBlur(e) {
|
|
35816
35864
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35817
35865
|
}
|
|
35818
|
-
})) || 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, {
|
|
35866
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && ( /*#__PURE__*/React$1.createElement(InputNumber, {
|
|
35819
35867
|
disabled: disabled,
|
|
35820
35868
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35821
35869
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35828,7 +35876,7 @@ function RenderCompItem(props) {
|
|
|
35828
35876
|
onChange: function onChange(value) {
|
|
35829
35877
|
handleEdit(ites.code, value);
|
|
35830
35878
|
}
|
|
35831
|
-
})) || 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, {
|
|
35879
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && ( /*#__PURE__*/React$1.createElement(DatePicker, {
|
|
35832
35880
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35833
35881
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35834
35882
|
disabled: disabled,
|
|
@@ -35838,7 +35886,7 @@ function RenderCompItem(props) {
|
|
|
35838
35886
|
onChange: function onChange(value, dateString) {
|
|
35839
35887
|
handleEdit(ites.code, dateString);
|
|
35840
35888
|
}
|
|
35841
|
-
})) || 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, {
|
|
35889
|
+
})) || 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, {
|
|
35842
35890
|
showTime: true,
|
|
35843
35891
|
disabled: disabled,
|
|
35844
35892
|
defaultValue: ites.defaultValue,
|
|
@@ -35847,7 +35895,7 @@ function RenderCompItem(props) {
|
|
|
35847
35895
|
onChange: function onChange(value, timeString) {
|
|
35848
35896
|
handleEdit(ites.code, timeString);
|
|
35849
35897
|
}
|
|
35850
|
-
})) || 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, {
|
|
35898
|
+
})) || 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, {
|
|
35851
35899
|
disabled: disabled,
|
|
35852
35900
|
defaultChecked: !!ites.defaultValue,
|
|
35853
35901
|
style: style2,
|
|
@@ -35855,7 +35903,7 @@ function RenderCompItem(props) {
|
|
|
35855
35903
|
onChange: function onChange(value) {
|
|
35856
35904
|
handleEdit(ites.code, value);
|
|
35857
35905
|
}
|
|
35858
|
-
})) || 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({
|
|
35906
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && ( /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
35859
35907
|
disabled: disabled,
|
|
35860
35908
|
allowClear: true,
|
|
35861
35909
|
showArrow: true
|
|
@@ -35873,7 +35921,7 @@ function RenderCompItem(props) {
|
|
|
35873
35921
|
key: it,
|
|
35874
35922
|
value: it
|
|
35875
35923
|
}, ites.enumeration[it]);
|
|
35876
|
-
}))) || 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, {
|
|
35924
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && ( /*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
35877
35925
|
disabled: disabled,
|
|
35878
35926
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35879
35927
|
defaultValue: ites.defaultValue,
|
|
@@ -35883,7 +35931,7 @@ function RenderCompItem(props) {
|
|
|
35883
35931
|
handleEdit(ites.code, value);
|
|
35884
35932
|
},
|
|
35885
35933
|
dictionaryCode: ites.dictionaryCode
|
|
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) === 110 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35934
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35887
35935
|
selectBusinessType: "physicalWarehouse",
|
|
35888
35936
|
selectProps: _objectSpread2({
|
|
35889
35937
|
style: styleCommon,
|
|
@@ -35905,7 +35953,7 @@ function RenderCompItem(props) {
|
|
|
35905
35953
|
getPopupContainer: function getPopupContainer() {
|
|
35906
35954
|
return document.body;
|
|
35907
35955
|
}
|
|
35908
|
-
})) || 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, {
|
|
35956
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35909
35957
|
selectBusinessType: "realWarehouse",
|
|
35910
35958
|
selectProps: _objectSpread2({
|
|
35911
35959
|
style: styleCommon,
|
|
@@ -35927,7 +35975,7 @@ function RenderCompItem(props) {
|
|
|
35927
35975
|
getPopupContainer: function getPopupContainer() {
|
|
35928
35976
|
return document.body;
|
|
35929
35977
|
}
|
|
35930
|
-
})) || 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, {
|
|
35978
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35931
35979
|
selectBusinessType: "virtualWarehouse",
|
|
35932
35980
|
selectProps: _objectSpread2({
|
|
35933
35981
|
style: styleCommon,
|
|
@@ -35949,7 +35997,7 @@ function RenderCompItem(props) {
|
|
|
35949
35997
|
getPopupContainer: function getPopupContainer() {
|
|
35950
35998
|
return document.body;
|
|
35951
35999
|
}
|
|
35952
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36000
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35953
36001
|
selectBusinessType: "channelWarehouse",
|
|
35954
36002
|
selectProps: _objectSpread2({
|
|
35955
36003
|
style: styleCommon,
|
|
@@ -35971,7 +36019,7 @@ function RenderCompItem(props) {
|
|
|
35971
36019
|
getPopupContainer: function getPopupContainer() {
|
|
35972
36020
|
return document.body;
|
|
35973
36021
|
}
|
|
35974
|
-
})) || 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, {
|
|
36022
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35975
36023
|
selectBusinessType: "spuCommodity",
|
|
35976
36024
|
selectProps: _objectSpread2({
|
|
35977
36025
|
style: styleCommon,
|
|
@@ -35992,7 +36040,7 @@ function RenderCompItem(props) {
|
|
|
35992
36040
|
getPopupContainer: function getPopupContainer() {
|
|
35993
36041
|
return document.body;
|
|
35994
36042
|
}
|
|
35995
|
-
})) || 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, {
|
|
36043
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35996
36044
|
selectBusinessType: "skuCommodity",
|
|
35997
36045
|
selectProps: _objectSpread2({
|
|
35998
36046
|
style: styleCommon,
|
|
@@ -36013,13 +36061,13 @@ function RenderCompItem(props) {
|
|
|
36013
36061
|
getPopupContainer: function getPopupContainer() {
|
|
36014
36062
|
return document.body;
|
|
36015
36063
|
}
|
|
36016
|
-
})) || 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, {
|
|
36064
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && ( /*#__PURE__*/React$1.createElement(BsCascader, {
|
|
36017
36065
|
disabled: disabled,
|
|
36018
36066
|
isAll: true,
|
|
36019
36067
|
needNameAndCode: true,
|
|
36020
36068
|
notChangeOnSelect: true,
|
|
36021
36069
|
initRequestSource: function () {
|
|
36022
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36070
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36023
36071
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36024
36072
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36025
36073
|
case 0:
|
|
@@ -36061,7 +36109,7 @@ function RenderCompItem(props) {
|
|
|
36061
36109
|
getPopupContainer: function getPopupContainer() {
|
|
36062
36110
|
return document.body;
|
|
36063
36111
|
}
|
|
36064
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36112
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36065
36113
|
disabled: disabled,
|
|
36066
36114
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36067
36115
|
businessType: "department",
|
|
@@ -36074,7 +36122,7 @@ function RenderCompItem(props) {
|
|
|
36074
36122
|
getPopupContainer: function getPopupContainer() {
|
|
36075
36123
|
return document.body;
|
|
36076
36124
|
}
|
|
36077
|
-
})) || 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, {
|
|
36125
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36078
36126
|
disabled: disabled,
|
|
36079
36127
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36080
36128
|
businessType: "purchase-organization",
|
|
@@ -36087,7 +36135,7 @@ function RenderCompItem(props) {
|
|
|
36087
36135
|
getPopupContainer: function getPopupContainer() {
|
|
36088
36136
|
return document.body;
|
|
36089
36137
|
}
|
|
36090
|
-
})) || 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, {
|
|
36138
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36091
36139
|
disabled: disabled,
|
|
36092
36140
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36093
36141
|
businessType: "sales-organization",
|
|
@@ -36100,7 +36148,7 @@ function RenderCompItem(props) {
|
|
|
36100
36148
|
getPopupContainer: function getPopupContainer() {
|
|
36101
36149
|
return document.body;
|
|
36102
36150
|
}
|
|
36103
|
-
})) || 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, {
|
|
36151
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36104
36152
|
selectBusinessType: "supplier2",
|
|
36105
36153
|
selectProps: _objectSpread2({
|
|
36106
36154
|
style: styleCommon,
|
|
@@ -36121,7 +36169,7 @@ function RenderCompItem(props) {
|
|
|
36121
36169
|
getPopupContainer: function getPopupContainer() {
|
|
36122
36170
|
return document.body;
|
|
36123
36171
|
}
|
|
36124
|
-
})) || 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, {
|
|
36172
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36125
36173
|
selectBusinessType: "customer2",
|
|
36126
36174
|
selectProps: _objectSpread2({
|
|
36127
36175
|
style: styleCommon,
|
|
@@ -36142,7 +36190,7 @@ function RenderCompItem(props) {
|
|
|
36142
36190
|
getPopupContainer: function getPopupContainer() {
|
|
36143
36191
|
return document.body;
|
|
36144
36192
|
}
|
|
36145
|
-
})) || 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, {
|
|
36193
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36146
36194
|
selectBusinessType: "shopFile2",
|
|
36147
36195
|
selectProps: _objectSpread2({
|
|
36148
36196
|
style: styleCommon,
|
|
@@ -36163,7 +36211,7 @@ function RenderCompItem(props) {
|
|
|
36163
36211
|
getPopupContainer: function getPopupContainer() {
|
|
36164
36212
|
return document.body;
|
|
36165
36213
|
}
|
|
36166
|
-
})) || 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, {
|
|
36214
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36167
36215
|
selectBusinessType: "employee2",
|
|
36168
36216
|
selectProps: _objectSpread2({
|
|
36169
36217
|
style: styleCommon,
|
|
@@ -36184,7 +36232,7 @@ function RenderCompItem(props) {
|
|
|
36184
36232
|
getPopupContainer: function getPopupContainer() {
|
|
36185
36233
|
return document.body;
|
|
36186
36234
|
}
|
|
36187
|
-
})) || 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, {
|
|
36235
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36188
36236
|
disabled: disabled,
|
|
36189
36237
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36190
36238
|
businessType: "stock-organization",
|
|
@@ -36197,7 +36245,7 @@ function RenderCompItem(props) {
|
|
|
36197
36245
|
getPopupContainer: function getPopupContainer() {
|
|
36198
36246
|
return document.body;
|
|
36199
36247
|
}
|
|
36200
|
-
})) || 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, {
|
|
36248
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36201
36249
|
disabled: disabled,
|
|
36202
36250
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36203
36251
|
businessType: "settle-organization",
|
|
@@ -36210,7 +36258,7 @@ function RenderCompItem(props) {
|
|
|
36210
36258
|
getPopupContainer: function getPopupContainer() {
|
|
36211
36259
|
return document.body;
|
|
36212
36260
|
}
|
|
36213
|
-
})) || 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, {
|
|
36261
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36214
36262
|
selectBusinessType: "deliveryMode",
|
|
36215
36263
|
selectProps: _objectSpread2({
|
|
36216
36264
|
style: styleCommon,
|
|
@@ -36231,7 +36279,7 @@ function RenderCompItem(props) {
|
|
|
36231
36279
|
getPopupContainer: function getPopupContainer() {
|
|
36232
36280
|
return document.body;
|
|
36233
36281
|
}
|
|
36234
|
-
})) || 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, {
|
|
36282
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36235
36283
|
selectBusinessType: "role",
|
|
36236
36284
|
selectProps: _objectSpread2({
|
|
36237
36285
|
style: styleCommon,
|
|
@@ -36252,7 +36300,7 @@ function RenderCompItem(props) {
|
|
|
36252
36300
|
getPopupContainer: function getPopupContainer() {
|
|
36253
36301
|
return document.body;
|
|
36254
36302
|
}
|
|
36255
|
-
})) || 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, {
|
|
36303
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36256
36304
|
selectBusinessType: "brand",
|
|
36257
36305
|
selectProps: _objectSpread2({
|
|
36258
36306
|
style: styleCommon,
|
|
@@ -36273,7 +36321,7 @@ function RenderCompItem(props) {
|
|
|
36273
36321
|
getPopupContainer: function getPopupContainer() {
|
|
36274
36322
|
return document.body;
|
|
36275
36323
|
}
|
|
36276
|
-
})) || 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, {
|
|
36324
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36277
36325
|
disabled: disabled,
|
|
36278
36326
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36279
36327
|
businessType: "background-category",
|
|
@@ -36286,7 +36334,7 @@ function RenderCompItem(props) {
|
|
|
36286
36334
|
getPopupContainer: function getPopupContainer() {
|
|
36287
36335
|
return document.body;
|
|
36288
36336
|
}
|
|
36289
|
-
})) || 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, {
|
|
36337
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && ( /*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
36290
36338
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36291
36339
|
style: styleCommon,
|
|
36292
36340
|
placeholder: '请选择'
|
|
@@ -36309,7 +36357,7 @@ function RenderCompItem(props) {
|
|
|
36309
36357
|
onChange: function onChange(value) {
|
|
36310
36358
|
handleEdit(ites.code, value);
|
|
36311
36359
|
}
|
|
36312
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36360
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
36313
36361
|
style: {
|
|
36314
36362
|
display: 'flex'
|
|
36315
36363
|
}
|
|
@@ -36821,7 +36869,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36821
36869
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36822
36870
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36823
36871
|
}
|
|
36824
|
-
var parallelTreeData =
|
|
36872
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
36825
36873
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36826
36874
|
var _i$key;
|
|
36827
36875
|
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);
|
|
@@ -37748,13 +37796,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37748
37796
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37749
37797
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37750
37798
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37751
|
-
var list =
|
|
37799
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37752
37800
|
var requiredList = list.filter(function (c) {
|
|
37753
37801
|
return c.required == 1;
|
|
37754
37802
|
}) || []; // 获取对象属性为true的集合
|
|
37755
37803
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37756
37804
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37757
|
-
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) ?
|
|
37805
|
+
var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ? 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];
|
|
37758
37806
|
(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) {
|
|
37759
37807
|
if (requiredList.some(function (r) {
|
|
37760
37808
|
return r.id === e.elementId;
|
|
@@ -38343,7 +38391,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38343
38391
|
style: {
|
|
38344
38392
|
float: 'right'
|
|
38345
38393
|
}
|
|
38346
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38394
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38347
38395
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38348
38396
|
ruleGroupInfo: {
|
|
38349
38397
|
ruleGroupList: ruleGroupList,
|
|
@@ -38361,7 +38409,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38361
38409
|
callBack: function callBack(newData) {
|
|
38362
38410
|
upDateData(newData);
|
|
38363
38411
|
}
|
|
38364
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38412
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
38365
38413
|
style: {
|
|
38366
38414
|
padding: 20
|
|
38367
38415
|
}
|
|
@@ -38736,4 +38784,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
38736
38784
|
}, children));
|
|
38737
38785
|
};
|
|
38738
38786
|
|
|
38739
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy,
|
|
38787
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|