@bit-sun/business-component 4.0.13-alpha.9 → 4.2.0-aiwei-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.
Files changed (150) hide show
  1. package/.umirc.ts +21 -10
  2. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  3. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  4. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  11. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  12. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  13. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  14. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  15. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  16. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +11 -8
  17. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  18. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  19. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  20. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  21. package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -6
  22. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  23. package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -0
  24. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  28. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  29. package/dist/components/Business/ModalUtils/index.d.ts +8 -0
  30. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  31. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  32. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  33. package/dist/components/Business/SearchSelect/utils.d.ts +4 -2
  34. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  35. package/dist/components/Business/SystemLog/index.d.ts +78 -0
  36. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  37. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +9 -8
  38. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  39. package/dist/components/Business/columnSettingTable/index.d.ts +21 -4
  40. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +22 -5
  41. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  42. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  43. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  44. package/dist/components/Common/Section/index.d.ts +1 -1
  45. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  46. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  47. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  48. package/dist/components/Functional/DataValidation/index.d.ts +15 -5
  49. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  50. package/dist/components/Functional/QueryMutipleInput/index.d.ts +3 -3
  51. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  52. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  53. package/dist/components/Functional/SearchSelect/utils.d.ts +4 -4
  54. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  56. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  57. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  58. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  59. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  60. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  61. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  62. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  63. package/dist/index.d.ts +2 -0
  64. package/dist/index.esm.js +4238 -2124
  65. package/dist/index.js +4247 -2122
  66. package/dist/plugin/TableColumnSetting/index.d.ts +6 -5
  67. package/dist/utils/RequestCacheManager.d.ts +82 -0
  68. package/dist/utils/TableUtils.d.ts +18 -19
  69. package/dist/utils/cachedRequest.d.ts +76 -0
  70. package/dist/utils/index.d.ts +1 -0
  71. package/dist/utils/utils.d.ts +41 -0
  72. package/package.json +16 -14
  73. package/src/assets/btn-cancel.svg +3 -0
  74. package/src/assets/btn-copy.svg +3 -0
  75. package/src/assets/btn-delete.svg +2 -29
  76. package/src/assets/btn-edit.svg +2 -19
  77. package/src/assets/btn-hangUp.svg +3 -0
  78. package/src/assets/btn-print.svg +3 -0
  79. package/src/assets/btn-refresh.svg +3 -0
  80. package/src/assets/btn-unhook.svg +3 -0
  81. package/src/components/Business/AddSelectBusiness/index.md +8 -2
  82. package/src/components/Business/AddSelectBusiness/index.tsx +4 -1
  83. package/src/components/Business/BsLayouts/Components/ChooseStore/services.ts +1 -1
  84. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +1 -1
  85. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +1 -1
  86. package/src/components/Business/BsLayouts/Components/RightContent/home.less +1 -1
  87. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +2 -2
  88. package/src/components/Business/BsLayouts/service.ts +1 -1
  89. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +6 -5
  90. package/src/components/Business/BsSulaQueryTable/bssulaquerytable.less +0 -4
  91. package/src/components/Business/BsSulaQueryTable/index.less +5 -3
  92. package/src/components/Business/BsSulaQueryTable/index.md +45 -32
  93. package/src/components/Business/BsSulaQueryTable/index.tsx +154 -76
  94. package/src/components/Business/BsSulaQueryTable/setting.tsx +47 -11
  95. package/src/components/Business/BsSulaQueryTable/utils.less +1 -1
  96. package/src/components/Business/BsSulaQueryTable/utils.tsx +15 -12
  97. package/src/components/Business/CommodityEntry/index.md +1 -1
  98. package/src/components/Business/CommodityEntry/index.tsx +11 -9
  99. package/src/components/Business/DetailPageWrapper/index.less +1 -1
  100. package/src/components/Business/DetailPageWrapper/index.tsx +24 -5
  101. package/src/components/Business/DetailPageWrapper/utils.tsx +7 -2
  102. package/src/components/Business/HomePageWrapper/index.less +1 -1
  103. package/src/components/Business/ItemPropertySelector/index.tsx +88 -0
  104. package/src/components/Business/JsonQueryTable/function.ts +1 -1
  105. package/src/components/Business/JsonQueryTable/index.tsx +1 -1
  106. package/src/components/Business/ModalUtils/index.tsx +45 -0
  107. package/src/components/Business/PropertyModal/index.tsx +1 -1
  108. package/src/components/Business/SearchSelect/BusinessUtils.tsx +625 -76
  109. package/src/components/Business/SearchSelect/index.md +4 -4
  110. package/src/components/Business/SearchSelect/utils.ts +27 -5
  111. package/src/components/Business/SystemLog/index.md +37 -0
  112. package/src/components/Business/SystemLog/index.tsx +87 -0
  113. package/src/components/Business/columnSettingTable/columnSetting.tsx +28 -12
  114. package/src/components/Business/columnSettingTable/index.less +5 -3
  115. package/src/components/Business/columnSettingTable/index.md +200 -136
  116. package/src/components/Business/columnSettingTable/index.tsx +168 -39
  117. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +188 -56
  118. package/src/components/Functional/AddSelect/helps.ts +1 -1
  119. package/src/components/Functional/AddSelect/index.tsx +132 -13
  120. package/src/components/Functional/BillEntry/index.less +3 -0
  121. package/src/components/Functional/BillEntry/index.tsx +1 -1
  122. package/src/components/Functional/DataImport/index.tsx +1 -1
  123. package/src/components/Functional/DataValidation/index.md +1 -0
  124. package/src/components/Functional/DataValidation/index.tsx +161 -27
  125. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +1 -1
  126. package/src/components/Functional/QueryMutipleInput/index.tsx +12 -3
  127. package/src/components/Functional/QueryMutipleSelect/index.tsx +3 -2
  128. package/src/components/Functional/SearchSelect/index.less +4 -0
  129. package/src/components/Functional/SearchSelect/index.tsx +68 -24
  130. package/src/components/Functional/SearchSelect/utils.tsx +17 -11
  131. package/src/components/Functional/TreeSearchSelect/index.tsx +3 -2
  132. package/src/components/Solution/RuleComponent/InnerSelect.tsx +1 -0
  133. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +11 -2
  134. package/src/components/Solution/RuleComponent/index.js +75 -4
  135. package/src/components/Solution/RuleComponent/ruleFiled.js +26 -2
  136. package/src/components/Solution/RuleComponent/services.ts +1 -1
  137. package/src/components/Solution/RuleSetter/service.js +1 -1
  138. package/src/index.ts +3 -0
  139. package/src/plugin/TableColumnSetting/index.less +5 -3
  140. package/src/plugin/TableColumnSetting/index.tsx +80 -13
  141. package/src/styles/bsDefault.less +9 -3
  142. package/src/utils/RequestCacheManager.ts +213 -0
  143. package/src/utils/RequestCache_Examples.md +137 -0
  144. package/src/utils/RequestCache_README.md +170 -0
  145. package/src/utils/TableUtils.less +1 -1
  146. package/src/utils/cachedRequest.ts +288 -0
  147. package/src/utils/index.ts +1 -0
  148. package/src/utils/request.ts +8 -4
  149. package/src/utils/requestUtils.ts +1 -1
  150. package/src/utils/utils.ts +52 -16
