bmc-common-resource 1.1.130 → 1.1.132

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.
Files changed (82) hide show
  1. package/dist/constants/assign-business-type-options.constant.d.ts +11 -0
  2. package/dist/constants/contract-status-options.constant.d.ts +15 -0
  3. package/dist/constants/currency-unit-options.constant.d.ts +15 -0
  4. package/dist/constants/design-type-options.constant.d.ts +15 -0
  5. package/dist/constants/dictionary-attribute-options.constant.d.ts +6 -0
  6. package/dist/constants/dictionary-business-scope-options.constant.d.ts +6 -0
  7. package/dist/constants/dictionary-business-work-phase-options.constant.d.ts +6 -0
  8. package/dist/constants/dictionary-customer-label-options.constant.d.ts +6 -0
  9. package/dist/constants/dictionary-customer-source-options.constant.d.ts +5 -0
  10. package/dist/constants/dictionary-identify-options.constant.d.ts +11 -0
  11. package/dist/constants/dictionary-process-stage-options.constant.d.ts +5 -0
  12. package/dist/constants/house-status-options.constant.d.ts +15 -0
  13. package/dist/constants/house-type-options.constant.d.ts +15 -0
  14. package/dist/constants/index.d.ts +25 -0
  15. package/dist/constants/order-status-options.constant.d.ts +15 -0
  16. package/dist/constants/price-flag-options.constant.d.ts +41 -0
  17. package/dist/constants/privilege-status-options.constant.d.ts +15 -0
  18. package/dist/constants/pro_series_type_enum.constant.d.ts +15 -0
  19. package/dist/constants/product-unit-measure.constant.d.ts +489 -0
  20. package/dist/constants/recommendation-type-options.constant.d.ts +15 -0
  21. package/dist/constants/rounding-rule-options.constant.d.ts +15 -0
  22. package/dist/constants/sales-end-app-tag.constant.d.ts +15 -0
  23. package/dist/constants/sign-style-options.constant.d.ts +15 -0
  24. package/dist/constants/solution-status-options.constant.d.ts +15 -0
  25. package/dist/constants/spatial-category-options.constant.d.ts +15 -0
  26. package/dist/constants/supply-mode-options.constant.d.ts +15 -0
  27. package/dist/enums/assign-business-type.enum.d.ts +7 -0
  28. package/dist/enums/assign-type.enum.d.ts +7 -0
  29. package/dist/enums/business-scope.enum.d.ts +13 -0
  30. package/dist/enums/business-work-phase.enum.d.ts +15 -0
  31. package/dist/enums/contract-cancel-type.enum.d.ts +9 -0
  32. package/dist/enums/contract-state.enum.d.ts +31 -0
  33. package/dist/enums/currency-unit.enum.d.ts +15 -0
  34. package/dist/enums/customer-label.enum.d.ts +11 -0
  35. package/dist/enums/customer-source.enum.d.ts +87 -0
  36. package/dist/enums/design-type.enum.d.ts +17 -0
  37. package/dist/enums/dictionary-identify.enum.d.ts +47 -0
  38. package/dist/enums/house-status.enum.d.ts +11 -0
  39. package/dist/enums/house-type.enum.d.ts +13 -0
  40. package/dist/enums/index.d.ts +23 -0
  41. package/dist/enums/mq-consumer-group-enum.d.ts +6 -0
  42. package/dist/enums/mq-receipt-type-enum.d.ts +177 -0
  43. package/dist/enums/order-status.enum.d.ts +11 -0
  44. package/dist/enums/place-order-type.enum.d.ts +9 -0
  45. package/dist/enums/price-flag.enum.d.ts +35 -0
  46. package/dist/enums/privilege-status.enum.d.ts +17 -0
  47. package/dist/enums/pro_series_type.enum.d.ts +9 -0
  48. package/dist/enums/process-stage.enum.d.ts +45 -0
  49. package/dist/enums/product-unit-measure.enum.d.ts +124 -0
  50. package/dist/enums/recommendation-type.enum.d.ts +19 -0
  51. package/dist/enums/rounding-rule.enum.d.ts +19 -0
  52. package/dist/enums/sales_end_app_tag.enum.d.ts +13 -0
  53. package/dist/enums/sign-style.enum.d.ts +9 -0
  54. package/dist/enums/solution-status.enum.d.ts +25 -0
  55. package/dist/enums/solution_price_type.enum.d.ts +11 -0
  56. package/dist/enums/spatial-category.enum.d.ts +33 -0
  57. package/dist/enums/supply-mode.enum.d.ts +19 -0
  58. package/dist/index.d.ts +124 -0
  59. package/dist/index.esm.js +2 -0
  60. package/dist/index.esm.js.map +1 -0
  61. package/dist/index.js +2 -0
  62. package/dist/index.js.map +1 -0
  63. package/dist/interfaces/dictionary.interface.d.ts +55 -0
  64. package/dist/interfaces/index.d.ts +4 -0
  65. package/dist/modules/index.d.ts +4 -0
  66. package/dist/modules/solution/categoryFormMap.d.ts +36 -0
  67. package/dist/modules/solution/classifyRoomGroupMap.d.ts +48 -0
  68. package/dist/modules/solution/groupTypes.d.ts +39 -0
  69. package/dist/modules/solution/index.d.ts +41 -0
  70. package/dist/modules/solution/mappings/group-item-mapping.d.ts +24 -0
  71. package/dist/modules/solution/mappings/index.d.ts +5 -0
  72. package/dist/modules/solution/mappings/room-group-mapping.d.ts +31 -0
  73. package/dist/modules/solution/models/QuotationItem.d.ts +266 -0
  74. package/dist/modules/solution/models/index.d.ts +4 -0
  75. package/dist/modules/solution/productCategories.d.ts +26 -0
  76. package/dist/modules/solution/roomTypes.d.ts +18 -0
  77. package/dist/modules/solution/types/index.d.ts +56 -0
  78. package/dist/modules/solution/types.d.ts +10 -0
  79. package/dist/utils/common.util.d.ts +84 -0
  80. package/dist/utils/index.d.ts +5 -0
  81. package/dist/utils/solution.util.d.ts +50 -0
  82. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ import { assign_business_type } from '../enums/assign-business-type.enum';
