@bit-sun/business-component 1.2.3 → 1.2.4-alpha.1
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/.fatherrc.ts +1 -0
- package/.umirc.ts +31 -16
- package/dist/components/Business/AddSelectBusiness/index.d.ts +1 -0
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +4 -0
- package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +4 -0
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +4 -0
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +17 -0
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +30 -0
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +3 -0
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -0
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +4 -0
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +4 -0
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -0
- package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +8 -0
- package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +8 -0
- package/dist/components/Business/BsLayouts/index.d.ts +18 -0
- package/dist/components/Business/BsLayouts/service.d.ts +1 -0
- package/dist/components/Business/BsLayouts/utils.d.ts +13 -0
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -0
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +58 -0
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +98 -0
- package/dist/components/Business/CommonAlert/index.d.ts +3 -0
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +6 -0
- package/dist/components/Business/DetailPageWrapper/index.d.ts +9 -0
- package/dist/components/Business/DetailPageWrapper/utils.d.ts +8 -0
- package/dist/components/Business/HomePageWrapper/index.d.ts +3 -0
- package/dist/components/Business/SearchSelect/BusinessUtils.d.ts +1 -1
- package/dist/components/Business/SearchSelect/common.d.ts +5 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/SearchSelect/utils.d.ts +2 -1
- package/dist/components/Business/StateFlow/index.d.ts +3 -0
- package/dist/components/Business/TreeSearchSelect/index.d.ts +3 -0
- package/dist/components/Business/TreeSearchSelect/utils.d.ts +2 -0
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +54 -0
- package/dist/components/Business/columnSettingTable/index.d.ts +16 -0
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +17 -0
- package/dist/components/Business/columnSettingTable/utils.d.ts +8 -0
- package/dist/components/Functional/AddSelect/index.d.ts +3 -0
- package/dist/components/Functional/BillEntry/index.d.ts +4 -0
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +12 -0
- package/dist/components/Functional/SearchSelect/index.d.ts +2 -1
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.esm.js +19420 -4457
- package/dist/index.js +19451 -4471
- package/dist/utils/CheckOneUser/index.d.ts +1 -1
- package/dist/utils/enumConfig.d.ts +10 -0
- package/dist/utils/requestUtils.d.ts +1 -0
- package/dist/utils/utils.d.ts +3 -0
- package/lib/assets/arrow_top.png +0 -0
- package/lib/assets/drag.svg +17 -0
- package/lib/assets/exportFail.svg +38 -0
- package/lib/assets/exportProcessing.svg +29 -0
- package/lib/assets/exportSuccess.svg +35 -0
- package/lib/assets/exportlogo.png +0 -0
- package/lib/assets/label_icon_bottom.svg +26 -0
- package/lib/assets/upExport.svg +23 -0
- package/package.json +26 -5
- package/src/assets/32.svg +28 -0
- package/src/assets/addIcon.svg +18 -0
- package/src/assets/allfunc.svg +28 -0
- package/src/assets/arrowRight.svg +25 -0
- package/src/assets/arrow_top.png +0 -0
- package/src/assets/btn-delete.svg +30 -0
- package/src/assets/btn-edit.svg +20 -0
- package/src/assets/btn-more.svg +18 -0
- package/src/assets/btn-submit.svg +20 -0
- package/src/assets/caidan.svg +12 -0
- package/src/assets/close.svg +26 -0
- package/src/assets/closeicon.png +0 -0
- package/src/assets/drag.svg +17 -0
- package/src/assets/exportFail.svg +38 -0
- package/src/assets/exportProcessing.svg +29 -0
- package/src/assets/exportSuccess.svg +35 -0
- package/src/assets/exportlogo.png +0 -0
- package/src/assets/fixed-left-active.svg +12 -0
- package/src/assets/fixed-left.svg +16 -0
- package/src/assets/fixed-right-active.svg +12 -0
- package/src/assets/fixed-right.svg +16 -0
- package/src/assets/guanbi.svg +16 -0
- package/src/assets/icon-quanping.svg +16 -0
- package/src/assets/icon-shezhi.svg +18 -0
- package/src/assets/label_icon_bottom.svg +26 -0
- package/src/assets/list-no-img.svg +22 -0
- package/src/assets/morentouxiang-32.svg +24 -0
- package/src/assets/right.png +0 -0
- package/src/assets/scanning.svg +25 -0
- package/src/assets/upExport.svg +23 -0
- package/src/assets/xinglan-icon-out.png +0 -0
- package/src/components/Business/AddSelectBusiness/index.md +41 -0
- package/src/components/Business/AddSelectBusiness/index.tsx +290 -0
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +112 -0
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -0
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -0
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -0
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +38 -0
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +243 -0
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +385 -0
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +286 -0
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +75 -0
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +171 -0
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +65 -0
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +154 -0
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +73 -0
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +158 -0
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -0
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -0
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +156 -0
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +161 -0
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +76 -0
- package/src/components/Business/BsLayouts/index.less +80 -0
- package/src/components/Business/BsLayouts/index.tsx +1465 -0
- package/src/components/Business/BsLayouts/service.ts +11 -0
- package/src/components/Business/BsLayouts/utils.tsx +211 -0
- package/src/components/Business/BsSulaQueryTable/index.less +220 -0
- package/src/components/Business/BsSulaQueryTable/index.tsx +505 -0
- package/src/components/Business/BsSulaQueryTable/setting.tsx +799 -0
- package/src/components/Business/BsSulaQueryTable/utils.less +65 -0
- package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -0
- package/src/components/Business/CommodityEntry/index.md +4 -3
- package/src/components/Business/CommodityEntry/index.tsx +7 -2
- package/src/components/Business/CommonAlert/index.less +0 -0
- package/src/components/Business/CommonAlert/index.tsx +23 -0
- package/src/components/Business/CommonGuideWrapper/index.less +112 -0
- package/src/components/Business/CommonGuideWrapper/index.md +39 -0
- package/src/components/Business/CommonGuideWrapper/index.tsx +84 -0
- package/src/components/Business/DetailPageWrapper/index.less +80 -0
- package/src/components/Business/DetailPageWrapper/index.tsx +335 -0
- package/src/components/Business/DetailPageWrapper/utils.tsx +101 -0
- package/src/components/Business/HomePageWrapper/index.less +33 -0
- package/src/components/Business/HomePageWrapper/index.md +45 -0
- package/src/components/Business/HomePageWrapper/index.tsx +162 -0
- package/src/components/Business/SearchSelect/BusinessUtils.ts +107 -14
- package/src/components/Business/SearchSelect/common.ts +20 -1
- package/src/components/Business/SearchSelect/index.md +60 -30
- package/src/components/Business/SearchSelect/index.tsx +21 -12
- package/src/components/Business/SearchSelect/utils.ts +30 -4
- package/src/components/Business/StateFlow/index.less +131 -0
- package/src/components/Business/StateFlow/index.md +60 -0
- package/src/components/Business/StateFlow/index.tsx +30 -0
- package/src/components/Business/TreeSearchSelect/index.md +126 -0
- package/src/components/Business/TreeSearchSelect/index.tsx +34 -0
- package/src/components/Business/TreeSearchSelect/utils.ts +60 -0
- package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -0
- package/src/components/Business/columnSettingTable/index.less +247 -0
- package/src/components/Business/columnSettingTable/index.md +358 -0
- package/src/components/Business/columnSettingTable/index.tsx +233 -0
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +241 -0
- package/src/components/Business/columnSettingTable/utils.tsx +69 -0
- package/src/components/Functional/AddSelect/index.less +367 -0
- package/src/components/Functional/AddSelect/index.md +122 -0
- package/src/components/Functional/AddSelect/index.tsx +962 -0
- package/src/components/Functional/BillEntry/index.less +371 -0
- package/src/components/Functional/BillEntry/index.md +39 -0
- package/src/components/Functional/BillEntry/index.tsx +613 -0
- package/src/components/Functional/DataImport/index.tsx +7 -2
- package/src/components/Functional/DataValidation/index.md +1 -0
- package/src/components/Functional/DataValidation/index.tsx +17 -2
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -0
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -0
- package/src/components/Functional/SearchSelect/index.tsx +218 -121
- package/src/components/Functional/TreeSearchSelect/index.md +47 -0
- package/src/components/Functional/TreeSearchSelect/index.tsx +149 -0
- package/src/index.ts +15 -6
- package/src/styles/bsDefault.less +1907 -0
- package/src/utils/enumConfig.ts +10 -0
- package/src/utils/requestUtils.ts +33 -0
- package/src/utils/utils.ts +52 -0
- package/typings.d.ts +3 -0
package/.fatherrc.ts
CHANGED
package/.umirc.ts
CHANGED
|
@@ -26,33 +26,48 @@ export default defineConfig({
|
|
|
26
26
|
],
|
|
27
27
|
proxy: {
|
|
28
28
|
'/bop/api/': {
|
|
29
|
-
//
|
|
30
|
-
target: '
|
|
31
|
-
//
|
|
32
|
-
// target: 'http://
|
|
33
|
-
// target: 'http://test.i-baby.net/', // 测试环境
|
|
29
|
+
// target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
|
|
30
|
+
target: 'https://test.i-baby.net/', // 测试环境
|
|
31
|
+
// target: 'http://yxzttest.yangzijiang.com/', // 扬子江测试环境
|
|
32
|
+
// target: 'http://yxzt.yangzijiang.com/', // 扬子江测试环境
|
|
34
33
|
changeOrigin: true,
|
|
35
|
-
pathRewrite: { '^/bop/api/': '/bop/' },
|
|
34
|
+
// pathRewrite: { '^/bop/api/': '/bop/' }, // 开发环境
|
|
36
35
|
},
|
|
37
36
|
'/wms-ops/': {
|
|
37
|
+
// target: 'http://yxzttest.yangzijiang.com/', // 测试环境
|
|
38
|
+
// target: 'http://yxzt.yangzijiang.com/', // 测试环境
|
|
38
39
|
// bop
|
|
39
|
-
target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
|
|
40
|
+
// target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
|
|
40
41
|
// 英伦
|
|
41
42
|
// target: 'http://47.100.87.54:9102/', // 开发环境
|
|
42
|
-
|
|
43
|
+
target: 'http://test.i-baby.net/', // 测试环境
|
|
44
|
+
// target: 'http://www.i-baby.net/', // 生产
|
|
45
|
+
changeOrigin: true,
|
|
46
|
+
// pathRewrite: { '^/wms-ops/': '/wms-ops/' }, // 开发环境
|
|
47
|
+
},
|
|
48
|
+
'/user/': {
|
|
49
|
+
target: 'http://omni.bitsun-inc.com/', // 开发环境
|
|
50
|
+
changeOrigin: true,
|
|
51
|
+
},
|
|
52
|
+
'/channel-manage/': {
|
|
53
|
+
target: 'http://omni.bitsun-inc.com/', // 开发环境
|
|
54
|
+
changeOrigin: true,
|
|
55
|
+
},
|
|
56
|
+
'/items/': {
|
|
57
|
+
target: 'http://omni.bitsun-inc.com/', // 开发环境
|
|
58
|
+
changeOrigin: true,
|
|
59
|
+
},
|
|
60
|
+
'/stock/': {
|
|
61
|
+
target: 'http://omni.bitsun-inc.com/', // 开发环境
|
|
43
62
|
changeOrigin: true,
|
|
44
|
-
pathRewrite: { '^/bop/api/': '/bop/' },
|
|
45
63
|
},
|
|
46
|
-
'/
|
|
47
|
-
target: 'http://bitsun
|
|
64
|
+
'/basic/': {
|
|
65
|
+
target: 'http://omni.bitsun-inc.com/', // 开发环境
|
|
48
66
|
changeOrigin: true,
|
|
49
|
-
pathRewrite: { '^/user/api/': '/' }, // 开发环境
|
|
50
67
|
},
|
|
51
|
-
'/
|
|
52
|
-
target: 'http://bitsun
|
|
53
|
-
// target: 'http://172.16.0.26:8033/channel-manage/',
|
|
68
|
+
'/srm-ops/': {
|
|
69
|
+
target: 'http://omni.bitsun-inc.com/', // 开发环境
|
|
54
70
|
changeOrigin: true,
|
|
55
|
-
pathRewrite: { '^/channel/api/': '/' }, // 开发环境
|
|
56
71
|
},
|
|
57
72
|
},
|
|
58
73
|
// more config: https://d.umijs.org/config
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AddSkuSelect: (parProps: any) => JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
declare class LeftTree extends React.Component<any> {
|
|
4
|
+
state: {
|
|
5
|
+
treeData: never[];
|
|
6
|
+
expandedKeys: never[];
|
|
7
|
+
searchValue: string;
|
|
8
|
+
autoExpandParent: boolean;
|
|
9
|
+
};
|
|
10
|
+
componentDidMount(): void;
|
|
11
|
+
onExpand: (expandedKeys: any) => void;
|
|
12
|
+
onChange: (e: any) => void;
|
|
13
|
+
getPathList: (originData: any) => Array<any>;
|
|
14
|
+
handleAdd2Menu: (path: string) => void;
|
|
15
|
+
render(): JSX.Element;
|
|
16
|
+
}
|
|
17
|
+
export default LeftTree;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FormInstance } from 'antd/es/form';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare class rightTree extends React.Component<any> {
|
|
5
|
+
formRef: React.RefObject<FormInstance<any>>;
|
|
6
|
+
constructor(props: any);
|
|
7
|
+
state: {
|
|
8
|
+
expandedKeys: string[];
|
|
9
|
+
checkedKeys: never[];
|
|
10
|
+
modalInfo: {
|
|
11
|
+
modalVisible: boolean;
|
|
12
|
+
type: string;
|
|
13
|
+
title: string;
|
|
14
|
+
callBack: null;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
onDragEnter: (info: any) => void;
|
|
18
|
+
onDrop: (info: any) => void;
|
|
19
|
+
handleSubmit: () => void;
|
|
20
|
+
handleModalClose: () => void;
|
|
21
|
+
handleEditTreeNode: (e: any, item: any) => void;
|
|
22
|
+
deleteNode: (oldTreeData: any[], path: string) => void;
|
|
23
|
+
handleDeleteTreeNode: (e: any, item: any) => void;
|
|
24
|
+
handleBatchDelete: () => void;
|
|
25
|
+
handleAddTreeNode: (e: any, item: any) => void;
|
|
26
|
+
onCheck: (checkedKeysValue: React.Key[]) => void;
|
|
27
|
+
getChildMenu: (item: any) => JSX.Element;
|
|
28
|
+
render(): JSX.Element;
|
|
29
|
+
}
|
|
30
|
+
export default rightTree;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './home.less';
|
|
3
|
+
export declare type SiderTheme = 'light' | 'dark';
|
|
4
|
+
export declare type GlobalHeaderRightProps = {
|
|
5
|
+
menu?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const GlobalHeaderRight: React.FC<GlobalHeaderRightProps>;
|
|
8
|
+
export default GlobalHeaderRight;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MenuDataItem, BasicLayoutProps as ProLayoutProps, Settings } from '@ant-design/pro-layout';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export declare const RouterContext: React.Context<{}>;
|
|
5
|
+
export declare type BasicLayoutProps = {
|
|
6
|
+
breadcrumbNameMap: Record<string, MenuDataItem>;
|
|
7
|
+
route: ProLayoutProps['route'] & {
|
|
8
|
+
authority: string[];
|
|
9
|
+
};
|
|
10
|
+
settings: Settings;
|
|
11
|
+
} & ProLayoutProps;
|
|
12
|
+
export declare type BasicLayoutContext = {
|
|
13
|
+
[K in 'location']: BasicLayoutProps[K];
|
|
14
|
+
} & {
|
|
15
|
+
breadcrumbNameMap: Record<string, MenuDataItem>;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: (props: any) => JSX.Element;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function outLogin(params: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public API for matching a URL pathname to a path.
|
|
3
|
+
*/
|
|
4
|
+
export declare const matchPath: (pathname: any, options: {} | undefined, pathToRegexp: any) => never;
|
|
5
|
+
export declare const searchMenuData: (router: any, name?: any, callBack: any) => void;
|
|
6
|
+
export declare const setMenuTreeData: (routesData: Array<any>) => void;
|
|
7
|
+
export declare function handleUserID(): any;
|
|
8
|
+
export declare function handleAccountID(): any;
|
|
9
|
+
export declare function handleUserName(): any;
|
|
10
|
+
export declare function handleUserPhone(): any;
|
|
11
|
+
export declare const setLoginOutPath: () => void;
|
|
12
|
+
export declare const getBreadcrumbNameMap: (menuData: any) => {};
|
|
13
|
+
export declare const ergodicMenuRoutes: (routes: any) => any[];
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
declare class SortableTable extends React.Component {
|
|
4
|
+
state: {
|
|
5
|
+
dataSource: never[];
|
|
6
|
+
columns: never[];
|
|
7
|
+
sortDataSource: never[];
|
|
8
|
+
setVisible: boolean;
|
|
9
|
+
searchDataSource: boolean;
|
|
10
|
+
onSearchSort: boolean;
|
|
11
|
+
isDefaultValue: boolean;
|
|
12
|
+
defaultValue: never[];
|
|
13
|
+
};
|
|
14
|
+
patchUserColumnConfig: (config: any) => void;
|
|
15
|
+
getConfigFromlocalstorage: () => any;
|
|
16
|
+
patchConfigToLocalstorage: (configvalue: any) => void;
|
|
17
|
+
setInitValue: (isClick?: boolean) => void;
|
|
18
|
+
componentDidMount(): void;
|
|
19
|
+
columns: ({
|
|
20
|
+
title: string;
|
|
21
|
+
dataIndex: string;
|
|
22
|
+
className: string;
|
|
23
|
+
width: number;
|
|
24
|
+
render?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
title: string;
|
|
27
|
+
dataIndex: string;
|
|
28
|
+
render: (text: any, record: any) => JSX.Element;
|
|
29
|
+
className?: undefined;
|
|
30
|
+
width?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
title: string;
|
|
33
|
+
dataIndex: string;
|
|
34
|
+
className: string;
|
|
35
|
+
render: () => JSX.Element;
|
|
36
|
+
width?: undefined;
|
|
37
|
+
})[];
|
|
38
|
+
showModal: () => void;
|
|
39
|
+
handleOk: (e?: React.MouseEvent<HTMLElement>) => void;
|
|
40
|
+
handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
|
|
41
|
+
handleTableHeadHidden: (title: string) => void;
|
|
42
|
+
onSortEnd: ({ oldIndex, newIndex }: {
|
|
43
|
+
oldIndex: any;
|
|
44
|
+
newIndex: any;
|
|
45
|
+
}) => void;
|
|
46
|
+
DraggableContainer: (props: any) => JSX.Element;
|
|
47
|
+
DraggableBodyRow: ({ className, style, ...restProps }: {
|
|
48
|
+
[x: string]: any;
|
|
49
|
+
className: any;
|
|
50
|
+
style: any;
|
|
51
|
+
}) => JSX.Element;
|
|
52
|
+
onChange: (e: CheckboxChangeEvent, title: any) => void;
|
|
53
|
+
handleReset: () => void;
|
|
54
|
+
onSearch: (e: any) => void;
|
|
55
|
+
onSearchSort: (e: any) => void;
|
|
56
|
+
render(): JSX.Element;
|
|
57
|
+
}
|
|
58
|
+
export default SortableTable;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import moment from 'moment';
|
|
2
|
+
import './utils.less';
|
|
3
|
+
export declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
|
|
4
|
+
export declare const HandleTotalCount: (totalParams: any) => JSX.Element;
|
|
5
|
+
export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
|
|
6
|
+
type: string;
|
|
7
|
+
width: number;
|
|
8
|
+
props: {
|
|
9
|
+
maskClosable: boolean;
|
|
10
|
+
};
|
|
11
|
+
title: string;
|
|
12
|
+
mode: string;
|
|
13
|
+
initialValues: (ctx: any) => any;
|
|
14
|
+
fields: {
|
|
15
|
+
name: any;
|
|
16
|
+
label: string;
|
|
17
|
+
field: {
|
|
18
|
+
type: string;
|
|
19
|
+
props: {
|
|
20
|
+
autoSize: boolean;
|
|
21
|
+
placeholder: string;
|
|
22
|
+
disabledDate: (currentDate: any) => boolean;
|
|
23
|
+
style: {
|
|
24
|
+
width: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
initialValue: moment.Moment;
|
|
29
|
+
rules: {
|
|
30
|
+
required: boolean;
|
|
31
|
+
message: string;
|
|
32
|
+
}[];
|
|
33
|
+
}[];
|
|
34
|
+
submitButtonProps: {
|
|
35
|
+
children: string;
|
|
36
|
+
};
|
|
37
|
+
backButtonProps: {
|
|
38
|
+
children: string;
|
|
39
|
+
};
|
|
40
|
+
submit: any;
|
|
41
|
+
};
|
|
42
|
+
export declare const renderZeroInSummary: (value: any) => number | "- -";
|
|
43
|
+
export declare const calculateValidPeriod: (start: any, end: any) => string;
|
|
44
|
+
export declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
45
|
+
export declare const handleTextLineFeed: (text: string | undefined, width?: number) => JSX.Element;
|
|
46
|
+
export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
47
|
+
export declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
48
|
+
export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
49
|
+
declare type tableColumnsImageType = {
|
|
50
|
+
width?: number | string;
|
|
51
|
+
height?: number | string;
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
};
|
|
54
|
+
export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
|
|
55
|
+
declare type UserColumnsType = {
|
|
56
|
+
name: string;
|
|
57
|
+
department?: string;
|
|
58
|
+
position?: string;
|
|
59
|
+
company?: string;
|
|
60
|
+
avatar?: string;
|
|
61
|
+
};
|
|
62
|
+
export declare const userColumns: (props: UserColumnsType) => JSX.Element;
|
|
63
|
+
export declare const userInfoCard: (props: any) => JSX.Element;
|
|
64
|
+
export declare function handleCommonTimeRenderHours(text: any, format?: any): any;
|
|
65
|
+
export declare function handleCommonTimeRender(text: any, format?: any): any;
|
|
66
|
+
interface ColumnsEditInterfave {
|
|
67
|
+
text?: string;
|
|
68
|
+
record?: any;
|
|
69
|
+
type?: string;
|
|
70
|
+
reqName: string;
|
|
71
|
+
successMessage?: string;
|
|
72
|
+
urlPathId?: boolean;
|
|
73
|
+
disabled: boolean;
|
|
74
|
+
requestProps: {
|
|
75
|
+
url: string;
|
|
76
|
+
converter?: Function;
|
|
77
|
+
method?: string;
|
|
78
|
+
};
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
}
|
|
81
|
+
export declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
|
|
82
|
+
export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
83
|
+
export declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
|
|
84
|
+
export declare const renderFixed2: (text: any) => any;
|
|
85
|
+
export declare const getItemDefaultWidth: (item: any) => number;
|
|
86
|
+
/**
|
|
87
|
+
* 查询参数处理
|
|
88
|
+
* @param params 要应用于查询的参数
|
|
89
|
+
* @returns 返回处理后的查询参数
|
|
90
|
+
*/
|
|
91
|
+
export declare function queryParams(params: any, flag?: any): any;
|
|
92
|
+
/**
|
|
93
|
+
* 根据用户权限检验对应按钮是够显示 !!!!现在先去掉
|
|
94
|
+
* @param code 对应权限值
|
|
95
|
+
* @returns boolean
|
|
96
|
+
*/
|
|
97
|
+
export declare const authFn: (code?: any) => boolean;
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface actionItem {
|
|
2
|
+
[propName: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export declare const doDetailPageAction: (config: actionItem) => void;
|
|
5
|
+
export declare const getBreadcrumbNameMap: (menuData: any) => {};
|
|
6
|
+
export declare const judgeIsEmpty: (value: any) => boolean;
|
|
7
|
+
export declare const getMainCrumbNameMap: (menuData: any) => {};
|
|
8
|
+
export {};
|
|
@@ -2,6 +2,10 @@ declare const shopFileType: {
|
|
|
2
2
|
text: string;
|
|
3
3
|
value: string;
|
|
4
4
|
}[];
|
|
5
|
+
declare const shopFile2Type: {
|
|
6
|
+
text: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[];
|
|
5
9
|
declare const arrivalPaySupportList: {
|
|
6
10
|
text: string;
|
|
7
11
|
value: number;
|
|
@@ -10,4 +14,4 @@ declare const sharingType: {
|
|
|
10
14
|
text: string;
|
|
11
15
|
value: string;
|
|
12
16
|
}[];
|
|
13
|
-
export { shopFileType, arrivalPaySupportList, sharingType };
|
|
17
|
+
export { shopFileType, arrivalPaySupportList, sharingType, shopFile2Type };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.MemoExoticComponent<
|
|
2
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>>;
|
|
3
3
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const getDictionarySource: (dicCode: string, needConvertInterger?: boolean) => {};
|
|
2
2
|
declare const getDictionaryTextByValue: (dicCode: string, value: string | number) => any;
|
|
3
3
|
declare const loadSelectSource: (url: string, params?: any) => Promise<unknown>;
|
|
4
|
-
|
|
4
|
+
declare const handleDefaultPrefixUrl: (type: string) => string;
|
|
5
|
+
export { getDictionarySource, getDictionaryTextByValue, loadSelectSource, handleDefaultPrefixUrl };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
interface SortTableProps {
|
|
4
|
+
[propName: string]: any;
|
|
5
|
+
}
|
|
6
|
+
declare class SortableTable extends React.Component<SortTableProps> {
|
|
7
|
+
state: {
|
|
8
|
+
dataSource: never[];
|
|
9
|
+
columns: never[];
|
|
10
|
+
selectedRowKeys: never[];
|
|
11
|
+
sortDataSource: never[];
|
|
12
|
+
setVisible: boolean;
|
|
13
|
+
searchDataSource: boolean;
|
|
14
|
+
onSearchSort: boolean;
|
|
15
|
+
};
|
|
16
|
+
patchUserColumnConfig: (config: any) => void;
|
|
17
|
+
patchConfigToLocalstorage: (configvalue: any, tableCode: string) => void;
|
|
18
|
+
setInitValue: (datasource: any[]) => void;
|
|
19
|
+
componentWillReceiveProps(nextProps: any): void;
|
|
20
|
+
componentDidMount(): void;
|
|
21
|
+
columns: ({
|
|
22
|
+
title: string;
|
|
23
|
+
dataIndex: string;
|
|
24
|
+
className: string;
|
|
25
|
+
width: number;
|
|
26
|
+
render?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
title: string;
|
|
29
|
+
dataIndex: string;
|
|
30
|
+
render: (text: any, record: any) => JSX.Element;
|
|
31
|
+
className?: undefined;
|
|
32
|
+
width?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
title: string;
|
|
35
|
+
dataIndex: string;
|
|
36
|
+
className: string;
|
|
37
|
+
render: () => JSX.Element;
|
|
38
|
+
width?: undefined;
|
|
39
|
+
})[];
|
|
40
|
+
showModal: () => void;
|
|
41
|
+
handleOk: (e?: React.MouseEvent<HTMLElement>) => void;
|
|
42
|
+
handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
|
|
43
|
+
handleTableHeadHidden: (title: string) => void;
|
|
44
|
+
onSortEnd: ({ oldIndex, newIndex }: any) => void;
|
|
45
|
+
DraggableContainer: (props: any) => JSX.Element;
|
|
46
|
+
DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
|
|
47
|
+
onChange: (e: any, title: any) => void;
|
|
48
|
+
handleReset: () => void;
|
|
49
|
+
onSearch: (e: any) => void;
|
|
50
|
+
onSearchSort: (e: any) => void;
|
|
51
|
+
getConfigFromlocalstorage: () => any;
|
|
52
|
+
render(): JSX.Element;
|
|
53
|
+
}
|
|
54
|
+
export default SortableTable;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default class ColumnSettingTable extends React.Component {
|
|
3
|
+
state: any;
|
|
4
|
+
constructor(props: any);
|
|
5
|
+
componentDidMount(): void;
|
|
6
|
+
componentWillReceiveProps(nextProps: any): void;
|
|
7
|
+
setInitialShowColumn: (columns: any[]) => void;
|
|
8
|
+
setShowColumns: (newColumns: Array<any>) => void;
|
|
9
|
+
getConfigFromlocalstorage: () => any;
|
|
10
|
+
getTableSummaryInfo: () => () => any;
|
|
11
|
+
handledynamicColumns: (col: any[]) => any[];
|
|
12
|
+
handleResize: (index: any) => (_: any, { size }: any) => void;
|
|
13
|
+
ResizeableTitle: (props: any) => JSX.Element;
|
|
14
|
+
getTableScrollXWidth: (cols: any[]) => any;
|
|
15
|
+
render(): JSX.Element;
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default class ColumnSettingSulaTable extends React.Component {
|
|
3
|
+
sulaTableRef: React.RefObject<unknown>;
|
|
4
|
+
state: any;
|
|
5
|
+
constructor(props: any);
|
|
6
|
+
componentDidMount(): void;
|
|
7
|
+
componentWillReceiveProps(nextProps: any): void;
|
|
8
|
+
setInitialShowColumn: (columns: any[]) => void;
|
|
9
|
+
setShowColumns: (newColumns: Array<any>) => void;
|
|
10
|
+
getConfigFromlocalstorage: () => any;
|
|
11
|
+
getTableSummaryInfo: () => () => any;
|
|
12
|
+
handledynamicColumns: (col: any[]) => any[];
|
|
13
|
+
handleResize: (index: any) => (_: any, { size }: any) => void;
|
|
14
|
+
ResizeableTitle: (props: any) => JSX.Element;
|
|
15
|
+
getTableScrollXWidth: (cols: any[]) => any;
|
|
16
|
+
render(): JSX.Element;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 非空数组
|
|
3
|
+
* @param arr 要判断的数据
|
|
4
|
+
* @returns boolean
|
|
5
|
+
*/
|
|
6
|
+
export declare const noEmptyArray: (arr: any[]) => boolean;
|
|
7
|
+
export declare const getItemDefaultWidth: (item: any) => number;
|
|
8
|
+
export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface exportIconType {
|
|
2
|
+
/** others选填,使用axios发请求,*/
|
|
3
|
+
request: {
|
|
4
|
+
url: string;
|
|
5
|
+
params: Function | Object;
|
|
6
|
+
others?: Object;
|
|
7
|
+
};
|
|
8
|
+
/** BsSulaQueryTable的tableRef*/
|
|
9
|
+
tableRef: any;
|
|
10
|
+
}
|
|
11
|
+
declare const ExportIcon: ({ request, tableRef }: exportIconType) => JSX.Element;
|
|
12
|
+
export default ExportIcon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
|
-
declare const SearchSelect:
|
|
3
|
+
declare const SearchSelect: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
3
4
|
export default SearchSelect;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
|
+
import './utils/requestUtils';
|
|
1
2
|
export { default as DataValidation } from './components/Functional/DataValidation';
|
|
2
3
|
export { default as DataImport } from './components/Functional/DataImport';
|
|
3
4
|
export { default as QueryMutipleInput } from './components/Functional/QueryMutipleInput';
|
|
4
5
|
export { default as SearchSelect } from './components/Functional/SearchSelect';
|
|
6
|
+
export { default as AddSelect } from './components/Functional/AddSelect';
|
|
7
|
+
export { default as BillEntry } from './components/Functional/BillEntry';
|
|
5
8
|
export { default as BusinessSearchSelect } from './components/Business/SearchSelect';
|
|
9
|
+
export * from './components/Business/AddSelectBusiness';
|
|
6
10
|
export { default as CommodityEntry } from './components/Business/CommodityEntry';
|
|
7
11
|
export { default as CheckOneUser } from './utils/CheckOneUser';
|
|
12
|
+
export { default as TreeSearchSelect } from './components/Functional/TreeSearchSelect';
|
|
13
|
+
export { default as BusinessTreeSearchSelect } from './components/Business/TreeSearchSelect';
|
|
14
|
+
export { default as StateFlow } from './components/Business/StateFlow';
|
|
15
|
+
export { default as GuideWrapper } from './components/Business/CommonGuideWrapper';
|
|
16
|
+
export { default as ExportIcon } from './components/Functional/ExportFunctions/ExportIcon';
|
|
17
|
+
export { default as SulaColumnSettingTable } from './components/Business/columnSettingTable/sulaSettingTable';
|
|
18
|
+
export { default as ColumnSettingTable } from './components/Business/columnSettingTable';
|
|
19
|
+
export { default as DetailPageWrapper } from './components/Business/DetailPageWrapper';
|
|
20
|
+
export { default as HomePageWrapper } from './components/Business/HomePageWrapper';
|
|
21
|
+
export { default as BsSulaQueryTable } from './components/Business/BsSulaQueryTable';
|
|
22
|
+
export { default as BsLayout } from './components/Business/BsLayouts';
|