@bit-sun/business-component 2.2.26 → 2.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -16
- package/.fatherrc.ts +5 -5
- package/.gitlab-ci.yml +179 -179
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -74
- package/README.md +27 -27
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/index.d.ts +2 -2
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +2 -2
- package/dist/index.esm.js +97 -103
- package/dist/index.js +104 -110
- package/dist/utils/TableUtils.d.ts +2 -2
- package/docs/index.md +21 -21
- package/lib/assets/drag.svg +17 -17
- package/lib/assets/exportFail.svg +37 -37
- package/lib/assets/exportProcessing.svg +28 -28
- package/lib/assets/exportSuccess.svg +34 -34
- package/lib/assets/label_icon_bottom.svg +25 -25
- package/lib/assets/upExport.svg +22 -22
- package/package.json +1 -1
- package/src/assets/32.svg +27 -27
- package/src/assets/addIcon.svg +17 -17
- package/src/assets/allfunc.svg +27 -27
- package/src/assets/arrowRight.svg +24 -24
- package/src/assets/btn-delete.svg +29 -29
- package/src/assets/btn-edit.svg +19 -19
- package/src/assets/btn-more.svg +17 -17
- package/src/assets/btn-submit.svg +19 -19
- package/src/assets/caidan.svg +11 -11
- package/src/assets/close.svg +26 -26
- package/src/assets/drag.svg +17 -17
- package/src/assets/exportFail.svg +37 -37
- package/src/assets/exportProcessing.svg +28 -28
- package/src/assets/exportSuccess.svg +34 -34
- package/src/assets/fixed-left-active.svg +11 -11
- package/src/assets/fixed-left.svg +15 -15
- package/src/assets/fixed-right-active.svg +11 -11
- package/src/assets/fixed-right.svg +15 -15
- package/src/assets/guanbi.svg +15 -15
- package/src/assets/icon-quanping.svg +15 -15
- package/src/assets/icon-shezhi.svg +17 -17
- package/src/assets/label_icon_bottom.svg +25 -25
- package/src/assets/list-no-img.svg +21 -21
- package/src/assets/morentouxiang-32.svg +23 -23
- package/src/assets/scanning.svg +24 -24
- package/src/assets/upExport.svg +22 -22
- package/src/components/Business/AddSelectBusiness/index.md +161 -161
- package/src/components/Business/AddSelectBusiness/index.tsx +859 -859
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
- package/src/components/Business/BsLayouts/index.less +79 -79
- package/src/components/Business/BsLayouts/index.tsx +1480 -1480
- package/src/components/Business/BsLayouts/service.ts +10 -10
- package/src/components/Business/BsLayouts/utils.tsx +203 -203
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +538 -538
- package/src/components/Business/BsSulaQueryTable/index.less +219 -219
- package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
- package/src/components/Business/BsSulaQueryTable/setting.tsx +802 -802
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
- package/src/components/Business/CommodityEntry/index.md +70 -70
- package/src/components/Business/CommodityEntry/index.tsx +80 -80
- package/src/components/Business/CommonAlert/index.tsx +23 -23
- package/src/components/Business/CommonGuideWrapper/index.less +111 -111
- package/src/components/Business/CommonGuideWrapper/index.md +39 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
- package/src/components/Business/DetailPageWrapper/index.less +79 -79
- package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
- package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
- package/src/components/Business/HomePageWrapper/index.less +33 -33
- package/src/components/Business/HomePageWrapper/index.md +45 -45
- package/src/components/Business/HomePageWrapper/index.tsx +162 -162
- package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
- package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +201 -201
- package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
- package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
- package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
- package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
- package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
- package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
- package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
- package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
- package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
- package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
- package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
- package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
- package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
- package/src/components/Business/JsonQueryTable/function.ts +62 -62
- package/src/components/Business/JsonQueryTable/index.less +16 -16
- package/src/components/Business/JsonQueryTable/index.md +328 -328
- package/src/components/Business/JsonQueryTable/index.tsx +320 -320
- package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
- package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
- package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
- package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
- package/src/components/Business/JsonQueryTable/static.ts +390 -390
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1730 -1730
- package/src/components/Business/SearchSelect/common.ts +53 -53
- package/src/components/Business/SearchSelect/index.md +1310 -1310
- package/src/components/Business/SearchSelect/index.tsx +51 -51
- package/src/components/Business/SearchSelect/utils.ts +100 -100
- package/src/components/Business/StateFlow/index.less +130 -130
- package/src/components/Business/StateFlow/index.md +60 -60
- package/src/components/Business/StateFlow/index.tsx +29 -29
- package/src/components/Business/TreeSearchSelect/index.md +154 -154
- package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
- package/src/components/Business/TreeSearchSelect/utils.ts +69 -69
- package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
- package/src/components/Business/columnSettingTable/index.less +247 -247
- package/src/components/Business/columnSettingTable/index.md +357 -357
- package/src/components/Business/columnSettingTable/index.tsx +232 -232
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
- package/src/components/Business/columnSettingTable/utils.tsx +68 -68
- package/src/components/Business/moreTreeTable/index.less +99 -99
- package/src/components/Business/moreTreeTable/index.md +448 -448
- package/src/components/Business/moreTreeTable/index.tsx +361 -361
- package/src/components/Business/moreTreeTable/utils.ts +126 -126
- package/src/components/Functional/AddSelect/index.less +367 -367
- package/src/components/Functional/AddSelect/index.md +155 -155
- package/src/components/Functional/AddSelect/index.tsx +1263 -1249
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +39 -39
- package/src/components/Functional/BillEntry/index.tsx +766 -766
- package/src/components/Functional/DataImport/index.less +63 -63
- package/src/components/Functional/DataImport/index.md +44 -44
- package/src/components/Functional/DataImport/index.tsx +695 -695
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +39 -39
- package/src/components/Functional/DataValidation/index.tsx +687 -687
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
- package/src/components/Functional/QueryMutipleInput/index.less +37 -37
- package/src/components/Functional/QueryMutipleInput/index.md +33 -33
- package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
- package/src/components/Functional/SearchSelect/index.less +115 -115
- package/src/components/Functional/SearchSelect/index.md +141 -141
- package/src/components/Functional/SearchSelect/index.tsx +846 -846
- package/src/components/Functional/SearchSelect/utils.ts +3 -3
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +162 -162
- package/src/index.ts +34 -34
- package/src/plugin/TableColumnSetting/index.less +247 -247
- package/src/plugin/TableColumnSetting/index.md +50 -50
- package/src/plugin/TableColumnSetting/index.tsx +724 -724
- package/src/plugin/TableColumnSetting/utils.ts +19 -19
- package/src/styles/bsDefault.less +1912 -1912
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/LocalstorageUtils.ts +90 -90
- package/src/utils/TableUtils.tsx +18 -18
- package/src/utils/checkUtils.ts +39 -39
- package/src/utils/enumConfig.ts +11 -11
- package/src/utils/getFormMode.js +12 -12
- package/src/utils/index.ts +3 -3
- package/src/utils/requestUtils.ts +34 -34
- package/src/utils/serialize.js +7 -7
- package/src/utils/utils.ts +183 -183
- package/tsconfig.json +29 -29
- package/typings.d.ts +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './home.less';
|
|
3
|
-
export type SiderTheme = 'light' | 'dark';
|
|
4
|
-
export type GlobalHeaderRightProps = {
|
|
3
|
+
export declare type SiderTheme = 'light' | 'dark';
|
|
4
|
+
export declare type GlobalHeaderRightProps = {
|
|
5
5
|
menu?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const GlobalHeaderRight: React.FC<GlobalHeaderRightProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
|
-
export type SiderTheme = 'light' | 'dark';
|
|
4
|
-
export type GlobalHeaderRightProps = {
|
|
3
|
+
export declare type SiderTheme = 'light' | 'dark';
|
|
4
|
+
export declare type GlobalHeaderRightProps = {
|
|
5
5
|
menu?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const AllFunc: React.FC<GlobalHeaderRightProps>;
|
|
@@ -2,14 +2,14 @@ import type { MenuDataItem, BasicLayoutProps as ProLayoutProps, Settings } from
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import './index.less';
|
|
4
4
|
export declare const RouterContext: React.Context<{}>;
|
|
5
|
-
export type BasicLayoutProps = {
|
|
5
|
+
export declare type BasicLayoutProps = {
|
|
6
6
|
breadcrumbNameMap: Record<string, MenuDataItem>;
|
|
7
7
|
route: ProLayoutProps['route'] & {
|
|
8
8
|
authority: string[];
|
|
9
9
|
};
|
|
10
10
|
settings: Settings;
|
|
11
11
|
} & ProLayoutProps;
|
|
12
|
-
export type BasicLayoutContext = {
|
|
12
|
+
export declare type BasicLayoutContext = {
|
|
13
13
|
[K in 'location']: BasicLayoutProps[K];
|
|
14
14
|
} & {
|
|
15
15
|
breadcrumbNameMap: Record<string, MenuDataItem>;
|
|
@@ -46,13 +46,13 @@ export declare const handleTextLineFeed: (text: string | undefined, width?: numb
|
|
|
46
46
|
export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
47
47
|
export declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
48
48
|
export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
49
|
-
type tableColumnsImageType = {
|
|
49
|
+
declare type tableColumnsImageType = {
|
|
50
50
|
width?: number | string;
|
|
51
51
|
height?: number | string;
|
|
52
52
|
[key: string]: any;
|
|
53
53
|
};
|
|
54
54
|
export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
|
|
55
|
-
type UserColumnsType = {
|
|
55
|
+
declare type UserColumnsType = {
|
|
56
56
|
name: string;
|
|
57
57
|
department?: string;
|
|
58
58
|
position?: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -10,7 +10,7 @@ import { Resizable } from 'react-resizable';
|
|
|
10
10
|
import { SortableHandle, SortableElement, SortableContainer } from 'react-sortable-hoc';
|
|
11
11
|
import { arrayMoveImmutable } from 'array-move';
|
|
12
12
|
import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
|
|
13
|
-
import isEqual
|
|
13
|
+
import isEqual from 'lodash/isEqual';
|
|
14
14
|
import { Table as Table$1, request as request$1, QueryTable, Form as Form$1 } from 'bssula';
|
|
15
15
|
import ProLayout from '@ant-design/pro-layout';
|
|
16
16
|
import cloneDeep from 'lodash/cloneDeep';
|
|
@@ -135,33 +135,6 @@ axios.interceptors.request.use(function (config) {
|
|
|
135
135
|
return config;
|
|
136
136
|
});
|
|
137
137
|
|
|
138
|
-
function _iterableToArrayLimit(arr, i) {
|
|
139
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
140
|
-
if (null != _i) {
|
|
141
|
-
var _s,
|
|
142
|
-
_e,
|
|
143
|
-
_x,
|
|
144
|
-
_r,
|
|
145
|
-
_arr = [],
|
|
146
|
-
_n = !0,
|
|
147
|
-
_d = !1;
|
|
148
|
-
try {
|
|
149
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
150
|
-
if (Object(_i) !== _i) return;
|
|
151
|
-
_n = !1;
|
|
152
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
153
|
-
} catch (err) {
|
|
154
|
-
_d = !0, _e = err;
|
|
155
|
-
} finally {
|
|
156
|
-
try {
|
|
157
|
-
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
158
|
-
} finally {
|
|
159
|
-
if (_d) throw _e;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
return _arr;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
138
|
function ownKeys(object, enumerableOnly) {
|
|
166
139
|
var keys = Object.keys(object);
|
|
167
140
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -318,9 +291,14 @@ function _regeneratorRuntime() {
|
|
|
318
291
|
};
|
|
319
292
|
}
|
|
320
293
|
function maybeInvokeDelegate(delegate, context) {
|
|
321
|
-
var
|
|
322
|
-
|
|
323
|
-
|
|
294
|
+
var method = delegate.iterator[context.method];
|
|
295
|
+
if (undefined === method) {
|
|
296
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
297
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
298
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
299
|
+
}
|
|
300
|
+
return ContinueSentinel;
|
|
301
|
+
}
|
|
324
302
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
325
303
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
326
304
|
var info = record.arg;
|
|
@@ -534,7 +512,7 @@ function _defineProperties(target, props) {
|
|
|
534
512
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
535
513
|
descriptor.configurable = true;
|
|
536
514
|
if ("value" in descriptor) descriptor.writable = true;
|
|
537
|
-
Object.defineProperty(target,
|
|
515
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
538
516
|
}
|
|
539
517
|
}
|
|
540
518
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -546,7 +524,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
546
524
|
return Constructor;
|
|
547
525
|
}
|
|
548
526
|
function _defineProperty(obj, key, value) {
|
|
549
|
-
key = _toPropertyKey(key);
|
|
550
527
|
if (key in obj) {
|
|
551
528
|
Object.defineProperty(obj, key, {
|
|
552
529
|
value: value,
|
|
@@ -675,6 +652,30 @@ function _arrayWithHoles(arr) {
|
|
|
675
652
|
function _iterableToArray(iter) {
|
|
676
653
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
677
654
|
}
|
|
655
|
+
function _iterableToArrayLimit(arr, i) {
|
|
656
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
657
|
+
if (_i == null) return;
|
|
658
|
+
var _arr = [];
|
|
659
|
+
var _n = true;
|
|
660
|
+
var _d = false;
|
|
661
|
+
var _s, _e;
|
|
662
|
+
try {
|
|
663
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
664
|
+
_arr.push(_s.value);
|
|
665
|
+
if (i && _arr.length === i) break;
|
|
666
|
+
}
|
|
667
|
+
} catch (err) {
|
|
668
|
+
_d = true;
|
|
669
|
+
_e = err;
|
|
670
|
+
} finally {
|
|
671
|
+
try {
|
|
672
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
673
|
+
} finally {
|
|
674
|
+
if (_d) throw _e;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
return _arr;
|
|
678
|
+
}
|
|
678
679
|
function _unsupportedIterableToArray(o, minLen) {
|
|
679
680
|
if (!o) return;
|
|
680
681
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -694,20 +695,6 @@ function _nonIterableSpread() {
|
|
|
694
695
|
function _nonIterableRest() {
|
|
695
696
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
696
697
|
}
|
|
697
|
-
function _toPrimitive(input, hint) {
|
|
698
|
-
if (typeof input !== "object" || input === null) return input;
|
|
699
|
-
var prim = input[Symbol.toPrimitive];
|
|
700
|
-
if (prim !== undefined) {
|
|
701
|
-
var res = prim.call(input, hint || "default");
|
|
702
|
-
if (typeof res !== "object") return res;
|
|
703
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
704
|
-
}
|
|
705
|
-
return (hint === "string" ? String : Number)(input);
|
|
706
|
-
}
|
|
707
|
-
function _toPropertyKey(arg) {
|
|
708
|
-
var key = _toPrimitive(arg, "string");
|
|
709
|
-
return typeof key === "symbol" ? key : String(key);
|
|
710
|
-
}
|
|
711
698
|
|
|
712
699
|
var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
|
|
713
700
|
var errorMessage = _objectSpread2({
|
|
@@ -3673,52 +3660,41 @@ var setInitialShowColumn = function setInitialShowColumn(tableCode, columns, cal
|
|
|
3673
3660
|
callback(showColumns);
|
|
3674
3661
|
};
|
|
3675
3662
|
|
|
3676
|
-
var
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
function
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3663
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
3664
|
+
return a === b;
|
|
3665
|
+
};
|
|
3666
|
+
|
|
3667
|
+
function index (resultFn, isEqual) {
|
|
3668
|
+
if (isEqual === void 0) {
|
|
3669
|
+
isEqual = simpleIsEqual;
|
|
3670
|
+
}
|
|
3671
|
+
|
|
3672
|
+
var lastThis;
|
|
3673
|
+
var lastArgs = [];
|
|
3674
|
+
var lastResult;
|
|
3675
|
+
var calledOnce = false;
|
|
3676
|
+
|
|
3677
|
+
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
3678
|
+
return isEqual(newArg, lastArgs[index], index);
|
|
3679
|
+
};
|
|
3680
|
+
|
|
3681
|
+
var result = function result() {
|
|
3682
|
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3683
|
+
newArgs[_key] = arguments[_key];
|
|
3697
3684
|
}
|
|
3698
|
-
return true;
|
|
3699
|
-
}
|
|
3700
3685
|
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
var lastThis;
|
|
3704
|
-
var lastArgs = [];
|
|
3705
|
-
var lastResult;
|
|
3706
|
-
var calledOnce = false;
|
|
3707
|
-
function memoized() {
|
|
3708
|
-
var newArgs = [];
|
|
3709
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3710
|
-
newArgs[_i] = arguments[_i];
|
|
3711
|
-
}
|
|
3712
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
3713
|
-
return lastResult;
|
|
3714
|
-
}
|
|
3715
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
3716
|
-
calledOnce = true;
|
|
3717
|
-
lastThis = this;
|
|
3718
|
-
lastArgs = newArgs;
|
|
3719
|
-
return lastResult;
|
|
3686
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
3687
|
+
return lastResult;
|
|
3720
3688
|
}
|
|
3721
|
-
|
|
3689
|
+
|
|
3690
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
3691
|
+
calledOnce = true;
|
|
3692
|
+
lastThis = this;
|
|
3693
|
+
lastArgs = newArgs;
|
|
3694
|
+
return lastResult;
|
|
3695
|
+
};
|
|
3696
|
+
|
|
3697
|
+
return result;
|
|
3722
3698
|
}
|
|
3723
3699
|
|
|
3724
3700
|
//! moment.js
|
|
@@ -9678,7 +9654,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
9678
9654
|
return item;
|
|
9679
9655
|
});
|
|
9680
9656
|
};
|
|
9681
|
-
var memoizeOneFormatter =
|
|
9657
|
+
var memoizeOneFormatter = index(formatter, isEqual);
|
|
9682
9658
|
var go2BackAndClose = function go2BackAndClose() {
|
|
9683
9659
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
9684
9660
|
history.goBack();
|
|
@@ -10218,6 +10194,20 @@ var AddSelect = function AddSelect(props) {
|
|
|
10218
10194
|
return _ref4.apply(this, arguments);
|
|
10219
10195
|
};
|
|
10220
10196
|
}();
|
|
10197
|
+
var setBusinessDefaultValue = function setBusinessDefaultValue(list, record) {
|
|
10198
|
+
var _record$colorValues;
|
|
10199
|
+
var result = list;
|
|
10200
|
+
if (businessType == 'spu' && (record === null || record === void 0 ? void 0 : (_record$colorValues = record.colorValues) === null || _record$colorValues === void 0 ? void 0 : _record$colorValues.length) == 1) {
|
|
10201
|
+
result = list.map(function (i) {
|
|
10202
|
+
if (i.uuid == (record === null || record === void 0 ? void 0 : record.uuid)) {
|
|
10203
|
+
var _record$colorValues$;
|
|
10204
|
+
i.colorName = (_record$colorValues$ = record.colorValues[0]) === null || _record$colorValues$ === void 0 ? void 0 : _record$colorValues$.value;
|
|
10205
|
+
}
|
|
10206
|
+
return i;
|
|
10207
|
+
});
|
|
10208
|
+
}
|
|
10209
|
+
return result;
|
|
10210
|
+
};
|
|
10221
10211
|
useEffect(function () {
|
|
10222
10212
|
setTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns);
|
|
10223
10213
|
}, [modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns]);
|
|
@@ -10821,12 +10811,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
10821
10811
|
}
|
|
10822
10812
|
}
|
|
10823
10813
|
if (isAllowRepeatedSelect) {
|
|
10814
|
+
var newUuid = uuid();
|
|
10824
10815
|
var list = popvalue.concat(selectRows).map(function (i) {
|
|
10825
10816
|
return _objectSpread2(_objectSpread2({}, i), {}, {
|
|
10826
|
-
uuid: i.uuid ||
|
|
10817
|
+
uuid: i.uuid || newUuid
|
|
10827
10818
|
});
|
|
10828
10819
|
});
|
|
10829
|
-
|
|
10820
|
+
var recordItem = _objectSpread2(_objectSpread2({}, selectRows[0]), {}, {
|
|
10821
|
+
uuid: newUuid
|
|
10822
|
+
});
|
|
10823
|
+
setPopValue(setBusinessDefaultValue(list, recordItem));
|
|
10830
10824
|
setSelectedRowKeys([]);
|
|
10831
10825
|
} else {
|
|
10832
10826
|
setPopValue(selectRows);
|
|
@@ -15171,7 +15165,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
15171
15165
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
15172
15166
|
* @LastEditors: rodchen
|
|
15173
15167
|
*/
|
|
15174
|
-
var index = (function (storageKeyString) {
|
|
15168
|
+
var index$1 = (function (storageKeyString) {
|
|
15175
15169
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
15176
15170
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
15177
15171
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -15514,7 +15508,7 @@ var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
|
|
|
15514
15508
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
15515
15509
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MemoTreeSearchSelect, _objectSpread2({}, currentProps)));
|
|
15516
15510
|
};
|
|
15517
|
-
var index$
|
|
15511
|
+
var index$2 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props, nextProps) {
|
|
15518
15512
|
if (props && props.labelInValue && props.value && JSON.stringify(props.value) !== JSON.stringify(nextProps.value)) {
|
|
15519
15513
|
return false;
|
|
15520
15514
|
}
|
|
@@ -15527,7 +15521,7 @@ var index$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelect, function (props,
|
|
|
15527
15521
|
var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
15528
15522
|
styleInject(css_248z$8);
|
|
15529
15523
|
|
|
15530
|
-
var index$
|
|
15524
|
+
var index$3 = (function (props) {
|
|
15531
15525
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
15532
15526
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
15533
15527
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -16951,7 +16945,7 @@ var iconMap = {
|
|
|
16951
16945
|
src: moreIcon
|
|
16952
16946
|
})
|
|
16953
16947
|
};
|
|
16954
|
-
var index$
|
|
16948
|
+
var index$4 = (function (props) {
|
|
16955
16949
|
var _useLocation = useLocation(),
|
|
16956
16950
|
pathname = _useLocation.pathname;
|
|
16957
16951
|
var _useState = useState(pathname + 'id'),
|
|
@@ -17168,7 +17162,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
17168
17162
|
styleInject(css_248z$d);
|
|
17169
17163
|
|
|
17170
17164
|
var _excluded$c = ["children"];
|
|
17171
|
-
var index$
|
|
17165
|
+
var index$5 = (function (props) {
|
|
17172
17166
|
var _useLocation = useLocation(),
|
|
17173
17167
|
pathname = _useLocation.pathname;
|
|
17174
17168
|
var _useState = useState(pathname + 'id'),
|
|
@@ -22180,7 +22174,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22180
22174
|
}]);
|
|
22181
22175
|
return WrapperComponent;
|
|
22182
22176
|
}(React.Component);
|
|
22183
|
-
var index$
|
|
22177
|
+
var index$6 = (function (props) {
|
|
22184
22178
|
var _useModel = useModel('@@initialState'),
|
|
22185
22179
|
_useModel$initialStat = _useModel.initialState,
|
|
22186
22180
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -22323,7 +22317,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22323
22317
|
var css_248z$n = ".editTableWrapper {\n width: 1000px;\n height: 500px;\n overflow: auto;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.editTableWrapper table {\n table-layout: fixed;\n}\n.editTableWrapper .editTable {\n position: relative;\n overflow: hidden;\n border-top: 0;\n background: #fff;\n}\n.editTableWrapper .north__west {\n position: sticky;\n background-color: #f7f8fb;\n left: 0px;\n top: 0px;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .north__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .south__west {\n z-index: 4;\n position: absolute;\n left: 0px;\n top: 0;\n}\n.editTableWrapper .south__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 4;\n}\n.editTableWrapper .south__west td {\n font-size: 12px;\n background: #fff;\n color: #6a6a6a;\n}\n.editTableWrapper .south__west td svg {\n width: 20px;\n height: 20px;\n vertical-align: middle;\n}\n.editTableWrapper .editTable__block {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: absolute;\n border-collapse: collapse;\n padding: 0;\n}\n.editTableWrapper .editTable__block th,\n.editTableWrapper .editTable__block td {\n box-sizing: border-box;\n font-size: 11px;\n color: #6a6a6a;\n}\n.editTableWrapper .value_table table {\n table-layout: fixed;\n min-width: 100%;\n}\n.editTableWrapper .table_border_style {\n border-collapse: separate;\n border-spacing: 0;\n border-left: 1px solid #f0f0f0;\n border-top: 1px solid #f0f0f0;\n}\n.editTableWrapper .table_border_style td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n box-sizing: border-box;\n border-right: 1px solid #f0f0f0;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 10px;\n font-size: 14px;\n line-height: 28px;\n}\n";
|
|
22324
22318
|
styleInject(css_248z$n);
|
|
22325
22319
|
|
|
22326
|
-
var index$
|
|
22320
|
+
var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
22327
22321
|
var _useState = useState(false),
|
|
22328
22322
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22329
22323
|
show = _useState2[0],
|
|
@@ -22566,7 +22560,7 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
22566
22560
|
className: 'editTable__block'.concat(" ", 'table_border_style')
|
|
22567
22561
|
}, /*#__PURE__*/React.createElement("tbody", null, config.colLastData.map(function (item, index) {
|
|
22568
22562
|
var fixedTop = item.fixed ? "".concat(index * 40 + config.colHeaderToTop, "px") : 0;
|
|
22569
|
-
return /*#__PURE__*/React.createElement("tr", null, colTableData.
|
|
22563
|
+
return /*#__PURE__*/React.createElement("tr", null, colTableData.map(function (record, index) {
|
|
22570
22564
|
return /*#__PURE__*/React.createElement("td", {
|
|
22571
22565
|
style: {
|
|
22572
22566
|
background: index % 2 === 1 || item.fixed ? '#f7f8fb' : '#fff',
|
|
@@ -22583,7 +22577,7 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
22583
22577
|
index: index,
|
|
22584
22578
|
table: tableInsFn
|
|
22585
22579
|
}) : record[item.key || item.dataIndex]);
|
|
22586
|
-
}));
|
|
22580
|
+
}).slice(startIndex, endIndex + 1));
|
|
22587
22581
|
}))), /*#__PURE__*/React.createElement("table", {
|
|
22588
22582
|
style: {
|
|
22589
22583
|
width: '100%',
|
|
@@ -31016,4 +31010,4 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
|
|
|
31016
31010
|
}, "setting"));
|
|
31017
31011
|
});
|
|
31018
31012
|
|
|
31019
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, index$
|
|
31013
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, index$6 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, index$2 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$4 as DetailPageWrapper, ExportIcon, GuideWrapper, index$5 as HomePageWrapper, JsonQueryTable, index$7 as MoreTreeTable, QueryMutipleInput, SearchSelect, index$3 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };
|