@bit-sun/business-component 4.0.13-alpha.3 → 4.0.13-alpha.31

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 (37) hide show
  1. package/.umirc.ts +20 -9
  2. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +1 -1
  3. package/dist/components/Business/DetailPageWrapper/index.d.ts +6 -0
  4. package/dist/components/Business/ItemPropertySelector/index.d.ts +3 -0
  5. package/dist/components/Functional/SearchSelect/utils.d.ts +4 -1
  6. package/dist/index.esm.js +1070 -626
  7. package/dist/index.js +1070 -626
  8. package/package.json +3 -2
  9. package/src/assets/btn-cancel.svg +3 -0
  10. package/src/assets/btn-copy.svg +3 -0
  11. package/src/assets/btn-delete.svg +2 -29
  12. package/src/assets/btn-edit.svg +2 -19
  13. package/src/assets/btn-hangUp.svg +3 -0
  14. package/src/assets/btn-print.svg +3 -0
  15. package/src/assets/btn-refresh.svg +3 -0
  16. package/src/assets/btn-unhook.svg +3 -0
  17. package/src/components/Business/BsSulaQueryTable/index.tsx +10 -10
  18. package/src/components/Business/BsSulaQueryTable/setting.tsx +3 -3
  19. package/src/components/Business/BsSulaQueryTable/utils.tsx +2 -1
  20. package/src/components/Business/CommodityEntry/index.tsx +11 -9
  21. package/src/components/Business/DetailPageWrapper/index.less +1 -1
  22. package/src/components/Business/DetailPageWrapper/index.tsx +24 -5
  23. package/src/components/Business/DetailPageWrapper/utils.tsx +7 -2
  24. package/src/components/Business/HomePageWrapper/index.less +1 -1
  25. package/src/components/Business/ItemPropertySelector/index.tsx +88 -0
  26. package/src/components/Business/SearchSelect/BusinessUtils.tsx +210 -12
  27. package/src/components/Business/SearchSelect/index.md +4 -4
  28. package/src/components/Business/SearchSelect/utils.ts +1 -1
  29. package/src/components/Functional/AddSelect/index.tsx +3 -3
  30. package/src/components/Functional/DataValidation/index.md +1 -0
  31. package/src/components/Functional/DataValidation/index.tsx +11 -4
  32. package/src/components/Functional/QueryMutipleSelect/index.md +2 -3
  33. package/src/components/Functional/QueryMutipleSelect/index.tsx +2 -1
  34. package/src/components/Functional/SearchSelect/index.less +16 -6
  35. package/src/components/Functional/SearchSelect/index.tsx +65 -50
  36. package/src/components/Functional/SearchSelect/utils.tsx +46 -6
  37. package/src/components/Solution/RuleComponent/index.js +59 -1