package/.umirc.ts CHANGED
@@ -15,7 +15,7 @@ export default defineConfig({
15
15
  '@form-item-margin-bottom':'4px',
16
16
  '@table-padding-vertical': '4px',
17
17
  '@table-padding-horizontal': '4px'
18
- },
18
+ },
19
19
  bssula: {},
20
20
  favicon:
21
21
  'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
@@ -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://occp-dev.xtepchina.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://occp-dev.xtepchina.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://occp-dev.xtepchina.com/', // 开发环境
58
58
  changeOrigin: true,
59
59
  },
60
60
  '/drp-ops/': {
61
- target: 'http://bitsun.cc0b9108c833e4298b9db565441546718.cn-shanghai.alicontainer.com/', // 开发环境
61
+ target: 'https://occp-dev.xtepchina.com/', // 开发环境
62
62
  changeOrigin: true,
63
63
  },
64
64
  '/channel-manage/': {
65
- target: 'http://bitsun.cc0b9108c833e4298b9db565441546718.cn-shanghai.alicontainer.com/', // 开发环境
65
+ target: 'https://occp-dev.xtepchina.com/', // 开发环境
66
66
  changeOrigin: true,
67
67
  },
68
68
  '/items/': {
69
- target: 'http://bitsun.cc0b9108c833e4298b9db565441546718.cn-shanghai.alicontainer.com/', // 开发环境
69
+ target: 'https://occp-dev.xtepchina.com/', // 开发环境
70
70
  changeOrigin: true,
71
71
  },
