Kaynağa Gözat

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

zhenghongfeng 3 yıl önce
ebeveyn
işleme
f59a72ec57

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

@@ -182,6 +182,7 @@ export enum ActionName {
 
   // 定额工料机相关
   UPDATE_INDEX_KEY = 'updateIndexKey', // 修改定额工料机的名称,规格,单位
+  UPDATE_GLJ_CODE = 'updateGljCode', // 修改定额工料机的编码
   ADD_RATION_GLJS = 'addRationGljs', // 添加定额工料机(多个)
   REPLACE_RATION_GLJ = 'replaceRationGlj', // 替换定额工料机(单个)
 

+ 16 - 4
types/src/interface/bill.ts

@@ -1,5 +1,5 @@
 import { IComponent } from './glj';
-import { FileType } from './project';
+import { FileType, ProjectType } from './project';
 import { IElfItem } from './billGuide';
 import { BRType, IBRBase, IFees, INumFileRef, ITreeScm } from './base';
 import { ICalcItem } from './calculation';
@@ -125,15 +125,24 @@ export interface IPriceScope {
   maxUnitPrice: number;
 }
 
+export enum IndexCalcType {
+  STDEV = 1, // 均方差
+  AVG = 2, // 平均值
+}
+
 export interface ICheckOptions {
-  fileType: string;
-  year: string;
-  projLocation: string;
+  fileType: string | string[];
+  year: string | string[];
+  projLocation: string | string[];
   projectType: string;
   engineerType: string;
   classCode?: string;
   indexType?: string;
+  constructionIndexTypes?: string[]; // 建设项目的工程分类,查询条件用
+  firstSingleIndexTypes?: string[]; // 第一个单项工程的工程分类,查询用
   unit?: string;
+  calcType?: IndexCalcType;
+  type?: ProjectType; // 项目类型
 }
 
 export interface IBill extends IBRBase {
@@ -295,6 +304,7 @@ export interface IFBIndex {
   ID?: string;
   parentID?: string;
   seq?: number;
+  sourceName?: string; // 来源项目
   constructionName: string;
   singleName: string;
   unitName: string;
@@ -311,6 +321,8 @@ export interface IFBIndex {
   month?: string; // 信息价月
   fileType?: FileType; // 文件类型
   indexTypes?: string[]; // 项目分类或者说功能分类--
+  constructionIndexType?: string; // 建设项目的工程分类,查询条件用
+  firstSingleIndexType?: string; // 第一个单项工程的工程分类,查询用
   dynamicIndex?: Record<string, IFees>; // 动态指标,年-月为key 综合指标的映射
   minUnitPrice?: string;
   maxUnitPrice?: string;

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

@@ -1,4 +1,4 @@
-import { TaxType, IGLJCol } from './project';
+import { TaxType, IGLJCol, FileType } from './project';
 import { IFileRef, INumFileRef } from './base';
 import { IBillOption } from './bill';
 
@@ -50,6 +50,7 @@ export interface IEngineering {
   progressiveLib?: IFileRef[];
   taxGroup: ITaxGroup[];
   indexName?: string; // 指标专业名称
+  visible?: boolean; // 是否显示 
 }
 
 export interface IValuation {
@@ -57,6 +58,7 @@ export interface IValuation {
   enable: boolean;
   ID: string;
   name: string;
+  fileTypes?: FileType[];
 }
 
 export enum versionType {

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

@@ -17,6 +17,11 @@ export interface IFinancialProjectReporter {
   name: string;
 }
 
+export interface IFinancialProjectSecrecy {
+  protected: boolean,
+  institutions: string[]
+}
+
 // 财审项目,字段来自后台,无法修改
 export interface IFinancialProject {
   ID: string;
@@ -28,6 +33,7 @@ export interface IFinancialProject {
   reportAccount?: IFinancialProjectReporter[]; // 上报人(即前端列表的编辑者列)
   constructionID?: string; // 关联的建设项目
   createdTime: number;
+  secrecy?: IFinancialProjectSecrecy // 项目设置保密
   [props: string]: any;
 }
 

+ 3 - 0
types/src/interface/glj.ts

@@ -182,6 +182,7 @@ export const GljModelName = {
 };
 
 export interface IMatchedInfoPrice {
+  ID: string;
   basePrice: string;
   key: string;
   keywordList: IInfoKeyword[];
@@ -377,6 +378,8 @@ export interface ICptGlj extends IBaseRationGlj {
   displayLibName?: string; // 工料机所在库在前端UI上的显示,如:[企业库]。
   alias?: string; // 别名(名称 规格)
   period?: string; // 期数
+  areaName?: string; // 价格地区
+  areaID?: string; // 价格地区
   operationID?: string; // 操作ID 防止未来需要撤销批量入库
 }
 

+ 1 - 0
types/src/interface/index.ts

@@ -27,3 +27,4 @@ export * from './institution';
 export * from './process';
 export * from './structure';
 export * from './editLog';
+export * from './institutionRole';

+ 5 - 0
types/src/interface/institutionRole.ts

@@ -0,0 +1,5 @@
+export interface IInstitutionRole {
+  ID: string;
+  institutionID: string;
+  approvalMember: string[];
+}

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

@@ -27,15 +27,17 @@ export enum ApprovalWay {
 // 角色权限
 export enum RolePermission {
   MY_REPORT = 'report', // 我的项目-项目上报
-  MY_FREE_REPORT = "freeReport", // 我的项目-指定审批人
+  MY_FREE_REPORT = 'freeReport', // 我的项目-指定审批人
   MY_ADD_PROJECT = 'addProject', // 我的项目-新建项目
   MY_EDIT_PROJECT = 'editProject', // 我的项目-编辑项目
   MY_EXPORT_PROJECT = 'exportProject', // 我的项目-导出项目
   MY_DEL_PROJECT = 'delProject', // 我的项目-删除项目
   MY_VIEW_PROJECT = 'viewProject', // 我的项目-查看项目
+  MY_VIEW_APPROVAL = 'viewApproval', // 我的项目-审批进度
   JOIN_VIEW_PARTICIPATING_PROJECT = 'viewParticipatingProject', // 我参与的项目-查看项目
   JOIN_SAVE_INDEX = 'saveIndex', // 我参与的项目-指标入库
   JOIN_EXPORT_PARTICIPATING_PROJECT = 'exportParticipatingProject', // 我参与的项目-导出项目
+  ALL_SET_PROJECT = 'setProjects', // 全部项目-项目设置
   ALL_VIEW_ALL_PROJECTS = 'viewAllProjects', // 全部项目-查看项目
   ALL_SAVE_INDEX = 'saveIndexAll', // 全部项目-指标入库
   // TODO 指标库 区间对数
@@ -233,7 +235,7 @@ export interface IApprovalTodo extends ITodo {
   data: IApprovalTodoData;
 }
 
-export enum ChangeRecord{
+export enum ChangeRecord {
   CURRENT = 'current', // 当前清单
   ALLBILLS = 'all-bills', // 全部清单
   ALLGLJS = 'all-gljs', // 全部材价

+ 5 - 0
types/src/interface/project.ts

@@ -253,6 +253,7 @@ export interface IProperty {
   saveToIndex?: boolean; // 是否已经入库
   checkOptions?: ICheckOptions; // 指标检测的选项
   priceScope?: IPriceScope; // 价格区间
+  checkOptionSetting?: ICheckOptions; // 检测清单、设置指标弹窗确定共用的保存设置的位置
 }
 
 // 原来的列设置太复杂了,没什么必要
@@ -434,6 +435,8 @@ export interface ISaveProjectInfo {
   constructionID?: string;
   indexType: string; // 工程分类
   indexTypes: string[]; // 自身的工程分类以及祖先项的分类数组
+  constructionIndexType?: string; // 建设项目的工程分类,查询条件用
+  firstSingleIndexType?: string; // 第一个单项工程的工程分类,查询用
   projLocation: string;
   year: string;
   month: string;
@@ -451,6 +454,8 @@ export interface ICommonIndex {
   sourceName: string;
   name?: string;
   constructionID?: string;
+  constructionIndexType?: string; // 建设项目的工程分类,查询条件用
+  firstSingleIndexType?: string; // 第一个单项工程的工程分类,查询用
   indexType: string; // 工程分类
   indexTypes: string[];
   projLocation: string;