@bit-sun/business-component 4.0.13-alpha.2 → 4.0.13-alpha.21
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/.umirc.ts +9 -9
- package/dist/components/Business/ItemPropertySelector/index.d.ts +3 -0
- package/dist/components/Functional/SearchSelect/utils.d.ts +4 -1
- package/dist/index.esm.js +935 -589
- package/dist/index.js +935 -589
- package/package.json +2 -1
- package/src/components/Business/BsSulaQueryTable/index.tsx +6 -6
- package/src/components/Business/BsSulaQueryTable/setting.tsx +3 -3
- package/src/components/Business/BsSulaQueryTable/utils.tsx +2 -1
- package/src/components/Business/CommodityEntry/index.tsx +11 -9
- package/src/components/Business/DetailPageWrapper/utils.tsx +3 -1
- package/src/components/Business/HomePageWrapper/index.less +1 -1
- package/src/components/Business/ItemPropertySelector/index.tsx +88 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +200 -2
- package/src/components/Business/SearchSelect/index.md +3 -3
- package/src/components/Business/SearchSelect/utils.ts +1 -1
- package/src/components/Functional/AddSelect/index.tsx +1 -1
- package/src/components/Functional/QueryMutipleSelect/index.md +2 -3
- package/src/components/Functional/QueryMutipleSelect/index.tsx +2 -1
- package/src/components/Functional/SearchSelect/index.less +16 -6
- package/src/components/Functional/SearchSelect/index.tsx +61 -46
- package/src/components/Functional/SearchSelect/utils.tsx +46 -6
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ var memoizeOne = require('memoize-one');
|
|
|
11
11
|
var umi = require('umi');
|
|
12
12
|
var isEqual = require('lodash/isEqual');
|
|
13
13
|
var React$1 = require('react');
|
|
14
|
+
var ReactDOMServer = require('react-dom/server');
|
|
14
15
|
var moment$1 = require('moment');
|
|
15
16
|
var icons = require('@ant-design/icons');
|
|
16
17
|
var bssula = require('bssula');
|
|
@@ -54,9 +55,88 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
|
|
|
54
55
|
var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
|
|
55
56
|
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
|
|
56
57
|
|
|
58
|
+
function _arrayLikeToArray(r, a) {
|
|
59
|
+
(null == a || a > r.length) && (a = r.length);
|
|
60
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
61
|
+
return n;
|
|
62
|
+
}
|
|
63
|
+
function _arrayWithHoles(r) {
|
|
64
|
+
if (Array.isArray(r)) return r;
|
|
65
|
+
}
|
|
66
|
+
function _arrayWithoutHoles(r) {
|
|
67
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
68
|
+
}
|
|
69
|
+
function _assertThisInitialized(e) {
|
|
70
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
71
|
+
return e;
|
|
72
|
+
}
|
|
73
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
74
|
+
try {
|
|
75
|
+
var i = n[a](c),
|
|
76
|
+
u = i.value;
|
|
77
|
+
} catch (n) {
|
|
78
|
+
return void e(n);
|
|
79
|
+
}
|
|
80
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
81
|
+
}
|
|
82
|
+
function _asyncToGenerator(n) {
|
|
83
|
+
return function () {
|
|
84
|
+
var t = this,
|
|
85
|
+
e = arguments;
|
|
86
|
+
return new Promise(function (r, o) {
|
|
87
|
+
var a = n.apply(t, e);
|
|
88
|
+
function _next(n) {
|
|
89
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
90
|
+
}
|
|
91
|
+
function _throw(n) {
|
|
92
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
93
|
+
}
|
|
94
|
+
_next(void 0);
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
}
|
|
57
98
|
function _callSuper(t, o, e) {
|
|
58
99
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
59
100
|
}
|
|
101
|
+
function _classCallCheck(a, n) {
|
|
102
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
103
|
+
}
|
|
104
|
+
function _defineProperties(e, r) {
|
|
105
|
+
for (var t = 0; t < r.length; t++) {
|
|
106
|
+
var o = r[t];
|
|
107
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function _createClass(e, r, t) {
|
|
111
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
112
|
+
writable: !1
|
|
113
|
+
}), e;
|
|
114
|
+
}
|
|
115
|
+
function _defineProperty(e, r, t) {
|
|
116
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
117
|
+
value: t,
|
|
118
|
+
enumerable: !0,
|
|
119
|
+
configurable: !0,
|
|
120
|
+
writable: !0
|
|
121
|
+
}) : e[r] = t, e;
|
|
122
|
+
}
|
|
123
|
+
function _getPrototypeOf(t) {
|
|
124
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
125
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
126
|
+
}, _getPrototypeOf(t);
|
|
127
|
+
}
|
|
128
|
+
function _inherits(t, e) {
|
|
129
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
130
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
131
|
+
constructor: {
|
|
132
|
+
value: t,
|
|
133
|
+
writable: !0,
|
|
134
|
+
configurable: !0
|
|
135
|
+
}
|
|
136
|
+
}), Object.defineProperty(t, "prototype", {
|
|
137
|
+
writable: !1
|
|
138
|
+
}), e && _setPrototypeOf(t, e);
|
|
139
|
+
}
|
|
60
140
|
function _isNativeReflectConstruct() {
|
|
61
141
|
try {
|
|
62
142
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -65,6 +145,9 @@ function _isNativeReflectConstruct() {
|
|
|
65
145
|
return !!t;
|
|
66
146
|
})();
|
|
67
147
|
}
|
|
148
|
+
function _iterableToArray(r) {
|
|
149
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
150
|
+
}
|
|
68
151
|
function _iterableToArrayLimit(r, l) {
|
|
69
152
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
70
153
|
if (null != t) {
|
|
@@ -92,6 +175,15 @@ function _iterableToArrayLimit(r, l) {
|
|
|
92
175
|
return a;
|
|
93
176
|
}
|
|
94
177
|
}
|
|
178
|
+
function _nonIterableRest() {
|
|
179
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
180
|
+
}
|
|
181
|
+
function _nonIterableSpread() {
|
|
182
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
183
|
+
}
|
|
184
|
+
function _objectDestructuringEmpty(t) {
|
|
185
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
186
|
+
}
|
|
95
187
|
function ownKeys(e, r) {
|
|
96
188
|
var t = Object.keys(e);
|
|
97
189
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -113,6 +205,31 @@ function _objectSpread2(e) {
|
|
|
113
205
|
}
|
|
114
206
|
return e;
|
|
115
207
|
}
|
|
208
|
+
function _objectWithoutProperties(e, t) {
|
|
209
|
+
if (null == e) return {};
|
|
210
|
+
var o,
|
|
211
|
+
r,
|
|
212
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
|
+
if (Object.getOwnPropertySymbols) {
|
|
214
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
215
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
216
|
+
}
|
|
217
|
+
return i;
|
|
218
|
+
}
|
|
219
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
220
|
+
if (null == r) return {};
|
|
221
|
+
var t = {};
|
|
222
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
223
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
224
|
+
t[n] = r[n];
|
|
225
|
+
}
|
|
226
|
+
return t;
|
|
227
|
+
}
|
|
228
|
+
function _possibleConstructorReturn(t, e) {
|
|
229
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
230
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
|
+
return _assertThisInitialized(t);
|
|
232
|
+
}
|
|
116
233
|
function _regeneratorRuntime() {
|
|
117
234
|
_regeneratorRuntime = function () {
|
|
118
235
|
return e;
|
|
@@ -414,6 +531,20 @@ function _regeneratorRuntime() {
|
|
|
414
531
|
}
|
|
415
532
|
}, e;
|
|
416
533
|
}
|
|
534
|
+
function _setPrototypeOf(t, e) {
|
|
535
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
536
|
+
return t.__proto__ = e, t;
|
|
537
|
+
}, _setPrototypeOf(t, e);
|
|
538
|
+
}
|
|
539
|
+
function _slicedToArray(r, e) {
|
|
540
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
541
|
+
}
|
|
542
|
+
function _toArray(r) {
|
|
543
|
+
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
544
|
+
}
|
|
545
|
+
function _toConsumableArray(r) {
|
|
546
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
547
|
+
}
|
|
417
548
|
function _toPrimitive(t, r) {
|
|
418
549
|
if ("object" != typeof t || !t) return t;
|
|
419
550
|
var e = t[Symbol.toPrimitive];
|
|
@@ -437,180 +568,12 @@ function _typeof(o) {
|
|
|
437
568
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
438
569
|
}, _typeof(o);
|
|
439
570
|
}
|
|
440
|
-
function
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
var
|
|
444
|
-
|
|
445
|
-
reject(error);
|
|
446
|
-
return;
|
|
447
|
-
}
|
|
448
|
-
if (info.done) {
|
|
449
|
-
resolve(value);
|
|
450
|
-
} else {
|
|
451
|
-
Promise.resolve(value).then(_next, _throw);
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
function _asyncToGenerator(fn) {
|
|
455
|
-
return function () {
|
|
456
|
-
var self = this,
|
|
457
|
-
args = arguments;
|
|
458
|
-
return new Promise(function (resolve, reject) {
|
|
459
|
-
var gen = fn.apply(self, args);
|
|
460
|
-
function _next(value) {
|
|
461
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
462
|
-
}
|
|
463
|
-
function _throw(err) {
|
|
464
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
465
|
-
}
|
|
466
|
-
_next(undefined);
|
|
467
|
-
});
|
|
468
|
-
};
|
|
469
|
-
}
|
|
470
|
-
function _classCallCheck(instance, Constructor) {
|
|
471
|
-
if (!(instance instanceof Constructor)) {
|
|
472
|
-
throw new TypeError("Cannot call a class as a function");
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
function _defineProperties(target, props) {
|
|
476
|
-
for (var i = 0; i < props.length; i++) {
|
|
477
|
-
var descriptor = props[i];
|
|
478
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
479
|
-
descriptor.configurable = true;
|
|
480
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
481
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
485
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
486
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
487
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
488
|
-
writable: false
|
|
489
|
-
});
|
|
490
|
-
return Constructor;
|
|
491
|
-
}
|
|
492
|
-
function _defineProperty(obj, key, value) {
|
|
493
|
-
key = _toPropertyKey(key);
|
|
494
|
-
if (key in obj) {
|
|
495
|
-
Object.defineProperty(obj, key, {
|
|
496
|
-
value: value,
|
|
497
|
-
enumerable: true,
|
|
498
|
-
configurable: true,
|
|
499
|
-
writable: true
|
|
500
|
-
});
|
|
501
|
-
} else {
|
|
502
|
-
obj[key] = value;
|
|
503
|
-
}
|
|
504
|
-
return obj;
|
|
505
|
-
}
|
|
506
|
-
function _inherits(subClass, superClass) {
|
|
507
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
508
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
509
|
-
}
|
|
510
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
511
|
-
constructor: {
|
|
512
|
-
value: subClass,
|
|
513
|
-
writable: true,
|
|
514
|
-
configurable: true
|
|
515
|
-
}
|
|
516
|
-
});
|
|
517
|
-
Object.defineProperty(subClass, "prototype", {
|
|
518
|
-
writable: false
|
|
519
|
-
});
|
|
520
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
521
|
-
}
|
|
522
|
-
function _getPrototypeOf(o) {
|
|
523
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
524
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
525
|
-
};
|
|
526
|
-
return _getPrototypeOf(o);
|
|
527
|
-
}
|
|
528
|
-
function _setPrototypeOf(o, p) {
|
|
529
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
530
|
-
o.__proto__ = p;
|
|
531
|
-
return o;
|
|
532
|
-
};
|
|
533
|
-
return _setPrototypeOf(o, p);
|
|
534
|
-
}
|
|
535
|
-
function _objectDestructuringEmpty(obj) {
|
|
536
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
537
|
-
}
|
|
538
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
539
|
-
if (source == null) return {};
|
|
540
|
-
var target = {};
|
|
541
|
-
for (var key in source) {
|
|
542
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
543
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
544
|
-
target[key] = source[key];
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
return target;
|
|
548
|
-
}
|
|
549
|
-
function _objectWithoutProperties(source, excluded) {
|
|
550
|
-
if (source == null) return {};
|
|
551
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
552
|
-
var key, i;
|
|
553
|
-
if (Object.getOwnPropertySymbols) {
|
|
554
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
555
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
556
|
-
key = sourceSymbolKeys[i];
|
|
557
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
558
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
559
|
-
target[key] = source[key];
|
|
560
|
-
}
|
|
571
|
+
function _unsupportedIterableToArray(r, a) {
|
|
572
|
+
if (r) {
|
|
573
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
574
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
575
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
561
576
|
}
|
|
562
|
-
return target;
|
|
563
|
-
}
|
|
564
|
-
function _assertThisInitialized(self) {
|
|
565
|
-
if (self === void 0) {
|
|
566
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
567
|
-
}
|
|
568
|
-
return self;
|
|
569
|
-
}
|
|
570
|
-
function _possibleConstructorReturn(self, call) {
|
|
571
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
572
|
-
return call;
|
|
573
|
-
} else if (call !== void 0) {
|
|
574
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
575
|
-
}
|
|
576
|
-
return _assertThisInitialized(self);
|
|
577
|
-
}
|
|
578
|
-
function _slicedToArray(arr, i) {
|
|
579
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
580
|
-
}
|
|
581
|
-
function _toArray(arr) {
|
|
582
|
-
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
583
|
-
}
|
|
584
|
-
function _toConsumableArray(arr) {
|
|
585
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
586
|
-
}
|
|
587
|
-
function _arrayWithoutHoles(arr) {
|
|
588
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
589
|
-
}
|
|
590
|
-
function _arrayWithHoles(arr) {
|
|
591
|
-
if (Array.isArray(arr)) return arr;
|
|
592
|
-
}
|
|
593
|
-
function _iterableToArray(iter) {
|
|
594
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
595
|
-
}
|
|
596
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
597
|
-
if (!o) return;
|
|
598
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
599
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
600
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
601
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
602
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
603
|
-
}
|
|
604
|
-
function _arrayLikeToArray(arr, len) {
|
|
605
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
606
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
607
|
-
return arr2;
|
|
608
|
-
}
|
|
609
|
-
function _nonIterableSpread() {
|
|
610
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
611
|
-
}
|
|
612
|
-
function _nonIterableRest() {
|
|
613
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
614
577
|
}
|
|
615
578
|
|
|
616
579
|
var ENUM = {
|
|
@@ -1046,12 +1009,6 @@ styleInject(css_248z);
|
|
|
1046
1009
|
|
|
1047
1010
|
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";
|
|
1048
1011
|
|
|
1049
|
-
module.exports = require('./server.node');
|
|
1050
|
-
|
|
1051
|
-
var ReactDOMServer = /*#__PURE__*/Object.freeze({
|
|
1052
|
-
__proto__: null
|
|
1053
|
-
});
|
|
1054
|
-
|
|
1055
1012
|
// 带有toptile 清提示 并且会换行的
|
|
1056
1013
|
var handleTextDouble = function handleTextDouble(textOne, textTwo) {
|
|
1057
1014
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -1126,13 +1083,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1126
1083
|
imgHtml.innerHTML = str;
|
|
1127
1084
|
}
|
|
1128
1085
|
// 测试使用 测试类型缩小 end
|
|
1129
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (
|
|
1086
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1130
1087
|
className: "clomnsImg"
|
|
1131
1088
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1132
1089
|
src: url,
|
|
1133
1090
|
width: "16px",
|
|
1134
1091
|
height: "16px"
|
|
1135
|
-
}, paramsObj)))) : (
|
|
1092
|
+
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1136
1093
|
className: "clomnsImg2"
|
|
1137
1094
|
}, /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1138
1095
|
src: noImg
|
|
@@ -1254,7 +1211,8 @@ var authFn = function authFn(code) {
|
|
|
1254
1211
|
};
|
|
1255
1212
|
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1256
1213
|
var renderToString = function renderToString(render) {
|
|
1257
|
-
return
|
|
1214
|
+
// return render;
|
|
1215
|
+
return typeof render === 'string' ? render : ReactDOMServer.renderToString(render);
|
|
1258
1216
|
};
|
|
1259
1217
|
|
|
1260
1218
|
function downloadExcel(data, fileName, isResUrl) {
|
|
@@ -1268,7 +1226,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1268
1226
|
}
|
|
1269
1227
|
save_link.click();
|
|
1270
1228
|
}
|
|
1271
|
-
var
|
|
1229
|
+
var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
1272
1230
|
return data.map(function (item) {
|
|
1273
1231
|
if (!item.name || !item.path) {
|
|
1274
1232
|
return null;
|
|
@@ -1288,7 +1246,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1288
1246
|
authority: item.authority || parentAuthority
|
|
1289
1247
|
});
|
|
1290
1248
|
if (item.routes) {
|
|
1291
|
-
var children =
|
|
1249
|
+
var children = _formatter(item.routes, item.authority, locale);
|
|
1292
1250
|
// Reduce memory usage
|
|
1293
1251
|
result.children = children;
|
|
1294
1252
|
}
|
|
@@ -1298,7 +1256,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1298
1256
|
return item;
|
|
1299
1257
|
});
|
|
1300
1258
|
};
|
|
1301
|
-
var memoizeOneFormatter = memoizeOne__default['default'](
|
|
1259
|
+
var memoizeOneFormatter = memoizeOne__default['default'](_formatter, isEqual__default['default']);
|
|
1302
1260
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1303
1261
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1304
1262
|
if (backHistoryPath) {
|
|
@@ -1607,7 +1565,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1607
1565
|
// sheepMap是表头字段中英文映射
|
|
1608
1566
|
// sheetCount:表的数量,默认一张
|
|
1609
1567
|
var resolveFile = /*#__PURE__*/function () {
|
|
1610
|
-
var _ref3 = _asyncToGenerator(
|
|
1568
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1611
1569
|
var config,
|
|
1612
1570
|
data,
|
|
1613
1571
|
_args = arguments;
|
|
@@ -1646,7 +1604,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1646
1604
|
}();
|
|
1647
1605
|
//读取文件
|
|
1648
1606
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1649
|
-
var _ref4 = _asyncToGenerator(
|
|
1607
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1650
1608
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1651
1609
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1652
1610
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1739,14 +1697,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1739
1697
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1740
1698
|
|
|
1741
1699
|
// 获取树平行结构
|
|
1742
|
-
var
|
|
1700
|
+
var _coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1743
1701
|
var childrenKey = chilKey || 'children';
|
|
1744
1702
|
treeData.forEach(function (el) {
|
|
1745
1703
|
var _el$childrenKey;
|
|
1746
1704
|
result.push(el);
|
|
1747
1705
|
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) {
|
|
1748
1706
|
// 子级递归
|
|
1749
|
-
|
|
1707
|
+
_coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1750
1708
|
}
|
|
1751
1709
|
});
|
|
1752
1710
|
return result;
|
|
@@ -2023,13 +1981,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
2023
1981
|
imgHtml.innerHTML = str;
|
|
2024
1982
|
}
|
|
2025
1983
|
// 测试使用 测试类型缩小 end
|
|
2026
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (
|
|
1984
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
2027
1985
|
className: "clomnsImg"
|
|
2028
1986
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
2029
1987
|
src: url,
|
|
2030
1988
|
width: "16px",
|
|
2031
1989
|
height: "16px"
|
|
2032
|
-
}, paramsObj)))) : (
|
|
1990
|
+
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2033
1991
|
src: noImg
|
|
2034
1992
|
}))));
|
|
2035
1993
|
};
|
|
@@ -2091,7 +2049,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2091
2049
|
}
|
|
2092
2050
|
});
|
|
2093
2051
|
};
|
|
2094
|
-
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && (
|
|
2052
|
+
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && (/*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
2095
2053
|
disabled: disabled,
|
|
2096
2054
|
onChange: function onChange(e) {
|
|
2097
2055
|
var v = e.target.value;
|
|
@@ -2101,7 +2059,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2101
2059
|
width: 170
|
|
2102
2060
|
},
|
|
2103
2061
|
value: inputValue
|
|
2104
|
-
}, inpProps))), type === 'number' && (
|
|
2062
|
+
}, inpProps))), type === 'number' && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2105
2063
|
disabled: disabled,
|
|
2106
2064
|
onBlur: function onBlur(e) {
|
|
2107
2065
|
var v = parseFloat(e.target.value);
|
|
@@ -2480,16 +2438,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2480
2438
|
var handleExportBarCode = handleExport;
|
|
2481
2439
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2482
2440
|
var routerMap = {};
|
|
2483
|
-
var
|
|
2441
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
2484
2442
|
data.forEach(function (menuItem) {
|
|
2485
2443
|
if (menuItem.children) {
|
|
2486
|
-
|
|
2444
|
+
_flattenMenuData(menuItem.children);
|
|
2487
2445
|
}
|
|
2488
2446
|
// Reduce memory usage
|
|
2489
2447
|
routerMap[menuItem.path] = menuItem;
|
|
2490
2448
|
});
|
|
2491
2449
|
};
|
|
2492
|
-
|
|
2450
|
+
_flattenMenuData(menuData);
|
|
2493
2451
|
return routerMap;
|
|
2494
2452
|
};
|
|
2495
2453
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2632,7 +2590,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2632
2590
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2633
2591
|
};
|
|
2634
2592
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2635
|
-
var _ref2 = _asyncToGenerator(
|
|
2593
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2636
2594
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2637
2595
|
while (1) switch (_context.prev = _context.next) {
|
|
2638
2596
|
case 0:
|
|
@@ -3310,7 +3268,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3310
3268
|
style: {
|
|
3311
3269
|
color: 'red'
|
|
3312
3270
|
}
|
|
3313
|
-
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (
|
|
3271
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3314
3272
|
trigger: ['click'],
|
|
3315
3273
|
overlay: this.menuList,
|
|
3316
3274
|
placement: "bottomRight"
|
|
@@ -3985,7 +3943,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3985
3943
|
placement: "bottomLeft"
|
|
3986
3944
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3987
3945
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3988
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (
|
|
3946
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3989
3947
|
trigger: ['click'],
|
|
3990
3948
|
overlay: this.menuList,
|
|
3991
3949
|
placement: "bottomRight"
|
|
@@ -4157,14 +4115,16 @@ var makeUniqueValue = function makeUniqueValue() {
|
|
|
4157
4115
|
return generateUnitKey;
|
|
4158
4116
|
};
|
|
4159
4117
|
// ------------------------------------------处理样式相关--开始----------------------------------------
|
|
4160
|
-
var getFormRowInfo = function getFormRowInfo(list) {
|
|
4161
|
-
var
|
|
4162
|
-
var
|
|
4163
|
-
var
|
|
4118
|
+
var getFormRowInfo = function getFormRowInfo(list, tableSearchColSpan) {
|
|
4119
|
+
var lastColumnsPerRow = tableSearchColSpan == 6 ? columnsPerRow : 3;
|
|
4120
|
+
var totalRows = Math.ceil(list.length / lastColumnsPerRow); // 计算总行数
|
|
4121
|
+
var lastRowColumns = (list.length + 1) % lastColumnsPerRow; // 计算最后一行的实际列数
|
|
4122
|
+
var emptySlots = lastRowColumns === 0 ? 0 : lastColumnsPerRow - lastRowColumns; // 计算最后一行的空位数
|
|
4164
4123
|
var emptyArray = new Array(emptySlots).fill(null); // 生成长度为 emptySlots 的数组
|
|
4165
4124
|
return {
|
|
4166
4125
|
totalRows: totalRows,
|
|
4167
|
-
emptyArray: emptyArray
|
|
4126
|
+
emptyArray: emptyArray,
|
|
4127
|
+
ColSpan: tableSearchColSpan !== null && tableSearchColSpan !== void 0 ? tableSearchColSpan : ColSpan
|
|
4168
4128
|
};
|
|
4169
4129
|
};
|
|
4170
4130
|
var defaultVisibleFieldsCount = 7;
|
|
@@ -4504,7 +4464,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4504
4464
|
destroyTooltipOnHide: true,
|
|
4505
4465
|
placement: "topRight",
|
|
4506
4466
|
autoAdjustOverflow: false,
|
|
4507
|
-
title: (
|
|
4467
|
+
title: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4508
4468
|
style: {
|
|
4509
4469
|
margin: '6px 8px 0px'
|
|
4510
4470
|
},
|
|
@@ -4530,7 +4490,77 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4530
4490
|
})))
|
|
4531
4491
|
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
4532
4492
|
};
|
|
4493
|
+
// 弹窗数据表头处理
|
|
4494
|
+
var handleTableColumns = function handleTableColumns(tableColumns) {
|
|
4495
|
+
// 按照默认设置排序 > 没有排序字段的展示所有列表头 > 没有表头列不展示
|
|
4496
|
+
var showTableColumns = (tableColumns === null || tableColumns === void 0 ? void 0 : tableColumns.filter(function (s) {
|
|
4497
|
+
return typeof s.defaultSort == 'number';
|
|
4498
|
+
})) || tableColumns || [];
|
|
4499
|
+
return (showTableColumns === null || showTableColumns === void 0 ? void 0 : showTableColumns.sort(function (a, b) {
|
|
4500
|
+
return a.defaultSort - b.defaultSort;
|
|
4501
|
+
})) || [];
|
|
4502
|
+
};
|
|
4533
4503
|
// ------------------------------------------ 数据源展示 相关处理--结束----------------------------------------
|
|
4504
|
+
// ------------------------------------------ 选中数据展示 相关处理--开始----------------------------------------
|
|
4505
|
+
var getShowLabelTextStr = function getShowLabelTextStr(_ref4) {
|
|
4506
|
+
var kongValue = _ref4.kongValue,
|
|
4507
|
+
selectMode = _ref4.selectMode,
|
|
4508
|
+
value = _ref4.value,
|
|
4509
|
+
items = _ref4.items;
|
|
4510
|
+
if (selectMode) {
|
|
4511
|
+
var _value$map;
|
|
4512
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
4513
|
+
return item.label || item.text || '';
|
|
4514
|
+
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
4515
|
+
}
|
|
4516
|
+
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
4517
|
+
};
|
|
4518
|
+
var getSelectValueText = function getSelectValueText(v, items) {
|
|
4519
|
+
var _filter, _filter$;
|
|
4520
|
+
return ((_filter = (items || []).filter(function (item) {
|
|
4521
|
+
return item.value === v;
|
|
4522
|
+
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
4523
|
+
};
|
|
4524
|
+
var getShowValueStr = function getShowValueStr(_ref5) {
|
|
4525
|
+
var kongValue = _ref5.kongValue,
|
|
4526
|
+
selectMode = _ref5.selectMode,
|
|
4527
|
+
value = _ref5.value,
|
|
4528
|
+
items = _ref5.items;
|
|
4529
|
+
if (selectMode) {
|
|
4530
|
+
var _value$map2;
|
|
4531
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
4532
|
+
return getSelectValueText(item, items);
|
|
4533
|
+
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
4534
|
+
}
|
|
4535
|
+
return getSelectValueText(value, items) || kongValue;
|
|
4536
|
+
};
|
|
4537
|
+
var getShowStr = function getShowStr(_ref6) {
|
|
4538
|
+
var viewShowValueStr = _ref6.viewShowValueStr,
|
|
4539
|
+
labelInValue = _ref6.labelInValue,
|
|
4540
|
+
selectMode = _ref6.selectMode,
|
|
4541
|
+
value = _ref6.value,
|
|
4542
|
+
items = _ref6.items;
|
|
4543
|
+
// 优先使用业务使用传入的展示
|
|
4544
|
+
if (viewShowValueStr) return viewShowValueStr;
|
|
4545
|
+
var kongValue = '无';
|
|
4546
|
+
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
4547
|
+
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
4548
|
+
if (labelInValue) {
|
|
4549
|
+
return getShowLabelTextStr({
|
|
4550
|
+
kongValue: kongValue,
|
|
4551
|
+
selectMode: selectMode,
|
|
4552
|
+
value: value,
|
|
4553
|
+
items: items
|
|
4554
|
+
});
|
|
4555
|
+
}
|
|
4556
|
+
return getShowValueStr({
|
|
4557
|
+
kongValue: kongValue,
|
|
4558
|
+
selectMode: selectMode,
|
|
4559
|
+
value: value,
|
|
4560
|
+
items: items
|
|
4561
|
+
});
|
|
4562
|
+
};
|
|
4563
|
+
// ------------------------------------------ 选中数据展示 相关处理--结束---------------------------------------
|
|
4534
4564
|
|
|
4535
4565
|
var getValue = function getValue(value, selectMode) {
|
|
4536
4566
|
var _value$split;
|
|
@@ -4646,6 +4676,7 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4646
4676
|
var callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
4647
4677
|
if (!requestConfig) return;
|
|
4648
4678
|
if (!url) return;
|
|
4679
|
+
if (!(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) return; // 空值默认不查询
|
|
4649
4680
|
setFetching(true);
|
|
4650
4681
|
var queryParams = _objectSpread2(_objectSpread2({}, otherParams), params);
|
|
4651
4682
|
if (_.isNil(queryParams[selectParamsKey])) {
|
|
@@ -4735,14 +4766,14 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4735
4766
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4736
4767
|
});
|
|
4737
4768
|
},
|
|
4738
|
-
notFoundContent: fetching ? (
|
|
4769
|
+
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
4739
4770
|
size: "small",
|
|
4740
4771
|
className: 'searchSelectSpin'
|
|
4741
|
-
})) : (
|
|
4772
|
+
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4742
4773
|
style: {
|
|
4743
4774
|
textAlign: 'center'
|
|
4744
4775
|
}
|
|
4745
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : "\u8BF7\u5F55\u5165\
|
|
4776
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : (selectProps === null || selectProps === void 0 ? void 0 : selectProps.notFoundText) || "\u8BF7\u5F55\u5165\u7F16\u7801/\u540D\u79F0\u6A21\u7CCA\u67E5\u8BE2"))),
|
|
4746
4777
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
4747
4778
|
return triggerNode.parentElement;
|
|
4748
4779
|
}
|
|
@@ -4806,7 +4837,7 @@ function ToCDB$1(selectStr) {
|
|
|
4806
4837
|
return tmp;
|
|
4807
4838
|
}
|
|
4808
4839
|
|
|
4809
|
-
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table
|
|
4840
|
+
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n visibility: hidden;\n padding: 0;\n margin: 0;\n width: 0;\n height: 0;\n min-width: 0;\n min-height: 0;\n border: none;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 235px);\n overflow: hidden;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapLeft2 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapRight .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable_wrapLeft1 {\n width: 100%;\n}\n.search_select_wrapper_bottomTable_wrapRight {\n margin-left: 10px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav {\n margin: 0;\n padding: 6px 18.5px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {\n height: 28px;\n font-size: 14px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {\n padding: 4px 0;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {\n left: 3px !important;\n width: 40px !important;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {\n color: #005cff;\n cursor: pointer;\n}\n.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder {\n padding: 10px 10px 7px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {\n color: #333333;\n}\n.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {\n color: #005cff;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active a {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active {\n border-color: #005cff;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n.searchSelectMaxTagToolTip .ant-tooltip-inner {\n max-height: 72px;\n overflow-x: auto;\n padding: 0px;\n}\n";
|
|
4810
4841
|
styleInject(css_248z$6);
|
|
4811
4842
|
|
|
4812
4843
|
var zhankaitiaojian = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%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%3Ezhankaitiaojian-icon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%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%22icon%22%20transform%3D%22translate%28-702.000000%2C%20-498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22zhankaitiaojian-icon%22%20transform%3D%22translate%28702.000000%2C%20498.000000%29%22%3E%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%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%3C%2Fmask%3E%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%23D8D8D8%22%20opacity%3D%220%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%3Cpath%20d%3D%22M12.0142082%2C6%20L18%2C11.9972435%20L12.0142082%2C18%20L11.04209%2C17.0260337%20L16.0562218%2C11.9972435%20L11.04209%2C6.97396631%20L12.0142082%2C6%20Z%20M6.97257658%2C6%20L12.9583683%2C11.9972435%20L6.97257658%2C18%20L6.00091666%2C17.0260337%20L11.0150485%2C11.9972435%20L6%2C6.97396631%20L6.97257658%2C6%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%20transform%3D%22translate%2812.000000%2C%2012.000000%29%20rotate%28-270.000000%29%20translate%28-12.000000%2C%20-12.000000%29%20%22%3E%3C%2Fpath%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";
|
|
@@ -4970,7 +5001,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4970
5001
|
title: item.name,
|
|
4971
5002
|
className: "propertyGroup_checkbox_container"
|
|
4972
5003
|
}, item.name));
|
|
4973
|
-
}), !!notCommonUseProperty.length && (
|
|
5004
|
+
}), !!notCommonUseProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4974
5005
|
style: {
|
|
4975
5006
|
width: '50px',
|
|
4976
5007
|
cursor: 'pointer',
|
|
@@ -4983,7 +5014,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4983
5014
|
setShowNotCommon(!showNotCommon);
|
|
4984
5015
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4985
5016
|
}
|
|
4986
|
-
}, showNotCommon && (
|
|
5017
|
+
}, showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4987
5018
|
};
|
|
4988
5019
|
var PropertyGroup$1 = /*#__PURE__*/React__default['default'].memo(PropertyGroup, function (props, nextProps) {
|
|
4989
5020
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5213,7 +5244,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5213
5244
|
propertyData: item,
|
|
5214
5245
|
handleProperyItemChange: handleProperyItemChange
|
|
5215
5246
|
});
|
|
5216
|
-
}))), !!notCommonProperty.length && (
|
|
5247
|
+
}))), !!notCommonProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5217
5248
|
style: {
|
|
5218
5249
|
width: '50px',
|
|
5219
5250
|
cursor: 'pointer',
|
|
@@ -5223,12 +5254,59 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5223
5254
|
onClick: function onClick() {
|
|
5224
5255
|
return setShowNotCommon(!showNotCommon);
|
|
5225
5256
|
}
|
|
5226
|
-
}, showNotCommon && (
|
|
5257
|
+
}, showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5258
|
+
};
|
|
5259
|
+
|
|
5260
|
+
var _excluded$4 = ["onChange", "value", "propertyCode", "name"];
|
|
5261
|
+
var ItemPropertySelector = function ItemPropertySelector(_ref) {
|
|
5262
|
+
var _onChange = _ref.onChange,
|
|
5263
|
+
value = _ref.value,
|
|
5264
|
+
propertyCode = _ref.propertyCode,
|
|
5265
|
+
name = _ref.name,
|
|
5266
|
+
restProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
5267
|
+
var _useState = React$1.useState([]),
|
|
5268
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
5269
|
+
source = _useState2[0],
|
|
5270
|
+
setSource = _useState2[1];
|
|
5271
|
+
React$1.useEffect(function () {
|
|
5272
|
+
// FIXME: 目前只能通过固定属性编码先获取属性id,再通过属性id去查属性值 @林军
|
|
5273
|
+
if (propertyCode) {
|
|
5274
|
+
bssula.request({
|
|
5275
|
+
url: "/items/item/propertyValue/getPropertyValueNoPagerByCode?qp-propertyCode-eq=".concat(propertyCode, "&pageSize=5000"),
|
|
5276
|
+
method: 'GET',
|
|
5277
|
+
converter: function converter(_ref2) {
|
|
5278
|
+
var data = _ref2.data;
|
|
5279
|
+
var source = ((data === null || data === void 0 ? void 0 : data.items) || []).map(function (item) {
|
|
5280
|
+
return {
|
|
5281
|
+
text: item.value,
|
|
5282
|
+
value: item.value
|
|
5283
|
+
};
|
|
5284
|
+
});
|
|
5285
|
+
setSource(source);
|
|
5286
|
+
}
|
|
5287
|
+
});
|
|
5288
|
+
return;
|
|
5289
|
+
}
|
|
5290
|
+
}, [propertyCode]);
|
|
5291
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
5292
|
+
value: value,
|
|
5293
|
+
allowClear: true,
|
|
5294
|
+
style: {
|
|
5295
|
+
width: '100%'
|
|
5296
|
+
},
|
|
5297
|
+
onChange: function onChange(v) {
|
|
5298
|
+
_onChange(v);
|
|
5299
|
+
}
|
|
5300
|
+
}), source.map(function (res) {
|
|
5301
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
5302
|
+
value: res.value
|
|
5303
|
+
}, res.text);
|
|
5304
|
+
}));
|
|
5227
5305
|
};
|
|
5228
5306
|
|
|
5229
5307
|
var Option$1 = antd.Select.Option;
|
|
5230
5308
|
var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
5231
|
-
var _pathname$match
|
|
5309
|
+
var _pathname$match;
|
|
5232
5310
|
var value = props.value,
|
|
5233
5311
|
onChangeTemp = props.onChange,
|
|
5234
5312
|
_props$selectProps = props.selectProps,
|
|
@@ -5237,7 +5315,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5237
5315
|
modalTableProps = _props$modalTableProp === void 0 ? {} : _props$modalTableProp,
|
|
5238
5316
|
_props$labelInValue = props.labelInValue,
|
|
5239
5317
|
labelInValue = _props$labelInValue === void 0 ? false : _props$labelInValue,
|
|
5240
|
-
|
|
5318
|
+
needTopSelectedSource = props.needTopSelectedSource,
|
|
5319
|
+
rCTemp = props.requestConfig,
|
|
5241
5320
|
ctx = props.ctx,
|
|
5242
5321
|
_props$onlyShowStr = props.onlyShowStr,
|
|
5243
5322
|
sourceName = props.sourceName,
|
|
@@ -5249,7 +5328,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5249
5328
|
fieldComponent = props.fieldComponent,
|
|
5250
5329
|
onSaveCallback = props.onSaveCallback,
|
|
5251
5330
|
selectBusinessType = props.selectBusinessType;
|
|
5252
|
-
var _ref =
|
|
5331
|
+
var _ref = rCTemp || {},
|
|
5253
5332
|
url = _ref.url,
|
|
5254
5333
|
_ref$method = _ref.method,
|
|
5255
5334
|
method = _ref$method === void 0 ? 'get' : _ref$method,
|
|
@@ -5276,6 +5355,26 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5276
5355
|
noOperate = _ref.noOperate,
|
|
5277
5356
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
5278
5357
|
searchStartLength = _ref.searchStartLength;
|
|
5358
|
+
var requestConfig = _objectSpread2({
|
|
5359
|
+
url: url,
|
|
5360
|
+
method: method,
|
|
5361
|
+
otherParams: otherParams,
|
|
5362
|
+
isMap: isMap,
|
|
5363
|
+
fixedparameter: fixedparameter,
|
|
5364
|
+
fieldValToParam: fieldValToParam,
|
|
5365
|
+
fixedparamsDisabled: fixedparamsDisabled,
|
|
5366
|
+
mappingTextField: mappingTextField,
|
|
5367
|
+
mappingTextShowKeyField: mappingTextShowKeyField,
|
|
5368
|
+
mappingValueField: mappingValueField,
|
|
5369
|
+
mappingTextShowTextField: mappingTextShowTextField,
|
|
5370
|
+
init: init,
|
|
5371
|
+
extralHeaders: extralHeaders,
|
|
5372
|
+
specialBracket: specialBracket,
|
|
5373
|
+
noNeedSplit: noNeedSplit,
|
|
5374
|
+
noOperate: noOperate,
|
|
5375
|
+
viewShowValueStr: viewShowValueStr,
|
|
5376
|
+
searchStartLength: searchStartLength
|
|
5377
|
+
}, rCTemp);
|
|
5279
5378
|
var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'supplierCode');
|
|
5280
5379
|
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
5281
5380
|
var initVal = value || (selectMode ? [] : null);
|
|
@@ -5310,7 +5409,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5310
5409
|
total: 0,
|
|
5311
5410
|
current: 1
|
|
5312
5411
|
});
|
|
5313
|
-
var disabled = noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5412
|
+
var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5314
5413
|
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
5315
5414
|
var isHaveDValue = function isHaveDValue() {
|
|
5316
5415
|
var formValueList = [];
|
|
@@ -5431,14 +5530,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5431
5530
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5432
5531
|
tooltipVisible = _useState40[0],
|
|
5433
5532
|
setTooltipVisible = _useState40[1];
|
|
5434
|
-
var _useState41 = React$1.useState((modalTableProps === null || modalTableProps === void 0 ? void 0 :
|
|
5435
|
-
return typeof s.defaultSort == 'number';
|
|
5436
|
-
})) === null || _modalTableProps$tabl2 === void 0 ? void 0 : _modalTableProps$tabl2.sort(function (a, b) {
|
|
5437
|
-
return a.defaultSort - b.defaultSort;
|
|
5438
|
-
})) || []),
|
|
5533
|
+
var _useState41 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5439
5534
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5440
5535
|
tableShowColumns = _useState42[0],
|
|
5441
|
-
setTabletShowColumns = _useState42[1];
|
|
5536
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5442
5537
|
var _useState43 = React$1.useState(false),
|
|
5443
5538
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5444
5539
|
confirmLoading = _useState44[0],
|
|
@@ -5496,6 +5591,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5496
5591
|
});
|
|
5497
5592
|
// 获取数据源 (type: 1下拉框 2/3弹框 不传值默认为下拉框)
|
|
5498
5593
|
var getData = function getData() {
|
|
5594
|
+
var _method$toLocaleLower;
|
|
5499
5595
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
5500
5596
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
5501
5597
|
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
@@ -5535,11 +5631,11 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5535
5631
|
pageSize: pageSize,
|
|
5536
5632
|
currentPage: currentPage
|
|
5537
5633
|
}, otherParams), fixedParam), params);
|
|
5538
|
-
if (_.isNil(queryParams[selectParamsKey])) {
|
|
5634
|
+
if (_.isNil(queryParams[selectParamsKey]) && (searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) {
|
|
5539
5635
|
queryParams[selectParamsKey] = searchValue;
|
|
5540
5636
|
}
|
|
5541
5637
|
var getRequest;
|
|
5542
|
-
var methodName = method === null || method === void 0 ? void 0 : method.toLocaleLowerCase();
|
|
5638
|
+
var methodName = method === null || method === void 0 ? void 0 : (_method$toLocaleLower = method.toLocaleLowerCase) === null || _method$toLocaleLower === void 0 ? void 0 : _method$toLocaleLower.call(method);
|
|
5543
5639
|
if (['post', 'patch', 'put'].includes(methodName)) {
|
|
5544
5640
|
getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams));
|
|
5545
5641
|
} else {
|
|
@@ -5562,7 +5658,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5562
5658
|
value: value,
|
|
5563
5659
|
type: type,
|
|
5564
5660
|
items: items,
|
|
5565
|
-
queryParams: queryParams
|
|
5661
|
+
queryParams: queryParams,
|
|
5662
|
+
needTopSelectedSource: needTopSelectedSource
|
|
5566
5663
|
});
|
|
5567
5664
|
if (callback) {
|
|
5568
5665
|
callback(source);
|
|
@@ -5639,6 +5736,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5639
5736
|
}, [value]);
|
|
5640
5737
|
React$1.useEffect(function () {
|
|
5641
5738
|
setUniqueValue(makeUniqueValue());
|
|
5739
|
+
setTabletShowColumns(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns));
|
|
5642
5740
|
}, [resultSourceKey]);
|
|
5643
5741
|
React$1.useEffect(function () {
|
|
5644
5742
|
if (init) {
|
|
@@ -5890,7 +5988,6 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5890
5988
|
};
|
|
5891
5989
|
var formItem = function formItem(list) {
|
|
5892
5990
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
5893
|
-
var _list$concat;
|
|
5894
5991
|
var setDisabled = function setDisabled(name) {
|
|
5895
5992
|
if (fixedparamsDisabled && (fixedparameter === null || fixedparameter === void 0 ? void 0 : fixedparameter.length) && fixedparameter.find(function (item) {
|
|
5896
5993
|
return item === name;
|
|
@@ -5900,15 +5997,17 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5900
5997
|
return false;
|
|
5901
5998
|
}
|
|
5902
5999
|
};
|
|
5903
|
-
var _getFormRowInfo = getFormRowInfo(list),
|
|
5904
|
-
emptyArray = _getFormRowInfo.emptyArray
|
|
6000
|
+
var _getFormRowInfo = getFormRowInfo(list, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan),
|
|
6001
|
+
emptyArray = _getFormRowInfo.emptyArray,
|
|
6002
|
+
ColSpan = _getFormRowInfo.ColSpan;
|
|
5905
6003
|
var addKong = (emptyArray === null || emptyArray === void 0 ? void 0 : emptyArray.map(function (i) {
|
|
5906
6004
|
return {
|
|
5907
6005
|
type: 'kong'
|
|
5908
6006
|
};
|
|
5909
6007
|
})) || [];
|
|
5910
|
-
|
|
5911
|
-
|
|
6008
|
+
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6009
|
+
return searchList.map(function (i, index) {
|
|
6010
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
|
|
5912
6011
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5913
6012
|
span: ColSpan,
|
|
5914
6013
|
key: i
|
|
@@ -5957,7 +6056,44 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5957
6056
|
disabled: setDisabled(i.name)
|
|
5958
6057
|
}))));
|
|
5959
6058
|
}
|
|
5960
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === '
|
|
6059
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'rangepicker' || (i === null || i === void 0 ? void 0 : (_i$field5 = i.field) === null || _i$field5 === void 0 ? void 0 : _i$field5.type) === 'rangepicker') {
|
|
6060
|
+
var _i$initialValue, _i$field6;
|
|
6061
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6062
|
+
span: ColSpan,
|
|
6063
|
+
key: i.name
|
|
6064
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
6065
|
+
name: i.name,
|
|
6066
|
+
label: i.label,
|
|
6067
|
+
key: i.name,
|
|
6068
|
+
initialValue: (_i$initialValue = i === null || i === void 0 ? void 0 : i.initialValue) !== null && _i$initialValue !== void 0 ? _i$initialValue : []
|
|
6069
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.DatePicker.RangePicker, _objectSpread2(_objectSpread2({
|
|
6070
|
+
style: {
|
|
6071
|
+
width: '100%'
|
|
6072
|
+
},
|
|
6073
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6074
|
+
}, i === null || i === void 0 ? void 0 : (_i$field6 = i.field) === null || _i$field6 === void 0 ? void 0 : _i$field6.props), {}, {
|
|
6075
|
+
disabled: setDisabled(i.name)
|
|
6076
|
+
}))));
|
|
6077
|
+
}
|
|
6078
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'datepicker' || (i === null || i === void 0 ? void 0 : (_i$field7 = i.field) === null || _i$field7 === void 0 ? void 0 : _i$field7.type) === 'datepicker') {
|
|
6079
|
+
var _i$field8;
|
|
6080
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6081
|
+
span: ColSpan,
|
|
6082
|
+
key: i.name
|
|
6083
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
6084
|
+
name: i.name,
|
|
6085
|
+
label: i.label,
|
|
6086
|
+
key: i.name
|
|
6087
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.DatePicker, _objectSpread2(_objectSpread2({
|
|
6088
|
+
style: {
|
|
6089
|
+
width: '100%'
|
|
6090
|
+
},
|
|
6091
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6092
|
+
}, i === null || i === void 0 ? void 0 : (_i$field8 = i.field) === null || _i$field8 === void 0 ? void 0 : _i$field8.props), {}, {
|
|
6093
|
+
disabled: setDisabled(i.name)
|
|
6094
|
+
}))));
|
|
6095
|
+
}
|
|
6096
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'businessSearchSelect' || (i === null || i === void 0 ? void 0 : (_i$field9 = i.field) === null || _i$field9 === void 0 ? void 0 : _i$field9.type) === 'businessSearchSelect') {
|
|
5961
6097
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5962
6098
|
span: ColSpan,
|
|
5963
6099
|
key: i.name
|
|
@@ -5969,7 +6105,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5969
6105
|
disabled: setDisabled(i.name)
|
|
5970
6106
|
}))));
|
|
5971
6107
|
}
|
|
5972
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6108
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'multipleQueryInput') {
|
|
5973
6109
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5974
6110
|
span: ColSpan,
|
|
5975
6111
|
key: i.name
|
|
@@ -5983,7 +6119,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5983
6119
|
}
|
|
5984
6120
|
})));
|
|
5985
6121
|
}
|
|
5986
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6122
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
5987
6123
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5988
6124
|
span: ColSpan,
|
|
5989
6125
|
key: i.name
|
|
@@ -5993,7 +6129,23 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5993
6129
|
key: i.name
|
|
5994
6130
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
5995
6131
|
}
|
|
5996
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6132
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'itemPropertySelector') {
|
|
6133
|
+
var _i$field13;
|
|
6134
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6135
|
+
span: ColSpan,
|
|
6136
|
+
key: i.name
|
|
6137
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
6138
|
+
name: i.name,
|
|
6139
|
+
label: i.label,
|
|
6140
|
+
key: i.name
|
|
6141
|
+
}, /*#__PURE__*/React__default['default'].createElement(ItemPropertySelector, _objectSpread2({
|
|
6142
|
+
style: {
|
|
6143
|
+
width: '100%'
|
|
6144
|
+
},
|
|
6145
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6146
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
|
|
6147
|
+
}
|
|
6148
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
|
|
5997
6149
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5998
6150
|
span: ColSpan,
|
|
5999
6151
|
key: i.name
|
|
@@ -6022,7 +6174,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6022
6174
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6023
6175
|
allowClear: true,
|
|
6024
6176
|
maxLength: 100
|
|
6025
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6177
|
+
}, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
|
|
6026
6178
|
disabled: setDisabled(i.name)
|
|
6027
6179
|
}))));
|
|
6028
6180
|
});
|
|
@@ -6034,9 +6186,20 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6034
6186
|
var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
|
|
6035
6187
|
return collapsed ? formItem(list === null || list === void 0 ? void 0 : list.slice(0, viCount)) : formItem(list);
|
|
6036
6188
|
};
|
|
6189
|
+
var renderEmptyText = function renderEmptyText(text, x) {
|
|
6190
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Empty, {
|
|
6191
|
+
image: antd.Empty.PRESENTED_IMAGE_SIMPLE,
|
|
6192
|
+
description: text,
|
|
6193
|
+
style: {
|
|
6194
|
+
margin: "".concat(x, " 0px")
|
|
6195
|
+
}
|
|
6196
|
+
});
|
|
6197
|
+
};
|
|
6037
6198
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
6038
6199
|
var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
|
|
6039
|
-
var
|
|
6200
|
+
var x = (tableList === null || tableList === void 0 ? void 0 : tableList.length) ? 82 : 28; // 无数据没有分页,有数据计算减去:分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
6201
|
+
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - ").concat(x, "px)");
|
|
6202
|
+
var mTB = "calc(50vh - ".concat(tableBoxHeighth / 2, "px - ").concat(x / 2, "px - 40px)");
|
|
6040
6203
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6041
6204
|
style: {
|
|
6042
6205
|
height: "calc(100vh - ".concat(tableBoxHeighth, "px)")
|
|
@@ -6052,14 +6215,14 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6052
6215
|
showSizeChanger: false
|
|
6053
6216
|
}),
|
|
6054
6217
|
locale: {
|
|
6055
|
-
emptyText: '暂无已选结果'
|
|
6218
|
+
emptyText: renderEmptyText('暂无已选结果', mTB)
|
|
6056
6219
|
}
|
|
6057
6220
|
} : {
|
|
6058
6221
|
pagination: tablePagination,
|
|
6059
6222
|
onChange: handleTableChange,
|
|
6060
6223
|
loading: fetching,
|
|
6061
6224
|
locale: {
|
|
6062
|
-
emptyText: modalSearched ? '
|
|
6225
|
+
emptyText: modalSearched ? renderEmptyText('匹配结果,请更换其他内容再试', mTB) : renderEmptyText('请输入搜索条件', mTB)
|
|
6063
6226
|
}
|
|
6064
6227
|
}), {}, {
|
|
6065
6228
|
rowKey: mappingValueField,
|
|
@@ -6204,59 +6367,36 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6204
6367
|
}
|
|
6205
6368
|
})));
|
|
6206
6369
|
};
|
|
6207
|
-
var getShowLabelTextStr = function getShowLabelTextStr(kongValue) {
|
|
6208
|
-
if (selectMode) {
|
|
6209
|
-
var _value$map;
|
|
6210
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
6211
|
-
return item.label || item.text || '';
|
|
6212
|
-
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
6213
|
-
}
|
|
6214
|
-
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
6215
|
-
};
|
|
6216
|
-
var getSelectValueText = function getSelectValueText(v) {
|
|
6217
|
-
var _filter, _filter$;
|
|
6218
|
-
return ((_filter = (items || []).filter(function (item) {
|
|
6219
|
-
return item.value === v;
|
|
6220
|
-
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
6221
|
-
};
|
|
6222
|
-
var getShowValueStr = function getShowValueStr(kongValue) {
|
|
6223
|
-
if (selectMode) {
|
|
6224
|
-
var _value$map2;
|
|
6225
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
6226
|
-
return getSelectValueText(item);
|
|
6227
|
-
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
6228
|
-
}
|
|
6229
|
-
return getSelectValueText(value) || kongValue;
|
|
6230
|
-
};
|
|
6231
|
-
var getShowStr = function getShowStr() {
|
|
6232
|
-
// 优先使用业务使用传入的展示
|
|
6233
|
-
if (viewShowValueStr) return viewShowValueStr;
|
|
6234
|
-
var kongValue = '无';
|
|
6235
|
-
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
6236
|
-
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
6237
|
-
if (labelInValue) {
|
|
6238
|
-
return getShowLabelTextStr(kongValue);
|
|
6239
|
-
}
|
|
6240
|
-
return getShowValueStr(kongValue);
|
|
6241
|
-
};
|
|
6242
6370
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6243
6371
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6244
6372
|
className: 'search_select'
|
|
6245
|
-
}, fieldComponent ? (
|
|
6373
|
+
}, fieldComponent ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6246
6374
|
onClick: function onClick() {
|
|
6247
6375
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6248
6376
|
(_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);
|
|
6249
6377
|
showModal();
|
|
6250
6378
|
}
|
|
6251
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
6252
|
-
title: getShowStr(
|
|
6379
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6380
|
+
title: getShowStr({
|
|
6381
|
+
viewShowValueStr: viewShowValueStr,
|
|
6382
|
+
labelInValue: labelInValue,
|
|
6383
|
+
selectMode: selectMode,
|
|
6384
|
+
value: value,
|
|
6385
|
+
items: items
|
|
6386
|
+
}),
|
|
6253
6387
|
style: {
|
|
6254
6388
|
overflow: 'hidden',
|
|
6255
6389
|
textOverflow: 'ellipsis',
|
|
6256
6390
|
whiteSpace: 'nowrap'
|
|
6257
6391
|
},
|
|
6258
6392
|
className: 'search_select_show'
|
|
6259
|
-
}, getShowStr(
|
|
6393
|
+
}, getShowStr({
|
|
6394
|
+
viewShowValueStr: viewShowValueStr,
|
|
6395
|
+
labelInValue: labelInValue,
|
|
6396
|
+
selectMode: selectMode,
|
|
6397
|
+
value: value,
|
|
6398
|
+
items: items
|
|
6399
|
+
}))) : /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6260
6400
|
className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
|
|
6261
6401
|
id: "search_select_div_".concat(uniqueValue)
|
|
6262
6402
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
@@ -6275,10 +6415,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6275
6415
|
dropdownRender: function dropdownRender(menu) {
|
|
6276
6416
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6277
6417
|
},
|
|
6278
|
-
notFoundContent: fetching ? (
|
|
6418
|
+
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
6279
6419
|
size: "small",
|
|
6280
6420
|
className: 'searchSelectSpin'
|
|
6281
|
-
})) : (
|
|
6421
|
+
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6282
6422
|
style: {
|
|
6283
6423
|
textAlign: 'center'
|
|
6284
6424
|
}
|
|
@@ -6318,10 +6458,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6318
6458
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6319
6459
|
filterTxt: searchValue
|
|
6320
6460
|
}));
|
|
6321
|
-
}))), needModalTable && isModalVisible && (
|
|
6461
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6322
6462
|
maskClosable: false,
|
|
6323
6463
|
destroyOnClose: true,
|
|
6324
|
-
width: "
|
|
6464
|
+
width: "calc(100% - 320px)",
|
|
6325
6465
|
title: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalTableTitle,
|
|
6326
6466
|
visible: isModalVisible,
|
|
6327
6467
|
confirmLoading: confirmLoading,
|
|
@@ -6364,7 +6504,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6364
6504
|
top: 0,
|
|
6365
6505
|
right: 0
|
|
6366
6506
|
}
|
|
6367
|
-
}, hasMoreQueryFields(modalTableProps)
|
|
6507
|
+
}, hasMoreQueryFields(modalTableProps) ? /*#__PURE__*/React__default['default'].createElement("img", {
|
|
6368
6508
|
onClick: function onClick() {
|
|
6369
6509
|
toggleCollapsed();
|
|
6370
6510
|
},
|
|
@@ -6413,7 +6553,7 @@ var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20enc
|
|
|
6413
6553
|
var css_248z$9 = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
6414
6554
|
styleInject(css_248z$9);
|
|
6415
6555
|
|
|
6416
|
-
var _excluded$
|
|
6556
|
+
var _excluded$5 = ["className", "style"];
|
|
6417
6557
|
var Search = antd.Input.Search;
|
|
6418
6558
|
var DragHandle = reactSortableHoc.SortableHandle(function () {
|
|
6419
6559
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
@@ -6765,7 +6905,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6765
6905
|
_this.DraggableBodyRow = function (_ref2) {
|
|
6766
6906
|
var className = _ref2.className,
|
|
6767
6907
|
style = _ref2.style,
|
|
6768
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
6908
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$5);
|
|
6769
6909
|
var sortDataSource = _this.state.sortDataSource;
|
|
6770
6910
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
6771
6911
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -6915,7 +7055,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6915
7055
|
style: {
|
|
6916
7056
|
width: 525
|
|
6917
7057
|
}
|
|
6918
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (
|
|
7058
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6919
7059
|
checked: !dataSource.some(function (item) {
|
|
6920
7060
|
if (item.hidden) return true;
|
|
6921
7061
|
return false;
|
|
@@ -6953,13 +7093,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6953
7093
|
_this2.onChange(e, item.title);
|
|
6954
7094
|
}
|
|
6955
7095
|
}, item.title);
|
|
6956
|
-
}), !!seatchDataSource.length && (
|
|
7096
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
6957
7097
|
style: {
|
|
6958
7098
|
width: '144px'
|
|
6959
7099
|
}
|
|
6960
|
-
})), !seatchDataSource.length && (
|
|
7100
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6961
7101
|
className: 'sort_table_column_all_empty'
|
|
6962
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
7102
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6963
7103
|
className: 'sort_table_column_special'
|
|
6964
7104
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6965
7105
|
className: 'sort_table_column_all'
|
|
@@ -7148,7 +7288,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7148
7288
|
});
|
|
7149
7289
|
};
|
|
7150
7290
|
// 格式化树选择器数据源
|
|
7151
|
-
var
|
|
7291
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7152
7292
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7153
7293
|
return {
|
|
7154
7294
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7158,7 +7298,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7158
7298
|
isLeaf: !haveChildren,
|
|
7159
7299
|
disabled: haveChildren,
|
|
7160
7300
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7161
|
-
return
|
|
7301
|
+
return _mapSearchTree(i, resKeyValue);
|
|
7162
7302
|
}) : []
|
|
7163
7303
|
};
|
|
7164
7304
|
};
|
|
@@ -7167,7 +7307,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7167
7307
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7168
7308
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7169
7309
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7170
|
-
return
|
|
7310
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
7171
7311
|
}) || [];
|
|
7172
7312
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7173
7313
|
};
|
|
@@ -7184,7 +7324,7 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
|
|
|
7184
7324
|
});
|
|
7185
7325
|
};
|
|
7186
7326
|
|
|
7187
|
-
var _excluded$
|
|
7327
|
+
var _excluded$6 = ["onResize", "width"],
|
|
7188
7328
|
_excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
|
|
7189
7329
|
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
7190
7330
|
return new Promise(function (resolve, reject) {
|
|
@@ -7204,7 +7344,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
|
7204
7344
|
var ResizeableTitle = function ResizeableTitle(props) {
|
|
7205
7345
|
var onResize = props.onResize,
|
|
7206
7346
|
width = props.width,
|
|
7207
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
7347
|
+
restProps = _objectWithoutProperties(props, _excluded$6);
|
|
7208
7348
|
if (!width) {
|
|
7209
7349
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
7210
7350
|
}
|
|
@@ -7338,7 +7478,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7338
7478
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7339
7479
|
// FIXME: 特殊业务逻辑
|
|
7340
7480
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7341
|
-
var _ref2 = _asyncToGenerator(
|
|
7481
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7342
7482
|
var result;
|
|
7343
7483
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7344
7484
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7591,7 +7731,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7591
7731
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7592
7732
|
value: text || null,
|
|
7593
7733
|
onChange: function () {
|
|
7594
|
-
var _onChange = _asyncToGenerator(
|
|
7734
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7595
7735
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7596
7736
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7597
7737
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8199,10 +8339,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8199
8339
|
var newColumns = arr.map(function (col) {
|
|
8200
8340
|
return _objectSpread2({}, col);
|
|
8201
8341
|
});
|
|
8202
|
-
var
|
|
8342
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8203
8343
|
var i = indexArr.shift();
|
|
8204
8344
|
if (indexArr.length > 0) {
|
|
8205
|
-
|
|
8345
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8206
8346
|
} else {
|
|
8207
8347
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8208
8348
|
width: size.width
|
|
@@ -8210,7 +8350,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8210
8350
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8211
8351
|
}
|
|
8212
8352
|
};
|
|
8213
|
-
|
|
8353
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8214
8354
|
callback(newColumns);
|
|
8215
8355
|
};
|
|
8216
8356
|
};
|
|
@@ -8220,13 +8360,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8220
8360
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8221
8361
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8222
8362
|
};
|
|
8223
|
-
var
|
|
8363
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8224
8364
|
arr.forEach(function (item, index) {
|
|
8225
8365
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8226
8366
|
return i || i === 0;
|
|
8227
8367
|
});
|
|
8228
8368
|
if (noEmptyArray$1(item.children)) {
|
|
8229
|
-
|
|
8369
|
+
_handleColumns(item.children, indexArrInside);
|
|
8230
8370
|
} else {
|
|
8231
8371
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8232
8372
|
item.onHeaderCell = function (column) {
|
|
@@ -8242,14 +8382,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8242
8382
|
handleAntdColumnsSpecialParams(item);
|
|
8243
8383
|
return _objectSpread2({}, item);
|
|
8244
8384
|
});
|
|
8245
|
-
|
|
8385
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
8246
8386
|
return setShowToChooseColumnsCallback(res);
|
|
8247
8387
|
});
|
|
8248
8388
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8249
8389
|
handleAntdColumnsSpecialParams(item);
|
|
8250
8390
|
return _objectSpread2({}, item);
|
|
8251
8391
|
});
|
|
8252
|
-
|
|
8392
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8253
8393
|
return setShowColumnsCallback(res);
|
|
8254
8394
|
});
|
|
8255
8395
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8260,8 +8400,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8260
8400
|
id: "add_select_div_".concat(uniqueValue)
|
|
8261
8401
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
8262
8402
|
onClick: handleShowModal
|
|
8263
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
8264
|
-
width:
|
|
8403
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
8404
|
+
width: "calc(100% - 320px)",
|
|
8265
8405
|
style: {
|
|
8266
8406
|
top: 20
|
|
8267
8407
|
},
|
|
@@ -8436,7 +8576,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8436
8576
|
var css_248z$a = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick {\n margin: 0;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_base {\n background: #fff;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_odd {\n background: #f7f8fb;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-left,\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-right {\n background: #FFFFFF !important;\n}\n";
|
|
8437
8577
|
styleInject(css_248z$a);
|
|
8438
8578
|
|
|
8439
|
-
var _excluded$
|
|
8579
|
+
var _excluded$7 = ["onResize", "width"];
|
|
8440
8580
|
var _this = undefined;
|
|
8441
8581
|
var InputElement = function InputElement(_ref) {
|
|
8442
8582
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
@@ -8934,7 +9074,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
8934
9074
|
var ResizeableTitle$1 = function ResizeableTitle(props) {
|
|
8935
9075
|
var onResize = props.onResize,
|
|
8936
9076
|
width = props.width,
|
|
8937
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
9077
|
+
restProps = _objectWithoutProperties(props, _excluded$7);
|
|
8938
9078
|
if (!width) {
|
|
8939
9079
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
8940
9080
|
}
|
|
@@ -9174,7 +9314,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9174
9314
|
});
|
|
9175
9315
|
};
|
|
9176
9316
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9177
|
-
var _ref4 = _asyncToGenerator(
|
|
9317
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9178
9318
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9179
9319
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9180
9320
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9257,10 +9397,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9257
9397
|
var newColumns = arr.map(function (col) {
|
|
9258
9398
|
return _objectSpread2({}, col);
|
|
9259
9399
|
});
|
|
9260
|
-
var
|
|
9400
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
9261
9401
|
var i = indexArr.shift();
|
|
9262
9402
|
if (indexArr.length > 0) {
|
|
9263
|
-
|
|
9403
|
+
_handleIndex(arr[i].children, indexArr);
|
|
9264
9404
|
} else {
|
|
9265
9405
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9266
9406
|
width: size.width
|
|
@@ -9268,17 +9408,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9268
9408
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9269
9409
|
}
|
|
9270
9410
|
};
|
|
9271
|
-
|
|
9411
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
9272
9412
|
callback(newColumns);
|
|
9273
9413
|
};
|
|
9274
9414
|
};
|
|
9275
|
-
var
|
|
9415
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9276
9416
|
arr.forEach(function (item, index) {
|
|
9277
9417
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9278
9418
|
return i || i === 0;
|
|
9279
9419
|
});
|
|
9280
9420
|
if (noEmptyArray$1(item.children)) {
|
|
9281
|
-
|
|
9421
|
+
_handleColumns(item.children, indexArrInside);
|
|
9282
9422
|
} else {
|
|
9283
9423
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9284
9424
|
item.onHeaderCell = function (column) {
|
|
@@ -9294,7 +9434,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9294
9434
|
handleAntdColumnsSpecialParams(item);
|
|
9295
9435
|
return _objectSpread2({}, item);
|
|
9296
9436
|
});
|
|
9297
|
-
|
|
9437
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
9298
9438
|
return setShowColumnsCallback(res);
|
|
9299
9439
|
});
|
|
9300
9440
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -9504,6 +9644,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
|
|
|
9504
9644
|
case 'spuCommodity':
|
|
9505
9645
|
case 'skcCommodity':
|
|
9506
9646
|
case 'brand':
|
|
9647
|
+
case 'spuCommodityWithProperty':
|
|
9507
9648
|
result = '/items';
|
|
9508
9649
|
break;
|
|
9509
9650
|
case 'physicalWarehouse':
|
|
@@ -9609,7 +9750,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9609
9750
|
});
|
|
9610
9751
|
};
|
|
9611
9752
|
// 格式化树选择器数据源
|
|
9612
|
-
var
|
|
9753
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9613
9754
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9614
9755
|
return {
|
|
9615
9756
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9619,7 +9760,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9619
9760
|
isLeaf: !haveChildren,
|
|
9620
9761
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9621
9762
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9622
|
-
return
|
|
9763
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9623
9764
|
}) : []
|
|
9624
9765
|
};
|
|
9625
9766
|
};
|
|
@@ -9633,7 +9774,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9633
9774
|
disabledJudge = false;
|
|
9634
9775
|
}
|
|
9635
9776
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9636
|
-
return
|
|
9777
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9637
9778
|
}) || [];
|
|
9638
9779
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9639
9780
|
};
|
|
@@ -9911,7 +10052,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9911
10052
|
sourceName: 'qp-skuCode-in',
|
|
9912
10053
|
specialBracket: true,
|
|
9913
10054
|
otherParams: {
|
|
9914
|
-
'ownOrgSign': getCurrentTargetBgId()
|
|
10055
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
10056
|
+
'ctl-count': true
|
|
9915
10057
|
} // 默认参数
|
|
9916
10058
|
}
|
|
9917
10059
|
}
|
|
@@ -9934,7 +10076,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9934
10076
|
mappingTextField: 'name',
|
|
9935
10077
|
mappingValueField: 'itemCode',
|
|
9936
10078
|
sourceName: 'qp-itemCode-in',
|
|
9937
|
-
specialBracket: true
|
|
10079
|
+
specialBracket: true,
|
|
10080
|
+
otherParams: {
|
|
10081
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
10082
|
+
'ctl-count': true
|
|
10083
|
+
} // 默认参数
|
|
9938
10084
|
}
|
|
9939
10085
|
}
|
|
9940
10086
|
}
|
|
@@ -10067,6 +10213,144 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10067
10213
|
}
|
|
10068
10214
|
// 商品选择器spu
|
|
10069
10215
|
if (type === 'spuCommodity') {
|
|
10216
|
+
selectProps = _objectSpread2({
|
|
10217
|
+
placeholder: '输入商品(SPU)编码或名称',
|
|
10218
|
+
renderTableColumns: [{
|
|
10219
|
+
title: '商品编码(SPU)',
|
|
10220
|
+
dataIndex: 'itemCode'
|
|
10221
|
+
}, {
|
|
10222
|
+
title: '商品名称(SPU)',
|
|
10223
|
+
dataIndex: 'name'
|
|
10224
|
+
}]
|
|
10225
|
+
}, selectConfigProps);
|
|
10226
|
+
requestConfig = _objectSpread2({
|
|
10227
|
+
url: "".concat(prefixUrl.selectPrefix, "/item"),
|
|
10228
|
+
filter: 'qp-itemCode,name-orGroup,like',
|
|
10229
|
+
mappingTextField: 'name',
|
|
10230
|
+
mappingValueField: 'itemCode',
|
|
10231
|
+
otherParams: _objectSpread2({
|
|
10232
|
+
'qp-approveStatus-eq': 1,
|
|
10233
|
+
sorter: 'desc-id'
|
|
10234
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10235
|
+
sourceName: 'itemCode'
|
|
10236
|
+
}, requestConfigProp);
|
|
10237
|
+
tableSearchForm = [{
|
|
10238
|
+
name: 'qp-name-like',
|
|
10239
|
+
label: '商品名称(SPU)'
|
|
10240
|
+
}, {
|
|
10241
|
+
name: 'qp-itemCode-like',
|
|
10242
|
+
label: '商品编码(SPU)'
|
|
10243
|
+
}, {
|
|
10244
|
+
name: 'qp-brandId-in',
|
|
10245
|
+
type: 'select',
|
|
10246
|
+
label: '品牌',
|
|
10247
|
+
field: {
|
|
10248
|
+
type: 'select',
|
|
10249
|
+
props: {
|
|
10250
|
+
mode: 'multiple',
|
|
10251
|
+
notFoundContent: '暂无数据',
|
|
10252
|
+
allowClear: true,
|
|
10253
|
+
showSearch: true,
|
|
10254
|
+
showArrow: true,
|
|
10255
|
+
maxTagCount: 1,
|
|
10256
|
+
optionFilterProp: 'children',
|
|
10257
|
+
filterOption: function filterOption(input, option) {
|
|
10258
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10259
|
+
}
|
|
10260
|
+
}
|
|
10261
|
+
}
|
|
10262
|
+
}, {
|
|
10263
|
+
name: 'qp-categoryId-in',
|
|
10264
|
+
type: 'treeSelect',
|
|
10265
|
+
label: '类目',
|
|
10266
|
+
field: {
|
|
10267
|
+
type: 'treeSelect',
|
|
10268
|
+
props: {
|
|
10269
|
+
treeData: [],
|
|
10270
|
+
treeCheckable: true,
|
|
10271
|
+
showSearch: true,
|
|
10272
|
+
allowClear: true,
|
|
10273
|
+
showArrow: true,
|
|
10274
|
+
treeNodeFilterProp: 'title',
|
|
10275
|
+
treeDefaultExpandAll: true,
|
|
10276
|
+
maxTagCount: 1,
|
|
10277
|
+
placeholder: '请选择',
|
|
10278
|
+
style: {
|
|
10279
|
+
width: '100%'
|
|
10280
|
+
},
|
|
10281
|
+
dropdownStyle: {
|
|
10282
|
+
maxHeight: 400,
|
|
10283
|
+
maxWidth: 100,
|
|
10284
|
+
overflow: 'auto'
|
|
10285
|
+
}
|
|
10286
|
+
}
|
|
10287
|
+
}
|
|
10288
|
+
}, {
|
|
10289
|
+
name: 'qp-classId-in',
|
|
10290
|
+
type: 'select',
|
|
10291
|
+
label: '品类',
|
|
10292
|
+
field: {
|
|
10293
|
+
type: 'select',
|
|
10294
|
+
props: {
|
|
10295
|
+
mode: 'multiple',
|
|
10296
|
+
notFoundContent: '暂无数据',
|
|
10297
|
+
allowClear: true,
|
|
10298
|
+
showSearch: true,
|
|
10299
|
+
showArrow: true,
|
|
10300
|
+
maxTagCount: 1,
|
|
10301
|
+
optionFilterProp: 'children',
|
|
10302
|
+
filterOption: function filterOption(input, option) {
|
|
10303
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10304
|
+
}
|
|
10305
|
+
}
|
|
10306
|
+
}
|
|
10307
|
+
}];
|
|
10308
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
10309
|
+
pageSize: 5000,
|
|
10310
|
+
currentPage: 1,
|
|
10311
|
+
'ctl-withAuth': true
|
|
10312
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
10313
|
+
pageSize: 5000,
|
|
10314
|
+
currentPage: 1
|
|
10315
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
10316
|
+
pageSize: 5000,
|
|
10317
|
+
currentPage: 1
|
|
10318
|
+
})]).then(function (x) {
|
|
10319
|
+
formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
|
|
10320
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm);
|
|
10321
|
+
formatSource(x, 2, 4, tableSearchForm, ['id', 'name']);
|
|
10322
|
+
});
|
|
10323
|
+
modalTableProps = _objectSpread2({
|
|
10324
|
+
modalTableTitle: '选择商品(SPU) ',
|
|
10325
|
+
tableSearchForm: tableSearchForm,
|
|
10326
|
+
tableColumns: [{
|
|
10327
|
+
title: '序号',
|
|
10328
|
+
dataIndex: 'keyIndex',
|
|
10329
|
+
defaultSort: 0
|
|
10330
|
+
}, {
|
|
10331
|
+
title: '商品编码(SPU)',
|
|
10332
|
+
dataIndex: 'itemCode',
|
|
10333
|
+
defaultSort: 1
|
|
10334
|
+
}, {
|
|
10335
|
+
title: '商品名称(SPU) ',
|
|
10336
|
+
dataIndex: 'name',
|
|
10337
|
+
defaultSort: 2
|
|
10338
|
+
}, {
|
|
10339
|
+
title: '品牌',
|
|
10340
|
+
dataIndex: 'brandName',
|
|
10341
|
+
defaultSort: 3
|
|
10342
|
+
}, {
|
|
10343
|
+
title: '类目',
|
|
10344
|
+
dataIndex: 'categoryText',
|
|
10345
|
+
defaultSort: 4
|
|
10346
|
+
}, {
|
|
10347
|
+
title: '品类',
|
|
10348
|
+
dataIndex: 'className'
|
|
10349
|
+
}]
|
|
10350
|
+
}, modalTableBusProps);
|
|
10351
|
+
}
|
|
10352
|
+
// 新库存商品选择器spu
|
|
10353
|
+
if (type === 'spuCommodityWithProperty') {
|
|
10070
10354
|
selectProps = _objectSpread2({
|
|
10071
10355
|
placeholder: '输入spu编码或名称',
|
|
10072
10356
|
renderTableColumns: [{
|
|
@@ -10078,12 +10362,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10078
10362
|
}]
|
|
10079
10363
|
}, selectConfigProps);
|
|
10080
10364
|
requestConfig = _objectSpread2({
|
|
10081
|
-
url: "
|
|
10365
|
+
url: "/stock/item/doItemPageAll",
|
|
10366
|
+
method: 'POST',
|
|
10082
10367
|
filter: 'qp-itemCode,name-orGroup,like',
|
|
10083
10368
|
mappingTextField: 'name',
|
|
10084
10369
|
mappingValueField: 'itemCode',
|
|
10085
10370
|
otherParams: _objectSpread2({
|
|
10086
|
-
'qp-approveStatus-eq': 1,
|
|
10371
|
+
// 'qp-approveStatus-eq': 1, // 审核状态(0.待审批;1.审批通过;2.驳回;3.审批未通过)
|
|
10087
10372
|
sorter: 'desc-id'
|
|
10088
10373
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10089
10374
|
sourceName: 'itemCode'
|
|
@@ -10158,6 +10443,56 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10158
10443
|
}
|
|
10159
10444
|
}
|
|
10160
10445
|
}
|
|
10446
|
+
}, {
|
|
10447
|
+
name: 'qp-year-in',
|
|
10448
|
+
label: '年份',
|
|
10449
|
+
field: {
|
|
10450
|
+
type: 'itemPropertySelector',
|
|
10451
|
+
props: {
|
|
10452
|
+
propertyCode: 'SX0000114',
|
|
10453
|
+
mode: 'multiple'
|
|
10454
|
+
}
|
|
10455
|
+
}
|
|
10456
|
+
}, {
|
|
10457
|
+
name: 'qp-season-in',
|
|
10458
|
+
label: '季节',
|
|
10459
|
+
field: {
|
|
10460
|
+
type: 'itemPropertySelector',
|
|
10461
|
+
props: {
|
|
10462
|
+
propertyCode: 'SX0000070',
|
|
10463
|
+
mode: 'multiple'
|
|
10464
|
+
}
|
|
10465
|
+
}
|
|
10466
|
+
}, {
|
|
10467
|
+
name: 'qp-zzdlbm-in',
|
|
10468
|
+
label: '大类',
|
|
10469
|
+
field: {
|
|
10470
|
+
type: 'itemPropertySelector',
|
|
10471
|
+
props: {
|
|
10472
|
+
propertyCode: 'SX0000071',
|
|
10473
|
+
mode: 'multiple'
|
|
10474
|
+
}
|
|
10475
|
+
}
|
|
10476
|
+
}, {
|
|
10477
|
+
name: 'qp-zzzlbm-in',
|
|
10478
|
+
label: '中类',
|
|
10479
|
+
field: {
|
|
10480
|
+
type: 'itemPropertySelector',
|
|
10481
|
+
props: {
|
|
10482
|
+
propertyCode: 'SX0000072',
|
|
10483
|
+
mode: 'multiple'
|
|
10484
|
+
}
|
|
10485
|
+
}
|
|
10486
|
+
}, {
|
|
10487
|
+
name: 'qp-zzxlbm-in',
|
|
10488
|
+
label: '小类',
|
|
10489
|
+
field: {
|
|
10490
|
+
type: 'itemPropertySelector',
|
|
10491
|
+
props: {
|
|
10492
|
+
propertyCode: 'SX0000110',
|
|
10493
|
+
mode: 'multiple'
|
|
10494
|
+
}
|
|
10495
|
+
}
|
|
10161
10496
|
}];
|
|
10162
10497
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
10163
10498
|
pageSize: 5000,
|
|
@@ -10200,7 +10535,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10200
10535
|
}, {
|
|
10201
10536
|
title: '品类',
|
|
10202
10537
|
dataIndex: 'className'
|
|
10203
|
-
}]
|
|
10538
|
+
}],
|
|
10539
|
+
noEmptySearchField: true
|
|
10204
10540
|
}, modalTableBusProps);
|
|
10205
10541
|
}
|
|
10206
10542
|
// 商品选择器skc
|
|
@@ -13713,16 +14049,18 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13713
14049
|
modalProps = _useState2[0],
|
|
13714
14050
|
setModalProps = _useState2[1];
|
|
13715
14051
|
var handleOk = function handleOk() {
|
|
13716
|
-
var _dataValidationRef$cu;
|
|
14052
|
+
var _dataValidationRef$cu, _dataValidationRef$cu2;
|
|
13717
14053
|
// 方法获取当前组件内部的数据,然后进行自身的业务操作
|
|
13718
|
-
var resultData = (_dataValidationRef$cu = dataValidationRef.current) === null || _dataValidationRef$cu === void 0 ? void 0 : _dataValidationRef$cu.getValidateData();
|
|
13719
|
-
if (
|
|
13720
|
-
|
|
13721
|
-
|
|
13722
|
-
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
|
|
14054
|
+
var resultData = (props === null || props === void 0 ? void 0 : props.notValid) ? (_dataValidationRef$cu = dataValidationRef.current) === null || _dataValidationRef$cu === void 0 ? void 0 : _dataValidationRef$cu.getData() : (_dataValidationRef$cu2 = dataValidationRef.current) === null || _dataValidationRef$cu2 === void 0 ? void 0 : _dataValidationRef$cu2.getValidateData();
|
|
14055
|
+
if (!!!(props === null || props === void 0 ? void 0 : props.notValid)) {
|
|
14056
|
+
if (!resultData.successData.length) {
|
|
14057
|
+
antd.message.error("无校验通过数据,请校验数据");
|
|
14058
|
+
return;
|
|
14059
|
+
}
|
|
14060
|
+
if (resultData.failData.length) {
|
|
14061
|
+
antd.message.error("\u6709".concat(resultData.failData.length, "\u6761\u6821\u9A8C\u5931\u8D25\u6570\u636E"));
|
|
14062
|
+
return;
|
|
14063
|
+
}
|
|
13726
14064
|
}
|
|
13727
14065
|
callbackHandleOk(resultData, function () {
|
|
13728
14066
|
modalProps.hideModal();
|
|
@@ -13738,7 +14076,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13738
14076
|
};
|
|
13739
14077
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
13740
14078
|
onClick: handleShowModal
|
|
13741
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
14079
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13742
14080
|
onOk: handleOk,
|
|
13743
14081
|
onCancel: handleCancel,
|
|
13744
14082
|
destroyOnClose: true,
|
|
@@ -13802,7 +14140,7 @@ function getStorageVale(storageKeyString) {
|
|
|
13802
14140
|
return "";
|
|
13803
14141
|
}
|
|
13804
14142
|
|
|
13805
|
-
var _excluded$
|
|
14143
|
+
var _excluded$8 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "rootDisabled", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
|
|
13806
14144
|
var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
13807
14145
|
var _useState = React$1.useState([]),
|
|
13808
14146
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -13844,7 +14182,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13844
14182
|
} : _props$style,
|
|
13845
14183
|
getTreeData = props.getTreeData,
|
|
13846
14184
|
disabled = props.disabled,
|
|
13847
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
14185
|
+
restProps = _objectWithoutProperties(props, _excluded$8);
|
|
13848
14186
|
var url = remoteSource.url,
|
|
13849
14187
|
headers = remoteSource.headers,
|
|
13850
14188
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
@@ -13857,7 +14195,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13857
14195
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13858
14196
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13859
14197
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13860
|
-
var
|
|
14198
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13861
14199
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13862
14200
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13863
14201
|
return {
|
|
@@ -13869,7 +14207,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13869
14207
|
isLeaf: !haveChildren,
|
|
13870
14208
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13871
14209
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13872
|
-
return
|
|
14210
|
+
return _mapSearchTree(i);
|
|
13873
14211
|
}) : []
|
|
13874
14212
|
};
|
|
13875
14213
|
};
|
|
@@ -13887,8 +14225,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13887
14225
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13888
14226
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
13889
14227
|
headers: headers
|
|
13890
|
-
}).then(
|
|
13891
|
-
var _ref = _asyncToGenerator(
|
|
14228
|
+
}).then(/*#__PURE__*/function () {
|
|
14229
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13892
14230
|
var _ctx$form;
|
|
13893
14231
|
var resData, coverData, data, dataList;
|
|
13894
14232
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13915,7 +14253,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13915
14253
|
case 9:
|
|
13916
14254
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13917
14255
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13918
|
-
return
|
|
14256
|
+
return _mapSearchTree(ites);
|
|
13919
14257
|
}) || [];
|
|
13920
14258
|
case 11:
|
|
13921
14259
|
_context.next = 14;
|
|
@@ -13953,11 +14291,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13953
14291
|
return _formatResult;
|
|
13954
14292
|
}
|
|
13955
14293
|
};
|
|
13956
|
-
var
|
|
14294
|
+
var _parallelData = function parallelData(data, result) {
|
|
13957
14295
|
data.forEach(function (i) {
|
|
13958
14296
|
result.push(i);
|
|
13959
14297
|
if (i[treeChildrenRoom]) {
|
|
13960
|
-
|
|
14298
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
13961
14299
|
}
|
|
13962
14300
|
});
|
|
13963
14301
|
return result;
|
|
@@ -13997,7 +14335,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13997
14335
|
var _ctx$form2;
|
|
13998
14336
|
var handleData = formatData(data);
|
|
13999
14337
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
14000
|
-
var parallelTreeData =
|
|
14338
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
14001
14339
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
14002
14340
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
14003
14341
|
onChangeName && onChangeName(dataName);
|
|
@@ -14040,7 +14378,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14040
14378
|
var getShowStr = function getShowStr() {
|
|
14041
14379
|
var isMultiple = multiple || treeCheckable;
|
|
14042
14380
|
var kongValue = '无';
|
|
14043
|
-
var parallelTreeData =
|
|
14381
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
14044
14382
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14045
14383
|
if (isMultiple) {
|
|
14046
14384
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14052,7 +14390,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14052
14390
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14053
14391
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14054
14392
|
className: 'tree_search_select'
|
|
14055
|
-
}, isShouldShowStr ? (
|
|
14393
|
+
}, isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14056
14394
|
title: getShowStr(),
|
|
14057
14395
|
style: {
|
|
14058
14396
|
overflow: 'hidden',
|
|
@@ -14060,7 +14398,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14060
14398
|
whiteSpace: 'nowrap'
|
|
14061
14399
|
},
|
|
14062
14400
|
className: 'search_select_show'
|
|
14063
|
-
}, getShowStr())) : (
|
|
14401
|
+
}, getShowStr())) : (/*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14064
14402
|
treeCheckable: treeCheckable,
|
|
14065
14403
|
maxTagCount: maxTagCount,
|
|
14066
14404
|
showSearch: showSearch,
|
|
@@ -14257,7 +14595,7 @@ var index$2 = (function (props) {
|
|
|
14257
14595
|
} : {}
|
|
14258
14596
|
}, item.text)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14259
14597
|
className: 'status-label-operate'
|
|
14260
|
-
}, item.isDone ? (
|
|
14598
|
+
}, item.isDone ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14261
14599
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14262
14600
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14263
14601
|
style: {
|
|
@@ -14270,7 +14608,7 @@ var index$2 = (function (props) {
|
|
|
14270
14608
|
var css_248z$c = ".guide-wrapper .form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.guide-wrapper .form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.guide-wrapper .form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.guide-wrapper .form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.guide-wrapper .form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.guide-wrapper .white-card.bitsun-form-card-class .guidewrapper-body-wrapper {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.guide-wrapper .bitsun-form-card-class > .guidewrapper-body-wrapper {\n margin-bottom: 10px;\n}\n.guide-wrapper .bitsun-form-card-class .guidewrapper-body-wrapper {\n padding: 12px 0 0;\n background-color: #F3F3F3;\n}\n.guide-wrapper .bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 16px;\n color: #000000;\n font-weight: 600;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.guide-wrapper .bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005cff;\n height: 20px;\n margin-right: 16px;\n}\n.guide-wrapper .field-group-hidden .guidewrapper-body-wrapper {\n display: none !important;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap {\n cursor: pointer;\n color: #B6B6B6;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon {\n transition: transform 0.3s;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.guidewrapper-head-wrap {\n padding-left: 16px;\n height: 36px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: #fff;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left {\n display: flex;\n align-items: center;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left::before {\n content: '';\n display: block;\n width: 3px;\n background: #005cff;\n height: 20px;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left .guidewrapper-head-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n padding: 0 6px;\n}\n.guidewrapper-head-border {\n border-bottom: 1px solid #F0F0F0;\n}\n.guidewrapper-title-extra-wrap {\n padding-left: 5px;\n}\n";
|
|
14271
14609
|
styleInject(css_248z$c);
|
|
14272
14610
|
|
|
14273
|
-
var _excluded$
|
|
14611
|
+
var _excluded$9 = ["children", "titleExtra", "title", "extra", "bordered"],
|
|
14274
14612
|
_excluded2$3 = ["children"];
|
|
14275
14613
|
var Field = function Field(_ref) {
|
|
14276
14614
|
var children = _ref.children,
|
|
@@ -14278,7 +14616,7 @@ var Field = function Field(_ref) {
|
|
|
14278
14616
|
title = _ref.title,
|
|
14279
14617
|
extra = _ref.extra,
|
|
14280
14618
|
bordered = _ref.bordered,
|
|
14281
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14619
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
14282
14620
|
var _React$useState = React__default['default'].useState(true),
|
|
14283
14621
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
14284
14622
|
fieldGroupVisible = _React$useState2[0],
|
|
@@ -14405,7 +14743,7 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
14405
14743
|
var css_248z$d = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
14406
14744
|
styleInject(css_248z$d);
|
|
14407
14745
|
|
|
14408
|
-
var _excluded$
|
|
14746
|
+
var _excluded$a = ["className", "style"];
|
|
14409
14747
|
var Search$1 = antd.Input.Search;
|
|
14410
14748
|
var DragHandle$1 = reactSortableHoc.SortableHandle(function () {
|
|
14411
14749
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
@@ -14823,7 +15161,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14823
15161
|
_this.DraggableBodyRow = function (_ref2) {
|
|
14824
15162
|
var className = _ref2.className,
|
|
14825
15163
|
style = _ref2.style,
|
|
14826
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
15164
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$a);
|
|
14827
15165
|
var sortDataSource = _this.state.sortDataSource;
|
|
14828
15166
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
14829
15167
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -15038,7 +15376,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15038
15376
|
style: {
|
|
15039
15377
|
width: 525
|
|
15040
15378
|
}
|
|
15041
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (
|
|
15379
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
15042
15380
|
checked: !dataSource.some(function (item) {
|
|
15043
15381
|
if (item.hidden) return true;
|
|
15044
15382
|
return false;
|
|
@@ -15076,13 +15414,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15076
15414
|
_this2.onChange(e, item.title);
|
|
15077
15415
|
}
|
|
15078
15416
|
}, item.title);
|
|
15079
|
-
}), !!seatchDataSource.length && (
|
|
15417
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
15080
15418
|
style: {
|
|
15081
15419
|
width: '144px'
|
|
15082
15420
|
}
|
|
15083
|
-
})), !seatchDataSource.length && (
|
|
15421
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
15084
15422
|
className: 'sort_table_column_all_empty'
|
|
15085
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
15423
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15086
15424
|
className: 'sort_table_column_special'
|
|
15087
15425
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15088
15426
|
className: 'sort_table_column_all'
|
|
@@ -15177,7 +15515,7 @@ var TableSumComponent = (function (_ref) {
|
|
|
15177
15515
|
}));
|
|
15178
15516
|
});
|
|
15179
15517
|
|
|
15180
|
-
var _excluded$
|
|
15518
|
+
var _excluded$b = ["onResize", "width"],
|
|
15181
15519
|
_excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
15182
15520
|
var Text = antd.Typography.Text;
|
|
15183
15521
|
var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15261,10 +15599,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15261
15599
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15262
15600
|
return _objectSpread2({}, col);
|
|
15263
15601
|
});
|
|
15264
|
-
var
|
|
15602
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15265
15603
|
var i = indexArr.shift();
|
|
15266
15604
|
if (indexArr.length > 0) {
|
|
15267
|
-
|
|
15605
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15268
15606
|
} else {
|
|
15269
15607
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15270
15608
|
width: size.width
|
|
@@ -15272,7 +15610,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15272
15610
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15273
15611
|
}
|
|
15274
15612
|
};
|
|
15275
|
-
|
|
15613
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15276
15614
|
_this.setState({
|
|
15277
15615
|
showColumns: _toConsumableArray(newColumns)
|
|
15278
15616
|
});
|
|
@@ -15281,7 +15619,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15281
15619
|
_this.ResizeableTitle = function (props) {
|
|
15282
15620
|
var onResize = props.onResize,
|
|
15283
15621
|
width = props.width,
|
|
15284
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15622
|
+
restProps = _objectWithoutProperties(props, _excluded$b);
|
|
15285
15623
|
var _useState = React$1.useState(width),
|
|
15286
15624
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15287
15625
|
innerWidth = _useState2[0],
|
|
@@ -15313,7 +15651,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15313
15651
|
};
|
|
15314
15652
|
setIsResizing(true);
|
|
15315
15653
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15316
|
-
document.addEventListener('mouseup',
|
|
15654
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
15317
15655
|
};
|
|
15318
15656
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15319
15657
|
e.stopPropagation();
|
|
@@ -15329,9 +15667,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15329
15667
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15330
15668
|
}
|
|
15331
15669
|
};
|
|
15332
|
-
var
|
|
15670
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
15333
15671
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15334
|
-
document.removeEventListener('mouseup',
|
|
15672
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
15335
15673
|
setIsResizing(false);
|
|
15336
15674
|
};
|
|
15337
15675
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15452,13 +15790,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15452
15790
|
showSummary = summary;
|
|
15453
15791
|
}
|
|
15454
15792
|
}
|
|
15455
|
-
var
|
|
15793
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15456
15794
|
arr.forEach(function (item, index) {
|
|
15457
15795
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15458
15796
|
return i || i === 0;
|
|
15459
15797
|
});
|
|
15460
15798
|
if (noEmptyArray$1(item.children)) {
|
|
15461
|
-
|
|
15799
|
+
_handleColumns(item.children, indexArrInside);
|
|
15462
15800
|
} else {
|
|
15463
15801
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15464
15802
|
item.onHeaderCell = function (column) {
|
|
@@ -15474,7 +15812,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15474
15812
|
handleBssulaColumnsSpecialParams(item);
|
|
15475
15813
|
return _objectSpread2({}, item);
|
|
15476
15814
|
});
|
|
15477
|
-
|
|
15815
|
+
_handleColumns(showCol, []);
|
|
15478
15816
|
if (dynamicColumns.length) {
|
|
15479
15817
|
showCol = this.handledynamicColumns(showCol);
|
|
15480
15818
|
}
|
|
@@ -15515,14 +15853,14 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15515
15853
|
cell: this.ResizeableTitle
|
|
15516
15854
|
}
|
|
15517
15855
|
}
|
|
15518
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15856
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15519
15857
|
summary: summary
|
|
15520
15858
|
})));
|
|
15521
15859
|
}
|
|
15522
15860
|
}]);
|
|
15523
15861
|
}(React__default['default'].Component);
|
|
15524
15862
|
|
|
15525
|
-
var _excluded$
|
|
15863
|
+
var _excluded$c = ["onResize", "width"],
|
|
15526
15864
|
_excluded2$5 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
15527
15865
|
var Text$1 = antd.Typography.Text;
|
|
15528
15866
|
var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15612,10 +15950,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15612
15950
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15613
15951
|
return _objectSpread2({}, col);
|
|
15614
15952
|
});
|
|
15615
|
-
var
|
|
15953
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15616
15954
|
var i = indexArr.shift();
|
|
15617
15955
|
if (indexArr.length > 0) {
|
|
15618
|
-
|
|
15956
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15619
15957
|
} else {
|
|
15620
15958
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15621
15959
|
width: size.width
|
|
@@ -15623,7 +15961,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15623
15961
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15624
15962
|
}
|
|
15625
15963
|
};
|
|
15626
|
-
|
|
15964
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15627
15965
|
_this.setState({
|
|
15628
15966
|
showColumns: _toConsumableArray(newColumns)
|
|
15629
15967
|
});
|
|
@@ -15632,7 +15970,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15632
15970
|
_this.ResizeableTitle = function (props) {
|
|
15633
15971
|
var onResize = props.onResize,
|
|
15634
15972
|
width = props.width,
|
|
15635
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15973
|
+
restProps = _objectWithoutProperties(props, _excluded$c);
|
|
15636
15974
|
if (!width) {
|
|
15637
15975
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
15638
15976
|
}
|
|
@@ -15699,13 +16037,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15699
16037
|
showSummary = summary;
|
|
15700
16038
|
}
|
|
15701
16039
|
}
|
|
15702
|
-
var
|
|
16040
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15703
16041
|
arr.forEach(function (item, index) {
|
|
15704
16042
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15705
16043
|
return i || i === 0;
|
|
15706
16044
|
});
|
|
15707
16045
|
if (noEmptyArray$1(item.children)) {
|
|
15708
|
-
|
|
16046
|
+
_handleColumns(item.children, indexArrInside);
|
|
15709
16047
|
} else {
|
|
15710
16048
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15711
16049
|
item.onHeaderCell = function (column) {
|
|
@@ -15721,7 +16059,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15721
16059
|
handleAntdColumnsSpecialParams(item);
|
|
15722
16060
|
return _objectSpread2({}, item);
|
|
15723
16061
|
});
|
|
15724
|
-
|
|
16062
|
+
_handleColumns(showCol, []);
|
|
15725
16063
|
if (dynamicColumns.length) {
|
|
15726
16064
|
showCol = this.handledynamicColumns(showCol);
|
|
15727
16065
|
}
|
|
@@ -15761,7 +16099,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15761
16099
|
cell: this.ResizeableTitle
|
|
15762
16100
|
}
|
|
15763
16101
|
}
|
|
15764
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
16102
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15765
16103
|
summary: summary
|
|
15766
16104
|
})));
|
|
15767
16105
|
}
|
|
@@ -15820,21 +16158,29 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15820
16158
|
return false;
|
|
15821
16159
|
};
|
|
15822
16160
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
16161
|
+
var _ref, _ref$applicationList, _ref$applicationList$;
|
|
15823
16162
|
var routerMap = {};
|
|
15824
|
-
var
|
|
16163
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
15825
16164
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15826
16165
|
data.forEach(function (menuItem) {
|
|
15827
16166
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15828
16167
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15829
16168
|
});
|
|
15830
16169
|
if (newMenuItem.children) {
|
|
15831
|
-
|
|
16170
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
15832
16171
|
}
|
|
15833
16172
|
// Reduce memory usage
|
|
15834
16173
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15835
16174
|
});
|
|
15836
16175
|
};
|
|
15837
|
-
|
|
16176
|
+
var newList = ((_ref = window.top || window) === null || _ref === void 0 ? void 0 : (_ref$applicationList = _ref.applicationList) === null || _ref$applicationList === void 0 ? void 0 : (_ref$applicationList$ = _ref$applicationList.filter) === null || _ref$applicationList$ === void 0 ? void 0 : _ref$applicationList$.call(_ref$applicationList, function (app) {
|
|
16177
|
+
var _menuData$;
|
|
16178
|
+
return app.code === (menuData === null || menuData === void 0 ? void 0 : (_menuData$ = menuData[0]) === null || _menuData$ === void 0 ? void 0 : _menuData$.belongAppCode);
|
|
16179
|
+
})) || [];
|
|
16180
|
+
var appChannelParent = newList.length > 0 ? {
|
|
16181
|
+
nameMap: [newList[0].name]
|
|
16182
|
+
} : {};
|
|
16183
|
+
_flattenMenuData2(menuData, appChannelParent);
|
|
15838
16184
|
return routerMap;
|
|
15839
16185
|
};
|
|
15840
16186
|
// mode类型判断
|
|
@@ -15874,8 +16220,8 @@ function matchRoute(path, routeObj, hideRouteObj) {
|
|
|
15874
16220
|
// 如果都不匹配,返回null
|
|
15875
16221
|
return null;
|
|
15876
16222
|
}
|
|
15877
|
-
var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRouteArray,
|
|
15878
|
-
var pathToRegexp =
|
|
16223
|
+
var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRouteArray, _ref2) {
|
|
16224
|
+
var pathToRegexp = _ref2.pathToRegexp;
|
|
15879
16225
|
var newPath = path.split('?')[0];
|
|
15880
16226
|
var hideRouteObj = _defineProperty({}, newPath, Array.isArray(hideRouteArray) && (hideRouteArray === null || hideRouteArray === void 0 ? void 0 : hideRouteArray.find(function (itemRoute) {
|
|
15881
16227
|
return pathToRegexp(itemRoute.path).test(newPath);
|
|
@@ -15913,12 +16259,12 @@ var moreIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D
|
|
|
15913
16259
|
var css_248z$g = "";
|
|
15914
16260
|
styleInject(css_248z$g);
|
|
15915
16261
|
|
|
15916
|
-
var _excluded$
|
|
16262
|
+
var _excluded$d = ["message", "type"];
|
|
15917
16263
|
var CommonAlert = (function (props) {
|
|
15918
16264
|
var message = props.message,
|
|
15919
16265
|
_props$type = props.type,
|
|
15920
16266
|
type = _props$type === void 0 ? 'info' : _props$type,
|
|
15921
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
16267
|
+
reset = _objectWithoutProperties(props, _excluded$d);
|
|
15922
16268
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15923
16269
|
style: {
|
|
15924
16270
|
width: '100%',
|
|
@@ -15939,7 +16285,7 @@ var CommonAlert = (function (props) {
|
|
|
15939
16285
|
}, reset)));
|
|
15940
16286
|
});
|
|
15941
16287
|
|
|
15942
|
-
var _excluded$
|
|
16288
|
+
var _excluded$e = ["children"];
|
|
15943
16289
|
var iconMap = {
|
|
15944
16290
|
edit: /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15945
16291
|
src: editIcon
|
|
@@ -15961,7 +16307,7 @@ var index$3 = (function (props) {
|
|
|
15961
16307
|
_useState2 = _slicedToArray(_useState, 1),
|
|
15962
16308
|
id = _useState2[0];
|
|
15963
16309
|
var children = props.children,
|
|
15964
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
16310
|
+
restProps = _objectWithoutProperties(props, _excluded$e);
|
|
15965
16311
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15966
16312
|
id: id,
|
|
15967
16313
|
className: 'detail_page_wrapper'
|
|
@@ -16160,7 +16506,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16160
16506
|
display: 'flex',
|
|
16161
16507
|
gap: '8px'
|
|
16162
16508
|
}
|
|
16163
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
16509
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16164
16510
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16165
16511
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16166
16512
|
onClick: function onClick() {
|
|
@@ -16168,7 +16514,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16168
16514
|
},
|
|
16169
16515
|
width: 24,
|
|
16170
16516
|
src: scanning
|
|
16171
|
-
}))) : (
|
|
16517
|
+
}))) : (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16172
16518
|
title: "\u5168\u5C4F"
|
|
16173
16519
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16174
16520
|
onClick: function onClick() {
|
|
@@ -16176,7 +16522,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16176
16522
|
},
|
|
16177
16523
|
width: 24,
|
|
16178
16524
|
src: quanping
|
|
16179
|
-
}))))) : null)), alertProps && (
|
|
16525
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16180
16526
|
}, function (prevProps, nextProps) {
|
|
16181
16527
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16182
16528
|
return false;
|
|
@@ -16184,10 +16530,10 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16184
16530
|
return true;
|
|
16185
16531
|
});
|
|
16186
16532
|
|
|
16187
|
-
var css_248z$h = ".bs_home_page_head_wrapper {\n
|
|
16533
|
+
var css_248z$h = ".bs_home_page_head_wrapper {\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
|
|
16188
16534
|
styleInject(css_248z$h);
|
|
16189
16535
|
|
|
16190
|
-
var _excluded$
|
|
16536
|
+
var _excluded$f = ["children"];
|
|
16191
16537
|
var index$4 = (function (props) {
|
|
16192
16538
|
var _useLocation = umi.useLocation(),
|
|
16193
16539
|
pathname = _useLocation.pathname;
|
|
@@ -16195,7 +16541,7 @@ var index$4 = (function (props) {
|
|
|
16195
16541
|
_useState2 = _slicedToArray(_useState, 1),
|
|
16196
16542
|
id = _useState2[0];
|
|
16197
16543
|
var children = props.children,
|
|
16198
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
16544
|
+
restProps = _objectWithoutProperties(props, _excluded$f);
|
|
16199
16545
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16200
16546
|
id: id,
|
|
16201
16547
|
className: 'home_page_wrapper'
|
|
@@ -16261,7 +16607,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16261
16607
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16262
16608
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16263
16609
|
}, item));
|
|
16264
|
-
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (
|
|
16610
|
+
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16265
16611
|
}, function (prevProps, nextProps) {
|
|
16266
16612
|
if (prevProps.title !== nextProps.title) {
|
|
16267
16613
|
return false;
|
|
@@ -16272,7 +16618,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16272
16618
|
var css_248z$i = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
16273
16619
|
styleInject(css_248z$i);
|
|
16274
16620
|
|
|
16275
|
-
var _excluded$
|
|
16621
|
+
var _excluded$g = ["className", "style"];
|
|
16276
16622
|
var DragHandle$2 = reactSortableHoc.SortableHandle(function () {
|
|
16277
16623
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16278
16624
|
width: 25,
|
|
@@ -16710,7 +17056,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16710
17056
|
_this.DraggableBodyRow = function (_ref2) {
|
|
16711
17057
|
var className = _ref2.className,
|
|
16712
17058
|
style = _ref2.style,
|
|
16713
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
17059
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$g);
|
|
16714
17060
|
var sortDataSource = _this.state.sortDataSource;
|
|
16715
17061
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
16716
17062
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -16901,8 +17247,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16901
17247
|
});
|
|
16902
17248
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16903
17249
|
className: 'sort_table_wrapper'
|
|
16904
|
-
}, visible && (
|
|
16905
|
-
title: "\
|
|
17250
|
+
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17251
|
+
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
16906
17252
|
wrapClassName: 'sort_table_wrapper',
|
|
16907
17253
|
width: 810,
|
|
16908
17254
|
visible: visible,
|
|
@@ -16939,7 +17285,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16939
17285
|
className: 'sort_table_column_wrapper'
|
|
16940
17286
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16941
17287
|
className: 'sort_table_column_count'
|
|
16942
|
-
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u52FE\u9009\u4F60\u60F3\
|
|
17288
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u5C55\u793A\u7684\u8868\u683C\u5217")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16943
17289
|
className: 'sort_table_column'
|
|
16944
17290
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
16945
17291
|
prefix: /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, {
|
|
@@ -16952,7 +17298,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16952
17298
|
width: 525,
|
|
16953
17299
|
height: 24
|
|
16954
17300
|
}
|
|
16955
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (
|
|
17301
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16956
17302
|
checked: !dataSource.some(function (item) {
|
|
16957
17303
|
if (item.hidden) return true;
|
|
16958
17304
|
return false;
|
|
@@ -17006,13 +17352,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17006
17352
|
_this2.onChange(e, item.title);
|
|
17007
17353
|
}
|
|
17008
17354
|
}, item.title);
|
|
17009
|
-
}), !!seatchDataSource.length && (
|
|
17355
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
17010
17356
|
style: {
|
|
17011
17357
|
width: '144px'
|
|
17012
17358
|
}
|
|
17013
|
-
})), !seatchDataSource.length && (
|
|
17359
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
17014
17360
|
className: 'sort_table_column_all_empty'
|
|
17015
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
17361
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17016
17362
|
className: 'sort_table_column_special'
|
|
17017
17363
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17018
17364
|
className: 'sort_table_column_all'
|
|
@@ -17034,7 +17380,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17034
17380
|
className: 'sort_table_content_wrapper'
|
|
17035
17381
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17036
17382
|
className: 'sort_table_content_count'
|
|
17037
|
-
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9\u7684\
|
|
17383
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u5C55\u793A\u5217\u6392\u5E8F")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17038
17384
|
className: 'sort_table_content'
|
|
17039
17385
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17040
17386
|
style: {
|
|
@@ -17080,7 +17426,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17080
17426
|
}]);
|
|
17081
17427
|
}(React__default['default'].Component);
|
|
17082
17428
|
|
|
17083
|
-
var _excluded$
|
|
17429
|
+
var _excluded$h = ["className", "style"];
|
|
17084
17430
|
var DragHandle$3 = reactSortableHoc.SortableHandle(function () {
|
|
17085
17431
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
17086
17432
|
width: 25,
|
|
@@ -17333,7 +17679,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17333
17679
|
_this.DraggableBodyRow = function (_ref2) {
|
|
17334
17680
|
var className = _ref2.className,
|
|
17335
17681
|
style = _ref2.style,
|
|
17336
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
17682
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$h);
|
|
17337
17683
|
var sortDataSource = _this.state.sortDataSource;
|
|
17338
17684
|
var index = sortDataSource.findIndex(function (x) {
|
|
17339
17685
|
return x.name === restProps['data-row-key'];
|
|
@@ -17486,7 +17832,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17486
17832
|
});
|
|
17487
17833
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17488
17834
|
className: 'sort_table_wrapper'
|
|
17489
|
-
}, visible && (
|
|
17835
|
+
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17490
17836
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17491
17837
|
wrapClassName: 'sort_table_wrapper',
|
|
17492
17838
|
width: 820,
|
|
@@ -17531,7 +17877,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17531
17877
|
style: {
|
|
17532
17878
|
width: 525
|
|
17533
17879
|
}
|
|
17534
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (
|
|
17880
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17535
17881
|
checked: !dataSource.some(function (item) {
|
|
17536
17882
|
if (item.hidden) return true;
|
|
17537
17883
|
return false;
|
|
@@ -17567,11 +17913,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17567
17913
|
_this2.onChange(e, item.name);
|
|
17568
17914
|
}
|
|
17569
17915
|
}, item.label);
|
|
17570
|
-
}), !!newSearchSource.length && (
|
|
17916
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
17571
17917
|
style: {
|
|
17572
17918
|
width: '144px'
|
|
17573
17919
|
}
|
|
17574
|
-
})), !newSearchSource.length && (
|
|
17920
|
+
})), !newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
17575
17921
|
className: 'sort_table_column_all_empty'
|
|
17576
17922
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17577
17923
|
className: 'sort_table_content_wrapper'
|
|
@@ -17632,13 +17978,13 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17632
17978
|
var css_248z$j = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
17633
17979
|
styleInject(css_248z$j);
|
|
17634
17980
|
|
|
17635
|
-
var _excluded$
|
|
17981
|
+
var _excluded$i = ["onResize", "width"];
|
|
17636
17982
|
var MemoQueryTable = /*#__PURE__*/React__default['default'].memo(bssula.QueryTable);
|
|
17637
17983
|
var Text$2 = antd.Typography.Text;
|
|
17638
17984
|
var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
17639
17985
|
var onResize = props.onResize,
|
|
17640
17986
|
width = props.width,
|
|
17641
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
17987
|
+
restProps = _objectWithoutProperties(props, _excluded$i);
|
|
17642
17988
|
var _useState = React$1.useState(width),
|
|
17643
17989
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17644
17990
|
innerWidth = _useState2[0],
|
|
@@ -17670,7 +18016,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17670
18016
|
};
|
|
17671
18017
|
setIsResizing(true);
|
|
17672
18018
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17673
|
-
document.addEventListener('mouseup',
|
|
18019
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
17674
18020
|
};
|
|
17675
18021
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17676
18022
|
e.stopPropagation();
|
|
@@ -17686,9 +18032,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17686
18032
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17687
18033
|
}
|
|
17688
18034
|
};
|
|
17689
|
-
var
|
|
18035
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
17690
18036
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17691
|
-
document.removeEventListener('mouseup',
|
|
18037
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
17692
18038
|
setIsResizing(false);
|
|
17693
18039
|
};
|
|
17694
18040
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -17907,7 +18253,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17907
18253
|
}
|
|
17908
18254
|
});
|
|
17909
18255
|
}
|
|
17910
|
-
handleBssulaColumnsSpecialParams(d);
|
|
18256
|
+
// handleBssulaColumnsSpecialParams(d);
|
|
17911
18257
|
});
|
|
17912
18258
|
setCommonRenderFn(props.columns);
|
|
17913
18259
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
@@ -17937,7 +18283,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17937
18283
|
var showColumns = getSettingFieldOrColumn(isReset ? [] : columnConfig, columns, 'columns');
|
|
17938
18284
|
showColumns.forEach(function (item, index) {
|
|
17939
18285
|
item.width = item.width || getItemDefaultWidth(item);
|
|
17940
|
-
handleBssulaColumnsSpecialParams(item);
|
|
18286
|
+
// handleBssulaColumnsSpecialParams(item);
|
|
17941
18287
|
item.onHeaderCell = function (column) {
|
|
17942
18288
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
17943
18289
|
width: typeof column.width === 'number' ? column.width : parseWidth(column.width),
|
|
@@ -17950,7 +18296,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17950
18296
|
var showExportColumns = getSettingFieldOrColumn(exportColumnConfig, columns, 'columns');
|
|
17951
18297
|
showExportColumns.forEach(function (item, index) {
|
|
17952
18298
|
item.width = item.width || getItemDefaultWidth(item);
|
|
17953
|
-
handleBssulaColumnsSpecialParams(item);
|
|
18299
|
+
// handleBssulaColumnsSpecialParams(item);
|
|
17954
18300
|
item.onHeaderCell = function (column) {
|
|
17955
18301
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
17956
18302
|
width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
|
|
@@ -18099,7 +18445,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18099
18445
|
actionsRender = actionsRender.concat([{
|
|
18100
18446
|
type: 'text',
|
|
18101
18447
|
props: {
|
|
18102
|
-
children: (
|
|
18448
|
+
children: (/*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
18103
18449
|
request: {
|
|
18104
18450
|
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),
|
|
18105
18451
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18177,9 +18523,9 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18177
18523
|
newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
|
|
18178
18524
|
width: size.width
|
|
18179
18525
|
});
|
|
18180
|
-
newColumns.forEach(
|
|
18181
|
-
|
|
18182
|
-
});
|
|
18526
|
+
// newColumns.forEach((d: any) => {
|
|
18527
|
+
// handleBssulaColumnsSpecialParams(d);
|
|
18528
|
+
// });
|
|
18183
18529
|
return _toConsumableArray(newColumns);
|
|
18184
18530
|
});
|
|
18185
18531
|
};
|
|
@@ -18345,7 +18691,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18345
18691
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18346
18692
|
bsTableCode: bsTableCode,
|
|
18347
18693
|
onlyModal: true
|
|
18348
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
18694
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
18349
18695
|
ref: exportTableRef,
|
|
18350
18696
|
setShowColumns: setShowExportColumns,
|
|
18351
18697
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18438,11 +18784,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18438
18784
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18439
18785
|
var resultList = [];
|
|
18440
18786
|
var newRouter = cloneDeep__default['default'](router);
|
|
18441
|
-
var
|
|
18787
|
+
var _deep = function deep(router) {
|
|
18442
18788
|
if (router && Array.isArray(router)) {
|
|
18443
18789
|
router.forEach(function (item) {
|
|
18444
18790
|
if (item.children && Array.isArray(item.children)) {
|
|
18445
|
-
|
|
18791
|
+
_deep(item.children);
|
|
18446
18792
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18447
18793
|
return d === item.code;
|
|
18448
18794
|
})) {
|
|
@@ -18456,10 +18802,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18456
18802
|
resultList.push(_objectSpread2({}, router));
|
|
18457
18803
|
}
|
|
18458
18804
|
};
|
|
18459
|
-
|
|
18805
|
+
_deep(newRouter);
|
|
18460
18806
|
callBack([].concat(resultList));
|
|
18461
18807
|
};
|
|
18462
|
-
var
|
|
18808
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18463
18809
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18464
18810
|
var _loop = function _loop(i) {
|
|
18465
18811
|
if (routesData[i].hideInMenu) {
|
|
@@ -18473,7 +18819,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18473
18819
|
return 0; // continue
|
|
18474
18820
|
}
|
|
18475
18821
|
if (routesData[i].children) {
|
|
18476
|
-
|
|
18822
|
+
_setMenuTreeData(routesData[i].children);
|
|
18477
18823
|
}
|
|
18478
18824
|
},
|
|
18479
18825
|
_ret;
|
|
@@ -18494,16 +18840,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18494
18840
|
};
|
|
18495
18841
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18496
18842
|
var routerMap = {};
|
|
18497
|
-
var
|
|
18843
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
18498
18844
|
data.forEach(function (menuItem) {
|
|
18499
18845
|
if (menuItem.children) {
|
|
18500
|
-
|
|
18846
|
+
_flattenMenuData(menuItem.children);
|
|
18501
18847
|
}
|
|
18502
18848
|
// Reduce memory usage
|
|
18503
18849
|
routerMap[menuItem.path] = menuItem;
|
|
18504
18850
|
});
|
|
18505
18851
|
};
|
|
18506
|
-
|
|
18852
|
+
_flattenMenuData(menuData);
|
|
18507
18853
|
return routerMap;
|
|
18508
18854
|
};
|
|
18509
18855
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18649,7 +18995,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18649
18995
|
sethomepageData(homepageDataList);
|
|
18650
18996
|
setroutesData(routesDataList);
|
|
18651
18997
|
}, []);
|
|
18652
|
-
var
|
|
18998
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
18653
18999
|
if (!child.hideInMenu && child.children) {
|
|
18654
19000
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
18655
19001
|
style: {
|
|
@@ -18659,7 +19005,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18659
19005
|
}, umi.formatMessage({
|
|
18660
19006
|
id: "".concat(child.locale)
|
|
18661
19007
|
})), child.children.map(function (menuItem) {
|
|
18662
|
-
return
|
|
19008
|
+
return _renderChildItem(menuItem);
|
|
18663
19009
|
}));
|
|
18664
19010
|
} else if (!child.hideInMenu && child.path) {
|
|
18665
19011
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -18694,7 +19040,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18694
19040
|
className: 'drawerWarp'
|
|
18695
19041
|
}, homepageData && homepageData.filter(function (d) {
|
|
18696
19042
|
return !d.hideInMenu;
|
|
18697
|
-
}).length > 0 && (
|
|
19043
|
+
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
18698
19044
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
18699
19045
|
dataSource: homepageData,
|
|
18700
19046
|
renderItem: function renderItem(child) {
|
|
@@ -18729,7 +19075,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18729
19075
|
bordered: true,
|
|
18730
19076
|
dataSource: item.children,
|
|
18731
19077
|
renderItem: function renderItem(child) {
|
|
18732
|
-
return
|
|
19078
|
+
return _renderChildItem(child);
|
|
18733
19079
|
}
|
|
18734
19080
|
});
|
|
18735
19081
|
})));
|
|
@@ -18789,7 +19135,7 @@ var AllFunc$1 = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18789
19135
|
src: allfunc
|
|
18790
19136
|
})), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18791
19137
|
className: 'btnSpan2'
|
|
18792
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
19138
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
18793
19139
|
style: {
|
|
18794
19140
|
left: isDrawer ? 140 : 0,
|
|
18795
19141
|
top: 50
|
|
@@ -18835,7 +19181,7 @@ function outLogin(_x) {
|
|
|
18835
19181
|
return _outLogin.apply(this, arguments);
|
|
18836
19182
|
}
|
|
18837
19183
|
function _outLogin() {
|
|
18838
|
-
_outLogin = _asyncToGenerator(
|
|
19184
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18839
19185
|
var res;
|
|
18840
19186
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18841
19187
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18977,7 +19323,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18977
19323
|
});
|
|
18978
19324
|
};
|
|
18979
19325
|
var loginOut = /*#__PURE__*/function () {
|
|
18980
|
-
var _ref2 = _asyncToGenerator(
|
|
19326
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18981
19327
|
var sessionId;
|
|
18982
19328
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18983
19329
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19081,7 +19427,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19081
19427
|
marginRight: '0px'
|
|
19082
19428
|
},
|
|
19083
19429
|
src: './xialajiantou-new.svg'
|
|
19084
|
-
}))))), loginModalParams.visible && (
|
|
19430
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19085
19431
|
};
|
|
19086
19432
|
|
|
19087
19433
|
// -- 查询店铺 --
|
|
@@ -19089,7 +19435,7 @@ function getStoreByName(_x) {
|
|
|
19089
19435
|
return _getStoreByName.apply(this, arguments);
|
|
19090
19436
|
}
|
|
19091
19437
|
function _getStoreByName() {
|
|
19092
|
-
_getStoreByName = _asyncToGenerator(
|
|
19438
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19093
19439
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19094
19440
|
while (1) switch (_context.prev = _context.next) {
|
|
19095
19441
|
case 0:
|
|
@@ -19157,7 +19503,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19157
19503
|
return _fetchUserList.apply(this, arguments);
|
|
19158
19504
|
}
|
|
19159
19505
|
function _fetchUserList() {
|
|
19160
|
-
_fetchUserList = _asyncToGenerator(
|
|
19506
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19161
19507
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19162
19508
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19163
19509
|
case 0:
|
|
@@ -19205,7 +19551,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19205
19551
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
19206
19552
|
}, [debounceTimeout, key]);
|
|
19207
19553
|
var changeInput = /*#__PURE__*/function () {
|
|
19208
|
-
var _ref = _asyncToGenerator(
|
|
19554
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19209
19555
|
var res;
|
|
19210
19556
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19211
19557
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19227,7 +19573,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19227
19573
|
};
|
|
19228
19574
|
}();
|
|
19229
19575
|
React$1.useEffect(function () {
|
|
19230
|
-
_asyncToGenerator(
|
|
19576
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19231
19577
|
var res;
|
|
19232
19578
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19233
19579
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19392,7 +19738,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19392
19738
|
var resultList = [];
|
|
19393
19739
|
var newRouter = _.cloneDeep(router);
|
|
19394
19740
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19395
|
-
var
|
|
19741
|
+
var _deep = function deep(router) {
|
|
19396
19742
|
if (router && Array.isArray(router)) {
|
|
19397
19743
|
router.forEach(function (item) {
|
|
19398
19744
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19402,7 +19748,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19402
19748
|
d.nameEdit = true;
|
|
19403
19749
|
}
|
|
19404
19750
|
});
|
|
19405
|
-
|
|
19751
|
+
_deep(item.routes);
|
|
19406
19752
|
} else if (!item.hideInMenu && (name ? umi.formatMessage({
|
|
19407
19753
|
id: "menu.".concat(item.name)
|
|
19408
19754
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19421,7 +19767,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19421
19767
|
}));
|
|
19422
19768
|
}
|
|
19423
19769
|
};
|
|
19424
|
-
|
|
19770
|
+
_deep(newRouter);
|
|
19425
19771
|
setroutesData([].concat(resultList));
|
|
19426
19772
|
};
|
|
19427
19773
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19503,7 +19849,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19503
19849
|
},
|
|
19504
19850
|
title: item.fullPathName
|
|
19505
19851
|
}, renderLineStyl(item.fullPathName));
|
|
19506
|
-
}))))), showSelectStore && (
|
|
19852
|
+
}))))), showSelectStore && (/*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
19507
19853
|
employeeCode: employeeCode
|
|
19508
19854
|
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
19509
19855
|
};
|
|
@@ -19518,7 +19864,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19518
19864
|
var TreeNode = antd.Tree.TreeNode;
|
|
19519
19865
|
var Search$2 = antd.Input.Search;
|
|
19520
19866
|
var dataList = [];
|
|
19521
|
-
var
|
|
19867
|
+
var _generateList = function generateList(data) {
|
|
19522
19868
|
for (var i = 0; i < data.length; i++) {
|
|
19523
19869
|
var node = data[i];
|
|
19524
19870
|
var path = node.path,
|
|
@@ -19528,11 +19874,11 @@ var generateList = function generateList(data) {
|
|
|
19528
19874
|
name: name
|
|
19529
19875
|
});
|
|
19530
19876
|
if (node.children) {
|
|
19531
|
-
|
|
19877
|
+
_generateList(node.children);
|
|
19532
19878
|
}
|
|
19533
19879
|
}
|
|
19534
19880
|
};
|
|
19535
|
-
var
|
|
19881
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
19536
19882
|
var parentKey;
|
|
19537
19883
|
for (var i = 0; i < tree.length; i++) {
|
|
19538
19884
|
var node = tree[i];
|
|
@@ -19541,8 +19887,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
19541
19887
|
return item.path === path;
|
|
19542
19888
|
})) {
|
|
19543
19889
|
parentKey = node.path;
|
|
19544
|
-
} else if (
|
|
19545
|
-
parentKey =
|
|
19890
|
+
} else if (_getParentKey(path, node.children)) {
|
|
19891
|
+
parentKey = _getParentKey(path, node.children);
|
|
19546
19892
|
}
|
|
19547
19893
|
}
|
|
19548
19894
|
}
|
|
@@ -19573,7 +19919,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19573
19919
|
var treeData = _this.state.treeData;
|
|
19574
19920
|
var expandedKeys = dataList.map(function (item) {
|
|
19575
19921
|
if (item.name.indexOf(value) > -1) {
|
|
19576
|
-
return
|
|
19922
|
+
return _getParentKey(item.path, treeData);
|
|
19577
19923
|
}
|
|
19578
19924
|
return null;
|
|
19579
19925
|
}).filter(function (item, i, self) {
|
|
@@ -19587,22 +19933,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19587
19933
|
};
|
|
19588
19934
|
_this.getPathList = function (originData) {
|
|
19589
19935
|
var pathList = [];
|
|
19590
|
-
var
|
|
19936
|
+
var _getList = function getList(data) {
|
|
19591
19937
|
if (Array.isArray(data)) {
|
|
19592
19938
|
data.forEach(function (item) {
|
|
19593
19939
|
pathList.push(item.path);
|
|
19594
19940
|
if (item.children) {
|
|
19595
|
-
|
|
19941
|
+
_getList(item.children);
|
|
19596
19942
|
}
|
|
19597
19943
|
});
|
|
19598
19944
|
} else {
|
|
19599
19945
|
pathList.push(data.path);
|
|
19600
19946
|
if (data.children) {
|
|
19601
|
-
|
|
19947
|
+
_getList(data.children);
|
|
19602
19948
|
}
|
|
19603
19949
|
}
|
|
19604
19950
|
};
|
|
19605
|
-
|
|
19951
|
+
_getList(originData);
|
|
19606
19952
|
return pathList;
|
|
19607
19953
|
};
|
|
19608
19954
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19611,18 +19957,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19611
19957
|
customerMenuData = _this$props.customerMenuData,
|
|
19612
19958
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19613
19959
|
var filterItem;
|
|
19614
|
-
var
|
|
19960
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
19615
19961
|
menuData.forEach(function (item) {
|
|
19616
19962
|
if (item.path === path) {
|
|
19617
19963
|
filterItem = _objectSpread2({}, item);
|
|
19618
19964
|
return;
|
|
19619
19965
|
}
|
|
19620
19966
|
if (item.children) {
|
|
19621
|
-
|
|
19967
|
+
_filterMenuItem(item.children);
|
|
19622
19968
|
}
|
|
19623
19969
|
});
|
|
19624
19970
|
};
|
|
19625
|
-
|
|
19971
|
+
_filterMenuItem(treeData);
|
|
19626
19972
|
var addPathList = _this.getPathList(filterItem);
|
|
19627
19973
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19628
19974
|
var isRepet = false;
|
|
@@ -19652,8 +19998,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19652
19998
|
return item.path === '/';
|
|
19653
19999
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19654
20000
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19655
|
-
|
|
19656
|
-
|
|
20001
|
+
_setMenuTreeData(routesData);
|
|
20002
|
+
_generateList(routesData);
|
|
19657
20003
|
this.setState({
|
|
19658
20004
|
treeData: routesData
|
|
19659
20005
|
});
|
|
@@ -19667,16 +20013,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19667
20013
|
expandedKeys = _this$state.expandedKeys,
|
|
19668
20014
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19669
20015
|
treeData = _this$state.treeData;
|
|
19670
|
-
var
|
|
20016
|
+
var _loop = function loop(data) {
|
|
19671
20017
|
return data.map(function (item) {
|
|
19672
20018
|
var index = item.name.indexOf(searchValue);
|
|
19673
20019
|
var beforeStr = item.name.substr(0, index);
|
|
19674
20020
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19675
|
-
var name = index > -1 ? (
|
|
20021
|
+
var name = index > -1 ? (/*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19676
20022
|
style: {
|
|
19677
20023
|
color: '#f50'
|
|
19678
20024
|
}
|
|
19679
|
-
}, searchValue), afterStr)) : (
|
|
20025
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
19680
20026
|
if (item.children && item.children.length) {
|
|
19681
20027
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19682
20028
|
path: item.path,
|
|
@@ -19698,7 +20044,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19698
20044
|
width: 18,
|
|
19699
20045
|
src: arrowRight
|
|
19700
20046
|
}))))
|
|
19701
|
-
},
|
|
20047
|
+
}, _loop(item.children));
|
|
19702
20048
|
}
|
|
19703
20049
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19704
20050
|
path: item.path,
|
|
@@ -19748,7 +20094,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19748
20094
|
onExpand: this.onExpand,
|
|
19749
20095
|
expandedKeys: expandedKeys,
|
|
19750
20096
|
autoExpandParent: autoExpandParent
|
|
19751
|
-
},
|
|
20097
|
+
}, _loop(treeData))));
|
|
19752
20098
|
}
|
|
19753
20099
|
}]);
|
|
19754
20100
|
}(React__default['default'].Component);
|
|
@@ -19781,24 +20127,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19781
20127
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19782
20128
|
var dragObj;
|
|
19783
20129
|
var finalDropItem;
|
|
19784
|
-
var
|
|
20130
|
+
var _loop = function loop(data, path, callback) {
|
|
19785
20131
|
for (var i = 0; i < data.length; i++) {
|
|
19786
20132
|
if (data[i].path === path) {
|
|
19787
20133
|
return callback(data[i], i, data);
|
|
19788
20134
|
}
|
|
19789
20135
|
if (data[i].children) {
|
|
19790
|
-
|
|
20136
|
+
_loop(data[i].children, path, callback);
|
|
19791
20137
|
}
|
|
19792
20138
|
}
|
|
19793
20139
|
};
|
|
19794
20140
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19795
|
-
|
|
20141
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
19796
20142
|
arr.splice(index, 1);
|
|
19797
20143
|
dragObj = item;
|
|
19798
20144
|
});
|
|
19799
20145
|
if (!info.dropToGap) {
|
|
19800
20146
|
// Drop on the content
|
|
19801
|
-
|
|
20147
|
+
_loop(data, dropKey, function (item) {
|
|
19802
20148
|
item.children = item.children || [];
|
|
19803
20149
|
item.children.unshift(dragObj);
|
|
19804
20150
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19809,7 +20155,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19809
20155
|
// Is expanded
|
|
19810
20156
|
dropPosition === 1 // On the bottom gap
|
|
19811
20157
|
) {
|
|
19812
|
-
|
|
20158
|
+
_loop(data, dropKey, function (item) {
|
|
19813
20159
|
item.children = item.children || [];
|
|
19814
20160
|
item.children.unshift(dragObj);
|
|
19815
20161
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19817,7 +20163,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19817
20163
|
} else {
|
|
19818
20164
|
var ar;
|
|
19819
20165
|
var i;
|
|
19820
|
-
|
|
20166
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
19821
20167
|
ar = arr;
|
|
19822
20168
|
i = index;
|
|
19823
20169
|
});
|
|
@@ -19856,17 +20202,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19856
20202
|
title: '编辑名称',
|
|
19857
20203
|
callBack: function callBack(newName) {
|
|
19858
20204
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19859
|
-
var
|
|
20205
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19860
20206
|
oldTreeData.forEach(function (treeItem) {
|
|
19861
20207
|
if (treeItem.path === item.path) {
|
|
19862
20208
|
treeItem.name = newName;
|
|
19863
20209
|
}
|
|
19864
20210
|
if (treeItem.children) {
|
|
19865
|
-
|
|
20211
|
+
_editTreeDataName(treeItem.children);
|
|
19866
20212
|
}
|
|
19867
20213
|
});
|
|
19868
20214
|
};
|
|
19869
|
-
|
|
20215
|
+
_editTreeDataName(oldTreeData);
|
|
19870
20216
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19871
20217
|
_this.setState({
|
|
19872
20218
|
modalInfo: {
|
|
@@ -19911,7 +20257,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19911
20257
|
title: '新增子目录',
|
|
19912
20258
|
callBack: function callBack(newName) {
|
|
19913
20259
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19914
|
-
var
|
|
20260
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
19915
20261
|
oldTreeData.forEach(function (treeItem) {
|
|
19916
20262
|
if (treeItem.path === item.path) {
|
|
19917
20263
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19923,11 +20269,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19923
20269
|
}];
|
|
19924
20270
|
}
|
|
19925
20271
|
if (treeItem.children) {
|
|
19926
|
-
|
|
20272
|
+
_addChildFolder(treeItem.children);
|
|
19927
20273
|
}
|
|
19928
20274
|
});
|
|
19929
20275
|
};
|
|
19930
|
-
|
|
20276
|
+
_addChildFolder(oldTreeData);
|
|
19931
20277
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19932
20278
|
_this.setState({
|
|
19933
20279
|
modalInfo: {
|
|
@@ -19986,7 +20332,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19986
20332
|
var _this$state = this.state,
|
|
19987
20333
|
modalInfo = _this$state.modalInfo,
|
|
19988
20334
|
checkedKeys = _this$state.checkedKeys;
|
|
19989
|
-
var
|
|
20335
|
+
var _loop2 = function loop(data) {
|
|
19990
20336
|
return data.map(function (item) {
|
|
19991
20337
|
if (item.children && item.children.length) {
|
|
19992
20338
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
@@ -20003,7 +20349,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20003
20349
|
e.stopPropagation();
|
|
20004
20350
|
}
|
|
20005
20351
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(icons.EllipsisOutlined, null))))))
|
|
20006
|
-
},
|
|
20352
|
+
}, _loop2(item.children));
|
|
20007
20353
|
}
|
|
20008
20354
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
20009
20355
|
path: item.path,
|
|
@@ -20082,7 +20428,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20082
20428
|
children: 'children'
|
|
20083
20429
|
},
|
|
20084
20430
|
onDrop: this.onDrop
|
|
20085
|
-
},
|
|
20431
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
20086
20432
|
width: 600,
|
|
20087
20433
|
bodyStyle: {
|
|
20088
20434
|
paddingTop: '32px',
|
|
@@ -20195,7 +20541,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20195
20541
|
pathname: item.path
|
|
20196
20542
|
});
|
|
20197
20543
|
};
|
|
20198
|
-
var
|
|
20544
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
20199
20545
|
return menuData.map(function (item) {
|
|
20200
20546
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20201
20547
|
style: {
|
|
@@ -20210,7 +20556,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20210
20556
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20211
20557
|
paddingLeft: '4px'
|
|
20212
20558
|
}
|
|
20213
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20559
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
20214
20560
|
});
|
|
20215
20561
|
};
|
|
20216
20562
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20236,7 +20582,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20236
20582
|
style: {
|
|
20237
20583
|
paddingLeft: '5px'
|
|
20238
20584
|
}
|
|
20239
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
20585
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
20240
20586
|
style: {
|
|
20241
20587
|
left: isDrawer ? 140 : 0
|
|
20242
20588
|
},
|
|
@@ -20257,7 +20603,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20257
20603
|
visible: isDrawer
|
|
20258
20604
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
20259
20605
|
className: 'menu_title_line'
|
|
20260
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20606
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
20261
20607
|
title: /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20262
20608
|
style: {
|
|
20263
20609
|
fontWeight: '600',
|
|
@@ -20331,7 +20677,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20331
20677
|
return item.path === '/';
|
|
20332
20678
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20333
20679
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20334
|
-
|
|
20680
|
+
_setMenuTreeData(routesData);
|
|
20335
20681
|
routesData.forEach(function (item) {
|
|
20336
20682
|
if (item.children) {
|
|
20337
20683
|
routesDataList.push(item);
|
|
@@ -20361,7 +20707,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20361
20707
|
setHeight(clientHeight - 190);
|
|
20362
20708
|
setDrawHeight(clientHeight - 70);
|
|
20363
20709
|
};
|
|
20364
|
-
var
|
|
20710
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
20365
20711
|
if (!child.hideInMenu && child.children) {
|
|
20366
20712
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
20367
20713
|
style: {
|
|
@@ -20371,7 +20717,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20371
20717
|
}, umi.formatMessage({
|
|
20372
20718
|
id: "".concat(child.locale)
|
|
20373
20719
|
})), child.children.map(function (menuItem) {
|
|
20374
|
-
return
|
|
20720
|
+
return _renderChildItem(menuItem);
|
|
20375
20721
|
}));
|
|
20376
20722
|
} else if (!child.hideInMenu && child.path) {
|
|
20377
20723
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -20513,7 +20859,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20513
20859
|
onMenuClick(e, item);
|
|
20514
20860
|
}
|
|
20515
20861
|
}, item.name);
|
|
20516
|
-
}))), !!SearhData.length ? (
|
|
20862
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
20517
20863
|
className: 'search_menu_content'
|
|
20518
20864
|
}, SearhData.map(function (item) {
|
|
20519
20865
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20522,7 +20868,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20522
20868
|
},
|
|
20523
20869
|
key: item.path
|
|
20524
20870
|
}, item.name);
|
|
20525
|
-
}))) : (
|
|
20871
|
+
}))) : (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20526
20872
|
style: {
|
|
20527
20873
|
height: "".concat(rightMenuHeight, "px"),
|
|
20528
20874
|
overflowY: 'scroll',
|
|
@@ -20534,7 +20880,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20534
20880
|
className: 'drawerWarp_right'
|
|
20535
20881
|
}, homepageData && homepageData.filter(function (d) {
|
|
20536
20882
|
return !d.hideInMenu;
|
|
20537
|
-
}).length > 0 && (
|
|
20883
|
+
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
20538
20884
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
20539
20885
|
dataSource: homepageData,
|
|
20540
20886
|
renderItem: function renderItem(child) {
|
|
@@ -20575,7 +20921,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20575
20921
|
bordered: true,
|
|
20576
20922
|
dataSource: item.children,
|
|
20577
20923
|
renderItem: function renderItem(child) {
|
|
20578
|
-
return
|
|
20924
|
+
return _renderChildItem(child);
|
|
20579
20925
|
}
|
|
20580
20926
|
});
|
|
20581
20927
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20715,7 +21061,7 @@ var NoFoundPage = function NoFoundPage(props) {
|
|
|
20715
21061
|
}));
|
|
20716
21062
|
};
|
|
20717
21063
|
|
|
20718
|
-
var _excluded$
|
|
21064
|
+
var _excluded$j = ["route"];
|
|
20719
21065
|
var TabPane = antd.Tabs.TabPane;
|
|
20720
21066
|
var getId = function getId(str) {
|
|
20721
21067
|
// 找到最后一个 / 的位置
|
|
@@ -20733,10 +21079,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20733
21079
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20734
21080
|
var menuKeys = [];
|
|
20735
21081
|
var docsId = [];
|
|
20736
|
-
var
|
|
21082
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20737
21083
|
data.forEach(function (item) {
|
|
20738
21084
|
if (item.children && item.children.length > 0) {
|
|
20739
|
-
|
|
21085
|
+
_getLimitedMenuKeys(item.children);
|
|
20740
21086
|
} else {
|
|
20741
21087
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20742
21088
|
menuKeys.push(originPath);
|
|
@@ -20747,7 +21093,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20747
21093
|
});
|
|
20748
21094
|
};
|
|
20749
21095
|
try {
|
|
20750
|
-
|
|
21096
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
20751
21097
|
} catch (e) {}
|
|
20752
21098
|
return {
|
|
20753
21099
|
menuKeys: menuKeys,
|
|
@@ -20981,10 +21327,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20981
21327
|
return (node.path || '').includes('all-general-documents');
|
|
20982
21328
|
};
|
|
20983
21329
|
// 递归获取树列表
|
|
20984
|
-
var
|
|
21330
|
+
var _getTreeList = function getTreeList(data) {
|
|
20985
21331
|
data.forEach(function (node) {
|
|
20986
21332
|
if (node.routes && node.routes.length > 0) {
|
|
20987
|
-
|
|
21333
|
+
_getTreeList(node.routes);
|
|
20988
21334
|
return;
|
|
20989
21335
|
}
|
|
20990
21336
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -21015,7 +21361,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21015
21361
|
}
|
|
21016
21362
|
});
|
|
21017
21363
|
};
|
|
21018
|
-
|
|
21364
|
+
_getTreeList(treeData);
|
|
21019
21365
|
return treeList;
|
|
21020
21366
|
};
|
|
21021
21367
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21644,7 +21990,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21644
21990
|
updateState = _ref8.updateState;
|
|
21645
21991
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21646
21992
|
className: "tab_title_content"
|
|
21647
|
-
}, item.tab, item.key !== '/' && (
|
|
21993
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
21648
21994
|
info: item,
|
|
21649
21995
|
operateFun: _this3.operateFun,
|
|
21650
21996
|
listenRouterState: listenRouterState
|
|
@@ -21656,7 +22002,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21656
22002
|
}); // 添加数据大屏
|
|
21657
22003
|
var _this$props3 = this.props,
|
|
21658
22004
|
route = _this$props3.route,
|
|
21659
|
-
restPrpos = _objectWithoutProperties(_this$props3, _excluded$
|
|
22005
|
+
restPrpos = _objectWithoutProperties(_this$props3, _excluded$j);
|
|
21660
22006
|
var exist = route.routes.find(function (route) {
|
|
21661
22007
|
return route.path === '/homePage/data-show';
|
|
21662
22008
|
});
|
|
@@ -21780,7 +22126,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21780
22126
|
};
|
|
21781
22127
|
}
|
|
21782
22128
|
var OperationsSlot = {
|
|
21783
|
-
left: (
|
|
22129
|
+
left: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
21784
22130
|
className: 'tab_left_operate'
|
|
21785
22131
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21786
22132
|
onClick: function onClick() {
|
|
@@ -21796,7 +22142,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21796
22142
|
_this3.setTabNavTransLate(-100);
|
|
21797
22143
|
}
|
|
21798
22144
|
}, /*#__PURE__*/React__default['default'].createElement(icons.DoubleLeftOutlined, null)))),
|
|
21799
|
-
right: (
|
|
22145
|
+
right: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
21800
22146
|
style: {
|
|
21801
22147
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21802
22148
|
},
|
|
@@ -21894,7 +22240,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21894
22240
|
onMouseLeave: function onMouseLeave() {
|
|
21895
22241
|
_this3.setShowMenu(false);
|
|
21896
22242
|
}
|
|
21897
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
22243
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
21898
22244
|
style: {
|
|
21899
22245
|
position: 'absolute',
|
|
21900
22246
|
top: '14px',
|
|
@@ -21913,7 +22259,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21913
22259
|
postMenuData: function postMenuData(menus) {
|
|
21914
22260
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21915
22261
|
},
|
|
21916
|
-
links: [!this.state.collapse ? (
|
|
22262
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
21917
22263
|
ref: this.allFunc,
|
|
21918
22264
|
itemPath: itemPath,
|
|
21919
22265
|
handleClose: this.handleClose,
|
|
@@ -21931,7 +22277,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21931
22277
|
},
|
|
21932
22278
|
menu: {
|
|
21933
22279
|
request: function () {
|
|
21934
|
-
var _request = _asyncToGenerator(
|
|
22280
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21935
22281
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21936
22282
|
while (1) switch (_context.prev = _context.next) {
|
|
21937
22283
|
case 0:
|
|
@@ -22066,7 +22412,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22066
22412
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22067
22413
|
timeFormat = _this$props4.timeFormat,
|
|
22068
22414
|
transparentProps = _this$props4.transparentProps;
|
|
22069
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? (
|
|
22415
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? (/*#__PURE__*/React__default['default'].createElement(NoFoundPage, null)) : /*#__PURE__*/React__default['default'].createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
22070
22416
|
getDictionarySource: getDictionarySource,
|
|
22071
22417
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22072
22418
|
timeFormat: timeFormat
|
|
@@ -22090,12 +22436,12 @@ var index$5 = (function (props) {
|
|
|
22090
22436
|
});
|
|
22091
22437
|
|
|
22092
22438
|
// @ts-nocheck
|
|
22093
|
-
var
|
|
22439
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
22094
22440
|
var result = [];
|
|
22095
22441
|
columns.forEach(function (column) {
|
|
22096
22442
|
if (column.children) {
|
|
22097
22443
|
result.push(column);
|
|
22098
|
-
result.push.apply(result,
|
|
22444
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
22099
22445
|
} else {
|
|
22100
22446
|
result.push(column);
|
|
22101
22447
|
}
|
|
@@ -22104,7 +22450,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
22104
22450
|
};
|
|
22105
22451
|
var convertToRows = function convertToRows(originColumns) {
|
|
22106
22452
|
var maxLevel = 1;
|
|
22107
|
-
var
|
|
22453
|
+
var _traverse = function traverse(column, parent) {
|
|
22108
22454
|
if (parent) {
|
|
22109
22455
|
column.level = parent.level + 1;
|
|
22110
22456
|
if (maxLevel < column.level) {
|
|
@@ -22114,7 +22460,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22114
22460
|
if (column.children) {
|
|
22115
22461
|
var colSpan = 0;
|
|
22116
22462
|
column.children.forEach(function (subColumn) {
|
|
22117
|
-
|
|
22463
|
+
_traverse(subColumn, column);
|
|
22118
22464
|
colSpan += subColumn.colSpan;
|
|
22119
22465
|
});
|
|
22120
22466
|
column.colSpan = colSpan;
|
|
@@ -22124,13 +22470,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22124
22470
|
};
|
|
22125
22471
|
originColumns.forEach(function (column) {
|
|
22126
22472
|
column.level = 1;
|
|
22127
|
-
|
|
22473
|
+
_traverse(column);
|
|
22128
22474
|
});
|
|
22129
22475
|
var rows = [];
|
|
22130
22476
|
for (var i = 0; i < maxLevel; i++) {
|
|
22131
22477
|
rows.push([]);
|
|
22132
22478
|
}
|
|
22133
|
-
var allColumns =
|
|
22479
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22134
22480
|
allColumns.forEach(function (column) {
|
|
22135
22481
|
if (!column.children) {
|
|
22136
22482
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22170,7 +22516,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22170
22516
|
};
|
|
22171
22517
|
var headersToRows = function headersToRows(originColumns) {
|
|
22172
22518
|
var maxLevel = 1;
|
|
22173
|
-
var
|
|
22519
|
+
var _traverse2 = function traverse(column, parent) {
|
|
22174
22520
|
if (parent) {
|
|
22175
22521
|
//计算当前元素属于第几个层级
|
|
22176
22522
|
column.level = parent.level + 1;
|
|
@@ -22183,7 +22529,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22183
22529
|
var colSpan = 0;
|
|
22184
22530
|
column.children.forEach(function (subColumn) {
|
|
22185
22531
|
//进行递归
|
|
22186
|
-
|
|
22532
|
+
_traverse2(subColumn, column);
|
|
22187
22533
|
colSpan += subColumn.colSpan;
|
|
22188
22534
|
});
|
|
22189
22535
|
column.colSpan = colSpan;
|
|
@@ -22193,14 +22539,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22193
22539
|
};
|
|
22194
22540
|
originColumns.forEach(function (column) {
|
|
22195
22541
|
column.level = 1;
|
|
22196
|
-
|
|
22542
|
+
_traverse2(column);
|
|
22197
22543
|
});
|
|
22198
22544
|
var rows = [];
|
|
22199
22545
|
var lastData = [];
|
|
22200
22546
|
for (var i = 0; i < maxLevel; i++) {
|
|
22201
22547
|
rows.push([]);
|
|
22202
22548
|
}
|
|
22203
|
-
var allColumns =
|
|
22549
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22204
22550
|
allColumns.forEach(function (column) {
|
|
22205
22551
|
if (!column.children) {
|
|
22206
22552
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22629,10 +22975,10 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
22629
22975
|
}))))));
|
|
22630
22976
|
});
|
|
22631
22977
|
|
|
22632
|
-
var _excluded$
|
|
22978
|
+
var _excluded$k = ["children"];
|
|
22633
22979
|
var Drawer = (function (props) {
|
|
22634
22980
|
var children = props.children,
|
|
22635
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
22981
|
+
restProps = _objectWithoutProperties(props, _excluded$k);
|
|
22636
22982
|
return /*#__PURE__*/React__default['default'].createElement(antd.Drawer, _objectSpread2({
|
|
22637
22983
|
mask: true,
|
|
22638
22984
|
closable: false,
|
|
@@ -28217,7 +28563,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28217
28563
|
}
|
|
28218
28564
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28219
28565
|
};
|
|
28220
|
-
var
|
|
28566
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
28221
28567
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28222
28568
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28223
28569
|
var children = hightLightData.children,
|
|
@@ -28228,7 +28574,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28228
28574
|
lineEnd = _loc2[2];
|
|
28229
28575
|
if (children) {
|
|
28230
28576
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28231
|
-
return
|
|
28577
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
28232
28578
|
});
|
|
28233
28579
|
}
|
|
28234
28580
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28240,7 +28586,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28240
28586
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28241
28587
|
data.forEach(function (node) {
|
|
28242
28588
|
if (!node) return;
|
|
28243
|
-
node.toggled =
|
|
28589
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
28244
28590
|
node.active = isHightLight(node, highLightLine);
|
|
28245
28591
|
if (node.children) {
|
|
28246
28592
|
if (node.active) {
|
|
@@ -29671,7 +30017,7 @@ var valueType = {
|
|
|
29671
30017
|
};
|
|
29672
30018
|
|
|
29673
30019
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29674
|
-
var _ref = _asyncToGenerator(
|
|
30020
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29675
30021
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29676
30022
|
while (1) switch (_context.prev = _context.next) {
|
|
29677
30023
|
case 0:
|
|
@@ -29739,7 +30085,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29739
30085
|
value: false
|
|
29740
30086
|
}];
|
|
29741
30087
|
var ref = React$1.useRef();
|
|
29742
|
-
ahooks.useMount(
|
|
30088
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29743
30089
|
var _ref$current, source;
|
|
29744
30090
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29745
30091
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29853,7 +30199,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29853
30199
|
source: {
|
|
29854
30200
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29855
30201
|
type: function () {
|
|
29856
|
-
var _type = _asyncToGenerator(
|
|
30202
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29857
30203
|
var form, values, name, relates, source;
|
|
29858
30204
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29859
30205
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30333,7 +30679,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30333
30679
|
source: {
|
|
30334
30680
|
relates: ['choiceType', 'inputType'],
|
|
30335
30681
|
type: function () {
|
|
30336
|
-
var _type2 = _asyncToGenerator(
|
|
30682
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30337
30683
|
var values, name, form, source;
|
|
30338
30684
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30339
30685
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30555,7 +30901,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30555
30901
|
width: 900,
|
|
30556
30902
|
maskClosable: false,
|
|
30557
30903
|
onOk: function () {
|
|
30558
|
-
var _onOk = _asyncToGenerator(
|
|
30904
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30559
30905
|
var _ref$current4, _res$editableStatus;
|
|
30560
30906
|
var res, _res$defaultValue;
|
|
30561
30907
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30627,7 +30973,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30627
30973
|
}()
|
|
30628
30974
|
}), /*#__PURE__*/React__default['default'].createElement(bssula.Form, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30629
30975
|
ref: ref
|
|
30630
|
-
})), maintainOptionsModal.visible && (
|
|
30976
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30631
30977
|
};
|
|
30632
30978
|
|
|
30633
30979
|
// @ts-nocheck
|
|
@@ -31241,7 +31587,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31241
31587
|
return setVisible(false);
|
|
31242
31588
|
},
|
|
31243
31589
|
className: 'customFieldsDrawer'
|
|
31244
|
-
}, detailTablesSetting.length == 0 && (
|
|
31590
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31245
31591
|
style: {
|
|
31246
31592
|
display: 'flex'
|
|
31247
31593
|
}
|
|
@@ -31250,13 +31596,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31250
31596
|
flex: 1,
|
|
31251
31597
|
width: 500
|
|
31252
31598
|
}
|
|
31253
|
-
}, _.isEmpty(moduleParams) ? (
|
|
31599
|
+
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31254
31600
|
style: {
|
|
31255
31601
|
padding: "10px 0",
|
|
31256
31602
|
fontSize: "16px",
|
|
31257
31603
|
fontWeight: "bolder"
|
|
31258
31604
|
}
|
|
31259
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
31605
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31260
31606
|
style: {
|
|
31261
31607
|
flex: 1
|
|
31262
31608
|
}
|
|
@@ -31265,7 +31611,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31265
31611
|
onRun: onClickRun,
|
|
31266
31612
|
value: jsonEditorVal,
|
|
31267
31613
|
shallowHeight: height
|
|
31268
|
-
})))), detailTablesSetting.length > 0 && (
|
|
31614
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
31269
31615
|
defaultActiveKey: activeKey,
|
|
31270
31616
|
onChange: function onChange(v) {
|
|
31271
31617
|
return setActiveKey(v);
|
|
@@ -31282,13 +31628,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31282
31628
|
flex: 1,
|
|
31283
31629
|
width: 500
|
|
31284
31630
|
}
|
|
31285
|
-
}, _.isEmpty(moduleParams) ? (
|
|
31631
|
+
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31286
31632
|
style: {
|
|
31287
31633
|
padding: "10px 0",
|
|
31288
31634
|
fontSize: "16px",
|
|
31289
31635
|
fontWeight: "bolder"
|
|
31290
31636
|
}
|
|
31291
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
31637
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31292
31638
|
style: {
|
|
31293
31639
|
flex: 1
|
|
31294
31640
|
}
|
|
@@ -31310,13 +31656,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31310
31656
|
flex: 1,
|
|
31311
31657
|
width: 500
|
|
31312
31658
|
}
|
|
31313
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
31659
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31314
31660
|
style: {
|
|
31315
31661
|
padding: "10px 0",
|
|
31316
31662
|
fontSize: "16px",
|
|
31317
31663
|
fontWeight: "bolder"
|
|
31318
31664
|
}
|
|
31319
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
31665
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31320
31666
|
style: {
|
|
31321
31667
|
flex: 1
|
|
31322
31668
|
}
|
|
@@ -31411,7 +31757,7 @@ var formatListName = function formatListName(list, columns) {
|
|
|
31411
31757
|
});
|
|
31412
31758
|
};
|
|
31413
31759
|
|
|
31414
|
-
var _excluded$
|
|
31760
|
+
var _excluded$l = ["sorter"];
|
|
31415
31761
|
/**
|
|
31416
31762
|
* 删掉查询条件的qp- 和 -eq等
|
|
31417
31763
|
* @param {object} data
|
|
@@ -31462,7 +31808,7 @@ function getMetaData(_x) {
|
|
|
31462
31808
|
|
|
31463
31809
|
// 获取数据
|
|
31464
31810
|
function _getMetaData() {
|
|
31465
|
-
_getMetaData = _asyncToGenerator(
|
|
31811
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31466
31812
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31467
31813
|
while (1) switch (_context.prev = _context.next) {
|
|
31468
31814
|
case 0:
|
|
@@ -31494,7 +31840,7 @@ var remoteFetch = function remoteFetch(requestConfig, coloumns) {
|
|
|
31494
31840
|
var _requestConfig$method;
|
|
31495
31841
|
var params = _ref.params;
|
|
31496
31842
|
var sorter = params.sorter,
|
|
31497
|
-
paramsTemp = _objectWithoutProperties(params, _excluded$
|
|
31843
|
+
paramsTemp = _objectWithoutProperties(params, _excluded$l);
|
|
31498
31844
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, requestConfig.params), requestConfig.body), ___default['default'].omit(paramsTemp, ['filters', 'current'])), (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.filters) || {}), {
|
|
31499
31845
|
currentPage: (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.currentPage) || paramsTemp.current || 1
|
|
31500
31846
|
});
|
|
@@ -31684,7 +32030,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
31684
32030
|
tableState = _useState4[0],
|
|
31685
32031
|
setTableState = _useState4[1];
|
|
31686
32032
|
var handleOpen = /*#__PURE__*/function () {
|
|
31687
|
-
var _ref = _asyncToGenerator(
|
|
32033
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31688
32034
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31689
32035
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31690
32036
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -32003,7 +32349,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32003
32349
|
destroyOnClose: true
|
|
32004
32350
|
}, config && /*#__PURE__*/React__default['default'].createElement(bssula.QueryTable, _objectSpread2({
|
|
32005
32351
|
ref: queryTableRef
|
|
32006
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
32352
|
+
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (/*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
32007
32353
|
justify: "center",
|
|
32008
32354
|
style: {
|
|
32009
32355
|
marginBottom: 30,
|
|
@@ -32119,7 +32465,7 @@ var CustomSelector = (function (props) {
|
|
|
32119
32465
|
var _props$ctx7;
|
|
32120
32466
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32121
32467
|
}
|
|
32122
|
-
})), showType === 'modalTable' && (
|
|
32468
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32123
32469
|
type: "primary",
|
|
32124
32470
|
style: {
|
|
32125
32471
|
width: '30px',
|
|
@@ -32205,7 +32551,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32205
32551
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32206
32552
|
handSource = _useState2[0],
|
|
32207
32553
|
setHandSource = _useState2[1];
|
|
32208
|
-
React$1.useEffect(
|
|
32554
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32209
32555
|
var resData, data;
|
|
32210
32556
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32211
32557
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32357,7 +32703,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32357
32703
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32358
32704
|
}
|
|
32359
32705
|
function _getRegularThresholdRange() {
|
|
32360
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
32706
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32361
32707
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32362
32708
|
while (1) switch (_context.prev = _context.next) {
|
|
32363
32709
|
case 0:
|
|
@@ -32511,7 +32857,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32511
32857
|
};
|
|
32512
32858
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32513
32859
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32514
|
-
var _ref = _asyncToGenerator(
|
|
32860
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32515
32861
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32516
32862
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32517
32863
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33468,7 +33814,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33468
33814
|
isAll: true,
|
|
33469
33815
|
needNameAndCode: true,
|
|
33470
33816
|
notChangeOnSelect: true,
|
|
33471
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33817
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33472
33818
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33473
33819
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33474
33820
|
case 0:
|
|
@@ -33517,7 +33863,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33517
33863
|
isAll: true,
|
|
33518
33864
|
needNameAndCode: true,
|
|
33519
33865
|
notChangeOnSelect: true,
|
|
33520
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33866
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33521
33867
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33522
33868
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33523
33869
|
case 0:
|
|
@@ -33568,7 +33914,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33568
33914
|
isAll: true,
|
|
33569
33915
|
needNameAndCode: true,
|
|
33570
33916
|
notChangeOnSelect: true,
|
|
33571
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33917
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33572
33918
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33573
33919
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33574
33920
|
case 0:
|
|
@@ -35546,7 +35892,7 @@ var App$1 = function App(_ref) {
|
|
|
35546
35892
|
borderRadius: '5px',
|
|
35547
35893
|
cursor: 'pointer'
|
|
35548
35894
|
}
|
|
35549
|
-
}, isStaticNumber ? (
|
|
35895
|
+
}, isStaticNumber ? (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35550
35896
|
autoFocus: true,
|
|
35551
35897
|
onClick: function onClick(e) {
|
|
35552
35898
|
return e.stopPropagation();
|
|
@@ -35833,7 +36179,7 @@ function RenderCompItem(props) {
|
|
|
35833
36179
|
dictData = _useState2[0],
|
|
35834
36180
|
setDictData = _useState2[1];
|
|
35835
36181
|
var getDictData = /*#__PURE__*/function () {
|
|
35836
|
-
var _ref = _asyncToGenerator(
|
|
36182
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35837
36183
|
var _data$map;
|
|
35838
36184
|
var data;
|
|
35839
36185
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35875,7 +36221,7 @@ function RenderCompItem(props) {
|
|
|
35875
36221
|
var style2 = {
|
|
35876
36222
|
width: '100px'
|
|
35877
36223
|
};
|
|
35878
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (
|
|
36224
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35879
36225
|
disabled: disabled,
|
|
35880
36226
|
allowClear: true,
|
|
35881
36227
|
onClear: function onClear() {
|
|
@@ -35886,7 +36232,7 @@ function RenderCompItem(props) {
|
|
|
35886
36232
|
onBlur: function onBlur(e) {
|
|
35887
36233
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35888
36234
|
}
|
|
35889
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (
|
|
36235
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
35890
36236
|
disabled: disabled,
|
|
35891
36237
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35892
36238
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35899,7 +36245,7 @@ function RenderCompItem(props) {
|
|
|
35899
36245
|
onChange: function onChange(value) {
|
|
35900
36246
|
handleEdit(ites.code, value);
|
|
35901
36247
|
}
|
|
35902
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (
|
|
36248
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (/*#__PURE__*/React__default['default'].createElement(antd.DatePicker, {
|
|
35903
36249
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35904
36250
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35905
36251
|
disabled: disabled,
|
|
@@ -35909,7 +36255,7 @@ function RenderCompItem(props) {
|
|
|
35909
36255
|
onChange: function onChange(value, dateString) {
|
|
35910
36256
|
handleEdit(ites.code, dateString);
|
|
35911
36257
|
}
|
|
35912
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
36258
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
35913
36259
|
showTime: true,
|
|
35914
36260
|
disabled: disabled,
|
|
35915
36261
|
defaultValue: ites.defaultValue,
|
|
@@ -35918,7 +36264,7 @@ function RenderCompItem(props) {
|
|
|
35918
36264
|
onChange: function onChange(value, timeString) {
|
|
35919
36265
|
handleEdit(ites.code, timeString);
|
|
35920
36266
|
}
|
|
35921
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
36267
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
35922
36268
|
disabled: disabled,
|
|
35923
36269
|
defaultChecked: !!ites.defaultValue,
|
|
35924
36270
|
style: style2,
|
|
@@ -35926,7 +36272,7 @@ function RenderCompItem(props) {
|
|
|
35926
36272
|
onChange: function onChange(value) {
|
|
35927
36273
|
handleEdit(ites.code, value);
|
|
35928
36274
|
}
|
|
35929
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (
|
|
36275
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
35930
36276
|
disabled: disabled,
|
|
35931
36277
|
allowClear: true,
|
|
35932
36278
|
showArrow: true
|
|
@@ -35944,7 +36290,7 @@ function RenderCompItem(props) {
|
|
|
35944
36290
|
key: it,
|
|
35945
36291
|
value: it
|
|
35946
36292
|
}, ites.enumeration[it]);
|
|
35947
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (
|
|
36293
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React__default['default'].createElement(InnerSelect, {
|
|
35948
36294
|
disabled: disabled,
|
|
35949
36295
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35950
36296
|
defaultValue: ites.defaultValue,
|
|
@@ -35954,7 +36300,7 @@ function RenderCompItem(props) {
|
|
|
35954
36300
|
handleEdit(ites.code, value);
|
|
35955
36301
|
},
|
|
35956
36302
|
dictionaryCode: ites.dictionaryCode
|
|
35957
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (
|
|
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) === 110 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35958
36304
|
selectBusinessType: "physicalWarehouse",
|
|
35959
36305
|
selectProps: _objectSpread2({
|
|
35960
36306
|
style: styleCommon,
|
|
@@ -35976,7 +36322,7 @@ function RenderCompItem(props) {
|
|
|
35976
36322
|
getPopupContainer: function getPopupContainer() {
|
|
35977
36323
|
return document.body;
|
|
35978
36324
|
}
|
|
35979
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (
|
|
36325
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35980
36326
|
selectBusinessType: "realWarehouse",
|
|
35981
36327
|
selectProps: _objectSpread2({
|
|
35982
36328
|
style: styleCommon,
|
|
@@ -35998,7 +36344,7 @@ function RenderCompItem(props) {
|
|
|
35998
36344
|
getPopupContainer: function getPopupContainer() {
|
|
35999
36345
|
return document.body;
|
|
36000
36346
|
}
|
|
36001
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (
|
|
36347
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36002
36348
|
selectBusinessType: "virtualWarehouse",
|
|
36003
36349
|
selectProps: _objectSpread2({
|
|
36004
36350
|
style: styleCommon,
|
|
@@ -36020,7 +36366,7 @@ function RenderCompItem(props) {
|
|
|
36020
36366
|
getPopupContainer: function getPopupContainer() {
|
|
36021
36367
|
return document.body;
|
|
36022
36368
|
}
|
|
36023
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (
|
|
36369
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36024
36370
|
selectBusinessType: "channelWarehouse",
|
|
36025
36371
|
selectProps: _objectSpread2({
|
|
36026
36372
|
style: styleCommon,
|
|
@@ -36042,7 +36388,7 @@ function RenderCompItem(props) {
|
|
|
36042
36388
|
getPopupContainer: function getPopupContainer() {
|
|
36043
36389
|
return document.body;
|
|
36044
36390
|
}
|
|
36045
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (
|
|
36391
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36046
36392
|
selectBusinessType: "spuCommodity",
|
|
36047
36393
|
selectProps: _objectSpread2({
|
|
36048
36394
|
style: styleCommon,
|
|
@@ -36063,7 +36409,7 @@ function RenderCompItem(props) {
|
|
|
36063
36409
|
getPopupContainer: function getPopupContainer() {
|
|
36064
36410
|
return document.body;
|
|
36065
36411
|
}
|
|
36066
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (
|
|
36412
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36067
36413
|
selectBusinessType: "skuCommodity",
|
|
36068
36414
|
selectProps: _objectSpread2({
|
|
36069
36415
|
style: styleCommon,
|
|
@@ -36084,13 +36430,13 @@ function RenderCompItem(props) {
|
|
|
36084
36430
|
getPopupContainer: function getPopupContainer() {
|
|
36085
36431
|
return document.body;
|
|
36086
36432
|
}
|
|
36087
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (
|
|
36433
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React__default['default'].createElement(BsCascader, {
|
|
36088
36434
|
disabled: disabled,
|
|
36089
36435
|
isAll: true,
|
|
36090
36436
|
needNameAndCode: true,
|
|
36091
36437
|
notChangeOnSelect: true,
|
|
36092
36438
|
initRequestSource: function () {
|
|
36093
|
-
var _initRequestSource = _asyncToGenerator(
|
|
36439
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36094
36440
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36095
36441
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36096
36442
|
case 0:
|
|
@@ -36132,7 +36478,7 @@ function RenderCompItem(props) {
|
|
|
36132
36478
|
getPopupContainer: function getPopupContainer() {
|
|
36133
36479
|
return document.body;
|
|
36134
36480
|
}
|
|
36135
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (
|
|
36481
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36136
36482
|
disabled: disabled,
|
|
36137
36483
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36138
36484
|
businessType: "department",
|
|
@@ -36145,7 +36491,7 @@ function RenderCompItem(props) {
|
|
|
36145
36491
|
getPopupContainer: function getPopupContainer() {
|
|
36146
36492
|
return document.body;
|
|
36147
36493
|
}
|
|
36148
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (
|
|
36494
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36149
36495
|
disabled: disabled,
|
|
36150
36496
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36151
36497
|
businessType: "purchase-organization",
|
|
@@ -36158,7 +36504,7 @@ function RenderCompItem(props) {
|
|
|
36158
36504
|
getPopupContainer: function getPopupContainer() {
|
|
36159
36505
|
return document.body;
|
|
36160
36506
|
}
|
|
36161
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (
|
|
36507
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36162
36508
|
disabled: disabled,
|
|
36163
36509
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36164
36510
|
businessType: "sales-organization",
|
|
@@ -36171,7 +36517,7 @@ function RenderCompItem(props) {
|
|
|
36171
36517
|
getPopupContainer: function getPopupContainer() {
|
|
36172
36518
|
return document.body;
|
|
36173
36519
|
}
|
|
36174
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (
|
|
36520
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36175
36521
|
selectBusinessType: "supplier2",
|
|
36176
36522
|
selectProps: _objectSpread2({
|
|
36177
36523
|
style: styleCommon,
|
|
@@ -36192,7 +36538,7 @@ function RenderCompItem(props) {
|
|
|
36192
36538
|
getPopupContainer: function getPopupContainer() {
|
|
36193
36539
|
return document.body;
|
|
36194
36540
|
}
|
|
36195
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (
|
|
36541
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36196
36542
|
selectBusinessType: "customer2",
|
|
36197
36543
|
selectProps: _objectSpread2({
|
|
36198
36544
|
style: styleCommon,
|
|
@@ -36213,7 +36559,7 @@ function RenderCompItem(props) {
|
|
|
36213
36559
|
getPopupContainer: function getPopupContainer() {
|
|
36214
36560
|
return document.body;
|
|
36215
36561
|
}
|
|
36216
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (
|
|
36562
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36217
36563
|
selectBusinessType: "shopFile2",
|
|
36218
36564
|
selectProps: _objectSpread2({
|
|
36219
36565
|
style: styleCommon,
|
|
@@ -36234,7 +36580,7 @@ function RenderCompItem(props) {
|
|
|
36234
36580
|
getPopupContainer: function getPopupContainer() {
|
|
36235
36581
|
return document.body;
|
|
36236
36582
|
}
|
|
36237
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (
|
|
36583
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36238
36584
|
selectBusinessType: "employee2",
|
|
36239
36585
|
selectProps: _objectSpread2({
|
|
36240
36586
|
style: styleCommon,
|
|
@@ -36255,7 +36601,7 @@ function RenderCompItem(props) {
|
|
|
36255
36601
|
getPopupContainer: function getPopupContainer() {
|
|
36256
36602
|
return document.body;
|
|
36257
36603
|
}
|
|
36258
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (
|
|
36604
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36259
36605
|
disabled: disabled,
|
|
36260
36606
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36261
36607
|
businessType: "stock-organization",
|
|
@@ -36268,7 +36614,7 @@ function RenderCompItem(props) {
|
|
|
36268
36614
|
getPopupContainer: function getPopupContainer() {
|
|
36269
36615
|
return document.body;
|
|
36270
36616
|
}
|
|
36271
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (
|
|
36617
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36272
36618
|
disabled: disabled,
|
|
36273
36619
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36274
36620
|
businessType: "settle-organization",
|
|
@@ -36281,7 +36627,7 @@ function RenderCompItem(props) {
|
|
|
36281
36627
|
getPopupContainer: function getPopupContainer() {
|
|
36282
36628
|
return document.body;
|
|
36283
36629
|
}
|
|
36284
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (
|
|
36630
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36285
36631
|
selectBusinessType: "deliveryMode",
|
|
36286
36632
|
selectProps: _objectSpread2({
|
|
36287
36633
|
style: styleCommon,
|
|
@@ -36302,7 +36648,7 @@ function RenderCompItem(props) {
|
|
|
36302
36648
|
getPopupContainer: function getPopupContainer() {
|
|
36303
36649
|
return document.body;
|
|
36304
36650
|
}
|
|
36305
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (
|
|
36651
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36306
36652
|
selectBusinessType: "role",
|
|
36307
36653
|
selectProps: _objectSpread2({
|
|
36308
36654
|
style: styleCommon,
|
|
@@ -36323,7 +36669,7 @@ function RenderCompItem(props) {
|
|
|
36323
36669
|
getPopupContainer: function getPopupContainer() {
|
|
36324
36670
|
return document.body;
|
|
36325
36671
|
}
|
|
36326
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (
|
|
36672
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36327
36673
|
selectBusinessType: "brand",
|
|
36328
36674
|
selectProps: _objectSpread2({
|
|
36329
36675
|
style: styleCommon,
|
|
@@ -36344,7 +36690,7 @@ function RenderCompItem(props) {
|
|
|
36344
36690
|
getPopupContainer: function getPopupContainer() {
|
|
36345
36691
|
return document.body;
|
|
36346
36692
|
}
|
|
36347
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (
|
|
36693
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36348
36694
|
disabled: disabled,
|
|
36349
36695
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36350
36696
|
businessType: "background-category",
|
|
@@ -36357,7 +36703,7 @@ function RenderCompItem(props) {
|
|
|
36357
36703
|
getPopupContainer: function getPopupContainer() {
|
|
36358
36704
|
return document.body;
|
|
36359
36705
|
}
|
|
36360
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (
|
|
36706
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React__default['default'].createElement(CustomSelector, {
|
|
36361
36707
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36362
36708
|
style: styleCommon,
|
|
36363
36709
|
placeholder: '请选择'
|
|
@@ -36380,7 +36726,7 @@ function RenderCompItem(props) {
|
|
|
36380
36726
|
onChange: function onChange(value) {
|
|
36381
36727
|
handleEdit(ites.code, value);
|
|
36382
36728
|
}
|
|
36383
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
36729
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
36384
36730
|
style: {
|
|
36385
36731
|
display: 'flex'
|
|
36386
36732
|
}
|
|
@@ -36892,7 +37238,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36892
37238
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36893
37239
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36894
37240
|
}
|
|
36895
|
-
var parallelTreeData =
|
|
37241
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
36896
37242
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36897
37243
|
var _i$key;
|
|
36898
37244
|
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);
|
|
@@ -37819,13 +38165,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37819
38165
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37820
38166
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37821
38167
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37822
|
-
var list =
|
|
38168
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37823
38169
|
var requiredList = list.filter(function (c) {
|
|
37824
38170
|
return c.required == 1;
|
|
37825
38171
|
}) || []; // 获取对象属性为true的集合
|
|
37826
38172
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37827
38173
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37828
|
-
var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ?
|
|
38174
|
+
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];
|
|
37829
38175
|
(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) {
|
|
37830
38176
|
if (requiredList.some(function (r) {
|
|
37831
38177
|
return r.id === e.elementId;
|
|
@@ -38414,7 +38760,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38414
38760
|
style: {
|
|
38415
38761
|
float: 'right'
|
|
38416
38762
|
}
|
|
38417
|
-
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? (
|
|
38763
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? (/*#__PURE__*/React__default['default'].createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38418
38764
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38419
38765
|
ruleGroupInfo: {
|
|
38420
38766
|
ruleGroupList: ruleGroupList,
|
|
@@ -38432,7 +38778,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38432
38778
|
callBack: function callBack(newData) {
|
|
38433
38779
|
upDateData(newData);
|
|
38434
38780
|
}
|
|
38435
|
-
}))) : (
|
|
38781
|
+
}))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
38436
38782
|
style: {
|
|
38437
38783
|
padding: 20
|
|
38438
38784
|
}
|
|
@@ -38662,14 +39008,14 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38662
39008
|
var css_248z$y = ".bs-collapse-wrap {\n border-radius: 4px;\n overflow: hidden;\n}\n.bs-collapse-wrap .bs-collapse-header-wrap {\n background: #fff;\n}\n.bs-collapse-wrap .bs-collapse-icon {\n color: #b6b6b6;\n transition: transform 0.3s;\n}\n.bs-collapse-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.bs-collapse-wrap .bs-collapse-header-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n}\n.bs-collapse-wrap .bs-collapse-header-divider {\n width: 3px;\n height: 20px;\n background: #005cff;\n}\n.bs-collapse-header-boder .ant-collapse .ant-collapse-item > .ant-collapse-header {\n border-bottom: 1px solid #f0f0f0;\n padding: 8px 16px;\n}\n";
|
|
38663
39009
|
styleInject(css_248z$y);
|
|
38664
39010
|
|
|
38665
|
-
var _excluded$
|
|
39011
|
+
var _excluded$m = ["titleExtra", "header", "showArrow"];
|
|
38666
39012
|
var Panel = antd.Collapse.Panel;
|
|
38667
39013
|
var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
38668
39014
|
var titleExtra = _ref.titleExtra,
|
|
38669
39015
|
header = _ref.header,
|
|
38670
39016
|
_ref$showArrow = _ref.showArrow,
|
|
38671
39017
|
showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
|
|
38672
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
39018
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
38673
39019
|
var renderHeader = function renderHeader() {
|
|
38674
39020
|
return /*#__PURE__*/React__default['default'].createElement(antd.Space, {
|
|
38675
39021
|
align: "center"
|
|
@@ -38693,11 +39039,11 @@ var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
|
38693
39039
|
}), props.children);
|
|
38694
39040
|
};
|
|
38695
39041
|
|
|
38696
|
-
var _excluded$
|
|
39042
|
+
var _excluded$n = ["children", "bordered"];
|
|
38697
39043
|
var ExtendedCollapse = function ExtendedCollapse(props) {
|
|
38698
39044
|
var children = props.children,
|
|
38699
39045
|
bordered = props.bordered,
|
|
38700
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
39046
|
+
restProps = _objectWithoutProperties(props, _excluded$n);
|
|
38701
39047
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38702
39048
|
className: classNames__default['default']({
|
|
38703
39049
|
'bs-collapse-wrap': true,
|
|
@@ -38849,11 +39195,11 @@ exports.TreeSearchSelect = TreeSearchSelect;
|
|
|
38849
39195
|
exports.authFunc = authFunc;
|
|
38850
39196
|
exports.calculateValidPeriod = calculateValidPeriod;
|
|
38851
39197
|
exports.checkQuantityAccuracy = checkQuantityAccuracy;
|
|
38852
|
-
exports.coverToParallel =
|
|
39198
|
+
exports.coverToParallel = _coverToParallel;
|
|
38853
39199
|
exports.createUniqID = createUniqID;
|
|
38854
39200
|
exports.downloadExcel = downloadExcel;
|
|
38855
39201
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
38856
|
-
exports.formatter =
|
|
39202
|
+
exports.formatter = _formatter;
|
|
38857
39203
|
exports.getAccountID = getAccountID;
|
|
38858
39204
|
exports.getAccountId = getAccountId;
|
|
38859
39205
|
exports.getBreadcrumbNameMap = getBreadcrumbNameMap;
|