소스 검색

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

zhangweicheng 3 년 전
부모
커밋
cf71e640cc
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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 {