@bit-sun/business-component 4.2.1-alpha.7-aiwei → 4.2.1-alpha.8-aiwei
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.
- package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -14
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
- package/dist/components/Business/CommonAlert/index.d.ts +2 -1
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -11
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
- package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -1
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +2 -1
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +2 -1
- package/dist/components/Functional/AuthButton/index.d.ts +2 -1
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +3 -2
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +1026 -762
- package/dist/index.js +1026 -762
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +19 -18
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +3 -3
- package/src/components/Functional/SearchSelect/index.tsx +13 -0
|
@@ -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) => JSX.Element;
|
|
41
|
+
render: (text: any, record: any) => React.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: () => JSX.Element;
|
|
48
|
+
render: () => React.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) => JSX.Element;
|
|
57
|
-
DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
|
|
56
|
+
DraggableContainer: (props: any) => React.JSX.Element;
|
|
57
|
+
DraggableBodyRow: ({ className, style, ...restProps }: any) => React.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(): JSX.Element;
|
|
63
|
+
render(): React.JSX.Element;
|
|
64
64
|
}
|
|
65
65
|
export default TableColumnSetting;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import moment from 'moment';
|
|
2
3
|
type mediaListType = {
|
|
3
4
|
type: number;
|
|
@@ -48,24 +49,24 @@ declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
|
|
|
48
49
|
};
|
|
49
50
|
submit: any;
|
|
50
51
|
};
|
|
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;
|
|
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;
|
|
60
61
|
declare const handleCommonTimeRender: (text: any, format?: any) => any;
|
|
61
|
-
declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
62
|
-
declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
62
|
+
declare const handleTooltip: (text: any, timeTrue?: boolean) => React.JSX.Element;
|
|
63
|
+
declare const handleTooltipHours: (text: any, timeTrue?: boolean) => React.JSX.Element;
|
|
63
64
|
type tableColumnsImageType = {
|
|
64
65
|
width?: number | string;
|
|
65
66
|
height?: number | string;
|
|
66
67
|
[key: string]: any;
|
|
67
68
|
};
|
|
68
|
-
declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
|
|
69
|
+
declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => React.JSX.Element;
|
|
69
70
|
interface ColumnsEditInterfave {
|
|
70
71
|
text?: string;
|
|
71
72
|
record?: any;
|
|
@@ -81,7 +82,7 @@ interface ColumnsEditInterfave {
|
|
|
81
82
|
};
|
|
82
83
|
[key: string]: any;
|
|
83
84
|
}
|
|
84
|
-
declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
|
|
85
|
+
declare const ColumnsEdit: (props: ColumnsEditInterfave) => React.JSX.Element;
|
|
85
86
|
type UserColumnsType = {
|
|
86
87
|
name: string;
|
|
87
88
|
department?: string;
|
|
@@ -89,13 +90,13 @@ type UserColumnsType = {
|
|
|
89
90
|
company?: string;
|
|
90
91
|
avatar?: string;
|
|
91
92
|
};
|
|
92
|
-
declare const userColumns: (props: UserColumnsType) => JSX.Element;
|
|
93
|
-
declare const userInfoCard: (props: any) => JSX.Element;
|
|
93
|
+
declare const userColumns: (props: UserColumnsType) => React.JSX.Element;
|
|
94
|
+
declare const userInfoCard: (props: any) => React.JSX.Element;
|
|
94
95
|
declare const getItemDefaultWidth: (item: any) => number;
|
|
95
|
-
declare const sulaTableRenderTooltip: ({ text }: any) => JSX.Element;
|
|
96
|
+
declare const sulaTableRenderTooltip: ({ text }: any) => React.JSX.Element;
|
|
96
97
|
declare const renderNumberText: ({ text }: any) => any;
|
|
97
98
|
declare const renderFixed2: (text: any) => any;
|
|
98
|
-
declare const handleTextWarpCustom: (text: any, style?: {}) => JSX.Element;
|
|
99
|
+
declare const handleTextWarpCustom: (text: any, style?: {}) => React.JSX.Element;
|
|
99
100
|
declare const calculateValidPeriod: (start: any, end: any) => string;
|
|
100
|
-
declare const handleTextWarp: (text: any) => JSX.Element;
|
|
101
|
+
declare const handleTextWarp: (text: any) => React.JSX.Element;
|
|
101
102
|
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
|
@@ -1858,15 +1858,15 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1858
1858
|
tableSearchForm = [
|
|
1859
1859
|
{ name: 'qp-name-like', label: '客户名称' },
|
|
1860
1860
|
{ name: 'qp-code-like', label: '客户编码' },
|
|
1861
|
-
{ name: 'qp-createOrgCode-
|
|
1861
|
+
{ name: 'qp-createOrgCode-in', type: 'select', label: '创建组织', field: {
|
|
1862
1862
|
type: 'select',
|
|
1863
1863
|
props: {
|
|
1864
|
-
|
|
1864
|
+
mode: 'multiple',
|
|
1865
1865
|
notFoundContent: '暂无数据',
|
|
1866
1866
|
allowClear: true,
|
|
1867
1867
|
showSearch: true,
|
|
1868
1868
|
showArrow: true,
|
|
1869
|
-
|
|
1869
|
+
maxTagCount: 1,
|
|
1870
1870
|
optionFilterProp: 'children',
|
|
1871
1871
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1872
1872
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
@@ -55,6 +55,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
55
55
|
viewShowValueStr, // 详情展示值,不传展示组件处理的默认值
|
|
56
56
|
searchStartLength, // 默认不校验长度去搜索,如果配置了,则按照配置项长度进行处理搜索
|
|
57
57
|
isQuery = false, // 是否是查询条件
|
|
58
|
+
requireSearchCondition = false, // 是否必须选择一个值
|
|
58
59
|
} = rCTemp || {};
|
|
59
60
|
const requestConfig = {url,method,otherParams,isMap,fixedparameter,fieldValToParam,fixedparamsDisabled,mappingTextField,mappingTextShowKeyField,mappingValueField,mappingTextShowTextField,init,extralHeaders,specialBracket,noNeedSplit,noOperate,viewShowValueStr,searchStartLength,...rCTemp};
|
|
60
61
|
const resultSourceKey = handleSourceName(sourceName || requestConfig?.sourceName || ctx?.name || 'supplierCode')
|
|
@@ -479,6 +480,18 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
479
480
|
|
|
480
481
|
const onSearchTable = () => {
|
|
481
482
|
const params = form.getFieldsValue();
|
|
483
|
+
// 必须选择一个值
|
|
484
|
+
if(requireSearchCondition) {
|
|
485
|
+
const hasValidValue = Object.values(params).some(value =>
|
|
486
|
+
(Array.isArray(value) && value.length > 0) ||
|
|
487
|
+
(typeof value === 'string' && value.trim().length > 0)
|
|
488
|
+
);
|
|
489
|
+
|
|
490
|
+
if(!hasValidValue) {
|
|
491
|
+
message.warning('请至少选择一个搜索条件');
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
482
495
|
setModalSearched(true);
|
|
483
496
|
setTableFormParams(params);
|
|
484
497
|
getData({ ...params, pageSize: tableInitPageSize }, 2, null);
|