bmc-common-resource 1.1.84 → 1.1.86
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/index.d.ts +2 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/solution/classifyRoomGroupMap.d.ts +8 -0
- package/dist/modules/solution/groupTypes.d.ts +0 -8
- package/dist/modules/solution/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -37,3 +37,11 @@ export default CLASSIFY_ROOM_GROUP_MAP;
|
|
|
37
37
|
* @returns 合并去重后的房间分组数据
|
|
38
38
|
*/
|
|
39
39
|
export declare function getAllClassifyRoomsAndGroups(excludeClassifyCodes?: string[]): RoomData[];
|
|
40
|
+
/**
|
|
41
|
+
* 根据产品分类获取对应的分组类型
|
|
42
|
+
* @param productCategory 产品分类代码(如HALL_CABINET)
|
|
43
|
+
* @param mainCategoryCode 主分类code (如CABINET_PANEL)
|
|
44
|
+
* @param classifyType 品项类型(可选),如果提供则在该品项下查找
|
|
45
|
+
* @returns 匹配的分组类型代码(如CABINET_TYPE),未找到返回null
|
|
46
|
+
*/
|
|
47
|
+
export declare function getGroupTypeByProductCategory(productCategory: string, mainCategoryCode?: string, classifyType?: string): string | null;
|
|
@@ -26,12 +26,4 @@ export declare function getGroupTypeByKey(groupTypeKey: string, classifyType?: s
|
|
|
26
26
|
* @returns 格式化的产品分类对象数组
|
|
27
27
|
*/
|
|
28
28
|
export declare function getProductCategoriesByGroupType(groupTypeKey: string, classifyType?: string): ProductCategoryData[];
|
|
29
|
-
/**
|
|
30
|
-
* 根据产品分类获取对应的分组类型
|
|
31
|
-
* @param productCategory 产品分类代码(如HALL_CABINET)
|
|
32
|
-
* @param mainCategoryCode 主分类code (如CABINET_PANEL)
|
|
33
|
-
* @param classifyType 品项类型(可选),如果提供则在该品项下查找
|
|
34
|
-
* @returns 匹配的分组类型代码(如CABINET_TYPE),未找到返回null
|
|
35
|
-
*/
|
|
36
|
-
export declare function getGroupTypeByProductCategory(productCategory: string, mainCategoryCode?: string, classifyType?: string): string | null;
|
|
37
29
|
export default BASE_GROUP_TYPES;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import ROOM_TYPES, { getSortedRoomTypes, getRoomTypeByKey } from './roomTypes';
|
|
6
6
|
import PRODUCT_CATEGORIES, { getProductCategoryByKey, getAllProductCategories, ProductCategory } from './productCategories';
|
|
7
|
-
import GROUP_TYPES, { getSortedGroupTypes, getGroupTypeByKey, getProductCategoriesByGroupType
|
|
8
|
-
import CLASSIFY_ROOM_GROUP_MAP, { getClassifyRoomsAndGroups, getGroupsByClassifyAndRoom, getAllClassifyRoomsAndGroups, getClassifyBaseInfo } from './classifyRoomGroupMap';
|
|
7
|
+
import GROUP_TYPES, { getSortedGroupTypes, getGroupTypeByKey, getProductCategoriesByGroupType } from './groupTypes';
|
|
8
|
+
import CLASSIFY_ROOM_GROUP_MAP, { getClassifyRoomsAndGroups, getGroupsByClassifyAndRoom, getAllClassifyRoomsAndGroups, getClassifyBaseInfo, getGroupTypeByProductCategory } from './classifyRoomGroupMap';
|
|
9
9
|
import { calculateProductMeasure, getMeasureUnitInfo, getAllMeasureUnits, isDimensionRequired, isDimensionRelated, ItemUnitMeasureCalculator } from './measure';
|
|
10
10
|
import getCategoryViewSetting from './categoryFormMap';
|
|
11
11
|
export * from './types/index';
|