@bit-sun/business-component 1.2.3 → 2.0.2

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.
Files changed (30) hide show
  1. package/.umirc.ts +31 -16
  2. package/dist/components/Business/SearchSelect/BusinessUtils.d.ts +1 -1
  3. package/dist/components/Business/SearchSelect/common.d.ts +5 -1
  4. package/dist/components/Business/SearchSelect/utils.d.ts +2 -1
  5. package/dist/components/Business/TreeSearchSelect/index.d.ts +3 -0
  6. package/dist/components/Business/TreeSearchSelect/utils.d.ts +2 -0
  7. package/dist/components/Functional/AddSelect/index.d.ts +3 -0
  8. package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -0
  9. package/dist/index.d.ts +3 -0
  10. package/dist/index.esm.js +1876 -89
  11. package/dist/index.js +1877 -87
  12. package/dist/utils/CheckOneUser/index.d.ts +1 -1
  13. package/package.json +1 -1
  14. package/src/components/Business/CommodityEntry/index.md +2 -2
  15. package/src/components/Business/CommodityEntry/index.tsx +1 -1
  16. package/src/components/Business/SearchSelect/BusinessUtils.ts +85 -6
  17. package/src/components/Business/SearchSelect/common.ts +20 -1
  18. package/src/components/Business/SearchSelect/index.md +60 -30
  19. package/src/components/Business/SearchSelect/index.tsx +2 -1
  20. package/src/components/Business/SearchSelect/utils.ts +27 -2
  21. package/src/components/Business/TreeSearchSelect/index.md +126 -0
  22. package/src/components/Business/TreeSearchSelect/index.tsx +34 -0
  23. package/src/components/Business/TreeSearchSelect/utils.ts +60 -0
  24. package/src/components/Functional/AddSelect/index.less +275 -0
  25. package/src/components/Functional/AddSelect/index.md +118 -0
  26. package/src/components/Functional/AddSelect/index.tsx +795 -0
  27. package/src/components/Functional/SearchSelect/index.tsx +24 -7
  28. package/src/components/Functional/TreeSearchSelect/index.md +47 -0
  29. package/src/components/Functional/TreeSearchSelect/index.tsx +148 -0
  30. package/src/index.ts +8 -0
package/.umirc.ts CHANGED
@@ -26,33 +26,48 @@ export default defineConfig({
26
26
  ],
27
27
  proxy: {
28
28
  '/bop/api/': {
29
- // bop
30
- target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
31
- // 英伦
32
- // target: 'http://47.100.87.54:9106/', // 开发环境
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
- // target: 'http://test.i-baby.net/', // 测试环境
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
- '/user/api/': {
47
- target: 'http://bitsun.product.app.user-manage.v1-dev:8312/um/', // 开发环境
64
+ '/basic/': {
65
+ target: 'http://omni.bitsun-inc.com/', // 开发环境
48
66
  changeOrigin: true,
49
- pathRewrite: { '^/user/api/': '/' }, // 开发环境
50
67
  },
51
- '/channel/api/': {
52
- target: 'http://bitsun.product.app.channel-manage.v1-dev:8301/channel-manage/', // 开发环境
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
@@ -1,5 +1,5 @@
1
1
  export declare function commonFun(type?: string, prefixUrl: any, requestConfigProp?: any, modalTableBusProps?: any): {
2
2
  modalTableProps: any;
3
3
  requestConfig: any;
4
- needModalTable: boolean;
4
+ needModalTable: any;
5
5
  };
@@ -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,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
- export { getDictionarySource, getDictionaryTextByValue, loadSelectSource };
4
+ declare const handleDefaultPrefixUrl: (type: string) => string;
5
+ export { getDictionarySource, getDictionaryTextByValue, loadSelectSource, handleDefaultPrefixUrl };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const handleDefaultProps: (type: string) => {};
2
+ export { handleDefaultProps };
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const AddSelect: (props: any) => JSX.Element;
3
+ export default AddSelect;
@@ -0,0 +1,2 @@
1
+ declare const TreeSearchSelect: (props: any) => JSX.Element;
2
+ export default TreeSearchSelect;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,9 @@ export { default as DataValidation } from './components/Functional/DataValidatio
2
2
  export { default as DataImport } from './components/Functional/DataImport';
3
3
  export { default as QueryMutipleInput } from './components/Functional/QueryMutipleInput';
4
4
  export { default as SearchSelect } from './components/Functional/SearchSelect';
5
+ export { default as AddSelect } from './components/Functional/AddSelect';
5
6
  export { default as BusinessSearchSelect } from './components/Business/SearchSelect';
6
7
  export { default as CommodityEntry } from './components/Business/CommodityEntry';
7
8
  export { default as CheckOneUser } from './utils/CheckOneUser';
9
+ export { default as TreeSearchSelect } from './components/Functional/TreeSearchSelect';
10
+ export { default as BusinessTreeSearchSelect } from './components/Business/TreeSearchSelect';