Explorar el Código

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

zhangweicheng hace 4 años
padre
commit
080b17ba6a

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

@@ -234,7 +234,7 @@ export interface IBillClass {
   name: string;
   itemCharacter: string; // 必填特征排列组合
   classCode: string; // 类别别名 040101001@一、二类土@人工
-  requiredRationIDs: number[]; // 必套定额ID
+  requiredRationIDs: number[][]; // 必套定额ID
   optionalRationIDs: number[]; // 选套定额ID
   errorRationIDs: number[]; // 错套定额ID
 }

+ 4 - 0
types/src/interface/installation.ts

@@ -17,6 +17,7 @@ export interface IStdInstallSection {
   name: string;
   feeRule: IBaseFeeRule[];
   deleted: boolean;
+  seq: number; // 排序
 }
 // 费用项
 export interface IStdInstallFeeItem {
@@ -27,6 +28,7 @@ export interface IStdInstallFeeItem {
   position: string; // 记取位置
   section: [];
   deleted: boolean;
+  seq: number; // 排序
 }
 
 // 安装增加费-费用规则
@@ -43,6 +45,7 @@ export interface IInstallSection {
   feeItemID: string;
   feeRuleID: string;
   name: string;
+  seq: number; // 排序
 }
 
 // 安装增加费-费用项
@@ -53,6 +56,7 @@ export interface IInstallFeeItem {
   position: string; // 记取位置
   billID?: string; // 记取位置对应的清单ID
   isCalc: boolean; // 是否记取
+  seq: number; // 排序
 }
 
 export enum FeeItemCalcType {

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

@@ -1,3 +1,4 @@
+import { ReportTree } from './report';
 import { CptModelName, SubModelName, ActionType } from './base';
 
 // 环节类型
@@ -113,3 +114,29 @@ export interface IProcessDataDoc {
   index: number;
   processData: IProcessData[];
 }
+
+// 环节状态(精简)
+export enum SimpleProcessStatus {
+  APPROVED = 'approved', // 审批通过
+  FAILED = 'failed', // 失败
+}
+
+// 流程状态(精简)
+export enum SimpleApprovalStatus {
+  PROCESSING = 'processing', // 正在审批
+  APPROVED = 'approved', // 审批通过
+}
+
+// 待办列表项
+export interface ITodoProcessItem {
+  ID: string; // 待办 ID
+  projectID: string; // 项目 ID
+  projectName: string; // 项目名称
+  reporterID: string; // 发起人ID
+  reporterName: string; // 发起人名称
+  lastID: string; // 上环节ID(暂定为上环节用户ID,之后可能为上环节ID)
+  lastName: string; // 上环节名称(暂定为上环节用户名称,之后可能为上环节名称)
+  reportTime: number; // 上报时间
+  lastStatus?: SimpleProcessStatus; // 上一环节的状态
+  approvalStatus?: SimpleApprovalStatus; // 审批流程的状态
+}