package/.umirc.ts CHANGED
@@ -35,7 +35,7 @@ export default defineConfig({
35
35
  proxy: {
36
36
  '/bop/api/': {
37
37
  // target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
38
- target: 'https://test.i-baby.net/', // 测试环境
38
+ target: 'https://bc-uat.anzhengportal.com/', // 测试环境
39
39
  // target: 'http://yxzttest.yangzijiang.com/', // 扬子江测试环境
40
40
  // target: 'http://yxzt.yangzijiang.com/', // 扬子江测试环境
41
41
  changeOrigin: true,
@@ -48,39 +48,50 @@ export default defineConfig({
48
48
  // target: 'http://bitsun.product.app.business-operation-platform.v1-dev:8050', // 开发环境
49
49
  // 英伦
50
50
  // target: 'http://47.100.87.54:9102/', // 开发环境
51
- target: 'http://test.i-baby.net/', // 测试环境
51
+ target: 'https://bc-uat.anzhengportal.com/', // 测试环境
52
52
  // target: 'http://www.i-baby.net/', // 生产
53
53
  changeOrigin: true,
54
54
  // pathRewrite: { '^/wms-ops/': '/wms-ops/' }, // 开发环境
55
55
  },
56
56
  '/user/': {
57
- target: 'http://bitsun.cc0b9108c833e4298b9db565441546718.cn-shanghai.alicontainer.com/', // 开发环境
57
+ target: 'https://bc-uat.anzhengportal.com/', // 开发环境
58
58
  changeOrigin: true,
59
59
  },
60
60
  '/drp-ops/': {
61
- target: 'http://bitsun.cc0b9108c833e4298b9db565441546718.cn-shanghai.alicontainer.com/', // 开发环境
61
+ target: 'https://bc-uat.anzhengportal.com/', // 开发环境
62
62
  changeOrigin: true,
63
63
  },
64
64
  '/channel-manage/': {
65
- target: 'http://bitsun.cc0b9108c833e4298b9db565441546718.cn-shanghai.alicontainer.com/', // 开发环境
65
+ target: 'https://bc-uat.anzhengportal.com/', // 开发环境
66
66
  changeOrigin: true,
67
67
  },
68
68
  '/items/': {
69
- target: 'http://bitsun.cc0b9108c833e4298b9db565441546718.cn-shanghai.alicontainer.com/', // 开发环境
69
+ target: 'https://bc-uat.anzhengportal.com/', // 开发环境
70
70
  changeOrigin: true,
71
71
  },
72
72
  '/stock/': {
73
- target: 'http://bitsun.cc0b9108c833e4298b9db565441546718.cn-shanghai.alicontainer.com/', // 开发环境
73
+ target: 'https://bc-uat.anzhengportal.com/', // 开发环境
74
74
  changeOrigin: true,
75
75
  },
76
76
  '/basic/': {
77
- target: 'http://bitsun.cc0b9108c833e4298b9db565441546718.cn-shanghai.alicontainer.com/', // 开发环境
77
+ target: 'https://bc-uat.anzhengportal.com/', // 开发环境
78
78
  changeOrigin: true,
79
79
  },
80
80
  '/srm-ops/': {
81
- target: 'http://bitsun.cc0b9108c833e4298b9db565441546718.cn-shanghai.alicontainer.com/', // 开发环境
81
+ target: 'https://bc-uat.anzhengportal.com/', // 开发环境
82
82
  changeOrigin: true,
83
83
  },
84
84
  },
85
85
  // more config: https://d.umijs.org/config
86
+
87
+ // 添加 webpack 配置
88
+ chainWebpack: (config) => {
89
+ // 处理 SWR 模块的导入问题
90
+ config.module
91
+ .rule('mjs-rule')
92
+ .test(/\.mjs$/)
93
+ .include.add(/node_modules/)
94
+ .end()
95
+ .type('javascript/auto');
96
+ },
86
97
  });
@@ -97,5 +97,5 @@ export declare function queryParams(params: any, flag?: any): any;
97
97
  * @returns boolean
98
98
  */
99
99
  export declare const authFn: (code?: any) => any;
100
- export declare const renderToString: (render: ReactElement<any, string | JSXElementConstructor<any>> | string) => any;
100
+ export declare const renderToString: (render: ReactElement<any, string | JSXElementConstructor<any>> | string) => string;
101
101
  export {};
@@ -5,6 +5,12 @@ export declare const iconMap: {
5
5
  delete: React.JSX.Element;
6
6
  submit: React.JSX.Element;
7
7
  more: React.JSX.Element;
8
+ hangUp: React.JSX.Element;
9
+ unhook: React.JSX.Element;
10
+ refresh: React.JSX.Element;
11
+ print: React.JSX.Element;
12
+ copy: React.JSX.Element;
13
+ cancel: React.JSX.Element;
8
14
  };
9
15
  declare const _default: (props: any) => React.JSX.Element;
10
16
  export default _default;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ItemPropertySelector: ({ onChange, value, propertyCode, name, ...restProps }: any) => React.JSX.Element;
3
+ export default ItemPropertySelector;
@@ -4,9 +4,10 @@ export declare const columnsPerRow = 4;
4
4
  export declare const ColSpan = 6;
5
5
  export declare const handleSourceName: (sName: any) => any;
6
6
  export declare const makeUniqueValue: () => string;
7
- export declare const getFormRowInfo: (list: any) => {
7
+ export declare const getFormRowInfo: (list: any, tableSearchColSpan: number) => {
8
8
  totalRows: number;
9
9
  emptyArray: any[];
10
+ ColSpan: number;
10
11
  };
11
12
  export declare const defaultVisibleFieldsCount = 7;
12
13
  export declare const getVisibleFieldsCount: (modalTableProps: any) => any;
@@ -25,3 +26,5 @@ export declare const convertResData: (requestConfig: any, res: any, selectProps:
25
26
  export declare const handleSelectOptionsShowValue: (specialBracket: boolean, noNeedSplit: boolean, item: any) => any;
26
27
  export declare const LightHeightOption: (props: any) => React.JSX.Element;
27
28
  export declare const maxTagPlaceholder: (selectedValues: any, { selectProps, onChange, value, setIsMaxTagsOpen }: any) => React.JSX.Element;
29
+ export declare const handleTableColumns: (tableColumns: any) => any;
30
+ export declare const getShowStr: ({ viewShowValueStr, labelInValue, selectMode, value, items }: any) => any;