@bit-sun/business-component 4.0.13-alpha.2 → 4.0.13-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.umirc.ts +9 -9
- package/dist/components/Business/ItemPropertySelector/index.d.ts +3 -0
- package/dist/components/Functional/SearchSelect/utils.d.ts +4 -1
- package/dist/index.esm.js +935 -589
- package/dist/index.js +935 -589
- package/package.json +2 -1
- package/src/components/Business/BsSulaQueryTable/index.tsx +6 -6
- package/src/components/Business/BsSulaQueryTable/setting.tsx +3 -3
- package/src/components/Business/BsSulaQueryTable/utils.tsx +2 -1
- package/src/components/Business/CommodityEntry/index.tsx +11 -9
- package/src/components/Business/DetailPageWrapper/utils.tsx +3 -1
- package/src/components/Business/HomePageWrapper/index.less +1 -1
- package/src/components/Business/ItemPropertySelector/index.tsx +88 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +200 -2
- package/src/components/Business/SearchSelect/index.md +3 -3
- package/src/components/Business/SearchSelect/utils.ts +1 -1
- package/src/components/Functional/AddSelect/index.tsx +1 -1
- package/src/components/Functional/QueryMutipleSelect/index.md +2 -3
- package/src/components/Functional/QueryMutipleSelect/index.tsx +2 -1
- package/src/components/Functional/SearchSelect/index.less +16 -6
- package/src/components/Functional/SearchSelect/index.tsx +61 -46
- package/src/components/Functional/SearchSelect/utils.tsx +46 -6
package/dist/index.esm.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import request$1 from 'umi-request';
|
|
3
3
|
import cookie from 'js-cookie';
|
|
4
|
-
import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Tag, Select, Spin, Form, Table, Row, Col, Tabs, TreeSelect, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader,
|
|
4
|
+
import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Tag, Select, Spin, Form, Table, Empty, Row, Col, Tabs, TreeSelect, DatePicker, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader, TimePicker, Divider, Switch, Collapse } from 'antd';
|
|
5
5
|
import _, { omit, uniqBy, escapeRegExp, isNil, 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';
|
|
9
9
|
import React$1, { useState, useEffect, useRef, forwardRef, useImperativeHandle, useMemo, Component, Fragment, useLayoutEffect, createRef } from 'react';
|
|
10
|
+
import { renderToString as renderToString$1 } from 'react-dom/server';
|
|
10
11
|
import moment$1 from 'moment';
|
|
11
12
|
import { EyeOutlined, DeleteOutlined, EditOutlined, CopyOutlined, CloseSquareOutlined, WarningOutlined, SendOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, UnorderedListOutlined, DashOutlined, CaretUpOutlined, CaretDownOutlined, SearchOutlined, CloseCircleOutlined, DownCircleFilled, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, CaretLeftOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
12
13
|
import { request as request$2, Table as Table$1, QueryTable, Form as Form$1 } from 'bssula';
|
|
@@ -31,9 +32,88 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
31
32
|
import { visit } from 'ast-types';
|
|
32
33
|
import isArray$1 from 'lodash/isArray';
|
|
33
34
|
|
|
35
|
+
function _arrayLikeToArray(r, a) {
|
|
36
|
+
(null == a || a > r.length) && (a = r.length);
|
|
37
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
38
|
+
return n;
|
|
39
|
+
}
|
|
40
|
+
function _arrayWithHoles(r) {
|
|
41
|
+
if (Array.isArray(r)) return r;
|
|
42
|
+
}
|
|
43
|
+
function _arrayWithoutHoles(r) {
|
|
44
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
45
|
+
}
|
|
46
|
+
function _assertThisInitialized(e) {
|
|
47
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
48
|
+
return e;
|
|
49
|
+
}
|
|
50
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
51
|
+
try {
|
|
52
|
+
var i = n[a](c),
|
|
53
|
+
u = i.value;
|
|
54
|
+
} catch (n) {
|
|
55
|
+
return void e(n);
|
|
56
|
+
}
|
|
57
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
58
|
+
}
|
|
59
|
+
function _asyncToGenerator(n) {
|
|
60
|
+
return function () {
|
|
61
|
+
var t = this,
|
|
62
|
+
e = arguments;
|
|
63
|
+
return new Promise(function (r, o) {
|
|
64
|
+
var a = n.apply(t, e);
|
|
65
|
+
function _next(n) {
|
|
66
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
67
|
+
}
|
|
68
|
+
function _throw(n) {
|
|
69
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
70
|
+
}
|
|
71
|
+
_next(void 0);
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
}
|
|
34
75
|
function _callSuper(t, o, e) {
|
|
35
76
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
36
77
|
}
|
|
78
|
+
function _classCallCheck(a, n) {
|
|
79
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
80
|
+
}
|
|
81
|
+
function _defineProperties(e, r) {
|
|
82
|
+
for (var t = 0; t < r.length; t++) {
|
|
83
|
+
var o = r[t];
|
|
84
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function _createClass(e, r, t) {
|
|
88
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
89
|
+
writable: !1
|
|
90
|
+
}), e;
|
|
91
|
+
}
|
|
92
|
+
function _defineProperty(e, r, t) {
|
|
93
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
94
|
+
value: t,
|
|
95
|
+
enumerable: !0,
|
|
96
|
+
configurable: !0,
|
|
97
|
+
writable: !0
|
|
98
|
+
}) : e[r] = t, e;
|
|
99
|
+
}
|
|
100
|
+
function _getPrototypeOf(t) {
|
|
101
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
102
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
103
|
+
}, _getPrototypeOf(t);
|
|
104
|
+
}
|
|
105
|
+
function _inherits(t, e) {
|
|
106
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
107
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
108
|
+
constructor: {
|
|
109
|
+
value: t,
|
|
110
|
+
writable: !0,
|
|
111
|
+
configurable: !0
|
|
112
|
+
}
|
|
113
|
+
}), Object.defineProperty(t, "prototype", {
|
|
114
|
+
writable: !1
|
|
115
|
+
}), e && _setPrototypeOf(t, e);
|
|
116
|
+
}
|
|
37
117
|
function _isNativeReflectConstruct() {
|
|
38
118
|
try {
|
|
39
119
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -42,6 +122,9 @@ function _isNativeReflectConstruct() {
|
|
|
42
122
|
return !!t;
|
|
43
123
|
})();
|
|
44
124
|
}
|
|
125
|
+
function _iterableToArray(r) {
|
|
126
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
127
|
+
}
|
|
45
128
|
function _iterableToArrayLimit(r, l) {
|
|
46
129
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
47
130
|
if (null != t) {
|
|
@@ -69,6 +152,15 @@ function _iterableToArrayLimit(r, l) {
|
|
|
69
152
|
return a;
|
|
70
153
|
}
|
|
71
154
|
}
|
|
155
|
+
function _nonIterableRest() {
|
|
156
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
157
|
+
}
|
|
158
|
+
function _nonIterableSpread() {
|
|
159
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
160
|
+
}
|
|
161
|
+
function _objectDestructuringEmpty(t) {
|
|
162
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
163
|
+
}
|
|
72
164
|
function ownKeys(e, r) {
|
|
73
165
|
var t = Object.keys(e);
|
|
74
166
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -90,6 +182,31 @@ function _objectSpread2(e) {
|
|
|
90
182
|
}
|
|
91
183
|
return e;
|
|
92
184
|
}
|
|
185
|
+
function _objectWithoutProperties(e, t) {
|
|
186
|
+
if (null == e) return {};
|
|
187
|
+
var o,
|
|
188
|
+
r,
|
|
189
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
190
|
+
if (Object.getOwnPropertySymbols) {
|
|
191
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
192
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
193
|
+
}
|
|
194
|
+
return i;
|
|
195
|
+
}
|
|
196
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
197
|
+
if (null == r) return {};
|
|
198
|
+
var t = {};
|
|
199
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
200
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
201
|
+
t[n] = r[n];
|
|
202
|
+
}
|
|
203
|
+
return t;
|
|
204
|
+
}
|
|
205
|
+
function _possibleConstructorReturn(t, e) {
|
|
206
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
207
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
208
|
+
return _assertThisInitialized(t);
|
|
209
|
+
}
|
|
93
210
|
function _regeneratorRuntime() {
|
|
94
211
|
_regeneratorRuntime = function () {
|
|
95
212
|
return e;
|
|
@@ -391,6 +508,20 @@ function _regeneratorRuntime() {
|
|
|
391
508
|
}
|
|
392
509
|
}, e;
|
|
393
510
|
}
|
|
511
|
+
function _setPrototypeOf(t, e) {
|
|
512
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
513
|
+
return t.__proto__ = e, t;
|
|
514
|
+
}, _setPrototypeOf(t, e);
|
|
515
|
+
}
|
|
516
|
+
function _slicedToArray(r, e) {
|
|
517
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
518
|
+
}
|
|
519
|
+
function _toArray(r) {
|
|
520
|
+
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
521
|
+
}
|
|
522
|
+
function _toConsumableArray(r) {
|
|
523
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
524
|
+
}
|
|
394
525
|
function _toPrimitive(t, r) {
|
|
395
526
|
if ("object" != typeof t || !t) return t;
|
|
396
527
|
var e = t[Symbol.toPrimitive];
|
|
@@ -414,180 +545,12 @@ function _typeof(o) {
|
|
|
414
545
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
415
546
|
}, _typeof(o);
|
|
416
547
|
}
|
|
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");
|
|
486
|
-
}
|
|
487
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
488
|
-
constructor: {
|
|
489
|
-
value: subClass,
|
|
490
|
-
writable: true,
|
|
491
|
-
configurable: true
|
|
492
|
-
}
|
|
493
|
-
});
|
|
494
|
-
Object.defineProperty(subClass, "prototype", {
|
|
495
|
-
writable: false
|
|
496
|
-
});
|
|
497
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
498
|
-
}
|
|
499
|
-
function _getPrototypeOf(o) {
|
|
500
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
501
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
502
|
-
};
|
|
503
|
-
return _getPrototypeOf(o);
|
|
504
|
-
}
|
|
505
|
-
function _setPrototypeOf(o, p) {
|
|
506
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
507
|
-
o.__proto__ = p;
|
|
508
|
-
return o;
|
|
509
|
-
};
|
|
510
|
-
return _setPrototypeOf(o, p);
|
|
511
|
-
}
|
|
512
|
-
function _objectDestructuringEmpty(obj) {
|
|
513
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
514
|
-
}
|
|
515
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
516
|
-
if (source == null) return {};
|
|
517
|
-
var target = {};
|
|
518
|
-
for (var key in source) {
|
|
519
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
520
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
521
|
-
target[key] = source[key];
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
return target;
|
|
525
|
-
}
|
|
526
|
-
function _objectWithoutProperties(source, excluded) {
|
|
527
|
-
if (source == null) return {};
|
|
528
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
529
|
-
var key, i;
|
|
530
|
-
if (Object.getOwnPropertySymbols) {
|
|
531
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
532
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
533
|
-
key = sourceSymbolKeys[i];
|
|
534
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
535
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
536
|
-
target[key] = source[key];
|
|
537
|
-
}
|
|
548
|
+
function _unsupportedIterableToArray(r, a) {
|
|
549
|
+
if (r) {
|
|
550
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
551
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
552
|
+
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;
|
|
538
553
|
}
|
|
539
|
-
return target;
|
|
540
|
-
}
|
|
541
|
-
function _assertThisInitialized(self) {
|
|
542
|
-
if (self === void 0) {
|
|
543
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
544
|
-
}
|
|
545
|
-
return self;
|
|
546
|
-
}
|
|
547
|
-
function _possibleConstructorReturn(self, call) {
|
|
548
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
549
|
-
return call;
|
|
550
|
-
} else if (call !== void 0) {
|
|
551
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
552
|
-
}
|
|
553
|
-
return _assertThisInitialized(self);
|
|
554
|
-
}
|
|
555
|
-
function _slicedToArray(arr, i) {
|
|
556
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
557
|
-
}
|
|
558
|
-
function _toArray(arr) {
|
|
559
|
-
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
560
|
-
}
|
|
561
|
-
function _toConsumableArray(arr) {
|
|
562
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
563
|
-
}
|
|
564
|
-
function _arrayWithoutHoles(arr) {
|
|
565
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
566
|
-
}
|
|
567
|
-
function _arrayWithHoles(arr) {
|
|
568
|
-
if (Array.isArray(arr)) return arr;
|
|
569
|
-
}
|
|
570
|
-
function _iterableToArray(iter) {
|
|
571
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
572
|
-
}
|
|
573
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
574
|
-
if (!o) return;
|
|
575
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
576
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
577
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
578
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
579
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
580
|
-
}
|
|
581
|
-
function _arrayLikeToArray(arr, len) {
|
|
582
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
583
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
584
|
-
return arr2;
|
|
585
|
-
}
|
|
586
|
-
function _nonIterableSpread() {
|
|
587
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
588
|
-
}
|
|
589
|
-
function _nonIterableRest() {
|
|
590
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
591
554
|
}
|
|
592
555
|
|
|
593
556
|
var ENUM = {
|
|
@@ -1023,12 +986,6 @@ styleInject(css_248z);
|
|
|
1023
986
|
|
|
1024
987
|
var noImg = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2244px%22%20height%3D%2244px%22%20viewBox%3D%220%200%2044%2044%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E8%92%99%E7%89%88%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22path-1%22%20points%3D%22-1.56319402e-13%201.84741111e-13%2044%201.84741111e-13%2044%2044%20-1.56319402e-13%2044%22%3E%3C%2Fpolygon%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-354.000000%2C%20-672.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E4%B8%80%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%28240.000000%2C%20664.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%8D%95%E6%8D%AE%E7%BC%96%E5%8F%B7%22%20transform%3D%22translate%28106.000000%2C%200.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20transform%3D%22translate%288.000000%2C%208.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23E6F3FF%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M28.4962332%2C15%20C29.4007284%2C15%2030.1339666%2C15.7383979%2030.1339666%2C16.6492578%20L30.1339666%2C27.5596481%20C30.1339666%2C28.4705081%2029.4007284%2C29.208906%2028.4962332%2C29.208906%20L14.6377334%2C29.208906%20C13.7332382%2C29.208906%2013%2C28.4705081%2013%2C27.5596481%20L13%2C16.6492578%20C13%2C15.7383979%2013.7332382%2C15%2014.6377334%2C15%20L28.4956873%2C15%20L28.4962332%2C15%20Z%20M28.4962332%2C16.6492578%20L14.6377334%2C16.6492578%20L14.6377334%2C27.5596481%20L28.4956873%2C27.5596481%20L28.4956873%2C16.6492578%20L28.4962332%2C16.6492578%20Z%20M26.6996397%2C18.6899395%20L26.6996397%2C20.3369983%20C24.5001638%2C20.357889%2023.12283%2C21.0967565%2022.4448084%2C22.5305113%20L22.3847582%2C22.6624519%20L22.3137897%2C22.8224299%20C21.2241511%2C25.1880154%2019.0819959%2C26.322155%2016.0560105%2C26.1940627%20L16.243258%2C26.2001099%20L16.2443498%2C24.5508521%20C18.5633803%2C24.6206707%2020.0357026%2C23.8290269%2020.8190851%2C22.1473337%20L20.8824107%2C22.006597%20L20.9479201%2C21.8603628%20C21.9158205%2C19.7680044%2023.8767333%2C18.7196262%2026.6996397%2C18.6899395%20L26.6996397%2C18.6899395%20Z%20M17.5583579%2C18.3435954%20C18.1149239%2C18.3435954%2018.5661099%2C18.7979562%2018.5661099%2C19.3584387%20C18.5661099%2C19.9189212%2018.1149239%2C20.373282%2017.5583579%2C20.373282%20C17.0016411%2C20.373282%2016.550333%2C19.9187981%2016.550333%2C19.3581638%20C16.550333%2C18.7975295%2017.0016411%2C18.3430456%2017.5583579%2C18.3430456%20L17.5583579%2C18.3435954%20Z%22%20fill%3D%22%23A3D1FF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
1025
988
|
|
|
1026
|
-
module.exports = require('./server.node');
|
|
1027
|
-
|
|
1028
|
-
var ReactDOMServer = /*#__PURE__*/Object.freeze({
|
|
1029
|
-
__proto__: null
|
|
1030
|
-
});
|
|
1031
|
-
|
|
1032
989
|
// 带有toptile 清提示 并且会换行的
|
|
1033
990
|
var handleTextDouble = function handleTextDouble(textOne, textTwo) {
|
|
1034
991
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -1103,13 +1060,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1103
1060
|
imgHtml.innerHTML = str;
|
|
1104
1061
|
}
|
|
1105
1062
|
// 测试使用 测试类型缩小 end
|
|
1106
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1063
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1107
1064
|
className: "clomnsImg"
|
|
1108
1065
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1109
1066
|
src: url,
|
|
1110
1067
|
width: "16px",
|
|
1111
1068
|
height: "16px"
|
|
1112
|
-
}, paramsObj)))) : (
|
|
1069
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1113
1070
|
className: "clomnsImg2"
|
|
1114
1071
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1115
1072
|
src: noImg
|
|
@@ -1231,7 +1188,8 @@ var authFn = function authFn(code) {
|
|
|
1231
1188
|
};
|
|
1232
1189
|
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1233
1190
|
var renderToString = function renderToString(render) {
|
|
1234
|
-
return
|
|
1191
|
+
// return render;
|
|
1192
|
+
return typeof render === 'string' ? render : renderToString$1(render);
|
|
1235
1193
|
};
|
|
1236
1194
|
|
|
1237
1195
|
function downloadExcel(data, fileName, isResUrl) {
|
|
@@ -1245,7 +1203,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1245
1203
|
}
|
|
1246
1204
|
save_link.click();
|
|
1247
1205
|
}
|
|
1248
|
-
var
|
|
1206
|
+
var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
1249
1207
|
return data.map(function (item) {
|
|
1250
1208
|
if (!item.name || !item.path) {
|
|
1251
1209
|
return null;
|
|
@@ -1265,7 +1223,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1265
1223
|
authority: item.authority || parentAuthority
|
|
1266
1224
|
});
|
|
1267
1225
|
if (item.routes) {
|
|
1268
|
-
var children =
|
|
1226
|
+
var children = _formatter(item.routes, item.authority, locale);
|
|
1269
1227
|
// Reduce memory usage
|
|
1270
1228
|
result.children = children;
|
|
1271
1229
|
}
|
|
@@ -1275,7 +1233,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1275
1233
|
return item;
|
|
1276
1234
|
});
|
|
1277
1235
|
};
|
|
1278
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1236
|
+
var memoizeOneFormatter = memoizeOne(_formatter, isEqual);
|
|
1279
1237
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1280
1238
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1281
1239
|
if (backHistoryPath) {
|
|
@@ -1584,7 +1542,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1584
1542
|
// sheepMap是表头字段中英文映射
|
|
1585
1543
|
// sheetCount:表的数量,默认一张
|
|
1586
1544
|
var resolveFile = /*#__PURE__*/function () {
|
|
1587
|
-
var _ref3 = _asyncToGenerator(
|
|
1545
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1588
1546
|
var config,
|
|
1589
1547
|
data,
|
|
1590
1548
|
_args = arguments;
|
|
@@ -1623,7 +1581,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1623
1581
|
}();
|
|
1624
1582
|
//读取文件
|
|
1625
1583
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1626
|
-
var _ref4 = _asyncToGenerator(
|
|
1584
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1627
1585
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1628
1586
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1629
1587
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1716,14 +1674,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1716
1674
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1717
1675
|
|
|
1718
1676
|
// 获取树平行结构
|
|
1719
|
-
var
|
|
1677
|
+
var _coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1720
1678
|
var childrenKey = chilKey || 'children';
|
|
1721
1679
|
treeData.forEach(function (el) {
|
|
1722
1680
|
var _el$childrenKey;
|
|
1723
1681
|
result.push(el);
|
|
1724
1682
|
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) {
|
|
1725
1683
|
// 子级递归
|
|
1726
|
-
|
|
1684
|
+
_coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1727
1685
|
}
|
|
1728
1686
|
});
|
|
1729
1687
|
return result;
|
|
@@ -2000,13 +1958,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
2000
1958
|
imgHtml.innerHTML = str;
|
|
2001
1959
|
}
|
|
2002
1960
|
// 测试使用 测试类型缩小 end
|
|
2003
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1961
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
2004
1962
|
className: "clomnsImg"
|
|
2005
1963
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
2006
1964
|
src: url,
|
|
2007
1965
|
width: "16px",
|
|
2008
1966
|
height: "16px"
|
|
2009
|
-
}, paramsObj)))) : (
|
|
1967
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2010
1968
|
src: noImg
|
|
2011
1969
|
}))));
|
|
2012
1970
|
};
|
|
@@ -2068,7 +2026,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2068
2026
|
}
|
|
2069
2027
|
});
|
|
2070
2028
|
};
|
|
2071
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (
|
|
2029
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2072
2030
|
disabled: disabled,
|
|
2073
2031
|
onChange: function onChange(e) {
|
|
2074
2032
|
var v = e.target.value;
|
|
@@ -2078,7 +2036,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2078
2036
|
width: 170
|
|
2079
2037
|
},
|
|
2080
2038
|
value: inputValue
|
|
2081
|
-
}, inpProps))), type === 'number' && (
|
|
2039
|
+
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2082
2040
|
disabled: disabled,
|
|
2083
2041
|
onBlur: function onBlur(e) {
|
|
2084
2042
|
var v = parseFloat(e.target.value);
|
|
@@ -2457,16 +2415,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2457
2415
|
var handleExportBarCode = handleExport;
|
|
2458
2416
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2459
2417
|
var routerMap = {};
|
|
2460
|
-
var
|
|
2418
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
2461
2419
|
data.forEach(function (menuItem) {
|
|
2462
2420
|
if (menuItem.children) {
|
|
2463
|
-
|
|
2421
|
+
_flattenMenuData(menuItem.children);
|
|
2464
2422
|
}
|
|
2465
2423
|
// Reduce memory usage
|
|
2466
2424
|
routerMap[menuItem.path] = menuItem;
|
|
2467
2425
|
});
|
|
2468
2426
|
};
|
|
2469
|
-
|
|
2427
|
+
_flattenMenuData(menuData);
|
|
2470
2428
|
return routerMap;
|
|
2471
2429
|
};
|
|
2472
2430
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2609,7 +2567,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2609
2567
|
return request$1(url, parms).then(handleResponseData);
|
|
2610
2568
|
};
|
|
2611
2569
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2612
|
-
var _ref2 = _asyncToGenerator(
|
|
2570
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2613
2571
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2614
2572
|
while (1) switch (_context.prev = _context.next) {
|
|
2615
2573
|
case 0:
|
|
@@ -3287,7 +3245,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3287
3245
|
style: {
|
|
3288
3246
|
color: 'red'
|
|
3289
3247
|
}
|
|
3290
|
-
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3248
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3291
3249
|
trigger: ['click'],
|
|
3292
3250
|
overlay: this.menuList,
|
|
3293
3251
|
placement: "bottomRight"
|
|
@@ -3962,7 +3920,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3962
3920
|
placement: "bottomLeft"
|
|
3963
3921
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3964
3922
|
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"))
|
|
3965
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3923
|
+
}, /*#__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, {
|
|
3966
3924
|
trigger: ['click'],
|
|
3967
3925
|
overlay: this.menuList,
|
|
3968
3926
|
placement: "bottomRight"
|
|
@@ -4134,14 +4092,16 @@ var makeUniqueValue = function makeUniqueValue() {
|
|
|
4134
4092
|
return generateUnitKey;
|
|
4135
4093
|
};
|
|
4136
4094
|
// ------------------------------------------处理样式相关--开始----------------------------------------
|
|
4137
|
-
var getFormRowInfo = function getFormRowInfo(list) {
|
|
4138
|
-
var
|
|
4139
|
-
var
|
|
4140
|
-
var
|
|
4095
|
+
var getFormRowInfo = function getFormRowInfo(list, tableSearchColSpan) {
|
|
4096
|
+
var lastColumnsPerRow = tableSearchColSpan == 6 ? columnsPerRow : 3;
|
|
4097
|
+
var totalRows = Math.ceil(list.length / lastColumnsPerRow); // 计算总行数
|
|
4098
|
+
var lastRowColumns = (list.length + 1) % lastColumnsPerRow; // 计算最后一行的实际列数
|
|
4099
|
+
var emptySlots = lastRowColumns === 0 ? 0 : lastColumnsPerRow - lastRowColumns; // 计算最后一行的空位数
|
|
4141
4100
|
var emptyArray = new Array(emptySlots).fill(null); // 生成长度为 emptySlots 的数组
|
|
4142
4101
|
return {
|
|
4143
4102
|
totalRows: totalRows,
|
|
4144
|
-
emptyArray: emptyArray
|
|
4103
|
+
emptyArray: emptyArray,
|
|
4104
|
+
ColSpan: tableSearchColSpan !== null && tableSearchColSpan !== void 0 ? tableSearchColSpan : ColSpan
|
|
4145
4105
|
};
|
|
4146
4106
|
};
|
|
4147
4107
|
var defaultVisibleFieldsCount = 7;
|
|
@@ -4481,7 +4441,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4481
4441
|
destroyTooltipOnHide: true,
|
|
4482
4442
|
placement: "topRight",
|
|
4483
4443
|
autoAdjustOverflow: false,
|
|
4484
|
-
title: (
|
|
4444
|
+
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4485
4445
|
style: {
|
|
4486
4446
|
margin: '6px 8px 0px'
|
|
4487
4447
|
},
|
|
@@ -4507,7 +4467,77 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4507
4467
|
})))
|
|
4508
4468
|
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
4509
4469
|
};
|
|
4470
|
+
// 弹窗数据表头处理
|
|
4471
|
+
var handleTableColumns = function handleTableColumns(tableColumns) {
|
|
4472
|
+
// 按照默认设置排序 > 没有排序字段的展示所有列表头 > 没有表头列不展示
|
|
4473
|
+
var showTableColumns = (tableColumns === null || tableColumns === void 0 ? void 0 : tableColumns.filter(function (s) {
|
|
4474
|
+
return typeof s.defaultSort == 'number';
|
|
4475
|
+
})) || tableColumns || [];
|
|
4476
|
+
return (showTableColumns === null || showTableColumns === void 0 ? void 0 : showTableColumns.sort(function (a, b) {
|
|
4477
|
+
return a.defaultSort - b.defaultSort;
|
|
4478
|
+
})) || [];
|
|
4479
|
+
};
|
|
4510
4480
|
// ------------------------------------------ 数据源展示 相关处理--结束----------------------------------------
|
|
4481
|
+
// ------------------------------------------ 选中数据展示 相关处理--开始----------------------------------------
|
|
4482
|
+
var getShowLabelTextStr = function getShowLabelTextStr(_ref4) {
|
|
4483
|
+
var kongValue = _ref4.kongValue,
|
|
4484
|
+
selectMode = _ref4.selectMode,
|
|
4485
|
+
value = _ref4.value,
|
|
4486
|
+
items = _ref4.items;
|
|
4487
|
+
if (selectMode) {
|
|
4488
|
+
var _value$map;
|
|
4489
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
4490
|
+
return item.label || item.text || '';
|
|
4491
|
+
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
4492
|
+
}
|
|
4493
|
+
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
4494
|
+
};
|
|
4495
|
+
var getSelectValueText = function getSelectValueText(v, items) {
|
|
4496
|
+
var _filter, _filter$;
|
|
4497
|
+
return ((_filter = (items || []).filter(function (item) {
|
|
4498
|
+
return item.value === v;
|
|
4499
|
+
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
4500
|
+
};
|
|
4501
|
+
var getShowValueStr = function getShowValueStr(_ref5) {
|
|
4502
|
+
var kongValue = _ref5.kongValue,
|
|
4503
|
+
selectMode = _ref5.selectMode,
|
|
4504
|
+
value = _ref5.value,
|
|
4505
|
+
items = _ref5.items;
|
|
4506
|
+
if (selectMode) {
|
|
4507
|
+
var _value$map2;
|
|
4508
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
4509
|
+
return getSelectValueText(item, items);
|
|
4510
|
+
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
4511
|
+
}
|
|
4512
|
+
return getSelectValueText(value, items) || kongValue;
|
|
4513
|
+
};
|
|
4514
|
+
var getShowStr = function getShowStr(_ref6) {
|
|
4515
|
+
var viewShowValueStr = _ref6.viewShowValueStr,
|
|
4516
|
+
labelInValue = _ref6.labelInValue,
|
|
4517
|
+
selectMode = _ref6.selectMode,
|
|
4518
|
+
value = _ref6.value,
|
|
4519
|
+
items = _ref6.items;
|
|
4520
|
+
// 优先使用业务使用传入的展示
|
|
4521
|
+
if (viewShowValueStr) return viewShowValueStr;
|
|
4522
|
+
var kongValue = '无';
|
|
4523
|
+
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
4524
|
+
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
4525
|
+
if (labelInValue) {
|
|
4526
|
+
return getShowLabelTextStr({
|
|
4527
|
+
kongValue: kongValue,
|
|
4528
|
+
selectMode: selectMode,
|
|
4529
|
+
value: value,
|
|
4530
|
+
items: items
|
|
4531
|
+
});
|
|
4532
|
+
}
|
|
4533
|
+
return getShowValueStr({
|
|
4534
|
+
kongValue: kongValue,
|
|
4535
|
+
selectMode: selectMode,
|
|
4536
|
+
value: value,
|
|
4537
|
+
items: items
|
|
4538
|
+
});
|
|
4539
|
+
};
|
|
4540
|
+
// ------------------------------------------ 选中数据展示 相关处理--结束---------------------------------------
|
|
4511
4541
|
|
|
4512
4542
|
var getValue = function getValue(value, selectMode) {
|
|
4513
4543
|
var _value$split;
|
|
@@ -4623,6 +4653,7 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4623
4653
|
var callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
4624
4654
|
if (!requestConfig) return;
|
|
4625
4655
|
if (!url) return;
|
|
4656
|
+
if (!(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) return; // 空值默认不查询
|
|
4626
4657
|
setFetching(true);
|
|
4627
4658
|
var queryParams = _objectSpread2(_objectSpread2({}, otherParams), params);
|
|
4628
4659
|
if (isNil(queryParams[selectParamsKey])) {
|
|
@@ -4712,14 +4743,14 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4712
4743
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4713
4744
|
});
|
|
4714
4745
|
},
|
|
4715
|
-
notFoundContent: fetching ? (
|
|
4746
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4716
4747
|
size: "small",
|
|
4717
4748
|
className: 'searchSelectSpin'
|
|
4718
|
-
})) : (
|
|
4749
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4719
4750
|
style: {
|
|
4720
4751
|
textAlign: 'center'
|
|
4721
4752
|
}
|
|
4722
|
-
}, /*#__PURE__*/React$1.createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : "\u8BF7\u5F55\u5165\
|
|
4753
|
+
}, /*#__PURE__*/React$1.createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : (selectProps === null || selectProps === void 0 ? void 0 : selectProps.notFoundText) || "\u8BF7\u5F55\u5165\u7F16\u7801/\u540D\u79F0\u6A21\u7CCA\u67E5\u8BE2"))),
|
|
4723
4754
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
4724
4755
|
return triggerNode.parentElement;
|
|
4725
4756
|
}
|
|
@@ -4783,7 +4814,7 @@ function ToCDB$1(selectStr) {
|
|
|
4783
4814
|
return tmp;
|
|
4784
4815
|
}
|
|
4785
4816
|
|
|
4786
|
-
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table
|
|
4817
|
+
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n visibility: hidden;\n padding: 0;\n margin: 0;\n width: 0;\n height: 0;\n min-width: 0;\n min-height: 0;\n border: none;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 235px);\n overflow: hidden;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapLeft2 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapRight .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable_wrapLeft1 {\n width: 100%;\n}\n.search_select_wrapper_bottomTable_wrapRight {\n margin-left: 10px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav {\n margin: 0;\n padding: 6px 18.5px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {\n height: 28px;\n font-size: 14px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {\n padding: 4px 0;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {\n left: 3px !important;\n width: 40px !important;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {\n color: #005cff;\n cursor: pointer;\n}\n.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder {\n padding: 10px 10px 7px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {\n color: #333333;\n}\n.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {\n color: #005cff;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active a {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active {\n border-color: #005cff;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n.searchSelectMaxTagToolTip .ant-tooltip-inner {\n max-height: 72px;\n overflow-x: auto;\n padding: 0px;\n}\n";
|
|
4787
4818
|
styleInject(css_248z$6);
|
|
4788
4819
|
|
|
4789
4820
|
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";
|
|
@@ -4947,7 +4978,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4947
4978
|
title: item.name,
|
|
4948
4979
|
className: "propertyGroup_checkbox_container"
|
|
4949
4980
|
}, item.name));
|
|
4950
|
-
}), !!notCommonUseProperty.length && (
|
|
4981
|
+
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
4951
4982
|
style: {
|
|
4952
4983
|
width: '50px',
|
|
4953
4984
|
cursor: 'pointer',
|
|
@@ -4960,7 +4991,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4960
4991
|
setShowNotCommon(!showNotCommon);
|
|
4961
4992
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4962
4993
|
}
|
|
4963
|
-
}, showNotCommon && (
|
|
4994
|
+
}, 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"))))));
|
|
4964
4995
|
};
|
|
4965
4996
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4966
4997
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5190,7 +5221,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5190
5221
|
propertyData: item,
|
|
5191
5222
|
handleProperyItemChange: handleProperyItemChange
|
|
5192
5223
|
});
|
|
5193
|
-
}))), !!notCommonProperty.length && (
|
|
5224
|
+
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5194
5225
|
style: {
|
|
5195
5226
|
width: '50px',
|
|
5196
5227
|
cursor: 'pointer',
|
|
@@ -5200,12 +5231,59 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5200
5231
|
onClick: function onClick() {
|
|
5201
5232
|
return setShowNotCommon(!showNotCommon);
|
|
5202
5233
|
}
|
|
5203
|
-
}, showNotCommon && (
|
|
5234
|
+
}, 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"))))))));
|
|
5235
|
+
};
|
|
5236
|
+
|
|
5237
|
+
var _excluded$4 = ["onChange", "value", "propertyCode", "name"];
|
|
5238
|
+
var ItemPropertySelector = function ItemPropertySelector(_ref) {
|
|
5239
|
+
var _onChange = _ref.onChange,
|
|
5240
|
+
value = _ref.value,
|
|
5241
|
+
propertyCode = _ref.propertyCode,
|
|
5242
|
+
name = _ref.name,
|
|
5243
|
+
restProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
5244
|
+
var _useState = useState([]),
|
|
5245
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
5246
|
+
source = _useState2[0],
|
|
5247
|
+
setSource = _useState2[1];
|
|
5248
|
+
useEffect(function () {
|
|
5249
|
+
// FIXME: 目前只能通过固定属性编码先获取属性id,再通过属性id去查属性值 @林军
|
|
5250
|
+
if (propertyCode) {
|
|
5251
|
+
request$2({
|
|
5252
|
+
url: "/items/item/propertyValue/getPropertyValueNoPagerByCode?qp-propertyCode-eq=".concat(propertyCode, "&pageSize=5000"),
|
|
5253
|
+
method: 'GET',
|
|
5254
|
+
converter: function converter(_ref2) {
|
|
5255
|
+
var data = _ref2.data;
|
|
5256
|
+
var source = ((data === null || data === void 0 ? void 0 : data.items) || []).map(function (item) {
|
|
5257
|
+
return {
|
|
5258
|
+
text: item.value,
|
|
5259
|
+
value: item.value
|
|
5260
|
+
};
|
|
5261
|
+
});
|
|
5262
|
+
setSource(source);
|
|
5263
|
+
}
|
|
5264
|
+
});
|
|
5265
|
+
return;
|
|
5266
|
+
}
|
|
5267
|
+
}, [propertyCode]);
|
|
5268
|
+
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
5269
|
+
value: value,
|
|
5270
|
+
allowClear: true,
|
|
5271
|
+
style: {
|
|
5272
|
+
width: '100%'
|
|
5273
|
+
},
|
|
5274
|
+
onChange: function onChange(v) {
|
|
5275
|
+
_onChange(v);
|
|
5276
|
+
}
|
|
5277
|
+
}), source.map(function (res) {
|
|
5278
|
+
return /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
5279
|
+
value: res.value
|
|
5280
|
+
}, res.text);
|
|
5281
|
+
}));
|
|
5204
5282
|
};
|
|
5205
5283
|
|
|
5206
5284
|
var Option$1 = Select.Option;
|
|
5207
5285
|
var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
5208
|
-
var _pathname$match
|
|
5286
|
+
var _pathname$match;
|
|
5209
5287
|
var value = props.value,
|
|
5210
5288
|
onChangeTemp = props.onChange,
|
|
5211
5289
|
_props$selectProps = props.selectProps,
|
|
@@ -5214,7 +5292,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5214
5292
|
modalTableProps = _props$modalTableProp === void 0 ? {} : _props$modalTableProp,
|
|
5215
5293
|
_props$labelInValue = props.labelInValue,
|
|
5216
5294
|
labelInValue = _props$labelInValue === void 0 ? false : _props$labelInValue,
|
|
5217
|
-
|
|
5295
|
+
needTopSelectedSource = props.needTopSelectedSource,
|
|
5296
|
+
rCTemp = props.requestConfig,
|
|
5218
5297
|
ctx = props.ctx,
|
|
5219
5298
|
_props$onlyShowStr = props.onlyShowStr,
|
|
5220
5299
|
sourceName = props.sourceName,
|
|
@@ -5226,7 +5305,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5226
5305
|
fieldComponent = props.fieldComponent,
|
|
5227
5306
|
onSaveCallback = props.onSaveCallback,
|
|
5228
5307
|
selectBusinessType = props.selectBusinessType;
|
|
5229
|
-
var _ref =
|
|
5308
|
+
var _ref = rCTemp || {},
|
|
5230
5309
|
url = _ref.url,
|
|
5231
5310
|
_ref$method = _ref.method,
|
|
5232
5311
|
method = _ref$method === void 0 ? 'get' : _ref$method,
|
|
@@ -5253,6 +5332,26 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5253
5332
|
noOperate = _ref.noOperate,
|
|
5254
5333
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
5255
5334
|
searchStartLength = _ref.searchStartLength;
|
|
5335
|
+
var requestConfig = _objectSpread2({
|
|
5336
|
+
url: url,
|
|
5337
|
+
method: method,
|
|
5338
|
+
otherParams: otherParams,
|
|
5339
|
+
isMap: isMap,
|
|
5340
|
+
fixedparameter: fixedparameter,
|
|
5341
|
+
fieldValToParam: fieldValToParam,
|
|
5342
|
+
fixedparamsDisabled: fixedparamsDisabled,
|
|
5343
|
+
mappingTextField: mappingTextField,
|
|
5344
|
+
mappingTextShowKeyField: mappingTextShowKeyField,
|
|
5345
|
+
mappingValueField: mappingValueField,
|
|
5346
|
+
mappingTextShowTextField: mappingTextShowTextField,
|
|
5347
|
+
init: init,
|
|
5348
|
+
extralHeaders: extralHeaders,
|
|
5349
|
+
specialBracket: specialBracket,
|
|
5350
|
+
noNeedSplit: noNeedSplit,
|
|
5351
|
+
noOperate: noOperate,
|
|
5352
|
+
viewShowValueStr: viewShowValueStr,
|
|
5353
|
+
searchStartLength: searchStartLength
|
|
5354
|
+
}, rCTemp);
|
|
5256
5355
|
var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'supplierCode');
|
|
5257
5356
|
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
5258
5357
|
var initVal = value || (selectMode ? [] : null);
|
|
@@ -5287,7 +5386,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5287
5386
|
total: 0,
|
|
5288
5387
|
current: 1
|
|
5289
5388
|
});
|
|
5290
|
-
var disabled = noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5389
|
+
var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5291
5390
|
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
5292
5391
|
var isHaveDValue = function isHaveDValue() {
|
|
5293
5392
|
var formValueList = [];
|
|
@@ -5408,14 +5507,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5408
5507
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5409
5508
|
tooltipVisible = _useState40[0],
|
|
5410
5509
|
setTooltipVisible = _useState40[1];
|
|
5411
|
-
var _useState41 = useState((modalTableProps === null || modalTableProps === void 0 ? void 0 :
|
|
5412
|
-
return typeof s.defaultSort == 'number';
|
|
5413
|
-
})) === null || _modalTableProps$tabl2 === void 0 ? void 0 : _modalTableProps$tabl2.sort(function (a, b) {
|
|
5414
|
-
return a.defaultSort - b.defaultSort;
|
|
5415
|
-
})) || []),
|
|
5510
|
+
var _useState41 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5416
5511
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5417
5512
|
tableShowColumns = _useState42[0],
|
|
5418
|
-
setTabletShowColumns = _useState42[1];
|
|
5513
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5419
5514
|
var _useState43 = useState(false),
|
|
5420
5515
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5421
5516
|
confirmLoading = _useState44[0],
|
|
@@ -5473,6 +5568,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5473
5568
|
});
|
|
5474
5569
|
// 获取数据源 (type: 1下拉框 2/3弹框 不传值默认为下拉框)
|
|
5475
5570
|
var getData = function getData() {
|
|
5571
|
+
var _method$toLocaleLower;
|
|
5476
5572
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
5477
5573
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
5478
5574
|
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
@@ -5512,11 +5608,11 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5512
5608
|
pageSize: pageSize,
|
|
5513
5609
|
currentPage: currentPage
|
|
5514
5610
|
}, otherParams), fixedParam), params);
|
|
5515
|
-
if (isNil(queryParams[selectParamsKey])) {
|
|
5611
|
+
if (isNil(queryParams[selectParamsKey]) && (searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) {
|
|
5516
5612
|
queryParams[selectParamsKey] = searchValue;
|
|
5517
5613
|
}
|
|
5518
5614
|
var getRequest;
|
|
5519
|
-
var methodName = method === null || method === void 0 ? void 0 : method.toLocaleLowerCase();
|
|
5615
|
+
var methodName = method === null || method === void 0 ? void 0 : (_method$toLocaleLower = method.toLocaleLowerCase) === null || _method$toLocaleLower === void 0 ? void 0 : _method$toLocaleLower.call(method);
|
|
5520
5616
|
if (['post', 'patch', 'put'].includes(methodName)) {
|
|
5521
5617
|
getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams));
|
|
5522
5618
|
} else {
|
|
@@ -5539,7 +5635,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5539
5635
|
value: value,
|
|
5540
5636
|
type: type,
|
|
5541
5637
|
items: items,
|
|
5542
|
-
queryParams: queryParams
|
|
5638
|
+
queryParams: queryParams,
|
|
5639
|
+
needTopSelectedSource: needTopSelectedSource
|
|
5543
5640
|
});
|
|
5544
5641
|
if (callback) {
|
|
5545
5642
|
callback(source);
|
|
@@ -5616,6 +5713,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5616
5713
|
}, [value]);
|
|
5617
5714
|
useEffect(function () {
|
|
5618
5715
|
setUniqueValue(makeUniqueValue());
|
|
5716
|
+
setTabletShowColumns(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns));
|
|
5619
5717
|
}, [resultSourceKey]);
|
|
5620
5718
|
useEffect(function () {
|
|
5621
5719
|
if (init) {
|
|
@@ -5867,7 +5965,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5867
5965
|
};
|
|
5868
5966
|
var formItem = function formItem(list) {
|
|
5869
5967
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
5870
|
-
var _list$concat;
|
|
5871
5968
|
var setDisabled = function setDisabled(name) {
|
|
5872
5969
|
if (fixedparamsDisabled && (fixedparameter === null || fixedparameter === void 0 ? void 0 : fixedparameter.length) && fixedparameter.find(function (item) {
|
|
5873
5970
|
return item === name;
|
|
@@ -5877,15 +5974,17 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5877
5974
|
return false;
|
|
5878
5975
|
}
|
|
5879
5976
|
};
|
|
5880
|
-
var _getFormRowInfo = getFormRowInfo(list),
|
|
5881
|
-
emptyArray = _getFormRowInfo.emptyArray
|
|
5977
|
+
var _getFormRowInfo = getFormRowInfo(list, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan),
|
|
5978
|
+
emptyArray = _getFormRowInfo.emptyArray,
|
|
5979
|
+
ColSpan = _getFormRowInfo.ColSpan;
|
|
5882
5980
|
var addKong = (emptyArray === null || emptyArray === void 0 ? void 0 : emptyArray.map(function (i) {
|
|
5883
5981
|
return {
|
|
5884
5982
|
type: 'kong'
|
|
5885
5983
|
};
|
|
5886
5984
|
})) || [];
|
|
5887
|
-
|
|
5888
|
-
|
|
5985
|
+
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
5986
|
+
return searchList.map(function (i, index) {
|
|
5987
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
|
|
5889
5988
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
5890
5989
|
span: ColSpan,
|
|
5891
5990
|
key: i
|
|
@@ -5934,7 +6033,44 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5934
6033
|
disabled: setDisabled(i.name)
|
|
5935
6034
|
}))));
|
|
5936
6035
|
}
|
|
5937
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === '
|
|
6036
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'rangepicker' || (i === null || i === void 0 ? void 0 : (_i$field5 = i.field) === null || _i$field5 === void 0 ? void 0 : _i$field5.type) === 'rangepicker') {
|
|
6037
|
+
var _i$initialValue, _i$field6;
|
|
6038
|
+
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6039
|
+
span: ColSpan,
|
|
6040
|
+
key: i.name
|
|
6041
|
+
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
6042
|
+
name: i.name,
|
|
6043
|
+
label: i.label,
|
|
6044
|
+
key: i.name,
|
|
6045
|
+
initialValue: (_i$initialValue = i === null || i === void 0 ? void 0 : i.initialValue) !== null && _i$initialValue !== void 0 ? _i$initialValue : []
|
|
6046
|
+
}, /*#__PURE__*/React$1.createElement(DatePicker.RangePicker, _objectSpread2(_objectSpread2({
|
|
6047
|
+
style: {
|
|
6048
|
+
width: '100%'
|
|
6049
|
+
},
|
|
6050
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6051
|
+
}, i === null || i === void 0 ? void 0 : (_i$field6 = i.field) === null || _i$field6 === void 0 ? void 0 : _i$field6.props), {}, {
|
|
6052
|
+
disabled: setDisabled(i.name)
|
|
6053
|
+
}))));
|
|
6054
|
+
}
|
|
6055
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'datepicker' || (i === null || i === void 0 ? void 0 : (_i$field7 = i.field) === null || _i$field7 === void 0 ? void 0 : _i$field7.type) === 'datepicker') {
|
|
6056
|
+
var _i$field8;
|
|
6057
|
+
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6058
|
+
span: ColSpan,
|
|
6059
|
+
key: i.name
|
|
6060
|
+
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
6061
|
+
name: i.name,
|
|
6062
|
+
label: i.label,
|
|
6063
|
+
key: i.name
|
|
6064
|
+
}, /*#__PURE__*/React$1.createElement(DatePicker, _objectSpread2(_objectSpread2({
|
|
6065
|
+
style: {
|
|
6066
|
+
width: '100%'
|
|
6067
|
+
},
|
|
6068
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6069
|
+
}, i === null || i === void 0 ? void 0 : (_i$field8 = i.field) === null || _i$field8 === void 0 ? void 0 : _i$field8.props), {}, {
|
|
6070
|
+
disabled: setDisabled(i.name)
|
|
6071
|
+
}))));
|
|
6072
|
+
}
|
|
6073
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'businessSearchSelect' || (i === null || i === void 0 ? void 0 : (_i$field9 = i.field) === null || _i$field9 === void 0 ? void 0 : _i$field9.type) === 'businessSearchSelect') {
|
|
5938
6074
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5939
6075
|
span: ColSpan,
|
|
5940
6076
|
key: i.name
|
|
@@ -5946,7 +6082,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5946
6082
|
disabled: setDisabled(i.name)
|
|
5947
6083
|
}))));
|
|
5948
6084
|
}
|
|
5949
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6085
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'multipleQueryInput') {
|
|
5950
6086
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5951
6087
|
span: ColSpan,
|
|
5952
6088
|
key: i.name
|
|
@@ -5960,7 +6096,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5960
6096
|
}
|
|
5961
6097
|
})));
|
|
5962
6098
|
}
|
|
5963
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6099
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
5964
6100
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5965
6101
|
span: ColSpan,
|
|
5966
6102
|
key: i.name
|
|
@@ -5970,7 +6106,23 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5970
6106
|
key: i.name
|
|
5971
6107
|
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
5972
6108
|
}
|
|
5973
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6109
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'itemPropertySelector') {
|
|
6110
|
+
var _i$field13;
|
|
6111
|
+
return /*#__PURE__*/React$1.createElement(Col, {
|
|
6112
|
+
span: ColSpan,
|
|
6113
|
+
key: i.name
|
|
6114
|
+
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
6115
|
+
name: i.name,
|
|
6116
|
+
label: i.label,
|
|
6117
|
+
key: i.name
|
|
6118
|
+
}, /*#__PURE__*/React$1.createElement(ItemPropertySelector, _objectSpread2({
|
|
6119
|
+
style: {
|
|
6120
|
+
width: '100%'
|
|
6121
|
+
},
|
|
6122
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6123
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
|
|
6124
|
+
}
|
|
6125
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
|
|
5974
6126
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5975
6127
|
span: ColSpan,
|
|
5976
6128
|
key: i.name
|
|
@@ -5999,7 +6151,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5999
6151
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6000
6152
|
allowClear: true,
|
|
6001
6153
|
maxLength: 100
|
|
6002
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6154
|
+
}, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
|
|
6003
6155
|
disabled: setDisabled(i.name)
|
|
6004
6156
|
}))));
|
|
6005
6157
|
});
|
|
@@ -6011,9 +6163,20 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6011
6163
|
var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
|
|
6012
6164
|
return collapsed ? formItem(list === null || list === void 0 ? void 0 : list.slice(0, viCount)) : formItem(list);
|
|
6013
6165
|
};
|
|
6166
|
+
var renderEmptyText = function renderEmptyText(text, x) {
|
|
6167
|
+
return /*#__PURE__*/React$1.createElement(Empty, {
|
|
6168
|
+
image: Empty.PRESENTED_IMAGE_SIMPLE,
|
|
6169
|
+
description: text,
|
|
6170
|
+
style: {
|
|
6171
|
+
margin: "".concat(x, " 0px")
|
|
6172
|
+
}
|
|
6173
|
+
});
|
|
6174
|
+
};
|
|
6014
6175
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
6015
6176
|
var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
|
|
6016
|
-
var
|
|
6177
|
+
var x = (tableList === null || tableList === void 0 ? void 0 : tableList.length) ? 82 : 28; // 无数据没有分页,有数据计算减去:分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
6178
|
+
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - ").concat(x, "px)");
|
|
6179
|
+
var mTB = "calc(50vh - ".concat(tableBoxHeighth / 2, "px - ").concat(x / 2, "px - 40px)");
|
|
6017
6180
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6018
6181
|
style: {
|
|
6019
6182
|
height: "calc(100vh - ".concat(tableBoxHeighth, "px)")
|
|
@@ -6029,14 +6192,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6029
6192
|
showSizeChanger: false
|
|
6030
6193
|
}),
|
|
6031
6194
|
locale: {
|
|
6032
|
-
emptyText: '暂无已选结果'
|
|
6195
|
+
emptyText: renderEmptyText('暂无已选结果', mTB)
|
|
6033
6196
|
}
|
|
6034
6197
|
} : {
|
|
6035
6198
|
pagination: tablePagination,
|
|
6036
6199
|
onChange: handleTableChange,
|
|
6037
6200
|
loading: fetching,
|
|
6038
6201
|
locale: {
|
|
6039
|
-
emptyText: modalSearched ? '
|
|
6202
|
+
emptyText: modalSearched ? renderEmptyText('匹配结果,请更换其他内容再试', mTB) : renderEmptyText('请输入搜索条件', mTB)
|
|
6040
6203
|
}
|
|
6041
6204
|
}), {}, {
|
|
6042
6205
|
rowKey: mappingValueField,
|
|
@@ -6181,59 +6344,36 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6181
6344
|
}
|
|
6182
6345
|
})));
|
|
6183
6346
|
};
|
|
6184
|
-
var getShowLabelTextStr = function getShowLabelTextStr(kongValue) {
|
|
6185
|
-
if (selectMode) {
|
|
6186
|
-
var _value$map;
|
|
6187
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
6188
|
-
return item.label || item.text || '';
|
|
6189
|
-
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
6190
|
-
}
|
|
6191
|
-
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
6192
|
-
};
|
|
6193
|
-
var getSelectValueText = function getSelectValueText(v) {
|
|
6194
|
-
var _filter, _filter$;
|
|
6195
|
-
return ((_filter = (items || []).filter(function (item) {
|
|
6196
|
-
return item.value === v;
|
|
6197
|
-
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
6198
|
-
};
|
|
6199
|
-
var getShowValueStr = function getShowValueStr(kongValue) {
|
|
6200
|
-
if (selectMode) {
|
|
6201
|
-
var _value$map2;
|
|
6202
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
6203
|
-
return getSelectValueText(item);
|
|
6204
|
-
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
6205
|
-
}
|
|
6206
|
-
return getSelectValueText(value) || kongValue;
|
|
6207
|
-
};
|
|
6208
|
-
var getShowStr = function getShowStr() {
|
|
6209
|
-
// 优先使用业务使用传入的展示
|
|
6210
|
-
if (viewShowValueStr) return viewShowValueStr;
|
|
6211
|
-
var kongValue = '无';
|
|
6212
|
-
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
6213
|
-
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
6214
|
-
if (labelInValue) {
|
|
6215
|
-
return getShowLabelTextStr(kongValue);
|
|
6216
|
-
}
|
|
6217
|
-
return getShowValueStr(kongValue);
|
|
6218
|
-
};
|
|
6219
6347
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6220
6348
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6221
6349
|
className: 'search_select'
|
|
6222
|
-
}, fieldComponent ? (
|
|
6350
|
+
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6223
6351
|
onClick: function onClick() {
|
|
6224
6352
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6225
6353
|
(_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);
|
|
6226
6354
|
showModal();
|
|
6227
6355
|
}
|
|
6228
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
6229
|
-
title: getShowStr(
|
|
6356
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6357
|
+
title: getShowStr({
|
|
6358
|
+
viewShowValueStr: viewShowValueStr,
|
|
6359
|
+
labelInValue: labelInValue,
|
|
6360
|
+
selectMode: selectMode,
|
|
6361
|
+
value: value,
|
|
6362
|
+
items: items
|
|
6363
|
+
}),
|
|
6230
6364
|
style: {
|
|
6231
6365
|
overflow: 'hidden',
|
|
6232
6366
|
textOverflow: 'ellipsis',
|
|
6233
6367
|
whiteSpace: 'nowrap'
|
|
6234
6368
|
},
|
|
6235
6369
|
className: 'search_select_show'
|
|
6236
|
-
}, getShowStr(
|
|
6370
|
+
}, getShowStr({
|
|
6371
|
+
viewShowValueStr: viewShowValueStr,
|
|
6372
|
+
labelInValue: labelInValue,
|
|
6373
|
+
selectMode: selectMode,
|
|
6374
|
+
value: value,
|
|
6375
|
+
items: items
|
|
6376
|
+
}))) : /*#__PURE__*/React$1.createElement("div", {
|
|
6237
6377
|
className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
|
|
6238
6378
|
id: "search_select_div_".concat(uniqueValue)
|
|
6239
6379
|
}, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
@@ -6252,10 +6392,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6252
6392
|
dropdownRender: function dropdownRender(menu) {
|
|
6253
6393
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6254
6394
|
},
|
|
6255
|
-
notFoundContent: fetching ? (
|
|
6395
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6256
6396
|
size: "small",
|
|
6257
6397
|
className: 'searchSelectSpin'
|
|
6258
|
-
})) : (
|
|
6398
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6259
6399
|
style: {
|
|
6260
6400
|
textAlign: 'center'
|
|
6261
6401
|
}
|
|
@@ -6295,10 +6435,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6295
6435
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6296
6436
|
filterTxt: searchValue
|
|
6297
6437
|
}));
|
|
6298
|
-
}))), needModalTable && isModalVisible && (
|
|
6438
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6299
6439
|
maskClosable: false,
|
|
6300
6440
|
destroyOnClose: true,
|
|
6301
|
-
width: "
|
|
6441
|
+
width: "calc(100% - 320px)",
|
|
6302
6442
|
title: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalTableTitle,
|
|
6303
6443
|
visible: isModalVisible,
|
|
6304
6444
|
confirmLoading: confirmLoading,
|
|
@@ -6341,7 +6481,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6341
6481
|
top: 0,
|
|
6342
6482
|
right: 0
|
|
6343
6483
|
}
|
|
6344
|
-
}, hasMoreQueryFields(modalTableProps)
|
|
6484
|
+
}, hasMoreQueryFields(modalTableProps) ? /*#__PURE__*/React$1.createElement("img", {
|
|
6345
6485
|
onClick: function onClick() {
|
|
6346
6486
|
toggleCollapsed();
|
|
6347
6487
|
},
|
|
@@ -6390,7 +6530,7 @@ var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20enc
|
|
|
6390
6530
|
var css_248z$9 = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
6391
6531
|
styleInject(css_248z$9);
|
|
6392
6532
|
|
|
6393
|
-
var _excluded$
|
|
6533
|
+
var _excluded$5 = ["className", "style"];
|
|
6394
6534
|
var Search = Input.Search;
|
|
6395
6535
|
var DragHandle = SortableHandle(function () {
|
|
6396
6536
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
@@ -6742,7 +6882,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6742
6882
|
_this.DraggableBodyRow = function (_ref2) {
|
|
6743
6883
|
var className = _ref2.className,
|
|
6744
6884
|
style = _ref2.style,
|
|
6745
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
6885
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$5);
|
|
6746
6886
|
var sortDataSource = _this.state.sortDataSource;
|
|
6747
6887
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
6748
6888
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -6892,7 +7032,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6892
7032
|
style: {
|
|
6893
7033
|
width: 525
|
|
6894
7034
|
}
|
|
6895
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
7035
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6896
7036
|
checked: !dataSource.some(function (item) {
|
|
6897
7037
|
if (item.hidden) return true;
|
|
6898
7038
|
return false;
|
|
@@ -6930,13 +7070,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6930
7070
|
_this2.onChange(e, item.title);
|
|
6931
7071
|
}
|
|
6932
7072
|
}, item.title);
|
|
6933
|
-
}), !!seatchDataSource.length && (
|
|
7073
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6934
7074
|
style: {
|
|
6935
7075
|
width: '144px'
|
|
6936
7076
|
}
|
|
6937
|
-
})), !seatchDataSource.length && (
|
|
7077
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6938
7078
|
className: 'sort_table_column_all_empty'
|
|
6939
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
7079
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6940
7080
|
className: 'sort_table_column_special'
|
|
6941
7081
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6942
7082
|
className: 'sort_table_column_all'
|
|
@@ -7125,7 +7265,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7125
7265
|
});
|
|
7126
7266
|
};
|
|
7127
7267
|
// 格式化树选择器数据源
|
|
7128
|
-
var
|
|
7268
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7129
7269
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7130
7270
|
return {
|
|
7131
7271
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7135,7 +7275,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7135
7275
|
isLeaf: !haveChildren,
|
|
7136
7276
|
disabled: haveChildren,
|
|
7137
7277
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7138
|
-
return
|
|
7278
|
+
return _mapSearchTree(i, resKeyValue);
|
|
7139
7279
|
}) : []
|
|
7140
7280
|
};
|
|
7141
7281
|
};
|
|
@@ -7144,7 +7284,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7144
7284
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7145
7285
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7146
7286
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7147
|
-
return
|
|
7287
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
7148
7288
|
}) || [];
|
|
7149
7289
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7150
7290
|
};
|
|
@@ -7161,7 +7301,7 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
|
|
|
7161
7301
|
});
|
|
7162
7302
|
};
|
|
7163
7303
|
|
|
7164
|
-
var _excluded$
|
|
7304
|
+
var _excluded$6 = ["onResize", "width"],
|
|
7165
7305
|
_excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
|
|
7166
7306
|
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
7167
7307
|
return new Promise(function (resolve, reject) {
|
|
@@ -7181,7 +7321,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
|
7181
7321
|
var ResizeableTitle = function ResizeableTitle(props) {
|
|
7182
7322
|
var onResize = props.onResize,
|
|
7183
7323
|
width = props.width,
|
|
7184
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
7324
|
+
restProps = _objectWithoutProperties(props, _excluded$6);
|
|
7185
7325
|
if (!width) {
|
|
7186
7326
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
7187
7327
|
}
|
|
@@ -7315,7 +7455,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7315
7455
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7316
7456
|
// FIXME: 特殊业务逻辑
|
|
7317
7457
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7318
|
-
var _ref2 = _asyncToGenerator(
|
|
7458
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7319
7459
|
var result;
|
|
7320
7460
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7321
7461
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7568,7 +7708,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7568
7708
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7569
7709
|
value: text || null,
|
|
7570
7710
|
onChange: function () {
|
|
7571
|
-
var _onChange = _asyncToGenerator(
|
|
7711
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7572
7712
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7573
7713
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7574
7714
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8176,10 +8316,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8176
8316
|
var newColumns = arr.map(function (col) {
|
|
8177
8317
|
return _objectSpread2({}, col);
|
|
8178
8318
|
});
|
|
8179
|
-
var
|
|
8319
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8180
8320
|
var i = indexArr.shift();
|
|
8181
8321
|
if (indexArr.length > 0) {
|
|
8182
|
-
|
|
8322
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8183
8323
|
} else {
|
|
8184
8324
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8185
8325
|
width: size.width
|
|
@@ -8187,7 +8327,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8187
8327
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8188
8328
|
}
|
|
8189
8329
|
};
|
|
8190
|
-
|
|
8330
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8191
8331
|
callback(newColumns);
|
|
8192
8332
|
};
|
|
8193
8333
|
};
|
|
@@ -8197,13 +8337,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8197
8337
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8198
8338
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8199
8339
|
};
|
|
8200
|
-
var
|
|
8340
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8201
8341
|
arr.forEach(function (item, index) {
|
|
8202
8342
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8203
8343
|
return i || i === 0;
|
|
8204
8344
|
});
|
|
8205
8345
|
if (noEmptyArray$1(item.children)) {
|
|
8206
|
-
|
|
8346
|
+
_handleColumns(item.children, indexArrInside);
|
|
8207
8347
|
} else {
|
|
8208
8348
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8209
8349
|
item.onHeaderCell = function (column) {
|
|
@@ -8219,14 +8359,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8219
8359
|
handleAntdColumnsSpecialParams(item);
|
|
8220
8360
|
return _objectSpread2({}, item);
|
|
8221
8361
|
});
|
|
8222
|
-
|
|
8362
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
8223
8363
|
return setShowToChooseColumnsCallback(res);
|
|
8224
8364
|
});
|
|
8225
8365
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8226
8366
|
handleAntdColumnsSpecialParams(item);
|
|
8227
8367
|
return _objectSpread2({}, item);
|
|
8228
8368
|
});
|
|
8229
|
-
|
|
8369
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8230
8370
|
return setShowColumnsCallback(res);
|
|
8231
8371
|
});
|
|
8232
8372
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8237,8 +8377,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8237
8377
|
id: "add_select_div_".concat(uniqueValue)
|
|
8238
8378
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
8239
8379
|
onClick: handleShowModal
|
|
8240
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
8241
|
-
width:
|
|
8380
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
8381
|
+
width: "calc(100% - 320px)",
|
|
8242
8382
|
style: {
|
|
8243
8383
|
top: 20
|
|
8244
8384
|
},
|
|
@@ -8413,7 +8553,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8413
8553
|
var css_248z$a = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick {\n margin: 0;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_base {\n background: #fff;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_odd {\n background: #f7f8fb;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-left,\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-right {\n background: #FFFFFF !important;\n}\n";
|
|
8414
8554
|
styleInject(css_248z$a);
|
|
8415
8555
|
|
|
8416
|
-
var _excluded$
|
|
8556
|
+
var _excluded$7 = ["onResize", "width"];
|
|
8417
8557
|
var _this = undefined;
|
|
8418
8558
|
var InputElement = function InputElement(_ref) {
|
|
8419
8559
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
@@ -8911,7 +9051,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
8911
9051
|
var ResizeableTitle$1 = function ResizeableTitle(props) {
|
|
8912
9052
|
var onResize = props.onResize,
|
|
8913
9053
|
width = props.width,
|
|
8914
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
9054
|
+
restProps = _objectWithoutProperties(props, _excluded$7);
|
|
8915
9055
|
if (!width) {
|
|
8916
9056
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
8917
9057
|
}
|
|
@@ -9151,7 +9291,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9151
9291
|
});
|
|
9152
9292
|
};
|
|
9153
9293
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9154
|
-
var _ref4 = _asyncToGenerator(
|
|
9294
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9155
9295
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9156
9296
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9157
9297
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9234,10 +9374,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9234
9374
|
var newColumns = arr.map(function (col) {
|
|
9235
9375
|
return _objectSpread2({}, col);
|
|
9236
9376
|
});
|
|
9237
|
-
var
|
|
9377
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
9238
9378
|
var i = indexArr.shift();
|
|
9239
9379
|
if (indexArr.length > 0) {
|
|
9240
|
-
|
|
9380
|
+
_handleIndex(arr[i].children, indexArr);
|
|
9241
9381
|
} else {
|
|
9242
9382
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9243
9383
|
width: size.width
|
|
@@ -9245,17 +9385,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9245
9385
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9246
9386
|
}
|
|
9247
9387
|
};
|
|
9248
|
-
|
|
9388
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
9249
9389
|
callback(newColumns);
|
|
9250
9390
|
};
|
|
9251
9391
|
};
|
|
9252
|
-
var
|
|
9392
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9253
9393
|
arr.forEach(function (item, index) {
|
|
9254
9394
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9255
9395
|
return i || i === 0;
|
|
9256
9396
|
});
|
|
9257
9397
|
if (noEmptyArray$1(item.children)) {
|
|
9258
|
-
|
|
9398
|
+
_handleColumns(item.children, indexArrInside);
|
|
9259
9399
|
} else {
|
|
9260
9400
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9261
9401
|
item.onHeaderCell = function (column) {
|
|
@@ -9271,7 +9411,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9271
9411
|
handleAntdColumnsSpecialParams(item);
|
|
9272
9412
|
return _objectSpread2({}, item);
|
|
9273
9413
|
});
|
|
9274
|
-
|
|
9414
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
9275
9415
|
return setShowColumnsCallback(res);
|
|
9276
9416
|
});
|
|
9277
9417
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9481,6 +9621,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
|
|
|
9481
9621
|
case 'spuCommodity':
|
|
9482
9622
|
case 'skcCommodity':
|
|
9483
9623
|
case 'brand':
|
|
9624
|
+
case 'spuCommodityWithProperty':
|
|
9484
9625
|
result = '/items';
|
|
9485
9626
|
break;
|
|
9486
9627
|
case 'physicalWarehouse':
|
|
@@ -9586,7 +9727,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9586
9727
|
});
|
|
9587
9728
|
};
|
|
9588
9729
|
// 格式化树选择器数据源
|
|
9589
|
-
var
|
|
9730
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9590
9731
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9591
9732
|
return {
|
|
9592
9733
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9596,7 +9737,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9596
9737
|
isLeaf: !haveChildren,
|
|
9597
9738
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9598
9739
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9599
|
-
return
|
|
9740
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9600
9741
|
}) : []
|
|
9601
9742
|
};
|
|
9602
9743
|
};
|
|
@@ -9610,7 +9751,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9610
9751
|
disabledJudge = false;
|
|
9611
9752
|
}
|
|
9612
9753
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9613
|
-
return
|
|
9754
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9614
9755
|
}) || [];
|
|
9615
9756
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9616
9757
|
};
|
|
@@ -9888,7 +10029,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9888
10029
|
sourceName: 'qp-skuCode-in',
|
|
9889
10030
|
specialBracket: true,
|
|
9890
10031
|
otherParams: {
|
|
9891
|
-
'ownOrgSign': getCurrentTargetBgId()
|
|
10032
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
10033
|
+
'ctl-count': true
|
|
9892
10034
|
} // 默认参数
|
|
9893
10035
|
}
|
|
9894
10036
|
}
|
|
@@ -9911,7 +10053,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9911
10053
|
mappingTextField: 'name',
|
|
9912
10054
|
mappingValueField: 'itemCode',
|
|
9913
10055
|
sourceName: 'qp-itemCode-in',
|
|
9914
|
-
specialBracket: true
|
|
10056
|
+
specialBracket: true,
|
|
10057
|
+
otherParams: {
|
|
10058
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
10059
|
+
'ctl-count': true
|
|
10060
|
+
} // 默认参数
|
|
9915
10061
|
}
|
|
9916
10062
|
}
|
|
9917
10063
|
}
|
|
@@ -10044,6 +10190,144 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10044
10190
|
}
|
|
10045
10191
|
// 商品选择器spu
|
|
10046
10192
|
if (type === 'spuCommodity') {
|
|
10193
|
+
selectProps = _objectSpread2({
|
|
10194
|
+
placeholder: '输入商品(SPU)编码或名称',
|
|
10195
|
+
renderTableColumns: [{
|
|
10196
|
+
title: '商品编码(SPU)',
|
|
10197
|
+
dataIndex: 'itemCode'
|
|
10198
|
+
}, {
|
|
10199
|
+
title: '商品名称(SPU)',
|
|
10200
|
+
dataIndex: 'name'
|
|
10201
|
+
}]
|
|
10202
|
+
}, selectConfigProps);
|
|
10203
|
+
requestConfig = _objectSpread2({
|
|
10204
|
+
url: "".concat(prefixUrl.selectPrefix, "/item"),
|
|
10205
|
+
filter: 'qp-itemCode,name-orGroup,like',
|
|
10206
|
+
mappingTextField: 'name',
|
|
10207
|
+
mappingValueField: 'itemCode',
|
|
10208
|
+
otherParams: _objectSpread2({
|
|
10209
|
+
'qp-approveStatus-eq': 1,
|
|
10210
|
+
sorter: 'desc-id'
|
|
10211
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10212
|
+
sourceName: 'itemCode'
|
|
10213
|
+
}, requestConfigProp);
|
|
10214
|
+
tableSearchForm = [{
|
|
10215
|
+
name: 'qp-name-like',
|
|
10216
|
+
label: '商品名称(SPU)'
|
|
10217
|
+
}, {
|
|
10218
|
+
name: 'qp-itemCode-like',
|
|
10219
|
+
label: '商品编码(SPU)'
|
|
10220
|
+
}, {
|
|
10221
|
+
name: 'qp-brandId-in',
|
|
10222
|
+
type: 'select',
|
|
10223
|
+
label: '品牌',
|
|
10224
|
+
field: {
|
|
10225
|
+
type: 'select',
|
|
10226
|
+
props: {
|
|
10227
|
+
mode: 'multiple',
|
|
10228
|
+
notFoundContent: '暂无数据',
|
|
10229
|
+
allowClear: true,
|
|
10230
|
+
showSearch: true,
|
|
10231
|
+
showArrow: true,
|
|
10232
|
+
maxTagCount: 1,
|
|
10233
|
+
optionFilterProp: 'children',
|
|
10234
|
+
filterOption: function filterOption(input, option) {
|
|
10235
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10236
|
+
}
|
|
10237
|
+
}
|
|
10238
|
+
}
|
|
10239
|
+
}, {
|
|
10240
|
+
name: 'qp-categoryId-in',
|
|
10241
|
+
type: 'treeSelect',
|
|
10242
|
+
label: '类目',
|
|
10243
|
+
field: {
|
|
10244
|
+
type: 'treeSelect',
|
|
10245
|
+
props: {
|
|
10246
|
+
treeData: [],
|
|
10247
|
+
treeCheckable: true,
|
|
10248
|
+
showSearch: true,
|
|
10249
|
+
allowClear: true,
|
|
10250
|
+
showArrow: true,
|
|
10251
|
+
treeNodeFilterProp: 'title',
|
|
10252
|
+
treeDefaultExpandAll: true,
|
|
10253
|
+
maxTagCount: 1,
|
|
10254
|
+
placeholder: '请选择',
|
|
10255
|
+
style: {
|
|
10256
|
+
width: '100%'
|
|
10257
|
+
},
|
|
10258
|
+
dropdownStyle: {
|
|
10259
|
+
maxHeight: 400,
|
|
10260
|
+
maxWidth: 100,
|
|
10261
|
+
overflow: 'auto'
|
|
10262
|
+
}
|
|
10263
|
+
}
|
|
10264
|
+
}
|
|
10265
|
+
}, {
|
|
10266
|
+
name: 'qp-classId-in',
|
|
10267
|
+
type: 'select',
|
|
10268
|
+
label: '品类',
|
|
10269
|
+
field: {
|
|
10270
|
+
type: 'select',
|
|
10271
|
+
props: {
|
|
10272
|
+
mode: 'multiple',
|
|
10273
|
+
notFoundContent: '暂无数据',
|
|
10274
|
+
allowClear: true,
|
|
10275
|
+
showSearch: true,
|
|
10276
|
+
showArrow: true,
|
|
10277
|
+
maxTagCount: 1,
|
|
10278
|
+
optionFilterProp: 'children',
|
|
10279
|
+
filterOption: function filterOption(input, option) {
|
|
10280
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10281
|
+
}
|
|
10282
|
+
}
|
|
10283
|
+
}
|
|
10284
|
+
}];
|
|
10285
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
10286
|
+
pageSize: 5000,
|
|
10287
|
+
currentPage: 1,
|
|
10288
|
+
'ctl-withAuth': true
|
|
10289
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
10290
|
+
pageSize: 5000,
|
|
10291
|
+
currentPage: 1
|
|
10292
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
10293
|
+
pageSize: 5000,
|
|
10294
|
+
currentPage: 1
|
|
10295
|
+
})]).then(function (x) {
|
|
10296
|
+
formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
|
|
10297
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm);
|
|
10298
|
+
formatSource(x, 2, 4, tableSearchForm, ['id', 'name']);
|
|
10299
|
+
});
|
|
10300
|
+
modalTableProps = _objectSpread2({
|
|
10301
|
+
modalTableTitle: '选择商品(SPU) ',
|
|
10302
|
+
tableSearchForm: tableSearchForm,
|
|
10303
|
+
tableColumns: [{
|
|
10304
|
+
title: '序号',
|
|
10305
|
+
dataIndex: 'keyIndex',
|
|
10306
|
+
defaultSort: 0
|
|
10307
|
+
}, {
|
|
10308
|
+
title: '商品编码(SPU)',
|
|
10309
|
+
dataIndex: 'itemCode',
|
|
10310
|
+
defaultSort: 1
|
|
10311
|
+
}, {
|
|
10312
|
+
title: '商品名称(SPU) ',
|
|
10313
|
+
dataIndex: 'name',
|
|
10314
|
+
defaultSort: 2
|
|
10315
|
+
}, {
|
|
10316
|
+
title: '品牌',
|
|
10317
|
+
dataIndex: 'brandName',
|
|
10318
|
+
defaultSort: 3
|
|
10319
|
+
}, {
|
|
10320
|
+
title: '类目',
|
|
10321
|
+
dataIndex: 'categoryText',
|
|
10322
|
+
defaultSort: 4
|
|
10323
|
+
}, {
|
|
10324
|
+
title: '品类',
|
|
10325
|
+
dataIndex: 'className'
|
|
10326
|
+
}]
|
|
10327
|
+
}, modalTableBusProps);
|
|
10328
|
+
}
|
|
10329
|
+
// 新库存商品选择器spu
|
|
10330
|
+
if (type === 'spuCommodityWithProperty') {
|
|
10047
10331
|
selectProps = _objectSpread2({
|
|
10048
10332
|
placeholder: '输入spu编码或名称',
|
|
10049
10333
|
renderTableColumns: [{
|
|
@@ -10055,12 +10339,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10055
10339
|
}]
|
|
10056
10340
|
}, selectConfigProps);
|
|
10057
10341
|
requestConfig = _objectSpread2({
|
|
10058
|
-
url: "
|
|
10342
|
+
url: "/stock/item/doItemPageAll",
|
|
10343
|
+
method: 'POST',
|
|
10059
10344
|
filter: 'qp-itemCode,name-orGroup,like',
|
|
10060
10345
|
mappingTextField: 'name',
|
|
10061
10346
|
mappingValueField: 'itemCode',
|
|
10062
10347
|
otherParams: _objectSpread2({
|
|
10063
|
-
'qp-approveStatus-eq': 1,
|
|
10348
|
+
// 'qp-approveStatus-eq': 1, // 审核状态(0.待审批;1.审批通过;2.驳回;3.审批未通过)
|
|
10064
10349
|
sorter: 'desc-id'
|
|
10065
10350
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10066
10351
|
sourceName: 'itemCode'
|
|
@@ -10135,6 +10420,56 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10135
10420
|
}
|
|
10136
10421
|
}
|
|
10137
10422
|
}
|
|
10423
|
+
}, {
|
|
10424
|
+
name: 'qp-year-in',
|
|
10425
|
+
label: '年份',
|
|
10426
|
+
field: {
|
|
10427
|
+
type: 'itemPropertySelector',
|
|
10428
|
+
props: {
|
|
10429
|
+
propertyCode: 'SX0000114',
|
|
10430
|
+
mode: 'multiple'
|
|
10431
|
+
}
|
|
10432
|
+
}
|
|
10433
|
+
}, {
|
|
10434
|
+
name: 'qp-season-in',
|
|
10435
|
+
label: '季节',
|
|
10436
|
+
field: {
|
|
10437
|
+
type: 'itemPropertySelector',
|
|
10438
|
+
props: {
|
|
10439
|
+
propertyCode: 'SX0000070',
|
|
10440
|
+
mode: 'multiple'
|
|
10441
|
+
}
|
|
10442
|
+
}
|
|
10443
|
+
}, {
|
|
10444
|
+
name: 'qp-zzdlbm-in',
|
|
10445
|
+
label: '大类',
|
|
10446
|
+
field: {
|
|
10447
|
+
type: 'itemPropertySelector',
|
|
10448
|
+
props: {
|
|
10449
|
+
propertyCode: 'SX0000071',
|
|
10450
|
+
mode: 'multiple'
|
|
10451
|
+
}
|
|
10452
|
+
}
|
|
10453
|
+
}, {
|
|
10454
|
+
name: 'qp-zzzlbm-in',
|
|
10455
|
+
label: '中类',
|
|
10456
|
+
field: {
|
|
10457
|
+
type: 'itemPropertySelector',
|
|
10458
|
+
props: {
|
|
10459
|
+
propertyCode: 'SX0000072',
|
|
10460
|
+
mode: 'multiple'
|
|
10461
|
+
}
|
|
10462
|
+
}
|
|
10463
|
+
}, {
|
|
10464
|
+
name: 'qp-zzxlbm-in',
|
|
10465
|
+
label: '小类',
|
|
10466
|
+
field: {
|
|
10467
|
+
type: 'itemPropertySelector',
|
|
10468
|
+
props: {
|
|
10469
|
+
propertyCode: 'SX0000110',
|
|
10470
|
+
mode: 'multiple'
|
|
10471
|
+
}
|
|
10472
|
+
}
|
|
10138
10473
|
}];
|
|
10139
10474
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
10140
10475
|
pageSize: 5000,
|
|
@@ -10177,7 +10512,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10177
10512
|
}, {
|
|
10178
10513
|
title: '品类',
|
|
10179
10514
|
dataIndex: 'className'
|
|
10180
|
-
}]
|
|
10515
|
+
}],
|
|
10516
|
+
noEmptySearchField: true
|
|
10181
10517
|
}, modalTableBusProps);
|
|
10182
10518
|
}
|
|
10183
10519
|
// 商品选择器skc
|
|
@@ -13690,16 +14026,18 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13690
14026
|
modalProps = _useState2[0],
|
|
13691
14027
|
setModalProps = _useState2[1];
|
|
13692
14028
|
var handleOk = function handleOk() {
|
|
13693
|
-
var _dataValidationRef$cu;
|
|
14029
|
+
var _dataValidationRef$cu, _dataValidationRef$cu2;
|
|
13694
14030
|
// 方法获取当前组件内部的数据,然后进行自身的业务操作
|
|
13695
|
-
var resultData = (_dataValidationRef$cu = dataValidationRef.current) === null || _dataValidationRef$cu === void 0 ? void 0 : _dataValidationRef$cu.getValidateData();
|
|
13696
|
-
if (
|
|
13697
|
-
|
|
13698
|
-
|
|
13699
|
-
|
|
13700
|
-
|
|
13701
|
-
|
|
13702
|
-
|
|
14031
|
+
var resultData = (props === null || props === void 0 ? void 0 : props.notValid) ? (_dataValidationRef$cu = dataValidationRef.current) === null || _dataValidationRef$cu === void 0 ? void 0 : _dataValidationRef$cu.getData() : (_dataValidationRef$cu2 = dataValidationRef.current) === null || _dataValidationRef$cu2 === void 0 ? void 0 : _dataValidationRef$cu2.getValidateData();
|
|
14032
|
+
if (!!!(props === null || props === void 0 ? void 0 : props.notValid)) {
|
|
14033
|
+
if (!resultData.successData.length) {
|
|
14034
|
+
message$1.error("无校验通过数据,请校验数据");
|
|
14035
|
+
return;
|
|
14036
|
+
}
|
|
14037
|
+
if (resultData.failData.length) {
|
|
14038
|
+
message$1.error("\u6709".concat(resultData.failData.length, "\u6761\u6821\u9A8C\u5931\u8D25\u6570\u636E"));
|
|
14039
|
+
return;
|
|
14040
|
+
}
|
|
13703
14041
|
}
|
|
13704
14042
|
callbackHandleOk(resultData, function () {
|
|
13705
14043
|
modalProps.hideModal();
|
|
@@ -13715,7 +14053,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13715
14053
|
};
|
|
13716
14054
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
13717
14055
|
onClick: handleShowModal
|
|
13718
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
14056
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13719
14057
|
onOk: handleOk,
|
|
13720
14058
|
onCancel: handleCancel,
|
|
13721
14059
|
destroyOnClose: true,
|
|
@@ -13779,7 +14117,7 @@ function getStorageVale(storageKeyString) {
|
|
|
13779
14117
|
return "";
|
|
13780
14118
|
}
|
|
13781
14119
|
|
|
13782
|
-
var _excluded$
|
|
14120
|
+
var _excluded$8 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "rootDisabled", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
|
|
13783
14121
|
var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
13784
14122
|
var _useState = useState([]),
|
|
13785
14123
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -13821,7 +14159,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13821
14159
|
} : _props$style,
|
|
13822
14160
|
getTreeData = props.getTreeData,
|
|
13823
14161
|
disabled = props.disabled,
|
|
13824
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
14162
|
+
restProps = _objectWithoutProperties(props, _excluded$8);
|
|
13825
14163
|
var url = remoteSource.url,
|
|
13826
14164
|
headers = remoteSource.headers,
|
|
13827
14165
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
@@ -13834,7 +14172,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13834
14172
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13835
14173
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13836
14174
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13837
|
-
var
|
|
14175
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13838
14176
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13839
14177
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13840
14178
|
return {
|
|
@@ -13846,7 +14184,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13846
14184
|
isLeaf: !haveChildren,
|
|
13847
14185
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13848
14186
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13849
|
-
return
|
|
14187
|
+
return _mapSearchTree(i);
|
|
13850
14188
|
}) : []
|
|
13851
14189
|
};
|
|
13852
14190
|
};
|
|
@@ -13864,8 +14202,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13864
14202
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13865
14203
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
13866
14204
|
headers: headers
|
|
13867
|
-
}).then(
|
|
13868
|
-
var _ref = _asyncToGenerator(
|
|
14205
|
+
}).then(/*#__PURE__*/function () {
|
|
14206
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13869
14207
|
var _ctx$form;
|
|
13870
14208
|
var resData, coverData, data, dataList;
|
|
13871
14209
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13892,7 +14230,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13892
14230
|
case 9:
|
|
13893
14231
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13894
14232
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13895
|
-
return
|
|
14233
|
+
return _mapSearchTree(ites);
|
|
13896
14234
|
}) || [];
|
|
13897
14235
|
case 11:
|
|
13898
14236
|
_context.next = 14;
|
|
@@ -13930,11 +14268,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13930
14268
|
return _formatResult;
|
|
13931
14269
|
}
|
|
13932
14270
|
};
|
|
13933
|
-
var
|
|
14271
|
+
var _parallelData = function parallelData(data, result) {
|
|
13934
14272
|
data.forEach(function (i) {
|
|
13935
14273
|
result.push(i);
|
|
13936
14274
|
if (i[treeChildrenRoom]) {
|
|
13937
|
-
|
|
14275
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
13938
14276
|
}
|
|
13939
14277
|
});
|
|
13940
14278
|
return result;
|
|
@@ -13974,7 +14312,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13974
14312
|
var _ctx$form2;
|
|
13975
14313
|
var handleData = formatData(data);
|
|
13976
14314
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13977
|
-
var parallelTreeData =
|
|
14315
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13978
14316
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13979
14317
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13980
14318
|
onChangeName && onChangeName(dataName);
|
|
@@ -14017,7 +14355,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14017
14355
|
var getShowStr = function getShowStr() {
|
|
14018
14356
|
var isMultiple = multiple || treeCheckable;
|
|
14019
14357
|
var kongValue = '无';
|
|
14020
|
-
var parallelTreeData =
|
|
14358
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
14021
14359
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14022
14360
|
if (isMultiple) {
|
|
14023
14361
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14029,7 +14367,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14029
14367
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14030
14368
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14031
14369
|
className: 'tree_search_select'
|
|
14032
|
-
}, isShouldShowStr ? (
|
|
14370
|
+
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14033
14371
|
title: getShowStr(),
|
|
14034
14372
|
style: {
|
|
14035
14373
|
overflow: 'hidden',
|
|
@@ -14037,7 +14375,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14037
14375
|
whiteSpace: 'nowrap'
|
|
14038
14376
|
},
|
|
14039
14377
|
className: 'search_select_show'
|
|
14040
|
-
}, getShowStr())) : (
|
|
14378
|
+
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14041
14379
|
treeCheckable: treeCheckable,
|
|
14042
14380
|
maxTagCount: maxTagCount,
|
|
14043
14381
|
showSearch: showSearch,
|
|
@@ -14234,7 +14572,7 @@ var index$2 = (function (props) {
|
|
|
14234
14572
|
} : {}
|
|
14235
14573
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
14236
14574
|
className: 'status-label-operate'
|
|
14237
|
-
}, item.isDone ? (
|
|
14575
|
+
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14238
14576
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14239
14577
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
14240
14578
|
style: {
|
|
@@ -14247,7 +14585,7 @@ var index$2 = (function (props) {
|
|
|
14247
14585
|
var css_248z$c = ".guide-wrapper .form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.guide-wrapper .form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.guide-wrapper .form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.guide-wrapper .form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.guide-wrapper .form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.guide-wrapper .white-card.bitsun-form-card-class .guidewrapper-body-wrapper {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.guide-wrapper .bitsun-form-card-class > .guidewrapper-body-wrapper {\n margin-bottom: 10px;\n}\n.guide-wrapper .bitsun-form-card-class .guidewrapper-body-wrapper {\n padding: 12px 0 0;\n background-color: #F3F3F3;\n}\n.guide-wrapper .bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 16px;\n color: #000000;\n font-weight: 600;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.guide-wrapper .bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005cff;\n height: 20px;\n margin-right: 16px;\n}\n.guide-wrapper .field-group-hidden .guidewrapper-body-wrapper {\n display: none !important;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap {\n cursor: pointer;\n color: #B6B6B6;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon {\n transition: transform 0.3s;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.guidewrapper-head-wrap {\n padding-left: 16px;\n height: 36px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: #fff;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left {\n display: flex;\n align-items: center;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left::before {\n content: '';\n display: block;\n width: 3px;\n background: #005cff;\n height: 20px;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left .guidewrapper-head-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n padding: 0 6px;\n}\n.guidewrapper-head-border {\n border-bottom: 1px solid #F0F0F0;\n}\n.guidewrapper-title-extra-wrap {\n padding-left: 5px;\n}\n";
|
|
14248
14586
|
styleInject(css_248z$c);
|
|
14249
14587
|
|
|
14250
|
-
var _excluded$
|
|
14588
|
+
var _excluded$9 = ["children", "titleExtra", "title", "extra", "bordered"],
|
|
14251
14589
|
_excluded2$3 = ["children"];
|
|
14252
14590
|
var Field = function Field(_ref) {
|
|
14253
14591
|
var children = _ref.children,
|
|
@@ -14255,7 +14593,7 @@ var Field = function Field(_ref) {
|
|
|
14255
14593
|
title = _ref.title,
|
|
14256
14594
|
extra = _ref.extra,
|
|
14257
14595
|
bordered = _ref.bordered,
|
|
14258
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14596
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
14259
14597
|
var _React$useState = React$1.useState(true),
|
|
14260
14598
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
14261
14599
|
fieldGroupVisible = _React$useState2[0],
|
|
@@ -14382,7 +14720,7 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
14382
14720
|
var css_248z$d = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
14383
14721
|
styleInject(css_248z$d);
|
|
14384
14722
|
|
|
14385
|
-
var _excluded$
|
|
14723
|
+
var _excluded$a = ["className", "style"];
|
|
14386
14724
|
var Search$1 = Input.Search;
|
|
14387
14725
|
var DragHandle$1 = SortableHandle(function () {
|
|
14388
14726
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
@@ -14800,7 +15138,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14800
15138
|
_this.DraggableBodyRow = function (_ref2) {
|
|
14801
15139
|
var className = _ref2.className,
|
|
14802
15140
|
style = _ref2.style,
|
|
14803
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
15141
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$a);
|
|
14804
15142
|
var sortDataSource = _this.state.sortDataSource;
|
|
14805
15143
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
14806
15144
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -15015,7 +15353,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15015
15353
|
style: {
|
|
15016
15354
|
width: 525
|
|
15017
15355
|
}
|
|
15018
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
15356
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15019
15357
|
checked: !dataSource.some(function (item) {
|
|
15020
15358
|
if (item.hidden) return true;
|
|
15021
15359
|
return false;
|
|
@@ -15053,13 +15391,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15053
15391
|
_this2.onChange(e, item.title);
|
|
15054
15392
|
}
|
|
15055
15393
|
}, item.title);
|
|
15056
|
-
}), !!seatchDataSource.length && (
|
|
15394
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15057
15395
|
style: {
|
|
15058
15396
|
width: '144px'
|
|
15059
15397
|
}
|
|
15060
|
-
})), !seatchDataSource.length && (
|
|
15398
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15061
15399
|
className: 'sort_table_column_all_empty'
|
|
15062
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
15400
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15063
15401
|
className: 'sort_table_column_special'
|
|
15064
15402
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15065
15403
|
className: 'sort_table_column_all'
|
|
@@ -15154,7 +15492,7 @@ var TableSumComponent = (function (_ref) {
|
|
|
15154
15492
|
}));
|
|
15155
15493
|
});
|
|
15156
15494
|
|
|
15157
|
-
var _excluded$
|
|
15495
|
+
var _excluded$b = ["onResize", "width"],
|
|
15158
15496
|
_excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
15159
15497
|
var Text = Typography.Text;
|
|
15160
15498
|
var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15238,10 +15576,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15238
15576
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15239
15577
|
return _objectSpread2({}, col);
|
|
15240
15578
|
});
|
|
15241
|
-
var
|
|
15579
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15242
15580
|
var i = indexArr.shift();
|
|
15243
15581
|
if (indexArr.length > 0) {
|
|
15244
|
-
|
|
15582
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15245
15583
|
} else {
|
|
15246
15584
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15247
15585
|
width: size.width
|
|
@@ -15249,7 +15587,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15249
15587
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15250
15588
|
}
|
|
15251
15589
|
};
|
|
15252
|
-
|
|
15590
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15253
15591
|
_this.setState({
|
|
15254
15592
|
showColumns: _toConsumableArray(newColumns)
|
|
15255
15593
|
});
|
|
@@ -15258,7 +15596,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15258
15596
|
_this.ResizeableTitle = function (props) {
|
|
15259
15597
|
var onResize = props.onResize,
|
|
15260
15598
|
width = props.width,
|
|
15261
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15599
|
+
restProps = _objectWithoutProperties(props, _excluded$b);
|
|
15262
15600
|
var _useState = useState(width),
|
|
15263
15601
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15264
15602
|
innerWidth = _useState2[0],
|
|
@@ -15290,7 +15628,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15290
15628
|
};
|
|
15291
15629
|
setIsResizing(true);
|
|
15292
15630
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15293
|
-
document.addEventListener('mouseup',
|
|
15631
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
15294
15632
|
};
|
|
15295
15633
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15296
15634
|
e.stopPropagation();
|
|
@@ -15306,9 +15644,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15306
15644
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15307
15645
|
}
|
|
15308
15646
|
};
|
|
15309
|
-
var
|
|
15647
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
15310
15648
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15311
|
-
document.removeEventListener('mouseup',
|
|
15649
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
15312
15650
|
setIsResizing(false);
|
|
15313
15651
|
};
|
|
15314
15652
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15429,13 +15767,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15429
15767
|
showSummary = summary;
|
|
15430
15768
|
}
|
|
15431
15769
|
}
|
|
15432
|
-
var
|
|
15770
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15433
15771
|
arr.forEach(function (item, index) {
|
|
15434
15772
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15435
15773
|
return i || i === 0;
|
|
15436
15774
|
});
|
|
15437
15775
|
if (noEmptyArray$1(item.children)) {
|
|
15438
|
-
|
|
15776
|
+
_handleColumns(item.children, indexArrInside);
|
|
15439
15777
|
} else {
|
|
15440
15778
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15441
15779
|
item.onHeaderCell = function (column) {
|
|
@@ -15451,7 +15789,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15451
15789
|
handleBssulaColumnsSpecialParams(item);
|
|
15452
15790
|
return _objectSpread2({}, item);
|
|
15453
15791
|
});
|
|
15454
|
-
|
|
15792
|
+
_handleColumns(showCol, []);
|
|
15455
15793
|
if (dynamicColumns.length) {
|
|
15456
15794
|
showCol = this.handledynamicColumns(showCol);
|
|
15457
15795
|
}
|
|
@@ -15492,14 +15830,14 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15492
15830
|
cell: this.ResizeableTitle
|
|
15493
15831
|
}
|
|
15494
15832
|
}
|
|
15495
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15833
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15496
15834
|
summary: summary
|
|
15497
15835
|
})));
|
|
15498
15836
|
}
|
|
15499
15837
|
}]);
|
|
15500
15838
|
}(React$1.Component);
|
|
15501
15839
|
|
|
15502
|
-
var _excluded$
|
|
15840
|
+
var _excluded$c = ["onResize", "width"],
|
|
15503
15841
|
_excluded2$5 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
15504
15842
|
var Text$1 = Typography.Text;
|
|
15505
15843
|
var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15589,10 +15927,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15589
15927
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15590
15928
|
return _objectSpread2({}, col);
|
|
15591
15929
|
});
|
|
15592
|
-
var
|
|
15930
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15593
15931
|
var i = indexArr.shift();
|
|
15594
15932
|
if (indexArr.length > 0) {
|
|
15595
|
-
|
|
15933
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15596
15934
|
} else {
|
|
15597
15935
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15598
15936
|
width: size.width
|
|
@@ -15600,7 +15938,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15600
15938
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15601
15939
|
}
|
|
15602
15940
|
};
|
|
15603
|
-
|
|
15941
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15604
15942
|
_this.setState({
|
|
15605
15943
|
showColumns: _toConsumableArray(newColumns)
|
|
15606
15944
|
});
|
|
@@ -15609,7 +15947,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15609
15947
|
_this.ResizeableTitle = function (props) {
|
|
15610
15948
|
var onResize = props.onResize,
|
|
15611
15949
|
width = props.width,
|
|
15612
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15950
|
+
restProps = _objectWithoutProperties(props, _excluded$c);
|
|
15613
15951
|
if (!width) {
|
|
15614
15952
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
15615
15953
|
}
|
|
@@ -15676,13 +16014,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15676
16014
|
showSummary = summary;
|
|
15677
16015
|
}
|
|
15678
16016
|
}
|
|
15679
|
-
var
|
|
16017
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15680
16018
|
arr.forEach(function (item, index) {
|
|
15681
16019
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15682
16020
|
return i || i === 0;
|
|
15683
16021
|
});
|
|
15684
16022
|
if (noEmptyArray$1(item.children)) {
|
|
15685
|
-
|
|
16023
|
+
_handleColumns(item.children, indexArrInside);
|
|
15686
16024
|
} else {
|
|
15687
16025
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15688
16026
|
item.onHeaderCell = function (column) {
|
|
@@ -15698,7 +16036,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15698
16036
|
handleAntdColumnsSpecialParams(item);
|
|
15699
16037
|
return _objectSpread2({}, item);
|
|
15700
16038
|
});
|
|
15701
|
-
|
|
16039
|
+
_handleColumns(showCol, []);
|
|
15702
16040
|
if (dynamicColumns.length) {
|
|
15703
16041
|
showCol = this.handledynamicColumns(showCol);
|
|
15704
16042
|
}
|
|
@@ -15738,7 +16076,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15738
16076
|
cell: this.ResizeableTitle
|
|
15739
16077
|
}
|
|
15740
16078
|
}
|
|
15741
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
16079
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15742
16080
|
summary: summary
|
|
15743
16081
|
})));
|
|
15744
16082
|
}
|
|
@@ -15797,21 +16135,29 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15797
16135
|
return false;
|
|
15798
16136
|
};
|
|
15799
16137
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
16138
|
+
var _ref, _ref$applicationList, _ref$applicationList$;
|
|
15800
16139
|
var routerMap = {};
|
|
15801
|
-
var
|
|
16140
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
15802
16141
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15803
16142
|
data.forEach(function (menuItem) {
|
|
15804
16143
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15805
16144
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15806
16145
|
});
|
|
15807
16146
|
if (newMenuItem.children) {
|
|
15808
|
-
|
|
16147
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
15809
16148
|
}
|
|
15810
16149
|
// Reduce memory usage
|
|
15811
16150
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15812
16151
|
});
|
|
15813
16152
|
};
|
|
15814
|
-
|
|
16153
|
+
var newList = ((_ref = window.top || window) === null || _ref === void 0 ? void 0 : (_ref$applicationList = _ref.applicationList) === null || _ref$applicationList === void 0 ? void 0 : (_ref$applicationList$ = _ref$applicationList.filter) === null || _ref$applicationList$ === void 0 ? void 0 : _ref$applicationList$.call(_ref$applicationList, function (app) {
|
|
16154
|
+
var _menuData$;
|
|
16155
|
+
return app.code === (menuData === null || menuData === void 0 ? void 0 : (_menuData$ = menuData[0]) === null || _menuData$ === void 0 ? void 0 : _menuData$.belongAppCode);
|
|
16156
|
+
})) || [];
|
|
16157
|
+
var appChannelParent = newList.length > 0 ? {
|
|
16158
|
+
nameMap: [newList[0].name]
|
|
16159
|
+
} : {};
|
|
16160
|
+
_flattenMenuData2(menuData, appChannelParent);
|
|
15815
16161
|
return routerMap;
|
|
15816
16162
|
};
|
|
15817
16163
|
// mode类型判断
|
|
@@ -15851,8 +16197,8 @@ function matchRoute(path, routeObj, hideRouteObj) {
|
|
|
15851
16197
|
// 如果都不匹配,返回null
|
|
15852
16198
|
return null;
|
|
15853
16199
|
}
|
|
15854
|
-
var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRouteArray,
|
|
15855
|
-
var pathToRegexp =
|
|
16200
|
+
var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRouteArray, _ref2) {
|
|
16201
|
+
var pathToRegexp = _ref2.pathToRegexp;
|
|
15856
16202
|
var newPath = path.split('?')[0];
|
|
15857
16203
|
var hideRouteObj = _defineProperty({}, newPath, Array.isArray(hideRouteArray) && (hideRouteArray === null || hideRouteArray === void 0 ? void 0 : hideRouteArray.find(function (itemRoute) {
|
|
15858
16204
|
return pathToRegexp(itemRoute.path).test(newPath);
|
|
@@ -15890,12 +16236,12 @@ var moreIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D
|
|
|
15890
16236
|
var css_248z$g = "";
|
|
15891
16237
|
styleInject(css_248z$g);
|
|
15892
16238
|
|
|
15893
|
-
var _excluded$
|
|
16239
|
+
var _excluded$d = ["message", "type"];
|
|
15894
16240
|
var CommonAlert = (function (props) {
|
|
15895
16241
|
var message = props.message,
|
|
15896
16242
|
_props$type = props.type,
|
|
15897
16243
|
type = _props$type === void 0 ? 'info' : _props$type,
|
|
15898
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
16244
|
+
reset = _objectWithoutProperties(props, _excluded$d);
|
|
15899
16245
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15900
16246
|
style: {
|
|
15901
16247
|
width: '100%',
|
|
@@ -15916,7 +16262,7 @@ var CommonAlert = (function (props) {
|
|
|
15916
16262
|
}, reset)));
|
|
15917
16263
|
});
|
|
15918
16264
|
|
|
15919
|
-
var _excluded$
|
|
16265
|
+
var _excluded$e = ["children"];
|
|
15920
16266
|
var iconMap = {
|
|
15921
16267
|
edit: /*#__PURE__*/React$1.createElement("img", {
|
|
15922
16268
|
src: editIcon
|
|
@@ -15938,7 +16284,7 @@ var index$3 = (function (props) {
|
|
|
15938
16284
|
_useState2 = _slicedToArray(_useState, 1),
|
|
15939
16285
|
id = _useState2[0];
|
|
15940
16286
|
var children = props.children,
|
|
15941
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
16287
|
+
restProps = _objectWithoutProperties(props, _excluded$e);
|
|
15942
16288
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15943
16289
|
id: id,
|
|
15944
16290
|
className: 'detail_page_wrapper'
|
|
@@ -16137,7 +16483,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16137
16483
|
display: 'flex',
|
|
16138
16484
|
gap: '8px'
|
|
16139
16485
|
}
|
|
16140
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
16486
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16141
16487
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16142
16488
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16143
16489
|
onClick: function onClick() {
|
|
@@ -16145,7 +16491,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16145
16491
|
},
|
|
16146
16492
|
width: 24,
|
|
16147
16493
|
src: scanning
|
|
16148
|
-
}))) : (
|
|
16494
|
+
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16149
16495
|
title: "\u5168\u5C4F"
|
|
16150
16496
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16151
16497
|
onClick: function onClick() {
|
|
@@ -16153,7 +16499,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16153
16499
|
},
|
|
16154
16500
|
width: 24,
|
|
16155
16501
|
src: quanping
|
|
16156
|
-
}))))) : null)), alertProps && (
|
|
16502
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16157
16503
|
}, function (prevProps, nextProps) {
|
|
16158
16504
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16159
16505
|
return false;
|
|
@@ -16161,10 +16507,10 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16161
16507
|
return true;
|
|
16162
16508
|
});
|
|
16163
16509
|
|
|
16164
|
-
var css_248z$h = ".bs_home_page_head_wrapper {\n
|
|
16510
|
+
var css_248z$h = ".bs_home_page_head_wrapper {\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
|
|
16165
16511
|
styleInject(css_248z$h);
|
|
16166
16512
|
|
|
16167
|
-
var _excluded$
|
|
16513
|
+
var _excluded$f = ["children"];
|
|
16168
16514
|
var index$4 = (function (props) {
|
|
16169
16515
|
var _useLocation = useLocation(),
|
|
16170
16516
|
pathname = _useLocation.pathname;
|
|
@@ -16172,7 +16518,7 @@ var index$4 = (function (props) {
|
|
|
16172
16518
|
_useState2 = _slicedToArray(_useState, 1),
|
|
16173
16519
|
id = _useState2[0];
|
|
16174
16520
|
var children = props.children,
|
|
16175
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
16521
|
+
restProps = _objectWithoutProperties(props, _excluded$f);
|
|
16176
16522
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16177
16523
|
id: id,
|
|
16178
16524
|
className: 'home_page_wrapper'
|
|
@@ -16238,7 +16584,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16238
16584
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16239
16585
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16240
16586
|
}, item));
|
|
16241
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (
|
|
16587
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16242
16588
|
}, function (prevProps, nextProps) {
|
|
16243
16589
|
if (prevProps.title !== nextProps.title) {
|
|
16244
16590
|
return false;
|
|
@@ -16249,7 +16595,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16249
16595
|
var css_248z$i = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
16250
16596
|
styleInject(css_248z$i);
|
|
16251
16597
|
|
|
16252
|
-
var _excluded$
|
|
16598
|
+
var _excluded$g = ["className", "style"];
|
|
16253
16599
|
var DragHandle$2 = SortableHandle(function () {
|
|
16254
16600
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
16255
16601
|
width: 25,
|
|
@@ -16687,7 +17033,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16687
17033
|
_this.DraggableBodyRow = function (_ref2) {
|
|
16688
17034
|
var className = _ref2.className,
|
|
16689
17035
|
style = _ref2.style,
|
|
16690
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
17036
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$g);
|
|
16691
17037
|
var sortDataSource = _this.state.sortDataSource;
|
|
16692
17038
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
16693
17039
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -16878,8 +17224,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16878
17224
|
});
|
|
16879
17225
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16880
17226
|
className: 'sort_table_wrapper'
|
|
16881
|
-
}, visible && (
|
|
16882
|
-
title: "\
|
|
17227
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17228
|
+
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
16883
17229
|
wrapClassName: 'sort_table_wrapper',
|
|
16884
17230
|
width: 810,
|
|
16885
17231
|
visible: visible,
|
|
@@ -16916,7 +17262,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16916
17262
|
className: 'sort_table_column_wrapper'
|
|
16917
17263
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16918
17264
|
className: 'sort_table_column_count'
|
|
16919
|
-
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\
|
|
17265
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u5C55\u793A\u7684\u8868\u683C\u5217")), /*#__PURE__*/React$1.createElement("div", {
|
|
16920
17266
|
className: 'sort_table_column'
|
|
16921
17267
|
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
16922
17268
|
prefix: /*#__PURE__*/React$1.createElement(SearchOutlined, {
|
|
@@ -16929,7 +17275,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16929
17275
|
width: 525,
|
|
16930
17276
|
height: 24
|
|
16931
17277
|
}
|
|
16932
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
17278
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16933
17279
|
checked: !dataSource.some(function (item) {
|
|
16934
17280
|
if (item.hidden) return true;
|
|
16935
17281
|
return false;
|
|
@@ -16983,13 +17329,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16983
17329
|
_this2.onChange(e, item.title);
|
|
16984
17330
|
}
|
|
16985
17331
|
}, item.title);
|
|
16986
|
-
}), !!seatchDataSource.length && (
|
|
17332
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16987
17333
|
style: {
|
|
16988
17334
|
width: '144px'
|
|
16989
17335
|
}
|
|
16990
|
-
})), !seatchDataSource.length && (
|
|
17336
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16991
17337
|
className: 'sort_table_column_all_empty'
|
|
16992
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
17338
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16993
17339
|
className: 'sort_table_column_special'
|
|
16994
17340
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
16995
17341
|
className: 'sort_table_column_all'
|
|
@@ -17011,7 +17357,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17011
17357
|
className: 'sort_table_content_wrapper'
|
|
17012
17358
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
17013
17359
|
className: 'sort_table_content_count'
|
|
17014
|
-
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\
|
|
17360
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u5C55\u793A\u5217\u6392\u5E8F")), /*#__PURE__*/React$1.createElement("div", {
|
|
17015
17361
|
className: 'sort_table_content'
|
|
17016
17362
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
17017
17363
|
style: {
|
|
@@ -17057,7 +17403,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17057
17403
|
}]);
|
|
17058
17404
|
}(React$1.Component);
|
|
17059
17405
|
|
|
17060
|
-
var _excluded$
|
|
17406
|
+
var _excluded$h = ["className", "style"];
|
|
17061
17407
|
var DragHandle$3 = SortableHandle(function () {
|
|
17062
17408
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
17063
17409
|
width: 25,
|
|
@@ -17310,7 +17656,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17310
17656
|
_this.DraggableBodyRow = function (_ref2) {
|
|
17311
17657
|
var className = _ref2.className,
|
|
17312
17658
|
style = _ref2.style,
|
|
17313
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
17659
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$h);
|
|
17314
17660
|
var sortDataSource = _this.state.sortDataSource;
|
|
17315
17661
|
var index = sortDataSource.findIndex(function (x) {
|
|
17316
17662
|
return x.name === restProps['data-row-key'];
|
|
@@ -17463,7 +17809,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17463
17809
|
});
|
|
17464
17810
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17465
17811
|
className: 'sort_table_wrapper'
|
|
17466
|
-
}, visible && (
|
|
17812
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17467
17813
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17468
17814
|
wrapClassName: 'sort_table_wrapper',
|
|
17469
17815
|
width: 820,
|
|
@@ -17508,7 +17854,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17508
17854
|
style: {
|
|
17509
17855
|
width: 525
|
|
17510
17856
|
}
|
|
17511
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
17857
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17512
17858
|
checked: !dataSource.some(function (item) {
|
|
17513
17859
|
if (item.hidden) return true;
|
|
17514
17860
|
return false;
|
|
@@ -17544,11 +17890,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17544
17890
|
_this2.onChange(e, item.name);
|
|
17545
17891
|
}
|
|
17546
17892
|
}, item.label);
|
|
17547
|
-
}), !!newSearchSource.length && (
|
|
17893
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17548
17894
|
style: {
|
|
17549
17895
|
width: '144px'
|
|
17550
17896
|
}
|
|
17551
|
-
})), !newSearchSource.length && (
|
|
17897
|
+
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17552
17898
|
className: 'sort_table_column_all_empty'
|
|
17553
17899
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17554
17900
|
className: 'sort_table_content_wrapper'
|
|
@@ -17609,13 +17955,13 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17609
17955
|
var css_248z$j = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
17610
17956
|
styleInject(css_248z$j);
|
|
17611
17957
|
|
|
17612
|
-
var _excluded$
|
|
17958
|
+
var _excluded$i = ["onResize", "width"];
|
|
17613
17959
|
var MemoQueryTable = /*#__PURE__*/React$1.memo(QueryTable);
|
|
17614
17960
|
var Text$2 = Typography.Text;
|
|
17615
17961
|
var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
17616
17962
|
var onResize = props.onResize,
|
|
17617
17963
|
width = props.width,
|
|
17618
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
17964
|
+
restProps = _objectWithoutProperties(props, _excluded$i);
|
|
17619
17965
|
var _useState = useState(width),
|
|
17620
17966
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17621
17967
|
innerWidth = _useState2[0],
|
|
@@ -17647,7 +17993,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17647
17993
|
};
|
|
17648
17994
|
setIsResizing(true);
|
|
17649
17995
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17650
|
-
document.addEventListener('mouseup',
|
|
17996
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
17651
17997
|
};
|
|
17652
17998
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17653
17999
|
e.stopPropagation();
|
|
@@ -17663,9 +18009,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17663
18009
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17664
18010
|
}
|
|
17665
18011
|
};
|
|
17666
|
-
var
|
|
18012
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
17667
18013
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17668
|
-
document.removeEventListener('mouseup',
|
|
18014
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
17669
18015
|
setIsResizing(false);
|
|
17670
18016
|
};
|
|
17671
18017
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -17884,7 +18230,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17884
18230
|
}
|
|
17885
18231
|
});
|
|
17886
18232
|
}
|
|
17887
|
-
handleBssulaColumnsSpecialParams(d);
|
|
18233
|
+
// handleBssulaColumnsSpecialParams(d);
|
|
17888
18234
|
});
|
|
17889
18235
|
setCommonRenderFn(props.columns);
|
|
17890
18236
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
@@ -17914,7 +18260,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17914
18260
|
var showColumns = getSettingFieldOrColumn(isReset ? [] : columnConfig, columns, 'columns');
|
|
17915
18261
|
showColumns.forEach(function (item, index) {
|
|
17916
18262
|
item.width = item.width || getItemDefaultWidth(item);
|
|
17917
|
-
handleBssulaColumnsSpecialParams(item);
|
|
18263
|
+
// handleBssulaColumnsSpecialParams(item);
|
|
17918
18264
|
item.onHeaderCell = function (column) {
|
|
17919
18265
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
17920
18266
|
width: typeof column.width === 'number' ? column.width : parseWidth(column.width),
|
|
@@ -17927,7 +18273,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17927
18273
|
var showExportColumns = getSettingFieldOrColumn(exportColumnConfig, columns, 'columns');
|
|
17928
18274
|
showExportColumns.forEach(function (item, index) {
|
|
17929
18275
|
item.width = item.width || getItemDefaultWidth(item);
|
|
17930
|
-
handleBssulaColumnsSpecialParams(item);
|
|
18276
|
+
// handleBssulaColumnsSpecialParams(item);
|
|
17931
18277
|
item.onHeaderCell = function (column) {
|
|
17932
18278
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
17933
18279
|
width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
|
|
@@ -18076,7 +18422,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18076
18422
|
actionsRender = actionsRender.concat([{
|
|
18077
18423
|
type: 'text',
|
|
18078
18424
|
props: {
|
|
18079
|
-
children: (
|
|
18425
|
+
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18080
18426
|
request: {
|
|
18081
18427
|
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),
|
|
18082
18428
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18154,9 +18500,9 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18154
18500
|
newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
|
|
18155
18501
|
width: size.width
|
|
18156
18502
|
});
|
|
18157
|
-
newColumns.forEach(
|
|
18158
|
-
|
|
18159
|
-
});
|
|
18503
|
+
// newColumns.forEach((d: any) => {
|
|
18504
|
+
// handleBssulaColumnsSpecialParams(d);
|
|
18505
|
+
// });
|
|
18160
18506
|
return _toConsumableArray(newColumns);
|
|
18161
18507
|
});
|
|
18162
18508
|
};
|
|
@@ -18322,7 +18668,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18322
18668
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18323
18669
|
bsTableCode: bsTableCode,
|
|
18324
18670
|
onlyModal: true
|
|
18325
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
18671
|
+
}), (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, {
|
|
18326
18672
|
ref: exportTableRef,
|
|
18327
18673
|
setShowColumns: setShowExportColumns,
|
|
18328
18674
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18415,11 +18761,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18415
18761
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18416
18762
|
var resultList = [];
|
|
18417
18763
|
var newRouter = cloneDeep(router);
|
|
18418
|
-
var
|
|
18764
|
+
var _deep = function deep(router) {
|
|
18419
18765
|
if (router && Array.isArray(router)) {
|
|
18420
18766
|
router.forEach(function (item) {
|
|
18421
18767
|
if (item.children && Array.isArray(item.children)) {
|
|
18422
|
-
|
|
18768
|
+
_deep(item.children);
|
|
18423
18769
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18424
18770
|
return d === item.code;
|
|
18425
18771
|
})) {
|
|
@@ -18433,10 +18779,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18433
18779
|
resultList.push(_objectSpread2({}, router));
|
|
18434
18780
|
}
|
|
18435
18781
|
};
|
|
18436
|
-
|
|
18782
|
+
_deep(newRouter);
|
|
18437
18783
|
callBack([].concat(resultList));
|
|
18438
18784
|
};
|
|
18439
|
-
var
|
|
18785
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18440
18786
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18441
18787
|
var _loop = function _loop(i) {
|
|
18442
18788
|
if (routesData[i].hideInMenu) {
|
|
@@ -18450,7 +18796,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18450
18796
|
return 0; // continue
|
|
18451
18797
|
}
|
|
18452
18798
|
if (routesData[i].children) {
|
|
18453
|
-
|
|
18799
|
+
_setMenuTreeData(routesData[i].children);
|
|
18454
18800
|
}
|
|
18455
18801
|
},
|
|
18456
18802
|
_ret;
|
|
@@ -18471,16 +18817,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18471
18817
|
};
|
|
18472
18818
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18473
18819
|
var routerMap = {};
|
|
18474
|
-
var
|
|
18820
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
18475
18821
|
data.forEach(function (menuItem) {
|
|
18476
18822
|
if (menuItem.children) {
|
|
18477
|
-
|
|
18823
|
+
_flattenMenuData(menuItem.children);
|
|
18478
18824
|
}
|
|
18479
18825
|
// Reduce memory usage
|
|
18480
18826
|
routerMap[menuItem.path] = menuItem;
|
|
18481
18827
|
});
|
|
18482
18828
|
};
|
|
18483
|
-
|
|
18829
|
+
_flattenMenuData(menuData);
|
|
18484
18830
|
return routerMap;
|
|
18485
18831
|
};
|
|
18486
18832
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18626,7 +18972,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18626
18972
|
sethomepageData(homepageDataList);
|
|
18627
18973
|
setroutesData(routesDataList);
|
|
18628
18974
|
}, []);
|
|
18629
|
-
var
|
|
18975
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
18630
18976
|
if (!child.hideInMenu && child.children) {
|
|
18631
18977
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18632
18978
|
style: {
|
|
@@ -18636,7 +18982,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18636
18982
|
}, formatMessage({
|
|
18637
18983
|
id: "".concat(child.locale)
|
|
18638
18984
|
})), child.children.map(function (menuItem) {
|
|
18639
|
-
return
|
|
18985
|
+
return _renderChildItem(menuItem);
|
|
18640
18986
|
}));
|
|
18641
18987
|
} else if (!child.hideInMenu && child.path) {
|
|
18642
18988
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18671,7 +19017,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18671
19017
|
className: 'drawerWarp'
|
|
18672
19018
|
}, homepageData && homepageData.filter(function (d) {
|
|
18673
19019
|
return !d.hideInMenu;
|
|
18674
|
-
}).length > 0 && (
|
|
19020
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
18675
19021
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
18676
19022
|
dataSource: homepageData,
|
|
18677
19023
|
renderItem: function renderItem(child) {
|
|
@@ -18706,7 +19052,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18706
19052
|
bordered: true,
|
|
18707
19053
|
dataSource: item.children,
|
|
18708
19054
|
renderItem: function renderItem(child) {
|
|
18709
|
-
return
|
|
19055
|
+
return _renderChildItem(child);
|
|
18710
19056
|
}
|
|
18711
19057
|
});
|
|
18712
19058
|
})));
|
|
@@ -18766,7 +19112,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18766
19112
|
src: allfunc
|
|
18767
19113
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
18768
19114
|
className: 'btnSpan2'
|
|
18769
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
19115
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18770
19116
|
style: {
|
|
18771
19117
|
left: isDrawer ? 140 : 0,
|
|
18772
19118
|
top: 50
|
|
@@ -18812,7 +19158,7 @@ function outLogin(_x) {
|
|
|
18812
19158
|
return _outLogin.apply(this, arguments);
|
|
18813
19159
|
}
|
|
18814
19160
|
function _outLogin() {
|
|
18815
|
-
_outLogin = _asyncToGenerator(
|
|
19161
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18816
19162
|
var res;
|
|
18817
19163
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18818
19164
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18954,7 +19300,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18954
19300
|
});
|
|
18955
19301
|
};
|
|
18956
19302
|
var loginOut = /*#__PURE__*/function () {
|
|
18957
|
-
var _ref2 = _asyncToGenerator(
|
|
19303
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18958
19304
|
var sessionId;
|
|
18959
19305
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18960
19306
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19058,7 +19404,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19058
19404
|
marginRight: '0px'
|
|
19059
19405
|
},
|
|
19060
19406
|
src: './xialajiantou-new.svg'
|
|
19061
|
-
}))))), loginModalParams.visible && (
|
|
19407
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19062
19408
|
};
|
|
19063
19409
|
|
|
19064
19410
|
// -- 查询店铺 --
|
|
@@ -19066,7 +19412,7 @@ function getStoreByName(_x) {
|
|
|
19066
19412
|
return _getStoreByName.apply(this, arguments);
|
|
19067
19413
|
}
|
|
19068
19414
|
function _getStoreByName() {
|
|
19069
|
-
_getStoreByName = _asyncToGenerator(
|
|
19415
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19070
19416
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19071
19417
|
while (1) switch (_context.prev = _context.next) {
|
|
19072
19418
|
case 0:
|
|
@@ -19134,7 +19480,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19134
19480
|
return _fetchUserList.apply(this, arguments);
|
|
19135
19481
|
}
|
|
19136
19482
|
function _fetchUserList() {
|
|
19137
|
-
_fetchUserList = _asyncToGenerator(
|
|
19483
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19138
19484
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19139
19485
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19140
19486
|
case 0:
|
|
@@ -19182,7 +19528,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19182
19528
|
return debounce$1(loadOptions, debounceTimeout);
|
|
19183
19529
|
}, [debounceTimeout, key]);
|
|
19184
19530
|
var changeInput = /*#__PURE__*/function () {
|
|
19185
|
-
var _ref = _asyncToGenerator(
|
|
19531
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19186
19532
|
var res;
|
|
19187
19533
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19188
19534
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19204,7 +19550,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19204
19550
|
};
|
|
19205
19551
|
}();
|
|
19206
19552
|
useEffect(function () {
|
|
19207
|
-
_asyncToGenerator(
|
|
19553
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19208
19554
|
var res;
|
|
19209
19555
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19210
19556
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19369,7 +19715,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19369
19715
|
var resultList = [];
|
|
19370
19716
|
var newRouter = cloneDeep$1(router);
|
|
19371
19717
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19372
|
-
var
|
|
19718
|
+
var _deep = function deep(router) {
|
|
19373
19719
|
if (router && Array.isArray(router)) {
|
|
19374
19720
|
router.forEach(function (item) {
|
|
19375
19721
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19379,7 +19725,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19379
19725
|
d.nameEdit = true;
|
|
19380
19726
|
}
|
|
19381
19727
|
});
|
|
19382
|
-
|
|
19728
|
+
_deep(item.routes);
|
|
19383
19729
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19384
19730
|
id: "menu.".concat(item.name)
|
|
19385
19731
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19398,7 +19744,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19398
19744
|
}));
|
|
19399
19745
|
}
|
|
19400
19746
|
};
|
|
19401
|
-
|
|
19747
|
+
_deep(newRouter);
|
|
19402
19748
|
setroutesData([].concat(resultList));
|
|
19403
19749
|
};
|
|
19404
19750
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19480,7 +19826,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19480
19826
|
},
|
|
19481
19827
|
title: item.fullPathName
|
|
19482
19828
|
}, renderLineStyl(item.fullPathName));
|
|
19483
|
-
}))))), showSelectStore && (
|
|
19829
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19484
19830
|
employeeCode: employeeCode
|
|
19485
19831
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19486
19832
|
};
|
|
@@ -19495,7 +19841,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19495
19841
|
var TreeNode = Tree.TreeNode;
|
|
19496
19842
|
var Search$2 = Input.Search;
|
|
19497
19843
|
var dataList = [];
|
|
19498
|
-
var
|
|
19844
|
+
var _generateList = function generateList(data) {
|
|
19499
19845
|
for (var i = 0; i < data.length; i++) {
|
|
19500
19846
|
var node = data[i];
|
|
19501
19847
|
var path = node.path,
|
|
@@ -19505,11 +19851,11 @@ var generateList = function generateList(data) {
|
|
|
19505
19851
|
name: name
|
|
19506
19852
|
});
|
|
19507
19853
|
if (node.children) {
|
|
19508
|
-
|
|
19854
|
+
_generateList(node.children);
|
|
19509
19855
|
}
|
|
19510
19856
|
}
|
|
19511
19857
|
};
|
|
19512
|
-
var
|
|
19858
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
19513
19859
|
var parentKey;
|
|
19514
19860
|
for (var i = 0; i < tree.length; i++) {
|
|
19515
19861
|
var node = tree[i];
|
|
@@ -19518,8 +19864,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
19518
19864
|
return item.path === path;
|
|
19519
19865
|
})) {
|
|
19520
19866
|
parentKey = node.path;
|
|
19521
|
-
} else if (
|
|
19522
|
-
parentKey =
|
|
19867
|
+
} else if (_getParentKey(path, node.children)) {
|
|
19868
|
+
parentKey = _getParentKey(path, node.children);
|
|
19523
19869
|
}
|
|
19524
19870
|
}
|
|
19525
19871
|
}
|
|
@@ -19550,7 +19896,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19550
19896
|
var treeData = _this.state.treeData;
|
|
19551
19897
|
var expandedKeys = dataList.map(function (item) {
|
|
19552
19898
|
if (item.name.indexOf(value) > -1) {
|
|
19553
|
-
return
|
|
19899
|
+
return _getParentKey(item.path, treeData);
|
|
19554
19900
|
}
|
|
19555
19901
|
return null;
|
|
19556
19902
|
}).filter(function (item, i, self) {
|
|
@@ -19564,22 +19910,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19564
19910
|
};
|
|
19565
19911
|
_this.getPathList = function (originData) {
|
|
19566
19912
|
var pathList = [];
|
|
19567
|
-
var
|
|
19913
|
+
var _getList = function getList(data) {
|
|
19568
19914
|
if (Array.isArray(data)) {
|
|
19569
19915
|
data.forEach(function (item) {
|
|
19570
19916
|
pathList.push(item.path);
|
|
19571
19917
|
if (item.children) {
|
|
19572
|
-
|
|
19918
|
+
_getList(item.children);
|
|
19573
19919
|
}
|
|
19574
19920
|
});
|
|
19575
19921
|
} else {
|
|
19576
19922
|
pathList.push(data.path);
|
|
19577
19923
|
if (data.children) {
|
|
19578
|
-
|
|
19924
|
+
_getList(data.children);
|
|
19579
19925
|
}
|
|
19580
19926
|
}
|
|
19581
19927
|
};
|
|
19582
|
-
|
|
19928
|
+
_getList(originData);
|
|
19583
19929
|
return pathList;
|
|
19584
19930
|
};
|
|
19585
19931
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19588,18 +19934,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19588
19934
|
customerMenuData = _this$props.customerMenuData,
|
|
19589
19935
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19590
19936
|
var filterItem;
|
|
19591
|
-
var
|
|
19937
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
19592
19938
|
menuData.forEach(function (item) {
|
|
19593
19939
|
if (item.path === path) {
|
|
19594
19940
|
filterItem = _objectSpread2({}, item);
|
|
19595
19941
|
return;
|
|
19596
19942
|
}
|
|
19597
19943
|
if (item.children) {
|
|
19598
|
-
|
|
19944
|
+
_filterMenuItem(item.children);
|
|
19599
19945
|
}
|
|
19600
19946
|
});
|
|
19601
19947
|
};
|
|
19602
|
-
|
|
19948
|
+
_filterMenuItem(treeData);
|
|
19603
19949
|
var addPathList = _this.getPathList(filterItem);
|
|
19604
19950
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19605
19951
|
var isRepet = false;
|
|
@@ -19629,8 +19975,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19629
19975
|
return item.path === '/';
|
|
19630
19976
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19631
19977
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19632
|
-
|
|
19633
|
-
|
|
19978
|
+
_setMenuTreeData(routesData);
|
|
19979
|
+
_generateList(routesData);
|
|
19634
19980
|
this.setState({
|
|
19635
19981
|
treeData: routesData
|
|
19636
19982
|
});
|
|
@@ -19644,16 +19990,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19644
19990
|
expandedKeys = _this$state.expandedKeys,
|
|
19645
19991
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19646
19992
|
treeData = _this$state.treeData;
|
|
19647
|
-
var
|
|
19993
|
+
var _loop = function loop(data) {
|
|
19648
19994
|
return data.map(function (item) {
|
|
19649
19995
|
var index = item.name.indexOf(searchValue);
|
|
19650
19996
|
var beforeStr = item.name.substr(0, index);
|
|
19651
19997
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19652
|
-
var name = index > -1 ? (
|
|
19998
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19653
19999
|
style: {
|
|
19654
20000
|
color: '#f50'
|
|
19655
20001
|
}
|
|
19656
|
-
}, searchValue), afterStr)) : (
|
|
20002
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19657
20003
|
if (item.children && item.children.length) {
|
|
19658
20004
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19659
20005
|
path: item.path,
|
|
@@ -19675,7 +20021,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19675
20021
|
width: 18,
|
|
19676
20022
|
src: arrowRight
|
|
19677
20023
|
}))))
|
|
19678
|
-
},
|
|
20024
|
+
}, _loop(item.children));
|
|
19679
20025
|
}
|
|
19680
20026
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19681
20027
|
path: item.path,
|
|
@@ -19725,7 +20071,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19725
20071
|
onExpand: this.onExpand,
|
|
19726
20072
|
expandedKeys: expandedKeys,
|
|
19727
20073
|
autoExpandParent: autoExpandParent
|
|
19728
|
-
},
|
|
20074
|
+
}, _loop(treeData))));
|
|
19729
20075
|
}
|
|
19730
20076
|
}]);
|
|
19731
20077
|
}(React$1.Component);
|
|
@@ -19758,24 +20104,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19758
20104
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19759
20105
|
var dragObj;
|
|
19760
20106
|
var finalDropItem;
|
|
19761
|
-
var
|
|
20107
|
+
var _loop = function loop(data, path, callback) {
|
|
19762
20108
|
for (var i = 0; i < data.length; i++) {
|
|
19763
20109
|
if (data[i].path === path) {
|
|
19764
20110
|
return callback(data[i], i, data);
|
|
19765
20111
|
}
|
|
19766
20112
|
if (data[i].children) {
|
|
19767
|
-
|
|
20113
|
+
_loop(data[i].children, path, callback);
|
|
19768
20114
|
}
|
|
19769
20115
|
}
|
|
19770
20116
|
};
|
|
19771
20117
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19772
|
-
|
|
20118
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
19773
20119
|
arr.splice(index, 1);
|
|
19774
20120
|
dragObj = item;
|
|
19775
20121
|
});
|
|
19776
20122
|
if (!info.dropToGap) {
|
|
19777
20123
|
// Drop on the content
|
|
19778
|
-
|
|
20124
|
+
_loop(data, dropKey, function (item) {
|
|
19779
20125
|
item.children = item.children || [];
|
|
19780
20126
|
item.children.unshift(dragObj);
|
|
19781
20127
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19786,7 +20132,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19786
20132
|
// Is expanded
|
|
19787
20133
|
dropPosition === 1 // On the bottom gap
|
|
19788
20134
|
) {
|
|
19789
|
-
|
|
20135
|
+
_loop(data, dropKey, function (item) {
|
|
19790
20136
|
item.children = item.children || [];
|
|
19791
20137
|
item.children.unshift(dragObj);
|
|
19792
20138
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19794,7 +20140,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19794
20140
|
} else {
|
|
19795
20141
|
var ar;
|
|
19796
20142
|
var i;
|
|
19797
|
-
|
|
20143
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
19798
20144
|
ar = arr;
|
|
19799
20145
|
i = index;
|
|
19800
20146
|
});
|
|
@@ -19833,17 +20179,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19833
20179
|
title: '编辑名称',
|
|
19834
20180
|
callBack: function callBack(newName) {
|
|
19835
20181
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19836
|
-
var
|
|
20182
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19837
20183
|
oldTreeData.forEach(function (treeItem) {
|
|
19838
20184
|
if (treeItem.path === item.path) {
|
|
19839
20185
|
treeItem.name = newName;
|
|
19840
20186
|
}
|
|
19841
20187
|
if (treeItem.children) {
|
|
19842
|
-
|
|
20188
|
+
_editTreeDataName(treeItem.children);
|
|
19843
20189
|
}
|
|
19844
20190
|
});
|
|
19845
20191
|
};
|
|
19846
|
-
|
|
20192
|
+
_editTreeDataName(oldTreeData);
|
|
19847
20193
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19848
20194
|
_this.setState({
|
|
19849
20195
|
modalInfo: {
|
|
@@ -19888,7 +20234,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19888
20234
|
title: '新增子目录',
|
|
19889
20235
|
callBack: function callBack(newName) {
|
|
19890
20236
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19891
|
-
var
|
|
20237
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
19892
20238
|
oldTreeData.forEach(function (treeItem) {
|
|
19893
20239
|
if (treeItem.path === item.path) {
|
|
19894
20240
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19900,11 +20246,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19900
20246
|
}];
|
|
19901
20247
|
}
|
|
19902
20248
|
if (treeItem.children) {
|
|
19903
|
-
|
|
20249
|
+
_addChildFolder(treeItem.children);
|
|
19904
20250
|
}
|
|
19905
20251
|
});
|
|
19906
20252
|
};
|
|
19907
|
-
|
|
20253
|
+
_addChildFolder(oldTreeData);
|
|
19908
20254
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19909
20255
|
_this.setState({
|
|
19910
20256
|
modalInfo: {
|
|
@@ -19963,7 +20309,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19963
20309
|
var _this$state = this.state,
|
|
19964
20310
|
modalInfo = _this$state.modalInfo,
|
|
19965
20311
|
checkedKeys = _this$state.checkedKeys;
|
|
19966
|
-
var
|
|
20312
|
+
var _loop2 = function loop(data) {
|
|
19967
20313
|
return data.map(function (item) {
|
|
19968
20314
|
if (item.children && item.children.length) {
|
|
19969
20315
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -19980,7 +20326,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19980
20326
|
e.stopPropagation();
|
|
19981
20327
|
}
|
|
19982
20328
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
19983
|
-
},
|
|
20329
|
+
}, _loop2(item.children));
|
|
19984
20330
|
}
|
|
19985
20331
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
19986
20332
|
path: item.path,
|
|
@@ -20059,7 +20405,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20059
20405
|
children: 'children'
|
|
20060
20406
|
},
|
|
20061
20407
|
onDrop: this.onDrop
|
|
20062
|
-
},
|
|
20408
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
20063
20409
|
width: 600,
|
|
20064
20410
|
bodyStyle: {
|
|
20065
20411
|
paddingTop: '32px',
|
|
@@ -20172,7 +20518,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20172
20518
|
pathname: item.path
|
|
20173
20519
|
});
|
|
20174
20520
|
};
|
|
20175
|
-
var
|
|
20521
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
20176
20522
|
return menuData.map(function (item) {
|
|
20177
20523
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20178
20524
|
style: {
|
|
@@ -20187,7 +20533,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20187
20533
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20188
20534
|
paddingLeft: '4px'
|
|
20189
20535
|
}
|
|
20190
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20536
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
20191
20537
|
});
|
|
20192
20538
|
};
|
|
20193
20539
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20213,7 +20559,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20213
20559
|
style: {
|
|
20214
20560
|
paddingLeft: '5px'
|
|
20215
20561
|
}
|
|
20216
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
20562
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20217
20563
|
style: {
|
|
20218
20564
|
left: isDrawer ? 140 : 0
|
|
20219
20565
|
},
|
|
@@ -20234,7 +20580,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20234
20580
|
visible: isDrawer
|
|
20235
20581
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
20236
20582
|
className: 'menu_title_line'
|
|
20237
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20583
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
20238
20584
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
20239
20585
|
style: {
|
|
20240
20586
|
fontWeight: '600',
|
|
@@ -20308,7 +20654,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20308
20654
|
return item.path === '/';
|
|
20309
20655
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20310
20656
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20311
|
-
|
|
20657
|
+
_setMenuTreeData(routesData);
|
|
20312
20658
|
routesData.forEach(function (item) {
|
|
20313
20659
|
if (item.children) {
|
|
20314
20660
|
routesDataList.push(item);
|
|
@@ -20338,7 +20684,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20338
20684
|
setHeight(clientHeight - 190);
|
|
20339
20685
|
setDrawHeight(clientHeight - 70);
|
|
20340
20686
|
};
|
|
20341
|
-
var
|
|
20687
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
20342
20688
|
if (!child.hideInMenu && child.children) {
|
|
20343
20689
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20344
20690
|
style: {
|
|
@@ -20348,7 +20694,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20348
20694
|
}, formatMessage({
|
|
20349
20695
|
id: "".concat(child.locale)
|
|
20350
20696
|
})), child.children.map(function (menuItem) {
|
|
20351
|
-
return
|
|
20697
|
+
return _renderChildItem(menuItem);
|
|
20352
20698
|
}));
|
|
20353
20699
|
} else if (!child.hideInMenu && child.path) {
|
|
20354
20700
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20490,7 +20836,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20490
20836
|
onMenuClick(e, item);
|
|
20491
20837
|
}
|
|
20492
20838
|
}, item.name);
|
|
20493
|
-
}))), !!SearhData.length ? (
|
|
20839
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20494
20840
|
className: 'search_menu_content'
|
|
20495
20841
|
}, SearhData.map(function (item) {
|
|
20496
20842
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20499,7 +20845,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20499
20845
|
},
|
|
20500
20846
|
key: item.path
|
|
20501
20847
|
}, item.name);
|
|
20502
|
-
}))) : (
|
|
20848
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20503
20849
|
style: {
|
|
20504
20850
|
height: "".concat(rightMenuHeight, "px"),
|
|
20505
20851
|
overflowY: 'scroll',
|
|
@@ -20511,7 +20857,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20511
20857
|
className: 'drawerWarp_right'
|
|
20512
20858
|
}, homepageData && homepageData.filter(function (d) {
|
|
20513
20859
|
return !d.hideInMenu;
|
|
20514
|
-
}).length > 0 && (
|
|
20860
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20515
20861
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20516
20862
|
dataSource: homepageData,
|
|
20517
20863
|
renderItem: function renderItem(child) {
|
|
@@ -20552,7 +20898,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20552
20898
|
bordered: true,
|
|
20553
20899
|
dataSource: item.children,
|
|
20554
20900
|
renderItem: function renderItem(child) {
|
|
20555
|
-
return
|
|
20901
|
+
return _renderChildItem(child);
|
|
20556
20902
|
}
|
|
20557
20903
|
});
|
|
20558
20904
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20692,7 +21038,7 @@ var NoFoundPage = function NoFoundPage(props) {
|
|
|
20692
21038
|
}));
|
|
20693
21039
|
};
|
|
20694
21040
|
|
|
20695
|
-
var _excluded$
|
|
21041
|
+
var _excluded$j = ["route"];
|
|
20696
21042
|
var TabPane = Tabs.TabPane;
|
|
20697
21043
|
var getId = function getId(str) {
|
|
20698
21044
|
// 找到最后一个 / 的位置
|
|
@@ -20710,10 +21056,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20710
21056
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20711
21057
|
var menuKeys = [];
|
|
20712
21058
|
var docsId = [];
|
|
20713
|
-
var
|
|
21059
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20714
21060
|
data.forEach(function (item) {
|
|
20715
21061
|
if (item.children && item.children.length > 0) {
|
|
20716
|
-
|
|
21062
|
+
_getLimitedMenuKeys(item.children);
|
|
20717
21063
|
} else {
|
|
20718
21064
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20719
21065
|
menuKeys.push(originPath);
|
|
@@ -20724,7 +21070,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20724
21070
|
});
|
|
20725
21071
|
};
|
|
20726
21072
|
try {
|
|
20727
|
-
|
|
21073
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
20728
21074
|
} catch (e) {}
|
|
20729
21075
|
return {
|
|
20730
21076
|
menuKeys: menuKeys,
|
|
@@ -20958,10 +21304,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20958
21304
|
return (node.path || '').includes('all-general-documents');
|
|
20959
21305
|
};
|
|
20960
21306
|
// 递归获取树列表
|
|
20961
|
-
var
|
|
21307
|
+
var _getTreeList = function getTreeList(data) {
|
|
20962
21308
|
data.forEach(function (node) {
|
|
20963
21309
|
if (node.routes && node.routes.length > 0) {
|
|
20964
|
-
|
|
21310
|
+
_getTreeList(node.routes);
|
|
20965
21311
|
return;
|
|
20966
21312
|
}
|
|
20967
21313
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20992,7 +21338,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20992
21338
|
}
|
|
20993
21339
|
});
|
|
20994
21340
|
};
|
|
20995
|
-
|
|
21341
|
+
_getTreeList(treeData);
|
|
20996
21342
|
return treeList;
|
|
20997
21343
|
};
|
|
20998
21344
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21621,7 +21967,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21621
21967
|
updateState = _ref8.updateState;
|
|
21622
21968
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21623
21969
|
className: "tab_title_content"
|
|
21624
|
-
}, item.tab, item.key !== '/' && (
|
|
21970
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21625
21971
|
info: item,
|
|
21626
21972
|
operateFun: _this3.operateFun,
|
|
21627
21973
|
listenRouterState: listenRouterState
|
|
@@ -21633,7 +21979,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21633
21979
|
}); // 添加数据大屏
|
|
21634
21980
|
var _this$props3 = this.props,
|
|
21635
21981
|
route = _this$props3.route,
|
|
21636
|
-
restPrpos = _objectWithoutProperties(_this$props3, _excluded$
|
|
21982
|
+
restPrpos = _objectWithoutProperties(_this$props3, _excluded$j);
|
|
21637
21983
|
var exist = route.routes.find(function (route) {
|
|
21638
21984
|
return route.path === '/homePage/data-show';
|
|
21639
21985
|
});
|
|
@@ -21757,7 +22103,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21757
22103
|
};
|
|
21758
22104
|
}
|
|
21759
22105
|
var OperationsSlot = {
|
|
21760
|
-
left: (
|
|
22106
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
21761
22107
|
className: 'tab_left_operate'
|
|
21762
22108
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
21763
22109
|
onClick: function onClick() {
|
|
@@ -21773,7 +22119,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21773
22119
|
_this3.setTabNavTransLate(-100);
|
|
21774
22120
|
}
|
|
21775
22121
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
21776
|
-
right: (
|
|
22122
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
21777
22123
|
style: {
|
|
21778
22124
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21779
22125
|
},
|
|
@@ -21871,7 +22217,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21871
22217
|
onMouseLeave: function onMouseLeave() {
|
|
21872
22218
|
_this3.setShowMenu(false);
|
|
21873
22219
|
}
|
|
21874
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
22220
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21875
22221
|
style: {
|
|
21876
22222
|
position: 'absolute',
|
|
21877
22223
|
top: '14px',
|
|
@@ -21890,7 +22236,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21890
22236
|
postMenuData: function postMenuData(menus) {
|
|
21891
22237
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21892
22238
|
},
|
|
21893
|
-
links: [!this.state.collapse ? (
|
|
22239
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21894
22240
|
ref: this.allFunc,
|
|
21895
22241
|
itemPath: itemPath,
|
|
21896
22242
|
handleClose: this.handleClose,
|
|
@@ -21908,7 +22254,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21908
22254
|
},
|
|
21909
22255
|
menu: {
|
|
21910
22256
|
request: function () {
|
|
21911
|
-
var _request = _asyncToGenerator(
|
|
22257
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21912
22258
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21913
22259
|
while (1) switch (_context.prev = _context.next) {
|
|
21914
22260
|
case 0:
|
|
@@ -22043,7 +22389,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22043
22389
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22044
22390
|
timeFormat = _this$props4.timeFormat,
|
|
22045
22391
|
transparentProps = _this$props4.transparentProps;
|
|
22046
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (
|
|
22392
|
+
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({
|
|
22047
22393
|
getDictionarySource: getDictionarySource,
|
|
22048
22394
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22049
22395
|
timeFormat: timeFormat
|
|
@@ -22067,12 +22413,12 @@ var index$5 = (function (props) {
|
|
|
22067
22413
|
});
|
|
22068
22414
|
|
|
22069
22415
|
// @ts-nocheck
|
|
22070
|
-
var
|
|
22416
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
22071
22417
|
var result = [];
|
|
22072
22418
|
columns.forEach(function (column) {
|
|
22073
22419
|
if (column.children) {
|
|
22074
22420
|
result.push(column);
|
|
22075
|
-
result.push.apply(result,
|
|
22421
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
22076
22422
|
} else {
|
|
22077
22423
|
result.push(column);
|
|
22078
22424
|
}
|
|
@@ -22081,7 +22427,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
22081
22427
|
};
|
|
22082
22428
|
var convertToRows = function convertToRows(originColumns) {
|
|
22083
22429
|
var maxLevel = 1;
|
|
22084
|
-
var
|
|
22430
|
+
var _traverse = function traverse(column, parent) {
|
|
22085
22431
|
if (parent) {
|
|
22086
22432
|
column.level = parent.level + 1;
|
|
22087
22433
|
if (maxLevel < column.level) {
|
|
@@ -22091,7 +22437,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22091
22437
|
if (column.children) {
|
|
22092
22438
|
var colSpan = 0;
|
|
22093
22439
|
column.children.forEach(function (subColumn) {
|
|
22094
|
-
|
|
22440
|
+
_traverse(subColumn, column);
|
|
22095
22441
|
colSpan += subColumn.colSpan;
|
|
22096
22442
|
});
|
|
22097
22443
|
column.colSpan = colSpan;
|
|
@@ -22101,13 +22447,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22101
22447
|
};
|
|
22102
22448
|
originColumns.forEach(function (column) {
|
|
22103
22449
|
column.level = 1;
|
|
22104
|
-
|
|
22450
|
+
_traverse(column);
|
|
22105
22451
|
});
|
|
22106
22452
|
var rows = [];
|
|
22107
22453
|
for (var i = 0; i < maxLevel; i++) {
|
|
22108
22454
|
rows.push([]);
|
|
22109
22455
|
}
|
|
22110
|
-
var allColumns =
|
|
22456
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22111
22457
|
allColumns.forEach(function (column) {
|
|
22112
22458
|
if (!column.children) {
|
|
22113
22459
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22147,7 +22493,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22147
22493
|
};
|
|
22148
22494
|
var headersToRows = function headersToRows(originColumns) {
|
|
22149
22495
|
var maxLevel = 1;
|
|
22150
|
-
var
|
|
22496
|
+
var _traverse2 = function traverse(column, parent) {
|
|
22151
22497
|
if (parent) {
|
|
22152
22498
|
//计算当前元素属于第几个层级
|
|
22153
22499
|
column.level = parent.level + 1;
|
|
@@ -22160,7 +22506,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22160
22506
|
var colSpan = 0;
|
|
22161
22507
|
column.children.forEach(function (subColumn) {
|
|
22162
22508
|
//进行递归
|
|
22163
|
-
|
|
22509
|
+
_traverse2(subColumn, column);
|
|
22164
22510
|
colSpan += subColumn.colSpan;
|
|
22165
22511
|
});
|
|
22166
22512
|
column.colSpan = colSpan;
|
|
@@ -22170,14 +22516,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22170
22516
|
};
|
|
22171
22517
|
originColumns.forEach(function (column) {
|
|
22172
22518
|
column.level = 1;
|
|
22173
|
-
|
|
22519
|
+
_traverse2(column);
|
|
22174
22520
|
});
|
|
22175
22521
|
var rows = [];
|
|
22176
22522
|
var lastData = [];
|
|
22177
22523
|
for (var i = 0; i < maxLevel; i++) {
|
|
22178
22524
|
rows.push([]);
|
|
22179
22525
|
}
|
|
22180
|
-
var allColumns =
|
|
22526
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22181
22527
|
allColumns.forEach(function (column) {
|
|
22182
22528
|
if (!column.children) {
|
|
22183
22529
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22606,10 +22952,10 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
22606
22952
|
}))))));
|
|
22607
22953
|
});
|
|
22608
22954
|
|
|
22609
|
-
var _excluded$
|
|
22955
|
+
var _excluded$k = ["children"];
|
|
22610
22956
|
var Drawer = (function (props) {
|
|
22611
22957
|
var children = props.children,
|
|
22612
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
22958
|
+
restProps = _objectWithoutProperties(props, _excluded$k);
|
|
22613
22959
|
return /*#__PURE__*/React$1.createElement(Drawer$1, _objectSpread2({
|
|
22614
22960
|
mask: true,
|
|
22615
22961
|
closable: false,
|
|
@@ -28194,7 +28540,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28194
28540
|
}
|
|
28195
28541
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28196
28542
|
};
|
|
28197
|
-
var
|
|
28543
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
28198
28544
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28199
28545
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28200
28546
|
var children = hightLightData.children,
|
|
@@ -28205,7 +28551,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28205
28551
|
lineEnd = _loc2[2];
|
|
28206
28552
|
if (children) {
|
|
28207
28553
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28208
|
-
return
|
|
28554
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
28209
28555
|
});
|
|
28210
28556
|
}
|
|
28211
28557
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28217,7 +28563,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28217
28563
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28218
28564
|
data.forEach(function (node) {
|
|
28219
28565
|
if (!node) return;
|
|
28220
|
-
node.toggled =
|
|
28566
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
28221
28567
|
node.active = isHightLight(node, highLightLine);
|
|
28222
28568
|
if (node.children) {
|
|
28223
28569
|
if (node.active) {
|
|
@@ -29648,7 +29994,7 @@ var valueType = {
|
|
|
29648
29994
|
};
|
|
29649
29995
|
|
|
29650
29996
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29651
|
-
var _ref = _asyncToGenerator(
|
|
29997
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29652
29998
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29653
29999
|
while (1) switch (_context.prev = _context.next) {
|
|
29654
30000
|
case 0:
|
|
@@ -29716,7 +30062,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29716
30062
|
value: false
|
|
29717
30063
|
}];
|
|
29718
30064
|
var ref = useRef();
|
|
29719
|
-
useMount(
|
|
30065
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29720
30066
|
var _ref$current, source;
|
|
29721
30067
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29722
30068
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29830,7 +30176,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29830
30176
|
source: {
|
|
29831
30177
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29832
30178
|
type: function () {
|
|
29833
|
-
var _type = _asyncToGenerator(
|
|
30179
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29834
30180
|
var form, values, name, relates, source;
|
|
29835
30181
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29836
30182
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30310,7 +30656,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30310
30656
|
source: {
|
|
30311
30657
|
relates: ['choiceType', 'inputType'],
|
|
30312
30658
|
type: function () {
|
|
30313
|
-
var _type2 = _asyncToGenerator(
|
|
30659
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30314
30660
|
var values, name, form, source;
|
|
30315
30661
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30316
30662
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30532,7 +30878,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30532
30878
|
width: 900,
|
|
30533
30879
|
maskClosable: false,
|
|
30534
30880
|
onOk: function () {
|
|
30535
|
-
var _onOk = _asyncToGenerator(
|
|
30881
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30536
30882
|
var _ref$current4, _res$editableStatus;
|
|
30537
30883
|
var res, _res$defaultValue;
|
|
30538
30884
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30604,7 +30950,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30604
30950
|
}()
|
|
30605
30951
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30606
30952
|
ref: ref
|
|
30607
|
-
})), maintainOptionsModal.visible && (
|
|
30953
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30608
30954
|
};
|
|
30609
30955
|
|
|
30610
30956
|
// @ts-nocheck
|
|
@@ -31218,7 +31564,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31218
31564
|
return setVisible(false);
|
|
31219
31565
|
},
|
|
31220
31566
|
className: 'customFieldsDrawer'
|
|
31221
|
-
}, detailTablesSetting.length == 0 && (
|
|
31567
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
31222
31568
|
style: {
|
|
31223
31569
|
display: 'flex'
|
|
31224
31570
|
}
|
|
@@ -31227,13 +31573,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31227
31573
|
flex: 1,
|
|
31228
31574
|
width: 500
|
|
31229
31575
|
}
|
|
31230
|
-
}, isEmpty(moduleParams) ? (
|
|
31576
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31231
31577
|
style: {
|
|
31232
31578
|
padding: "10px 0",
|
|
31233
31579
|
fontSize: "16px",
|
|
31234
31580
|
fontWeight: "bolder"
|
|
31235
31581
|
}
|
|
31236
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
31582
|
+
}, "\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", {
|
|
31237
31583
|
style: {
|
|
31238
31584
|
flex: 1
|
|
31239
31585
|
}
|
|
@@ -31242,7 +31588,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31242
31588
|
onRun: onClickRun,
|
|
31243
31589
|
value: jsonEditorVal,
|
|
31244
31590
|
shallowHeight: height
|
|
31245
|
-
})))), detailTablesSetting.length > 0 && (
|
|
31591
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
31246
31592
|
defaultActiveKey: activeKey,
|
|
31247
31593
|
onChange: function onChange(v) {
|
|
31248
31594
|
return setActiveKey(v);
|
|
@@ -31259,13 +31605,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31259
31605
|
flex: 1,
|
|
31260
31606
|
width: 500
|
|
31261
31607
|
}
|
|
31262
|
-
}, isEmpty(moduleParams) ? (
|
|
31608
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31263
31609
|
style: {
|
|
31264
31610
|
padding: "10px 0",
|
|
31265
31611
|
fontSize: "16px",
|
|
31266
31612
|
fontWeight: "bolder"
|
|
31267
31613
|
}
|
|
31268
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
31614
|
+
}, "\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", {
|
|
31269
31615
|
style: {
|
|
31270
31616
|
flex: 1
|
|
31271
31617
|
}
|
|
@@ -31287,13 +31633,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31287
31633
|
flex: 1,
|
|
31288
31634
|
width: 500
|
|
31289
31635
|
}
|
|
31290
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
31636
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31291
31637
|
style: {
|
|
31292
31638
|
padding: "10px 0",
|
|
31293
31639
|
fontSize: "16px",
|
|
31294
31640
|
fontWeight: "bolder"
|
|
31295
31641
|
}
|
|
31296
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
31642
|
+
}, "\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", {
|
|
31297
31643
|
style: {
|
|
31298
31644
|
flex: 1
|
|
31299
31645
|
}
|
|
@@ -31388,7 +31734,7 @@ var formatListName = function formatListName(list, columns) {
|
|
|
31388
31734
|
});
|
|
31389
31735
|
};
|
|
31390
31736
|
|
|
31391
|
-
var _excluded$
|
|
31737
|
+
var _excluded$l = ["sorter"];
|
|
31392
31738
|
/**
|
|
31393
31739
|
* 删掉查询条件的qp- 和 -eq等
|
|
31394
31740
|
* @param {object} data
|
|
@@ -31439,7 +31785,7 @@ function getMetaData(_x) {
|
|
|
31439
31785
|
|
|
31440
31786
|
// 获取数据
|
|
31441
31787
|
function _getMetaData() {
|
|
31442
|
-
_getMetaData = _asyncToGenerator(
|
|
31788
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31443
31789
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31444
31790
|
while (1) switch (_context.prev = _context.next) {
|
|
31445
31791
|
case 0:
|
|
@@ -31471,7 +31817,7 @@ var remoteFetch = function remoteFetch(requestConfig, coloumns) {
|
|
|
31471
31817
|
var _requestConfig$method;
|
|
31472
31818
|
var params = _ref.params;
|
|
31473
31819
|
var sorter = params.sorter,
|
|
31474
|
-
paramsTemp = _objectWithoutProperties(params, _excluded$
|
|
31820
|
+
paramsTemp = _objectWithoutProperties(params, _excluded$l);
|
|
31475
31821
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, requestConfig.params), requestConfig.body), _.omit(paramsTemp, ['filters', 'current'])), (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.filters) || {}), {
|
|
31476
31822
|
currentPage: (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.currentPage) || paramsTemp.current || 1
|
|
31477
31823
|
});
|
|
@@ -31661,7 +32007,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31661
32007
|
tableState = _useState4[0],
|
|
31662
32008
|
setTableState = _useState4[1];
|
|
31663
32009
|
var handleOpen = /*#__PURE__*/function () {
|
|
31664
|
-
var _ref = _asyncToGenerator(
|
|
32010
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31665
32011
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31666
32012
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31667
32013
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31980,7 +32326,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31980
32326
|
destroyOnClose: true
|
|
31981
32327
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
31982
32328
|
ref: queryTableRef
|
|
31983
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
32329
|
+
}, 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, {
|
|
31984
32330
|
justify: "center",
|
|
31985
32331
|
style: {
|
|
31986
32332
|
marginBottom: 30,
|
|
@@ -32096,7 +32442,7 @@ var CustomSelector = (function (props) {
|
|
|
32096
32442
|
var _props$ctx7;
|
|
32097
32443
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32098
32444
|
}
|
|
32099
|
-
})), showType === 'modalTable' && (
|
|
32445
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
32100
32446
|
type: "primary",
|
|
32101
32447
|
style: {
|
|
32102
32448
|
width: '30px',
|
|
@@ -32182,7 +32528,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32182
32528
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32183
32529
|
handSource = _useState2[0],
|
|
32184
32530
|
setHandSource = _useState2[1];
|
|
32185
|
-
useEffect(
|
|
32531
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32186
32532
|
var resData, data;
|
|
32187
32533
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32188
32534
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32334,7 +32680,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32334
32680
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32335
32681
|
}
|
|
32336
32682
|
function _getRegularThresholdRange() {
|
|
32337
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
32683
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32338
32684
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32339
32685
|
while (1) switch (_context.prev = _context.next) {
|
|
32340
32686
|
case 0:
|
|
@@ -32488,7 +32834,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32488
32834
|
};
|
|
32489
32835
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32490
32836
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32491
|
-
var _ref = _asyncToGenerator(
|
|
32837
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32492
32838
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32493
32839
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32494
32840
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33445,7 +33791,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33445
33791
|
isAll: true,
|
|
33446
33792
|
needNameAndCode: true,
|
|
33447
33793
|
notChangeOnSelect: true,
|
|
33448
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33794
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33449
33795
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33450
33796
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33451
33797
|
case 0:
|
|
@@ -33494,7 +33840,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33494
33840
|
isAll: true,
|
|
33495
33841
|
needNameAndCode: true,
|
|
33496
33842
|
notChangeOnSelect: true,
|
|
33497
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33843
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33498
33844
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33499
33845
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33500
33846
|
case 0:
|
|
@@ -33545,7 +33891,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33545
33891
|
isAll: true,
|
|
33546
33892
|
needNameAndCode: true,
|
|
33547
33893
|
notChangeOnSelect: true,
|
|
33548
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33894
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33549
33895
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33550
33896
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33551
33897
|
case 0:
|
|
@@ -35523,7 +35869,7 @@ var App$1 = function App(_ref) {
|
|
|
35523
35869
|
borderRadius: '5px',
|
|
35524
35870
|
cursor: 'pointer'
|
|
35525
35871
|
}
|
|
35526
|
-
}, isStaticNumber ? (
|
|
35872
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35527
35873
|
autoFocus: true,
|
|
35528
35874
|
onClick: function onClick(e) {
|
|
35529
35875
|
return e.stopPropagation();
|
|
@@ -35810,7 +36156,7 @@ function RenderCompItem(props) {
|
|
|
35810
36156
|
dictData = _useState2[0],
|
|
35811
36157
|
setDictData = _useState2[1];
|
|
35812
36158
|
var getDictData = /*#__PURE__*/function () {
|
|
35813
|
-
var _ref = _asyncToGenerator(
|
|
36159
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35814
36160
|
var _data$map;
|
|
35815
36161
|
var data;
|
|
35816
36162
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35852,7 +36198,7 @@ function RenderCompItem(props) {
|
|
|
35852
36198
|
var style2 = {
|
|
35853
36199
|
width: '100px'
|
|
35854
36200
|
};
|
|
35855
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (
|
|
36201
|
+
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, {
|
|
35856
36202
|
disabled: disabled,
|
|
35857
36203
|
allowClear: true,
|
|
35858
36204
|
onClear: function onClear() {
|
|
@@ -35863,7 +36209,7 @@ function RenderCompItem(props) {
|
|
|
35863
36209
|
onBlur: function onBlur(e) {
|
|
35864
36210
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35865
36211
|
}
|
|
35866
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (
|
|
36212
|
+
})) || 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, {
|
|
35867
36213
|
disabled: disabled,
|
|
35868
36214
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35869
36215
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35876,7 +36222,7 @@ function RenderCompItem(props) {
|
|
|
35876
36222
|
onChange: function onChange(value) {
|
|
35877
36223
|
handleEdit(ites.code, value);
|
|
35878
36224
|
}
|
|
35879
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (
|
|
36225
|
+
})) || 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, {
|
|
35880
36226
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35881
36227
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35882
36228
|
disabled: disabled,
|
|
@@ -35886,7 +36232,7 @@ function RenderCompItem(props) {
|
|
|
35886
36232
|
onChange: function onChange(value, dateString) {
|
|
35887
36233
|
handleEdit(ites.code, dateString);
|
|
35888
36234
|
}
|
|
35889
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
36235
|
+
})) || 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, {
|
|
35890
36236
|
showTime: true,
|
|
35891
36237
|
disabled: disabled,
|
|
35892
36238
|
defaultValue: ites.defaultValue,
|
|
@@ -35895,7 +36241,7 @@ function RenderCompItem(props) {
|
|
|
35895
36241
|
onChange: function onChange(value, timeString) {
|
|
35896
36242
|
handleEdit(ites.code, timeString);
|
|
35897
36243
|
}
|
|
35898
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
36244
|
+
})) || 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, {
|
|
35899
36245
|
disabled: disabled,
|
|
35900
36246
|
defaultChecked: !!ites.defaultValue,
|
|
35901
36247
|
style: style2,
|
|
@@ -35903,7 +36249,7 @@ function RenderCompItem(props) {
|
|
|
35903
36249
|
onChange: function onChange(value) {
|
|
35904
36250
|
handleEdit(ites.code, value);
|
|
35905
36251
|
}
|
|
35906
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (
|
|
36252
|
+
})) || 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({
|
|
35907
36253
|
disabled: disabled,
|
|
35908
36254
|
allowClear: true,
|
|
35909
36255
|
showArrow: true
|
|
@@ -35921,7 +36267,7 @@ function RenderCompItem(props) {
|
|
|
35921
36267
|
key: it,
|
|
35922
36268
|
value: it
|
|
35923
36269
|
}, ites.enumeration[it]);
|
|
35924
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (
|
|
36270
|
+
}))) || 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, {
|
|
35925
36271
|
disabled: disabled,
|
|
35926
36272
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35927
36273
|
defaultValue: ites.defaultValue,
|
|
@@ -35931,7 +36277,7 @@ function RenderCompItem(props) {
|
|
|
35931
36277
|
handleEdit(ites.code, value);
|
|
35932
36278
|
},
|
|
35933
36279
|
dictionaryCode: ites.dictionaryCode
|
|
35934
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (
|
|
36280
|
+
})) || 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, {
|
|
35935
36281
|
selectBusinessType: "physicalWarehouse",
|
|
35936
36282
|
selectProps: _objectSpread2({
|
|
35937
36283
|
style: styleCommon,
|
|
@@ -35953,7 +36299,7 @@ function RenderCompItem(props) {
|
|
|
35953
36299
|
getPopupContainer: function getPopupContainer() {
|
|
35954
36300
|
return document.body;
|
|
35955
36301
|
}
|
|
35956
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (
|
|
36302
|
+
})) || 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, {
|
|
35957
36303
|
selectBusinessType: "realWarehouse",
|
|
35958
36304
|
selectProps: _objectSpread2({
|
|
35959
36305
|
style: styleCommon,
|
|
@@ -35975,7 +36321,7 @@ function RenderCompItem(props) {
|
|
|
35975
36321
|
getPopupContainer: function getPopupContainer() {
|
|
35976
36322
|
return document.body;
|
|
35977
36323
|
}
|
|
35978
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (
|
|
36324
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35979
36325
|
selectBusinessType: "virtualWarehouse",
|
|
35980
36326
|
selectProps: _objectSpread2({
|
|
35981
36327
|
style: styleCommon,
|
|
@@ -35997,7 +36343,7 @@ function RenderCompItem(props) {
|
|
|
35997
36343
|
getPopupContainer: function getPopupContainer() {
|
|
35998
36344
|
return document.body;
|
|
35999
36345
|
}
|
|
36000
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (
|
|
36346
|
+
})) || 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, {
|
|
36001
36347
|
selectBusinessType: "channelWarehouse",
|
|
36002
36348
|
selectProps: _objectSpread2({
|
|
36003
36349
|
style: styleCommon,
|
|
@@ -36019,7 +36365,7 @@ function RenderCompItem(props) {
|
|
|
36019
36365
|
getPopupContainer: function getPopupContainer() {
|
|
36020
36366
|
return document.body;
|
|
36021
36367
|
}
|
|
36022
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (
|
|
36368
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36023
36369
|
selectBusinessType: "spuCommodity",
|
|
36024
36370
|
selectProps: _objectSpread2({
|
|
36025
36371
|
style: styleCommon,
|
|
@@ -36040,7 +36386,7 @@ function RenderCompItem(props) {
|
|
|
36040
36386
|
getPopupContainer: function getPopupContainer() {
|
|
36041
36387
|
return document.body;
|
|
36042
36388
|
}
|
|
36043
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (
|
|
36389
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36044
36390
|
selectBusinessType: "skuCommodity",
|
|
36045
36391
|
selectProps: _objectSpread2({
|
|
36046
36392
|
style: styleCommon,
|
|
@@ -36061,13 +36407,13 @@ function RenderCompItem(props) {
|
|
|
36061
36407
|
getPopupContainer: function getPopupContainer() {
|
|
36062
36408
|
return document.body;
|
|
36063
36409
|
}
|
|
36064
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (
|
|
36410
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React$1.createElement(BsCascader, {
|
|
36065
36411
|
disabled: disabled,
|
|
36066
36412
|
isAll: true,
|
|
36067
36413
|
needNameAndCode: true,
|
|
36068
36414
|
notChangeOnSelect: true,
|
|
36069
36415
|
initRequestSource: function () {
|
|
36070
|
-
var _initRequestSource = _asyncToGenerator(
|
|
36416
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36071
36417
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36072
36418
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36073
36419
|
case 0:
|
|
@@ -36109,7 +36455,7 @@ function RenderCompItem(props) {
|
|
|
36109
36455
|
getPopupContainer: function getPopupContainer() {
|
|
36110
36456
|
return document.body;
|
|
36111
36457
|
}
|
|
36112
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (
|
|
36458
|
+
})) || 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, {
|
|
36113
36459
|
disabled: disabled,
|
|
36114
36460
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36115
36461
|
businessType: "department",
|
|
@@ -36122,7 +36468,7 @@ function RenderCompItem(props) {
|
|
|
36122
36468
|
getPopupContainer: function getPopupContainer() {
|
|
36123
36469
|
return document.body;
|
|
36124
36470
|
}
|
|
36125
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (
|
|
36471
|
+
})) || 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, {
|
|
36126
36472
|
disabled: disabled,
|
|
36127
36473
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36128
36474
|
businessType: "purchase-organization",
|
|
@@ -36135,7 +36481,7 @@ function RenderCompItem(props) {
|
|
|
36135
36481
|
getPopupContainer: function getPopupContainer() {
|
|
36136
36482
|
return document.body;
|
|
36137
36483
|
}
|
|
36138
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (
|
|
36484
|
+
})) || 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, {
|
|
36139
36485
|
disabled: disabled,
|
|
36140
36486
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36141
36487
|
businessType: "sales-organization",
|
|
@@ -36148,7 +36494,7 @@ function RenderCompItem(props) {
|
|
|
36148
36494
|
getPopupContainer: function getPopupContainer() {
|
|
36149
36495
|
return document.body;
|
|
36150
36496
|
}
|
|
36151
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (
|
|
36497
|
+
})) || 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, {
|
|
36152
36498
|
selectBusinessType: "supplier2",
|
|
36153
36499
|
selectProps: _objectSpread2({
|
|
36154
36500
|
style: styleCommon,
|
|
@@ -36169,7 +36515,7 @@ function RenderCompItem(props) {
|
|
|
36169
36515
|
getPopupContainer: function getPopupContainer() {
|
|
36170
36516
|
return document.body;
|
|
36171
36517
|
}
|
|
36172
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (
|
|
36518
|
+
})) || 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, {
|
|
36173
36519
|
selectBusinessType: "customer2",
|
|
36174
36520
|
selectProps: _objectSpread2({
|
|
36175
36521
|
style: styleCommon,
|
|
@@ -36190,7 +36536,7 @@ function RenderCompItem(props) {
|
|
|
36190
36536
|
getPopupContainer: function getPopupContainer() {
|
|
36191
36537
|
return document.body;
|
|
36192
36538
|
}
|
|
36193
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (
|
|
36539
|
+
})) || 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, {
|
|
36194
36540
|
selectBusinessType: "shopFile2",
|
|
36195
36541
|
selectProps: _objectSpread2({
|
|
36196
36542
|
style: styleCommon,
|
|
@@ -36211,7 +36557,7 @@ function RenderCompItem(props) {
|
|
|
36211
36557
|
getPopupContainer: function getPopupContainer() {
|
|
36212
36558
|
return document.body;
|
|
36213
36559
|
}
|
|
36214
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (
|
|
36560
|
+
})) || 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, {
|
|
36215
36561
|
selectBusinessType: "employee2",
|
|
36216
36562
|
selectProps: _objectSpread2({
|
|
36217
36563
|
style: styleCommon,
|
|
@@ -36232,7 +36578,7 @@ function RenderCompItem(props) {
|
|
|
36232
36578
|
getPopupContainer: function getPopupContainer() {
|
|
36233
36579
|
return document.body;
|
|
36234
36580
|
}
|
|
36235
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (
|
|
36581
|
+
})) || 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, {
|
|
36236
36582
|
disabled: disabled,
|
|
36237
36583
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36238
36584
|
businessType: "stock-organization",
|
|
@@ -36245,7 +36591,7 @@ function RenderCompItem(props) {
|
|
|
36245
36591
|
getPopupContainer: function getPopupContainer() {
|
|
36246
36592
|
return document.body;
|
|
36247
36593
|
}
|
|
36248
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (
|
|
36594
|
+
})) || 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, {
|
|
36249
36595
|
disabled: disabled,
|
|
36250
36596
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36251
36597
|
businessType: "settle-organization",
|
|
@@ -36258,7 +36604,7 @@ function RenderCompItem(props) {
|
|
|
36258
36604
|
getPopupContainer: function getPopupContainer() {
|
|
36259
36605
|
return document.body;
|
|
36260
36606
|
}
|
|
36261
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (
|
|
36607
|
+
})) || 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, {
|
|
36262
36608
|
selectBusinessType: "deliveryMode",
|
|
36263
36609
|
selectProps: _objectSpread2({
|
|
36264
36610
|
style: styleCommon,
|
|
@@ -36279,7 +36625,7 @@ function RenderCompItem(props) {
|
|
|
36279
36625
|
getPopupContainer: function getPopupContainer() {
|
|
36280
36626
|
return document.body;
|
|
36281
36627
|
}
|
|
36282
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (
|
|
36628
|
+
})) || 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, {
|
|
36283
36629
|
selectBusinessType: "role",
|
|
36284
36630
|
selectProps: _objectSpread2({
|
|
36285
36631
|
style: styleCommon,
|
|
@@ -36300,7 +36646,7 @@ function RenderCompItem(props) {
|
|
|
36300
36646
|
getPopupContainer: function getPopupContainer() {
|
|
36301
36647
|
return document.body;
|
|
36302
36648
|
}
|
|
36303
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (
|
|
36649
|
+
})) || 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, {
|
|
36304
36650
|
selectBusinessType: "brand",
|
|
36305
36651
|
selectProps: _objectSpread2({
|
|
36306
36652
|
style: styleCommon,
|
|
@@ -36321,7 +36667,7 @@ function RenderCompItem(props) {
|
|
|
36321
36667
|
getPopupContainer: function getPopupContainer() {
|
|
36322
36668
|
return document.body;
|
|
36323
36669
|
}
|
|
36324
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (
|
|
36670
|
+
})) || 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, {
|
|
36325
36671
|
disabled: disabled,
|
|
36326
36672
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36327
36673
|
businessType: "background-category",
|
|
@@ -36334,7 +36680,7 @@ function RenderCompItem(props) {
|
|
|
36334
36680
|
getPopupContainer: function getPopupContainer() {
|
|
36335
36681
|
return document.body;
|
|
36336
36682
|
}
|
|
36337
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (
|
|
36683
|
+
})) || 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, {
|
|
36338
36684
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36339
36685
|
style: styleCommon,
|
|
36340
36686
|
placeholder: '请选择'
|
|
@@ -36357,7 +36703,7 @@ function RenderCompItem(props) {
|
|
|
36357
36703
|
onChange: function onChange(value) {
|
|
36358
36704
|
handleEdit(ites.code, value);
|
|
36359
36705
|
}
|
|
36360
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
36706
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36361
36707
|
style: {
|
|
36362
36708
|
display: 'flex'
|
|
36363
36709
|
}
|
|
@@ -36869,7 +37215,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36869
37215
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36870
37216
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36871
37217
|
}
|
|
36872
|
-
var parallelTreeData =
|
|
37218
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
36873
37219
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36874
37220
|
var _i$key;
|
|
36875
37221
|
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);
|
|
@@ -37796,13 +38142,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37796
38142
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37797
38143
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37798
38144
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37799
|
-
var list =
|
|
38145
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37800
38146
|
var requiredList = list.filter(function (c) {
|
|
37801
38147
|
return c.required == 1;
|
|
37802
38148
|
}) || []; // 获取对象属性为true的集合
|
|
37803
38149
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37804
38150
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37805
|
-
var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ?
|
|
38151
|
+
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];
|
|
37806
38152
|
(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) {
|
|
37807
38153
|
if (requiredList.some(function (r) {
|
|
37808
38154
|
return r.id === e.elementId;
|
|
@@ -38391,7 +38737,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38391
38737
|
style: {
|
|
38392
38738
|
float: 'right'
|
|
38393
38739
|
}
|
|
38394
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (
|
|
38740
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38395
38741
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38396
38742
|
ruleGroupInfo: {
|
|
38397
38743
|
ruleGroupList: ruleGroupList,
|
|
@@ -38409,7 +38755,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38409
38755
|
callBack: function callBack(newData) {
|
|
38410
38756
|
upDateData(newData);
|
|
38411
38757
|
}
|
|
38412
|
-
}))) : (
|
|
38758
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38413
38759
|
style: {
|
|
38414
38760
|
padding: 20
|
|
38415
38761
|
}
|
|
@@ -38639,14 +38985,14 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38639
38985
|
var css_248z$y = ".bs-collapse-wrap {\n border-radius: 4px;\n overflow: hidden;\n}\n.bs-collapse-wrap .bs-collapse-header-wrap {\n background: #fff;\n}\n.bs-collapse-wrap .bs-collapse-icon {\n color: #b6b6b6;\n transition: transform 0.3s;\n}\n.bs-collapse-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.bs-collapse-wrap .bs-collapse-header-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n}\n.bs-collapse-wrap .bs-collapse-header-divider {\n width: 3px;\n height: 20px;\n background: #005cff;\n}\n.bs-collapse-header-boder .ant-collapse .ant-collapse-item > .ant-collapse-header {\n border-bottom: 1px solid #f0f0f0;\n padding: 8px 16px;\n}\n";
|
|
38640
38986
|
styleInject(css_248z$y);
|
|
38641
38987
|
|
|
38642
|
-
var _excluded$
|
|
38988
|
+
var _excluded$m = ["titleExtra", "header", "showArrow"];
|
|
38643
38989
|
var Panel = Collapse.Panel;
|
|
38644
38990
|
var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
38645
38991
|
var titleExtra = _ref.titleExtra,
|
|
38646
38992
|
header = _ref.header,
|
|
38647
38993
|
_ref$showArrow = _ref.showArrow,
|
|
38648
38994
|
showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
|
|
38649
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38995
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
38650
38996
|
var renderHeader = function renderHeader() {
|
|
38651
38997
|
return /*#__PURE__*/React$1.createElement(Space, {
|
|
38652
38998
|
align: "center"
|
|
@@ -38670,11 +39016,11 @@ var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
|
38670
39016
|
}), props.children);
|
|
38671
39017
|
};
|
|
38672
39018
|
|
|
38673
|
-
var _excluded$
|
|
39019
|
+
var _excluded$n = ["children", "bordered"];
|
|
38674
39020
|
var ExtendedCollapse = function ExtendedCollapse(props) {
|
|
38675
39021
|
var children = props.children,
|
|
38676
39022
|
bordered = props.bordered,
|
|
38677
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
39023
|
+
restProps = _objectWithoutProperties(props, _excluded$n);
|
|
38678
39024
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
38679
39025
|
className: classNames({
|
|
38680
39026
|
'bs-collapse-wrap': true,
|
|
@@ -38784,4 +39130,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
38784
39130
|
}, children));
|
|
38785
39131
|
};
|
|
38786
39132
|
|
|
38787
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|
|
39133
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel 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 };
|