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

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

zhangweicheng 4 лет назад
Родитель
Сommit
9e987486f8
2 измененных файлов с 28 добавлено и 1 удалено
  1. 1 1
      types/src/interface/base.ts
  2. 27 0
      types/src/interface/ration.ts

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

@@ -125,7 +125,7 @@ export enum CptModelName {
   feeRateFile = 'feeRateFile',
   labourCoeFile = 'labourCoeFile',
   importLogs = 'importLogs',
-  cptRationSectionTpl = 'cptRationSectionTpl',
+  cptRationTree = 'cptRationTree',
   cptGlj = 'cptGlj',
   cptGljTree = 'cptGljTree',
   cptRationCoeList = 'cptRationCoeList',

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

@@ -6,6 +6,7 @@ import {
   CreateLocation,
   BRType,
   IBRBase,
+  ITreeScm,
 } from './base';
 import { IBookmark } from './bill';
 import { GljType, ICptGlj, IStdGlj, MaterialType } from './glj';
@@ -321,3 +322,29 @@ export enum RationListType {
   COE = 'rationCoeList',
   GLJ = 'rationGljList',
 }
+
+// 补充定额章节树-模板(后台设置)
+export interface ICptRationTreeTemplate {
+  compilationId: string;
+  name: string;
+  ID: number;
+  ParentID: number;
+  NextSiblingID: number;
+}
+
+// 补充定额章节树
+export interface ICptRationTree extends ITreeScm {
+  name: string;
+  // 以下预留数据,以后开放可用
+  explanation?: string; // 说明
+  ruleText?: string; // 计算规则,
+  jobContentSituation?: string; // 工作内容适用情况,ALL适用本项全部定额,PARTIAL适用本项部分定额
+  annotationSituation?: string; // 附注适用情况,ALL适用本项全部定额,PARTIAL适用本项部分定额
+}
+
+// 补充定额章节树容器
+export interface ICptRationTreeData {
+  compilationID: string;
+  ownerID: string; // 企业或用户
+  treeData: ICptRationTree[];
+}