Przeglądaj źródła

feat(types): 增加指标填写类型

zhangweicheng 3 lat temu
rodzic
commit
cf71e640cc
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      types/src/interface/bill.ts

+ 6 - 0
types/src/interface/bill.ts

@@ -124,6 +124,11 @@ export interface IPriceScope {
   maxUnitPrice: number;
 }
 
+export enum IndexCalcType {
+  STDEV = 1, // 均方差
+  AVG = 2, // 平均值
+}
+
 export interface ICheckOptions {
   fileType: string;
   year: string;
@@ -133,6 +138,7 @@ export interface ICheckOptions {
   classCode?: string;
   indexType?: string;
   unit?: string;
+  calcType?: IndexCalcType;
 }
 
 export interface IBill extends IBRBase {