@bit-sun/business-component 4.2.0-alpha.6.16 → 4.2.0-alpha.6.18

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 (67) hide show
  1. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  2. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  3. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  4. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  11. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  12. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  13. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  14. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  15. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  16. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  17. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  18. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  19. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  20. package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
  21. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  22. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  23. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  24. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  28. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  29. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  30. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  31. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  32. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  33. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  34. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  35. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  36. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  37. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  38. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  39. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  40. package/dist/components/Common/Section/index.d.ts +1 -1
  41. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  42. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  43. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  44. package/dist/components/Functional/DataValidation/index.d.ts +4 -4
  45. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  46. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  47. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  48. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  49. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  50. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  51. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  52. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  53. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  54. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  56. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  57. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  58. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  59. package/dist/index.esm.js +794 -1017
  60. package/dist/index.js +794 -1017
  61. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  62. package/dist/utils/TableUtils.d.ts +18 -19
  63. package/package.json +1 -1
  64. package/src/components/Business/BsSulaQueryTable/index.tsx +1 -0
  65. package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
  66. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
  67. package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
@@ -38,14 +38,14 @@ declare class TableColumnSetting extends React.Component<TableColumnSettingProps
38
38
  } | {
39
39
  title: string;
40
40
  dataIndex: string;
41
- render: (text: any, record: any) => React.JSX.Element;
41
+ render: (text: any, record: any) => JSX.Element;
42
42
  className?: undefined;
43
43
  width?: undefined;
44
44
  } | {
45
45
  title: string;
46
46
  dataIndex: string;
47
47
  className: string;
48
- render: () => React.JSX.Element;
48
+ render: () => JSX.Element;
49
49
  width?: undefined;
50
50
  })[];
51
51
  showModal: () => void;
@@ -53,13 +53,13 @@ declare class TableColumnSetting extends React.Component<TableColumnSettingProps
53
53
  handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
54
54
  handleTableHeadHidden: (title: string) => void;
55
55
  onSortEnd: ({ oldIndex, newIndex }: any) => void;
56
- DraggableContainer: (props: any) => React.JSX.Element;
57
- DraggableBodyRow: ({ className, style, ...restProps }: any) => React.JSX.Element;
56
+ DraggableContainer: (props: any) => JSX.Element;
57
+ DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
58
58
  onChange: (e: any, title: any) => void;
59
59
  handleReset: () => void;
60
60
  handleResetSetting: () => Promise<unknown>;
61
61
  onSearch: (e: any) => void;
62
62
  onSearchSort: (e: any) => void;
63
- render(): React.JSX.Element;
63
+ render(): JSX.Element;
64
64
  }
65
65
  export default TableColumnSetting;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import moment from 'moment';
3
2
  type mediaListType = {
4
3
  type: number;
@@ -49,24 +48,24 @@ declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
49
48
  };
50
49
  submit: any;
51
50
  };
52
- declare const textIcon: (type: string | number, text?: string) => React.JSX.Element | undefined;
53
- declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
54
- declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
55
- declare const handleTextOverflow: (text: string | undefined, width?: number) => React.JSX.Element;
56
- declare const handleTextLineFeed: (text: string | undefined, width?: number) => React.JSX.Element;
57
- declare const handleTextTooltip: (text: any) => React.JSX.Element;
58
- declare const handleTextBreakSpaces: (text: any) => React.JSX.Element;
59
- declare const handleStatusBadge: (text: any, color: any) => React.JSX.Element;
60
- declare const HandleTotalCount: (totalParams: any) => React.JSX.Element;
51
+ declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
52
+ declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
53
+ declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
54
+ declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
55
+ declare const handleTextLineFeed: (text: string | undefined, width?: number) => JSX.Element;
56
+ declare const handleTextTooltip: (text: any) => JSX.Element;
57
+ declare const handleTextBreakSpaces: (text: any) => JSX.Element;
58
+ declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
59
+ declare const HandleTotalCount: (totalParams: any) => JSX.Element;
61
60
  declare const handleCommonTimeRender: (text: any, format?: any) => any;
62
- declare const handleTooltip: (text: any, timeTrue?: boolean) => React.JSX.Element;
63
- declare const handleTooltipHours: (text: any, timeTrue?: boolean) => React.JSX.Element;
61
+ declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
62
+ declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
64
63
  type tableColumnsImageType = {
65
64
  width?: number | string;
66
65
  height?: number | string;
67
66
  [key: string]: any;
68
67
  };
69
- declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => React.JSX.Element;
68
+ declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
70
69
  interface ColumnsEditInterfave {
71
70
  text?: string;
72
71
  record?: any;
@@ -82,7 +81,7 @@ interface ColumnsEditInterfave {
82
81
  };
83
82
  [key: string]: any;
84
83
  }
