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

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

# Conflicts:
#	types/src/interface/process.ts
zhangweicheng 4 лет назад
Родитель
Сommit
2e2a38e97a

+ 1 - 1
types/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@sc/types",
-  "version": "1.0.30",
+  "version": "1.0.31",
   "description": "共用类型文件",
   "main": "./dist/index.cjs.js",
   "module": "./dist/index.esm.js",

+ 2 - 0
types/src/interface/base.ts

@@ -206,6 +206,8 @@ export enum ActionName {
   ADD_RATION_COE_TO_SECTION = 'addRationCoeToSection', // 添加子目换算到本节其他定额
   UPDATE_CALCPROGRAM_TEMPLATE = 'updateCalcProgramTemplate',
   UPDATE_CALCPROGRAM_CALCITEM = 'updateCalcProgramCalcItem',
+  BILL_UPGRADE = "billUpgrade",
+  BILL_DOWNGRADE = "billDowngrade" 
 }
 
 export interface IBaseFilter {

+ 6 - 0
types/src/interface/financialProject.ts

@@ -1,3 +1,4 @@
+import { IProjectApproval } from './process';
 // 财审项目类型,字段来自后台,无法修改
 export interface IFinancialProjectType {
   ID: string;
@@ -36,3 +37,8 @@ export interface IFinancialProjectInfo {
   shortName: string; // 项目简称
   projectType: IFinancialProjectType;
 }
+
+// 项目列表
+export interface IFinancialProjectListItem extends IFinancialProject {
+  projectApproval?: IProjectApproval;
+}

+ 6 - 3
types/src/interface/process.ts

@@ -34,8 +34,9 @@ export enum AccountConfigure {
   SKIP = 'skip', // 允许跳过
   RETURN = 'return', // 允许退回
   REVOKE = 'revoke', // 允许撤回
-  ASSISTAUDIT = 'assistAudit', // 允许协审
-  ADDSIGN = 'addSign', // 允许加签
+  ASSISTAUDIT = 'assistAudit', // 协审
+  ADDSIGN = 'addSign', // 加签
+  NEXTSECTOR = 'nextSector', // 是否可添加环节
 }
 
 export interface ICoreView {
@@ -50,7 +51,8 @@ export interface IProcessAccount {
   institutionID?: string; // 单位ID(可能不会用到)
   institutionName?: string; // 单位名称(不要保存到数据库,而是在使用的时候通过ID去查)
   status: ProcessStatus; // 审批状态
-  configure: AccountConfigure[];
+  alreadyAddProcess?: boolean; // 是否已经添加了新环节(暂时用的,用于标记是否添加了环节,以后可能删除)
+  configure: AccountConfigure[]; // 权限配置
   remark: string; // 审批意见(肯定有,会有默认值)
   coreViews: ICoreView[]; // 协审人信息
   projectIDs: string[]; // 允许审批的单位工程ID,为空数组时表示可以审批当前环节的所有项目
@@ -69,6 +71,7 @@ export interface IProcess {
   name: string;
   sectorType: SectorType;
   seq?: number;
+  createdByProcess?: string; // 上环节ID, 表示哪个环节创建的(上环节添加的)
   time?: number; // 当前环节完成时间(仅当审批通过或审批退回时会有时间)
   participantInfo: IParticipantInfo;
 }