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

Merge branch 'master' of http://192.168.1.41:3000/SmartCost/SCCommon

zhangweicheng 4 лет назад
Родитель
Сommit
134525cb28
3 измененных файлов с 25 добавлено и 5 удалено
  1. 9 1
      types/src/interface/bill.ts
  2. 3 2
      types/src/interface/compilation.ts
  3. 13 2
      types/src/interface/process.ts

+ 9 - 1
types/src/interface/bill.ts

@@ -1,5 +1,5 @@
 import { IElfItem } from './billGuide';
-import { BRType, IBRBase, ITreeScm } from './base';
+import { BRType, IBRBase, INumFileRef, ITreeScm } from './base';
 import { IQuantityDetail } from './quantityDetail';
 
 // 清单固定类别
@@ -278,3 +278,11 @@ export interface IBillIndex {
   minUnitPrice?: string;
   maxUnitPrice?: string;
 }
+
+export enum LibType {
+  BILL = '1',
+  NORM = '2'
+}
+export interface IBillOption extends INumFileRef {
+  libType?: LibType
+}

+ 3 - 2
types/src/interface/compilation.ts

@@ -1,5 +1,6 @@
 import { TaxType, IGLJCol } from './project';
 import { IFileRef, INumFileRef } from './base';
+import { IBillOption } from './bill';
 
 export interface ICptItem {
   ID: string;
@@ -17,7 +18,7 @@ export interface ITaxGroup {
   colLib: IFileRef;
   feeLib: IFileRef;
   taxType: TaxType;
-  normLib: string;
+  normLib: string;//指标分部
 }
 
 // 工程专业
@@ -42,7 +43,7 @@ export interface IEngineering {
   infoLib?: IFileRef[];
   featureLib?: IFileRef[];
   artificialLib?: INumFileRef[];
-  billLib?: INumFileRef[];
+  billLib?: IBillOption[];
   billsGuidanceLib?: IFileRef[];
   gljLib?: INumFileRef[];
   rationLib?: INumFileRef[];

+ 13 - 2
types/src/interface/process.ts

@@ -6,8 +6,16 @@ export enum SectorType {
   CONDITION = 'condition', // 条件
 }
 
+export enum ProcessStatus {
+  WAITING = 'waiting', // 待审批
+  APPROVED = 'approved', // 审批通过
+  ACTIVATING = 'activating', // 当前流程
+  FAILED = 'failed', //  审批退回
+}
+
 // 审批方式
 export enum ApprovalWay {
+  REPORT = 'report', // 上报审批
   ACCOUNT = 'account', // 指定用户
   JOINTLYSIGN = 'jointlySign', // 会签
   ORSIGN = 'orSign', // 或签
@@ -32,8 +40,10 @@ export enum AccountConfigure {
 export interface IProcessAccount {
   // ID 账号ID name 名称institutionID 企事业ID
   ID: string;
-  name: string;
-  institutionID?: string; // 可能不会用到
+  name: string; // 曾用名,不会变动
+  institutionID?: string; // 单位ID(可能不会用到)
+  institutionName?: string; // 单位名称(不要保存到数据库,而是在使用的时候通过ID去查)
+  status: ProcessStatus; // 审批状态
   configure: AccountConfigure[];
   remark?: string; // 审批意见
 }
@@ -51,6 +61,7 @@ export interface IProcess {
   name: string;
   sectorType: SectorType;
   seq?: number;
+  time?: number; // 当前环节完成时间(仅当审批通过或审批退回时会有时间)
   participantInfo: IParticipantInfo;
 }