Przeglądaj źródła

feat(types): 多组成物,多消耗量处理

zhangweicheng 4 lat temu
rodzic
commit
cfcf630adc

+ 21 - 1
types/src/interface/compilation.ts

@@ -68,6 +68,25 @@ export enum LockInfo {
   BUY = 2, // 销售
 }
 
+export interface IConsumeAmt {
+  region: string;
+  taxModel: number;
+  consumeAmt: {
+    dataCode: string;
+    dataName: string;
+    refPrice: string;
+  };
+}
+
+export interface ISubPrice {
+  region: string;
+  taxModel: number;
+  price: {
+    dataCode: string;
+    dataName: string;
+  };
+}
+
 export interface ICompilation {
   ID: string;
   name: string;
@@ -82,7 +101,8 @@ export interface ICompilation {
   categoryID: string;
   example: number[];
   adProjects: number[];
-
+  consumeAmtProperties?: IConsumeAmt[]; // 多组成物时的消耗量属性来源
+  priceProperties?: ISubPrice[]; // 多单价时的价格属性来源
   // 附加
   version: versionType; // 版本
   versionText: string; // 版本对应的显示文字:免费版,学习版,专业版

+ 1 - 1
types/src/interface/project.ts

@@ -205,7 +205,7 @@ export interface IProperty {
   rationFeeType?: number; // 定额取费专业
   unitFeeType?: number; // 单位工程取费专业
   calcProgramLib?: INumFileRef; // 计算程序(标准)
-  region?: string;
+  region?: string; // 所属地区
   showAdjustPrice?: boolean; // 是否显示调整价列
   isInstall?: boolean; // 是否是安装工程
   isItemIncrease?: boolean; // 是否是子目增加