@bit-sun/business-component 4.0.12-alpha.27 → 4.0.12-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Functional/SearchSelect/utils.d.ts +7 -1
- package/dist/index.esm.js +595 -689
- package/dist/index.js +595 -689
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +1 -1
- package/src/components/Functional/SearchSelect/index.tsx +19 -142
- package/src/components/Functional/SearchSelect/utils.ts +58 -7
- package/src/components/Solution/RuleComponent/ruleFiled.js +85 -85
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import axios from 'axios';
|
|
|
2
2
|
import request$1 from 'umi-request';
|
|
3
3
|
import cookie from 'js-cookie';
|
|
4
4
|
import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Select, Tag, Form, Table, Spin, Row, Col, Tabs, TreeSelect, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader, DatePicker, TimePicker, Divider, Switch, Collapse } from 'antd';
|
|
5
|
-
import _, { isNil, escapeRegExp,
|
|
5
|
+
import _, { omit, isNil, escapeRegExp, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
6
6
|
import memoizeOne from 'memoize-one';
|
|
7
7
|
import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl, request as request$3 } from 'umi';
|
|
8
8
|
import isEqual from 'lodash/isEqual';
|
|
@@ -31,9 +31,88 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
31
31
|
import { visit } from 'ast-types';
|
|
32
32
|
import isArray$1 from 'lodash/isArray';
|
|
33
33
|
|
|
34
|
+
function _arrayLikeToArray(r, a) {
|
|
35
|
+
(null == a || a > r.length) && (a = r.length);
|
|
36
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
37
|
+
return n;
|
|
38
|
+
}
|
|
39
|
+
function _arrayWithHoles(r) {
|
|
40
|
+
if (Array.isArray(r)) return r;
|
|
41
|
+
}
|
|
42
|
+
function _arrayWithoutHoles(r) {
|
|
43
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
44
|
+
}
|
|
45
|
+
function _assertThisInitialized(e) {
|
|
46
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
47
|
+
return e;
|
|
48
|
+
}
|
|
49
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
50
|
+
try {
|
|
51
|
+
var i = n[a](c),
|
|
52
|
+
u = i.value;
|
|
53
|
+
} catch (n) {
|
|
54
|
+
return void e(n);
|
|
55
|
+
}
|
|
56
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
57
|
+
}
|
|
58
|
+
function _asyncToGenerator(n) {
|
|
59
|
+
return function () {
|
|
60
|
+
var t = this,
|
|
61
|
+
e = arguments;
|
|
62
|
+
return new Promise(function (r, o) {
|
|
63
|
+
var a = n.apply(t, e);
|
|
64
|
+
function _next(n) {
|
|
65
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
66
|
+
}
|
|
67
|
+
function _throw(n) {
|
|
68
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
69
|
+
}
|
|
70
|
+
_next(void 0);
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
}
|
|
34
74
|
function _callSuper(t, o, e) {
|
|
35
75
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
36
76
|
}
|
|
77
|
+
function _classCallCheck(a, n) {
|
|
78
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
79
|
+
}
|
|
80
|
+
function _defineProperties(e, r) {
|
|
81
|
+
for (var t = 0; t < r.length; t++) {
|
|
82
|
+
var o = r[t];
|
|
83
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function _createClass(e, r, t) {
|
|
87
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
88
|
+
writable: !1
|
|
89
|
+
}), e;
|
|
90
|
+
}
|
|
91
|
+
function _defineProperty(e, r, t) {
|
|
92
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
93
|
+
value: t,
|
|
94
|
+
enumerable: !0,
|
|
95
|
+
configurable: !0,
|
|
96
|
+
writable: !0
|
|
97
|
+
}) : e[r] = t, e;
|
|
98
|
+
}
|
|
99
|
+
function _getPrototypeOf(t) {
|
|
100
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
101
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
102
|
+
}, _getPrototypeOf(t);
|
|
103
|
+
}
|
|
104
|
+
function _inherits(t, e) {
|
|
105
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
106
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
107
|
+
constructor: {
|
|
108
|
+
value: t,
|
|
109
|
+
writable: !0,
|
|
110
|
+
configurable: !0
|
|
111
|
+
}
|
|
112
|
+
}), Object.defineProperty(t, "prototype", {
|
|
113
|
+
writable: !1
|
|
114
|
+
}), e && _setPrototypeOf(t, e);
|
|
115
|
+
}
|
|
37
116
|
function _isNativeReflectConstruct() {
|
|
38
117
|
try {
|
|
39
118
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -42,6 +121,9 @@ function _isNativeReflectConstruct() {
|
|
|
42
121
|
return !!t;
|
|
43
122
|
})();
|
|
44
123
|
}
|
|
124
|
+
function _iterableToArray(r) {
|
|
125
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
126
|
+
}
|
|
45
127
|
function _iterableToArrayLimit(r, l) {
|
|
46
128
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
47
129
|
if (null != t) {
|
|
@@ -69,6 +151,15 @@ function _iterableToArrayLimit(r, l) {
|
|
|
69
151
|
return a;
|
|
70
152
|
}
|
|
71
153
|
}
|
|
154
|
+
function _nonIterableRest() {
|
|
155
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
156
|
+
}
|
|
157
|
+
function _nonIterableSpread() {
|
|
158
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
159
|
+
}
|
|
160
|
+
function _objectDestructuringEmpty(t) {
|
|
161
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
162
|
+
}
|
|
72
163
|
function ownKeys(e, r) {
|
|
73
164
|
var t = Object.keys(e);
|
|
74
165
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -90,6 +181,31 @@ function _objectSpread2(e) {
|
|
|
90
181
|
}
|
|
91
182
|
return e;
|
|
92
183
|
}
|
|
184
|
+
function _objectWithoutProperties(e, t) {
|
|
185
|
+
if (null == e) return {};
|
|
186
|
+
var o,
|
|
187
|
+
r,
|
|
188
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
189
|
+
if (Object.getOwnPropertySymbols) {
|
|
190
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
191
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
192
|
+
}
|
|
193
|
+
return i;
|
|
194
|
+
}
|
|
195
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
196
|
+
if (null == r) return {};
|
|
197
|
+
var t = {};
|
|
198
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
199
|
+
if (e.includes(n)) continue;
|
|
200
|
+
t[n] = r[n];
|
|
201
|
+
}
|
|
202
|
+
return t;
|
|
203
|
+
}
|
|
204
|
+
function _possibleConstructorReturn(t, e) {
|
|
205
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
206
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
207
|
+
return _assertThisInitialized(t);
|
|
208
|
+
}
|
|
93
209
|
function _regeneratorRuntime() {
|
|
94
210
|
_regeneratorRuntime = function () {
|
|
95
211
|
return e;
|
|
@@ -391,6 +507,20 @@ function _regeneratorRuntime() {
|
|
|
391
507
|
}
|
|
392
508
|
}, e;
|
|
393
509
|
}
|
|
510
|
+
function _setPrototypeOf(t, e) {
|
|
511
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
512
|
+
return t.__proto__ = e, t;
|
|
513
|
+
}, _setPrototypeOf(t, e);
|
|
514
|
+
}
|
|
515
|
+
function _slicedToArray(r, e) {
|
|
516
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
517
|
+
}
|
|
518
|
+
function _toArray(r) {
|
|
519
|
+
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
520
|
+
}
|
|
521
|
+
function _toConsumableArray(r) {
|
|
522
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
523
|
+
}
|
|
394
524
|
function _toPrimitive(t, r) {
|
|
395
525
|
if ("object" != typeof t || !t) return t;
|
|
396
526
|
var e = t[Symbol.toPrimitive];
|
|
@@ -414,180 +544,12 @@ function _typeof(o) {
|
|
|
414
544
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
415
545
|
}, _typeof(o);
|
|
416
546
|
}
|
|
417
|
-
function
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
var
|
|
421
|
-
|
|
422
|
-
reject(error);
|
|
423
|
-
return;
|
|
424
|
-
}
|
|
425
|
-
if (info.done) {
|
|
426
|
-
resolve(value);
|
|
427
|
-
} else {
|
|
428
|
-
Promise.resolve(value).then(_next, _throw);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
function _asyncToGenerator(fn) {
|
|
432
|
-
return function () {
|
|
433
|
-
var self = this,
|
|
434
|
-
args = arguments;
|
|
435
|
-
return new Promise(function (resolve, reject) {
|
|
436
|
-
var gen = fn.apply(self, args);
|
|
437
|
-
function _next(value) {
|
|
438
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
439
|
-
}
|
|
440
|
-
function _throw(err) {
|
|
441
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
442
|
-
}
|
|
443
|
-
_next(undefined);
|
|
444
|
-
});
|
|
445
|
-
};
|
|
446
|
-
}
|
|
447
|
-
function _classCallCheck(instance, Constructor) {
|
|
448
|
-
if (!(instance instanceof Constructor)) {
|
|
449
|
-
throw new TypeError("Cannot call a class as a function");
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
function _defineProperties(target, props) {
|
|
453
|
-
for (var i = 0; i < props.length; i++) {
|
|
454
|
-
var descriptor = props[i];
|
|
455
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
456
|
-
descriptor.configurable = true;
|
|
457
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
458
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
462
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
463
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
464
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
465
|
-
writable: false
|
|
466
|
-
});
|
|
467
|
-
return Constructor;
|
|
468
|
-
}
|
|
469
|
-
function _defineProperty(obj, key, value) {
|
|
470
|
-
key = _toPropertyKey(key);
|
|
471
|
-
if (key in obj) {
|
|
472
|
-
Object.defineProperty(obj, key, {
|
|
473
|
-
value: value,
|
|
474
|
-
enumerable: true,
|
|
475
|
-
configurable: true,
|
|
476
|
-
writable: true
|
|
477
|
-
});
|
|
478
|
-
} else {
|
|
479
|
-
obj[key] = value;
|
|
480
|
-
}
|
|
481
|
-
return obj;
|
|
482
|
-
}
|
|
483
|
-
function _inherits(subClass, superClass) {
|
|
484
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
485
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
547
|
+
function _unsupportedIterableToArray(r, a) {
|
|
548
|
+
if (r) {
|
|
549
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
550
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
551
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
486
552
|
}
|
|
487
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
488
|
-
constructor: {
|
|
489
|
-
value: subClass,
|
|
490
|
-
writable: true,
|
|
491
|
-
configurable: true
|
|
492
|
-
}
|
|
493
|
-
});
|
|
494
|
-
Object.defineProperty(subClass, "prototype", {
|
|
495
|
-
writable: false
|
|
496
|
-
});
|
|
497
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
498
|
-
}
|
|
499
|
-
function _getPrototypeOf(o) {
|
|
500
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
501
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
502
|
-
};
|
|
503
|
-
return _getPrototypeOf(o);
|
|
504
|
-
}
|
|
505
|
-
function _setPrototypeOf(o, p) {
|
|
506
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
507
|
-
o.__proto__ = p;
|
|
508
|
-
return o;
|
|
509
|
-
};
|
|
510
|
-
return _setPrototypeOf(o, p);
|
|
511
|
-
}
|
|
512
|
-
function _objectDestructuringEmpty(obj) {
|
|
513
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
514
|
-
}
|
|
515
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
516
|
-
if (source == null) return {};
|
|
517
|
-
var target = {};
|
|
518
|
-
for (var key in source) {
|
|
519
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
520
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
521
|
-
target[key] = source[key];
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
return target;
|
|
525
|
-
}
|
|
526
|
-
function _objectWithoutProperties(source, excluded) {
|
|
527
|
-
if (source == null) return {};
|
|
528
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
529
|
-
var key, i;
|
|
530
|
-
if (Object.getOwnPropertySymbols) {
|
|
531
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
532
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
533
|
-
key = sourceSymbolKeys[i];
|
|
534
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
535
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
536
|
-
target[key] = source[key];
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
return target;
|
|
540
|
-
}
|
|
541
|
-
function _assertThisInitialized(self) {
|
|
542
|
-
if (self === void 0) {
|
|
543
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
544
|
-
}
|
|
545
|
-
return self;
|
|
546
|
-
}
|
|
547
|
-
function _possibleConstructorReturn(self, call) {
|
|
548
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
549
|
-
return call;
|
|
550
|
-
} else if (call !== void 0) {
|
|
551
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
552
|
-
}
|
|
553
|
-
return _assertThisInitialized(self);
|
|
554
|
-
}
|
|
555
|
-
function _slicedToArray(arr, i) {
|
|
556
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
557
|
-
}
|
|
558
|
-
function _toArray(arr) {
|
|
559
|
-
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
560
|
-
}
|
|
561
|
-
function _toConsumableArray(arr) {
|
|
562
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
563
|
-
}
|
|
564
|
-
function _arrayWithoutHoles(arr) {
|
|
565
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
566
|
-
}
|
|
567
|
-
function _arrayWithHoles(arr) {
|
|
568
|
-
if (Array.isArray(arr)) return arr;
|
|
569
|
-
}
|
|
570
|
-
function _iterableToArray(iter) {
|
|
571
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
572
|
-
}
|
|
573
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
574
|
-
if (!o) return;
|
|
575
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
576
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
577
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
578
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
579
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
580
|
-
}
|
|
581
|
-
function _arrayLikeToArray(arr, len) {
|
|
582
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
583
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
584
|
-
return arr2;
|
|
585
|
-
}
|
|
586
|
-
function _nonIterableSpread() {
|
|
587
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
588
|
-
}
|
|
589
|
-
function _nonIterableRest() {
|
|
590
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
591
553
|
}
|
|
592
554
|
|
|
593
555
|
var ENUM = {
|
|
@@ -1097,13 +1059,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1097
1059
|
imgHtml.innerHTML = str;
|
|
1098
1060
|
}
|
|
1099
1061
|
// 测试使用 测试类型缩小 end
|
|
1100
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1062
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1101
1063
|
className: "clomnsImg"
|
|
1102
1064
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1103
1065
|
src: url,
|
|
1104
1066
|
width: "16px",
|
|
1105
1067
|
height: "16px"
|
|
1106
|
-
}, paramsObj)))) : (
|
|
1068
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1107
1069
|
className: "clomnsImg2"
|
|
1108
1070
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1109
1071
|
src: noImg
|
|
@@ -1242,7 +1204,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1242
1204
|
}
|
|
1243
1205
|
save_link.click();
|
|
1244
1206
|
}
|
|
1245
|
-
var
|
|
1207
|
+
var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
1246
1208
|
return data.map(function (item) {
|
|
1247
1209
|
if (!item.name || !item.path) {
|
|
1248
1210
|
return null;
|
|
@@ -1262,7 +1224,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1262
1224
|
authority: item.authority || parentAuthority
|
|
1263
1225
|
});
|
|
1264
1226
|
if (item.routes) {
|
|
1265
|
-
var children =
|
|
1227
|
+
var children = _formatter(item.routes, item.authority, locale);
|
|
1266
1228
|
// Reduce memory usage
|
|
1267
1229
|
result.children = children;
|
|
1268
1230
|
}
|
|
@@ -1272,7 +1234,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1272
1234
|
return item;
|
|
1273
1235
|
});
|
|
1274
1236
|
};
|
|
1275
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1237
|
+
var memoizeOneFormatter = memoizeOne(_formatter, isEqual);
|
|
1276
1238
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1277
1239
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1278
1240
|
if (backHistoryPath) {
|
|
@@ -1581,7 +1543,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1581
1543
|
// sheepMap是表头字段中英文映射
|
|
1582
1544
|
// sheetCount:表的数量,默认一张
|
|
1583
1545
|
var resolveFile = /*#__PURE__*/function () {
|
|
1584
|
-
var _ref3 = _asyncToGenerator(
|
|
1546
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1585
1547
|
var config,
|
|
1586
1548
|
data,
|
|
1587
1549
|
_args = arguments;
|
|
@@ -1620,7 +1582,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1620
1582
|
}();
|
|
1621
1583
|
//读取文件
|
|
1622
1584
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1623
|
-
var _ref4 = _asyncToGenerator(
|
|
1585
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1624
1586
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1625
1587
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1626
1588
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1713,14 +1675,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1713
1675
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1714
1676
|
|
|
1715
1677
|
// 获取树平行结构
|
|
1716
|
-
var
|
|
1678
|
+
var _coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1717
1679
|
var childrenKey = chilKey || 'children';
|
|
1718
1680
|
treeData.forEach(function (el) {
|
|
1719
1681
|
var _el$childrenKey;
|
|
1720
1682
|
result.push(el);
|
|
1721
1683
|
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) {
|
|
1722
1684
|
// 子级递归
|
|
1723
|
-
|
|
1685
|
+
_coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1724
1686
|
}
|
|
1725
1687
|
});
|
|
1726
1688
|
return result;
|
|
@@ -1997,13 +1959,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1997
1959
|
imgHtml.innerHTML = str;
|
|
1998
1960
|
}
|
|
1999
1961
|
// 测试使用 测试类型缩小 end
|
|
2000
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1962
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
2001
1963
|
className: "clomnsImg"
|
|
2002
1964
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
2003
1965
|
src: url,
|
|
2004
1966
|
width: "16px",
|
|
2005
1967
|
height: "16px"
|
|
2006
|
-
}, paramsObj)))) : (
|
|
1968
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2007
1969
|
src: noImg
|
|
2008
1970
|
}))));
|
|
2009
1971
|
};
|
|
@@ -2065,7 +2027,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2065
2027
|
}
|
|
2066
2028
|
});
|
|
2067
2029
|
};
|
|
2068
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (
|
|
2030
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2069
2031
|
disabled: disabled,
|
|
2070
2032
|
onChange: function onChange(e) {
|
|
2071
2033
|
var v = e.target.value;
|
|
@@ -2075,7 +2037,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2075
2037
|
width: 170
|
|
2076
2038
|
},
|
|
2077
2039
|
value: inputValue
|
|
2078
|
-
}, inpProps))), type === 'number' && (
|
|
2040
|
+
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2079
2041
|
disabled: disabled,
|
|
2080
2042
|
onBlur: function onBlur(e) {
|
|
2081
2043
|
var v = parseFloat(e.target.value);
|
|
@@ -2454,16 +2416,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2454
2416
|
var handleExportBarCode = handleExport;
|
|
2455
2417
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2456
2418
|
var routerMap = {};
|
|
2457
|
-
var
|
|
2419
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
2458
2420
|
data.forEach(function (menuItem) {
|
|
2459
2421
|
if (menuItem.children) {
|
|
2460
|
-
|
|
2422
|
+
_flattenMenuData(menuItem.children);
|
|
2461
2423
|
}
|
|
2462
2424
|
// Reduce memory usage
|
|
2463
2425
|
routerMap[menuItem.path] = menuItem;
|
|
2464
2426
|
});
|
|
2465
2427
|
};
|
|
2466
|
-
|
|
2428
|
+
_flattenMenuData(menuData);
|
|
2467
2429
|
return routerMap;
|
|
2468
2430
|
};
|
|
2469
2431
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2606,7 +2568,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2606
2568
|
return request$1(url, parms).then(handleResponseData);
|
|
2607
2569
|
};
|
|
2608
2570
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2609
|
-
var _ref2 = _asyncToGenerator(
|
|
2571
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2610
2572
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2611
2573
|
while (1) switch (_context.prev = _context.next) {
|
|
2612
2574
|
case 0:
|
|
@@ -3280,7 +3242,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3280
3242
|
placement: "bottomLeft"
|
|
3281
3243
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3282
3244
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3283
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3245
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3284
3246
|
trigger: ['click'],
|
|
3285
3247
|
overlay: this.menuList,
|
|
3286
3248
|
placement: "bottomRight"
|
|
@@ -3955,7 +3917,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3955
3917
|
placement: "bottomLeft"
|
|
3956
3918
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3957
3919
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3958
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3920
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3959
3921
|
trigger: ['click'],
|
|
3960
3922
|
overlay: this.menuList,
|
|
3961
3923
|
placement: "bottomRight"
|
|
@@ -4150,13 +4112,6 @@ var hasMoreQueryFields = function hasMoreQueryFields(modalTableProps) {
|
|
|
4150
4112
|
var visibleFieldsCount = getVisibleFieldsCount(modalTableProps);
|
|
4151
4113
|
return visibleFieldsCount < (tableSearchForm === null || tableSearchForm === void 0 ? void 0 : tableSearchForm.length);
|
|
4152
4114
|
};
|
|
4153
|
-
var getRealStr = function getRealStr(oldSelect, newSelect, record) {
|
|
4154
|
-
return (oldSelect === null || oldSelect === void 0 ? void 0 : oldSelect.length) ? oldSelect.some(function (o) {
|
|
4155
|
-
return o.value == (record === null || record === void 0 ? void 0 : record.value);
|
|
4156
|
-
}) ? oldSelect.filter(function (s) {
|
|
4157
|
-
return s.value != (record === null || record === void 0 ? void 0 : record.value);
|
|
4158
|
-
}) : [].concat(_toConsumableArray(oldSelect), _toConsumableArray(newSelect)) : newSelect;
|
|
4159
|
-
};
|
|
4160
4115
|
var getTableHeigth = function getTableHeigth(list) {
|
|
4161
4116
|
var totalRows = Math.ceil(((list === null || list === void 0 ? void 0 : list.length) + 1) / 4);
|
|
4162
4117
|
if (totalRows == 1) return 358; // modal弹窗760 调整为700 适应小屏
|
|
@@ -4164,6 +4119,22 @@ var getTableHeigth = function getTableHeigth(list) {
|
|
|
4164
4119
|
};
|
|
4165
4120
|
// ------------------------------------------处理样式相关--结束----------------------------------------
|
|
4166
4121
|
// ------------------------------------------处理数据相关--开始----------------------------------------
|
|
4122
|
+
var formatSelectedValue = function formatSelectedValue(value) {
|
|
4123
|
+
return (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
4124
|
+
return {
|
|
4125
|
+
value: (s === null || s === void 0 ? void 0 : s.value) || s,
|
|
4126
|
+
key: (s === null || s === void 0 ? void 0 : s.key) || (s === null || s === void 0 ? void 0 : s.value) || s,
|
|
4127
|
+
label: (s === null || s === void 0 ? void 0 : s.label) || ''
|
|
4128
|
+
};
|
|
4129
|
+
})) || [];
|
|
4130
|
+
};
|
|
4131
|
+
var getRealStr = function getRealStr(oldSelect, newSelect, record) {
|
|
4132
|
+
return (oldSelect === null || oldSelect === void 0 ? void 0 : oldSelect.length) ? oldSelect.some(function (o) {
|
|
4133
|
+
return o.value == (record === null || record === void 0 ? void 0 : record.value);
|
|
4134
|
+
}) ? oldSelect.filter(function (s) {
|
|
4135
|
+
return s.value != (record === null || record === void 0 ? void 0 : record.value);
|
|
4136
|
+
}) : [].concat(_toConsumableArray(oldSelect), _toConsumableArray(newSelect)) : newSelect;
|
|
4137
|
+
};
|
|
4167
4138
|
var getCurrentSRKs = function getCurrentSRKs(selectMode, labelInValue, value) {
|
|
4168
4139
|
return selectMode ? labelInValue ? value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
4169
4140
|
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
@@ -4192,6 +4163,40 @@ var getRenderSource = function getRenderSource(currentSRKs, items) {
|
|
|
4192
4163
|
return [].concat(_toConsumableArray(selectedOptionSort), _toConsumableArray(otherOptions));
|
|
4193
4164
|
};
|
|
4194
4165
|
// ------------------------------------------处理数据相关--结束----------------------------------------
|
|
4166
|
+
// ------------------------------------------查询相关--开始----------------------------------------
|
|
4167
|
+
//处理单据编号查询 如果是查询单条数据 就是模糊查询 两条以上就是精准查询
|
|
4168
|
+
var convertOrderNo = function convertOrderNo(params) {
|
|
4169
|
+
//需要处理得编号字段名
|
|
4170
|
+
var arr = ['qp-skuCode-in', 'qp-eancode-in'];
|
|
4171
|
+
for (var i = 0; i < arr.length; i++) {
|
|
4172
|
+
if (params[arr[i]]) {
|
|
4173
|
+
if (!params[arr[i]].includes(',')) {
|
|
4174
|
+
params[arr[i].replace(/(.*)in/, '$1like')] = params[arr[i]];
|
|
4175
|
+
delete params[arr[i]];
|
|
4176
|
+
}
|
|
4177
|
+
}
|
|
4178
|
+
}
|
|
4179
|
+
return params;
|
|
4180
|
+
};
|
|
4181
|
+
var convertQueryParams = function convertQueryParams(params) {
|
|
4182
|
+
var result = convertOrderNo(params);
|
|
4183
|
+
return omit(result, ['UNIQUE_SPEC']); // 处理sku选择器属性参数
|
|
4184
|
+
};
|
|
4185
|
+
var convertUrlQueryParams = function convertUrlQueryParams(params) {
|
|
4186
|
+
// 非query请求:默认参数拼接URL,设置属性noUrlQueryParams可不拼接
|
|
4187
|
+
return (params === null || params === void 0 ? void 0 : params.noUrlQueryParams) ? '' : "?".concat(stringify(convertQueryParams(params)));
|
|
4188
|
+
};
|
|
4189
|
+
var convertBodyParams = function convertBodyParams(params) {
|
|
4190
|
+
// 处理sku选择器属性参数
|
|
4191
|
+
var unique_params = null;
|
|
4192
|
+
if (params['UNIQUE_SPEC']) {
|
|
4193
|
+
var _params$UNIQUE_SPEC;
|
|
4194
|
+
unique_params = ((_params$UNIQUE_SPEC = params['UNIQUE_SPEC']) === null || _params$UNIQUE_SPEC === void 0 ? void 0 : _params$UNIQUE_SPEC.propertyList) || [];
|
|
4195
|
+
}
|
|
4196
|
+
// body参数来源:sku选择器固定参数 > 调用所传bodyParams > 默认参数-无
|
|
4197
|
+
return unique_params || (params === null || params === void 0 ? void 0 : params.bodyParams) || null;
|
|
4198
|
+
};
|
|
4199
|
+
// ------------------------------------------查询相关--结束----------------------------------------
|
|
4195
4200
|
|
|
4196
4201
|
var zhankaitiaojian = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Ezhankaitiaojian-icon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%28-702.000000%2C%20-498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22zhankaitiaojian-icon%22%20transform%3D%22translate%28702.000000%2C%20498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.0142082%2C6%20L18%2C11.9972435%20L12.0142082%2C18%20L11.04209%2C17.0260337%20L16.0562218%2C11.9972435%20L11.04209%2C6.97396631%20L12.0142082%2C6%20Z%20M6.97257658%2C6%20L12.9583683%2C11.9972435%20L6.97257658%2C18%20L6.00091666%2C17.0260337%20L11.0150485%2C11.9972435%20L6%2C6.97396631%20L6.97257658%2C6%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%20transform%3D%22translate%2812.000000%2C%2012.000000%29%20rotate%28-270.000000%29%20translate%28-12.000000%2C%20-12.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
4197
4202
|
|
|
@@ -4354,7 +4359,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4354
4359
|
title: item.name,
|
|
4355
4360
|
className: "propertyGroup_checkbox_container"
|
|
4356
4361
|
}, item.name));
|
|
4357
|
-
}), !!notCommonUseProperty.length && (
|
|
4362
|
+
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
4358
4363
|
style: {
|
|
4359
4364
|
width: '50px',
|
|
4360
4365
|
cursor: 'pointer',
|
|
@@ -4367,7 +4372,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4367
4372
|
setShowNotCommon(!showNotCommon);
|
|
4368
4373
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4369
4374
|
}
|
|
4370
|
-
}, showNotCommon && (
|
|
4375
|
+
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4371
4376
|
};
|
|
4372
4377
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4373
4378
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -4597,7 +4602,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4597
4602
|
propertyData: item,
|
|
4598
4603
|
handleProperyItemChange: handleProperyItemChange
|
|
4599
4604
|
});
|
|
4600
|
-
}))), !!notCommonProperty.length && (
|
|
4605
|
+
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
4601
4606
|
style: {
|
|
4602
4607
|
width: '50px',
|
|
4603
4608
|
cursor: 'pointer',
|
|
@@ -4607,7 +4612,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4607
4612
|
onClick: function onClick() {
|
|
4608
4613
|
return setShowNotCommon(!showNotCommon);
|
|
4609
4614
|
}
|
|
4610
|
-
}, showNotCommon && (
|
|
4615
|
+
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
4611
4616
|
};
|
|
4612
4617
|
|
|
4613
4618
|
var Option$1 = Select.Option;
|
|
@@ -4628,7 +4633,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4628
4633
|
_props$needModalTable = props.needModalTable,
|
|
4629
4634
|
needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
|
|
4630
4635
|
_props$getPopupContai = props.getPopupContainer,
|
|
4631
|
-
_getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai,
|
|
4632
4636
|
_props$highestPopCont = props.highestPopContainer,
|
|
4633
4637
|
highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
|
|
4634
4638
|
fieldComponent = props.fieldComponent,
|
|
@@ -4636,6 +4640,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4636
4640
|
selectBusinessType = props.selectBusinessType;
|
|
4637
4641
|
var _ref = requestConfig || {},
|
|
4638
4642
|
url = _ref.url,
|
|
4643
|
+
_ref$method = _ref.method,
|
|
4644
|
+
method = _ref$method === void 0 ? 'get' : _ref$method,
|
|
4639
4645
|
otherParams = _ref.otherParams,
|
|
4640
4646
|
isMap = _ref.isMap,
|
|
4641
4647
|
fixedparameter = _ref.fixedparameter,
|
|
@@ -4683,7 +4689,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4683
4689
|
var isFormPage = ((_pathname$match = pathname.match(pattern)) === null || _pathname$match === void 0 ? void 0 : _pathname$match.length) > 0;
|
|
4684
4690
|
var initPagination = {
|
|
4685
4691
|
showQuickJumper: true,
|
|
4686
|
-
showSizeChanger:
|
|
4692
|
+
showSizeChanger: true,
|
|
4687
4693
|
showTotal: function showTotal(total) {
|
|
4688
4694
|
return "\u5171 ".concat(total, " \u6761");
|
|
4689
4695
|
},
|
|
@@ -4882,7 +4888,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4882
4888
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4883
4889
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
4884
4890
|
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
4885
|
-
var bodyParams = arguments.length > 3 ? arguments[3] : undefined;
|
|
4886
4891
|
if (!requestConfig) return;
|
|
4887
4892
|
setFetching(true);
|
|
4888
4893
|
// 处理dependence参数
|
|
@@ -5011,112 +5016,17 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5011
5016
|
if (isNil(queryParams[selectParamsKey])) {
|
|
5012
5017
|
queryParams[selectParamsKey] = searchValue;
|
|
5013
5018
|
}
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
}
|
|
5022
|
-
var res = result.data;
|
|
5023
|
-
var source = [];
|
|
5024
|
-
if (isMap) {
|
|
5025
|
-
source = Object.keys(res).map(function (d, i) {
|
|
5026
|
-
return {
|
|
5027
|
-
text: Object.values(res)[i],
|
|
5028
|
-
value: d
|
|
5029
|
-
};
|
|
5030
|
-
});
|
|
5031
|
-
} else {
|
|
5032
|
-
var keys = res.list ? 'list' : 'items';
|
|
5033
|
-
source = res ? res[keys] ? res[keys].map(function (item, index) {
|
|
5034
|
-
var _item$children;
|
|
5035
|
-
var textShowText = item[mappingTextField];
|
|
5036
|
-
if (mappingTextShowTextField) {
|
|
5037
|
-
textShowText = [];
|
|
5038
|
-
if (Array.isArray(mappingTextShowTextField)) {
|
|
5039
|
-
mappingTextShowTextField.forEach(function (r) {
|
|
5040
|
-
textShowText.push(item[r]);
|
|
5041
|
-
});
|
|
5042
|
-
} else {
|
|
5043
|
-
textShowText = item[mappingTextShowTextField];
|
|
5044
|
-
}
|
|
5045
|
-
}
|
|
5046
|
-
if (!(item === null || item === void 0 ? void 0 : (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length)) {
|
|
5047
|
-
item === null || item === void 0 ? true : delete item.children;
|
|
5048
|
-
}
|
|
5049
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
5050
|
-
text: specialBracket ? "\u3010".concat(item[mappingValueField], "\u3011").concat(item[mappingTextField]) : item[mappingTextField],
|
|
5051
|
-
textShowText: textShowText,
|
|
5052
|
-
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
5053
|
-
value: item[mappingValueField],
|
|
5054
|
-
keyIndex: type != 1 ? ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.currentPage) - 1) * (queryParams === null || queryParams === void 0 ? void 0 : queryParams.pageSize) + index + 1 : index + 1
|
|
5055
|
-
});
|
|
5056
|
-
}) : Array.isArray(res) && (res === null || res === void 0 ? void 0 : res.map(function (item, index) {
|
|
5057
|
-
var _item$children2;
|
|
5058
|
-
var textShowText = item[mappingTextField];
|
|
5059
|
-
if (mappingTextShowTextField) {
|
|
5060
|
-
textShowText = [];
|
|
5061
|
-
if (Array.isArray(mappingTextShowTextField)) {
|
|
5062
|
-
mappingTextShowTextField.forEach(function (r) {
|
|
5063
|
-
textShowText.push(item[r]);
|
|
5064
|
-
});
|
|
5065
|
-
} else {
|
|
5066
|
-
textShowText = item[mappingTextShowTextField];
|
|
5067
|
-
}
|
|
5068
|
-
}
|
|
5069
|
-
if (!(item === null || item === void 0 ? void 0 : (_item$children2 = item.children) === null || _item$children2 === void 0 ? void 0 : _item$children2.length)) {
|
|
5070
|
-
item === null || item === void 0 ? true : delete item.children;
|
|
5071
|
-
}
|
|
5072
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
5073
|
-
text: specialBracket ? "\u3010".concat(item[mappingValueField], "\u3011").concat(item[mappingTextField]) : item[mappingTextField],
|
|
5074
|
-
textShowText: textShowText,
|
|
5075
|
-
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
5076
|
-
value: item[mappingValueField],
|
|
5077
|
-
keyIndex: type != 1 ? ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.currentPage) - 1) * (queryParams === null || queryParams === void 0 ? void 0 : queryParams.pageSize) + index + 1 : index + 1
|
|
5078
|
-
});
|
|
5079
|
-
})) : [];
|
|
5080
|
-
}
|
|
5081
|
-
// 补充搜索项--选中的数据添加到数据源中去
|
|
5082
|
-
var currentSRKs = getCurrentSRKs(selectMode, labelInValue, value);
|
|
5083
|
-
if (type === 1 && (currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length) && (currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.some(function (s) {
|
|
5084
|
-
var _source;
|
|
5085
|
-
return !((_source = source) === null || _source === void 0 ? void 0 : _source.find(function (r) {
|
|
5086
|
-
return r.value == s;
|
|
5087
|
-
}));
|
|
5088
|
-
}))) {
|
|
5089
|
-
var selectedOption = items.filter(function (option) {
|
|
5090
|
-
return currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value);
|
|
5091
|
-
}) || [];
|
|
5092
|
-
source = (source || []).concat(selectedOption);
|
|
5093
|
-
}
|
|
5094
|
-
// 数据源 不可以有重复key
|
|
5095
|
-
source = Array.isArray(source) ? _.uniqBy(source, 'value') : [];
|
|
5096
|
-
if (callback) {
|
|
5097
|
-
callback(source);
|
|
5098
|
-
} else {
|
|
5099
|
-
if (type === 1) {
|
|
5100
|
-
var _ctx$form;
|
|
5101
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(resultSourceKey, source);
|
|
5102
|
-
setSelectDataSource(source, Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length));
|
|
5103
|
-
} else {
|
|
5104
|
-
setTableData(source);
|
|
5105
|
-
setTablePagination(_objectSpread2(_objectSpread2({}, tablePagination), {}, {
|
|
5106
|
-
total: Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length),
|
|
5107
|
-
pageSize: Number((res === null || res === void 0 ? void 0 : res.size) || (res === null || res === void 0 ? void 0 : res.pageSize) || (params === null || params === void 0 ? void 0 : params.pageSize) || pageSize),
|
|
5108
|
-
current: Number((res === null || res === void 0 ? void 0 : res.page) || (res === null || res === void 0 ? void 0 : res.currentPage) || (params === null || params === void 0 ? void 0 : params.currentPage) || currentPage)
|
|
5109
|
-
}));
|
|
5110
|
-
}
|
|
5111
|
-
}
|
|
5112
|
-
}).catch(function (err) {
|
|
5113
|
-
setFetching(false);
|
|
5019
|
+
var getRequest;
|
|
5020
|
+
var methodName = method === null || method === void 0 ? void 0 : method.toLocaleLowerCase();
|
|
5021
|
+
if (['post', 'patch', 'put'].includes(methodName)) {
|
|
5022
|
+
getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams));
|
|
5023
|
+
} else {
|
|
5024
|
+
getRequest = requestUtil.get("".concat(url).concat(convertUrlQueryParams(queryParams)), {
|
|
5025
|
+
headers: _objectSpread2({}, extralHeaders)
|
|
5114
5026
|
});
|
|
5115
|
-
return;
|
|
5116
5027
|
}
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
}).then(function (result) {
|
|
5028
|
+
if (!url || !getRequest) return;
|
|
5029
|
+
getRequest.then(function (result) {
|
|
5120
5030
|
setFetching(false);
|
|
5121
5031
|
result = result.data;
|
|
5122
5032
|
if (judgeIsRequestError(result)) {
|
|
@@ -5135,7 +5045,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5135
5045
|
} else {
|
|
5136
5046
|
var keys = res.list ? 'list' : 'items';
|
|
5137
5047
|
source = res ? res[keys] ? res[keys].map(function (item, index) {
|
|
5138
|
-
var _item$
|
|
5048
|
+
var _item$children;
|
|
5139
5049
|
var textShowText = item[mappingTextField];
|
|
5140
5050
|
if (mappingTextShowTextField) {
|
|
5141
5051
|
textShowText = [];
|
|
@@ -5147,7 +5057,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5147
5057
|
textShowText = item[mappingTextShowTextField];
|
|
5148
5058
|
}
|
|
5149
5059
|
}
|
|
5150
|
-
if (!(item === null || item === void 0 ? void 0 : (_item$
|
|
5060
|
+
if (!(item === null || item === void 0 ? void 0 : (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length)) {
|
|
5151
5061
|
item === null || item === void 0 ? true : delete item.children;
|
|
5152
5062
|
}
|
|
5153
5063
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -5158,7 +5068,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5158
5068
|
keyIndex: type != 1 ? ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.currentPage) - 1) * (queryParams === null || queryParams === void 0 ? void 0 : queryParams.pageSize) + index + 1 : index + 1
|
|
5159
5069
|
});
|
|
5160
5070
|
}) : Array.isArray(res) && (res === null || res === void 0 ? void 0 : res.map(function (item, index) {
|
|
5161
|
-
var _item$
|
|
5071
|
+
var _item$children2;
|
|
5162
5072
|
var textShowText = item[mappingTextField];
|
|
5163
5073
|
if (mappingTextShowTextField) {
|
|
5164
5074
|
textShowText = [];
|
|
@@ -5170,7 +5080,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5170
5080
|
textShowText = item[mappingTextShowTextField];
|
|
5171
5081
|
}
|
|
5172
5082
|
}
|
|
5173
|
-
if (!(item === null || item === void 0 ? void 0 : (_item$
|
|
5083
|
+
if (!(item === null || item === void 0 ? void 0 : (_item$children2 = item.children) === null || _item$children2 === void 0 ? void 0 : _item$children2.length)) {
|
|
5174
5084
|
item === null || item === void 0 ? true : delete item.children;
|
|
5175
5085
|
}
|
|
5176
5086
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -5185,8 +5095,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5185
5095
|
// 补充搜索项--选中的数据添加到数据源中去
|
|
5186
5096
|
var currentSRKs = getCurrentSRKs(selectMode, labelInValue, value);
|
|
5187
5097
|
if (type === 1 && (currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length) && (currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.some(function (s) {
|
|
5188
|
-
var
|
|
5189
|
-
return !((
|
|
5098
|
+
var _source;
|
|
5099
|
+
return !((_source = source) === null || _source === void 0 ? void 0 : _source.find(function (r) {
|
|
5190
5100
|
return r.value == s;
|
|
5191
5101
|
}));
|
|
5192
5102
|
}))) {
|
|
@@ -5201,8 +5111,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5201
5111
|
callback(source);
|
|
5202
5112
|
} else {
|
|
5203
5113
|
if (type === 1) {
|
|
5204
|
-
var _ctx$
|
|
5205
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$
|
|
5114
|
+
var _ctx$form;
|
|
5115
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(resultSourceKey, source);
|
|
5206
5116
|
setSelectDataSource(source, Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length));
|
|
5207
5117
|
} else {
|
|
5208
5118
|
setTableData(source);
|
|
@@ -5346,10 +5256,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5346
5256
|
};
|
|
5347
5257
|
var handleSelectOver = function handleSelectOver(selectedValue) {
|
|
5348
5258
|
if (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.length) {
|
|
5349
|
-
var _ctx$
|
|
5259
|
+
var _ctx$form2;
|
|
5350
5260
|
// 解决选择最后1页的sku,返回后,不显示名称问题
|
|
5351
5261
|
var source = _.uniqBy(items.concat(selectedValue), 'value');
|
|
5352
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$
|
|
5262
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form2 = ctx.form) === null || _ctx$form2 === void 0 ? void 0 : _ctx$form2.setFieldSource(resultSourceKey, source);
|
|
5353
5263
|
setSelectDataSource(source, source === null || source === void 0 ? void 0 : source.length);
|
|
5354
5264
|
formaData(selectedValue, source);
|
|
5355
5265
|
} else {
|
|
@@ -5438,17 +5348,11 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5438
5348
|
};
|
|
5439
5349
|
var onSearchTable = function onSearchTable() {
|
|
5440
5350
|
var params = form.getFieldsValue();
|
|
5441
|
-
// const isHaveParams = params && Object.keys(params).filter(item => params[item]).length > 0;
|
|
5442
5351
|
setModalSearched(true);
|
|
5443
|
-
var unique_params = null;
|
|
5444
|
-
if (params['UNIQUE_SPEC']) {
|
|
5445
|
-
var _params$UNIQUE_SPEC;
|
|
5446
|
-
unique_params = ((_params$UNIQUE_SPEC = params['UNIQUE_SPEC']) === null || _params$UNIQUE_SPEC === void 0 ? void 0 : _params$UNIQUE_SPEC.propertyList) || [];
|
|
5447
|
-
}
|
|
5448
5352
|
setTableFormParams(params);
|
|
5449
5353
|
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
5450
5354
|
pageSize: tableInitPageSize
|
|
5451
|
-
}), 2, null
|
|
5355
|
+
}), 2, null);
|
|
5452
5356
|
};
|
|
5453
5357
|
var onResetTable = function onResetTable() {
|
|
5454
5358
|
form.resetFields();
|
|
@@ -5687,13 +5591,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5687
5591
|
var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
|
|
5688
5592
|
return collapsed ? formItem(list === null || list === void 0 ? void 0 : list.slice(0, viCount)) : formItem(list);
|
|
5689
5593
|
};
|
|
5690
|
-
// const queryFieldsDom = <SearchItemTable
|
|
5691
|
-
// ref={searchTableRef}
|
|
5692
|
-
// setShowSearchFields={setShowSearchFields||[]}
|
|
5693
|
-
// showSearchFields={showSearchFields||[]}
|
|
5694
|
-
// datasource={modalTableProps?.tableSearchForm || []}
|
|
5695
|
-
// bsTableCode={bsTableCode}
|
|
5696
|
-
// />
|
|
5697
5594
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
5698
5595
|
var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
|
|
5699
5596
|
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - 82px)"); // 分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
@@ -5708,7 +5605,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5708
5605
|
columns: tableShowColumns,
|
|
5709
5606
|
dataSource: tableList
|
|
5710
5607
|
}, type == 'noPage' ? {
|
|
5711
|
-
pagination: initPagination,
|
|
5608
|
+
pagination: _objectSpread2(_objectSpread2({}, initPagination), {}, {
|
|
5609
|
+
showSizeChanger: false
|
|
5610
|
+
}),
|
|
5712
5611
|
locale: {
|
|
5713
5612
|
emptyText: '暂无已选结果'
|
|
5714
5613
|
}
|
|
@@ -5771,11 +5670,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5771
5670
|
resetSelectDataSource(true);
|
|
5772
5671
|
};
|
|
5773
5672
|
var onDeselect = function onDeselect() {
|
|
5774
|
-
var oldSelect = (value
|
|
5775
|
-
return {
|
|
5776
|
-
value: (s === null || s === void 0 ? void 0 : s.value) || s
|
|
5777
|
-
};
|
|
5778
|
-
})) || [];
|
|
5673
|
+
var oldSelect = formatSelectedValue(value);
|
|
5779
5674
|
var deRecord = arguments.length <= 1 ? undefined : arguments[1];
|
|
5780
5675
|
var srs = oldSelect.filter(function (s) {
|
|
5781
5676
|
return s.value != (deRecord === null || deRecord === void 0 ? void 0 : deRecord.value);
|
|
@@ -5814,14 +5709,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5814
5709
|
selectedRowKeys: currentSRKs,
|
|
5815
5710
|
preserveSelectedRowKeys: true,
|
|
5816
5711
|
onChange: function onChange(sks, srs) {
|
|
5817
|
-
|
|
5818
|
-
var oldSelect = (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
5819
|
-
return {
|
|
5820
|
-
value: (s === null || s === void 0 ? void 0 : s.value) || s,
|
|
5821
|
-
key: (s === null || s === void 0 ? void 0 : s.key) || s,
|
|
5822
|
-
label: (s === null || s === void 0 ? void 0 : s.label) || ''
|
|
5823
|
-
};
|
|
5824
|
-
})) || [];
|
|
5712
|
+
var oldSelect = formatSelectedValue(value);
|
|
5825
5713
|
var tmpSelectedRows = oldSelect.concat(srs).filter(function (item) {
|
|
5826
5714
|
return item != undefined;
|
|
5827
5715
|
});
|
|
@@ -5840,13 +5728,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5840
5728
|
onClick: function onClick(event) {
|
|
5841
5729
|
event.stopPropagation();
|
|
5842
5730
|
event.nativeEvent.stopImmediatePropagation();
|
|
5843
|
-
var oldSelect = (value
|
|
5844
|
-
return {
|
|
5845
|
-
value: (s === null || s === void 0 ? void 0 : s.value) || s,
|
|
5846
|
-
key: (s === null || s === void 0 ? void 0 : s.key) || s,
|
|
5847
|
-
label: (s === null || s === void 0 ? void 0 : s.label) || ''
|
|
5848
|
-
};
|
|
5849
|
-
})) || [];
|
|
5731
|
+
var oldSelect = formatSelectedValue(value);
|
|
5850
5732
|
var newSelect = [JSON.parse(JSON.stringify(record))];
|
|
5851
5733
|
var srs = getRealStr(oldSelect, newSelect, record);
|
|
5852
5734
|
onSelectClick(srs, dataSource, false);
|
|
@@ -5894,7 +5776,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5894
5776
|
destroyTooltipOnHide: true,
|
|
5895
5777
|
placement: "topRight",
|
|
5896
5778
|
autoAdjustOverflow: false,
|
|
5897
|
-
title: (
|
|
5779
|
+
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
5898
5780
|
style: {
|
|
5899
5781
|
margin: '6px 8px 0px'
|
|
5900
5782
|
},
|
|
@@ -5966,13 +5848,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5966
5848
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5967
5849
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5968
5850
|
className: 'search_select'
|
|
5969
|
-
}, fieldComponent ? (
|
|
5851
|
+
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5970
5852
|
onClick: function onClick() {
|
|
5971
5853
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5972
5854
|
(_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);
|
|
5973
5855
|
showModal();
|
|
5974
5856
|
}
|
|
5975
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
5857
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5976
5858
|
title: getShowStr(),
|
|
5977
5859
|
style: {
|
|
5978
5860
|
overflow: 'hidden',
|
|
@@ -5999,10 +5881,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5999
5881
|
dropdownRender: function dropdownRender(menu) {
|
|
6000
5882
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6001
5883
|
},
|
|
6002
|
-
notFoundContent: fetching ? (
|
|
5884
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6003
5885
|
size: "small",
|
|
6004
5886
|
className: 'searchSelectSpin'
|
|
6005
|
-
})) : (
|
|
5887
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6006
5888
|
style: {
|
|
6007
5889
|
textAlign: 'center'
|
|
6008
5890
|
}
|
|
@@ -6023,7 +5905,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6023
5905
|
}, /*#__PURE__*/React$1.createElement(SearchOutlined, null))
|
|
6024
5906
|
} : {}), currentSelectProps), {}, {
|
|
6025
5907
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
6026
|
-
return highestPopContainer && highestPopContainer() || triggerNode.parentElement
|
|
5908
|
+
return highestPopContainer && highestPopContainer(triggerNode) || triggerNode.parentElement;
|
|
6027
5909
|
}
|
|
6028
5910
|
}), items.map(function (item) {
|
|
6029
5911
|
return /*#__PURE__*/React$1.createElement(Option$1, {
|
|
@@ -6033,7 +5915,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6033
5915
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6034
5916
|
filterTxt: searchValue
|
|
6035
5917
|
}));
|
|
6036
|
-
}))), needModalTable && isModalVisible && (
|
|
5918
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6037
5919
|
maskClosable: false,
|
|
6038
5920
|
destroyOnClose: true,
|
|
6039
5921
|
width: "80%",
|
|
@@ -6630,7 +6512,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6630
6512
|
style: {
|
|
6631
6513
|
width: 525
|
|
6632
6514
|
}
|
|
6633
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
6515
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6634
6516
|
checked: !dataSource.some(function (item) {
|
|
6635
6517
|
if (item.hidden) return true;
|
|
6636
6518
|
return false;
|
|
@@ -6668,13 +6550,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6668
6550
|
_this2.onChange(e, item.title);
|
|
6669
6551
|
}
|
|
6670
6552
|
}, item.title);
|
|
6671
|
-
}), !!seatchDataSource.length && (
|
|
6553
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6672
6554
|
style: {
|
|
6673
6555
|
width: '144px'
|
|
6674
6556
|
}
|
|
6675
|
-
})), !seatchDataSource.length && (
|
|
6557
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6676
6558
|
className: 'sort_table_column_all_empty'
|
|
6677
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
6559
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6678
6560
|
className: 'sort_table_column_special'
|
|
6679
6561
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6680
6562
|
className: 'sort_table_column_all'
|
|
@@ -6863,7 +6745,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6863
6745
|
});
|
|
6864
6746
|
};
|
|
6865
6747
|
// 格式化树选择器数据源
|
|
6866
|
-
var
|
|
6748
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6867
6749
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6868
6750
|
return {
|
|
6869
6751
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6873,7 +6755,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6873
6755
|
isLeaf: !haveChildren,
|
|
6874
6756
|
disabled: haveChildren,
|
|
6875
6757
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6876
|
-
return
|
|
6758
|
+
return _mapSearchTree(i, resKeyValue);
|
|
6877
6759
|
}) : []
|
|
6878
6760
|
};
|
|
6879
6761
|
};
|
|
@@ -6882,7 +6764,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6882
6764
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6883
6765
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6884
6766
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6885
|
-
return
|
|
6767
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
6886
6768
|
}) || [];
|
|
6887
6769
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6888
6770
|
};
|
|
@@ -7053,7 +6935,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7053
6935
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7054
6936
|
// FIXME: 特殊业务逻辑
|
|
7055
6937
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7056
|
-
var _ref2 = _asyncToGenerator(
|
|
6938
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7057
6939
|
var result;
|
|
7058
6940
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7059
6941
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7306,7 +7188,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7306
7188
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7307
7189
|
value: text || null,
|
|
7308
7190
|
onChange: function () {
|
|
7309
|
-
var _onChange = _asyncToGenerator(
|
|
7191
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7310
7192
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7311
7193
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7312
7194
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7914,10 +7796,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7914
7796
|
var newColumns = arr.map(function (col) {
|
|
7915
7797
|
return _objectSpread2({}, col);
|
|
7916
7798
|
});
|
|
7917
|
-
var
|
|
7799
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
7918
7800
|
var i = indexArr.shift();
|
|
7919
7801
|
if (indexArr.length > 0) {
|
|
7920
|
-
|
|
7802
|
+
_handleIndex(arr[i].children, indexArr);
|
|
7921
7803
|
} else {
|
|
7922
7804
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7923
7805
|
width: size.width
|
|
@@ -7925,7 +7807,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7925
7807
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7926
7808
|
}
|
|
7927
7809
|
};
|
|
7928
|
-
|
|
7810
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
7929
7811
|
callback(newColumns);
|
|
7930
7812
|
};
|
|
7931
7813
|
};
|
|
@@ -7935,13 +7817,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7935
7817
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7936
7818
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7937
7819
|
};
|
|
7938
|
-
var
|
|
7820
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7939
7821
|
arr.forEach(function (item, index) {
|
|
7940
7822
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7941
7823
|
return i || i === 0;
|
|
7942
7824
|
});
|
|
7943
7825
|
if (noEmptyArray$1(item.children)) {
|
|
7944
|
-
|
|
7826
|
+
_handleColumns(item.children, indexArrInside);
|
|
7945
7827
|
} else {
|
|
7946
7828
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7947
7829
|
item.onHeaderCell = function (column) {
|
|
@@ -7957,14 +7839,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7957
7839
|
handleAntdColumnsSpecialParams(item);
|
|
7958
7840
|
return _objectSpread2({}, item);
|
|
7959
7841
|
});
|
|
7960
|
-
|
|
7842
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
7961
7843
|
return setShowToChooseColumnsCallback(res);
|
|
7962
7844
|
});
|
|
7963
7845
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7964
7846
|
handleAntdColumnsSpecialParams(item);
|
|
7965
7847
|
return _objectSpread2({}, item);
|
|
7966
7848
|
});
|
|
7967
|
-
|
|
7849
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
7968
7850
|
return setShowColumnsCallback(res);
|
|
7969
7851
|
});
|
|
7970
7852
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7975,7 +7857,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7975
7857
|
id: "add_select_div_".concat(uniqueValue)
|
|
7976
7858
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7977
7859
|
onClick: handleShowModal
|
|
7978
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
7860
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7979
7861
|
width: '1200px',
|
|
7980
7862
|
style: {
|
|
7981
7863
|
top: 20
|
|
@@ -8889,7 +8771,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8889
8771
|
});
|
|
8890
8772
|
};
|
|
8891
8773
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8892
|
-
var _ref4 = _asyncToGenerator(
|
|
8774
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8893
8775
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8894
8776
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8895
8777
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8972,10 +8854,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8972
8854
|
var newColumns = arr.map(function (col) {
|
|
8973
8855
|
return _objectSpread2({}, col);
|
|
8974
8856
|
});
|
|
8975
|
-
var
|
|
8857
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8976
8858
|
var i = indexArr.shift();
|
|
8977
8859
|
if (indexArr.length > 0) {
|
|
8978
|
-
|
|
8860
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8979
8861
|
} else {
|
|
8980
8862
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8981
8863
|
width: size.width
|
|
@@ -8983,17 +8865,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8983
8865
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8984
8866
|
}
|
|
8985
8867
|
};
|
|
8986
|
-
|
|
8868
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8987
8869
|
callback(newColumns);
|
|
8988
8870
|
};
|
|
8989
8871
|
};
|
|
8990
|
-
var
|
|
8872
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8991
8873
|
arr.forEach(function (item, index) {
|
|
8992
8874
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8993
8875
|
return i || i === 0;
|
|
8994
8876
|
});
|
|
8995
8877
|
if (noEmptyArray$1(item.children)) {
|
|
8996
|
-
|
|
8878
|
+
_handleColumns(item.children, indexArrInside);
|
|
8997
8879
|
} else {
|
|
8998
8880
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8999
8881
|
item.onHeaderCell = function (column) {
|
|
@@ -9009,7 +8891,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9009
8891
|
handleAntdColumnsSpecialParams(item);
|
|
9010
8892
|
return _objectSpread2({}, item);
|
|
9011
8893
|
});
|
|
9012
|
-
|
|
8894
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
9013
8895
|
return setShowColumnsCallback(res);
|
|
9014
8896
|
});
|
|
9015
8897
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9324,7 +9206,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9324
9206
|
});
|
|
9325
9207
|
};
|
|
9326
9208
|
// 格式化树选择器数据源
|
|
9327
|
-
var
|
|
9209
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9328
9210
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9329
9211
|
return {
|
|
9330
9212
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9334,7 +9216,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9334
9216
|
isLeaf: !haveChildren,
|
|
9335
9217
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9336
9218
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9337
|
-
return
|
|
9219
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9338
9220
|
}) : []
|
|
9339
9221
|
};
|
|
9340
9222
|
};
|
|
@@ -9348,7 +9230,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9348
9230
|
disabledJudge = false;
|
|
9349
9231
|
}
|
|
9350
9232
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9351
|
-
return
|
|
9233
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9352
9234
|
}) || [];
|
|
9353
9235
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9354
9236
|
};
|
|
@@ -9617,7 +9499,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9617
9499
|
label: 'SKU名称'
|
|
9618
9500
|
}, {
|
|
9619
9501
|
name: 'qp-itemCode-like',
|
|
9620
|
-
label: '
|
|
9502
|
+
label: 'SPU编码'
|
|
9621
9503
|
}, {
|
|
9622
9504
|
name: 'qp-eancode-in',
|
|
9623
9505
|
label: '商品条码',
|
|
@@ -13418,7 +13300,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13418
13300
|
};
|
|
13419
13301
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
13420
13302
|
onClick: handleShowModal
|
|
13421
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
13303
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13422
13304
|
onOk: handleOk,
|
|
13423
13305
|
onCancel: handleCancel,
|
|
13424
13306
|
destroyOnClose: true,
|
|
@@ -13537,7 +13419,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13537
13419
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13538
13420
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13539
13421
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13540
|
-
var
|
|
13422
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13541
13423
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13542
13424
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13543
13425
|
return {
|
|
@@ -13549,7 +13431,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13549
13431
|
isLeaf: !haveChildren,
|
|
13550
13432
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13551
13433
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13552
|
-
return
|
|
13434
|
+
return _mapSearchTree(i);
|
|
13553
13435
|
}) : []
|
|
13554
13436
|
};
|
|
13555
13437
|
};
|
|
@@ -13567,8 +13449,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13567
13449
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13568
13450
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
13569
13451
|
headers: headers
|
|
13570
|
-
}).then(
|
|
13571
|
-
var _ref = _asyncToGenerator(
|
|
13452
|
+
}).then(/*#__PURE__*/function () {
|
|
13453
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13572
13454
|
var _ctx$form;
|
|
13573
13455
|
var resData, coverData, data, dataList;
|
|
13574
13456
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13595,7 +13477,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13595
13477
|
case 9:
|
|
13596
13478
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13597
13479
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13598
|
-
return
|
|
13480
|
+
return _mapSearchTree(ites);
|
|
13599
13481
|
}) || [];
|
|
13600
13482
|
case 11:
|
|
13601
13483
|
_context.next = 14;
|
|
@@ -13633,11 +13515,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13633
13515
|
return _formatResult;
|
|
13634
13516
|
}
|
|
13635
13517
|
};
|
|
13636
|
-
var
|
|
13518
|
+
var _parallelData = function parallelData(data, result) {
|
|
13637
13519
|
data.forEach(function (i) {
|
|
13638
13520
|
result.push(i);
|
|
13639
13521
|
if (i[treeChildrenRoom]) {
|
|
13640
|
-
|
|
13522
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
13641
13523
|
}
|
|
13642
13524
|
});
|
|
13643
13525
|
return result;
|
|
@@ -13677,7 +13559,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13677
13559
|
var _ctx$form2;
|
|
13678
13560
|
var handleData = formatData(data);
|
|
13679
13561
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13680
|
-
var parallelTreeData =
|
|
13562
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13681
13563
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13682
13564
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13683
13565
|
onChangeName && onChangeName(dataName);
|
|
@@ -13720,7 +13602,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13720
13602
|
var getShowStr = function getShowStr() {
|
|
13721
13603
|
var isMultiple = multiple || treeCheckable;
|
|
13722
13604
|
var kongValue = '无';
|
|
13723
|
-
var parallelTreeData =
|
|
13605
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13724
13606
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13725
13607
|
if (isMultiple) {
|
|
13726
13608
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13732,7 +13614,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13732
13614
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13733
13615
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13734
13616
|
className: 'tree_search_select'
|
|
13735
|
-
}, isShouldShowStr ? (
|
|
13617
|
+
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13736
13618
|
title: getShowStr(),
|
|
13737
13619
|
style: {
|
|
13738
13620
|
overflow: 'hidden',
|
|
@@ -13740,7 +13622,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13740
13622
|
whiteSpace: 'nowrap'
|
|
13741
13623
|
},
|
|
13742
13624
|
className: 'search_select_show'
|
|
13743
|
-
}, getShowStr())) : (
|
|
13625
|
+
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13744
13626
|
treeCheckable: treeCheckable,
|
|
13745
13627
|
maxTagCount: maxTagCount,
|
|
13746
13628
|
showSearch: showSearch,
|
|
@@ -13937,7 +13819,7 @@ var index$2 = (function (props) {
|
|
|
13937
13819
|
} : {}
|
|
13938
13820
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13939
13821
|
className: 'status-label-operate'
|
|
13940
|
-
}, item.isDone ? (
|
|
13822
|
+
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13941
13823
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13942
13824
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13943
13825
|
style: {
|
|
@@ -14718,7 +14600,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14718
14600
|
style: {
|
|
14719
14601
|
width: 525
|
|
14720
14602
|
}
|
|
14721
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
14603
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14722
14604
|
checked: !dataSource.some(function (item) {
|
|
14723
14605
|
if (item.hidden) return true;
|
|
14724
14606
|
return false;
|
|
@@ -14756,13 +14638,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14756
14638
|
_this2.onChange(e, item.title);
|
|
14757
14639
|
}
|
|
14758
14640
|
}, item.title);
|
|
14759
|
-
}), !!seatchDataSource.length && (
|
|
14641
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14760
14642
|
style: {
|
|
14761
14643
|
width: '144px'
|
|
14762
14644
|
}
|
|
14763
|
-
})), !seatchDataSource.length && (
|
|
14645
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14764
14646
|
className: 'sort_table_column_all_empty'
|
|
14765
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
14647
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14766
14648
|
className: 'sort_table_column_special'
|
|
14767
14649
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14768
14650
|
className: 'sort_table_column_all'
|
|
@@ -14941,10 +14823,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14941
14823
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14942
14824
|
return _objectSpread2({}, col);
|
|
14943
14825
|
});
|
|
14944
|
-
var
|
|
14826
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
14945
14827
|
var i = indexArr.shift();
|
|
14946
14828
|
if (indexArr.length > 0) {
|
|
14947
|
-
|
|
14829
|
+
_handleIndex(arr[i].children, indexArr);
|
|
14948
14830
|
} else {
|
|
14949
14831
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14950
14832
|
width: size.width
|
|
@@ -14952,7 +14834,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14952
14834
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14953
14835
|
}
|
|
14954
14836
|
};
|
|
14955
|
-
|
|
14837
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
14956
14838
|
_this.setState({
|
|
14957
14839
|
showColumns: _toConsumableArray(newColumns)
|
|
14958
14840
|
});
|
|
@@ -14993,7 +14875,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14993
14875
|
};
|
|
14994
14876
|
setIsResizing(true);
|
|
14995
14877
|
document.addEventListener('mousemove', handleMouseMove);
|
|
14996
|
-
document.addEventListener('mouseup',
|
|
14878
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
14997
14879
|
};
|
|
14998
14880
|
var handleMouseMove = function handleMouseMove(e) {
|
|
14999
14881
|
e.stopPropagation();
|
|
@@ -15009,9 +14891,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15009
14891
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15010
14892
|
}
|
|
15011
14893
|
};
|
|
15012
|
-
var
|
|
14894
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
15013
14895
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15014
|
-
document.removeEventListener('mouseup',
|
|
14896
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
15015
14897
|
setIsResizing(false);
|
|
15016
14898
|
};
|
|
15017
14899
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15132,13 +15014,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15132
15014
|
showSummary = summary;
|
|
15133
15015
|
}
|
|
15134
15016
|
}
|
|
15135
|
-
var
|
|
15017
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15136
15018
|
arr.forEach(function (item, index) {
|
|
15137
15019
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15138
15020
|
return i || i === 0;
|
|
15139
15021
|
});
|
|
15140
15022
|
if (noEmptyArray$1(item.children)) {
|
|
15141
|
-
|
|
15023
|
+
_handleColumns(item.children, indexArrInside);
|
|
15142
15024
|
} else {
|
|
15143
15025
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15144
15026
|
item.onHeaderCell = function (column) {
|
|
@@ -15154,7 +15036,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15154
15036
|
handleBssulaColumnsSpecialParams(item);
|
|
15155
15037
|
return _objectSpread2({}, item);
|
|
15156
15038
|
});
|
|
15157
|
-
|
|
15039
|
+
_handleColumns(showCol, []);
|
|
15158
15040
|
if (dynamicColumns.length) {
|
|
15159
15041
|
showCol = this.handledynamicColumns(showCol);
|
|
15160
15042
|
}
|
|
@@ -15195,7 +15077,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15195
15077
|
cell: this.ResizeableTitle
|
|
15196
15078
|
}
|
|
15197
15079
|
}
|
|
15198
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15080
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15199
15081
|
summary: summary
|
|
15200
15082
|
})));
|
|
15201
15083
|
}
|
|
@@ -15292,10 +15174,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15292
15174
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15293
15175
|
return _objectSpread2({}, col);
|
|
15294
15176
|
});
|
|
15295
|
-
var
|
|
15177
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15296
15178
|
var i = indexArr.shift();
|
|
15297
15179
|
if (indexArr.length > 0) {
|
|
15298
|
-
|
|
15180
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15299
15181
|
} else {
|
|
15300
15182
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15301
15183
|
width: size.width
|
|
@@ -15303,7 +15185,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15303
15185
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15304
15186
|
}
|
|
15305
15187
|
};
|
|
15306
|
-
|
|
15188
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15307
15189
|
_this.setState({
|
|
15308
15190
|
showColumns: _toConsumableArray(newColumns)
|
|
15309
15191
|
});
|
|
@@ -15379,13 +15261,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15379
15261
|
showSummary = summary;
|
|
15380
15262
|
}
|
|
15381
15263
|
}
|
|
15382
|
-
var
|
|
15264
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15383
15265
|
arr.forEach(function (item, index) {
|
|
15384
15266
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15385
15267
|
return i || i === 0;
|
|
15386
15268
|
});
|
|
15387
15269
|
if (noEmptyArray$1(item.children)) {
|
|
15388
|
-
|
|
15270
|
+
_handleColumns(item.children, indexArrInside);
|
|
15389
15271
|
} else {
|
|
15390
15272
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15391
15273
|
item.onHeaderCell = function (column) {
|
|
@@ -15401,7 +15283,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15401
15283
|
handleAntdColumnsSpecialParams(item);
|
|
15402
15284
|
return _objectSpread2({}, item);
|
|
15403
15285
|
});
|
|
15404
|
-
|
|
15286
|
+
_handleColumns(showCol, []);
|
|
15405
15287
|
if (dynamicColumns.length) {
|
|
15406
15288
|
showCol = this.handledynamicColumns(showCol);
|
|
15407
15289
|
}
|
|
@@ -15441,7 +15323,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15441
15323
|
cell: this.ResizeableTitle
|
|
15442
15324
|
}
|
|
15443
15325
|
}
|
|
15444
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15326
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15445
15327
|
summary: summary
|
|
15446
15328
|
})));
|
|
15447
15329
|
}
|
|
@@ -15501,20 +15383,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15501
15383
|
};
|
|
15502
15384
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15503
15385
|
var routerMap = {};
|
|
15504
|
-
var
|
|
15386
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
15505
15387
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15506
15388
|
data.forEach(function (menuItem) {
|
|
15507
15389
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15508
15390
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15509
15391
|
});
|
|
15510
15392
|
if (newMenuItem.children) {
|
|
15511
|
-
|
|
15393
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
15512
15394
|
}
|
|
15513
15395
|
// Reduce memory usage
|
|
15514
15396
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15515
15397
|
});
|
|
15516
15398
|
};
|
|
15517
|
-
|
|
15399
|
+
_flattenMenuData2(menuData, {});
|
|
15518
15400
|
return routerMap;
|
|
15519
15401
|
};
|
|
15520
15402
|
// mode类型判断
|
|
@@ -15840,7 +15722,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15840
15722
|
display: 'flex',
|
|
15841
15723
|
gap: '8px'
|
|
15842
15724
|
}
|
|
15843
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
15725
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15844
15726
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15845
15727
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15846
15728
|
onClick: function onClick() {
|
|
@@ -15848,7 +15730,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15848
15730
|
},
|
|
15849
15731
|
width: 24,
|
|
15850
15732
|
src: scanning
|
|
15851
|
-
}))) : (
|
|
15733
|
+
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15852
15734
|
title: "\u5168\u5C4F"
|
|
15853
15735
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15854
15736
|
onClick: function onClick() {
|
|
@@ -15856,7 +15738,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15856
15738
|
},
|
|
15857
15739
|
width: 24,
|
|
15858
15740
|
src: quanping
|
|
15859
|
-
}))))) : null)), alertProps && (
|
|
15741
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15860
15742
|
}, function (prevProps, nextProps) {
|
|
15861
15743
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15862
15744
|
return false;
|
|
@@ -15941,7 +15823,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15941
15823
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15942
15824
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15943
15825
|
}, item));
|
|
15944
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (
|
|
15826
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15945
15827
|
}, function (prevProps, nextProps) {
|
|
15946
15828
|
if (prevProps.title !== nextProps.title) {
|
|
15947
15829
|
return false;
|
|
@@ -16581,7 +16463,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16581
16463
|
});
|
|
16582
16464
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16583
16465
|
className: 'sort_table_wrapper'
|
|
16584
|
-
}, visible && (
|
|
16466
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16585
16467
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16586
16468
|
wrapClassName: 'sort_table_wrapper',
|
|
16587
16469
|
width: 810,
|
|
@@ -16632,7 +16514,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16632
16514
|
width: 525,
|
|
16633
16515
|
height: 24
|
|
16634
16516
|
}
|
|
16635
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
16517
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16636
16518
|
checked: !dataSource.some(function (item) {
|
|
16637
16519
|
if (item.hidden) return true;
|
|
16638
16520
|
return false;
|
|
@@ -16686,13 +16568,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16686
16568
|
_this2.onChange(e, item.title);
|
|
16687
16569
|
}
|
|
16688
16570
|
}, item.title);
|
|
16689
|
-
}), !!seatchDataSource.length && (
|
|
16571
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16690
16572
|
style: {
|
|
16691
16573
|
width: '144px'
|
|
16692
16574
|
}
|
|
16693
|
-
})), !seatchDataSource.length && (
|
|
16575
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16694
16576
|
className: 'sort_table_column_all_empty'
|
|
16695
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
16577
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16696
16578
|
className: 'sort_table_column_special'
|
|
16697
16579
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
16698
16580
|
className: 'sort_table_column_all'
|
|
@@ -17166,7 +17048,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17166
17048
|
});
|
|
17167
17049
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17168
17050
|
className: 'sort_table_wrapper'
|
|
17169
|
-
}, visible && (
|
|
17051
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17170
17052
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17171
17053
|
wrapClassName: 'sort_table_wrapper',
|
|
17172
17054
|
width: 820,
|
|
@@ -17211,7 +17093,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17211
17093
|
style: {
|
|
17212
17094
|
width: 525
|
|
17213
17095
|
}
|
|
17214
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
17096
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17215
17097
|
checked: !dataSource.some(function (item) {
|
|
17216
17098
|
if (item.hidden) return true;
|
|
17217
17099
|
return false;
|
|
@@ -17247,11 +17129,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17247
17129
|
_this2.onChange(e, item.name);
|
|
17248
17130
|
}
|
|
17249
17131
|
}, item.label);
|
|
17250
|
-
}), !!newSearchSource.length && (
|
|
17132
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17251
17133
|
style: {
|
|
17252
17134
|
width: '144px'
|
|
17253
17135
|
}
|
|
17254
|
-
})), !newSearchSource.length && (
|
|
17136
|
+
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17255
17137
|
className: 'sort_table_column_all_empty'
|
|
17256
17138
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17257
17139
|
className: 'sort_table_content_wrapper'
|
|
@@ -17350,7 +17232,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17350
17232
|
};
|
|
17351
17233
|
setIsResizing(true);
|
|
17352
17234
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17353
|
-
document.addEventListener('mouseup',
|
|
17235
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
17354
17236
|
};
|
|
17355
17237
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17356
17238
|
e.stopPropagation();
|
|
@@ -17366,9 +17248,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17366
17248
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17367
17249
|
}
|
|
17368
17250
|
};
|
|
17369
|
-
var
|
|
17251
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
17370
17252
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17371
|
-
document.removeEventListener('mouseup',
|
|
17253
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
17372
17254
|
setIsResizing(false);
|
|
17373
17255
|
};
|
|
17374
17256
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -17779,7 +17661,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17779
17661
|
actionsRender = actionsRender.concat([{
|
|
17780
17662
|
type: 'text',
|
|
17781
17663
|
props: {
|
|
17782
|
-
children: (
|
|
17664
|
+
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
17783
17665
|
request: {
|
|
17784
17666
|
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),
|
|
17785
17667
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18025,7 +17907,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18025
17907
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18026
17908
|
bsTableCode: bsTableCode,
|
|
18027
17909
|
onlyModal: true
|
|
18028
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
17910
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
18029
17911
|
ref: exportTableRef,
|
|
18030
17912
|
setShowColumns: setShowExportColumns,
|
|
18031
17913
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18118,11 +18000,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18118
18000
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18119
18001
|
var resultList = [];
|
|
18120
18002
|
var newRouter = cloneDeep(router);
|
|
18121
|
-
var
|
|
18003
|
+
var _deep = function deep(router) {
|
|
18122
18004
|
if (router && Array.isArray(router)) {
|
|
18123
18005
|
router.forEach(function (item) {
|
|
18124
18006
|
if (item.children && Array.isArray(item.children)) {
|
|
18125
|
-
|
|
18007
|
+
_deep(item.children);
|
|
18126
18008
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18127
18009
|
return d === item.code;
|
|
18128
18010
|
})) {
|
|
@@ -18136,10 +18018,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18136
18018
|
resultList.push(_objectSpread2({}, router));
|
|
18137
18019
|
}
|
|
18138
18020
|
};
|
|
18139
|
-
|
|
18021
|
+
_deep(newRouter);
|
|
18140
18022
|
callBack([].concat(resultList));
|
|
18141
18023
|
};
|
|
18142
|
-
var
|
|
18024
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18143
18025
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18144
18026
|
var _loop = function _loop(i) {
|
|
18145
18027
|
if (routesData[i].hideInMenu) {
|
|
@@ -18153,7 +18035,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18153
18035
|
return 0; // continue
|
|
18154
18036
|
}
|
|
18155
18037
|
if (routesData[i].children) {
|
|
18156
|
-
|
|
18038
|
+
_setMenuTreeData(routesData[i].children);
|
|
18157
18039
|
}
|
|
18158
18040
|
},
|
|
18159
18041
|
_ret;
|
|
@@ -18174,16 +18056,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18174
18056
|
};
|
|
18175
18057
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18176
18058
|
var routerMap = {};
|
|
18177
|
-
var
|
|
18059
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
18178
18060
|
data.forEach(function (menuItem) {
|
|
18179
18061
|
if (menuItem.children) {
|
|
18180
|
-
|
|
18062
|
+
_flattenMenuData(menuItem.children);
|
|
18181
18063
|
}
|
|
18182
18064
|
// Reduce memory usage
|
|
18183
18065
|
routerMap[menuItem.path] = menuItem;
|
|
18184
18066
|
});
|
|
18185
18067
|
};
|
|
18186
|
-
|
|
18068
|
+
_flattenMenuData(menuData);
|
|
18187
18069
|
return routerMap;
|
|
18188
18070
|
};
|
|
18189
18071
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18329,7 +18211,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18329
18211
|
sethomepageData(homepageDataList);
|
|
18330
18212
|
setroutesData(routesDataList);
|
|
18331
18213
|
}, []);
|
|
18332
|
-
var
|
|
18214
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
18333
18215
|
if (!child.hideInMenu && child.children) {
|
|
18334
18216
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18335
18217
|
style: {
|
|
@@ -18339,7 +18221,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18339
18221
|
}, formatMessage({
|
|
18340
18222
|
id: "".concat(child.locale)
|
|
18341
18223
|
})), child.children.map(function (menuItem) {
|
|
18342
|
-
return
|
|
18224
|
+
return _renderChildItem(menuItem);
|
|
18343
18225
|
}));
|
|
18344
18226
|
} else if (!child.hideInMenu && child.path) {
|
|
18345
18227
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18374,7 +18256,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18374
18256
|
className: 'drawerWarp'
|
|
18375
18257
|
}, homepageData && homepageData.filter(function (d) {
|
|
18376
18258
|
return !d.hideInMenu;
|
|
18377
|
-
}).length > 0 && (
|
|
18259
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
18378
18260
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
18379
18261
|
dataSource: homepageData,
|
|
18380
18262
|
renderItem: function renderItem(child) {
|
|
@@ -18409,7 +18291,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18409
18291
|
bordered: true,
|
|
18410
18292
|
dataSource: item.children,
|
|
18411
18293
|
renderItem: function renderItem(child) {
|
|
18412
|
-
return
|
|
18294
|
+
return _renderChildItem(child);
|
|
18413
18295
|
}
|
|
18414
18296
|
});
|
|
18415
18297
|
})));
|
|
@@ -18469,7 +18351,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18469
18351
|
src: allfunc
|
|
18470
18352
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
18471
18353
|
className: 'btnSpan2'
|
|
18472
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
18354
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18473
18355
|
style: {
|
|
18474
18356
|
left: isDrawer ? 140 : 0,
|
|
18475
18357
|
top: 50
|
|
@@ -18515,7 +18397,7 @@ function outLogin(_x) {
|
|
|
18515
18397
|
return _outLogin.apply(this, arguments);
|
|
18516
18398
|
}
|
|
18517
18399
|
function _outLogin() {
|
|
18518
|
-
_outLogin = _asyncToGenerator(
|
|
18400
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18519
18401
|
var res;
|
|
18520
18402
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18521
18403
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18657,7 +18539,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18657
18539
|
});
|
|
18658
18540
|
};
|
|
18659
18541
|
var loginOut = /*#__PURE__*/function () {
|
|
18660
|
-
var _ref2 = _asyncToGenerator(
|
|
18542
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18661
18543
|
var sessionId;
|
|
18662
18544
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18663
18545
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18761,7 +18643,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18761
18643
|
marginRight: '0px'
|
|
18762
18644
|
},
|
|
18763
18645
|
src: './xialajiantou-new.svg'
|
|
18764
|
-
}))))), loginModalParams.visible && (
|
|
18646
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18765
18647
|
};
|
|
18766
18648
|
|
|
18767
18649
|
// -- 查询店铺 --
|
|
@@ -18769,7 +18651,7 @@ function getStoreByName(_x) {
|
|
|
18769
18651
|
return _getStoreByName.apply(this, arguments);
|
|
18770
18652
|
}
|
|
18771
18653
|
function _getStoreByName() {
|
|
18772
|
-
_getStoreByName = _asyncToGenerator(
|
|
18654
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18773
18655
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18774
18656
|
while (1) switch (_context.prev = _context.next) {
|
|
18775
18657
|
case 0:
|
|
@@ -18837,7 +18719,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18837
18719
|
return _fetchUserList.apply(this, arguments);
|
|
18838
18720
|
}
|
|
18839
18721
|
function _fetchUserList() {
|
|
18840
|
-
_fetchUserList = _asyncToGenerator(
|
|
18722
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18841
18723
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
18842
18724
|
while (1) switch (_context3.prev = _context3.next) {
|
|
18843
18725
|
case 0:
|
|
@@ -18885,7 +18767,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18885
18767
|
return debounce$1(loadOptions, debounceTimeout);
|
|
18886
18768
|
}, [debounceTimeout, key]);
|
|
18887
18769
|
var changeInput = /*#__PURE__*/function () {
|
|
18888
|
-
var _ref = _asyncToGenerator(
|
|
18770
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18889
18771
|
var res;
|
|
18890
18772
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18891
18773
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18907,7 +18789,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18907
18789
|
};
|
|
18908
18790
|
}();
|
|
18909
18791
|
useEffect(function () {
|
|
18910
|
-
_asyncToGenerator(
|
|
18792
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18911
18793
|
var res;
|
|
18912
18794
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
18913
18795
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19072,7 +18954,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19072
18954
|
var resultList = [];
|
|
19073
18955
|
var newRouter = cloneDeep$1(router);
|
|
19074
18956
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19075
|
-
var
|
|
18957
|
+
var _deep = function deep(router) {
|
|
19076
18958
|
if (router && Array.isArray(router)) {
|
|
19077
18959
|
router.forEach(function (item) {
|
|
19078
18960
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19082,7 +18964,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19082
18964
|
d.nameEdit = true;
|
|
19083
18965
|
}
|
|
19084
18966
|
});
|
|
19085
|
-
|
|
18967
|
+
_deep(item.routes);
|
|
19086
18968
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19087
18969
|
id: "menu.".concat(item.name)
|
|
19088
18970
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19101,7 +18983,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19101
18983
|
}));
|
|
19102
18984
|
}
|
|
19103
18985
|
};
|
|
19104
|
-
|
|
18986
|
+
_deep(newRouter);
|
|
19105
18987
|
setroutesData([].concat(resultList));
|
|
19106
18988
|
};
|
|
19107
18989
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19183,7 +19065,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19183
19065
|
},
|
|
19184
19066
|
title: item.fullPathName
|
|
19185
19067
|
}, renderLineStyl(item.fullPathName));
|
|
19186
|
-
}))))), showSelectStore && (
|
|
19068
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19187
19069
|
employeeCode: employeeCode
|
|
19188
19070
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19189
19071
|
};
|
|
@@ -19198,7 +19080,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19198
19080
|
var TreeNode = Tree.TreeNode;
|
|
19199
19081
|
var Search$2 = Input.Search;
|
|
19200
19082
|
var dataList = [];
|
|
19201
|
-
var
|
|
19083
|
+
var _generateList = function generateList(data) {
|
|
19202
19084
|
for (var i = 0; i < data.length; i++) {
|
|
19203
19085
|
var node = data[i];
|
|
19204
19086
|
var path = node.path,
|
|
@@ -19208,11 +19090,11 @@ var generateList = function generateList(data) {
|
|
|
19208
19090
|
name: name
|
|
19209
19091
|
});
|
|
19210
19092
|
if (node.children) {
|
|
19211
|
-
|
|
19093
|
+
_generateList(node.children);
|
|
19212
19094
|
}
|
|
19213
19095
|
}
|
|
19214
19096
|
};
|
|
19215
|
-
var
|
|
19097
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
19216
19098
|
var parentKey;
|
|
19217
19099
|
for (var i = 0; i < tree.length; i++) {
|
|
19218
19100
|
var node = tree[i];
|
|
@@ -19221,8 +19103,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
19221
19103
|
return item.path === path;
|
|
19222
19104
|
})) {
|
|
19223
19105
|
parentKey = node.path;
|
|
19224
|
-
} else if (
|
|
19225
|
-
parentKey =
|
|
19106
|
+
} else if (_getParentKey(path, node.children)) {
|
|
19107
|
+
parentKey = _getParentKey(path, node.children);
|
|
19226
19108
|
}
|
|
19227
19109
|
}
|
|
19228
19110
|
}
|
|
@@ -19253,7 +19135,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19253
19135
|
var treeData = _this.state.treeData;
|
|
19254
19136
|
var expandedKeys = dataList.map(function (item) {
|
|
19255
19137
|
if (item.name.indexOf(value) > -1) {
|
|
19256
|
-
return
|
|
19138
|
+
return _getParentKey(item.path, treeData);
|
|
19257
19139
|
}
|
|
19258
19140
|
return null;
|
|
19259
19141
|
}).filter(function (item, i, self) {
|
|
@@ -19267,22 +19149,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19267
19149
|
};
|
|
19268
19150
|
_this.getPathList = function (originData) {
|
|
19269
19151
|
var pathList = [];
|
|
19270
|
-
var
|
|
19152
|
+
var _getList = function getList(data) {
|
|
19271
19153
|
if (Array.isArray(data)) {
|
|
19272
19154
|
data.forEach(function (item) {
|
|
19273
19155
|
pathList.push(item.path);
|
|
19274
19156
|
if (item.children) {
|
|
19275
|
-
|
|
19157
|
+
_getList(item.children);
|
|
19276
19158
|
}
|
|
19277
19159
|
});
|
|
19278
19160
|
} else {
|
|
19279
19161
|
pathList.push(data.path);
|
|
19280
19162
|
if (data.children) {
|
|
19281
|
-
|
|
19163
|
+
_getList(data.children);
|
|
19282
19164
|
}
|
|
19283
19165
|
}
|
|
19284
19166
|
};
|
|
19285
|
-
|
|
19167
|
+
_getList(originData);
|
|
19286
19168
|
return pathList;
|
|
19287
19169
|
};
|
|
19288
19170
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19291,18 +19173,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19291
19173
|
customerMenuData = _this$props.customerMenuData,
|
|
19292
19174
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19293
19175
|
var filterItem;
|
|
19294
|
-
var
|
|
19176
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
19295
19177
|
menuData.forEach(function (item) {
|
|
19296
19178
|
if (item.path === path) {
|
|
19297
19179
|
filterItem = _objectSpread2({}, item);
|
|
19298
19180
|
return;
|
|
19299
19181
|
}
|
|
19300
19182
|
if (item.children) {
|
|
19301
|
-
|
|
19183
|
+
_filterMenuItem(item.children);
|
|
19302
19184
|
}
|
|
19303
19185
|
});
|
|
19304
19186
|
};
|
|
19305
|
-
|
|
19187
|
+
_filterMenuItem(treeData);
|
|
19306
19188
|
var addPathList = _this.getPathList(filterItem);
|
|
19307
19189
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19308
19190
|
var isRepet = false;
|
|
@@ -19332,8 +19214,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19332
19214
|
return item.path === '/';
|
|
19333
19215
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19334
19216
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19335
|
-
|
|
19336
|
-
|
|
19217
|
+
_setMenuTreeData(routesData);
|
|
19218
|
+
_generateList(routesData);
|
|
19337
19219
|
this.setState({
|
|
19338
19220
|
treeData: routesData
|
|
19339
19221
|
});
|
|
@@ -19347,16 +19229,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19347
19229
|
expandedKeys = _this$state.expandedKeys,
|
|
19348
19230
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19349
19231
|
treeData = _this$state.treeData;
|
|
19350
|
-
var
|
|
19232
|
+
var _loop = function loop(data) {
|
|
19351
19233
|
return data.map(function (item) {
|
|
19352
19234
|
var index = item.name.indexOf(searchValue);
|
|
19353
19235
|
var beforeStr = item.name.substr(0, index);
|
|
19354
19236
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19355
|
-
var name = index > -1 ? (
|
|
19237
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19356
19238
|
style: {
|
|
19357
19239
|
color: '#f50'
|
|
19358
19240
|
}
|
|
19359
|
-
}, searchValue), afterStr)) : (
|
|
19241
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19360
19242
|
if (item.children && item.children.length) {
|
|
19361
19243
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19362
19244
|
path: item.path,
|
|
@@ -19378,7 +19260,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19378
19260
|
width: 18,
|
|
19379
19261
|
src: arrowRight
|
|
19380
19262
|
}))))
|
|
19381
|
-
},
|
|
19263
|
+
}, _loop(item.children));
|
|
19382
19264
|
}
|
|
19383
19265
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19384
19266
|
path: item.path,
|
|
@@ -19428,7 +19310,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19428
19310
|
onExpand: this.onExpand,
|
|
19429
19311
|
expandedKeys: expandedKeys,
|
|
19430
19312
|
autoExpandParent: autoExpandParent
|
|
19431
|
-
},
|
|
19313
|
+
}, _loop(treeData))));
|
|
19432
19314
|
}
|
|
19433
19315
|
}]);
|
|
19434
19316
|
}(React$1.Component);
|
|
@@ -19461,24 +19343,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19461
19343
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19462
19344
|
var dragObj;
|
|
19463
19345
|
var finalDropItem;
|
|
19464
|
-
var
|
|
19346
|
+
var _loop = function loop(data, path, callback) {
|
|
19465
19347
|
for (var i = 0; i < data.length; i++) {
|
|
19466
19348
|
if (data[i].path === path) {
|
|
19467
19349
|
return callback(data[i], i, data);
|
|
19468
19350
|
}
|
|
19469
19351
|
if (data[i].children) {
|
|
19470
|
-
|
|
19352
|
+
_loop(data[i].children, path, callback);
|
|
19471
19353
|
}
|
|
19472
19354
|
}
|
|
19473
19355
|
};
|
|
19474
19356
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19475
|
-
|
|
19357
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
19476
19358
|
arr.splice(index, 1);
|
|
19477
19359
|
dragObj = item;
|
|
19478
19360
|
});
|
|
19479
19361
|
if (!info.dropToGap) {
|
|
19480
19362
|
// Drop on the content
|
|
19481
|
-
|
|
19363
|
+
_loop(data, dropKey, function (item) {
|
|
19482
19364
|
item.children = item.children || [];
|
|
19483
19365
|
item.children.unshift(dragObj);
|
|
19484
19366
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19489,7 +19371,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19489
19371
|
// Is expanded
|
|
19490
19372
|
dropPosition === 1 // On the bottom gap
|
|
19491
19373
|
) {
|
|
19492
|
-
|
|
19374
|
+
_loop(data, dropKey, function (item) {
|
|
19493
19375
|
item.children = item.children || [];
|
|
19494
19376
|
item.children.unshift(dragObj);
|
|
19495
19377
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19497,7 +19379,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19497
19379
|
} else {
|
|
19498
19380
|
var ar;
|
|
19499
19381
|
var i;
|
|
19500
|
-
|
|
19382
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
19501
19383
|
ar = arr;
|
|
19502
19384
|
i = index;
|
|
19503
19385
|
});
|
|
@@ -19536,17 +19418,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19536
19418
|
title: '编辑名称',
|
|
19537
19419
|
callBack: function callBack(newName) {
|
|
19538
19420
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19539
|
-
var
|
|
19421
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19540
19422
|
oldTreeData.forEach(function (treeItem) {
|
|
19541
19423
|
if (treeItem.path === item.path) {
|
|
19542
19424
|
treeItem.name = newName;
|
|
19543
19425
|
}
|
|
19544
19426
|
if (treeItem.children) {
|
|
19545
|
-
|
|
19427
|
+
_editTreeDataName(treeItem.children);
|
|
19546
19428
|
}
|
|
19547
19429
|
});
|
|
19548
19430
|
};
|
|
19549
|
-
|
|
19431
|
+
_editTreeDataName(oldTreeData);
|
|
19550
19432
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19551
19433
|
_this.setState({
|
|
19552
19434
|
modalInfo: {
|
|
@@ -19591,7 +19473,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19591
19473
|
title: '新增子目录',
|
|
19592
19474
|
callBack: function callBack(newName) {
|
|
19593
19475
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19594
|
-
var
|
|
19476
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
19595
19477
|
oldTreeData.forEach(function (treeItem) {
|
|
19596
19478
|
if (treeItem.path === item.path) {
|
|
19597
19479
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19603,11 +19485,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19603
19485
|
}];
|
|
19604
19486
|
}
|
|
19605
19487
|
if (treeItem.children) {
|
|
19606
|
-
|
|
19488
|
+
_addChildFolder(treeItem.children);
|
|
19607
19489
|
}
|
|
19608
19490
|
});
|
|
19609
19491
|
};
|
|
19610
|
-
|
|
19492
|
+
_addChildFolder(oldTreeData);
|
|
19611
19493
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19612
19494
|
_this.setState({
|
|
19613
19495
|
modalInfo: {
|
|
@@ -19666,7 +19548,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19666
19548
|
var _this$state = this.state,
|
|
19667
19549
|
modalInfo = _this$state.modalInfo,
|
|
19668
19550
|
checkedKeys = _this$state.checkedKeys;
|
|
19669
|
-
var
|
|
19551
|
+
var _loop2 = function loop(data) {
|
|
19670
19552
|
return data.map(function (item) {
|
|
19671
19553
|
if (item.children && item.children.length) {
|
|
19672
19554
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -19683,7 +19565,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19683
19565
|
e.stopPropagation();
|
|
19684
19566
|
}
|
|
19685
19567
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
19686
|
-
},
|
|
19568
|
+
}, _loop2(item.children));
|
|
19687
19569
|
}
|
|
19688
19570
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
19689
19571
|
path: item.path,
|
|
@@ -19762,7 +19644,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19762
19644
|
children: 'children'
|
|
19763
19645
|
},
|
|
19764
19646
|
onDrop: this.onDrop
|
|
19765
|
-
},
|
|
19647
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
19766
19648
|
width: 600,
|
|
19767
19649
|
bodyStyle: {
|
|
19768
19650
|
paddingTop: '32px',
|
|
@@ -19875,7 +19757,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19875
19757
|
pathname: item.path
|
|
19876
19758
|
});
|
|
19877
19759
|
};
|
|
19878
|
-
var
|
|
19760
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
19879
19761
|
return menuData.map(function (item) {
|
|
19880
19762
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
19881
19763
|
style: {
|
|
@@ -19890,7 +19772,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19890
19772
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
19891
19773
|
paddingLeft: '4px'
|
|
19892
19774
|
}
|
|
19893
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19775
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
19894
19776
|
});
|
|
19895
19777
|
};
|
|
19896
19778
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19916,7 +19798,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19916
19798
|
style: {
|
|
19917
19799
|
paddingLeft: '5px'
|
|
19918
19800
|
}
|
|
19919
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
19801
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19920
19802
|
style: {
|
|
19921
19803
|
left: isDrawer ? 140 : 0
|
|
19922
19804
|
},
|
|
@@ -19937,7 +19819,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19937
19819
|
visible: isDrawer
|
|
19938
19820
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
19939
19821
|
className: 'menu_title_line'
|
|
19940
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19822
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
19941
19823
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
19942
19824
|
style: {
|
|
19943
19825
|
fontWeight: '600',
|
|
@@ -20011,7 +19893,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20011
19893
|
return item.path === '/';
|
|
20012
19894
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20013
19895
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20014
|
-
|
|
19896
|
+
_setMenuTreeData(routesData);
|
|
20015
19897
|
routesData.forEach(function (item) {
|
|
20016
19898
|
if (item.children) {
|
|
20017
19899
|
routesDataList.push(item);
|
|
@@ -20041,7 +19923,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20041
19923
|
setHeight(clientHeight - 190);
|
|
20042
19924
|
setDrawHeight(clientHeight - 70);
|
|
20043
19925
|
};
|
|
20044
|
-
var
|
|
19926
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
20045
19927
|
if (!child.hideInMenu && child.children) {
|
|
20046
19928
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20047
19929
|
style: {
|
|
@@ -20051,7 +19933,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20051
19933
|
}, formatMessage({
|
|
20052
19934
|
id: "".concat(child.locale)
|
|
20053
19935
|
})), child.children.map(function (menuItem) {
|
|
20054
|
-
return
|
|
19936
|
+
return _renderChildItem(menuItem);
|
|
20055
19937
|
}));
|
|
20056
19938
|
} else if (!child.hideInMenu && child.path) {
|
|
20057
19939
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20193,7 +20075,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20193
20075
|
onMenuClick(e, item);
|
|
20194
20076
|
}
|
|
20195
20077
|
}, item.name);
|
|
20196
|
-
}))), !!SearhData.length ? (
|
|
20078
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20197
20079
|
className: 'search_menu_content'
|
|
20198
20080
|
}, SearhData.map(function (item) {
|
|
20199
20081
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20202,7 +20084,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20202
20084
|
},
|
|
20203
20085
|
key: item.path
|
|
20204
20086
|
}, item.name);
|
|
20205
|
-
}))) : (
|
|
20087
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20206
20088
|
style: {
|
|
20207
20089
|
height: "".concat(rightMenuHeight, "px"),
|
|
20208
20090
|
overflowY: 'scroll',
|
|
@@ -20214,7 +20096,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20214
20096
|
className: 'drawerWarp_right'
|
|
20215
20097
|
}, homepageData && homepageData.filter(function (d) {
|
|
20216
20098
|
return !d.hideInMenu;
|
|
20217
|
-
}).length > 0 && (
|
|
20099
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20218
20100
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20219
20101
|
dataSource: homepageData,
|
|
20220
20102
|
renderItem: function renderItem(child) {
|
|
@@ -20255,7 +20137,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20255
20137
|
bordered: true,
|
|
20256
20138
|
dataSource: item.children,
|
|
20257
20139
|
renderItem: function renderItem(child) {
|
|
20258
|
-
return
|
|
20140
|
+
return _renderChildItem(child);
|
|
20259
20141
|
}
|
|
20260
20142
|
});
|
|
20261
20143
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20413,10 +20295,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20413
20295
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20414
20296
|
var menuKeys = [];
|
|
20415
20297
|
var docsId = [];
|
|
20416
|
-
var
|
|
20298
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20417
20299
|
data.forEach(function (item) {
|
|
20418
20300
|
if (item.children && item.children.length > 0) {
|
|
20419
|
-
|
|
20301
|
+
_getLimitedMenuKeys(item.children);
|
|
20420
20302
|
} else {
|
|
20421
20303
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20422
20304
|
menuKeys.push(originPath);
|
|
@@ -20427,7 +20309,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20427
20309
|
});
|
|
20428
20310
|
};
|
|
20429
20311
|
try {
|
|
20430
|
-
|
|
20312
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
20431
20313
|
} catch (e) {}
|
|
20432
20314
|
return {
|
|
20433
20315
|
menuKeys: menuKeys,
|
|
@@ -20661,10 +20543,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20661
20543
|
return (node.path || '').includes('all-general-documents');
|
|
20662
20544
|
};
|
|
20663
20545
|
// 递归获取树列表
|
|
20664
|
-
var
|
|
20546
|
+
var _getTreeList = function getTreeList(data) {
|
|
20665
20547
|
data.forEach(function (node) {
|
|
20666
20548
|
if (node.routes && node.routes.length > 0) {
|
|
20667
|
-
|
|
20549
|
+
_getTreeList(node.routes);
|
|
20668
20550
|
return;
|
|
20669
20551
|
}
|
|
20670
20552
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20695,7 +20577,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20695
20577
|
}
|
|
20696
20578
|
});
|
|
20697
20579
|
};
|
|
20698
|
-
|
|
20580
|
+
_getTreeList(treeData);
|
|
20699
20581
|
return treeList;
|
|
20700
20582
|
};
|
|
20701
20583
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21324,7 +21206,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21324
21206
|
updateState = _ref8.updateState;
|
|
21325
21207
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21326
21208
|
className: "tab_title_content"
|
|
21327
|
-
}, item.tab, item.key !== '/' && (
|
|
21209
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21328
21210
|
info: item,
|
|
21329
21211
|
operateFun: _this3.operateFun,
|
|
21330
21212
|
listenRouterState: listenRouterState
|
|
@@ -21460,7 +21342,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21460
21342
|
};
|
|
21461
21343
|
}
|
|
21462
21344
|
var OperationsSlot = {
|
|
21463
|
-
left: (
|
|
21345
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
21464
21346
|
className: 'tab_left_operate'
|
|
21465
21347
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
21466
21348
|
onClick: function onClick() {
|
|
@@ -21476,7 +21358,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21476
21358
|
_this3.setTabNavTransLate(-100);
|
|
21477
21359
|
}
|
|
21478
21360
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
21479
|
-
right: (
|
|
21361
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
21480
21362
|
style: {
|
|
21481
21363
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21482
21364
|
},
|
|
@@ -21574,7 +21456,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21574
21456
|
onMouseLeave: function onMouseLeave() {
|
|
21575
21457
|
_this3.setShowMenu(false);
|
|
21576
21458
|
}
|
|
21577
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
21459
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21578
21460
|
style: {
|
|
21579
21461
|
position: 'absolute',
|
|
21580
21462
|
top: '14px',
|
|
@@ -21593,7 +21475,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21593
21475
|
postMenuData: function postMenuData(menus) {
|
|
21594
21476
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21595
21477
|
},
|
|
21596
|
-
links: [!this.state.collapse ? (
|
|
21478
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21597
21479
|
ref: this.allFunc,
|
|
21598
21480
|
itemPath: itemPath,
|
|
21599
21481
|
handleClose: this.handleClose,
|
|
@@ -21611,7 +21493,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21611
21493
|
},
|
|
21612
21494
|
menu: {
|
|
21613
21495
|
request: function () {
|
|
21614
|
-
var _request = _asyncToGenerator(
|
|
21496
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21615
21497
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21616
21498
|
while (1) switch (_context.prev = _context.next) {
|
|
21617
21499
|
case 0:
|
|
@@ -21746,7 +21628,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
21746
21628
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
21747
21629
|
timeFormat = _this$props4.timeFormat,
|
|
21748
21630
|
transparentProps = _this$props4.transparentProps;
|
|
21749
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (
|
|
21631
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (/*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
21750
21632
|
getDictionarySource: getDictionarySource,
|
|
21751
21633
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
21752
21634
|
timeFormat: timeFormat
|
|
@@ -21770,12 +21652,12 @@ var index$5 = (function (props) {
|
|
|
21770
21652
|
});
|
|
21771
21653
|
|
|
21772
21654
|
// @ts-nocheck
|
|
21773
|
-
var
|
|
21655
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
21774
21656
|
var result = [];
|
|
21775
21657
|
columns.forEach(function (column) {
|
|
21776
21658
|
if (column.children) {
|
|
21777
21659
|
result.push(column);
|
|
21778
|
-
result.push.apply(result,
|
|
21660
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
21779
21661
|
} else {
|
|
21780
21662
|
result.push(column);
|
|
21781
21663
|
}
|
|
@@ -21784,7 +21666,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
21784
21666
|
};
|
|
21785
21667
|
var convertToRows = function convertToRows(originColumns) {
|
|
21786
21668
|
var maxLevel = 1;
|
|
21787
|
-
var
|
|
21669
|
+
var _traverse = function traverse(column, parent) {
|
|
21788
21670
|
if (parent) {
|
|
21789
21671
|
column.level = parent.level + 1;
|
|
21790
21672
|
if (maxLevel < column.level) {
|
|
@@ -21794,7 +21676,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21794
21676
|
if (column.children) {
|
|
21795
21677
|
var colSpan = 0;
|
|
21796
21678
|
column.children.forEach(function (subColumn) {
|
|
21797
|
-
|
|
21679
|
+
_traverse(subColumn, column);
|
|
21798
21680
|
colSpan += subColumn.colSpan;
|
|
21799
21681
|
});
|
|
21800
21682
|
column.colSpan = colSpan;
|
|
@@ -21804,13 +21686,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21804
21686
|
};
|
|
21805
21687
|
originColumns.forEach(function (column) {
|
|
21806
21688
|
column.level = 1;
|
|
21807
|
-
|
|
21689
|
+
_traverse(column);
|
|
21808
21690
|
});
|
|
21809
21691
|
var rows = [];
|
|
21810
21692
|
for (var i = 0; i < maxLevel; i++) {
|
|
21811
21693
|
rows.push([]);
|
|
21812
21694
|
}
|
|
21813
|
-
var allColumns =
|
|
21695
|
+
var allColumns = _getAllColumns(originColumns);
|
|
21814
21696
|
allColumns.forEach(function (column) {
|
|
21815
21697
|
if (!column.children) {
|
|
21816
21698
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -21850,7 +21732,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21850
21732
|
};
|
|
21851
21733
|
var headersToRows = function headersToRows(originColumns) {
|
|
21852
21734
|
var maxLevel = 1;
|
|
21853
|
-
var
|
|
21735
|
+
var _traverse2 = function traverse(column, parent) {
|
|
21854
21736
|
if (parent) {
|
|
21855
21737
|
//计算当前元素属于第几个层级
|
|
21856
21738
|
column.level = parent.level + 1;
|
|
@@ -21863,7 +21745,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21863
21745
|
var colSpan = 0;
|
|
21864
21746
|
column.children.forEach(function (subColumn) {
|
|
21865
21747
|
//进行递归
|
|
21866
|
-
|
|
21748
|
+
_traverse2(subColumn, column);
|
|
21867
21749
|
colSpan += subColumn.colSpan;
|
|
21868
21750
|
});
|
|
21869
21751
|
column.colSpan = colSpan;
|
|
@@ -21873,14 +21755,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21873
21755
|
};
|
|
21874
21756
|
originColumns.forEach(function (column) {
|
|
21875
21757
|
column.level = 1;
|
|
21876
|
-
|
|
21758
|
+
_traverse2(column);
|
|
21877
21759
|
});
|
|
21878
21760
|
var rows = [];
|
|
21879
21761
|
var lastData = [];
|
|
21880
21762
|
for (var i = 0; i < maxLevel; i++) {
|
|
21881
21763
|
rows.push([]);
|
|
21882
21764
|
}
|
|
21883
|
-
var allColumns =
|
|
21765
|
+
var allColumns = _getAllColumns(originColumns);
|
|
21884
21766
|
allColumns.forEach(function (column) {
|
|
21885
21767
|
if (!column.children) {
|
|
21886
21768
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -27897,7 +27779,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
27897
27779
|
}
|
|
27898
27780
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
27899
27781
|
};
|
|
27900
|
-
var
|
|
27782
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
27901
27783
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27902
27784
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
27903
27785
|
var children = hightLightData.children,
|
|
@@ -27908,7 +27790,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
27908
27790
|
lineEnd = _loc2[2];
|
|
27909
27791
|
if (children) {
|
|
27910
27792
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
27911
|
-
return
|
|
27793
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
27912
27794
|
});
|
|
27913
27795
|
}
|
|
27914
27796
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27920,7 +27802,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27920
27802
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27921
27803
|
data.forEach(function (node) {
|
|
27922
27804
|
if (!node) return;
|
|
27923
|
-
node.toggled =
|
|
27805
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
27924
27806
|
node.active = isHightLight(node, highLightLine);
|
|
27925
27807
|
if (node.children) {
|
|
27926
27808
|
if (node.active) {
|
|
@@ -29351,7 +29233,7 @@ var valueType = {
|
|
|
29351
29233
|
};
|
|
29352
29234
|
|
|
29353
29235
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29354
|
-
var _ref = _asyncToGenerator(
|
|
29236
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29355
29237
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29356
29238
|
while (1) switch (_context.prev = _context.next) {
|
|
29357
29239
|
case 0:
|
|
@@ -29419,7 +29301,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29419
29301
|
value: false
|
|
29420
29302
|
}];
|
|
29421
29303
|
var ref = useRef();
|
|
29422
|
-
useMount(
|
|
29304
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29423
29305
|
var _ref$current, source;
|
|
29424
29306
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29425
29307
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29533,7 +29415,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29533
29415
|
source: {
|
|
29534
29416
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29535
29417
|
type: function () {
|
|
29536
|
-
var _type = _asyncToGenerator(
|
|
29418
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29537
29419
|
var form, values, name, relates, source;
|
|
29538
29420
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29539
29421
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30013,7 +29895,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30013
29895
|
source: {
|
|
30014
29896
|
relates: ['choiceType', 'inputType'],
|
|
30015
29897
|
type: function () {
|
|
30016
|
-
var _type2 = _asyncToGenerator(
|
|
29898
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30017
29899
|
var values, name, form, source;
|
|
30018
29900
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30019
29901
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30235,7 +30117,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30235
30117
|
width: 900,
|
|
30236
30118
|
maskClosable: false,
|
|
30237
30119
|
onOk: function () {
|
|
30238
|
-
var _onOk = _asyncToGenerator(
|
|
30120
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30239
30121
|
var _ref$current4, _res$editableStatus;
|
|
30240
30122
|
var res, _res$defaultValue;
|
|
30241
30123
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30307,7 +30189,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30307
30189
|
}()
|
|
30308
30190
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30309
30191
|
ref: ref
|
|
30310
|
-
})), maintainOptionsModal.visible && (
|
|
30192
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30311
30193
|
};
|
|
30312
30194
|
|
|
30313
30195
|
// @ts-nocheck
|
|
@@ -30921,7 +30803,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30921
30803
|
return setVisible(false);
|
|
30922
30804
|
},
|
|
30923
30805
|
className: 'customFieldsDrawer'
|
|
30924
|
-
}, detailTablesSetting.length == 0 && (
|
|
30806
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
30925
30807
|
style: {
|
|
30926
30808
|
display: 'flex'
|
|
30927
30809
|
}
|
|
@@ -30930,13 +30812,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30930
30812
|
flex: 1,
|
|
30931
30813
|
width: 500
|
|
30932
30814
|
}
|
|
30933
|
-
}, isEmpty(moduleParams) ? (
|
|
30815
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30934
30816
|
style: {
|
|
30935
30817
|
padding: "10px 0",
|
|
30936
30818
|
fontSize: "16px",
|
|
30937
30819
|
fontWeight: "bolder"
|
|
30938
30820
|
}
|
|
30939
|
-
}, "\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")) : (
|
|
30821
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
30940
30822
|
style: {
|
|
30941
30823
|
flex: 1
|
|
30942
30824
|
}
|
|
@@ -30945,7 +30827,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30945
30827
|
onRun: onClickRun,
|
|
30946
30828
|
value: jsonEditorVal,
|
|
30947
30829
|
shallowHeight: height
|
|
30948
|
-
})))), detailTablesSetting.length > 0 && (
|
|
30830
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
30949
30831
|
defaultActiveKey: activeKey,
|
|
30950
30832
|
onChange: function onChange(v) {
|
|
30951
30833
|
return setActiveKey(v);
|
|
@@ -30962,13 +30844,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30962
30844
|
flex: 1,
|
|
30963
30845
|
width: 500
|
|
30964
30846
|
}
|
|
30965
|
-
}, isEmpty(moduleParams) ? (
|
|
30847
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30966
30848
|
style: {
|
|
30967
30849
|
padding: "10px 0",
|
|
30968
30850
|
fontSize: "16px",
|
|
30969
30851
|
fontWeight: "bolder"
|
|
30970
30852
|
}
|
|
30971
|
-
}, "\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")) : (
|
|
30853
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
30972
30854
|
style: {
|
|
30973
30855
|
flex: 1
|
|
30974
30856
|
}
|
|
@@ -30990,13 +30872,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30990
30872
|
flex: 1,
|
|
30991
30873
|
width: 500
|
|
30992
30874
|
}
|
|
30993
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
30875
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30994
30876
|
style: {
|
|
30995
30877
|
padding: "10px 0",
|
|
30996
30878
|
fontSize: "16px",
|
|
30997
30879
|
fontWeight: "bolder"
|
|
30998
30880
|
}
|
|
30999
|
-
}, "\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")) : (
|
|
30881
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
31000
30882
|
style: {
|
|
31001
30883
|
flex: 1
|
|
31002
30884
|
}
|
|
@@ -31142,7 +31024,7 @@ function getMetaData(_x) {
|
|
|
31142
31024
|
|
|
31143
31025
|
// 获取数据
|
|
31144
31026
|
function _getMetaData() {
|
|
31145
|
-
_getMetaData = _asyncToGenerator(
|
|
31027
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31146
31028
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31147
31029
|
while (1) switch (_context.prev = _context.next) {
|
|
31148
31030
|
case 0:
|
|
@@ -31364,7 +31246,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31364
31246
|
tableState = _useState4[0],
|
|
31365
31247
|
setTableState = _useState4[1];
|
|
31366
31248
|
var handleOpen = /*#__PURE__*/function () {
|
|
31367
|
-
var _ref = _asyncToGenerator(
|
|
31249
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31368
31250
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31369
31251
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31370
31252
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31683,7 +31565,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31683
31565
|
destroyOnClose: true
|
|
31684
31566
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
31685
31567
|
ref: queryTableRef
|
|
31686
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
31568
|
+
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (/*#__PURE__*/React$1.createElement(Row, {
|
|
31687
31569
|
justify: "center",
|
|
31688
31570
|
style: {
|
|
31689
31571
|
marginBottom: 30,
|
|
@@ -31799,7 +31681,7 @@ var CustomSelector = (function (props) {
|
|
|
31799
31681
|
var _props$ctx7;
|
|
31800
31682
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
31801
31683
|
}
|
|
31802
|
-
})), showType === 'modalTable' && (
|
|
31684
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
31803
31685
|
type: "primary",
|
|
31804
31686
|
style: {
|
|
31805
31687
|
width: '30px',
|
|
@@ -31885,7 +31767,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31885
31767
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31886
31768
|
handSource = _useState2[0],
|
|
31887
31769
|
setHandSource = _useState2[1];
|
|
31888
|
-
useEffect(
|
|
31770
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31889
31771
|
var resData, data;
|
|
31890
31772
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31891
31773
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32037,7 +31919,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32037
31919
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32038
31920
|
}
|
|
32039
31921
|
function _getRegularThresholdRange() {
|
|
32040
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
31922
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32041
31923
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32042
31924
|
while (1) switch (_context.prev = _context.next) {
|
|
32043
31925
|
case 0:
|
|
@@ -32191,7 +32073,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32191
32073
|
};
|
|
32192
32074
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32193
32075
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32194
|
-
var _ref = _asyncToGenerator(
|
|
32076
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32195
32077
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32196
32078
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32197
32079
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32465,7 +32347,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32465
32347
|
}
|
|
32466
32348
|
callback(values, valueNames);
|
|
32467
32349
|
},
|
|
32468
|
-
|
|
32350
|
+
highestPopContainer: function highestPopContainer() {
|
|
32469
32351
|
return document.body;
|
|
32470
32352
|
}
|
|
32471
32353
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -32498,27 +32380,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32498
32380
|
}
|
|
32499
32381
|
callback(values, valueNames);
|
|
32500
32382
|
},
|
|
32501
|
-
|
|
32383
|
+
highestPopContainer: function highestPopContainer() {
|
|
32502
32384
|
return document.body;
|
|
32503
32385
|
}
|
|
32504
32386
|
}));
|
|
32505
32387
|
} else {
|
|
32506
32388
|
var _values;
|
|
32507
|
-
var currentValue = dataInputBusinessType === 12 ? ((_values = values) === null || _values === void 0 ? void 0 : _values.map(function (s, vIndex) {
|
|
32389
|
+
var currentValue = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values = values) === null || _values === void 0 ? void 0 : _values.map(function (s, vIndex) {
|
|
32508
32390
|
return {
|
|
32509
32391
|
key: s,
|
|
32510
|
-
label: valueNames[vIndex]
|
|
32392
|
+
label: valueNames[vIndex],
|
|
32393
|
+
value: s
|
|
32511
32394
|
};
|
|
32512
32395
|
})) || [] : values[0] && {
|
|
32513
32396
|
key: values[0],
|
|
32514
|
-
label: valueNames[0]
|
|
32397
|
+
label: valueNames[0],
|
|
32398
|
+
value: values[0]
|
|
32515
32399
|
} || {};
|
|
32516
32400
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32517
32401
|
selectBusinessType: "physicalWarehouse",
|
|
32518
32402
|
selectProps: _objectSpread2({
|
|
32519
32403
|
style: styleCommon,
|
|
32520
32404
|
placeholder: '请选择物理仓'
|
|
32521
|
-
}, dataInputBusinessType === 12 ? {
|
|
32405
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32522
32406
|
mode: 'multiple',
|
|
32523
32407
|
maxTagCount: 1
|
|
32524
32408
|
} : {}),
|
|
@@ -32530,7 +32414,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32530
32414
|
filterInit: 'qp-physicalWarehouseCode-in'
|
|
32531
32415
|
},
|
|
32532
32416
|
onChange: function onChange(value) {
|
|
32533
|
-
if (dataInputBusinessType === 12) {
|
|
32417
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32534
32418
|
values = value.map(function (i) {
|
|
32535
32419
|
return i.key;
|
|
32536
32420
|
}) || [];
|
|
@@ -32543,7 +32427,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32543
32427
|
}
|
|
32544
32428
|
callback(values, valueNames);
|
|
32545
32429
|
},
|
|
32546
|
-
|
|
32430
|
+
highestPopContainer: function highestPopContainer() {
|
|
32547
32431
|
return document.body;
|
|
32548
32432
|
}
|
|
32549
32433
|
});
|
|
@@ -32582,7 +32466,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32582
32466
|
}
|
|
32583
32467
|
callback(values, valueNames);
|
|
32584
32468
|
},
|
|
32585
|
-
|
|
32469
|
+
highestPopContainer: function highestPopContainer() {
|
|
32586
32470
|
return document.body;
|
|
32587
32471
|
}
|
|
32588
32472
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -32615,27 +32499,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32615
32499
|
}
|
|
32616
32500
|
callback(values, valueNames);
|
|
32617
32501
|
},
|
|
32618
|
-
|
|
32502
|
+
highestPopContainer: function highestPopContainer() {
|
|
32619
32503
|
return document.body;
|
|
32620
32504
|
}
|
|
32621
32505
|
}));
|
|
32622
32506
|
} else {
|
|
32623
32507
|
var _values2;
|
|
32624
|
-
var _currentValue = dataInputBusinessType === 12 ? ((_values2 = values) === null || _values2 === void 0 ? void 0 : _values2.map(function (s, vIndex) {
|
|
32508
|
+
var _currentValue = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values2 = values) === null || _values2 === void 0 ? void 0 : _values2.map(function (s, vIndex) {
|
|
32625
32509
|
return {
|
|
32626
32510
|
key: s,
|
|
32627
|
-
label: valueNames[vIndex]
|
|
32511
|
+
label: valueNames[vIndex],
|
|
32512
|
+
value: s
|
|
32628
32513
|
};
|
|
32629
32514
|
})) || [] : values[0] && {
|
|
32630
32515
|
key: values[0],
|
|
32631
|
-
label: valueNames[0]
|
|
32516
|
+
label: valueNames[0],
|
|
32517
|
+
value: values[0]
|
|
32632
32518
|
} || {};
|
|
32633
32519
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32634
32520
|
selectBusinessType: "realWarehouse",
|
|
32635
32521
|
selectProps: _objectSpread2({
|
|
32636
32522
|
style: styleCommon,
|
|
32637
32523
|
placeholder: '请选择逻辑仓'
|
|
32638
|
-
}, dataInputBusinessType === 12 ? {
|
|
32524
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32639
32525
|
mode: 'multiple',
|
|
32640
32526
|
maxTagCount: 1
|
|
32641
32527
|
} : {}),
|
|
@@ -32647,7 +32533,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32647
32533
|
filterInit: 'qp-realWarehouseCode-in'
|
|
32648
32534
|
},
|
|
32649
32535
|
onChange: function onChange(value) {
|
|
32650
|
-
if (dataInputBusinessType === 12) {
|
|
32536
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32651
32537
|
values = value.map(function (i) {
|
|
32652
32538
|
return i.key;
|
|
32653
32539
|
}) || [];
|
|
@@ -32660,7 +32546,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32660
32546
|
}
|
|
32661
32547
|
callback(values, valueNames);
|
|
32662
32548
|
},
|
|
32663
|
-
|
|
32549
|
+
highestPopContainer: function highestPopContainer() {
|
|
32664
32550
|
return document.body;
|
|
32665
32551
|
}
|
|
32666
32552
|
});
|
|
@@ -32699,7 +32585,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32699
32585
|
}
|
|
32700
32586
|
callback(values, valueNames);
|
|
32701
32587
|
},
|
|
32702
|
-
|
|
32588
|
+
highestPopContainer: function highestPopContainer() {
|
|
32703
32589
|
return document.body;
|
|
32704
32590
|
}
|
|
32705
32591
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -32732,27 +32618,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32732
32618
|
}
|
|
32733
32619
|
callback(values, valueNames);
|
|
32734
32620
|
},
|
|
32735
|
-
|
|
32621
|
+
highestPopContainer: function highestPopContainer() {
|
|
32736
32622
|
return document.body;
|
|
32737
32623
|
}
|
|
32738
32624
|
}));
|
|
32739
32625
|
} else {
|
|
32740
32626
|
var _values3;
|
|
32741
|
-
var _currentValue2 = dataInputBusinessType === 12 ? ((_values3 = values) === null || _values3 === void 0 ? void 0 : _values3.map(function (s, vIndex) {
|
|
32627
|
+
var _currentValue2 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values3 = values) === null || _values3 === void 0 ? void 0 : _values3.map(function (s, vIndex) {
|
|
32742
32628
|
return {
|
|
32743
32629
|
key: s,
|
|
32744
|
-
label: valueNames[vIndex]
|
|
32630
|
+
label: valueNames[vIndex],
|
|
32631
|
+
value: s
|
|
32745
32632
|
};
|
|
32746
32633
|
})) || [] : values[0] && {
|
|
32747
32634
|
key: values[0],
|
|
32748
|
-
label: valueNames[0]
|
|
32635
|
+
label: valueNames[0],
|
|
32636
|
+
value: values[0]
|
|
32749
32637
|
} || {};
|
|
32750
32638
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32751
32639
|
selectBusinessType: "virtualWarehouse",
|
|
32752
32640
|
selectProps: _objectSpread2({
|
|
32753
32641
|
style: styleCommon,
|
|
32754
32642
|
placeholder: '请选择虚拟仓'
|
|
32755
|
-
}, dataInputBusinessType === 12 ? {
|
|
32643
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32756
32644
|
mode: 'multiple',
|
|
32757
32645
|
maxTagCount: 1
|
|
32758
32646
|
} : {}),
|
|
@@ -32764,7 +32652,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32764
32652
|
filterInit: 'qp-virtualWarehouseCode-in'
|
|
32765
32653
|
},
|
|
32766
32654
|
onChange: function onChange(value) {
|
|
32767
|
-
if (dataInputBusinessType === 12) {
|
|
32655
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32768
32656
|
values = value.map(function (i) {
|
|
32769
32657
|
return i.key;
|
|
32770
32658
|
}) || [];
|
|
@@ -32777,7 +32665,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32777
32665
|
}
|
|
32778
32666
|
callback(values, valueNames);
|
|
32779
32667
|
},
|
|
32780
|
-
|
|
32668
|
+
highestPopContainer: function highestPopContainer() {
|
|
32781
32669
|
return document.body;
|
|
32782
32670
|
}
|
|
32783
32671
|
});
|
|
@@ -32849,27 +32737,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32849
32737
|
}
|
|
32850
32738
|
callback(values, valueNames);
|
|
32851
32739
|
},
|
|
32852
|
-
|
|
32740
|
+
highestPopContainer: function highestPopContainer() {
|
|
32853
32741
|
return document.body;
|
|
32854
32742
|
}
|
|
32855
32743
|
}));
|
|
32856
32744
|
} else {
|
|
32857
32745
|
var _values4;
|
|
32858
|
-
var _currentValue3 = dataInputBusinessType === 12 ? ((_values4 = values) === null || _values4 === void 0 ? void 0 : _values4.map(function (s, vIndex) {
|
|
32746
|
+
var _currentValue3 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values4 = values) === null || _values4 === void 0 ? void 0 : _values4.map(function (s, vIndex) {
|
|
32859
32747
|
return {
|
|
32860
32748
|
key: s,
|
|
32861
|
-
label: valueNames[vIndex]
|
|
32749
|
+
label: valueNames[vIndex],
|
|
32750
|
+
value: s
|
|
32862
32751
|
};
|
|
32863
32752
|
})) || [] : values[0] && {
|
|
32864
32753
|
key: values[0],
|
|
32865
|
-
label: valueNames[0]
|
|
32754
|
+
label: valueNames[0],
|
|
32755
|
+
value: values[0]
|
|
32866
32756
|
} || {};
|
|
32867
32757
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32868
32758
|
selectBusinessType: "channelWarehouse",
|
|
32869
32759
|
selectProps: _objectSpread2({
|
|
32870
32760
|
style: styleCommon,
|
|
32871
32761
|
placeholder: '请选择渠道仓'
|
|
32872
|
-
}, dataInputBusinessType === 12 ? {
|
|
32762
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32873
32763
|
mode: 'multiple',
|
|
32874
32764
|
maxTagCount: 1
|
|
32875
32765
|
} : {}),
|
|
@@ -32881,7 +32771,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32881
32771
|
filterInit: 'qp-channelWarehouseCode-in'
|
|
32882
32772
|
},
|
|
32883
32773
|
onChange: function onChange(value) {
|
|
32884
|
-
if (dataInputBusinessType === 12) {
|
|
32774
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32885
32775
|
values = value.map(function (i) {
|
|
32886
32776
|
return i.key;
|
|
32887
32777
|
}) || [];
|
|
@@ -32894,7 +32784,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32894
32784
|
}
|
|
32895
32785
|
callback(values, valueNames);
|
|
32896
32786
|
},
|
|
32897
|
-
|
|
32787
|
+
highestPopContainer: function highestPopContainer() {
|
|
32898
32788
|
return document.body;
|
|
32899
32789
|
}
|
|
32900
32790
|
});
|
|
@@ -32932,7 +32822,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32932
32822
|
}
|
|
32933
32823
|
callback(values, valueNames);
|
|
32934
32824
|
},
|
|
32935
|
-
|
|
32825
|
+
highestPopContainer: function highestPopContainer() {
|
|
32936
32826
|
return document.body;
|
|
32937
32827
|
}
|
|
32938
32828
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -32964,27 +32854,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32964
32854
|
}
|
|
32965
32855
|
callback(values, valueNames);
|
|
32966
32856
|
},
|
|
32967
|
-
|
|
32857
|
+
highestPopContainer: function highestPopContainer() {
|
|
32968
32858
|
return document.body;
|
|
32969
32859
|
}
|
|
32970
32860
|
}));
|
|
32971
32861
|
} else {
|
|
32972
32862
|
var _values5;
|
|
32973
|
-
var _currentValue4 = dataInputBusinessType === 12 ? ((_values5 = values) === null || _values5 === void 0 ? void 0 : _values5.map(function (s, vIndex) {
|
|
32863
|
+
var _currentValue4 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values5 = values) === null || _values5 === void 0 ? void 0 : _values5.map(function (s, vIndex) {
|
|
32974
32864
|
return {
|
|
32975
32865
|
key: s,
|
|
32976
|
-
label: valueNames[vIndex]
|
|
32866
|
+
label: valueNames[vIndex],
|
|
32867
|
+
value: s
|
|
32977
32868
|
};
|
|
32978
32869
|
})) || [] : values[0] && {
|
|
32979
32870
|
key: values[0],
|
|
32980
|
-
label: valueNames[0]
|
|
32871
|
+
label: valueNames[0],
|
|
32872
|
+
value: values[0]
|
|
32981
32873
|
} || {};
|
|
32982
32874
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
32983
32875
|
selectBusinessType: "spuCommodity",
|
|
32984
32876
|
selectProps: _objectSpread2({
|
|
32985
32877
|
style: styleCommon,
|
|
32986
32878
|
placeholder: '请选择SPU'
|
|
32987
|
-
}, dataInputBusinessType === 12 ? {
|
|
32879
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
32988
32880
|
mode: 'multiple',
|
|
32989
32881
|
maxTagCount: 1
|
|
32990
32882
|
} : {}),
|
|
@@ -32995,7 +32887,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32995
32887
|
filterInit: 'qp-itemCode-in'
|
|
32996
32888
|
},
|
|
32997
32889
|
onChange: function onChange(value) {
|
|
32998
|
-
if (dataInputBusinessType === 12) {
|
|
32890
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
32999
32891
|
values = value.map(function (i) {
|
|
33000
32892
|
return i.key;
|
|
33001
32893
|
}) || [];
|
|
@@ -33008,7 +32900,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33008
32900
|
}
|
|
33009
32901
|
callback(values, valueNames);
|
|
33010
32902
|
},
|
|
33011
|
-
|
|
32903
|
+
highestPopContainer: function highestPopContainer() {
|
|
33012
32904
|
return document.body;
|
|
33013
32905
|
}
|
|
33014
32906
|
});
|
|
@@ -33084,21 +32976,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33084
32976
|
}));
|
|
33085
32977
|
} else {
|
|
33086
32978
|
var _values6;
|
|
33087
|
-
var _currentValue5 = dataInputBusinessType === 12 ? ((_values6 = values) === null || _values6 === void 0 ? void 0 : _values6.map(function (s, vIndex) {
|
|
32979
|
+
var _currentValue5 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values6 = values) === null || _values6 === void 0 ? void 0 : _values6.map(function (s, vIndex) {
|
|
33088
32980
|
return {
|
|
33089
32981
|
key: s,
|
|
33090
|
-
label: valueNames[vIndex]
|
|
32982
|
+
label: valueNames[vIndex],
|
|
32983
|
+
value: s
|
|
33091
32984
|
};
|
|
33092
32985
|
})) || [] : values[0] && {
|
|
33093
32986
|
key: values[0],
|
|
33094
|
-
label: valueNames[0]
|
|
32987
|
+
label: valueNames[0],
|
|
32988
|
+
value: values[0]
|
|
33095
32989
|
} || {};
|
|
33096
32990
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33097
32991
|
selectBusinessType: "skuCommodity",
|
|
33098
32992
|
selectProps: _objectSpread2({
|
|
33099
32993
|
style: styleCommon,
|
|
33100
32994
|
placeholder: '请选择商品'
|
|
33101
|
-
}, dataInputBusinessType === 12 ? {
|
|
32995
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33102
32996
|
mode: 'multiple',
|
|
33103
32997
|
maxTagCount: 1
|
|
33104
32998
|
} : {}),
|
|
@@ -33109,7 +33003,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33109
33003
|
filterInit: 'qp-skuCode-in'
|
|
33110
33004
|
},
|
|
33111
33005
|
onChange: function onChange(value) {
|
|
33112
|
-
if (dataInputBusinessType === 12) {
|
|
33006
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33113
33007
|
values = value.map(function (i) {
|
|
33114
33008
|
return i.key;
|
|
33115
33009
|
}) || [];
|
|
@@ -33122,7 +33016,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33122
33016
|
}
|
|
33123
33017
|
callback(values, valueNames);
|
|
33124
33018
|
},
|
|
33125
|
-
|
|
33019
|
+
highestPopContainer: function highestPopContainer() {
|
|
33126
33020
|
return document.body;
|
|
33127
33021
|
}
|
|
33128
33022
|
});
|
|
@@ -33136,7 +33030,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33136
33030
|
isAll: true,
|
|
33137
33031
|
needNameAndCode: true,
|
|
33138
33032
|
notChangeOnSelect: true,
|
|
33139
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33033
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33140
33034
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33141
33035
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33142
33036
|
case 0:
|
|
@@ -33185,7 +33079,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33185
33079
|
isAll: true,
|
|
33186
33080
|
needNameAndCode: true,
|
|
33187
33081
|
notChangeOnSelect: true,
|
|
33188
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33082
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33189
33083
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33190
33084
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33191
33085
|
case 0:
|
|
@@ -33236,7 +33130,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33236
33130
|
isAll: true,
|
|
33237
33131
|
needNameAndCode: true,
|
|
33238
33132
|
notChangeOnSelect: true,
|
|
33239
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33133
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33240
33134
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33241
33135
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33242
33136
|
case 0:
|
|
@@ -33563,7 +33457,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33563
33457
|
}
|
|
33564
33458
|
callback(values, valueNames);
|
|
33565
33459
|
},
|
|
33566
|
-
|
|
33460
|
+
highestPopContainer: function highestPopContainer() {
|
|
33567
33461
|
return document.body;
|
|
33568
33462
|
}
|
|
33569
33463
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -33595,27 +33489,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33595
33489
|
}
|
|
33596
33490
|
callback(values, valueNames);
|
|
33597
33491
|
},
|
|
33598
|
-
|
|
33492
|
+
highestPopContainer: function highestPopContainer() {
|
|
33599
33493
|
return document.body;
|
|
33600
33494
|
}
|
|
33601
33495
|
}));
|
|
33602
33496
|
} else {
|
|
33603
33497
|
var _values7;
|
|
33604
|
-
var _currentValue6 = dataInputBusinessType === 12 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
|
|
33498
|
+
var _currentValue6 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values7 = values) === null || _values7 === void 0 ? void 0 : _values7.map(function (s, vIndex) {
|
|
33605
33499
|
return {
|
|
33606
33500
|
key: s,
|
|
33607
|
-
label: valueNames[vIndex]
|
|
33501
|
+
label: valueNames[vIndex],
|
|
33502
|
+
value: s
|
|
33608
33503
|
};
|
|
33609
33504
|
})) || [] : values[0] && {
|
|
33610
33505
|
key: values[0],
|
|
33611
|
-
label: valueNames[0]
|
|
33506
|
+
label: valueNames[0],
|
|
33507
|
+
value: values[0]
|
|
33612
33508
|
} || {};
|
|
33613
33509
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33614
33510
|
selectBusinessType: "supplier2",
|
|
33615
33511
|
selectProps: _objectSpread2({
|
|
33616
33512
|
style: styleCommon,
|
|
33617
33513
|
placeholder: '请选择供应商'
|
|
33618
|
-
}, dataInputBusinessType === 12 ? {
|
|
33514
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33619
33515
|
mode: 'multiple',
|
|
33620
33516
|
maxTagCount: 1
|
|
33621
33517
|
} : {}),
|
|
@@ -33626,7 +33522,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33626
33522
|
filterInit: 'qp-code-in'
|
|
33627
33523
|
},
|
|
33628
33524
|
onChange: function onChange(value) {
|
|
33629
|
-
if (dataInputBusinessType === 12) {
|
|
33525
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33630
33526
|
values = value.map(function (i) {
|
|
33631
33527
|
return i.key;
|
|
33632
33528
|
}) || [];
|
|
@@ -33639,7 +33535,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33639
33535
|
}
|
|
33640
33536
|
callback(values, valueNames);
|
|
33641
33537
|
},
|
|
33642
|
-
|
|
33538
|
+
highestPopContainer: function highestPopContainer() {
|
|
33643
33539
|
return document.body;
|
|
33644
33540
|
}
|
|
33645
33541
|
});
|
|
@@ -33715,21 +33611,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33715
33611
|
}));
|
|
33716
33612
|
} else {
|
|
33717
33613
|
var _values8;
|
|
33718
|
-
var _currentValue7 = dataInputBusinessType === 12 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
|
|
33614
|
+
var _currentValue7 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values8 = values) === null || _values8 === void 0 ? void 0 : _values8.map(function (s, vIndex) {
|
|
33719
33615
|
return {
|
|
33720
33616
|
key: s,
|
|
33721
|
-
label: valueNames[vIndex]
|
|
33617
|
+
label: valueNames[vIndex],
|
|
33618
|
+
value: s
|
|
33722
33619
|
};
|
|
33723
33620
|
})) || [] : values[0] && {
|
|
33724
33621
|
key: values[0],
|
|
33725
|
-
label: valueNames[0]
|
|
33622
|
+
label: valueNames[0],
|
|
33623
|
+
value: values[0]
|
|
33726
33624
|
} || {};
|
|
33727
33625
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33728
33626
|
selectBusinessType: "customer2",
|
|
33729
33627
|
selectProps: _objectSpread2({
|
|
33730
33628
|
style: styleCommon,
|
|
33731
33629
|
placeholder: '请选择客户'
|
|
33732
|
-
}, dataInputBusinessType === 12 ? {
|
|
33630
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33733
33631
|
mode: 'multiple',
|
|
33734
33632
|
maxTagCount: 1
|
|
33735
33633
|
} : {}),
|
|
@@ -33740,7 +33638,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33740
33638
|
filterInit: 'qp-code-in'
|
|
33741
33639
|
},
|
|
33742
33640
|
onChange: function onChange(value) {
|
|
33743
|
-
if (dataInputBusinessType === 12) {
|
|
33641
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33744
33642
|
values = value.map(function (i) {
|
|
33745
33643
|
return i.key;
|
|
33746
33644
|
}) || [];
|
|
@@ -33753,7 +33651,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33753
33651
|
}
|
|
33754
33652
|
callback(values, valueNames);
|
|
33755
33653
|
},
|
|
33756
|
-
|
|
33654
|
+
highestPopContainer: function highestPopContainer() {
|
|
33757
33655
|
return document.body;
|
|
33758
33656
|
}
|
|
33759
33657
|
});
|
|
@@ -33829,21 +33727,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33829
33727
|
}));
|
|
33830
33728
|
} else {
|
|
33831
33729
|
var _values9;
|
|
33832
|
-
var _currentValue8 = dataInputBusinessType === 12 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
|
|
33730
|
+
var _currentValue8 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values9 = values) === null || _values9 === void 0 ? void 0 : _values9.map(function (s, vIndex) {
|
|
33833
33731
|
return {
|
|
33834
33732
|
key: s,
|
|
33835
|
-
label: valueNames[vIndex]
|
|
33733
|
+
label: valueNames[vIndex],
|
|
33734
|
+
value: s
|
|
33836
33735
|
};
|
|
33837
33736
|
})) || [] : values[0] && {
|
|
33838
33737
|
key: values[0],
|
|
33839
|
-
label: valueNames[0]
|
|
33738
|
+
label: valueNames[0],
|
|
33739
|
+
value: values[0]
|
|
33840
33740
|
} || {};
|
|
33841
33741
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33842
33742
|
selectBusinessType: "shopFile2",
|
|
33843
33743
|
selectProps: _objectSpread2({
|
|
33844
33744
|
style: styleCommon,
|
|
33845
33745
|
placeholder: '请选择店铺'
|
|
33846
|
-
}, dataInputBusinessType === 12 ? {
|
|
33746
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33847
33747
|
mode: 'multiple',
|
|
33848
33748
|
maxTagCount: 1
|
|
33849
33749
|
} : {}),
|
|
@@ -33854,7 +33754,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33854
33754
|
filterInit: 'qp-code-in'
|
|
33855
33755
|
},
|
|
33856
33756
|
onChange: function onChange(value) {
|
|
33857
|
-
if (dataInputBusinessType === 12) {
|
|
33757
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33858
33758
|
values = value.map(function (i) {
|
|
33859
33759
|
return i.key;
|
|
33860
33760
|
}) || [];
|
|
@@ -33867,7 +33767,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33867
33767
|
}
|
|
33868
33768
|
callback(values, valueNames);
|
|
33869
33769
|
},
|
|
33870
|
-
|
|
33770
|
+
highestPopContainer: function highestPopContainer() {
|
|
33871
33771
|
return document.body;
|
|
33872
33772
|
}
|
|
33873
33773
|
});
|
|
@@ -33943,21 +33843,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33943
33843
|
}));
|
|
33944
33844
|
} else {
|
|
33945
33845
|
var _values10;
|
|
33946
|
-
var _currentValue9 = dataInputBusinessType === 12 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
33846
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
33947
33847
|
return {
|
|
33948
33848
|
key: s,
|
|
33949
|
-
label: valueNames[vIndex]
|
|
33849
|
+
label: valueNames[vIndex],
|
|
33850
|
+
value: s
|
|
33950
33851
|
};
|
|
33951
33852
|
})) || [] : values[0] && {
|
|
33952
33853
|
key: values[0],
|
|
33953
|
-
label: valueNames[0]
|
|
33854
|
+
label: valueNames[0],
|
|
33855
|
+
value: values[0]
|
|
33954
33856
|
} || {};
|
|
33955
33857
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33956
33858
|
selectBusinessType: "employee2",
|
|
33957
33859
|
selectProps: _objectSpread2({
|
|
33958
33860
|
style: styleCommon,
|
|
33959
33861
|
placeholder: '请选择员工'
|
|
33960
|
-
}, dataInputBusinessType === 12 ? {
|
|
33862
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
33961
33863
|
mode: 'multiple',
|
|
33962
33864
|
maxTagCount: 1
|
|
33963
33865
|
} : {}),
|
|
@@ -33968,7 +33870,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33968
33870
|
filterInit: 'qp-id-in'
|
|
33969
33871
|
},
|
|
33970
33872
|
onChange: function onChange(value) {
|
|
33971
|
-
if (dataInputBusinessType === 12) {
|
|
33873
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
33972
33874
|
values = value.map(function (i) {
|
|
33973
33875
|
return i.key;
|
|
33974
33876
|
}) || [];
|
|
@@ -33981,7 +33883,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33981
33883
|
}
|
|
33982
33884
|
callback(values, valueNames);
|
|
33983
33885
|
},
|
|
33984
|
-
|
|
33886
|
+
highestPopContainer: function highestPopContainer() {
|
|
33985
33887
|
return document.body;
|
|
33986
33888
|
}
|
|
33987
33889
|
});
|
|
@@ -34220,21 +34122,23 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34220
34122
|
}));
|
|
34221
34123
|
} else {
|
|
34222
34124
|
var _values11;
|
|
34223
|
-
var _currentValue10 = dataInputBusinessType === 12 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
34125
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
34224
34126
|
return {
|
|
34225
34127
|
key: s,
|
|
34226
|
-
label: valueNames[vIndex]
|
|
34128
|
+
label: valueNames[vIndex],
|
|
34129
|
+
value: s
|
|
34227
34130
|
};
|
|
34228
34131
|
})) || [] : values[0] && {
|
|
34229
34132
|
key: values[0],
|
|
34230
|
-
label: valueNames[0]
|
|
34133
|
+
label: valueNames[0],
|
|
34134
|
+
value: values[0]
|
|
34231
34135
|
} || {};
|
|
34232
34136
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34233
34137
|
selectBusinessType: "deliveryMode",
|
|
34234
34138
|
selectProps: _objectSpread2({
|
|
34235
34139
|
style: styleCommon,
|
|
34236
34140
|
placeholder: '请选择配送方式'
|
|
34237
|
-
}, dataInputBusinessType === 12 ? {
|
|
34141
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
34238
34142
|
mode: 'multiple',
|
|
34239
34143
|
maxTagCount: 1
|
|
34240
34144
|
} : {}),
|
|
@@ -34245,7 +34149,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34245
34149
|
filterInit: 'qp-code-in'
|
|
34246
34150
|
},
|
|
34247
34151
|
onChange: function onChange(value) {
|
|
34248
|
-
if (dataInputBusinessType === 12) {
|
|
34152
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
34249
34153
|
values = value.map(function (i) {
|
|
34250
34154
|
return i.key;
|
|
34251
34155
|
}) || [];
|
|
@@ -34258,7 +34162,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34258
34162
|
}
|
|
34259
34163
|
callback(values, valueNames);
|
|
34260
34164
|
},
|
|
34261
|
-
|
|
34165
|
+
highestPopContainer: function highestPopContainer() {
|
|
34262
34166
|
return document.body;
|
|
34263
34167
|
}
|
|
34264
34168
|
});
|
|
@@ -34296,7 +34200,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34296
34200
|
}
|
|
34297
34201
|
callback(values, valueNames);
|
|
34298
34202
|
},
|
|
34299
|
-
|
|
34203
|
+
highestPopContainer: function highestPopContainer() {
|
|
34300
34204
|
return document.body;
|
|
34301
34205
|
}
|
|
34302
34206
|
}), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
@@ -34328,27 +34232,29 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34328
34232
|
}
|
|
34329
34233
|
callback(values, valueNames);
|
|
34330
34234
|
},
|
|
34331
|
-
|
|
34235
|
+
highestPopContainer: function highestPopContainer() {
|
|
34332
34236
|
return document.body;
|
|
34333
34237
|
}
|
|
34334
34238
|
}));
|
|
34335
34239
|
} else {
|
|
34336
34240
|
var _values12;
|
|
34337
|
-
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
34241
|
+
var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
34338
34242
|
return {
|
|
34339
34243
|
key: s,
|
|
34340
|
-
label: valueNames[vIndex]
|
|
34244
|
+
label: valueNames[vIndex],
|
|
34245
|
+
value: s
|
|
34341
34246
|
};
|
|
34342
34247
|
})) || [] : values[0] && {
|
|
34343
34248
|
key: values[0],
|
|
34344
|
-
label: valueNames[0]
|
|
34249
|
+
label: valueNames[0],
|
|
34250
|
+
value: values[0]
|
|
34345
34251
|
} || {};
|
|
34346
34252
|
return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34347
34253
|
selectBusinessType: "role",
|
|
34348
34254
|
selectProps: _objectSpread2({
|
|
34349
34255
|
style: styleCommon,
|
|
34350
34256
|
placeholder: '请选择角色'
|
|
34351
|
-
}, dataInputBusinessType === 12 ? {
|
|
34257
|
+
}, dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? {
|
|
34352
34258
|
mode: 'multiple',
|
|
34353
34259
|
maxTagCount: 1
|
|
34354
34260
|
} : {}),
|
|
@@ -34359,7 +34265,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34359
34265
|
filterInit: 'qp-code-in'
|
|
34360
34266
|
},
|
|
34361
34267
|
onChange: function onChange(value) {
|
|
34362
|
-
if (dataInputBusinessType === 12) {
|
|
34268
|
+
if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
|
|
34363
34269
|
values = value.map(function (i) {
|
|
34364
34270
|
return i.key;
|
|
34365
34271
|
}) || [];
|
|
@@ -34372,7 +34278,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34372
34278
|
}
|
|
34373
34279
|
callback(values, valueNames);
|
|
34374
34280
|
},
|
|
34375
|
-
|
|
34281
|
+
highestPopContainer: function highestPopContainer() {
|
|
34376
34282
|
return document.body;
|
|
34377
34283
|
}
|
|
34378
34284
|
});
|
|
@@ -35202,7 +35108,7 @@ var App$1 = function App(_ref) {
|
|
|
35202
35108
|
borderRadius: '5px',
|
|
35203
35109
|
cursor: 'pointer'
|
|
35204
35110
|
}
|
|
35205
|
-
}, isStaticNumber ? (
|
|
35111
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35206
35112
|
autoFocus: true,
|
|
35207
35113
|
onClick: function onClick(e) {
|
|
35208
35114
|
return e.stopPropagation();
|
|
@@ -35489,7 +35395,7 @@ function RenderCompItem(props) {
|
|
|
35489
35395
|
dictData = _useState2[0],
|
|
35490
35396
|
setDictData = _useState2[1];
|
|
35491
35397
|
var getDictData = /*#__PURE__*/function () {
|
|
35492
|
-
var _ref = _asyncToGenerator(
|
|
35398
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35493
35399
|
var _data$map;
|
|
35494
35400
|
var data;
|
|
35495
35401
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35531,7 +35437,7 @@ function RenderCompItem(props) {
|
|
|
35531
35437
|
var style2 = {
|
|
35532
35438
|
width: '100px'
|
|
35533
35439
|
};
|
|
35534
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (
|
|
35440
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React$1.createElement(Input, {
|
|
35535
35441
|
disabled: disabled,
|
|
35536
35442
|
allowClear: true,
|
|
35537
35443
|
onClear: function onClear() {
|
|
@@ -35542,7 +35448,7 @@ function RenderCompItem(props) {
|
|
|
35542
35448
|
onBlur: function onBlur(e) {
|
|
35543
35449
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35544
35450
|
}
|
|
35545
|
-
})) || 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) && (
|
|
35451
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (/*#__PURE__*/React$1.createElement(InputNumber, {
|
|
35546
35452
|
disabled: disabled,
|
|
35547
35453
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35548
35454
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35555,7 +35461,7 @@ function RenderCompItem(props) {
|
|
|
35555
35461
|
onChange: function onChange(value) {
|
|
35556
35462
|
handleEdit(ites.code, value);
|
|
35557
35463
|
}
|
|
35558
|
-
})) || 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) && (
|
|
35464
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (/*#__PURE__*/React$1.createElement(DatePicker, {
|
|
35559
35465
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35560
35466
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35561
35467
|
disabled: disabled,
|
|
@@ -35565,7 +35471,7 @@ function RenderCompItem(props) {
|
|
|
35565
35471
|
onChange: function onChange(value, dateString) {
|
|
35566
35472
|
handleEdit(ites.code, dateString);
|
|
35567
35473
|
}
|
|
35568
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
35474
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React$1.createElement(RangePicker$1, {
|
|
35569
35475
|
showTime: true,
|
|
35570
35476
|
disabled: disabled,
|
|
35571
35477
|
defaultValue: ites.defaultValue,
|
|
@@ -35574,7 +35480,7 @@ function RenderCompItem(props) {
|
|
|
35574
35480
|
onChange: function onChange(value, timeString) {
|
|
35575
35481
|
handleEdit(ites.code, timeString);
|
|
35576
35482
|
}
|
|
35577
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
35483
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React$1.createElement(Switch, {
|
|
35578
35484
|
disabled: disabled,
|
|
35579
35485
|
defaultChecked: !!ites.defaultValue,
|
|
35580
35486
|
style: style2,
|
|
@@ -35582,7 +35488,7 @@ function RenderCompItem(props) {
|
|
|
35582
35488
|
onChange: function onChange(value) {
|
|
35583
35489
|
handleEdit(ites.code, value);
|
|
35584
35490
|
}
|
|
35585
|
-
})) || 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 && (
|
|
35491
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
35586
35492
|
disabled: disabled,
|
|
35587
35493
|
allowClear: true,
|
|
35588
35494
|
showArrow: true
|
|
@@ -35600,7 +35506,7 @@ function RenderCompItem(props) {
|
|
|
35600
35506
|
key: it,
|
|
35601
35507
|
value: it
|
|
35602
35508
|
}, ites.enumeration[it]);
|
|
35603
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (
|
|
35509
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
35604
35510
|
disabled: disabled,
|
|
35605
35511
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35606
35512
|
defaultValue: ites.defaultValue,
|
|
@@ -35610,7 +35516,7 @@ function RenderCompItem(props) {
|
|
|
35610
35516
|
handleEdit(ites.code, value);
|
|
35611
35517
|
},
|
|
35612
35518
|
dictionaryCode: ites.dictionaryCode
|
|
35613
|
-
})) || 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 && (
|
|
35519
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35614
35520
|
selectBusinessType: "physicalWarehouse",
|
|
35615
35521
|
selectProps: _objectSpread2({
|
|
35616
35522
|
style: styleCommon,
|
|
@@ -35632,7 +35538,7 @@ function RenderCompItem(props) {
|
|
|
35632
35538
|
getPopupContainer: function getPopupContainer() {
|
|
35633
35539
|
return document.body;
|
|
35634
35540
|
}
|
|
35635
|
-
})) || 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 && (
|
|
35541
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35636
35542
|
selectBusinessType: "realWarehouse",
|
|
35637
35543
|
selectProps: _objectSpread2({
|
|
35638
35544
|
style: styleCommon,
|
|
@@ -35654,7 +35560,7 @@ function RenderCompItem(props) {
|
|
|
35654
35560
|
getPopupContainer: function getPopupContainer() {
|
|
35655
35561
|
return document.body;
|
|
35656
35562
|
}
|
|
35657
|
-
})) || 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 && (
|
|
35563
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35658
35564
|
selectBusinessType: "virtualWarehouse",
|
|
35659
35565
|
selectProps: _objectSpread2({
|
|
35660
35566
|
style: styleCommon,
|
|
@@ -35676,7 +35582,7 @@ function RenderCompItem(props) {
|
|
|
35676
35582
|
getPopupContainer: function getPopupContainer() {
|
|
35677
35583
|
return document.body;
|
|
35678
35584
|
}
|
|
35679
|
-
})) || 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 && (
|
|
35585
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35680
35586
|
selectBusinessType: "channelWarehouse",
|
|
35681
35587
|
selectProps: _objectSpread2({
|
|
35682
35588
|
style: styleCommon,
|
|
@@ -35698,7 +35604,7 @@ function RenderCompItem(props) {
|
|
|
35698
35604
|
getPopupContainer: function getPopupContainer() {
|
|
35699
35605
|
return document.body;
|
|
35700
35606
|
}
|
|
35701
|
-
})) || 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 && (
|
|
35607
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35702
35608
|
selectBusinessType: "spuCommodity",
|
|
35703
35609
|
selectProps: _objectSpread2({
|
|
35704
35610
|
style: styleCommon,
|
|
@@ -35719,7 +35625,7 @@ function RenderCompItem(props) {
|
|
|
35719
35625
|
getPopupContainer: function getPopupContainer() {
|
|
35720
35626
|
return document.body;
|
|
35721
35627
|
}
|
|
35722
|
-
})) || 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 && (
|
|
35628
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35723
35629
|
selectBusinessType: "skuCommodity",
|
|
35724
35630
|
selectProps: _objectSpread2({
|
|
35725
35631
|
style: styleCommon,
|
|
@@ -35740,13 +35646,13 @@ function RenderCompItem(props) {
|
|
|
35740
35646
|
getPopupContainer: function getPopupContainer() {
|
|
35741
35647
|
return document.body;
|
|
35742
35648
|
}
|
|
35743
|
-
})) || 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 && (
|
|
35649
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React$1.createElement(BsCascader, {
|
|
35744
35650
|
disabled: disabled,
|
|
35745
35651
|
isAll: true,
|
|
35746
35652
|
needNameAndCode: true,
|
|
35747
35653
|
notChangeOnSelect: true,
|
|
35748
35654
|
initRequestSource: function () {
|
|
35749
|
-
var _initRequestSource = _asyncToGenerator(
|
|
35655
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35750
35656
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35751
35657
|
while (1) switch (_context2.prev = _context2.next) {
|
|
35752
35658
|
case 0:
|
|
@@ -35788,7 +35694,7 @@ function RenderCompItem(props) {
|
|
|
35788
35694
|
getPopupContainer: function getPopupContainer() {
|
|
35789
35695
|
return document.body;
|
|
35790
35696
|
}
|
|
35791
|
-
})) || 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 && (
|
|
35697
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35792
35698
|
disabled: disabled,
|
|
35793
35699
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35794
35700
|
businessType: "department",
|
|
@@ -35801,7 +35707,7 @@ function RenderCompItem(props) {
|
|
|
35801
35707
|
getPopupContainer: function getPopupContainer() {
|
|
35802
35708
|
return document.body;
|
|
35803
35709
|
}
|
|
35804
|
-
})) || 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 && (
|
|
35710
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35805
35711
|
disabled: disabled,
|
|
35806
35712
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35807
35713
|
businessType: "purchase-organization",
|
|
@@ -35814,7 +35720,7 @@ function RenderCompItem(props) {
|
|
|
35814
35720
|
getPopupContainer: function getPopupContainer() {
|
|
35815
35721
|
return document.body;
|
|
35816
35722
|
}
|
|
35817
|
-
})) || 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 && (
|
|
35723
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35818
35724
|
disabled: disabled,
|
|
35819
35725
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35820
35726
|
businessType: "sales-organization",
|
|
@@ -35827,7 +35733,7 @@ function RenderCompItem(props) {
|
|
|
35827
35733
|
getPopupContainer: function getPopupContainer() {
|
|
35828
35734
|
return document.body;
|
|
35829
35735
|
}
|
|
35830
|
-
})) || 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 && (
|
|
35736
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35831
35737
|
selectBusinessType: "supplier2",
|
|
35832
35738
|
selectProps: _objectSpread2({
|
|
35833
35739
|
style: styleCommon,
|
|
@@ -35848,7 +35754,7 @@ function RenderCompItem(props) {
|
|
|
35848
35754
|
getPopupContainer: function getPopupContainer() {
|
|
35849
35755
|
return document.body;
|
|
35850
35756
|
}
|
|
35851
|
-
})) || 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 && (
|
|
35757
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35852
35758
|
selectBusinessType: "customer2",
|
|
35853
35759
|
selectProps: _objectSpread2({
|
|
35854
35760
|
style: styleCommon,
|
|
@@ -35869,7 +35775,7 @@ function RenderCompItem(props) {
|
|
|
35869
35775
|
getPopupContainer: function getPopupContainer() {
|
|
35870
35776
|
return document.body;
|
|
35871
35777
|
}
|
|
35872
|
-
})) || 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 && (
|
|
35778
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35873
35779
|
selectBusinessType: "shopFile2",
|
|
35874
35780
|
selectProps: _objectSpread2({
|
|
35875
35781
|
style: styleCommon,
|
|
@@ -35890,7 +35796,7 @@ function RenderCompItem(props) {
|
|
|
35890
35796
|
getPopupContainer: function getPopupContainer() {
|
|
35891
35797
|
return document.body;
|
|
35892
35798
|
}
|
|
35893
|
-
})) || 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 && (
|
|
35799
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35894
35800
|
selectBusinessType: "employee2",
|
|
35895
35801
|
selectProps: _objectSpread2({
|
|
35896
35802
|
style: styleCommon,
|
|
@@ -35911,7 +35817,7 @@ function RenderCompItem(props) {
|
|
|
35911
35817
|
getPopupContainer: function getPopupContainer() {
|
|
35912
35818
|
return document.body;
|
|
35913
35819
|
}
|
|
35914
|
-
})) || 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 && (
|
|
35820
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35915
35821
|
disabled: disabled,
|
|
35916
35822
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35917
35823
|
businessType: "stock-organization",
|
|
@@ -35924,7 +35830,7 @@ function RenderCompItem(props) {
|
|
|
35924
35830
|
getPopupContainer: function getPopupContainer() {
|
|
35925
35831
|
return document.body;
|
|
35926
35832
|
}
|
|
35927
|
-
})) || 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 && (
|
|
35833
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35928
35834
|
disabled: disabled,
|
|
35929
35835
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35930
35836
|
businessType: "settle-organization",
|
|
@@ -35937,7 +35843,7 @@ function RenderCompItem(props) {
|
|
|
35937
35843
|
getPopupContainer: function getPopupContainer() {
|
|
35938
35844
|
return document.body;
|
|
35939
35845
|
}
|
|
35940
|
-
})) || 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 && (
|
|
35846
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35941
35847
|
selectBusinessType: "deliveryMode",
|
|
35942
35848
|
selectProps: _objectSpread2({
|
|
35943
35849
|
style: styleCommon,
|
|
@@ -35958,7 +35864,7 @@ function RenderCompItem(props) {
|
|
|
35958
35864
|
getPopupContainer: function getPopupContainer() {
|
|
35959
35865
|
return document.body;
|
|
35960
35866
|
}
|
|
35961
|
-
})) || 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 && (
|
|
35867
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35962
35868
|
selectBusinessType: "role",
|
|
35963
35869
|
selectProps: _objectSpread2({
|
|
35964
35870
|
style: styleCommon,
|
|
@@ -35979,7 +35885,7 @@ function RenderCompItem(props) {
|
|
|
35979
35885
|
getPopupContainer: function getPopupContainer() {
|
|
35980
35886
|
return document.body;
|
|
35981
35887
|
}
|
|
35982
|
-
})) || 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 && (
|
|
35888
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35983
35889
|
selectBusinessType: "brand",
|
|
35984
35890
|
selectProps: _objectSpread2({
|
|
35985
35891
|
style: styleCommon,
|
|
@@ -36000,7 +35906,7 @@ function RenderCompItem(props) {
|
|
|
36000
35906
|
getPopupContainer: function getPopupContainer() {
|
|
36001
35907
|
return document.body;
|
|
36002
35908
|
}
|
|
36003
|
-
})) || 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 && (
|
|
35909
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36004
35910
|
disabled: disabled,
|
|
36005
35911
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36006
35912
|
businessType: "background-category",
|
|
@@ -36013,7 +35919,7 @@ function RenderCompItem(props) {
|
|
|
36013
35919
|
getPopupContainer: function getPopupContainer() {
|
|
36014
35920
|
return document.body;
|
|
36015
35921
|
}
|
|
36016
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (
|
|
35922
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
36017
35923
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36018
35924
|
style: styleCommon,
|
|
36019
35925
|
placeholder: '请选择'
|
|
@@ -36036,7 +35942,7 @@ function RenderCompItem(props) {
|
|
|
36036
35942
|
onChange: function onChange(value) {
|
|
36037
35943
|
handleEdit(ites.code, value);
|
|
36038
35944
|
}
|
|
36039
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
35945
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36040
35946
|
style: {
|
|
36041
35947
|
display: 'flex'
|
|
36042
35948
|
}
|
|
@@ -36548,7 +36454,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36548
36454
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36549
36455
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36550
36456
|
}
|
|
36551
|
-
var parallelTreeData =
|
|
36457
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
36552
36458
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36553
36459
|
var _i$key;
|
|
36554
36460
|
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);
|
|
@@ -37475,13 +37381,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37475
37381
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37476
37382
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37477
37383
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37478
|
-
var list =
|
|
37384
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37479
37385
|
var requiredList = list.filter(function (c) {
|
|
37480
37386
|
return c.required == 1;
|
|
37481
37387
|
}) || []; // 获取对象属性为true的集合
|
|
37482
37388
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37483
37389
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37484
|
-
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) ?
|
|
37390
|
+
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];
|
|
37485
37391
|
(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) {
|
|
37486
37392
|
if (requiredList.some(function (r) {
|
|
37487
37393
|
return r.id === e.elementId;
|
|
@@ -38070,7 +37976,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38070
37976
|
style: {
|
|
38071
37977
|
float: 'right'
|
|
38072
37978
|
}
|
|
38073
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (
|
|
37979
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38074
37980
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38075
37981
|
ruleGroupInfo: {
|
|
38076
37982
|
ruleGroupList: ruleGroupList,
|
|
@@ -38088,7 +37994,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38088
37994
|
callBack: function callBack(newData) {
|
|
38089
37995
|
upDateData(newData);
|
|
38090
37996
|
}
|
|
38091
|
-
}))) : (
|
|
37997
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38092
37998
|
style: {
|
|
38093
37999
|
padding: 20
|
|
38094
38000
|
}
|
|
@@ -38463,4 +38369,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
38463
38369
|
}, children));
|
|
38464
38370
|
};
|
|
38465
38371
|
|
|
38466
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|
|
38372
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|