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

feat(types): 添加配置材料

zhangweicheng 5 лет назад
Родитель
Сommit
da4be0bc80
3 измененных файлов с 61 добавлено и 1 удалено
  1. 1 1
      types/package.json
  2. 59 0
      types/src/interface/configMaterial.ts
  3. 1 0
      types/src/interface/index.ts

+ 1 - 1
types/package.json

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

+ 59 - 0
types/src/interface/configMaterial.ts

@@ -0,0 +1,59 @@
+// 暂估材料
+export interface IEvaluateMaterial {
+  ID: string;
+  isRelated: boolean; // 关联,true 关,false不关
+  projectGljID: string; // 关联工料机ID
+  seq: number; // 序号
+  code: string;
+  name: string;
+  specs: string;
+  unit: string;
+  type: number;
+  marketPrice: string;
+  quantity: string;
+  locked: boolean; // 锁定,true 锁,false 不锁 默认false
+  remark: string;
+  originPlace?: string; // 产地
+  vender?: string; // 厂家
+}
+
+// 评标材料
+export interface IBidEvaluationMaterial {
+  ID: string;
+  isRelated: boolean; // 关联,true 关,false不关
+  projectGljID: string; // 关联工料机ID
+  seq: number; // 序号
+  code: string;
+  name: string;
+  specs: string;
+  unit: string;
+  type: number;
+  marketPrice: string;
+  quantity: string;
+  remark: string;
+  originPlace?: string; // 产地
+  vender?: string; // 厂家
+}
+
+// 承包人主要材料
+export interface IContractorMaterial {
+  ID: string;
+  isRelated: boolean; // 关联,true 关,false不关
+  projectGljID: string; // 关联工料机ID
+  seq: string; // 序号
+  code: string;
+  name: string;
+  specs: string;
+  unit: string;
+  type: number;
+  riskCoe: string; // 风险系数
+  standardPrice: string; // 基准单价
+  FO: string; // 基本价格指数
+  FI: string; // 现行价格指数
+  marketPrice: string;
+  quantity: string;
+  remark: string;
+  supply: { type: number; default: 0 };
+  originPlace?: string; // 产地
+  vender?: string; // 厂家
+}

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

@@ -14,3 +14,4 @@ export * from './glj';
 export * from './option';
 export * from './option';
 export * from './quantityDetail';
 export * from './quantityDetail';
 export * from './report';
 export * from './report';
+export * from './configMaterial';