72
72
  '/stock/': {
73
- target: 'http://bitsun.cc0b9108c833e4298b9db565441546718.cn-shanghai.alicontainer.com/', // 开发环境
73
+ target: 'https://occp-dev.xtepchina.com/', // 开发环境
74
74
  changeOrigin: true,
75
75
  },
76
76
  '/basic/': {
77
- target: 'http://bitsun.cc0b9108c833e4298b9db565441546718.cn-shanghai.alicontainer.com/', // 开发环境
77
+ target: 'https://occp-dev.xtepchina.com/', // 开发环境
78
78
  changeOrigin: true,
79
79
  },
80
80
  '/srm-ops/': {
81
- target: 'http://bitsun.cc0b9108c833e4298b9db565441546718.cn-shanghai.alicontainer.com/', // 开发环境
81
+ target: 'https://occp-dev.xtepchina.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
  });
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
- export declare const AddSkuSelect: (parProps: any) => React.JSX.Element;
3
- export declare const AddSkcSelect: (parProps: any) => React.JSX.Element;
4
- export declare const AddSpuSelect: (parProps: any) => React.JSX.Element;
1
+ export declare const AddSkuSelect: (parProps: any) => JSX.Element;
2
+ export declare const AddSkcSelect: (parProps: any) => JSX.Element;
3
+ export declare const AddSpuSelect: (parProps: any) => JSX.Element;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import './index.less';
3
2
  export type SiderTheme = 'light' | 'dark';
4
- declare const DrawContent: ({ onClose, itemPath }: any) => React.JSX.Element;
3
+ declare const DrawContent: ({ onClose, itemPath }: any) => JSX.Element;
5
4
  export default DrawContent;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const ChooseStore: (props: any) => React.JSX.Element;
1
+ declare const ChooseStore: (props: any) => JSX.Element;
3
2
  export default ChooseStore;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import './index.less';
3
- declare const MenuSetting: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
+ declare const MenuSetting: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
4
4
  export default MenuSetting;
@@ -12,6 +12,6 @@ declare class LeftTree extends React.Component<any> {
12
12
  onChange: (e: any) => void;
13
13
  getPathList: (originData: any) => Array<any>;
14
14
  handleAdd2Menu: (path: string) => void;
15
- render(): React.JSX.Element;
15
+ render(): JSX.Element;
16
16
  }
17
17
  export default LeftTree;
@@ -24,7 +24,7 @@ declare class rightTree extends React.Component<any> {
24
24
  handleBatchDelete: () => void;
25
25
  handleAddTreeNode: (e: any, item: any) => void;
26
26
  onCheck: (checkedKeysValue: React.Key[]) => void;
27
- getChildMenu: (item: any) => React.JSX.Element;
28
- render(): React.JSX.Element;
27
+ getChildMenu: (item: any) => JSX.Element;
28
+ render(): JSX.Element;
29
29
  }
30
30
  export default rightTree;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import './drawContent.less';
3
- declare const DrawContent: ({ onClose, originRoutes, itemPath }: any) => React.JSX.Element;
2
+ declare const DrawContent: ({ onClose, originRoutes, itemPath }: any) => JSX.Element;
4
3
  export default DrawContent;
@@ -1,3 +1,2 @@
1
- import React from "react";
2
- declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => React.JSX.Element;
1
+ declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => JSX.Element;
3
2
  export default CustomerMenuHeader;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import './index.less';
3
- declare const CustomerMenu: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
+ declare const CustomerMenu: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
4
4
  export default CustomerMenu;
