Browse Source

feat(types): 清单指引相关类型

vian 5 years atrás
parent
commit
1ce8a00a68
2 changed files with 68 additions and 1 deletions
  1. 1 1
      types/package.json
  2. 67 0
      types/src/interface/billGuidance.ts

+ 1 - 1
types/package.json

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

+ 67 - 0
types/src/interface/billGuidance.ts

@@ -0,0 +1,67 @@
+import { ITreeScm } from './base';
+
+// 指引库类型
+export enum BillGuideLibType {
+  // 清单指引
+  GUIDE = 1,
+  // 清单精灵
+  ELF,
+}
+
+// 标准指引库
+export interface IBillGuideLibResult {
+  type: BillGuideLibType;
+  ID: string;
+  compilationId: string;
+  compilationName: string;
+  billsLibId: number;
+  billsLibName: string;
+  name: string;
+  creator: string;
+  createDate: string;
+  deleted?: boolean;
+}
+
+// 标准指引库(更正命名)
+export interface IBillGuideLib {
+  type: BillGuideLibType;
+  ID: string;
+  compilationID: string;
+  compilationName: string;
+  billsLibID: number;
+  billLibName: string;
+  name: string;
+  creator: string;
+  createDate: string;
+}
+
+// 指引项类型
+export enum BillGuideItemType {
+  // 工作内容
+  CONTENT = 0,
+  // 定额
+  RATION,
+}
+
+// 指引原数据
+export interface IBillGuideItemResult {
+  libID: string;
+  ID: string;
+  ParentID: string;
+  NextSiblingID: string;
+  billsID: string;
+  name: string;
+  type: BillGuideItemType;
+  rationID?: number;
+  deleted?: boolean;
+}
+
+// 指引数据
+export interface IBillGuideItem extends ITreeScm {
+  libID: string;
+  ID: string;
+  billID: string;
+  name: string;
+  type: BillGuideItemType;
+  rationID?: number;
+}