@bit-sun/business-component 4.2.0-alpha.2 → 4.2.0-alpha.20

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 (73) hide show
  1. package/.umirc.ts +13 -9
  2. package/dist/components/Business/AddSelectBusiness/index.d.ts +0 -1
  3. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +0 -1
  4. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +0 -1
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +0 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +0 -1
  7. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +0 -1
  8. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +0 -1
  9. package/dist/components/Business/BsSulaQueryTable/index.d.ts +0 -1
  10. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +1 -1
  11. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +0 -1
  12. package/dist/components/Business/CommodityEntry/index.d.ts +0 -1
  13. package/dist/components/Business/CommonAlert/index.d.ts +0 -1
  14. package/dist/components/Business/DetailPageWrapper/index.d.ts +1 -1
  15. package/dist/components/Business/HomePageWrapper/index.d.ts +0 -1
  16. package/dist/components/Business/ItemPropertySelector/index.d.ts +0 -1
  17. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +0 -1
  18. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +0 -1
  19. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +0 -1
  20. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +0 -1
  21. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +0 -1
  22. package/dist/components/Business/PropertyModal/index.d.ts +0 -1
  23. package/dist/components/Business/StateFlow/index.d.ts +0 -1
  24. package/dist/components/Business/SystemLog/index.d.ts +78 -0
  25. package/dist/components/Business/TrialCalculation/index.d.ts +15 -0
  26. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +0 -1
  27. package/dist/components/Business/columnSettingTable/utils.d.ts +0 -1
  28. package/dist/components/Functional/AddSelect/index.d.ts +0 -1
  29. package/dist/components/Functional/AuthButton/index.d.ts +0 -1
  30. package/dist/components/Functional/DataValidation/index.d.ts +1 -1
  31. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +0 -1
  32. package/dist/components/Functional/QueryMutipleInput/index.d.ts +0 -1
  33. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +0 -1
  34. package/dist/components/Functional/SearchSelect/utils.d.ts +0 -1
  35. package/dist/components/Functional/TreeSearchSelect/index.d.ts +0 -1
  36. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +0 -1
  37. package/dist/components/Solution/RuleComponent/Formula.d.ts +0 -1
  38. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +0 -1
  39. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +0 -1
  40. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +0 -1
  41. package/dist/index.d.ts +4 -0
  42. package/dist/index.esm.js +2250 -1203
  43. package/dist/index.js +2250 -1198
  44. package/dist/utils/TableUtils.d.ts +0 -1
  45. package/dist/utils/utils.d.ts +41 -0
  46. package/docs/flow-control-readme.md +283 -0
  47. package/package.json +1 -1
  48. package/src/components/Business/AddSelectBusiness/index.tsx +3 -2
  49. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +0 -1
  50. package/src/components/Business/BsSulaQueryTable/index.md +57 -4
  51. package/src/components/Business/BsSulaQueryTable/index.tsx +174 -10
  52. package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
  53. package/src/components/Business/DetailPageWrapper/index.tsx +81 -1
  54. package/src/components/Business/DetailPageWrapper/readme.md +89 -0
  55. package/src/components/Business/SearchSelect/BusinessUtils.tsx +365 -43
  56. package/src/components/Business/SystemLog/index.md +37 -0
  57. package/src/components/Business/SystemLog/index.tsx +87 -0
  58. package/src/components/Business/TrialCalculation/PathDisplay.less +93 -0
  59. package/src/components/Business/TrialCalculation/PathDisplay_README.md +77 -0
  60. package/src/components/Business/TrialCalculation/index.tsx +322 -0
  61. package/src/components/Business/columnSettingTable/index.tsx +7 -6
  62. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +23 -22
  63. package/src/components/Functional/AddSelect/index.tsx +95 -1
  64. package/src/components/Functional/DataValidation/index.tsx +31 -9
  65. package/src/components/Functional/SearchSelect/index.tsx +68 -10
  66. package/src/components/Functional/SearchSelect/utils.tsx +9 -1
  67. package/src/components/Functional/TreeSearchSelect/index.tsx +2 -1
  68. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
  69. package/src/components/Solution/RuleComponent/RenderCompItem_README.md +189 -0
  70. package/src/components/Solution/RuleComponent/index.js +1 -0
  71. package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
  72. package/src/index.ts +8 -0
  73. package/src/utils/utils.ts +41 -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://occp-dev.xtepchina.com/', // 测试环境
38
+ target: 'https://ocean-test.bitsun-inc.com/', // 测试环境
39
39
  // target: 'http://yxzttest.yangzijiang.com/', // 扬子江测试环境
40
40
  // target: 'http://yxzt.yangzijiang.com/', // 扬子江测试环境
41
41
  changeOrigin: true,