85
- declare const ColumnsEdit: (props: ColumnsEditInterfave) => React.JSX.Element;
84
+ declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
86
85
  type UserColumnsType = {
87
86
  name: string;
88
87
  department?: string;
@@ -90,13 +89,13 @@ type UserColumnsType = {
90
89
  company?: string;
91
90
  avatar?: string;
92
91
  };
93
- declare const userColumns: (props: UserColumnsType) => React.JSX.Element;
94
- declare const userInfoCard: (props: any) => React.JSX.Element;
92
+ declare const userColumns: (props: UserColumnsType) => JSX.Element;
93
+ declare const userInfoCard: (props: any) => JSX.Element;
95
94
  declare const getItemDefaultWidth: (item: any) => number;
96
- declare const sulaTableRenderTooltip: ({ text }: any) => React.JSX.Element;
95
+ declare const sulaTableRenderTooltip: ({ text }: any) => JSX.Element;
97
96
  declare const renderNumberText: ({ text }: any) => any;
98
97
  declare const renderFixed2: (text: any) => any;
99
- declare const handleTextWarpCustom: (text: any, style?: {}) => React.JSX.Element;
98
+ declare const handleTextWarpCustom: (text: any, style?: {}) => JSX.Element;
100
99
  declare const calculateValidPeriod: (start: any, end: any) => string;
101
- declare const handleTextWarp: (text: any) => React.JSX.Element;
100
+ declare const handleTextWarp: (text: any) => JSX.Element;
102
101
  export { getSkuImg, updateGuanDate, textIcon, handleTextDoubleOrId, handleTextDouble, handleTextOverflow, handleTextLineFeed, handleTextTooltip, handleTextBreakSpaces, handleStatusBadge, HandleTotalCount, handleTooltip, handleCommonTimeRender, handleTooltipHours, tableColumnsImage, ColumnsEdit, userColumns, userInfoCard, getItemDefaultWidth, renderNumberText, sulaTableRenderTooltip, renderFixed2, handleTextWarpCustom, handleTextWarp, calculateValidPeriod };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.2.0-alpha.6.16",
3
+ "version": "4.2.0-alpha.6.18",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -967,6 +967,7 @@ export default (props: any) => {
967
967
  {/* 列设置弹出框表格 */}
968
968
  <SortableTable
969
969
  ref={sortTableRef}
970
+ disableColumnFixed={props.tableProps?.isVirtualTable}
970
971
  setShowColumns={setResizeShowColumns}
971
972
  showColumn={showColumn}
972
973
  setInitialTableInfo={setInitialTableInfo}
@@ -288,6 +288,9 @@ class SortableTable extends React.Component {
288
288
  title: '列首',
289
289
  dataIndex: 'fixedLeft',
290
290
  render: (text, record) => {
291
+ if(this.props.disableColumnFixed) {
292
+ return null
293
+ }
291
294
  return (
292
295
  <span
293
296
  onClick={() => {
@@ -375,6 +378,9 @@ class SortableTable extends React.Component {
375
378
  title: '列尾',
376
379
  dataIndex: 'fixedRight',
377
380
  render: (text, record) => {
381
+ if(this.props.disableColumnFixed) {
382
+ return null
383
+ }
378
384
  return (
379
385
  <span
380
386
  onClick={() => {
@@ -589,7 +589,7 @@ export default function RenderCompItem(props:any){
589
589
  null}
590
590
  {/* 单选/多选 配送方式选择器 */}
591
591
  {((ites?.inputType === 20 || ites?.inputType === 30) &&
592
- ites?.choiceType === 310 && (
592
+ (ites?.choiceType === 310 || ites?.choiceType === 311)&& (
593
593
  <BusinessSearchSelect
594
594
  selectBusinessType="deliveryMode"
595
595
  selectProps={{
@@ -606,6 +606,14 @@ export default function RenderCompItem(props:any){
606
606
  labelInValue={true}
607
607
  value={showValue(ites.code)}
608
608
  requestConfig={{
609
+ ...(ites?.choiceType === 311
610
+ ? {
611
+ otherParams: {
612
+ // 配送方式只选择标准配送方式
613
+ 'qp-recordChannnelCode-eq': 80,
614
+ },
615
+ }
616
+ : {}),
609
617
  filterInit: 'qp-code-in',
610
618
  }}
611
619
  onChange={(value) => {
@@ -1932,7 +1932,7 @@ export default class RuleField extends Component {
1932
1932
  }
1933
1933
  }
1934
1934
  // 配送方式选择器
1935
- if (dataChoiceBusinessType == 310) {
1935
+ if (dataChoiceBusinessType == 310 || dataChoiceBusinessType == 311) {
1936
1936
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
1937
1937
  return (
1938
1938
  <>
@@ -1952,6 +1952,14 @@ export default class RuleField extends Component {
1952
1952
  labelInValue={true}
1953
1953
  value={values[0]}
1954
1954
  requestConfig={{
1955
+ ...(dataChoiceBusinessType === 311
1956
+ ? {
1957
+ otherParams: {
1958
+ // 配送方式只选择标准配送方式
1959
+ 'qp-recordChannnelCode-eq': 80,
1960
+ },
1961
+ }
1962
+ : {}),
1955
1963
  filterInit: 'qp-code-in',
1956
1964
  }}
1957
1965
  onChange={(value) => {
@@ -1983,6 +1991,14 @@ export default class RuleField extends Component {
1983
1991
  labelInValue={true}
1984
1992
  value={values[1]}
1985
1993
  requestConfig={{
1994
+ ...(dataChoiceBusinessType === 311
1995
+ ? {
1996
+ otherParams: {
1997
+ // 配送方式只选择标准配送方式
1998
+ 'qp-recordChannnelCode-eq': 80,
1999
+ },
2000
+ }
2001
+ : {}),
1986
2002
  filterInit: 'qp-code-in',
1987
2003
  }}
1988
2004
  onChange={(value) => {
@@ -2020,6 +2036,14 @@ export default class RuleField extends Component {
2020
2036
  labelInValue={true}
2021
2037
  value={currentValue}
2022
2038
  requestConfig={{
2039
+ ...(dataChoiceBusinessType === 311
2040
+ ? {
2041
+ otherParams: {
2042
+ // 配送方式只选择标准配送方式
2043
+ 'qp-recordChannnelCode-eq': 80,
2044
+ },
2045
+ }
2046
+ : {}),
2023
2047
  filterInit: 'qp-code-in',
2024
2048
  }}
2025
2049
  onChange={(value) => {