bmc-common-resource 1.1.73 → 1.1.75
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.
|
@@ -3,13 +3,6 @@
|
|
|
3
3
|
* 定义系统中所有可用的分组类型及其对应的功能分类产品
|
|
4
4
|
*/
|
|
5
5
|
import { GroupType, ProductCategoryData } from './types/index';
|
|
6
|
-
export interface ProductCategory {
|
|
7
|
-
name: string;
|
|
8
|
-
code: string;
|
|
9
|
-
children?: Record<string, ProductCategory>;
|
|
10
|
-
parentKey?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const PRODUCT_CATEGORIES: Record<string, ProductCategory>;
|
|
13
6
|
declare const BASE_GROUP_TYPES: Record<string, GroupType>;
|
|
14
7
|
export declare const CLASSIFY_GROUP_TYPES: Record<string, Record<string, GroupType>>;
|
|
15
8
|
export declare const GROUP_TYPES: Record<string, GroupType>;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* 统一导出所有产品相关配置和工具函数
|
|
4
4
|
*/
|
|
5
5
|
import ROOM_TYPES, { getSortedRoomTypes, getRoomTypeByKey } from './roomTypes';
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
6
|
+
import PRODUCT_CATEGORIES, { getProductCategoryByKey, getAllProductCategories, ProductCategory } from './productCategories';
|
|
7
|
+
import GROUP_TYPES, { getSortedGroupTypes, getGroupTypeByKey, getProductCategoriesByGroupType, getGroupTypeByProductCategory } from './groupTypes';
|
|
8
8
|
import CLASSIFY_ROOM_GROUP_MAP, { getClassifyRoomsAndGroups, getGroupsByClassifyAndRoom, getAllClassifyRoomsAndGroups, getClassifyBaseInfo } from './classifyRoomGroupMap';
|
|
9
9
|
import { calculateProductMeasure, getMeasureUnitInfo, getAllMeasureUnits, isDimensionRequired, isDimensionRelated, ItemUnitMeasureCalculator } from './measure';
|
|
10
10
|
import getCategoryViewSetting from './categoryFormMap';
|