Selaa lähdekoodia

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

zhangweicheng 3 vuotta sitten
vanhempi
commit
cf71e640cc
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  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 {