2
+ export interface assignBusinessTypeOption {
3
+ /** 业务名称 */
4
+ name: string;
5
+ /** 业务值 */
6
+ value: assign_business_type;
7
+ }
8
+ /**
9
+ * 数组
10
+ */
11
+ export declare const assign_business_type_options: assignBusinessTypeOption[];
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 销售合同状态选项数组
3
+ * 提供 {name: '状态名称', value: '状态代码'} 格式的数据
4
+ */
5
+ import { CONTRACT_STATE_ENUM } from '../enums/contract-state.enum';
6
+ export interface ContractStatusOption {
7
+ /** 状态名称 */
8
+ name: string;
9
+ /** 状态代码 */
10
+ value: CONTRACT_STATE_ENUM;
11
+ }
12
+ /**
13
+ * 销售合同状态选项数组
14
+ */
15
+ export declare const CONTRACT_STATUS_OPTIONS: ContractStatusOption[];
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 货币单位选项数组
3
+ * 提供 {name: '货币名称', value: '货币代码'} 格式的数据
4
+ */
5
+ import { CURRENCY_UNIT_ENUM } from '../enums/currency-unit.enum';
6
+ export interface CurrencyOption {
7
+ /** 货币名称 */
8
+ name: string;
9
+ /** 货币代码 */
10
+ value: CURRENCY_UNIT_ENUM;
11
+ }
12
+ /**
13
+ * 货币单位选项数组
14
+ */
15
+ export declare const CURRENCY_UNIT_OPTIONS: CurrencyOption[];
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 方案类型选项数组
3
+ * 提供 {name: '状态名称', value: '状态值'} 格式的数据
4
+ */
5
+ import { design_type } from '../enums/design-type.enum';
6
+ export interface designTypeOption {
7
+ /** 状态名称 */
8
+ name: string;
9
+ /** 状态值 */
10
+ value: design_type;
11
+ }
12
+ /**
13
+ * 方案类型选项数组
14
+ */
15
+ export declare const design_type_options: designTypeOption[];
@@ -0,0 +1,6 @@
1
+ import { DictionaryOptionsMap } from '../interfaces/dictionary.interface';
2
+ /**
3
+ * 字典属性选项映射
4
+ * 用于存储所有字典类型的选项
5
+ */
6
+ export declare const DICTIONARY_ATTRIBUTE_OPTIONS_MAP: DictionaryOptionsMap;
@@ -0,0 +1,6 @@
1
+ import { BUSINESS_SCOPE_ENUM } from '../enums/business-scope.enum';
2
+ import { DictionaryOption } from '../interfaces/dictionary.interface';
3
+ /**
4
+ * 业务范围分类选项
5
+ */
6
+ export declare const DICTIONARY_BUSINESS_SCOPE_OPTIONS: DictionaryOption<BUSINESS_SCOPE_ENUM>[];
@@ -0,0 +1,6 @@
1
+ import { BUSINESS_WORK_PHASE_ENUM } from '../enums/business-work-phase.enum';
2
+ import { DictionaryOption } from '../interfaces/dictionary.interface';
3
+ /**
4
+ * 业务工作选项
5
+ */
6
+ export declare const DICTIONARY_BUSINESS_WORK_PHASE_OPTIONS: DictionaryOption<BUSINESS_WORK_PHASE_ENUM>[];
@@ -0,0 +1,6 @@
1
+ import { CUSTOMER_LABEL_ENUM } from '../enums/customer-label.enum';
2
+ import { DictionaryOption } from '../interfaces/dictionary.interface';
3
+ /**
4
+ * 客户标签选项
5
+ */
6
+ export declare const DICTIONARY_CUSTOMER_LABEL_OPTIONS: DictionaryOption<CUSTOMER_LABEL_ENUM>[];
@@ -0,0 +1,5 @@
1
+ import { CustomerSourceOption } from '../interfaces/dictionary.interface';
2
+ /**
3
+ * 客户来源选项
4
+ */
5
+ export declare const DICTIONARY_CUSTOMER_SOURCE_OPTIONS: CustomerSourceOption[];
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 字典项标识选项
3
+ * 提供 {label: '字典项名称', value: '字典项标识'} 格式的数据
4
+ */
5
+ import { DICTIONARY_IDENTIFY_ENUM } from "../enums/dictionary-identify.enum";
6
+ import { DictionaryOption } from "../interfaces/dictionary.interface";
7
+ /**
8
+ * 字典标识选项
9
+ * 包含所有字典标识
10
+ */
11
+ export declare const DICTIONARY_IDENTIFY_OPTIONS: DictionaryOption<DICTIONARY_IDENTIFY_ENUM>[];
@@ -0,0 +1,5 @@
1
+ import { ProcessStageOption } from '../interfaces/dictionary.interface';
2
+ /**
3
+ * 进程阶段选项
4
+ */
5
+ export declare const DICTIONARY_PROCESS_STAGE_OPTIONS: ProcessStageOption[];
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 房屋交期选项数组
3
+ * 提供 {name: '交期名称', value: '交期值'} 格式的数据
4
+ */
5
+ import { house_status } from '../enums/house-status.enum';
6
+ export interface houseStatusOption {
7
+ /** 交期名称 */
8
+ name: string;
9
+ /** 交期值 */
10
+ value: house_status;
11
+ }
12
+ /**
13
+ * 房屋交期选项数组
14
+ */
15
+ export declare const house_status_options: houseStatusOption[];
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 户型选项数组
3
+ * 提供 {name: '户型名称', value: '户型值'} 格式的数据
4
+ */
5
+ import { house_type } from '../enums/house-type.enum';
6
+ export interface houseTypeOption {
7
+ /** 户型名称 */
8
+ name: string;
9
+ /** 户型值 */
10
+ value: house_type;
11
+ }
12
+ /**
13
+ * 户型选项数组
14
+ */
15
+ export declare const house_type_options: houseTypeOption[];
@@ -0,0 +1,25 @@
1
+ /**
2
+ * 常量的统一导出
3
+ */
4
+ export declare const __constantsPlaceholder: {};
5
+ export * from "./solution-status-options.constant";
6
+ export * from "./design-type-options.constant";
7
+ export * from "./order-status-options.constant";
8
+ export * from "./currency-unit-options.constant";
9
+ export * from "./supply-mode-options.constant";
10
+ export * from "./dictionary-attribute-options.constant";
11
+ export * from "./dictionary-identify-options.constant";
12
+ export * from "./recommendation-type-options.constant";
13
+ export * from "./pro_series_type_enum.constant";
14
+ export * from "./spatial-category-options.constant";
15
+ export * from "./house-status-options.constant";
16
+ export * from "./house-type-options.constant";
17
+ export * from "./price-flag-options.constant";
18
+ export * from "./rounding-rule-options.constant";
19
+ export * from "./assign-business-type-options.constant";
20
+ export * from "./dictionary-business-scope-options.constant";
21
+ export * from "./dictionary-business-work-phase-options.constant";
22
+ export * from "./contract-status-options.constant";
23
+ export * from "./sign-style-options.constant";
24
+ export * from "./sales-end-app-tag.constant";
25
+ export * from "./product-unit-measure.constant";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 订单状态选项数组
3
+ * 提供 {name: '状态名称', value: '状态值'} 格式的数据
4
+ */
5
+ import { order_status } from '../enums/order-status.enum';
6
+ export interface orderStatusOption {
7
+ /** 状态名称 */
8
+ name: string;
9
+ /** 状态值 */
10
+ value: order_status;
11
+ }
12
+ /**
13
+ * 订单状态选项数组
14
+ */
15
+ export declare const order_status_options: orderStatusOption[];
@@ -0,0 +1,41 @@
1
+ /**
2
+ * 价格标识选项数组
3
+ * 提供 {name: '标识名称', value: '标识值'} 格式的数据
4
+ */
5
+ import { price_flag } from '../enums/price-flag.enum';
6
+ export interface PriceFlagOption {
7
+ /** 价格标识名称 */
8
+ name: string;
9
+ /** 价格标识值 */
10
+ value: price_flag;
11
+ }
12
+ /**
13
+ * 清单类型枚举
14
+ * 根据实际业务需求可以替换为真实的清单类型枚举
15
+ */
16
+ export declare enum ListType {
17
+ /** 报价清单 */
18
+ QUOTATION_SOLUTION = "QUOTATION_SOLUTION"
19
+ }
20
+ /**
21
+ * 完整的价格标识选项数组
22
+ */
23
+ export declare const price_flag_options: PriceFlagOption[];
24
+ /**
25
+ * 清单类型与价格标识的关联映射
26
+ * 定义不同清单类型可以使用的价格标识
27
+ */
28
+ export declare const PRICE_FLAG_LIST_TYPE_MAP: Record<ListType, price_flag[]>;
29
+ /**
30
+ * 根据清单类型获取可用的价格标识选项
31
+ * @param listType 清单类型
32
+ * @returns 过滤后的价格标识选项数组
33
+ */
34
+ export declare function getPriceFlagOptionsByListType(listType: ListType): PriceFlagOption[];
35
+ /**
36
+ * 检查指定价格标识是否适用于给定的清单类型
37
+ * @param flag 价格标识
38
+ * @param listType 清单类型
39
+ * @returns 是否适用
40
+ */
41
+ export declare function isPriceFlagValidForListType(flag: price_flag, listType: ListType): boolean;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 特权状态选项数组
3
+ * 提供 {name: '状态名称', value: '状态代码'} 格式的数据
4
+ */
5
+ import { PRIVILEGE_STATE_ENUM } from '../enums/privilege-status.enum';
6
+ export interface PrivilegeStatusOption {
7
+ /** 状态名称 */
8
+ name: string;
9
+ /** 状态代码 */
10
+ value: PRIVILEGE_STATE_ENUM;
11
+ }
12
+ /**
13
+ * 销售合同状态选项数组
14
+ */
15
+ export declare const PRIVILEGE_STATUS_OPTIONS: PrivilegeStatusOption[];
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 产品系列款式分类选项数组
3
+ * 提供 {name: '分类名称', value: '分类值'} 格式的数据
4
+ */
5
+ import { pro_series_type_enum } from '../enums/pro_series_type.enum';
6
+ export interface SeriesTypeOption {
7
+ /** 状态名称 */
8
+ name: string;
9
+ /** 状态值 */
10
+ value: pro_series_type_enum;
11
+ }
12
+ /**
13
+ * 报价清单状态选项数组
14
+ */
15
+ export declare const pro_series_type_options: SeriesTypeOption[];