@@ -1,5 +1,4 @@
1
- import React from "react";
2
1
  import './index.less';
3
2
  export declare const judgeIsEmpty: (value: any) => boolean;
4
- declare const GlobalHeaderCom: (props: any) => React.JSX.Element;
3
+ declare const GlobalHeaderCom: (props: any) => JSX.Element;
5
4
  export default GlobalHeaderCom;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: (props: any) => React.JSX.Element;
1
+ declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
@@ -14,5 +14,5 @@ export type BasicLayoutContext = {
14
14
  } & {
15
15
  breadcrumbNameMap: Record<string, MenuDataItem>;
16
16
  };
17
- declare const _default: (props: any) => React.JSX.Element;
17
+ declare const _default: (props: any) => JSX.Element;
18
18
  export default _default;
@@ -25,13 +25,13 @@ declare class SearchItemTable extends React.Component {
25
25
  } | {
26
26
  title: string;
27
27
  dataIndex: string;
28
- render: (text: any, record: any) => React.JSX.Element;
28
+ render: (text: any, record: any) => JSX.Element;
29
29
  className?: undefined;
30
30
  } | {
31
31
  title: string;
32
32
  dataIndex: string;
33
33
  className: string;
34
- render: () => React.JSX.Element;
34
+ render: () => JSX.Element;
35
35
  })[];
36
36
  showModal: () => void;
37
37
  handleOk: (e?: React.MouseEvent<HTMLElement>) => void;
@@ -41,18 +41,18 @@ declare class SearchItemTable extends React.Component {
41
41
  oldIndex: any;
42
42
  newIndex: any;
43
43
  }) => void;
44
- DraggableContainer: (props: any) => React.JSX.Element;
44
+ DraggableContainer: (props: any) => JSX.Element;
45
45
  DraggableBodyRow: ({ className, style, ...restProps }: {
46
46
  [x: string]: any;
47
47
  className: any;
48
48
  style: any;
49
- }) => React.JSX.Element;
49
+ }) => JSX.Element;
50
50
  onChange: (e: CheckboxChangeEvent, name: any) => void;
51
51
  handleReset: () => void;
52
52
  handleResetSetting: () => void;
53
53
  onSearch: (e: any) => void;
54
54
  onSearchSort: (e: any) => void;
55
55
  showSearchItemLabel: (item: object) => any;
56
- render(): React.JSX.Element;
56
+ render(): JSX.Element;
57
57
  }
58
58
  export default SearchItemTable;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import './bssulaquerytable.less';
3
- declare const _default: (props: any) => React.JSX.Element;
2
+ declare const _default: (props: any) => JSX.Element;
4
3
  export default _default;
@@ -12,9 +12,12 @@ declare class SortableTable extends React.Component {
12
12
  defaultValue: never[];
13
13
  bsTableCode: string;
14
14
  };
15
- patchUserColumnConfig: (config: any) => Promise<unknown>;
15
+ patchUserColumnConfig: (config: any, tableCode: any) => Promise<unknown>;
16
16
  getConfigFromlocalstorage: () => any;
17
- patchConfigToLocalstorage: (configvalue: any) => void;
17
+ patchConfigToLocalstorage: (configvalue: any, tableCode: any, newDataSource: any) => void;
18
+ isColumnsChange: (pre?: never[], next?: never[]) => boolean;
19
+ validateLocalStorageConfig: (datasource: any, tableCode: string) => void;
20
+ componentWillReceiveProps(nextProps: any): void;
18
21
  setInitValue: (isClick?: boolean) => void;
19
22
  componentDidMount(): void;
20
23
  columns: ({
@@ -22,18 +25,18 @@ declare class SortableTable extends React.Component {
22
25
  dataIndex: string;
23
26
  className: string;
24
27
  width: number;
25
- render: (text: any, record: any) => React.JSX.Element;
28
+ render: (text: any, record: any) => JSX.Element;
26
29
  } | {
27
30
  title: string;
28
31
  dataIndex: string;
29
- render: (text: any, record: any) => React.JSX.Element;
32
+ render: (text: any, record: any) => JSX.Element | null;
30
33
  className?: undefined;
31
34
  width?: undefined;
32
35
  } | {
33
36
  title: string;
34
37
  dataIndex: string;
35
38
  className: string;
36
- render: () => React.JSX.Element;
39
+ render: () => JSX.Element;
37
40
  width?: undefined;
38
41
  })[];
39
42
  showModal: () => void;
@@ -44,17 +47,17 @@ declare class SortableTable extends React.Component {
44
47
  oldIndex: any;
45
48
  newIndex: any;
46
49
  }) => void;
