@bit-sun/business-component 2.0.12 → 2.0.13
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 +4 -4
- package/.gitlab-ci.yml +174 -135
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +74 -90
- package/README.md +27 -27
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +6794 -7350
- package/dist/index.js +6793 -7348
- package/docs/index.md +21 -21
- package/package.json +51 -60
- package/src/components/Business/AddSelectBusiness/index.md +41 -41
- package/src/components/Business/AddSelectBusiness/index.tsx +288 -300
- package/src/components/Business/CommodityEntry/index.md +69 -69
- package/src/components/Business/CommodityEntry/index.tsx +78 -78
- package/src/components/Business/SearchSelect/BusinessUtils.ts +1445 -1445
- package/src/components/Business/SearchSelect/common.ts +53 -53
- package/src/components/Business/SearchSelect/index.md +1137 -1136
- package/src/components/Business/SearchSelect/index.tsx +44 -49
- package/src/components/Business/SearchSelect/utils.ts +99 -99
- package/src/components/Business/TreeSearchSelect/index.md +126 -126
- package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
- package/src/components/Business/TreeSearchSelect/utils.ts +60 -60
- package/src/components/Functional/AddSelect/index.less +367 -352
- package/src/components/Functional/AddSelect/index.md +120 -120
- package/src/components/Functional/AddSelect/index.tsx +952 -896
- package/src/components/Functional/BillEntry/index.less +371 -371
- package/src/components/Functional/BillEntry/index.md +37 -37
- package/src/components/Functional/BillEntry/index.tsx +547 -561
- 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 +689 -689
- package/src/components/Functional/DataValidation/index.less +63 -63
- package/src/components/Functional/DataValidation/index.md +38 -38
- package/src/components/Functional/DataValidation/index.tsx +680 -680
- 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 +732 -791
- package/src/components/Functional/TreeSearchSelect/index.md +47 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +149 -149
- package/src/index.ts +22 -22
- package/src/utils/CheckOneUser/index.md +39 -39
- package/src/utils/CheckOneUser/index.ts +51 -51
- package/src/utils/requestUtils.ts +32 -32
- package/tsconfig.json +29 -29
- package/typings.d.ts +2 -2
- package/Dockerfile +0 -11
- package/dist/app.d.ts +0 -0
- package/dist/components/sulaQueryTable/BsSulaQueryTable.d.ts +0 -2
- package/dist/components/sulaQueryTable/draggableTable.d.ts +0 -22
- package/dist/components/sulaQueryTable/statusComponent.d.ts +0 -2
- package/dist/components/sulaQueryTable/utils.d.ts +0 -41
- package/nginx.conf +0 -43
- package/src/app.tsx +0 -3
- package/src/components/sulaQueryTable/BsSulaQueryTable.tsx +0 -368
- package/src/components/sulaQueryTable/draggableTable.tsx +0 -111
- package/src/components/sulaQueryTable/index.md +0 -271
- package/src/components/sulaQueryTable/status-component.less +0 -8
- package/src/components/sulaQueryTable/statusComponent.tsx +0 -42
- package/src/components/sulaQueryTable/utils.less +0 -48
- package/src/components/sulaQueryTable/utils.tsx +0 -336
- package/src/global.less +0 -97
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
const handleDefaultProps = (type: string) => {
|
|
2
|
-
let result = {};
|
|
3
|
-
switch (type){
|
|
4
|
-
case 'department':
|
|
5
|
-
result = {
|
|
6
|
-
treeCheckable: true,
|
|
7
|
-
isChoose: true,
|
|
8
|
-
remoteSource: {
|
|
9
|
-
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
10
|
-
initialParams: { 'orgViewCode': 'administrative-organization-view' },
|
|
11
|
-
resKeyValue: ['code', 'name'],
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
break;
|
|
15
|
-
case 'sales-organization':
|
|
16
|
-
result = {
|
|
17
|
-
isChoose: true,
|
|
18
|
-
remoteSource: {
|
|
19
|
-
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
20
|
-
initialParams: { 'orgViewCode': 'sales-organizational-view' },
|
|
21
|
-
resKeyValue: ['code', 'name'],
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
break;
|
|
25
|
-
case 'purchase-organization':
|
|
26
|
-
result = {
|
|
27
|
-
isChoose: true,
|
|
28
|
-
remoteSource: {
|
|
29
|
-
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
30
|
-
initialParams: { 'orgViewCode': 'purchase-organizational-view' },
|
|
31
|
-
resKeyValue: ['code', 'name'],
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
break;
|
|
35
|
-
case 'stock-organization':
|
|
36
|
-
result = {
|
|
37
|
-
isChoose: true,
|
|
38
|
-
remoteSource: {
|
|
39
|
-
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
40
|
-
initialParams: { 'orgViewCode': 'stock-organizational-view' },
|
|
41
|
-
resKeyValue: ['code', 'name'],
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
break;
|
|
45
|
-
default:
|
|
46
|
-
result = {
|
|
47
|
-
treeCheckable: true,
|
|
48
|
-
isChoose: true,
|
|
49
|
-
remoteSource: {
|
|
50
|
-
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
51
|
-
initialParams: { 'orgViewCode': 'administrative-organization-view' },
|
|
52
|
-
resKeyValue: ['code', 'name'],
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
break
|
|
56
|
-
}
|
|
57
|
-
return result;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export { handleDefaultProps }
|
|
1
|
+
const handleDefaultProps = (type: string) => {
|
|
2
|
+
let result = {};
|
|
3
|
+
switch (type){
|
|
4
|
+
case 'department':
|
|
5
|
+
result = {
|
|
6
|
+
treeCheckable: true,
|
|
7
|
+
isChoose: true,
|
|
8
|
+
remoteSource: {
|
|
9
|
+
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
10
|
+
initialParams: { 'orgViewCode': 'administrative-organization-view' },
|
|
11
|
+
resKeyValue: ['code', 'name'],
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
break;
|
|
15
|
+
case 'sales-organization':
|
|
16
|
+
result = {
|
|
17
|
+
isChoose: true,
|
|
18
|
+
remoteSource: {
|
|
19
|
+
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
20
|
+
initialParams: { 'orgViewCode': 'sales-organizational-view' },
|
|
21
|
+
resKeyValue: ['code', 'name'],
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
break;
|
|
25
|
+
case 'purchase-organization':
|
|
26
|
+
result = {
|
|
27
|
+
isChoose: true,
|
|
28
|
+
remoteSource: {
|
|
29
|
+
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
30
|
+
initialParams: { 'orgViewCode': 'purchase-organizational-view' },
|
|
31
|
+
resKeyValue: ['code', 'name'],
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
break;
|
|
35
|
+
case 'stock-organization':
|
|
36
|
+
result = {
|
|
37
|
+
isChoose: true,
|
|
38
|
+
remoteSource: {
|
|
39
|
+
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
40
|
+
initialParams: { 'orgViewCode': 'stock-organizational-view' },
|
|
41
|
+
resKeyValue: ['code', 'name'],
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
break;
|
|
45
|
+
default:
|
|
46
|
+
result = {
|
|
47
|
+
treeCheckable: true,
|
|
48
|
+
isChoose: true,
|
|
49
|
+
remoteSource: {
|
|
50
|
+
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
51
|
+
initialParams: { 'orgViewCode': 'administrative-organization-view' },
|
|
52
|
+
resKeyValue: ['code', 'name'],
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
break
|
|
56
|
+
}
|
|
57
|
+
return result;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { handleDefaultProps }
|