Просмотр исходного кода

feat(types): 编号规则定义

lipk 2 лет назад
Родитель
Сommit
62ad0a1952
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      types/src/interface/process.ts

+ 11 - 0
types/src/interface/process.ts

@@ -373,6 +373,13 @@ export interface IScopeType {
   value: string;
 }
 
+export enum ECodeRule {
+  currentYear = 'currentYear', // 当前年份
+  currentMonth = 'currentMont', // 当前月份
+  fixedText = 'fixedText', // 固定文本
+  autoCode = 'autoCode', // 自动编号
+}
+
 export interface IApproval {
   ID: string;
   name: string;
@@ -390,6 +397,10 @@ export interface IApproval {
     approvalLog: IScopeType[];
     approvalProgress: IScopeType[];
   };
+  code?: {
+    rules: [{ type: ECodeRule; value?: string; digit: string }];
+    connector: string;
+  };
 }
 
 export enum ApprovalStatus {