@@ -48,37 +48,41 @@ 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: 'https://occp-dev.xtepchina.com/', // 测试环境
51
+ target: 'https://ocean-test.bitsun-inc.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: 'https://occp-dev.xtepchina.com/', // 开发环境
57
+ target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
58
58
  changeOrigin: true,
59
59
  },
60
60
  '/drp-ops/': {
61
- target: 'https://occp-dev.xtepchina.com/', // 开发环境
61
+ target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
62
62
  changeOrigin: true,
63
63
  },
64
64
  '/channel-manage/': {
65
- target: 'https://occp-dev.xtepchina.com/', // 开发环境
65
+ target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
66
66
  changeOrigin: true,
67
67
  },
68
68
  '/items/': {
69
- target: 'https://occp-dev.xtepchina.com/', // 开发环境
69
+ target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
70
70
  changeOrigin: true,
71
71
  },
72
72
  '/stock/': {
73
- target: 'https://occp-dev.xtepchina.com/', // 开发环境
73
+ target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
74
+ changeOrigin: true,
75
+ },
76
+ '/settle/': {
77
+ target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
74
78
  changeOrigin: true,
75
79
  },
76
80
  '/basic/': {
77
- target: 'https://occp-dev.xtepchina.com/', // 开发环境
81
+ target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
78
82
  changeOrigin: true,
79
83
  },
80
84
  '/srm-ops/': {
81
- target: 'https://occp-dev.xtepchina.com/', // 开发环境
85
+ target: 'https://ocean-test.bitsun-inc.com/', // 开发环境
82
86
  changeOrigin: true,
83
87
  },
84
88
  },
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const AddSkuSelect: (parProps: any) => JSX.Element;
3
2
  export declare const AddSkcSelect: (parProps: any) => JSX.Element;
