瀏覽代碼

feat(types): 添加安装增加费相关类型

zhangweicheng 4 年之前
父節點
當前提交
9e2da6f8e3
共有 1 個文件被更改,包括 66 次插入0 次删除
  1. 66 0
      types/src/interface/installation.ts

+ 66 - 0
types/src/interface/installation.ts

@@ -0,0 +1,66 @@
+export interface IBaseFeeRule {
+  ID: string;
+  code: string;
+  rule: string;
+  base: string;
+  feeRate: number;
+  labour: number;
+  material: number;
+  machine: number;
+}
+
+// 费用章节
+export interface IStdInstallSection {
+  rationRepId: number;
+  ID: string;
+  feeItemId: string;
+  name: string;
+  feeRule: IBaseFeeRule[];
+  deleted: boolean;
+}
+// 费用项
+export interface IStdInstallFeeItem {
+  rationRepId: number;
+  ID: string;
+  feeItem: string; // 费用项
+  feeType: string; // 费用类型
+  position: string; // 记取位置
+  section: [];
+  deleted: boolean;
+}
+
+// 安装增加费-费用规则
+export interface IFeeRule extends IBaseFeeRule {
+  sectionID: string; // 分册章节id
+  feeItemID: string;
+  position?: string; // 记取位置
+  billID?: string; // 记取位置对应的清单ID
+}
+
+// 安装增加费-分册章节
+export interface IInstallSection {
+  ID: string;
+  feeItemID: string;
+  feeRuleID: string;
+  name: string;
+}
+
+// 安装增加费-费用项
+export interface IInstallFeeItem {
+  ID: string;
+  feeItem: string; // 费用项
+  feeType: string; // 费用类型
+  position: string; // 记取位置
+  billID: string; // 记取位置对应的清单ID
+  isCalc: { type: boolean; default: false }; // 是否记取
+}
+
+export interface IInstallation {
+  ID: string;
+  libID: number;
+  libName: string;
+  projectID: string;
+  installFeeItems: IInstallFeeItem[];
+  installSections: IInstallSection[];
+  feeRules: IFeeRule[];
+}