bmc-common-resource 1.1.95 → 1.1.97

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.
@@ -26,4 +26,14 @@ export declare function getGroupTypeByKey(groupTypeKey: string, groupCategoryMap
26
26
  * @returns 格式化的产品分类对象数组
27
27
  */
28
28
  export declare function getProductCategoriesByGroupType(groupTypeKey: string, groupCategoryMap: any): ProductCategoryData[];
29
+ /**
30
+ * 获取指定分组的价格单位配置信息
31
+ * @param groupTypeKey 分组类型键
32
+ * @param groupCategoryMap 分组、产品分类映射(JSON格式)
33
+ * @returns 价格单位配置对象,包含priceUnit和/或excludePriceUnit字段;如果没有配置则返回空对象
34
+ */
35
+ export declare function getPriceParamsByGroupType(groupTypeKey: string, groupCategoryMap: any): {
36
+ priceUnit?: string[];
37
+ excludePriceUnit?: string[];
38
+ };
29
39
  export default BASE_GROUP_TYPES;
@@ -4,14 +4,14 @@
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 } from './groupTypes';
7
+ import GROUP_TYPES, { getSortedGroupTypes, getGroupTypeByKey, getProductCategoriesByGroupType, getPriceParamsByGroupType } from './groupTypes';
8
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';
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, getAllClassifyRoomsAndGroups, getClassifyBaseInfo, getSortedRoomTypes, getRoomTypeByKey, getSortedGroupTypes, getGroupTypeByKey, getProductCategoriesByGroupType, getGroupTypeByProductCategory, getProductCategoryByKey, getAllProductCategories, getCategoryViewSetting, ProductCategory };
14
+ export { ROOM_TYPES, GROUP_TYPES, PRODUCT_CATEGORIES, CLASSIFY_ROOM_GROUP_MAP, calculateProductMeasure, getMeasureUnitInfo, getAllMeasureUnits, isDimensionRequired, isDimensionRelated, ItemUnitMeasureCalculator, getClassifyRoomsAndGroups, getGroupsByClassifyAndRoom, getAllClassifyRoomsAndGroups, 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;
@@ -32,6 +32,7 @@ interface SolutionModuleExports {
32
32
  getSortedGroupTypes: typeof getSortedGroupTypes;
33
33
  getGroupTypeByKey: typeof getGroupTypeByKey;
34
34
  getProductCategoriesByGroupType: typeof getProductCategoriesByGroupType;
35
+ getPriceParamsByGroupType: typeof getPriceParamsByGroupType;
35
36
  getGroupTypeByProductCategory: typeof getGroupTypeByProductCategory;
36
37
  getProductCategoryByKey: typeof getProductCategoryByKey;
37
38
  getAllProductCategories: typeof getAllProductCategories;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmc-common-resource",
3
- "version": "1.1.95",
3
+ "version": "1.1.97",
4
4
  "description": "通用枚举、常量和资源的npm包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",