bmc-common-resource 1.1.112 → 1.1.113
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.
|
@@ -9,9 +9,10 @@ export declare const CLASSIFY_ROOM_GROUP_MAP: ClassifyRoomGroupMapType;
|
|
|
9
9
|
* @param classifyType 品项类型常量名
|
|
10
10
|
* @param classifyRoomGroupMap 品项房间分组映射对象(JSON格式)
|
|
11
11
|
* @param groupCategoryMap 分组分类映射对象(JSON格式)
|
|
12
|
+
* @param roomOptions 房间选项
|
|
12
13
|
* @returns 包含房间、分组和产品分类的嵌套数组
|
|
13
14
|
*/
|
|
14
|
-
export declare function getClassifyRoomsAndGroups(classifyType: string, classifyRoomGroupMap: any, groupCategoryMap: any): RoomData[];
|
|
15
|
+
export declare function getClassifyRoomsAndGroups(classifyType: string, classifyRoomGroupMap: any, groupCategoryMap: any, roomOptions: any[]): RoomData[];
|
|
15
16
|
/**
|
|
16
17
|
* 根据品项代码和房间代码获取可用的分组
|
|
17
18
|
* @param classifyType 品项类型常量名
|
|
@@ -34,15 +35,6 @@ export declare function getClassifyBaseInfo(classifyCode: string, classifyRoomGr
|
|
|
34
35
|
order: number;
|
|
35
36
|
matchUnit?: string[];
|
|
36
37
|
} | null;
|
|
37
|
-
/**
|
|
38
|
-
* 获取所有品项配置的房间分组,并进行去重合并
|
|
39
|
-
* 适用于全品项(ALL_SUBJECT)报价方案
|
|
40
|
-
* @param excludeClassifyCodes 需要排除的品项代码数组
|
|
41
|
-
* @param classifyRoomGroupMap 品项房间分组映射对象(JSON格式)
|
|
42
|
-
* @param groupCategoryMap 分组分类映射对象(JSON格式)
|
|
43
|
-
* @returns 合并去重后的房间分组数据
|
|
44
|
-
*/
|
|
45
|
-
export declare function getAllClassifyRoomsAndGroups(excludeClassifyCodes: string[] | undefined, classifyRoomGroupMap: any, groupCategoryMap: any): RoomData[];
|
|
46
38
|
/**
|
|
47
39
|
* 根据产品分类获取对应的分组类型
|
|
48
40
|
* @param productCategory 产品分类代码(如HALL_CABINET)
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
import ROOM_TYPES, { getSortedRoomTypes, getRoomTypeByKey } from './roomTypes';
|
|
6
6
|
import PRODUCT_CATEGORIES, { getProductCategoryByKey, getAllProductCategories, ProductCategory } from './productCategories';
|
|
7
7
|
import GROUP_TYPES, { getSortedGroupTypes, getGroupTypeByKey, getProductCategoriesByGroupType, getPriceParamsByGroupType } from './groupTypes';
|
|
8
|
-
import CLASSIFY_ROOM_GROUP_MAP, { getClassifyRoomsAndGroups, getGroupsByClassifyAndRoom,
|
|
8
|
+
import CLASSIFY_ROOM_GROUP_MAP, { getClassifyRoomsAndGroups, getGroupsByClassifyAndRoom, 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';
|
|
12
12
|
export * from './mappings';
|
|
13
13
|
export * from './models';
|
|
14
|
-
export { ROOM_TYPES, GROUP_TYPES, PRODUCT_CATEGORIES, CLASSIFY_ROOM_GROUP_MAP, calculateProductMeasure, getMeasureUnitInfo, getAllMeasureUnits, isDimensionRequired, isDimensionRelated, ItemUnitMeasureCalculator, getClassifyRoomsAndGroups, getGroupsByClassifyAndRoom,
|
|
14
|
+
export { ROOM_TYPES, GROUP_TYPES, PRODUCT_CATEGORIES, CLASSIFY_ROOM_GROUP_MAP, calculateProductMeasure, getMeasureUnitInfo, getAllMeasureUnits, isDimensionRequired, isDimensionRelated, ItemUnitMeasureCalculator, getClassifyRoomsAndGroups, getGroupsByClassifyAndRoom, getClassifyBaseInfo, getSortedRoomTypes, getRoomTypeByKey, getSortedGroupTypes, getGroupTypeByKey, getProductCategoriesByGroupType, getPriceParamsByGroupType, getGroupTypeByProductCategory, getProductCategoryByKey, getAllProductCategories, getCategoryViewSetting, ProductCategory };
|
|
15
15
|
interface SolutionModuleExports {
|
|
16
16
|
ROOM_TYPES: typeof ROOM_TYPES;
|
|
17
17
|
GROUP_TYPES: typeof GROUP_TYPES;
|
|
@@ -25,7 +25,6 @@ interface SolutionModuleExports {
|
|
|
25
25
|
ItemUnitMeasureCalculator: typeof ItemUnitMeasureCalculator;
|
|
26
26
|
getClassifyRoomsAndGroups: typeof getClassifyRoomsAndGroups;
|
|
27
27
|
getGroupsByClassifyAndRoom: typeof getGroupsByClassifyAndRoom;
|
|
28
|
-
getAllClassifyRoomsAndGroups: typeof getAllClassifyRoomsAndGroups;
|
|
29
28
|
getClassifyBaseInfo: typeof getClassifyBaseInfo;
|
|
30
29
|
getSortedRoomTypes: typeof getSortedRoomTypes;
|
|
31
30
|
getRoomTypeByKey: typeof getRoomTypeByKey;
|