47
- DraggableContainer: (props: any) => React.JSX.Element;
50
+ DraggableContainer: (props: any) => JSX.Element;
48
51
  DraggableBodyRow: ({ className, style, ...restProps }: {
49
52
  [x: string]: any;
50
53
  className: any;
51
54
  style: any;
52
- }) => React.JSX.Element;
55
+ }) => JSX.Element;
53
56
  onChange: (e: CheckboxChangeEvent, title: any) => void;
54
57
  handleReset: () => void;
55
58
  handleResetSetting: () => Promise<unknown>;
56
59
  onSearch: (e: any) => void;
57
60
  onSearchSort: (e: any) => void;
58
- render(): React.JSX.Element;
61
+ render(): JSX.Element;
59
62
  }
60
63
  export default SortableTable;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import moment from 'moment';
3
2
  import './utils.less';
4
- export declare const handleStatusBadge: (text: any, color: any) => React.JSX.Element;
5
- export declare const HandleTotalCount: (totalParams: any) => React.JSX.Element;
3
+ export declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
4
+ export declare const HandleTotalCount: (totalParams: any) => JSX.Element;
6
5
  export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
7
6
  type: string;
8
7
  width: number;
@@ -42,18 +41,18 @@ export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) =
42
41
  };
43
42
  export declare const renderZeroInSummary: (value: any) => number | "-";
44
43
  export declare const calculateValidPeriod: (start: any, end: any) => string;
45
- export declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
46
- export declare const handleTextLineFeed: (text: string | undefined, width?: number) => React.JSX.Element;
47
- export declare const handleTextOverflow: (text: string | undefined, width?: number) => React.JSX.Element;
48
- export declare const handleTextOverflowNoTooltip: (text: string | undefined, width?: number) => React.JSX.Element;
49
- export declare const handleTooltip: (text: any, timeTrue?: boolean) => React.JSX.Element;
50
- export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => React.JSX.Element;
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 handleTextOverflowNoTooltip: (text: string | undefined, width?: number) => JSX.Element;
48
+ export declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
49
+ export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
51
50
  type tableColumnsImageType = {
52
51
  width?: number | string;
53
52
  height?: number | string;
54
53
  [key: string]: any;
55
54
  };