4
3
  export declare const AddSpuSelect: (parProps: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export type SiderTheme = 'light' | 'dark';
4
3
  declare const DrawContent: ({ onClose, itemPath }: any) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const ChooseStore: (props: any) => JSX.Element;
3
2
  export default ChooseStore;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './drawContent.less';
3
2
  declare const DrawContent: ({ onClose, originRoutes, itemPath }: any) => JSX.Element;
4
3
  export default DrawContent;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => JSX.Element;
3
2
  export default CustomerMenuHeader;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const judgeIsEmpty: (value: any) => boolean;
4
3
  declare const GlobalHeaderCom: (props: any) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './bssulaquerytable.less';
3
2
  declare const _default: (props: any) => JSX.Element;
4
3
  export default _default;
@@ -29,7 +29,7 @@ declare class SortableTable extends React.Component {
29
29
  } | {
30
30
  title: string;
31
31
  dataIndex: string;
32
- render: (text: any, record: any) => JSX.Element;
32
+ render: (text: any, record: any) => JSX.Element | null;
33
33
  className?: undefined;
34
34
  width?: undefined;
35
35
  } | {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import moment from 'moment';
3
2
  import './utils.less';
4
3
  export declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const CommodityEntry: (props: any) => JSX.Element;
3
2
  export default CommodityEntry;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const _default: (props: any) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const iconMap: {
4
3
  edit: JSX.Element;
@@ -14,3 +13,4 @@ export declare const iconMap: {
14
13
  };
15
14
  declare const _default: (props: any) => JSX.Element;
16
15
  export default _default;
16
+ export declare const processDetailButtonsVisible: (buttons: any[], params: any) => any[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const _default: (props: any) => JSX.Element;
4
3
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const ItemPropertySelector: ({ onChange, value, propertyCode, name, ...restProps }: any) => JSX.Element;
3
2
  export default ItemPropertySelector;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FieldsModifyModal: (props: any) => JSX.Element;
3
2
  export default FieldsModifyModal;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const App: ({ record, setValue, formula }: {
3
2
  record: any;
4
3
  setValue: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface propertyValueType {
4
3
  propertyName: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const _default: (props: any) => JSX.Element;
4
3
  export default _default;
@@ -0,0 +1,78 @@
1
+ declare const SystemLog: ({ modeType, code, containerName, renderLogRef, extraParams, }: {
2
+ modeType: string;
3
+ code: any;
4
+ containerName: string;
5
+ renderLogRef: object;
6
+ extraParams?: object | undefined;
7
+ }) => {
8
+ initialVisible: boolean;
9
+ fields: {
10
+ name: string;
11
+ label: boolean;
12
+ itemLayout: {
13
+ span: number;
14
+ labelCol: {
15
+ span: number;
16
+ };
17
+ wrapperCol: {
18
+ span: number;
19
+ };
20
+ };
21
+ field: (ctx: any) => any;
22
+ }[];
23
+ container: {
24
+ type: string;
25
+ props: {
26
+ title: any;
27
+ id: number;
28
+ level: number;
29
+ name: string;
30
+ bordered?: undefined;
31
+ isWhiteCard?: undefined;
32
+ };
33
+ };
34
+ itemLayout: {
35
+ span: number;
36
+ labelCol: {
37
+ span: number;
38
+ };
39
+ wrapperCol: {
40
+ span: number;
41
+ };
42
+ };
43
+ } | {
44
+ initialVisible: boolean;
45
+ fields: {
46
+ name: string;
47
+ label: boolean;
48
+ itemLayout: {
49
+ span: number;
50
+ labelCol: {
51
+ span: number;
52
+ };
53
+ wrapperCol: {
54
+ span: number;
55
+ };
56
+ };
57
+ field: (ctx: any) => any;
58
+ }[];
59
+ container: {
60
+ type: string;
61
+ props: {
62
+ title: any;
63
+ id: number;
64
+ level: number;
65
+ bordered: null;
66
+ isWhiteCard: boolean;
67
+ name: string;
68
+ };
69
+ };
70
+ itemLayout: {
71
+ wrapperCol: {
72
+ span: number;
73
+ };
74
+ span?: undefined;
75
+ labelCol?: undefined;
76
+ };
77
+ };
78
+ export default SystemLog;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './PathDisplay.less';
3
+ interface PathDisplayProps {
4
+ recordType?: string;
5
+ businessType?: string;
6
+ sendOrgCode?: string;
7
+ receiverOrgCode?: string;
8
+ orderNo?: string;
9
+ autoCallApi?: boolean;
10
+ }
11
+ interface PathDisplayRef {
12
+ fetchData: () => Promise<void>;
13
+ }
14
+ declare const PathDisplay: React.ForwardRefExoticComponent<PathDisplayProps & React.RefAttributes<PathDisplayRef>>;
15
+ export default PathDisplay;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './style.less';
3
2
  declare const _default: ({ summary }: any) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * 非空数组
4
3
  * @param arr 要判断的数据
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddSelect: (props: any) => JSX.Element;
4
3
  export default AddSelect;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const AuthButton: (props: any) => JSX.Element;
3
2
  export default AuthButton;
@@ -141,7 +141,7 @@ declare class DataValidation extends React.Component {
141
141
  naturalCompare: (a: any, b: any) => any;
142
142
  customSort: (a: any, b: any) => any;
143
143
  sortData: (sorterKey: string) => void;
144
- resetData: () => void;
144
+ resetData: () => Promise<void>;
145
145
  filterData: (type: string) => void;
146
146
  toggleData: () => void;
147
147
  onChange: (e: any) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface exportIconType {
3
2
  /** others选填,使用axios发请求,*/
4
3
  request: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const QueryMutipleInput: ({ onValueChange, onPressEnter, value: initialValue }: {
4
3
  onValueChange: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export declare const getValue: (value: any, selectMode?: any) => any;
4
3
  declare const QueryMutipleSearchSelect: ({ onValueChange, requestConfig, selectProps, ctx }: any) => JSX.Element;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="lodash" />
2
- /// <reference types="react" />
3
2
  export declare const columnsPerRow = 4;
4
3
  export declare const ColSpan = 6;
5
4
  export declare const handleSourceName: (sName: any) => any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TreeSearchSelect: (props: any) => JSX.Element;
3
2
  export default TreeSearchSelect;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const App: ({ setValue, formula, record, sourceData, disabled }: {
3
2
  setValue: any;
4
3
  record: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface Iprops {
3
2
  disabled: boolean;
4
3
  inputType: number;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function RenderCompItem(props: any): JSX.Element | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
package/dist/index.d.ts CHANGED
@@ -33,6 +33,10 @@ export { default as EllipsisTooltip } from './components/Functional/EllipsisTool
33
33
  export * from './components/Functional/BsAntdSula/index';
34
34
  export { default as RuleComponent } from './components/Solution/RuleComponent';
35
35
  export { default as RuleSetter } from './components/Solution/RuleSetter';
36
+ export { default as RenderCompItem } from './components/Solution/RuleComponent/RenderCompItem';
37
+ export { default as TrialCalculation } from './components/Business/TrialCalculation';
38
+ export { processDetailButtonsVisible as processDetailButtonsVisible } from './components/Business/DetailPageWrapper';
36
39
  export { default as ExtendedCollapse } from './components/Common/ExtendedCollapse';
37
40
  export { default as Section } from './components/Common/Section';
38
41
  export { default as ParagraphCopier } from './components/Common/ParagraphCopier';
42
+ export { default as SystemLog } from './components/Business/SystemLog';