Pārlūkot izejas kodu

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

zhangweicheng 3 gadi atpakaļ
vecāks
revīzija
cf71e640cc
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  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 {