56
- export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => React.JSX.Element;
55
+ export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
57
56
  type UserColumnsType = {
58
57
  name: string;
59
58
  department?: string;
@@ -61,8 +60,8 @@ type UserColumnsType = {
61
60
  company?: string;
62
61
  avatar?: string;
63
62
  };
64
- export declare const userColumns: (props: UserColumnsType) => React.JSX.Element;
65
- export declare const userInfoCard: (props: any) => React.JSX.Element;
63
+ export declare const userColumns: (props: UserColumnsType) => JSX.Element;
64
+ export declare const userInfoCard: (props: any) => JSX.Element;
66
65
  export declare function handleCommonTimeRenderHours(text: any, format?: any): any;
67
66
  export declare function handleCommonTimeRender(text: any, format?: any): any;
68
67
  interface ColumnsEditInterfave {
@@ -80,9 +79,9 @@ interface ColumnsEditInterfave {
80
79
  };
81
80
  [key: string]: any;
82
81
  }
83
- export declare const ColumnsEdit: (props: ColumnsEditInterfave) => React.JSX.Element;
84
- export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
85
- export declare const textIcon: (type: string | number, text?: string) => React.JSX.Element | undefined;
82
+ export declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
83
+ export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
84
+ export declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
86
85
  export declare const renderFixed2: (text: any) => any;
87
86
  export declare const getItemDefaultWidth: (item: any) => number;
88
87
  /**
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const CommodityEntry: (props: any) => React.JSX.Element;
1
+ declare const CommodityEntry: (props: any) => JSX.Element;
3
2
  export default CommodityEntry;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import './index.less';
3
- declare const _default: (props: any) => React.JSX.Element;
2
+ declare const _default: (props: any) => JSX.Element;
4
3
  export default _default;
@@ -1,6 +1,6 @@
1
- import React, { Component } from 'react';
1
+ import { Component } from 'react';
2
2
  import './index.less';
3
3
  export default class GuideWrapper extends Component {
4
- static Field: ({ children, titleExtra, title, extra, bordered, ...props }: any) => React.JSX.Element;
5
- render(): React.JSX.Element;
4
+ static Field: ({ children, titleExtra, title, extra, bordered, ...props }: any) => JSX.Element;
5
+ render(): JSX.Element;
6
6
  }
@@ -1,10 +1,15 @@
1
- import React from 'react';
2
1
  import './index.less';
3
2
  export declare const iconMap: {
4
- edit: React.JSX.Element;
5
- delete: React.JSX.Element;
6
- submit: React.JSX.Element;
7
- more: React.JSX.Element;
3
+ edit: JSX.Element;
4
+ delete: JSX.Element;
5
+ submit: JSX.Element;
6
+ more: JSX.Element;
7
+ hangUp: JSX.Element;
8
+ unhook: JSX.Element;
9
+ refresh: JSX.Element;
10
+ print: JSX.Element;
11
+ copy: JSX.Element;
12
+ cancel: JSX.Element;
8
13
  };
9
- declare const _default: (props: any) => React.JSX.Element;
14
+ declare const _default: (props: any) => JSX.Element;
10
15
  export default _default;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import './index.less';
3
- declare const _default: (props: any) => React.JSX.Element;
2
+ declare const _default: (props: any) => JSX.Element;
4
3
  export default _default;
@@ -0,0 +1,2 @@
1
+ declare const ItemPropertySelector: ({ onChange, value, propertyCode, name, ...restProps }: any) => JSX.Element;
2
+ export default ItemPropertySelector;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const FieldsModifyModal: (props: any) => React.JSX.Element;
1
+ declare const FieldsModifyModal: (props: any) => JSX.Element;
3
2
  export default FieldsModifyModal;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: (props: any) => React.JSX.Element;
1
+ declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  declare const App: ({ record, setValue, formula }: {
3
2
  record: any;
4
3
  setValue: any;
5
4
  formula: any;
6
- }) => React.JSX.Element;
5
+ }) => JSX.Element;
7
6
  export default App;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: (props: any) => React.JSX.Element;
1
+ declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const _default: (props: any) => React.JSX.Element;
1
+ declare const _default: (props: any) => JSX.Element;
3
2
  export default _default;
@@ -0,0 +1,8 @@
1
+ declare const ModalUtils: {
2
+ success: (content: any) => void;
3
+ error: (content: any) => void;
4
+ warning: (content: any) => void;
5
+ confirm: (title: any, content: any, width: any, onOk: any, onCancel: any) => void;
6
+ custom: (config: any) => void;
7
+ };
8
+ export default ModalUtils;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import "./index.less";
3
2
  interface propertyValueType {
4
3
  propertyName: string;
@@ -19,5 +18,5 @@ declare const PropertySelector: ({ value, onChange, width, ...restProps }: {
19
18
  value: valueType;
20
19
  onChange: any;
21
20
  width: string;
22
- }) => React.JSX.Element;
21
+ }) => JSX.Element;
23
22
  export default PropertySelector;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import './index.less';
3
- declare const _default: React.MemoExoticComponent<(props: any) => React.JSX.Element>;
3
+ declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
4
4
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
2
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>>;
3
3
  export default _default;
@@ -1,8 +1,10 @@
1
1
  declare const getDictionarySource: (dicCode: string, needConvertInterger?: boolean) => {};
2
2
  declare const getDictionaryTextByValue: (dicCode: string, value: string | number) => any;
3
- declare const loadSelectSource: (url: string, params?: any) => Promise<unknown>;
3
+ declare const loadSelectSource: (url: string, params?: any, options?: any) => Promise<unknown>;
4
4
  declare const handleDefaultPrefixUrl: (type: string) => string;
5
5
  declare const handleHiddenFields: (fieldsList: any, hiddenFieldsList: any) => any;
6
6
  declare const handleHiddenFieldsRequest: (fieldsRequestList: any, fieldsList: any, hiddenRequestFieldList: any) => any;
7
7
  declare const getFieldIndex: (tableSearchForm: any, name: string) => any;
8
- export { getDictionarySource, getDictionaryTextByValue, loadSelectSource, handleDefaultPrefixUrl, handleHiddenFields, handleHiddenFieldsRequest, getFieldIndex };
8
+ declare const getQueryHeadersList: (params: any) => any;
9
+ declare const getQueryHeadersItem: (queryHeaders: any, queryKey: any) => any;
10
+ export { getDictionarySource, getDictionaryTextByValue, loadSelectSource, handleDefaultPrefixUrl, handleHiddenFields, handleHiddenFieldsRequest, getFieldIndex, getQueryHeadersList, getQueryHeadersItem };
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import './index.less';
3
- declare const _default: (props: any) => React.JSX.Element;
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;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.MemoExoticComponent<(props: any) => React.JSX.Element>;
2
+ declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
3
  export default _default;
@@ -13,10 +13,11 @@ declare class SortableTable extends React.Component<SortTableProps> {
13
13
  searchDataSource: boolean;
14
14
  onSearchSort: boolean;
15
15
  };
16
- patchUserColumnConfig: (config: any) => void;
17
- patchConfigToLocalstorage: (configvalue: any, tableCode: string) => void;
16
+ patchUserColumnConfig: (config: any, tableCodes: any) => void;
17
+ patchConfigToLocalstorage: (configvalue: any, tableCode: string, newDataSource: any) => void;
18
18
  setInitValue: (datasource: any[]) => void;
19
19
  isColumnsChange: (pre?: never[], next?: never[]) => boolean;
20
+ validateLocalStorageConfig: (datasource: any, tableCode: string) => void;
20
21
  componentWillReceiveProps(nextProps: any): void;
21
22
  componentDidMount(): void;
22
23
  columns: ({
@@ -24,18 +25,18 @@ declare class SortableTable extends React.Component<SortTableProps> {
24
25
  dataIndex: string;
25
26
  className: string;
26
27
  width: number;
27
- render: (text: any, record: any) => React.JSX.Element;
28
+ render: (text: any, record: any) => JSX.Element;
28
29
  } | {
29
30
  title: string;
30
31
  dataIndex: string;
31
- render: (text: any, record: any) => React.JSX.Element;
32
+ render: (text: any, record: any) => JSX.Element;
32
33
  className?: undefined;
33
34
  width?: undefined;
34
35
  } | {
35
36
  title: string;
36
37
  dataIndex: string;
37
38
  className: string;
38
- render: () => React.JSX.Element;
39
+ render: () => JSX.Element;
39
40
  width?: undefined;
40
41
  })[];
41
42
  showModal: () => void;
@@ -43,14 +44,14 @@ declare class SortableTable extends React.Component<SortTableProps> {
43
44
  handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
44
45
  handleTableHeadHidden: (title: string) => void;
45
46
  onSortEnd: ({ oldIndex, newIndex }: any) => void;
46
- DraggableContainer: (props: any) => React.JSX.Element;
47
- DraggableBodyRow: ({ className, style, ...restProps }: any) => React.JSX.Element;
47
+ DraggableContainer: (props: any) => JSX.Element;
48
+ DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
48
49
  onChange: (e: any, title: any) => void;
49
50
  handleReset: () => void;
50
51
  handleResetSetting: () => Promise<unknown>;
51
52
  onSearch: (e: any) => void;
52
53
  onSearchSort: (e: any) => void;
53
54
  getConfigFromlocalstorage: () => any;
54
- render(): React.JSX.Element;
55
+ render(): JSX.Element;
55
56
  }
56
57
  export default SortableTable;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import './style.less';
3
- declare const _default: ({ summary }: any) => React.JSX.Element;
2
+ declare const _default: ({ summary }: any) => JSX.Element;
4
3
  export default _default;