@bit-sun/business-component 4.0.13-alpha.18 → 4.0.13-alpha.19
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/index.esm.js +739 -448
- package/dist/index.js +740 -449
- package/package.json +1 -1
- package/src/components/Business/ItemPropertySelector/index.tsx +88 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +192 -0
- package/src/components/Business/SearchSelect/index.md +2 -2
- package/src/components/Business/SearchSelect/utils.ts +1 -1
- package/src/components/Functional/SearchSelect/index.tsx +15 -1
package/dist/index.js
CHANGED
|
@@ -55,88 +55,9 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
|
|
|
55
55
|
var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
|
|
56
56
|
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
|
|
57
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
|
-
}
|
|
98
58
|
function _callSuper(t, o, e) {
|
|
99
59
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
100
60
|
}
|
|
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
|
-
}
|
|
140
61
|
function _isNativeReflectConstruct() {
|
|
141
62
|
try {
|
|
142
63
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -145,9 +66,6 @@ function _isNativeReflectConstruct() {
|
|
|
145
66
|
return !!t;
|
|
146
67
|
})();
|
|
147
68
|
}
|
|
148
|
-
function _iterableToArray(r) {
|
|
149
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
150
|
-
}
|
|
151
69
|
function _iterableToArrayLimit(r, l) {
|
|
152
70
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
153
71
|
if (null != t) {
|
|
@@ -175,15 +93,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
175
93
|
return a;
|
|
176
94
|
}
|
|
177
95
|
}
|
|
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
|
-
}
|
|
187
96
|
function ownKeys(e, r) {
|
|
188
97
|
var t = Object.keys(e);
|
|
189
98
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -205,31 +114,6 @@ function _objectSpread2(e) {
|
|
|
205
114
|
}
|
|
206
115
|
return e;
|
|
207
116
|
}
|
|
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 s = Object.getOwnPropertySymbols(e);
|
|
215
|
-
for (r = 0; r < s.length; r++) o = s[r], t.includes(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 (e.includes(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
|
-
}
|
|
233
117
|
function _regeneratorRuntime() {
|
|
234
118
|
_regeneratorRuntime = function () {
|
|
235
119
|
return e;
|
|
@@ -531,20 +415,6 @@ function _regeneratorRuntime() {
|
|
|
531
415
|
}
|
|
532
416
|
}, e;
|
|
533
417
|
}
|
|
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
|
-
}
|
|
548
418
|
function _toPrimitive(t, r) {
|
|
549
419
|
if ("object" != typeof t || !t) return t;
|
|
550
420
|
var e = t[Symbol.toPrimitive];
|
|
@@ -568,12 +438,180 @@ function _typeof(o) {
|
|
|
568
438
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
569
439
|
}, _typeof(o);
|
|
570
440
|
}
|
|
571
|
-
function
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
var
|
|
575
|
-
|
|
441
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
442
|
+
try {
|
|
443
|
+
var info = gen[key](arg);
|
|
444
|
+
var value = info.value;
|
|
445
|
+
} catch (error) {
|
|
446
|
+
reject(error);
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
if (info.done) {
|
|
450
|
+
resolve(value);
|
|
451
|
+
} else {
|
|
452
|
+
Promise.resolve(value).then(_next, _throw);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
function _asyncToGenerator(fn) {
|
|
456
|
+
return function () {
|
|
457
|
+
var self = this,
|
|
458
|
+
args = arguments;
|
|
459
|
+
return new Promise(function (resolve, reject) {
|
|
460
|
+
var gen = fn.apply(self, args);
|
|
461
|
+
function _next(value) {
|
|
462
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
463
|
+
}
|
|
464
|
+
function _throw(err) {
|
|
465
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
466
|
+
}
|
|
467
|
+
_next(undefined);
|
|
468
|
+
});
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
function _classCallCheck(instance, Constructor) {
|
|
472
|
+
if (!(instance instanceof Constructor)) {
|
|
473
|
+
throw new TypeError("Cannot call a class as a function");
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
function _defineProperties(target, props) {
|
|
477
|
+
for (var i = 0; i < props.length; i++) {
|
|
478
|
+
var descriptor = props[i];
|
|
479
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
480
|
+
descriptor.configurable = true;
|
|
481
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
482
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
486
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
487
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
488
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
489
|
+
writable: false
|
|
490
|
+
});
|
|
491
|
+
return Constructor;
|
|
492
|
+
}
|
|
493
|
+
function _defineProperty(obj, key, value) {
|
|
494
|
+
key = _toPropertyKey(key);
|
|
495
|
+
if (key in obj) {
|
|
496
|
+
Object.defineProperty(obj, key, {
|
|
497
|
+
value: value,
|
|
498
|
+
enumerable: true,
|
|
499
|
+
configurable: true,
|
|
500
|
+
writable: true
|
|
501
|
+
});
|
|
502
|
+
} else {
|
|
503
|
+
obj[key] = value;
|
|
504
|
+
}
|
|
505
|
+
return obj;
|
|
506
|
+
}
|
|
507
|
+
function _inherits(subClass, superClass) {
|
|
508
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
509
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
510
|
+
}
|
|
511
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
512
|
+
constructor: {
|
|
513
|
+
value: subClass,
|
|
514
|
+
writable: true,
|
|
515
|
+
configurable: true
|
|
516
|
+
}
|
|
517
|
+
});
|
|
518
|
+
Object.defineProperty(subClass, "prototype", {
|
|
519
|
+
writable: false
|
|
520
|
+
});
|
|
521
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
522
|
+
}
|
|
523
|
+
function _getPrototypeOf(o) {
|
|
524
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
525
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
526
|
+
};
|
|
527
|
+
return _getPrototypeOf(o);
|
|
528
|
+
}
|
|
529
|
+
function _setPrototypeOf(o, p) {
|
|
530
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
531
|
+
o.__proto__ = p;
|
|
532
|
+
return o;
|
|
533
|
+
};
|
|
534
|
+
return _setPrototypeOf(o, p);
|
|
535
|
+
}
|
|
536
|
+
function _objectDestructuringEmpty(obj) {
|
|
537
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
538
|
+
}
|
|
539
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
540
|
+
if (source == null) return {};
|
|
541
|
+
var target = {};
|
|
542
|
+
for (var key in source) {
|
|
543
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
544
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
545
|
+
target[key] = source[key];
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
return target;
|
|
549
|
+
}
|
|
550
|
+
function _objectWithoutProperties(source, excluded) {
|
|
551
|
+
if (source == null) return {};
|
|
552
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
553
|
+
var key, i;
|
|
554
|
+
if (Object.getOwnPropertySymbols) {
|
|
555
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
556
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
557
|
+
key = sourceSymbolKeys[i];
|
|
558
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
559
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
560
|
+
target[key] = source[key];
|
|
561
|
+
}
|
|
576
562
|
}
|
|
563
|
+
return target;
|
|
564
|
+
}
|
|
565
|
+
function _assertThisInitialized(self) {
|
|
566
|
+
if (self === void 0) {
|
|
567
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
568
|
+
}
|
|
569
|
+
return self;
|
|
570
|
+
}
|
|
571
|
+
function _possibleConstructorReturn(self, call) {
|
|
572
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
573
|
+
return call;
|
|
574
|
+
} else if (call !== void 0) {
|
|
575
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
576
|
+
}
|
|
577
|
+
return _assertThisInitialized(self);
|
|
578
|
+
}
|
|
579
|
+
function _slicedToArray(arr, i) {
|
|
580
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
581
|
+
}
|
|
582
|
+
function _toArray(arr) {
|
|
583
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
584
|
+
}
|
|
585
|
+
function _toConsumableArray(arr) {
|
|
586
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
587
|
+
}
|
|
588
|
+
function _arrayWithoutHoles(arr) {
|
|
589
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
590
|
+
}
|
|
591
|
+
function _arrayWithHoles(arr) {
|
|
592
|
+
if (Array.isArray(arr)) return arr;
|
|
593
|
+
}
|
|
594
|
+
function _iterableToArray(iter) {
|
|
595
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
596
|
+
}
|
|
597
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
598
|
+
if (!o) return;
|
|
599
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
600
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
601
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
602
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
603
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
604
|
+
}
|
|
605
|
+
function _arrayLikeToArray(arr, len) {
|
|
606
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
607
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
608
|
+
return arr2;
|
|
609
|
+
}
|
|
610
|
+
function _nonIterableSpread() {
|
|
611
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
612
|
+
}
|
|
613
|
+
function _nonIterableRest() {
|
|
614
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
577
615
|
}
|
|
578
616
|
|
|
579
617
|
var ENUM = {
|
|
@@ -1083,13 +1121,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1083
1121
|
imgHtml.innerHTML = str;
|
|
1084
1122
|
}
|
|
1085
1123
|
// 测试使用 测试类型缩小 end
|
|
1086
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1124
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1087
1125
|
className: "clomnsImg"
|
|
1088
1126
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1089
1127
|
src: url,
|
|
1090
1128
|
width: "16px",
|
|
1091
1129
|
height: "16px"
|
|
1092
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1130
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1093
1131
|
className: "clomnsImg2"
|
|
1094
1132
|
}, /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1095
1133
|
src: noImg
|
|
@@ -1226,7 +1264,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1226
1264
|
}
|
|
1227
1265
|
save_link.click();
|
|
1228
1266
|
}
|
|
1229
|
-
var
|
|
1267
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1230
1268
|
return data.map(function (item) {
|
|
1231
1269
|
if (!item.name || !item.path) {
|
|
1232
1270
|
return null;
|
|
@@ -1246,7 +1284,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1246
1284
|
authority: item.authority || parentAuthority
|
|
1247
1285
|
});
|
|
1248
1286
|
if (item.routes) {
|
|
1249
|
-
var children =
|
|
1287
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1250
1288
|
// Reduce memory usage
|
|
1251
1289
|
result.children = children;
|
|
1252
1290
|
}
|
|
@@ -1256,7 +1294,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1256
1294
|
return item;
|
|
1257
1295
|
});
|
|
1258
1296
|
};
|
|
1259
|
-
var memoizeOneFormatter = memoizeOne__default['default'](
|
|
1297
|
+
var memoizeOneFormatter = memoizeOne__default['default'](formatter, isEqual__default['default']);
|
|
1260
1298
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1261
1299
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1262
1300
|
if (backHistoryPath) {
|
|
@@ -1565,7 +1603,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1565
1603
|
// sheepMap是表头字段中英文映射
|
|
1566
1604
|
// sheetCount:表的数量,默认一张
|
|
1567
1605
|
var resolveFile = /*#__PURE__*/function () {
|
|
1568
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1606
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1569
1607
|
var config,
|
|
1570
1608
|
data,
|
|
1571
1609
|
_args = arguments;
|
|
@@ -1604,7 +1642,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1604
1642
|
}();
|
|
1605
1643
|
//读取文件
|
|
1606
1644
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1607
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1645
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1608
1646
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1609
1647
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1610
1648
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1697,14 +1735,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1697
1735
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1698
1736
|
|
|
1699
1737
|
// 获取树平行结构
|
|
1700
|
-
var
|
|
1738
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1701
1739
|
var childrenKey = chilKey || 'children';
|
|
1702
1740
|
treeData.forEach(function (el) {
|
|
1703
1741
|
var _el$childrenKey;
|
|
1704
1742
|
result.push(el);
|
|
1705
1743
|
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) {
|
|
1706
1744
|
// 子级递归
|
|
1707
|
-
|
|
1745
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1708
1746
|
}
|
|
1709
1747
|
});
|
|
1710
1748
|
return result;
|
|
@@ -1981,13 +2019,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1981
2019
|
imgHtml.innerHTML = str;
|
|
1982
2020
|
}
|
|
1983
2021
|
// 测试使用 测试类型缩小 end
|
|
1984
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
2022
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1985
2023
|
className: "clomnsImg"
|
|
1986
2024
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1987
2025
|
src: url,
|
|
1988
2026
|
width: "16px",
|
|
1989
2027
|
height: "16px"
|
|
1990
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2028
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1991
2029
|
src: noImg
|
|
1992
2030
|
}))));
|
|
1993
2031
|
};
|
|
@@ -2049,7 +2087,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2049
2087
|
}
|
|
2050
2088
|
});
|
|
2051
2089
|
};
|
|
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({
|
|
2090
|
+
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({
|
|
2053
2091
|
disabled: disabled,
|
|
2054
2092
|
onChange: function onChange(e) {
|
|
2055
2093
|
var v = e.target.value;
|
|
@@ -2059,7 +2097,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2059
2097
|
width: 170
|
|
2060
2098
|
},
|
|
2061
2099
|
value: inputValue
|
|
2062
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2100
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2063
2101
|
disabled: disabled,
|
|
2064
2102
|
onBlur: function onBlur(e) {
|
|
2065
2103
|
var v = parseFloat(e.target.value);
|
|
@@ -2438,16 +2476,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2438
2476
|
var handleExportBarCode = handleExport;
|
|
2439
2477
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2440
2478
|
var routerMap = {};
|
|
2441
|
-
var
|
|
2479
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2442
2480
|
data.forEach(function (menuItem) {
|
|
2443
2481
|
if (menuItem.children) {
|
|
2444
|
-
|
|
2482
|
+
flattenMenuData(menuItem.children);
|
|
2445
2483
|
}
|
|
2446
2484
|
// Reduce memory usage
|
|
2447
2485
|
routerMap[menuItem.path] = menuItem;
|
|
2448
2486
|
});
|
|
2449
2487
|
};
|
|
2450
|
-
|
|
2488
|
+
flattenMenuData(menuData);
|
|
2451
2489
|
return routerMap;
|
|
2452
2490
|
};
|
|
2453
2491
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2590,7 +2628,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2590
2628
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2591
2629
|
};
|
|
2592
2630
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2593
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2631
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2594
2632
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2595
2633
|
while (1) switch (_context.prev = _context.next) {
|
|
2596
2634
|
case 0:
|
|
@@ -3268,7 +3306,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3268
3306
|
style: {
|
|
3269
3307
|
color: 'red'
|
|
3270
3308
|
}
|
|
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, {
|
|
3309
|
+
}, "\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, {
|
|
3272
3310
|
trigger: ['click'],
|
|
3273
3311
|
overlay: this.menuList,
|
|
3274
3312
|
placement: "bottomRight"
|
|
@@ -3943,7 +3981,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3943
3981
|
placement: "bottomLeft"
|
|
3944
3982
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3945
3983
|
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"))
|
|
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, {
|
|
3984
|
+
}, /*#__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, {
|
|
3947
3985
|
trigger: ['click'],
|
|
3948
3986
|
overlay: this.menuList,
|
|
3949
3987
|
placement: "bottomRight"
|
|
@@ -4464,7 +4502,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4464
4502
|
destroyTooltipOnHide: true,
|
|
4465
4503
|
placement: "topRight",
|
|
4466
4504
|
autoAdjustOverflow: false,
|
|
4467
|
-
title: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4505
|
+
title: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4468
4506
|
style: {
|
|
4469
4507
|
margin: '6px 8px 0px'
|
|
4470
4508
|
},
|
|
@@ -4766,10 +4804,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4766
4804
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4767
4805
|
});
|
|
4768
4806
|
},
|
|
4769
|
-
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
4807
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
4770
4808
|
size: "small",
|
|
4771
4809
|
className: 'searchSelectSpin'
|
|
4772
|
-
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4810
|
+
})) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4773
4811
|
style: {
|
|
4774
4812
|
textAlign: 'center'
|
|
4775
4813
|
}
|
|
@@ -5001,7 +5039,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
5001
5039
|
title: item.name,
|
|
5002
5040
|
className: "propertyGroup_checkbox_container"
|
|
5003
5041
|
}, item.name));
|
|
5004
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5042
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5005
5043
|
style: {
|
|
5006
5044
|
width: '50px',
|
|
5007
5045
|
cursor: 'pointer',
|
|
@@ -5014,7 +5052,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
5014
5052
|
setShowNotCommon(!showNotCommon);
|
|
5015
5053
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
5016
5054
|
}
|
|
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"))))));
|
|
5055
|
+
}, 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"))))));
|
|
5018
5056
|
};
|
|
5019
5057
|
var PropertyGroup$1 = /*#__PURE__*/React__default['default'].memo(PropertyGroup, function (props, nextProps) {
|
|
5020
5058
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5244,7 +5282,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5244
5282
|
propertyData: item,
|
|
5245
5283
|
handleProperyItemChange: handleProperyItemChange
|
|
5246
5284
|
});
|
|
5247
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5285
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5248
5286
|
style: {
|
|
5249
5287
|
width: '50px',
|
|
5250
5288
|
cursor: 'pointer',
|
|
@@ -5254,7 +5292,54 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5254
5292
|
onClick: function onClick() {
|
|
5255
5293
|
return setShowNotCommon(!showNotCommon);
|
|
5256
5294
|
}
|
|
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"))))))));
|
|
5295
|
+
}, 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"))))))));
|
|
5296
|
+
};
|
|
5297
|
+
|
|
5298
|
+
var _excluded$4 = ["onChange", "value", "propertyCode", "name"];
|
|
5299
|
+
var ItemPropertySelector = function ItemPropertySelector(_ref) {
|
|
5300
|
+
var _onChange = _ref.onChange,
|
|
5301
|
+
value = _ref.value,
|
|
5302
|
+
propertyCode = _ref.propertyCode,
|
|
5303
|
+
name = _ref.name,
|
|
5304
|
+
restProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
5305
|
+
var _useState = React$1.useState([]),
|
|
5306
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
5307
|
+
source = _useState2[0],
|
|
5308
|
+
setSource = _useState2[1];
|
|
5309
|
+
React$1.useEffect(function () {
|
|
5310
|
+
// FIXME: 目前只能通过固定属性编码先获取属性id,再通过属性id去查属性值 @林军
|
|
5311
|
+
if (propertyCode) {
|
|
5312
|
+
bssula.request({
|
|
5313
|
+
url: "/items/item/propertyValue/getPropertyValueNoPagerByCode?qp-propertyCode-eq=".concat(propertyCode, "&pageSize=5000"),
|
|
5314
|
+
method: 'GET',
|
|
5315
|
+
converter: function converter(_ref2) {
|
|
5316
|
+
var data = _ref2.data;
|
|
5317
|
+
var source = ((data === null || data === void 0 ? void 0 : data.items) || []).map(function (item) {
|
|
5318
|
+
return {
|
|
5319
|
+
text: item.value,
|
|
5320
|
+
value: item.value
|
|
5321
|
+
};
|
|
5322
|
+
});
|
|
5323
|
+
setSource(source);
|
|
5324
|
+
}
|
|
5325
|
+
});
|
|
5326
|
+
return;
|
|
5327
|
+
}
|
|
5328
|
+
}, [propertyCode]);
|
|
5329
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
5330
|
+
value: value,
|
|
5331
|
+
allowClear: true,
|
|
5332
|
+
style: {
|
|
5333
|
+
width: '100%'
|
|
5334
|
+
},
|
|
5335
|
+
onChange: function onChange(v) {
|
|
5336
|
+
_onChange(v);
|
|
5337
|
+
}
|
|
5338
|
+
}), source.map(function (res) {
|
|
5339
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
5340
|
+
value: res.value
|
|
5341
|
+
}, res.text);
|
|
5342
|
+
}));
|
|
5258
5343
|
};
|
|
5259
5344
|
|
|
5260
5345
|
var Option$1 = antd.Select.Option;
|
|
@@ -5960,7 +6045,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5960
6045
|
};
|
|
5961
6046
|
})) || [];
|
|
5962
6047
|
return list === null || list === void 0 ? void 0 : (_list$concat = list.concat(addKong)) === null || _list$concat === void 0 ? void 0 : _list$concat.map(function (i, index) {
|
|
5963
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$
|
|
6048
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
|
|
5964
6049
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5965
6050
|
span: ColSpan,
|
|
5966
6051
|
key: i
|
|
@@ -6082,7 +6167,23 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6082
6167
|
key: i.name
|
|
6083
6168
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6084
6169
|
}
|
|
6085
|
-
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === '
|
|
6170
|
+
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') {
|
|
6171
|
+
var _i$field13;
|
|
6172
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6173
|
+
span: ColSpan,
|
|
6174
|
+
key: i.name
|
|
6175
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
6176
|
+
name: i.name,
|
|
6177
|
+
label: i.label,
|
|
6178
|
+
key: i.name
|
|
6179
|
+
}, /*#__PURE__*/React__default['default'].createElement(ItemPropertySelector, _objectSpread2({
|
|
6180
|
+
style: {
|
|
6181
|
+
width: '100%'
|
|
6182
|
+
},
|
|
6183
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6184
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
|
|
6185
|
+
}
|
|
6186
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
|
|
6086
6187
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6087
6188
|
span: ColSpan,
|
|
6088
6189
|
key: i.name
|
|
@@ -6111,7 +6212,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6111
6212
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6112
6213
|
allowClear: true,
|
|
6113
6214
|
maxLength: 100
|
|
6114
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6215
|
+
}, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
|
|
6115
6216
|
disabled: setDisabled(i.name)
|
|
6116
6217
|
}))));
|
|
6117
6218
|
});
|
|
@@ -6307,13 +6408,13 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6307
6408
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6308
6409
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6309
6410
|
className: 'search_select'
|
|
6310
|
-
}, fieldComponent ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6411
|
+
}, fieldComponent ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6311
6412
|
onClick: function onClick() {
|
|
6312
6413
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6313
6414
|
(_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);
|
|
6314
6415
|
showModal();
|
|
6315
6416
|
}
|
|
6316
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6417
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6317
6418
|
title: getShowStr({
|
|
6318
6419
|
viewShowValueStr: viewShowValueStr,
|
|
6319
6420
|
labelInValue: labelInValue,
|
|
@@ -6352,10 +6453,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6352
6453
|
dropdownRender: function dropdownRender(menu) {
|
|
6353
6454
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6354
6455
|
},
|
|
6355
|
-
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
6456
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
6356
6457
|
size: "small",
|
|
6357
6458
|
className: 'searchSelectSpin'
|
|
6358
|
-
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6459
|
+
})) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6359
6460
|
style: {
|
|
6360
6461
|
textAlign: 'center'
|
|
6361
6462
|
}
|
|
@@ -6395,7 +6496,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6395
6496
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6396
6497
|
filterTxt: searchValue
|
|
6397
6498
|
}));
|
|
6398
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6499
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6399
6500
|
maskClosable: false,
|
|
6400
6501
|
destroyOnClose: true,
|
|
6401
6502
|
width: "calc(100% - 320px)",
|
|
@@ -6441,7 +6542,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6441
6542
|
top: 0,
|
|
6442
6543
|
right: 0
|
|
6443
6544
|
}
|
|
6444
|
-
}, hasMoreQueryFields(modalTableProps)
|
|
6545
|
+
}, hasMoreQueryFields(modalTableProps) ? /*#__PURE__*/React__default['default'].createElement("img", {
|
|
6445
6546
|
onClick: function onClick() {
|
|
6446
6547
|
toggleCollapsed();
|
|
6447
6548
|
},
|
|
@@ -6490,7 +6591,7 @@ var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20enc
|
|
|
6490
6591
|
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";
|
|
6491
6592
|
styleInject(css_248z$9);
|
|
6492
6593
|
|
|
6493
|
-
var _excluded$
|
|
6594
|
+
var _excluded$5 = ["className", "style"];
|
|
6494
6595
|
var Search = antd.Input.Search;
|
|
6495
6596
|
var DragHandle = reactSortableHoc.SortableHandle(function () {
|
|
6496
6597
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
@@ -6842,7 +6943,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6842
6943
|
_this.DraggableBodyRow = function (_ref2) {
|
|
6843
6944
|
var className = _ref2.className,
|
|
6844
6945
|
style = _ref2.style,
|
|
6845
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
6946
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$5);
|
|
6846
6947
|
var sortDataSource = _this.state.sortDataSource;
|
|
6847
6948
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
6848
6949
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -6992,7 +7093,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6992
7093
|
style: {
|
|
6993
7094
|
width: 525
|
|
6994
7095
|
}
|
|
6995
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
7096
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6996
7097
|
checked: !dataSource.some(function (item) {
|
|
6997
7098
|
if (item.hidden) return true;
|
|
6998
7099
|
return false;
|
|
@@ -7030,13 +7131,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7030
7131
|
_this2.onChange(e, item.title);
|
|
7031
7132
|
}
|
|
7032
7133
|
}, item.title);
|
|
7033
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
7134
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7034
7135
|
style: {
|
|
7035
7136
|
width: '144px'
|
|
7036
7137
|
}
|
|
7037
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
7138
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7038
7139
|
className: 'sort_table_column_all_empty'
|
|
7039
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7140
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7040
7141
|
className: 'sort_table_column_special'
|
|
7041
7142
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7042
7143
|
className: 'sort_table_column_all'
|
|
@@ -7225,7 +7326,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7225
7326
|
});
|
|
7226
7327
|
};
|
|
7227
7328
|
// 格式化树选择器数据源
|
|
7228
|
-
var
|
|
7329
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7229
7330
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7230
7331
|
return {
|
|
7231
7332
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7235,7 +7336,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7235
7336
|
isLeaf: !haveChildren,
|
|
7236
7337
|
disabled: haveChildren,
|
|
7237
7338
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7238
|
-
return
|
|
7339
|
+
return mapSearchTree(i, resKeyValue);
|
|
7239
7340
|
}) : []
|
|
7240
7341
|
};
|
|
7241
7342
|
};
|
|
@@ -7244,7 +7345,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7244
7345
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7245
7346
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7246
7347
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7247
|
-
return
|
|
7348
|
+
return mapSearchTree(ites, resKeyValue);
|
|
7248
7349
|
}) || [];
|
|
7249
7350
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7250
7351
|
};
|
|
@@ -7261,7 +7362,7 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
|
|
|
7261
7362
|
});
|
|
7262
7363
|
};
|
|
7263
7364
|
|
|
7264
|
-
var _excluded$
|
|
7365
|
+
var _excluded$6 = ["onResize", "width"],
|
|
7265
7366
|
_excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
|
|
7266
7367
|
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
7267
7368
|
return new Promise(function (resolve, reject) {
|
|
@@ -7281,7 +7382,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
|
7281
7382
|
var ResizeableTitle = function ResizeableTitle(props) {
|
|
7282
7383
|
var onResize = props.onResize,
|
|
7283
7384
|
width = props.width,
|
|
7284
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
7385
|
+
restProps = _objectWithoutProperties(props, _excluded$6);
|
|
7285
7386
|
if (!width) {
|
|
7286
7387
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
7287
7388
|
}
|
|
@@ -7415,7 +7516,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7415
7516
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7416
7517
|
// FIXME: 特殊业务逻辑
|
|
7417
7518
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7418
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7519
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7419
7520
|
var result;
|
|
7420
7521
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7421
7522
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7668,7 +7769,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7668
7769
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7669
7770
|
value: text || null,
|
|
7670
7771
|
onChange: function () {
|
|
7671
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7772
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7672
7773
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7673
7774
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7674
7775
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8276,10 +8377,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8276
8377
|
var newColumns = arr.map(function (col) {
|
|
8277
8378
|
return _objectSpread2({}, col);
|
|
8278
8379
|
});
|
|
8279
|
-
var
|
|
8380
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8280
8381
|
var i = indexArr.shift();
|
|
8281
8382
|
if (indexArr.length > 0) {
|
|
8282
|
-
|
|
8383
|
+
handleIndex(arr[i].children, indexArr);
|
|
8283
8384
|
} else {
|
|
8284
8385
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8285
8386
|
width: size.width
|
|
@@ -8287,7 +8388,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8287
8388
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8288
8389
|
}
|
|
8289
8390
|
};
|
|
8290
|
-
|
|
8391
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8291
8392
|
callback(newColumns);
|
|
8292
8393
|
};
|
|
8293
8394
|
};
|
|
@@ -8297,13 +8398,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8297
8398
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8298
8399
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8299
8400
|
};
|
|
8300
|
-
var
|
|
8401
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8301
8402
|
arr.forEach(function (item, index) {
|
|
8302
8403
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8303
8404
|
return i || i === 0;
|
|
8304
8405
|
});
|
|
8305
8406
|
if (noEmptyArray$1(item.children)) {
|
|
8306
|
-
|
|
8407
|
+
handleColumns(item.children, indexArrInside);
|
|
8307
8408
|
} else {
|
|
8308
8409
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8309
8410
|
item.onHeaderCell = function (column) {
|
|
@@ -8319,14 +8420,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8319
8420
|
handleAntdColumnsSpecialParams(item);
|
|
8320
8421
|
return _objectSpread2({}, item);
|
|
8321
8422
|
});
|
|
8322
|
-
|
|
8423
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
8323
8424
|
return setShowToChooseColumnsCallback(res);
|
|
8324
8425
|
});
|
|
8325
8426
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8326
8427
|
handleAntdColumnsSpecialParams(item);
|
|
8327
8428
|
return _objectSpread2({}, item);
|
|
8328
8429
|
});
|
|
8329
|
-
|
|
8430
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8330
8431
|
return setShowColumnsCallback(res);
|
|
8331
8432
|
});
|
|
8332
8433
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8337,7 +8438,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8337
8438
|
id: "add_select_div_".concat(uniqueValue)
|
|
8338
8439
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
8339
8440
|
onClick: handleShowModal
|
|
8340
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
8441
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
8341
8442
|
width: '1200px',
|
|
8342
8443
|
style: {
|
|
8343
8444
|
top: 20
|
|
@@ -8513,7 +8614,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8513
8614
|
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";
|
|
8514
8615
|
styleInject(css_248z$a);
|
|
8515
8616
|
|
|
8516
|
-
var _excluded$
|
|
8617
|
+
var _excluded$7 = ["onResize", "width"];
|
|
8517
8618
|
var _this = undefined;
|
|
8518
8619
|
var InputElement = function InputElement(_ref) {
|
|
8519
8620
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
@@ -9011,7 +9112,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
9011
9112
|
var ResizeableTitle$1 = function ResizeableTitle(props) {
|
|
9012
9113
|
var onResize = props.onResize,
|
|
9013
9114
|
width = props.width,
|
|
9014
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
9115
|
+
restProps = _objectWithoutProperties(props, _excluded$7);
|
|
9015
9116
|
if (!width) {
|
|
9016
9117
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
9017
9118
|
}
|
|
@@ -9251,7 +9352,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9251
9352
|
});
|
|
9252
9353
|
};
|
|
9253
9354
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9254
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9355
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9255
9356
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9256
9357
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9257
9358
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9334,10 +9435,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9334
9435
|
var newColumns = arr.map(function (col) {
|
|
9335
9436
|
return _objectSpread2({}, col);
|
|
9336
9437
|
});
|
|
9337
|
-
var
|
|
9438
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
9338
9439
|
var i = indexArr.shift();
|
|
9339
9440
|
if (indexArr.length > 0) {
|
|
9340
|
-
|
|
9441
|
+
handleIndex(arr[i].children, indexArr);
|
|
9341
9442
|
} else {
|
|
9342
9443
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9343
9444
|
width: size.width
|
|
@@ -9345,17 +9446,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9345
9446
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9346
9447
|
}
|
|
9347
9448
|
};
|
|
9348
|
-
|
|
9449
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
9349
9450
|
callback(newColumns);
|
|
9350
9451
|
};
|
|
9351
9452
|
};
|
|
9352
|
-
var
|
|
9453
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9353
9454
|
arr.forEach(function (item, index) {
|
|
9354
9455
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9355
9456
|
return i || i === 0;
|
|
9356
9457
|
});
|
|
9357
9458
|
if (noEmptyArray$1(item.children)) {
|
|
9358
|
-
|
|
9459
|
+
handleColumns(item.children, indexArrInside);
|
|
9359
9460
|
} else {
|
|
9360
9461
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9361
9462
|
item.onHeaderCell = function (column) {
|
|
@@ -9371,7 +9472,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9371
9472
|
handleAntdColumnsSpecialParams(item);
|
|
9372
9473
|
return _objectSpread2({}, item);
|
|
9373
9474
|
});
|
|
9374
|
-
|
|
9475
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
9375
9476
|
return setShowColumnsCallback(res);
|
|
9376
9477
|
});
|
|
9377
9478
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -9581,6 +9682,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
|
|
|
9581
9682
|
case 'spuCommodity':
|
|
9582
9683
|
case 'skcCommodity':
|
|
9583
9684
|
case 'brand':
|
|
9685
|
+
case 'spuCommodityWithProperty':
|
|
9584
9686
|
result = '/items';
|
|
9585
9687
|
break;
|
|
9586
9688
|
case 'physicalWarehouse':
|
|
@@ -9686,7 +9788,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9686
9788
|
});
|
|
9687
9789
|
};
|
|
9688
9790
|
// 格式化树选择器数据源
|
|
9689
|
-
var
|
|
9791
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9690
9792
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9691
9793
|
return {
|
|
9692
9794
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9696,7 +9798,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9696
9798
|
isLeaf: !haveChildren,
|
|
9697
9799
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9698
9800
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9699
|
-
return
|
|
9801
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9700
9802
|
}) : []
|
|
9701
9803
|
};
|
|
9702
9804
|
};
|
|
@@ -9710,7 +9812,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9710
9812
|
disabledJudge = false;
|
|
9711
9813
|
}
|
|
9712
9814
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9713
|
-
return
|
|
9815
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9714
9816
|
}) || [];
|
|
9715
9817
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9716
9818
|
};
|
|
@@ -10285,6 +10387,195 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10285
10387
|
}]
|
|
10286
10388
|
}, modalTableBusProps);
|
|
10287
10389
|
}
|
|
10390
|
+
// 新库存商品选择器spu
|
|
10391
|
+
if (type === 'spuCommodityWithProperty') {
|
|
10392
|
+
selectProps = _objectSpread2({
|
|
10393
|
+
placeholder: '输入spu编码或名称',
|
|
10394
|
+
renderTableColumns: [{
|
|
10395
|
+
title: 'spu编码',
|
|
10396
|
+
dataIndex: 'itemCode'
|
|
10397
|
+
}, {
|
|
10398
|
+
title: 'spu名称',
|
|
10399
|
+
dataIndex: 'name'
|
|
10400
|
+
}]
|
|
10401
|
+
}, selectConfigProps);
|
|
10402
|
+
requestConfig = _objectSpread2({
|
|
10403
|
+
url: "/stock/item/doItemPageAll",
|
|
10404
|
+
method: 'POST',
|
|
10405
|
+
filter: 'qp-itemCode,name-orGroup,like',
|
|
10406
|
+
mappingTextField: 'name',
|
|
10407
|
+
mappingValueField: 'itemCode',
|
|
10408
|
+
otherParams: _objectSpread2({
|
|
10409
|
+
// 'qp-approveStatus-eq': 1, // 审核状态(0.待审批;1.审批通过;2.驳回;3.审批未通过)
|
|
10410
|
+
sorter: 'desc-id'
|
|
10411
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10412
|
+
sourceName: 'itemCode'
|
|
10413
|
+
}, requestConfigProp);
|
|
10414
|
+
tableSearchForm = [{
|
|
10415
|
+
name: 'qp-name-like',
|
|
10416
|
+
label: 'SPU名称'
|
|
10417
|
+
}, {
|
|
10418
|
+
name: 'qp-itemCode-like',
|
|
10419
|
+
label: 'SPU编码'
|
|
10420
|
+
}, {
|
|
10421
|
+
name: 'qp-brandId-in',
|
|
10422
|
+
type: 'select',
|
|
10423
|
+
label: '品牌',
|
|
10424
|
+
field: {
|
|
10425
|
+
type: 'select',
|
|
10426
|
+
props: {
|
|
10427
|
+
mode: 'multiple',
|
|
10428
|
+
notFoundContent: '暂无数据',
|
|
10429
|
+
allowClear: true,
|
|
10430
|
+
showSearch: true,
|
|
10431
|
+
showArrow: true,
|
|
10432
|
+
maxTagCount: 1,
|
|
10433
|
+
optionFilterProp: 'children',
|
|
10434
|
+
filterOption: function filterOption(input, option) {
|
|
10435
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10436
|
+
}
|
|
10437
|
+
}
|
|
10438
|
+
}
|
|
10439
|
+
}, {
|
|
10440
|
+
name: 'qp-categoryId-in',
|
|
10441
|
+
type: 'treeSelect',
|
|
10442
|
+
label: '类目',
|
|
10443
|
+
field: {
|
|
10444
|
+
type: 'treeSelect',
|
|
10445
|
+
props: {
|
|
10446
|
+
treeData: [],
|
|
10447
|
+
treeCheckable: true,
|
|
10448
|
+
showSearch: true,
|
|
10449
|
+
allowClear: true,
|
|
10450
|
+
showArrow: true,
|
|
10451
|
+
treeNodeFilterProp: 'title',
|
|
10452
|
+
treeDefaultExpandAll: true,
|
|
10453
|
+
maxTagCount: 1,
|
|
10454
|
+
placeholder: '请选择',
|
|
10455
|
+
style: {
|
|
10456
|
+
width: '100%'
|
|
10457
|
+
},
|
|
10458
|
+
dropdownStyle: {
|
|
10459
|
+
maxHeight: 400,
|
|
10460
|
+
maxWidth: 100,
|
|
10461
|
+
overflow: 'auto'
|
|
10462
|
+
}
|
|
10463
|
+
}
|
|
10464
|
+
}
|
|
10465
|
+
}, {
|
|
10466
|
+
name: 'qp-classId-in',
|
|
10467
|
+
type: 'select',
|
|
10468
|
+
label: '品类',
|
|
10469
|
+
field: {
|
|
10470
|
+
type: 'select',
|
|
10471
|
+
props: {
|
|
10472
|
+
mode: 'multiple',
|
|
10473
|
+
notFoundContent: '暂无数据',
|
|
10474
|
+
allowClear: true,
|
|
10475
|
+
showSearch: true,
|
|
10476
|
+
showArrow: true,
|
|
10477
|
+
maxTagCount: 1,
|
|
10478
|
+
optionFilterProp: 'children',
|
|
10479
|
+
filterOption: function filterOption(input, option) {
|
|
10480
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10481
|
+
}
|
|
10482
|
+
}
|
|
10483
|
+
}
|
|
10484
|
+
}, {
|
|
10485
|
+
name: 'qp-year-in',
|
|
10486
|
+
label: '年份',
|
|
10487
|
+
field: {
|
|
10488
|
+
type: 'itemPropertySelector',
|
|
10489
|
+
props: {
|
|
10490
|
+
propertyCode: 'SX0000114',
|
|
10491
|
+
mode: 'multiple'
|
|
10492
|
+
}
|
|
10493
|
+
}
|
|
10494
|
+
}, {
|
|
10495
|
+
name: 'qp-season-in',
|
|
10496
|
+
label: '季节',
|
|
10497
|
+
field: {
|
|
10498
|
+
type: 'itemPropertySelector',
|
|
10499
|
+
props: {
|
|
10500
|
+
propertyCode: 'SX0000070',
|
|
10501
|
+
mode: 'multiple'
|
|
10502
|
+
}
|
|
10503
|
+
}
|
|
10504
|
+
}, {
|
|
10505
|
+
name: 'qp-zzdlbm-in',
|
|
10506
|
+
label: '大类',
|
|
10507
|
+
field: {
|
|
10508
|
+
type: 'itemPropertySelector',
|
|
10509
|
+
props: {
|
|
10510
|
+
propertyCode: 'SX0000071',
|
|
10511
|
+
mode: 'multiple'
|
|
10512
|
+
}
|
|
10513
|
+
}
|
|
10514
|
+
}, {
|
|
10515
|
+
name: 'qp-zzzlbm-in',
|
|
10516
|
+
label: '中类',
|
|
10517
|
+
field: {
|
|
10518
|
+
type: 'itemPropertySelector',
|
|
10519
|
+
props: {
|
|
10520
|
+
propertyCode: 'SX0000072',
|
|
10521
|
+
mode: 'multiple'
|
|
10522
|
+
}
|
|
10523
|
+
}
|
|
10524
|
+
}, {
|
|
10525
|
+
name: 'qp-zzxlbm-in',
|
|
10526
|
+
label: '小类',
|
|
10527
|
+
field: {
|
|
10528
|
+
type: 'itemPropertySelector',
|
|
10529
|
+
props: {
|
|
10530
|
+
propertyCode: 'SX0000110',
|
|
10531
|
+
mode: 'multiple'
|
|
10532
|
+
}
|
|
10533
|
+
}
|
|
10534
|
+
}];
|
|
10535
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
10536
|
+
pageSize: 5000,
|
|
10537
|
+
currentPage: 1,
|
|
10538
|
+
'ctl-withAuth': true
|
|
10539
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
10540
|
+
pageSize: 5000,
|
|
10541
|
+
currentPage: 1
|
|
10542
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
10543
|
+
pageSize: 5000,
|
|
10544
|
+
currentPage: 1
|
|
10545
|
+
})]).then(function (x) {
|
|
10546
|
+
formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
|
|
10547
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm);
|
|
10548
|
+
formatSource(x, 2, 4, tableSearchForm, ['id', 'name']);
|
|
10549
|
+
});
|
|
10550
|
+
modalTableProps = _objectSpread2({
|
|
10551
|
+
modalTableTitle: '选择SPU',
|
|
10552
|
+
tableSearchForm: tableSearchForm,
|
|
10553
|
+
tableColumns: [{
|
|
10554
|
+
title: '序号',
|
|
10555
|
+
dataIndex: 'keyIndex',
|
|
10556
|
+
defaultSort: 0
|
|
10557
|
+
}, {
|
|
10558
|
+
title: 'SPU编码',
|
|
10559
|
+
dataIndex: 'itemCode',
|
|
10560
|
+
defaultSort: 1
|
|
10561
|
+
}, {
|
|
10562
|
+
title: 'SPU名称',
|
|
10563
|
+
dataIndex: 'name',
|
|
10564
|
+
defaultSort: 2
|
|
10565
|
+
}, {
|
|
10566
|
+
title: '品牌',
|
|
10567
|
+
dataIndex: 'brandName',
|
|
10568
|
+
defaultSort: 3
|
|
10569
|
+
}, {
|
|
10570
|
+
title: '类目',
|
|
10571
|
+
dataIndex: 'categoryText',
|
|
10572
|
+
defaultSort: 4
|
|
10573
|
+
}, {
|
|
10574
|
+
title: '品类',
|
|
10575
|
+
dataIndex: 'className'
|
|
10576
|
+
}]
|
|
10577
|
+
}, modalTableBusProps);
|
|
10578
|
+
}
|
|
10288
10579
|
// 商品选择器skc
|
|
10289
10580
|
if (type === 'skcCommodity') {
|
|
10290
10581
|
selectProps = _objectSpread2({
|
|
@@ -13822,7 +14113,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13822
14113
|
};
|
|
13823
14114
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
13824
14115
|
onClick: handleShowModal
|
|
13825
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
14116
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13826
14117
|
onOk: handleOk,
|
|
13827
14118
|
onCancel: handleCancel,
|
|
13828
14119
|
destroyOnClose: true,
|
|
@@ -13886,7 +14177,7 @@ function getStorageVale(storageKeyString) {
|
|
|
13886
14177
|
return "";
|
|
13887
14178
|
}
|
|
13888
14179
|
|
|
13889
|
-
var _excluded$
|
|
14180
|
+
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"];
|
|
13890
14181
|
var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
13891
14182
|
var _useState = React$1.useState([]),
|
|
13892
14183
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -13928,7 +14219,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13928
14219
|
} : _props$style,
|
|
13929
14220
|
getTreeData = props.getTreeData,
|
|
13930
14221
|
disabled = props.disabled,
|
|
13931
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
14222
|
+
restProps = _objectWithoutProperties(props, _excluded$8);
|
|
13932
14223
|
var url = remoteSource.url,
|
|
13933
14224
|
headers = remoteSource.headers,
|
|
13934
14225
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
@@ -13941,7 +14232,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13941
14232
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13942
14233
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13943
14234
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13944
|
-
var
|
|
14235
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13945
14236
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13946
14237
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13947
14238
|
return {
|
|
@@ -13953,7 +14244,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13953
14244
|
isLeaf: !haveChildren,
|
|
13954
14245
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13955
14246
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13956
|
-
return
|
|
14247
|
+
return mapSearchTree(i);
|
|
13957
14248
|
}) : []
|
|
13958
14249
|
};
|
|
13959
14250
|
};
|
|
@@ -13971,8 +14262,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13971
14262
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13972
14263
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
13973
14264
|
headers: headers
|
|
13974
|
-
}).then(/*#__PURE__*/function () {
|
|
13975
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14265
|
+
}).then( /*#__PURE__*/function () {
|
|
14266
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13976
14267
|
var _ctx$form;
|
|
13977
14268
|
var resData, coverData, data, dataList;
|
|
13978
14269
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13999,7 +14290,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13999
14290
|
case 9:
|
|
14000
14291
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14001
14292
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14002
|
-
return
|
|
14293
|
+
return mapSearchTree(ites);
|
|
14003
14294
|
}) || [];
|
|
14004
14295
|
case 11:
|
|
14005
14296
|
_context.next = 14;
|
|
@@ -14037,11 +14328,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14037
14328
|
return _formatResult;
|
|
14038
14329
|
}
|
|
14039
14330
|
};
|
|
14040
|
-
var
|
|
14331
|
+
var parallelData = function parallelData(data, result) {
|
|
14041
14332
|
data.forEach(function (i) {
|
|
14042
14333
|
result.push(i);
|
|
14043
14334
|
if (i[treeChildrenRoom]) {
|
|
14044
|
-
|
|
14335
|
+
parallelData(i[treeChildrenRoom], result);
|
|
14045
14336
|
}
|
|
14046
14337
|
});
|
|
14047
14338
|
return result;
|
|
@@ -14081,7 +14372,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14081
14372
|
var _ctx$form2;
|
|
14082
14373
|
var handleData = formatData(data);
|
|
14083
14374
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
14084
|
-
var parallelTreeData =
|
|
14375
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
14085
14376
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
14086
14377
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
14087
14378
|
onChangeName && onChangeName(dataName);
|
|
@@ -14124,7 +14415,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14124
14415
|
var getShowStr = function getShowStr() {
|
|
14125
14416
|
var isMultiple = multiple || treeCheckable;
|
|
14126
14417
|
var kongValue = '无';
|
|
14127
|
-
var parallelTreeData =
|
|
14418
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
14128
14419
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14129
14420
|
if (isMultiple) {
|
|
14130
14421
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14136,7 +14427,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14136
14427
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14137
14428
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14138
14429
|
className: 'tree_search_select'
|
|
14139
|
-
}, isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14430
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14140
14431
|
title: getShowStr(),
|
|
14141
14432
|
style: {
|
|
14142
14433
|
overflow: 'hidden',
|
|
@@ -14144,7 +14435,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14144
14435
|
whiteSpace: 'nowrap'
|
|
14145
14436
|
},
|
|
14146
14437
|
className: 'search_select_show'
|
|
14147
|
-
}, getShowStr())) : (/*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14438
|
+
}, getShowStr())) : ( /*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14148
14439
|
treeCheckable: treeCheckable,
|
|
14149
14440
|
maxTagCount: maxTagCount,
|
|
14150
14441
|
showSearch: showSearch,
|
|
@@ -14341,7 +14632,7 @@ var index$2 = (function (props) {
|
|
|
14341
14632
|
} : {}
|
|
14342
14633
|
}, item.text)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14343
14634
|
className: 'status-label-operate'
|
|
14344
|
-
}, item.isDone ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14635
|
+
}, item.isDone ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14345
14636
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14346
14637
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14347
14638
|
style: {
|
|
@@ -14354,7 +14645,7 @@ var index$2 = (function (props) {
|
|
|
14354
14645
|
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";
|
|
14355
14646
|
styleInject(css_248z$c);
|
|
14356
14647
|
|
|
14357
|
-
var _excluded$
|
|
14648
|
+
var _excluded$9 = ["children", "titleExtra", "title", "extra", "bordered"],
|
|
14358
14649
|
_excluded2$3 = ["children"];
|
|
14359
14650
|
var Field = function Field(_ref) {
|
|
14360
14651
|
var children = _ref.children,
|
|
@@ -14362,7 +14653,7 @@ var Field = function Field(_ref) {
|
|
|
14362
14653
|
title = _ref.title,
|
|
14363
14654
|
extra = _ref.extra,
|
|
14364
14655
|
bordered = _ref.bordered,
|
|
14365
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14656
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
14366
14657
|
var _React$useState = React__default['default'].useState(true),
|
|
14367
14658
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
14368
14659
|
fieldGroupVisible = _React$useState2[0],
|
|
@@ -14489,7 +14780,7 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
14489
14780
|
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";
|
|
14490
14781
|
styleInject(css_248z$d);
|
|
14491
14782
|
|
|
14492
|
-
var _excluded$
|
|
14783
|
+
var _excluded$a = ["className", "style"];
|
|
14493
14784
|
var Search$1 = antd.Input.Search;
|
|
14494
14785
|
var DragHandle$1 = reactSortableHoc.SortableHandle(function () {
|
|
14495
14786
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
@@ -14907,7 +15198,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14907
15198
|
_this.DraggableBodyRow = function (_ref2) {
|
|
14908
15199
|
var className = _ref2.className,
|
|
14909
15200
|
style = _ref2.style,
|
|
14910
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
15201
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$a);
|
|
14911
15202
|
var sortDataSource = _this.state.sortDataSource;
|
|
14912
15203
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
14913
15204
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -15122,7 +15413,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15122
15413
|
style: {
|
|
15123
15414
|
width: 525
|
|
15124
15415
|
}
|
|
15125
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
15416
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
15126
15417
|
checked: !dataSource.some(function (item) {
|
|
15127
15418
|
if (item.hidden) return true;
|
|
15128
15419
|
return false;
|
|
@@ -15160,13 +15451,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15160
15451
|
_this2.onChange(e, item.title);
|
|
15161
15452
|
}
|
|
15162
15453
|
}, item.title);
|
|
15163
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
15454
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15164
15455
|
style: {
|
|
15165
15456
|
width: '144px'
|
|
15166
15457
|
}
|
|
15167
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
15458
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15168
15459
|
className: 'sort_table_column_all_empty'
|
|
15169
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15460
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15170
15461
|
className: 'sort_table_column_special'
|
|
15171
15462
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15172
15463
|
className: 'sort_table_column_all'
|
|
@@ -15261,7 +15552,7 @@ var TableSumComponent = (function (_ref) {
|
|
|
15261
15552
|
}));
|
|
15262
15553
|
});
|
|
15263
15554
|
|
|
15264
|
-
var _excluded$
|
|
15555
|
+
var _excluded$b = ["onResize", "width"],
|
|
15265
15556
|
_excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
15266
15557
|
var Text = antd.Typography.Text;
|
|
15267
15558
|
var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15345,10 +15636,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15345
15636
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15346
15637
|
return _objectSpread2({}, col);
|
|
15347
15638
|
});
|
|
15348
|
-
var
|
|
15639
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15349
15640
|
var i = indexArr.shift();
|
|
15350
15641
|
if (indexArr.length > 0) {
|
|
15351
|
-
|
|
15642
|
+
handleIndex(arr[i].children, indexArr);
|
|
15352
15643
|
} else {
|
|
15353
15644
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15354
15645
|
width: size.width
|
|
@@ -15356,7 +15647,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15356
15647
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15357
15648
|
}
|
|
15358
15649
|
};
|
|
15359
|
-
|
|
15650
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15360
15651
|
_this.setState({
|
|
15361
15652
|
showColumns: _toConsumableArray(newColumns)
|
|
15362
15653
|
});
|
|
@@ -15365,7 +15656,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15365
15656
|
_this.ResizeableTitle = function (props) {
|
|
15366
15657
|
var onResize = props.onResize,
|
|
15367
15658
|
width = props.width,
|
|
15368
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15659
|
+
restProps = _objectWithoutProperties(props, _excluded$b);
|
|
15369
15660
|
var _useState = React$1.useState(width),
|
|
15370
15661
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15371
15662
|
innerWidth = _useState2[0],
|
|
@@ -15397,7 +15688,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15397
15688
|
};
|
|
15398
15689
|
setIsResizing(true);
|
|
15399
15690
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15400
|
-
document.addEventListener('mouseup',
|
|
15691
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
15401
15692
|
};
|
|
15402
15693
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15403
15694
|
e.stopPropagation();
|
|
@@ -15413,9 +15704,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15413
15704
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15414
15705
|
}
|
|
15415
15706
|
};
|
|
15416
|
-
var
|
|
15707
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
15417
15708
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15418
|
-
document.removeEventListener('mouseup',
|
|
15709
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
15419
15710
|
setIsResizing(false);
|
|
15420
15711
|
};
|
|
15421
15712
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15536,13 +15827,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15536
15827
|
showSummary = summary;
|
|
15537
15828
|
}
|
|
15538
15829
|
}
|
|
15539
|
-
var
|
|
15830
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15540
15831
|
arr.forEach(function (item, index) {
|
|
15541
15832
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15542
15833
|
return i || i === 0;
|
|
15543
15834
|
});
|
|
15544
15835
|
if (noEmptyArray$1(item.children)) {
|
|
15545
|
-
|
|
15836
|
+
handleColumns(item.children, indexArrInside);
|
|
15546
15837
|
} else {
|
|
15547
15838
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15548
15839
|
item.onHeaderCell = function (column) {
|
|
@@ -15558,7 +15849,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15558
15849
|
handleBssulaColumnsSpecialParams(item);
|
|
15559
15850
|
return _objectSpread2({}, item);
|
|
15560
15851
|
});
|
|
15561
|
-
|
|
15852
|
+
handleColumns(showCol, []);
|
|
15562
15853
|
if (dynamicColumns.length) {
|
|
15563
15854
|
showCol = this.handledynamicColumns(showCol);
|
|
15564
15855
|
}
|
|
@@ -15599,14 +15890,14 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15599
15890
|
cell: this.ResizeableTitle
|
|
15600
15891
|
}
|
|
15601
15892
|
}
|
|
15602
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15893
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15603
15894
|
summary: summary
|
|
15604
15895
|
})));
|
|
15605
15896
|
}
|
|
15606
15897
|
}]);
|
|
15607
15898
|
}(React__default['default'].Component);
|
|
15608
15899
|
|
|
15609
|
-
var _excluded$
|
|
15900
|
+
var _excluded$c = ["onResize", "width"],
|
|
15610
15901
|
_excluded2$5 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
15611
15902
|
var Text$1 = antd.Typography.Text;
|
|
15612
15903
|
var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15696,10 +15987,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15696
15987
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15697
15988
|
return _objectSpread2({}, col);
|
|
15698
15989
|
});
|
|
15699
|
-
var
|
|
15990
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15700
15991
|
var i = indexArr.shift();
|
|
15701
15992
|
if (indexArr.length > 0) {
|
|
15702
|
-
|
|
15993
|
+
handleIndex(arr[i].children, indexArr);
|
|
15703
15994
|
} else {
|
|
15704
15995
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15705
15996
|
width: size.width
|
|
@@ -15707,7 +15998,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15707
15998
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15708
15999
|
}
|
|
15709
16000
|
};
|
|
15710
|
-
|
|
16001
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15711
16002
|
_this.setState({
|
|
15712
16003
|
showColumns: _toConsumableArray(newColumns)
|
|
15713
16004
|
});
|
|
@@ -15716,7 +16007,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15716
16007
|
_this.ResizeableTitle = function (props) {
|
|
15717
16008
|
var onResize = props.onResize,
|
|
15718
16009
|
width = props.width,
|
|
15719
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
16010
|
+
restProps = _objectWithoutProperties(props, _excluded$c);
|
|
15720
16011
|
if (!width) {
|
|
15721
16012
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
15722
16013
|
}
|
|
@@ -15783,13 +16074,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15783
16074
|
showSummary = summary;
|
|
15784
16075
|
}
|
|
15785
16076
|
}
|
|
15786
|
-
var
|
|
16077
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15787
16078
|
arr.forEach(function (item, index) {
|
|
15788
16079
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15789
16080
|
return i || i === 0;
|
|
15790
16081
|
});
|
|
15791
16082
|
if (noEmptyArray$1(item.children)) {
|
|
15792
|
-
|
|
16083
|
+
handleColumns(item.children, indexArrInside);
|
|
15793
16084
|
} else {
|
|
15794
16085
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15795
16086
|
item.onHeaderCell = function (column) {
|
|
@@ -15805,7 +16096,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15805
16096
|
handleAntdColumnsSpecialParams(item);
|
|
15806
16097
|
return _objectSpread2({}, item);
|
|
15807
16098
|
});
|
|
15808
|
-
|
|
16099
|
+
handleColumns(showCol, []);
|
|
15809
16100
|
if (dynamicColumns.length) {
|
|
15810
16101
|
showCol = this.handledynamicColumns(showCol);
|
|
15811
16102
|
}
|
|
@@ -15845,7 +16136,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15845
16136
|
cell: this.ResizeableTitle
|
|
15846
16137
|
}
|
|
15847
16138
|
}
|
|
15848
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
16139
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15849
16140
|
summary: summary
|
|
15850
16141
|
})));
|
|
15851
16142
|
}
|
|
@@ -15905,20 +16196,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15905
16196
|
};
|
|
15906
16197
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15907
16198
|
var routerMap = {};
|
|
15908
|
-
var
|
|
16199
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
15909
16200
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15910
16201
|
data.forEach(function (menuItem) {
|
|
15911
16202
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15912
16203
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15913
16204
|
});
|
|
15914
16205
|
if (newMenuItem.children) {
|
|
15915
|
-
|
|
16206
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
15916
16207
|
}
|
|
15917
16208
|
// Reduce memory usage
|
|
15918
16209
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15919
16210
|
});
|
|
15920
16211
|
};
|
|
15921
|
-
|
|
16212
|
+
flattenMenuData(menuData, {});
|
|
15922
16213
|
return routerMap;
|
|
15923
16214
|
};
|
|
15924
16215
|
// mode类型判断
|
|
@@ -15997,12 +16288,12 @@ var moreIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D
|
|
|
15997
16288
|
var css_248z$g = "";
|
|
15998
16289
|
styleInject(css_248z$g);
|
|
15999
16290
|
|
|
16000
|
-
var _excluded$
|
|
16291
|
+
var _excluded$d = ["message", "type"];
|
|
16001
16292
|
var CommonAlert = (function (props) {
|
|
16002
16293
|
var message = props.message,
|
|
16003
16294
|
_props$type = props.type,
|
|
16004
16295
|
type = _props$type === void 0 ? 'info' : _props$type,
|
|
16005
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
16296
|
+
reset = _objectWithoutProperties(props, _excluded$d);
|
|
16006
16297
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16007
16298
|
style: {
|
|
16008
16299
|
width: '100%',
|
|
@@ -16023,7 +16314,7 @@ var CommonAlert = (function (props) {
|
|
|
16023
16314
|
}, reset)));
|
|
16024
16315
|
});
|
|
16025
16316
|
|
|
16026
|
-
var _excluded$
|
|
16317
|
+
var _excluded$e = ["children"];
|
|
16027
16318
|
var iconMap = {
|
|
16028
16319
|
edit: /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16029
16320
|
src: editIcon
|
|
@@ -16045,7 +16336,7 @@ var index$3 = (function (props) {
|
|
|
16045
16336
|
_useState2 = _slicedToArray(_useState, 1),
|
|
16046
16337
|
id = _useState2[0];
|
|
16047
16338
|
var children = props.children,
|
|
16048
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
16339
|
+
restProps = _objectWithoutProperties(props, _excluded$e);
|
|
16049
16340
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16050
16341
|
id: id,
|
|
16051
16342
|
className: 'detail_page_wrapper'
|
|
@@ -16244,7 +16535,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16244
16535
|
display: 'flex',
|
|
16245
16536
|
gap: '8px'
|
|
16246
16537
|
}
|
|
16247
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16538
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16248
16539
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16249
16540
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16250
16541
|
onClick: function onClick() {
|
|
@@ -16252,7 +16543,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16252
16543
|
},
|
|
16253
16544
|
width: 24,
|
|
16254
16545
|
src: scanning
|
|
16255
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16546
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16256
16547
|
title: "\u5168\u5C4F"
|
|
16257
16548
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16258
16549
|
onClick: function onClick() {
|
|
@@ -16260,7 +16551,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16260
16551
|
},
|
|
16261
16552
|
width: 24,
|
|
16262
16553
|
src: quanping
|
|
16263
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16554
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16264
16555
|
}, function (prevProps, nextProps) {
|
|
16265
16556
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16266
16557
|
return false;
|
|
@@ -16271,7 +16562,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16271
16562
|
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";
|
|
16272
16563
|
styleInject(css_248z$h);
|
|
16273
16564
|
|
|
16274
|
-
var _excluded$
|
|
16565
|
+
var _excluded$f = ["children"];
|
|
16275
16566
|
var index$4 = (function (props) {
|
|
16276
16567
|
var _useLocation = umi.useLocation(),
|
|
16277
16568
|
pathname = _useLocation.pathname;
|
|
@@ -16279,7 +16570,7 @@ var index$4 = (function (props) {
|
|
|
16279
16570
|
_useState2 = _slicedToArray(_useState, 1),
|
|
16280
16571
|
id = _useState2[0];
|
|
16281
16572
|
var children = props.children,
|
|
16282
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
16573
|
+
restProps = _objectWithoutProperties(props, _excluded$f);
|
|
16283
16574
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16284
16575
|
id: id,
|
|
16285
16576
|
className: 'home_page_wrapper'
|
|
@@ -16345,7 +16636,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16345
16636
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16346
16637
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16347
16638
|
}, item));
|
|
16348
|
-
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16639
|
+
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16349
16640
|
}, function (prevProps, nextProps) {
|
|
16350
16641
|
if (prevProps.title !== nextProps.title) {
|
|
16351
16642
|
return false;
|
|
@@ -16356,7 +16647,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16356
16647
|
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";
|
|
16357
16648
|
styleInject(css_248z$i);
|
|
16358
16649
|
|
|
16359
|
-
var _excluded$
|
|
16650
|
+
var _excluded$g = ["className", "style"];
|
|
16360
16651
|
var DragHandle$2 = reactSortableHoc.SortableHandle(function () {
|
|
16361
16652
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16362
16653
|
width: 25,
|
|
@@ -16794,7 +17085,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16794
17085
|
_this.DraggableBodyRow = function (_ref2) {
|
|
16795
17086
|
var className = _ref2.className,
|
|
16796
17087
|
style = _ref2.style,
|
|
16797
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
17088
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$g);
|
|
16798
17089
|
var sortDataSource = _this.state.sortDataSource;
|
|
16799
17090
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
16800
17091
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -16985,7 +17276,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16985
17276
|
});
|
|
16986
17277
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16987
17278
|
className: 'sort_table_wrapper'
|
|
16988
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17279
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16989
17280
|
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
16990
17281
|
wrapClassName: 'sort_table_wrapper',
|
|
16991
17282
|
width: 810,
|
|
@@ -17036,7 +17327,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17036
17327
|
width: 525,
|
|
17037
17328
|
height: 24
|
|
17038
17329
|
}
|
|
17039
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17330
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17040
17331
|
checked: !dataSource.some(function (item) {
|
|
17041
17332
|
if (item.hidden) return true;
|
|
17042
17333
|
return false;
|
|
@@ -17090,13 +17381,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17090
17381
|
_this2.onChange(e, item.title);
|
|
17091
17382
|
}
|
|
17092
17383
|
}, item.title);
|
|
17093
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
17384
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17094
17385
|
style: {
|
|
17095
17386
|
width: '144px'
|
|
17096
17387
|
}
|
|
17097
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
17388
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17098
17389
|
className: 'sort_table_column_all_empty'
|
|
17099
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17390
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17100
17391
|
className: 'sort_table_column_special'
|
|
17101
17392
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17102
17393
|
className: 'sort_table_column_all'
|
|
@@ -17164,7 +17455,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17164
17455
|
}]);
|
|
17165
17456
|
}(React__default['default'].Component);
|
|
17166
17457
|
|
|
17167
|
-
var _excluded$
|
|
17458
|
+
var _excluded$h = ["className", "style"];
|
|
17168
17459
|
var DragHandle$3 = reactSortableHoc.SortableHandle(function () {
|
|
17169
17460
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
17170
17461
|
width: 25,
|
|
@@ -17417,7 +17708,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17417
17708
|
_this.DraggableBodyRow = function (_ref2) {
|
|
17418
17709
|
var className = _ref2.className,
|
|
17419
17710
|
style = _ref2.style,
|
|
17420
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
17711
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$h);
|
|
17421
17712
|
var sortDataSource = _this.state.sortDataSource;
|
|
17422
17713
|
var index = sortDataSource.findIndex(function (x) {
|
|
17423
17714
|
return x.name === restProps['data-row-key'];
|
|
@@ -17570,7 +17861,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17570
17861
|
});
|
|
17571
17862
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17572
17863
|
className: 'sort_table_wrapper'
|
|
17573
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17864
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17574
17865
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17575
17866
|
wrapClassName: 'sort_table_wrapper',
|
|
17576
17867
|
width: 820,
|
|
@@ -17615,7 +17906,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17615
17906
|
style: {
|
|
17616
17907
|
width: 525
|
|
17617
17908
|
}
|
|
17618
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17909
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17619
17910
|
checked: !dataSource.some(function (item) {
|
|
17620
17911
|
if (item.hidden) return true;
|
|
17621
17912
|
return false;
|
|
@@ -17651,11 +17942,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17651
17942
|
_this2.onChange(e, item.name);
|
|
17652
17943
|
}
|
|
17653
17944
|
}, item.label);
|
|
17654
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
17945
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17655
17946
|
style: {
|
|
17656
17947
|
width: '144px'
|
|
17657
17948
|
}
|
|
17658
|
-
})), !newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
17949
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17659
17950
|
className: 'sort_table_column_all_empty'
|
|
17660
17951
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17661
17952
|
className: 'sort_table_content_wrapper'
|
|
@@ -17716,13 +18007,13 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17716
18007
|
var css_248z$j = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
17717
18008
|
styleInject(css_248z$j);
|
|
17718
18009
|
|
|
17719
|
-
var _excluded$
|
|
18010
|
+
var _excluded$i = ["onResize", "width"];
|
|
17720
18011
|
var MemoQueryTable = /*#__PURE__*/React__default['default'].memo(bssula.QueryTable);
|
|
17721
18012
|
var Text$2 = antd.Typography.Text;
|
|
17722
18013
|
var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
17723
18014
|
var onResize = props.onResize,
|
|
17724
18015
|
width = props.width,
|
|
17725
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
18016
|
+
restProps = _objectWithoutProperties(props, _excluded$i);
|
|
17726
18017
|
var _useState = React$1.useState(width),
|
|
17727
18018
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17728
18019
|
innerWidth = _useState2[0],
|
|
@@ -17754,7 +18045,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17754
18045
|
};
|
|
17755
18046
|
setIsResizing(true);
|
|
17756
18047
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17757
|
-
document.addEventListener('mouseup',
|
|
18048
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
17758
18049
|
};
|
|
17759
18050
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17760
18051
|
e.stopPropagation();
|
|
@@ -17770,9 +18061,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17770
18061
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17771
18062
|
}
|
|
17772
18063
|
};
|
|
17773
|
-
var
|
|
18064
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
17774
18065
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17775
|
-
document.removeEventListener('mouseup',
|
|
18066
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
17776
18067
|
setIsResizing(false);
|
|
17777
18068
|
};
|
|
17778
18069
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18183,7 +18474,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18183
18474
|
actionsRender = actionsRender.concat([{
|
|
18184
18475
|
type: 'text',
|
|
18185
18476
|
props: {
|
|
18186
|
-
children: (/*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
18477
|
+
children: ( /*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
18187
18478
|
request: {
|
|
18188
18479
|
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),
|
|
18189
18480
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18429,7 +18720,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18429
18720
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18430
18721
|
bsTableCode: bsTableCode,
|
|
18431
18722
|
onlyModal: true
|
|
18432
|
-
}), (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, {
|
|
18723
|
+
}), (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, {
|
|
18433
18724
|
ref: exportTableRef,
|
|
18434
18725
|
setShowColumns: setShowExportColumns,
|
|
18435
18726
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18522,11 +18813,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18522
18813
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18523
18814
|
var resultList = [];
|
|
18524
18815
|
var newRouter = cloneDeep__default['default'](router);
|
|
18525
|
-
var
|
|
18816
|
+
var deep = function deep(router) {
|
|
18526
18817
|
if (router && Array.isArray(router)) {
|
|
18527
18818
|
router.forEach(function (item) {
|
|
18528
18819
|
if (item.children && Array.isArray(item.children)) {
|
|
18529
|
-
|
|
18820
|
+
deep(item.children);
|
|
18530
18821
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18531
18822
|
return d === item.code;
|
|
18532
18823
|
})) {
|
|
@@ -18540,10 +18831,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18540
18831
|
resultList.push(_objectSpread2({}, router));
|
|
18541
18832
|
}
|
|
18542
18833
|
};
|
|
18543
|
-
|
|
18834
|
+
deep(newRouter);
|
|
18544
18835
|
callBack([].concat(resultList));
|
|
18545
18836
|
};
|
|
18546
|
-
var
|
|
18837
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18547
18838
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18548
18839
|
var _loop = function _loop(i) {
|
|
18549
18840
|
if (routesData[i].hideInMenu) {
|
|
@@ -18557,7 +18848,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18557
18848
|
return 0; // continue
|
|
18558
18849
|
}
|
|
18559
18850
|
if (routesData[i].children) {
|
|
18560
|
-
|
|
18851
|
+
setMenuTreeData(routesData[i].children);
|
|
18561
18852
|
}
|
|
18562
18853
|
},
|
|
18563
18854
|
_ret;
|
|
@@ -18578,16 +18869,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18578
18869
|
};
|
|
18579
18870
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18580
18871
|
var routerMap = {};
|
|
18581
|
-
var
|
|
18872
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18582
18873
|
data.forEach(function (menuItem) {
|
|
18583
18874
|
if (menuItem.children) {
|
|
18584
|
-
|
|
18875
|
+
flattenMenuData(menuItem.children);
|
|
18585
18876
|
}
|
|
18586
18877
|
// Reduce memory usage
|
|
18587
18878
|
routerMap[menuItem.path] = menuItem;
|
|
18588
18879
|
});
|
|
18589
18880
|
};
|
|
18590
|
-
|
|
18881
|
+
flattenMenuData(menuData);
|
|
18591
18882
|
return routerMap;
|
|
18592
18883
|
};
|
|
18593
18884
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18733,7 +19024,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18733
19024
|
sethomepageData(homepageDataList);
|
|
18734
19025
|
setroutesData(routesDataList);
|
|
18735
19026
|
}, []);
|
|
18736
|
-
var
|
|
19027
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18737
19028
|
if (!child.hideInMenu && child.children) {
|
|
18738
19029
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
18739
19030
|
style: {
|
|
@@ -18743,7 +19034,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18743
19034
|
}, umi.formatMessage({
|
|
18744
19035
|
id: "".concat(child.locale)
|
|
18745
19036
|
})), child.children.map(function (menuItem) {
|
|
18746
|
-
return
|
|
19037
|
+
return renderChildItem(menuItem);
|
|
18747
19038
|
}));
|
|
18748
19039
|
} else if (!child.hideInMenu && child.path) {
|
|
18749
19040
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -18778,7 +19069,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18778
19069
|
className: 'drawerWarp'
|
|
18779
19070
|
}, homepageData && homepageData.filter(function (d) {
|
|
18780
19071
|
return !d.hideInMenu;
|
|
18781
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
19072
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
18782
19073
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
18783
19074
|
dataSource: homepageData,
|
|
18784
19075
|
renderItem: function renderItem(child) {
|
|
@@ -18813,7 +19104,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18813
19104
|
bordered: true,
|
|
18814
19105
|
dataSource: item.children,
|
|
18815
19106
|
renderItem: function renderItem(child) {
|
|
18816
|
-
return
|
|
19107
|
+
return renderChildItem(child);
|
|
18817
19108
|
}
|
|
18818
19109
|
});
|
|
18819
19110
|
})));
|
|
@@ -18873,7 +19164,7 @@ var AllFunc$1 = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18873
19164
|
src: allfunc
|
|
18874
19165
|
})), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18875
19166
|
className: 'btnSpan2'
|
|
18876
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
19167
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
18877
19168
|
style: {
|
|
18878
19169
|
left: isDrawer ? 140 : 0,
|
|
18879
19170
|
top: 50
|
|
@@ -18919,7 +19210,7 @@ function outLogin(_x) {
|
|
|
18919
19210
|
return _outLogin.apply(this, arguments);
|
|
18920
19211
|
}
|
|
18921
19212
|
function _outLogin() {
|
|
18922
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19213
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18923
19214
|
var res;
|
|
18924
19215
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18925
19216
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19061,7 +19352,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19061
19352
|
});
|
|
19062
19353
|
};
|
|
19063
19354
|
var loginOut = /*#__PURE__*/function () {
|
|
19064
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19355
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19065
19356
|
var sessionId;
|
|
19066
19357
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19067
19358
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19165,7 +19456,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19165
19456
|
marginRight: '0px'
|
|
19166
19457
|
},
|
|
19167
19458
|
src: './xialajiantou-new.svg'
|
|
19168
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19459
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19169
19460
|
};
|
|
19170
19461
|
|
|
19171
19462
|
// -- 查询店铺 --
|
|
@@ -19173,7 +19464,7 @@ function getStoreByName(_x) {
|
|
|
19173
19464
|
return _getStoreByName.apply(this, arguments);
|
|
19174
19465
|
}
|
|
19175
19466
|
function _getStoreByName() {
|
|
19176
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19467
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19177
19468
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19178
19469
|
while (1) switch (_context.prev = _context.next) {
|
|
19179
19470
|
case 0:
|
|
@@ -19241,7 +19532,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19241
19532
|
return _fetchUserList.apply(this, arguments);
|
|
19242
19533
|
}
|
|
19243
19534
|
function _fetchUserList() {
|
|
19244
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19535
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19245
19536
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19246
19537
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19247
19538
|
case 0:
|
|
@@ -19289,7 +19580,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19289
19580
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
19290
19581
|
}, [debounceTimeout, key]);
|
|
19291
19582
|
var changeInput = /*#__PURE__*/function () {
|
|
19292
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19583
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19293
19584
|
var res;
|
|
19294
19585
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19295
19586
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19311,7 +19602,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19311
19602
|
};
|
|
19312
19603
|
}();
|
|
19313
19604
|
React$1.useEffect(function () {
|
|
19314
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19605
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19315
19606
|
var res;
|
|
19316
19607
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19317
19608
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19476,7 +19767,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19476
19767
|
var resultList = [];
|
|
19477
19768
|
var newRouter = _.cloneDeep(router);
|
|
19478
19769
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19479
|
-
var
|
|
19770
|
+
var deep = function deep(router) {
|
|
19480
19771
|
if (router && Array.isArray(router)) {
|
|
19481
19772
|
router.forEach(function (item) {
|
|
19482
19773
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19486,7 +19777,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19486
19777
|
d.nameEdit = true;
|
|
19487
19778
|
}
|
|
19488
19779
|
});
|
|
19489
|
-
|
|
19780
|
+
deep(item.routes);
|
|
19490
19781
|
} else if (!item.hideInMenu && (name ? umi.formatMessage({
|
|
19491
19782
|
id: "menu.".concat(item.name)
|
|
19492
19783
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19505,7 +19796,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19505
19796
|
}));
|
|
19506
19797
|
}
|
|
19507
19798
|
};
|
|
19508
|
-
|
|
19799
|
+
deep(newRouter);
|
|
19509
19800
|
setroutesData([].concat(resultList));
|
|
19510
19801
|
};
|
|
19511
19802
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19587,7 +19878,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19587
19878
|
},
|
|
19588
19879
|
title: item.fullPathName
|
|
19589
19880
|
}, renderLineStyl(item.fullPathName));
|
|
19590
|
-
}))))), showSelectStore && (/*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
19881
|
+
}))))), showSelectStore && ( /*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
19591
19882
|
employeeCode: employeeCode
|
|
19592
19883
|
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
19593
19884
|
};
|
|
@@ -19602,7 +19893,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19602
19893
|
var TreeNode = antd.Tree.TreeNode;
|
|
19603
19894
|
var Search$2 = antd.Input.Search;
|
|
19604
19895
|
var dataList = [];
|
|
19605
|
-
var
|
|
19896
|
+
var generateList = function generateList(data) {
|
|
19606
19897
|
for (var i = 0; i < data.length; i++) {
|
|
19607
19898
|
var node = data[i];
|
|
19608
19899
|
var path = node.path,
|
|
@@ -19612,11 +19903,11 @@ var _generateList = function generateList(data) {
|
|
|
19612
19903
|
name: name
|
|
19613
19904
|
});
|
|
19614
19905
|
if (node.children) {
|
|
19615
|
-
|
|
19906
|
+
generateList(node.children);
|
|
19616
19907
|
}
|
|
19617
19908
|
}
|
|
19618
19909
|
};
|
|
19619
|
-
var
|
|
19910
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19620
19911
|
var parentKey;
|
|
19621
19912
|
for (var i = 0; i < tree.length; i++) {
|
|
19622
19913
|
var node = tree[i];
|
|
@@ -19625,8 +19916,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19625
19916
|
return item.path === path;
|
|
19626
19917
|
})) {
|
|
19627
19918
|
parentKey = node.path;
|
|
19628
|
-
} else if (
|
|
19629
|
-
parentKey =
|
|
19919
|
+
} else if (getParentKey(path, node.children)) {
|
|
19920
|
+
parentKey = getParentKey(path, node.children);
|
|
19630
19921
|
}
|
|
19631
19922
|
}
|
|
19632
19923
|
}
|
|
@@ -19657,7 +19948,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19657
19948
|
var treeData = _this.state.treeData;
|
|
19658
19949
|
var expandedKeys = dataList.map(function (item) {
|
|
19659
19950
|
if (item.name.indexOf(value) > -1) {
|
|
19660
|
-
return
|
|
19951
|
+
return getParentKey(item.path, treeData);
|
|
19661
19952
|
}
|
|
19662
19953
|
return null;
|
|
19663
19954
|
}).filter(function (item, i, self) {
|
|
@@ -19671,22 +19962,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19671
19962
|
};
|
|
19672
19963
|
_this.getPathList = function (originData) {
|
|
19673
19964
|
var pathList = [];
|
|
19674
|
-
var
|
|
19965
|
+
var getList = function getList(data) {
|
|
19675
19966
|
if (Array.isArray(data)) {
|
|
19676
19967
|
data.forEach(function (item) {
|
|
19677
19968
|
pathList.push(item.path);
|
|
19678
19969
|
if (item.children) {
|
|
19679
|
-
|
|
19970
|
+
getList(item.children);
|
|
19680
19971
|
}
|
|
19681
19972
|
});
|
|
19682
19973
|
} else {
|
|
19683
19974
|
pathList.push(data.path);
|
|
19684
19975
|
if (data.children) {
|
|
19685
|
-
|
|
19976
|
+
getList(data.children);
|
|
19686
19977
|
}
|
|
19687
19978
|
}
|
|
19688
19979
|
};
|
|
19689
|
-
|
|
19980
|
+
getList(originData);
|
|
19690
19981
|
return pathList;
|
|
19691
19982
|
};
|
|
19692
19983
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19695,18 +19986,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19695
19986
|
customerMenuData = _this$props.customerMenuData,
|
|
19696
19987
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19697
19988
|
var filterItem;
|
|
19698
|
-
var
|
|
19989
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
19699
19990
|
menuData.forEach(function (item) {
|
|
19700
19991
|
if (item.path === path) {
|
|
19701
19992
|
filterItem = _objectSpread2({}, item);
|
|
19702
19993
|
return;
|
|
19703
19994
|
}
|
|
19704
19995
|
if (item.children) {
|
|
19705
|
-
|
|
19996
|
+
filterMenuItem(item.children);
|
|
19706
19997
|
}
|
|
19707
19998
|
});
|
|
19708
19999
|
};
|
|
19709
|
-
|
|
20000
|
+
filterMenuItem(treeData);
|
|
19710
20001
|
var addPathList = _this.getPathList(filterItem);
|
|
19711
20002
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19712
20003
|
var isRepet = false;
|
|
@@ -19736,8 +20027,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19736
20027
|
return item.path === '/';
|
|
19737
20028
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19738
20029
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19739
|
-
|
|
19740
|
-
|
|
20030
|
+
setMenuTreeData(routesData);
|
|
20031
|
+
generateList(routesData);
|
|
19741
20032
|
this.setState({
|
|
19742
20033
|
treeData: routesData
|
|
19743
20034
|
});
|
|
@@ -19751,16 +20042,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19751
20042
|
expandedKeys = _this$state.expandedKeys,
|
|
19752
20043
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19753
20044
|
treeData = _this$state.treeData;
|
|
19754
|
-
var
|
|
20045
|
+
var loop = function loop(data) {
|
|
19755
20046
|
return data.map(function (item) {
|
|
19756
20047
|
var index = item.name.indexOf(searchValue);
|
|
19757
20048
|
var beforeStr = item.name.substr(0, index);
|
|
19758
20049
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19759
|
-
var name = index > -1 ? (/*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20050
|
+
var name = index > -1 ? ( /*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19760
20051
|
style: {
|
|
19761
20052
|
color: '#f50'
|
|
19762
20053
|
}
|
|
19763
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
20054
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
19764
20055
|
if (item.children && item.children.length) {
|
|
19765
20056
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19766
20057
|
path: item.path,
|
|
@@ -19782,7 +20073,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19782
20073
|
width: 18,
|
|
19783
20074
|
src: arrowRight
|
|
19784
20075
|
}))))
|
|
19785
|
-
},
|
|
20076
|
+
}, loop(item.children));
|
|
19786
20077
|
}
|
|
19787
20078
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19788
20079
|
path: item.path,
|
|
@@ -19832,7 +20123,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19832
20123
|
onExpand: this.onExpand,
|
|
19833
20124
|
expandedKeys: expandedKeys,
|
|
19834
20125
|
autoExpandParent: autoExpandParent
|
|
19835
|
-
},
|
|
20126
|
+
}, loop(treeData))));
|
|
19836
20127
|
}
|
|
19837
20128
|
}]);
|
|
19838
20129
|
}(React__default['default'].Component);
|
|
@@ -19865,24 +20156,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19865
20156
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19866
20157
|
var dragObj;
|
|
19867
20158
|
var finalDropItem;
|
|
19868
|
-
var
|
|
20159
|
+
var loop = function loop(data, path, callback) {
|
|
19869
20160
|
for (var i = 0; i < data.length; i++) {
|
|
19870
20161
|
if (data[i].path === path) {
|
|
19871
20162
|
return callback(data[i], i, data);
|
|
19872
20163
|
}
|
|
19873
20164
|
if (data[i].children) {
|
|
19874
|
-
|
|
20165
|
+
loop(data[i].children, path, callback);
|
|
19875
20166
|
}
|
|
19876
20167
|
}
|
|
19877
20168
|
};
|
|
19878
20169
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19879
|
-
|
|
20170
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
19880
20171
|
arr.splice(index, 1);
|
|
19881
20172
|
dragObj = item;
|
|
19882
20173
|
});
|
|
19883
20174
|
if (!info.dropToGap) {
|
|
19884
20175
|
// Drop on the content
|
|
19885
|
-
|
|
20176
|
+
loop(data, dropKey, function (item) {
|
|
19886
20177
|
item.children = item.children || [];
|
|
19887
20178
|
item.children.unshift(dragObj);
|
|
19888
20179
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19893,7 +20184,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19893
20184
|
// Is expanded
|
|
19894
20185
|
dropPosition === 1 // On the bottom gap
|
|
19895
20186
|
) {
|
|
19896
|
-
|
|
20187
|
+
loop(data, dropKey, function (item) {
|
|
19897
20188
|
item.children = item.children || [];
|
|
19898
20189
|
item.children.unshift(dragObj);
|
|
19899
20190
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19901,7 +20192,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19901
20192
|
} else {
|
|
19902
20193
|
var ar;
|
|
19903
20194
|
var i;
|
|
19904
|
-
|
|
20195
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
19905
20196
|
ar = arr;
|
|
19906
20197
|
i = index;
|
|
19907
20198
|
});
|
|
@@ -19940,17 +20231,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19940
20231
|
title: '编辑名称',
|
|
19941
20232
|
callBack: function callBack(newName) {
|
|
19942
20233
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19943
|
-
var
|
|
20234
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19944
20235
|
oldTreeData.forEach(function (treeItem) {
|
|
19945
20236
|
if (treeItem.path === item.path) {
|
|
19946
20237
|
treeItem.name = newName;
|
|
19947
20238
|
}
|
|
19948
20239
|
if (treeItem.children) {
|
|
19949
|
-
|
|
20240
|
+
editTreeDataName(treeItem.children);
|
|
19950
20241
|
}
|
|
19951
20242
|
});
|
|
19952
20243
|
};
|
|
19953
|
-
|
|
20244
|
+
editTreeDataName(oldTreeData);
|
|
19954
20245
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19955
20246
|
_this.setState({
|
|
19956
20247
|
modalInfo: {
|
|
@@ -19995,7 +20286,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19995
20286
|
title: '新增子目录',
|
|
19996
20287
|
callBack: function callBack(newName) {
|
|
19997
20288
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19998
|
-
var
|
|
20289
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
19999
20290
|
oldTreeData.forEach(function (treeItem) {
|
|
20000
20291
|
if (treeItem.path === item.path) {
|
|
20001
20292
|
treeItem.children ? treeItem.children.push({
|
|
@@ -20007,11 +20298,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20007
20298
|
}];
|
|
20008
20299
|
}
|
|
20009
20300
|
if (treeItem.children) {
|
|
20010
|
-
|
|
20301
|
+
addChildFolder(treeItem.children);
|
|
20011
20302
|
}
|
|
20012
20303
|
});
|
|
20013
20304
|
};
|
|
20014
|
-
|
|
20305
|
+
addChildFolder(oldTreeData);
|
|
20015
20306
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20016
20307
|
_this.setState({
|
|
20017
20308
|
modalInfo: {
|
|
@@ -20070,7 +20361,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20070
20361
|
var _this$state = this.state,
|
|
20071
20362
|
modalInfo = _this$state.modalInfo,
|
|
20072
20363
|
checkedKeys = _this$state.checkedKeys;
|
|
20073
|
-
var
|
|
20364
|
+
var loop = function loop(data) {
|
|
20074
20365
|
return data.map(function (item) {
|
|
20075
20366
|
if (item.children && item.children.length) {
|
|
20076
20367
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
@@ -20087,7 +20378,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20087
20378
|
e.stopPropagation();
|
|
20088
20379
|
}
|
|
20089
20380
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(icons.EllipsisOutlined, null))))))
|
|
20090
|
-
},
|
|
20381
|
+
}, loop(item.children));
|
|
20091
20382
|
}
|
|
20092
20383
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
20093
20384
|
path: item.path,
|
|
@@ -20166,7 +20457,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20166
20457
|
children: 'children'
|
|
20167
20458
|
},
|
|
20168
20459
|
onDrop: this.onDrop
|
|
20169
|
-
},
|
|
20460
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
20170
20461
|
width: 600,
|
|
20171
20462
|
bodyStyle: {
|
|
20172
20463
|
paddingTop: '32px',
|
|
@@ -20279,7 +20570,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20279
20570
|
pathname: item.path
|
|
20280
20571
|
});
|
|
20281
20572
|
};
|
|
20282
|
-
var
|
|
20573
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
20283
20574
|
return menuData.map(function (item) {
|
|
20284
20575
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20285
20576
|
style: {
|
|
@@ -20294,7 +20585,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20294
20585
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20295
20586
|
paddingLeft: '4px'
|
|
20296
20587
|
}
|
|
20297
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20588
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
20298
20589
|
});
|
|
20299
20590
|
};
|
|
20300
20591
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20320,7 +20611,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20320
20611
|
style: {
|
|
20321
20612
|
paddingLeft: '5px'
|
|
20322
20613
|
}
|
|
20323
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
20614
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
20324
20615
|
style: {
|
|
20325
20616
|
left: isDrawer ? 140 : 0
|
|
20326
20617
|
},
|
|
@@ -20341,7 +20632,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20341
20632
|
visible: isDrawer
|
|
20342
20633
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
20343
20634
|
className: 'menu_title_line'
|
|
20344
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20635
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
20345
20636
|
title: /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20346
20637
|
style: {
|
|
20347
20638
|
fontWeight: '600',
|
|
@@ -20415,7 +20706,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20415
20706
|
return item.path === '/';
|
|
20416
20707
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20417
20708
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20418
|
-
|
|
20709
|
+
setMenuTreeData(routesData);
|
|
20419
20710
|
routesData.forEach(function (item) {
|
|
20420
20711
|
if (item.children) {
|
|
20421
20712
|
routesDataList.push(item);
|
|
@@ -20445,7 +20736,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20445
20736
|
setHeight(clientHeight - 190);
|
|
20446
20737
|
setDrawHeight(clientHeight - 70);
|
|
20447
20738
|
};
|
|
20448
|
-
var
|
|
20739
|
+
var renderChildItem = function renderChildItem(child) {
|
|
20449
20740
|
if (!child.hideInMenu && child.children) {
|
|
20450
20741
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
20451
20742
|
style: {
|
|
@@ -20455,7 +20746,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20455
20746
|
}, umi.formatMessage({
|
|
20456
20747
|
id: "".concat(child.locale)
|
|
20457
20748
|
})), child.children.map(function (menuItem) {
|
|
20458
|
-
return
|
|
20749
|
+
return renderChildItem(menuItem);
|
|
20459
20750
|
}));
|
|
20460
20751
|
} else if (!child.hideInMenu && child.path) {
|
|
20461
20752
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -20597,7 +20888,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20597
20888
|
onMenuClick(e, item);
|
|
20598
20889
|
}
|
|
20599
20890
|
}, item.name);
|
|
20600
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
20891
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20601
20892
|
className: 'search_menu_content'
|
|
20602
20893
|
}, SearhData.map(function (item) {
|
|
20603
20894
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20606,7 +20897,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20606
20897
|
},
|
|
20607
20898
|
key: item.path
|
|
20608
20899
|
}, item.name);
|
|
20609
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20900
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20610
20901
|
style: {
|
|
20611
20902
|
height: "".concat(rightMenuHeight, "px"),
|
|
20612
20903
|
overflowY: 'scroll',
|
|
@@ -20618,7 +20909,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20618
20909
|
className: 'drawerWarp_right'
|
|
20619
20910
|
}, homepageData && homepageData.filter(function (d) {
|
|
20620
20911
|
return !d.hideInMenu;
|
|
20621
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
20912
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
20622
20913
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
20623
20914
|
dataSource: homepageData,
|
|
20624
20915
|
renderItem: function renderItem(child) {
|
|
@@ -20659,7 +20950,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20659
20950
|
bordered: true,
|
|
20660
20951
|
dataSource: item.children,
|
|
20661
20952
|
renderItem: function renderItem(child) {
|
|
20662
|
-
return
|
|
20953
|
+
return renderChildItem(child);
|
|
20663
20954
|
}
|
|
20664
20955
|
});
|
|
20665
20956
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20799,7 +21090,7 @@ var NoFoundPage = function NoFoundPage(props) {
|
|
|
20799
21090
|
}));
|
|
20800
21091
|
};
|
|
20801
21092
|
|
|
20802
|
-
var _excluded$
|
|
21093
|
+
var _excluded$j = ["route"];
|
|
20803
21094
|
var TabPane = antd.Tabs.TabPane;
|
|
20804
21095
|
var getId = function getId(str) {
|
|
20805
21096
|
// 找到最后一个 / 的位置
|
|
@@ -20817,10 +21108,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20817
21108
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20818
21109
|
var menuKeys = [];
|
|
20819
21110
|
var docsId = [];
|
|
20820
|
-
var
|
|
21111
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20821
21112
|
data.forEach(function (item) {
|
|
20822
21113
|
if (item.children && item.children.length > 0) {
|
|
20823
|
-
|
|
21114
|
+
getLimitedMenuKeys(item.children);
|
|
20824
21115
|
} else {
|
|
20825
21116
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20826
21117
|
menuKeys.push(originPath);
|
|
@@ -20831,7 +21122,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20831
21122
|
});
|
|
20832
21123
|
};
|
|
20833
21124
|
try {
|
|
20834
|
-
|
|
21125
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
20835
21126
|
} catch (e) {}
|
|
20836
21127
|
return {
|
|
20837
21128
|
menuKeys: menuKeys,
|
|
@@ -21065,10 +21356,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21065
21356
|
return (node.path || '').includes('all-general-documents');
|
|
21066
21357
|
};
|
|
21067
21358
|
// 递归获取树列表
|
|
21068
|
-
var
|
|
21359
|
+
var getTreeList = function getTreeList(data) {
|
|
21069
21360
|
data.forEach(function (node) {
|
|
21070
21361
|
if (node.routes && node.routes.length > 0) {
|
|
21071
|
-
|
|
21362
|
+
getTreeList(node.routes);
|
|
21072
21363
|
return;
|
|
21073
21364
|
}
|
|
21074
21365
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -21099,7 +21390,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21099
21390
|
}
|
|
21100
21391
|
});
|
|
21101
21392
|
};
|
|
21102
|
-
|
|
21393
|
+
getTreeList(treeData);
|
|
21103
21394
|
return treeList;
|
|
21104
21395
|
};
|
|
21105
21396
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21728,7 +22019,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21728
22019
|
updateState = _ref8.updateState;
|
|
21729
22020
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21730
22021
|
className: "tab_title_content"
|
|
21731
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
22022
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
21732
22023
|
info: item,
|
|
21733
22024
|
operateFun: _this3.operateFun,
|
|
21734
22025
|
listenRouterState: listenRouterState
|
|
@@ -21740,7 +22031,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21740
22031
|
}); // 添加数据大屏
|
|
21741
22032
|
var _this$props3 = this.props,
|
|
21742
22033
|
route = _this$props3.route,
|
|
21743
|
-
restPrpos = _objectWithoutProperties(_this$props3, _excluded$
|
|
22034
|
+
restPrpos = _objectWithoutProperties(_this$props3, _excluded$j);
|
|
21744
22035
|
var exist = route.routes.find(function (route) {
|
|
21745
22036
|
return route.path === '/homePage/data-show';
|
|
21746
22037
|
});
|
|
@@ -21864,7 +22155,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21864
22155
|
};
|
|
21865
22156
|
}
|
|
21866
22157
|
var OperationsSlot = {
|
|
21867
|
-
left: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
22158
|
+
left: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21868
22159
|
className: 'tab_left_operate'
|
|
21869
22160
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21870
22161
|
onClick: function onClick() {
|
|
@@ -21880,7 +22171,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21880
22171
|
_this3.setTabNavTransLate(-100);
|
|
21881
22172
|
}
|
|
21882
22173
|
}, /*#__PURE__*/React__default['default'].createElement(icons.DoubleLeftOutlined, null)))),
|
|
21883
|
-
right: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
22174
|
+
right: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21884
22175
|
style: {
|
|
21885
22176
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21886
22177
|
},
|
|
@@ -21978,7 +22269,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21978
22269
|
onMouseLeave: function onMouseLeave() {
|
|
21979
22270
|
_this3.setShowMenu(false);
|
|
21980
22271
|
}
|
|
21981
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
22272
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
21982
22273
|
style: {
|
|
21983
22274
|
position: 'absolute',
|
|
21984
22275
|
top: '14px',
|
|
@@ -21997,7 +22288,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21997
22288
|
postMenuData: function postMenuData(menus) {
|
|
21998
22289
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21999
22290
|
},
|
|
22000
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
22291
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
22001
22292
|
ref: this.allFunc,
|
|
22002
22293
|
itemPath: itemPath,
|
|
22003
22294
|
handleClose: this.handleClose,
|
|
@@ -22015,7 +22306,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22015
22306
|
},
|
|
22016
22307
|
menu: {
|
|
22017
22308
|
request: function () {
|
|
22018
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22309
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22019
22310
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22020
22311
|
while (1) switch (_context.prev = _context.next) {
|
|
22021
22312
|
case 0:
|
|
@@ -22150,7 +22441,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22150
22441
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22151
22442
|
timeFormat = _this$props4.timeFormat,
|
|
22152
22443
|
transparentProps = _this$props4.transparentProps;
|
|
22153
|
-
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({
|
|
22444
|
+
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({
|
|
22154
22445
|
getDictionarySource: getDictionarySource,
|
|
22155
22446
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22156
22447
|
timeFormat: timeFormat
|
|
@@ -22174,12 +22465,12 @@ var index$5 = (function (props) {
|
|
|
22174
22465
|
});
|
|
22175
22466
|
|
|
22176
22467
|
// @ts-nocheck
|
|
22177
|
-
var
|
|
22468
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
22178
22469
|
var result = [];
|
|
22179
22470
|
columns.forEach(function (column) {
|
|
22180
22471
|
if (column.children) {
|
|
22181
22472
|
result.push(column);
|
|
22182
|
-
result.push.apply(result,
|
|
22473
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
22183
22474
|
} else {
|
|
22184
22475
|
result.push(column);
|
|
22185
22476
|
}
|
|
@@ -22188,7 +22479,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
22188
22479
|
};
|
|
22189
22480
|
var convertToRows = function convertToRows(originColumns) {
|
|
22190
22481
|
var maxLevel = 1;
|
|
22191
|
-
var
|
|
22482
|
+
var traverse = function traverse(column, parent) {
|
|
22192
22483
|
if (parent) {
|
|
22193
22484
|
column.level = parent.level + 1;
|
|
22194
22485
|
if (maxLevel < column.level) {
|
|
@@ -22198,7 +22489,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22198
22489
|
if (column.children) {
|
|
22199
22490
|
var colSpan = 0;
|
|
22200
22491
|
column.children.forEach(function (subColumn) {
|
|
22201
|
-
|
|
22492
|
+
traverse(subColumn, column);
|
|
22202
22493
|
colSpan += subColumn.colSpan;
|
|
22203
22494
|
});
|
|
22204
22495
|
column.colSpan = colSpan;
|
|
@@ -22208,13 +22499,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22208
22499
|
};
|
|
22209
22500
|
originColumns.forEach(function (column) {
|
|
22210
22501
|
column.level = 1;
|
|
22211
|
-
|
|
22502
|
+
traverse(column);
|
|
22212
22503
|
});
|
|
22213
22504
|
var rows = [];
|
|
22214
22505
|
for (var i = 0; i < maxLevel; i++) {
|
|
22215
22506
|
rows.push([]);
|
|
22216
22507
|
}
|
|
22217
|
-
var allColumns =
|
|
22508
|
+
var allColumns = getAllColumns(originColumns);
|
|
22218
22509
|
allColumns.forEach(function (column) {
|
|
22219
22510
|
if (!column.children) {
|
|
22220
22511
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22254,7 +22545,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22254
22545
|
};
|
|
22255
22546
|
var headersToRows = function headersToRows(originColumns) {
|
|
22256
22547
|
var maxLevel = 1;
|
|
22257
|
-
var
|
|
22548
|
+
var traverse = function traverse(column, parent) {
|
|
22258
22549
|
if (parent) {
|
|
22259
22550
|
//计算当前元素属于第几个层级
|
|
22260
22551
|
column.level = parent.level + 1;
|
|
@@ -22267,7 +22558,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22267
22558
|
var colSpan = 0;
|
|
22268
22559
|
column.children.forEach(function (subColumn) {
|
|
22269
22560
|
//进行递归
|
|
22270
|
-
|
|
22561
|
+
traverse(subColumn, column);
|
|
22271
22562
|
colSpan += subColumn.colSpan;
|
|
22272
22563
|
});
|
|
22273
22564
|
column.colSpan = colSpan;
|
|
@@ -22277,14 +22568,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22277
22568
|
};
|
|
22278
22569
|
originColumns.forEach(function (column) {
|
|
22279
22570
|
column.level = 1;
|
|
22280
|
-
|
|
22571
|
+
traverse(column);
|
|
22281
22572
|
});
|
|
22282
22573
|
var rows = [];
|
|
22283
22574
|
var lastData = [];
|
|
22284
22575
|
for (var i = 0; i < maxLevel; i++) {
|
|
22285
22576
|
rows.push([]);
|
|
22286
22577
|
}
|
|
22287
|
-
var allColumns =
|
|
22578
|
+
var allColumns = getAllColumns(originColumns);
|
|
22288
22579
|
allColumns.forEach(function (column) {
|
|
22289
22580
|
if (!column.children) {
|
|
22290
22581
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22713,10 +23004,10 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
22713
23004
|
}))))));
|
|
22714
23005
|
});
|
|
22715
23006
|
|
|
22716
|
-
var _excluded$
|
|
23007
|
+
var _excluded$k = ["children"];
|
|
22717
23008
|
var Drawer = (function (props) {
|
|
22718
23009
|
var children = props.children,
|
|
22719
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
23010
|
+
restProps = _objectWithoutProperties(props, _excluded$k);
|
|
22720
23011
|
return /*#__PURE__*/React__default['default'].createElement(antd.Drawer, _objectSpread2({
|
|
22721
23012
|
mask: true,
|
|
22722
23013
|
closable: false,
|
|
@@ -28301,7 +28592,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28301
28592
|
}
|
|
28302
28593
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28303
28594
|
};
|
|
28304
|
-
var
|
|
28595
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
28305
28596
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28306
28597
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28307
28598
|
var children = hightLightData.children,
|
|
@@ -28312,7 +28603,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28312
28603
|
lineEnd = _loc2[2];
|
|
28313
28604
|
if (children) {
|
|
28314
28605
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28315
|
-
return
|
|
28606
|
+
return hasHighLightChildren(v, highLightLine);
|
|
28316
28607
|
});
|
|
28317
28608
|
}
|
|
28318
28609
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28324,7 +28615,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28324
28615
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28325
28616
|
data.forEach(function (node) {
|
|
28326
28617
|
if (!node) return;
|
|
28327
|
-
node.toggled =
|
|
28618
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
28328
28619
|
node.active = isHightLight(node, highLightLine);
|
|
28329
28620
|
if (node.children) {
|
|
28330
28621
|
if (node.active) {
|
|
@@ -29755,7 +30046,7 @@ var valueType = {
|
|
|
29755
30046
|
};
|
|
29756
30047
|
|
|
29757
30048
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29758
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
30049
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29759
30050
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29760
30051
|
while (1) switch (_context.prev = _context.next) {
|
|
29761
30052
|
case 0:
|
|
@@ -29823,7 +30114,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29823
30114
|
value: false
|
|
29824
30115
|
}];
|
|
29825
30116
|
var ref = React$1.useRef();
|
|
29826
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30117
|
+
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29827
30118
|
var _ref$current, source;
|
|
29828
30119
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29829
30120
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29937,7 +30228,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29937
30228
|
source: {
|
|
29938
30229
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29939
30230
|
type: function () {
|
|
29940
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30231
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29941
30232
|
var form, values, name, relates, source;
|
|
29942
30233
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29943
30234
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30417,7 +30708,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30417
30708
|
source: {
|
|
30418
30709
|
relates: ['choiceType', 'inputType'],
|
|
30419
30710
|
type: function () {
|
|
30420
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30711
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30421
30712
|
var values, name, form, source;
|
|
30422
30713
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30423
30714
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30639,7 +30930,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30639
30930
|
width: 900,
|
|
30640
30931
|
maskClosable: false,
|
|
30641
30932
|
onOk: function () {
|
|
30642
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30933
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30643
30934
|
var _ref$current4, _res$editableStatus;
|
|
30644
30935
|
var res, _res$defaultValue;
|
|
30645
30936
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30711,7 +31002,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30711
31002
|
}()
|
|
30712
31003
|
}), /*#__PURE__*/React__default['default'].createElement(bssula.Form, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30713
31004
|
ref: ref
|
|
30714
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
31005
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30715
31006
|
};
|
|
30716
31007
|
|
|
30717
31008
|
// @ts-nocheck
|
|
@@ -31325,7 +31616,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31325
31616
|
return setVisible(false);
|
|
31326
31617
|
},
|
|
31327
31618
|
className: 'customFieldsDrawer'
|
|
31328
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31619
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31329
31620
|
style: {
|
|
31330
31621
|
display: 'flex'
|
|
31331
31622
|
}
|
|
@@ -31334,13 +31625,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31334
31625
|
flex: 1,
|
|
31335
31626
|
width: 500
|
|
31336
31627
|
}
|
|
31337
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31628
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31338
31629
|
style: {
|
|
31339
31630
|
padding: "10px 0",
|
|
31340
31631
|
fontSize: "16px",
|
|
31341
31632
|
fontWeight: "bolder"
|
|
31342
31633
|
}
|
|
31343
|
-
}, "\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", {
|
|
31634
|
+
}, "\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", {
|
|
31344
31635
|
style: {
|
|
31345
31636
|
flex: 1
|
|
31346
31637
|
}
|
|
@@ -31349,7 +31640,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31349
31640
|
onRun: onClickRun,
|
|
31350
31641
|
value: jsonEditorVal,
|
|
31351
31642
|
shallowHeight: height
|
|
31352
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
31643
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
31353
31644
|
defaultActiveKey: activeKey,
|
|
31354
31645
|
onChange: function onChange(v) {
|
|
31355
31646
|
return setActiveKey(v);
|
|
@@ -31366,13 +31657,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31366
31657
|
flex: 1,
|
|
31367
31658
|
width: 500
|
|
31368
31659
|
}
|
|
31369
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31660
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31370
31661
|
style: {
|
|
31371
31662
|
padding: "10px 0",
|
|
31372
31663
|
fontSize: "16px",
|
|
31373
31664
|
fontWeight: "bolder"
|
|
31374
31665
|
}
|
|
31375
|
-
}, "\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", {
|
|
31666
|
+
}, "\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", {
|
|
31376
31667
|
style: {
|
|
31377
31668
|
flex: 1
|
|
31378
31669
|
}
|
|
@@ -31394,13 +31685,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31394
31685
|
flex: 1,
|
|
31395
31686
|
width: 500
|
|
31396
31687
|
}
|
|
31397
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31688
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31398
31689
|
style: {
|
|
31399
31690
|
padding: "10px 0",
|
|
31400
31691
|
fontSize: "16px",
|
|
31401
31692
|
fontWeight: "bolder"
|
|
31402
31693
|
}
|
|
31403
|
-
}, "\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", {
|
|
31694
|
+
}, "\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", {
|
|
31404
31695
|
style: {
|
|
31405
31696
|
flex: 1
|
|
31406
31697
|
}
|
|
@@ -31495,7 +31786,7 @@ var formatListName = function formatListName(list, columns) {
|
|
|
31495
31786
|
});
|
|
31496
31787
|
};
|
|
31497
31788
|
|
|
31498
|
-
var _excluded$
|
|
31789
|
+
var _excluded$l = ["sorter"];
|
|
31499
31790
|
/**
|
|
31500
31791
|
* 删掉查询条件的qp- 和 -eq等
|
|
31501
31792
|
* @param {object} data
|
|
@@ -31546,7 +31837,7 @@ function getMetaData(_x) {
|
|
|
31546
31837
|
|
|
31547
31838
|
// 获取数据
|
|
31548
31839
|
function _getMetaData() {
|
|
31549
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31840
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31550
31841
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31551
31842
|
while (1) switch (_context.prev = _context.next) {
|
|
31552
31843
|
case 0:
|
|
@@ -31578,7 +31869,7 @@ var remoteFetch = function remoteFetch(requestConfig, coloumns) {
|
|
|
31578
31869
|
var _requestConfig$method;
|
|
31579
31870
|
var params = _ref.params;
|
|
31580
31871
|
var sorter = params.sorter,
|
|
31581
|
-
paramsTemp = _objectWithoutProperties(params, _excluded$
|
|
31872
|
+
paramsTemp = _objectWithoutProperties(params, _excluded$l);
|
|
31582
31873
|
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) || {}), {
|
|
31583
31874
|
currentPage: (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.currentPage) || paramsTemp.current || 1
|
|
31584
31875
|
});
|
|
@@ -31768,7 +32059,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
31768
32059
|
tableState = _useState4[0],
|
|
31769
32060
|
setTableState = _useState4[1];
|
|
31770
32061
|
var handleOpen = /*#__PURE__*/function () {
|
|
31771
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32062
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31772
32063
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31773
32064
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31774
32065
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -32087,7 +32378,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32087
32378
|
destroyOnClose: true
|
|
32088
32379
|
}, config && /*#__PURE__*/React__default['default'].createElement(bssula.QueryTable, _objectSpread2({
|
|
32089
32380
|
ref: queryTableRef
|
|
32090
|
-
}, 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, {
|
|
32381
|
+
}, 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, {
|
|
32091
32382
|
justify: "center",
|
|
32092
32383
|
style: {
|
|
32093
32384
|
marginBottom: 30,
|
|
@@ -32203,7 +32494,7 @@ var CustomSelector = (function (props) {
|
|
|
32203
32494
|
var _props$ctx7;
|
|
32204
32495
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32205
32496
|
}
|
|
32206
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32497
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32207
32498
|
type: "primary",
|
|
32208
32499
|
style: {
|
|
32209
32500
|
width: '30px',
|
|
@@ -32289,7 +32580,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32289
32580
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32290
32581
|
handSource = _useState2[0],
|
|
32291
32582
|
setHandSource = _useState2[1];
|
|
32292
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32583
|
+
React$1.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32293
32584
|
var resData, data;
|
|
32294
32585
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32295
32586
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32441,7 +32732,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32441
32732
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32442
32733
|
}
|
|
32443
32734
|
function _getRegularThresholdRange() {
|
|
32444
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32735
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32445
32736
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32446
32737
|
while (1) switch (_context.prev = _context.next) {
|
|
32447
32738
|
case 0:
|
|
@@ -32595,7 +32886,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32595
32886
|
};
|
|
32596
32887
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32597
32888
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32598
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32889
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32599
32890
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32600
32891
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32601
32892
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33552,7 +33843,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33552
33843
|
isAll: true,
|
|
33553
33844
|
needNameAndCode: true,
|
|
33554
33845
|
notChangeOnSelect: true,
|
|
33555
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33846
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33556
33847
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33557
33848
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33558
33849
|
case 0:
|
|
@@ -33601,7 +33892,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33601
33892
|
isAll: true,
|
|
33602
33893
|
needNameAndCode: true,
|
|
33603
33894
|
notChangeOnSelect: true,
|
|
33604
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33895
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33605
33896
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33606
33897
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33607
33898
|
case 0:
|
|
@@ -33652,7 +33943,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33652
33943
|
isAll: true,
|
|
33653
33944
|
needNameAndCode: true,
|
|
33654
33945
|
notChangeOnSelect: true,
|
|
33655
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33946
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33656
33947
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33657
33948
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33658
33949
|
case 0:
|
|
@@ -35630,7 +35921,7 @@ var App$1 = function App(_ref) {
|
|
|
35630
35921
|
borderRadius: '5px',
|
|
35631
35922
|
cursor: 'pointer'
|
|
35632
35923
|
}
|
|
35633
|
-
}, isStaticNumber ? (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35924
|
+
}, isStaticNumber ? ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35634
35925
|
autoFocus: true,
|
|
35635
35926
|
onClick: function onClick(e) {
|
|
35636
35927
|
return e.stopPropagation();
|
|
@@ -35917,7 +36208,7 @@ function RenderCompItem(props) {
|
|
|
35917
36208
|
dictData = _useState2[0],
|
|
35918
36209
|
setDictData = _useState2[1];
|
|
35919
36210
|
var getDictData = /*#__PURE__*/function () {
|
|
35920
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36211
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35921
36212
|
var _data$map;
|
|
35922
36213
|
var data;
|
|
35923
36214
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35959,7 +36250,7 @@ function RenderCompItem(props) {
|
|
|
35959
36250
|
var style2 = {
|
|
35960
36251
|
width: '100px'
|
|
35961
36252
|
};
|
|
35962
|
-
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, {
|
|
36253
|
+
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, {
|
|
35963
36254
|
disabled: disabled,
|
|
35964
36255
|
allowClear: true,
|
|
35965
36256
|
onClear: function onClear() {
|
|
@@ -35970,7 +36261,7 @@ function RenderCompItem(props) {
|
|
|
35970
36261
|
onBlur: function onBlur(e) {
|
|
35971
36262
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35972
36263
|
}
|
|
35973
|
-
})) || 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, {
|
|
36264
|
+
})) || 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, {
|
|
35974
36265
|
disabled: disabled,
|
|
35975
36266
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35976
36267
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35983,7 +36274,7 @@ function RenderCompItem(props) {
|
|
|
35983
36274
|
onChange: function onChange(value) {
|
|
35984
36275
|
handleEdit(ites.code, value);
|
|
35985
36276
|
}
|
|
35986
|
-
})) || 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, {
|
|
36277
|
+
})) || 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, {
|
|
35987
36278
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35988
36279
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35989
36280
|
disabled: disabled,
|
|
@@ -35993,7 +36284,7 @@ function RenderCompItem(props) {
|
|
|
35993
36284
|
onChange: function onChange(value, dateString) {
|
|
35994
36285
|
handleEdit(ites.code, dateString);
|
|
35995
36286
|
}
|
|
35996
|
-
})) || 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, {
|
|
36287
|
+
})) || 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, {
|
|
35997
36288
|
showTime: true,
|
|
35998
36289
|
disabled: disabled,
|
|
35999
36290
|
defaultValue: ites.defaultValue,
|
|
@@ -36002,7 +36293,7 @@ function RenderCompItem(props) {
|
|
|
36002
36293
|
onChange: function onChange(value, timeString) {
|
|
36003
36294
|
handleEdit(ites.code, timeString);
|
|
36004
36295
|
}
|
|
36005
|
-
})) || 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, {
|
|
36296
|
+
})) || 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, {
|
|
36006
36297
|
disabled: disabled,
|
|
36007
36298
|
defaultChecked: !!ites.defaultValue,
|
|
36008
36299
|
style: style2,
|
|
@@ -36010,7 +36301,7 @@ function RenderCompItem(props) {
|
|
|
36010
36301
|
onChange: function onChange(value) {
|
|
36011
36302
|
handleEdit(ites.code, value);
|
|
36012
36303
|
}
|
|
36013
|
-
})) || 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({
|
|
36304
|
+
})) || 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({
|
|
36014
36305
|
disabled: disabled,
|
|
36015
36306
|
allowClear: true,
|
|
36016
36307
|
showArrow: true
|
|
@@ -36028,7 +36319,7 @@ function RenderCompItem(props) {
|
|
|
36028
36319
|
key: it,
|
|
36029
36320
|
value: it
|
|
36030
36321
|
}, ites.enumeration[it]);
|
|
36031
|
-
}))) || 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, {
|
|
36322
|
+
}))) || 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, {
|
|
36032
36323
|
disabled: disabled,
|
|
36033
36324
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
36034
36325
|
defaultValue: ites.defaultValue,
|
|
@@ -36038,7 +36329,7 @@ function RenderCompItem(props) {
|
|
|
36038
36329
|
handleEdit(ites.code, value);
|
|
36039
36330
|
},
|
|
36040
36331
|
dictionaryCode: ites.dictionaryCode
|
|
36041
|
-
})) || 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, {
|
|
36332
|
+
})) || 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, {
|
|
36042
36333
|
selectBusinessType: "physicalWarehouse",
|
|
36043
36334
|
selectProps: _objectSpread2({
|
|
36044
36335
|
style: styleCommon,
|
|
@@ -36060,7 +36351,7 @@ function RenderCompItem(props) {
|
|
|
36060
36351
|
getPopupContainer: function getPopupContainer() {
|
|
36061
36352
|
return document.body;
|
|
36062
36353
|
}
|
|
36063
|
-
})) || 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, {
|
|
36354
|
+
})) || 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, {
|
|
36064
36355
|
selectBusinessType: "realWarehouse",
|
|
36065
36356
|
selectProps: _objectSpread2({
|
|
36066
36357
|
style: styleCommon,
|
|
@@ -36082,7 +36373,7 @@ function RenderCompItem(props) {
|
|
|
36082
36373
|
getPopupContainer: function getPopupContainer() {
|
|
36083
36374
|
return document.body;
|
|
36084
36375
|
}
|
|
36085
|
-
})) || 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, {
|
|
36376
|
+
})) || 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, {
|
|
36086
36377
|
selectBusinessType: "virtualWarehouse",
|
|
36087
36378
|
selectProps: _objectSpread2({
|
|
36088
36379
|
style: styleCommon,
|
|
@@ -36104,7 +36395,7 @@ function RenderCompItem(props) {
|
|
|
36104
36395
|
getPopupContainer: function getPopupContainer() {
|
|
36105
36396
|
return document.body;
|
|
36106
36397
|
}
|
|
36107
|
-
})) || 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, {
|
|
36398
|
+
})) || 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, {
|
|
36108
36399
|
selectBusinessType: "channelWarehouse",
|
|
36109
36400
|
selectProps: _objectSpread2({
|
|
36110
36401
|
style: styleCommon,
|
|
@@ -36126,7 +36417,7 @@ function RenderCompItem(props) {
|
|
|
36126
36417
|
getPopupContainer: function getPopupContainer() {
|
|
36127
36418
|
return document.body;
|
|
36128
36419
|
}
|
|
36129
|
-
})) || 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, {
|
|
36420
|
+
})) || 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, {
|
|
36130
36421
|
selectBusinessType: "spuCommodity",
|
|
36131
36422
|
selectProps: _objectSpread2({
|
|
36132
36423
|
style: styleCommon,
|
|
@@ -36147,7 +36438,7 @@ function RenderCompItem(props) {
|
|
|
36147
36438
|
getPopupContainer: function getPopupContainer() {
|
|
36148
36439
|
return document.body;
|
|
36149
36440
|
}
|
|
36150
|
-
})) || 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, {
|
|
36441
|
+
})) || 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, {
|
|
36151
36442
|
selectBusinessType: "skuCommodity",
|
|
36152
36443
|
selectProps: _objectSpread2({
|
|
36153
36444
|
style: styleCommon,
|
|
@@ -36168,13 +36459,13 @@ function RenderCompItem(props) {
|
|
|
36168
36459
|
getPopupContainer: function getPopupContainer() {
|
|
36169
36460
|
return document.body;
|
|
36170
36461
|
}
|
|
36171
|
-
})) || 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, {
|
|
36462
|
+
})) || 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, {
|
|
36172
36463
|
disabled: disabled,
|
|
36173
36464
|
isAll: true,
|
|
36174
36465
|
needNameAndCode: true,
|
|
36175
36466
|
notChangeOnSelect: true,
|
|
36176
36467
|
initRequestSource: function () {
|
|
36177
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36468
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36178
36469
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36179
36470
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36180
36471
|
case 0:
|
|
@@ -36216,7 +36507,7 @@ function RenderCompItem(props) {
|
|
|
36216
36507
|
getPopupContainer: function getPopupContainer() {
|
|
36217
36508
|
return document.body;
|
|
36218
36509
|
}
|
|
36219
|
-
})) || 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, {
|
|
36510
|
+
})) || 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, {
|
|
36220
36511
|
disabled: disabled,
|
|
36221
36512
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36222
36513
|
businessType: "department",
|
|
@@ -36229,7 +36520,7 @@ function RenderCompItem(props) {
|
|
|
36229
36520
|
getPopupContainer: function getPopupContainer() {
|
|
36230
36521
|
return document.body;
|
|
36231
36522
|
}
|
|
36232
|
-
})) || 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, {
|
|
36523
|
+
})) || 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, {
|
|
36233
36524
|
disabled: disabled,
|
|
36234
36525
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36235
36526
|
businessType: "purchase-organization",
|
|
@@ -36242,7 +36533,7 @@ function RenderCompItem(props) {
|
|
|
36242
36533
|
getPopupContainer: function getPopupContainer() {
|
|
36243
36534
|
return document.body;
|
|
36244
36535
|
}
|
|
36245
|
-
})) || 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, {
|
|
36536
|
+
})) || 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, {
|
|
36246
36537
|
disabled: disabled,
|
|
36247
36538
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36248
36539
|
businessType: "sales-organization",
|
|
@@ -36255,7 +36546,7 @@ function RenderCompItem(props) {
|
|
|
36255
36546
|
getPopupContainer: function getPopupContainer() {
|
|
36256
36547
|
return document.body;
|
|
36257
36548
|
}
|
|
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) === 240 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36549
|
+
})) || 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, {
|
|
36259
36550
|
selectBusinessType: "supplier2",
|
|
36260
36551
|
selectProps: _objectSpread2({
|
|
36261
36552
|
style: styleCommon,
|
|
@@ -36276,7 +36567,7 @@ function RenderCompItem(props) {
|
|
|
36276
36567
|
getPopupContainer: function getPopupContainer() {
|
|
36277
36568
|
return document.body;
|
|
36278
36569
|
}
|
|
36279
|
-
})) || 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, {
|
|
36570
|
+
})) || 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, {
|
|
36280
36571
|
selectBusinessType: "customer2",
|
|
36281
36572
|
selectProps: _objectSpread2({
|
|
36282
36573
|
style: styleCommon,
|
|
@@ -36297,7 +36588,7 @@ function RenderCompItem(props) {
|
|
|
36297
36588
|
getPopupContainer: function getPopupContainer() {
|
|
36298
36589
|
return document.body;
|
|
36299
36590
|
}
|
|
36300
|
-
})) || 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, {
|
|
36591
|
+
})) || 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, {
|
|
36301
36592
|
selectBusinessType: "shopFile2",
|
|
36302
36593
|
selectProps: _objectSpread2({
|
|
36303
36594
|
style: styleCommon,
|
|
@@ -36318,7 +36609,7 @@ function RenderCompItem(props) {
|
|
|
36318
36609
|
getPopupContainer: function getPopupContainer() {
|
|
36319
36610
|
return document.body;
|
|
36320
36611
|
}
|
|
36321
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36612
|
+
})) || 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, {
|
|
36322
36613
|
selectBusinessType: "employee2",
|
|
36323
36614
|
selectProps: _objectSpread2({
|
|
36324
36615
|
style: styleCommon,
|
|
@@ -36339,7 +36630,7 @@ function RenderCompItem(props) {
|
|
|
36339
36630
|
getPopupContainer: function getPopupContainer() {
|
|
36340
36631
|
return document.body;
|
|
36341
36632
|
}
|
|
36342
|
-
})) || 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, {
|
|
36633
|
+
})) || 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, {
|
|
36343
36634
|
disabled: disabled,
|
|
36344
36635
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36345
36636
|
businessType: "stock-organization",
|
|
@@ -36352,7 +36643,7 @@ function RenderCompItem(props) {
|
|
|
36352
36643
|
getPopupContainer: function getPopupContainer() {
|
|
36353
36644
|
return document.body;
|
|
36354
36645
|
}
|
|
36355
|
-
})) || 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, {
|
|
36646
|
+
})) || 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, {
|
|
36356
36647
|
disabled: disabled,
|
|
36357
36648
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36358
36649
|
businessType: "settle-organization",
|
|
@@ -36365,7 +36656,7 @@ function RenderCompItem(props) {
|
|
|
36365
36656
|
getPopupContainer: function getPopupContainer() {
|
|
36366
36657
|
return document.body;
|
|
36367
36658
|
}
|
|
36368
|
-
})) || 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, {
|
|
36659
|
+
})) || 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, {
|
|
36369
36660
|
selectBusinessType: "deliveryMode",
|
|
36370
36661
|
selectProps: _objectSpread2({
|
|
36371
36662
|
style: styleCommon,
|
|
@@ -36386,7 +36677,7 @@ function RenderCompItem(props) {
|
|
|
36386
36677
|
getPopupContainer: function getPopupContainer() {
|
|
36387
36678
|
return document.body;
|
|
36388
36679
|
}
|
|
36389
|
-
})) || 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, {
|
|
36680
|
+
})) || 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, {
|
|
36390
36681
|
selectBusinessType: "role",
|
|
36391
36682
|
selectProps: _objectSpread2({
|
|
36392
36683
|
style: styleCommon,
|
|
@@ -36407,7 +36698,7 @@ function RenderCompItem(props) {
|
|
|
36407
36698
|
getPopupContainer: function getPopupContainer() {
|
|
36408
36699
|
return document.body;
|
|
36409
36700
|
}
|
|
36410
|
-
})) || 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, {
|
|
36701
|
+
})) || 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, {
|
|
36411
36702
|
selectBusinessType: "brand",
|
|
36412
36703
|
selectProps: _objectSpread2({
|
|
36413
36704
|
style: styleCommon,
|
|
@@ -36428,7 +36719,7 @@ function RenderCompItem(props) {
|
|
|
36428
36719
|
getPopupContainer: function getPopupContainer() {
|
|
36429
36720
|
return document.body;
|
|
36430
36721
|
}
|
|
36431
|
-
})) || 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, {
|
|
36722
|
+
})) || 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, {
|
|
36432
36723
|
disabled: disabled,
|
|
36433
36724
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36434
36725
|
businessType: "background-category",
|
|
@@ -36441,7 +36732,7 @@ function RenderCompItem(props) {
|
|
|
36441
36732
|
getPopupContainer: function getPopupContainer() {
|
|
36442
36733
|
return document.body;
|
|
36443
36734
|
}
|
|
36444
|
-
})) || 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, {
|
|
36735
|
+
})) || 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, {
|
|
36445
36736
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36446
36737
|
style: styleCommon,
|
|
36447
36738
|
placeholder: '请选择'
|
|
@@ -36464,7 +36755,7 @@ function RenderCompItem(props) {
|
|
|
36464
36755
|
onChange: function onChange(value) {
|
|
36465
36756
|
handleEdit(ites.code, value);
|
|
36466
36757
|
}
|
|
36467
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
36758
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
36468
36759
|
style: {
|
|
36469
36760
|
display: 'flex'
|
|
36470
36761
|
}
|
|
@@ -36976,7 +37267,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36976
37267
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36977
37268
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36978
37269
|
}
|
|
36979
|
-
var parallelTreeData =
|
|
37270
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
36980
37271
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36981
37272
|
var _i$key;
|
|
36982
37273
|
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);
|
|
@@ -37903,13 +38194,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37903
38194
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37904
38195
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37905
38196
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37906
|
-
var list =
|
|
38197
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37907
38198
|
var requiredList = list.filter(function (c) {
|
|
37908
38199
|
return c.required == 1;
|
|
37909
38200
|
}) || []; // 获取对象属性为true的集合
|
|
37910
38201
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37911
38202
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37912
|
-
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) ?
|
|
38203
|
+
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];
|
|
37913
38204
|
(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) {
|
|
37914
38205
|
if (requiredList.some(function (r) {
|
|
37915
38206
|
return r.id === e.elementId;
|
|
@@ -38498,7 +38789,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38498
38789
|
style: {
|
|
38499
38790
|
float: 'right'
|
|
38500
38791
|
}
|
|
38501
|
-
})), /*#__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), {}, {
|
|
38792
|
+
})), /*#__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), {}, {
|
|
38502
38793
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38503
38794
|
ruleGroupInfo: {
|
|
38504
38795
|
ruleGroupList: ruleGroupList,
|
|
@@ -38516,7 +38807,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38516
38807
|
callBack: function callBack(newData) {
|
|
38517
38808
|
upDateData(newData);
|
|
38518
38809
|
}
|
|
38519
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
38810
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38520
38811
|
style: {
|
|
38521
38812
|
padding: 20
|
|
38522
38813
|
}
|
|
@@ -38746,14 +39037,14 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38746
39037
|
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";
|
|
38747
39038
|
styleInject(css_248z$y);
|
|
38748
39039
|
|
|
38749
|
-
var _excluded$
|
|
39040
|
+
var _excluded$m = ["titleExtra", "header", "showArrow"];
|
|
38750
39041
|
var Panel = antd.Collapse.Panel;
|
|
38751
39042
|
var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
38752
39043
|
var titleExtra = _ref.titleExtra,
|
|
38753
39044
|
header = _ref.header,
|
|
38754
39045
|
_ref$showArrow = _ref.showArrow,
|
|
38755
39046
|
showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
|
|
38756
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
39047
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
38757
39048
|
var renderHeader = function renderHeader() {
|
|
38758
39049
|
return /*#__PURE__*/React__default['default'].createElement(antd.Space, {
|
|
38759
39050
|
align: "center"
|
|
@@ -38777,11 +39068,11 @@ var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
|
38777
39068
|
}), props.children);
|
|
38778
39069
|
};
|
|
38779
39070
|
|
|
38780
|
-
var _excluded$
|
|
39071
|
+
var _excluded$n = ["children", "bordered"];
|
|
38781
39072
|
var ExtendedCollapse = function ExtendedCollapse(props) {
|
|
38782
39073
|
var children = props.children,
|
|
38783
39074
|
bordered = props.bordered,
|
|
38784
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
39075
|
+
restProps = _objectWithoutProperties(props, _excluded$n);
|
|
38785
39076
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38786
39077
|
className: classNames__default['default']({
|
|
38787
39078
|
'bs-collapse-wrap': true,
|
|
@@ -38933,11 +39224,11 @@ exports.TreeSearchSelect = TreeSearchSelect;
|
|
|
38933
39224
|
exports.authFunc = authFunc;
|
|
38934
39225
|
exports.calculateValidPeriod = calculateValidPeriod;
|
|
38935
39226
|
exports.checkQuantityAccuracy = checkQuantityAccuracy;
|
|
38936
|
-
exports.coverToParallel =
|
|
39227
|
+
exports.coverToParallel = coverToParallel;
|
|
38937
39228
|
exports.createUniqID = createUniqID;
|
|
38938
39229
|
exports.downloadExcel = downloadExcel;
|
|
38939
39230
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
38940
|
-
exports.formatter =
|
|
39231
|
+
exports.formatter = formatter;
|
|
38941
39232
|
exports.getAccountID = getAccountID;
|
|
38942
39233
|
exports.getAccountId = getAccountId;
|
|
38943
39234
|
exports.getBreadcrumbNameMap = getBreadcrumbNameMap;
|