瀏覽代碼

feat(types): 删除单价文件,清单添加基数计算

zhangweicheng 5 年之前
父節點
當前提交
a2e858f702

+ 1 - 1
types/package.json

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

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

@@ -32,6 +32,7 @@ export interface IBill {
   jobContentText?: string;
   jobContentText?: string;
   itemCharacter?: IItemCharacter[]; // 项目特征
   itemCharacter?: IItemCharacter[]; // 项目特征
   itemCharacterText?: string;
   itemCharacterText?: string;
+  formula?: string; // 基数计算
   [key: string]: any; // 剩下的之后补充
   [key: string]: any; // 剩下的之后补充
 }
 }
 
 

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

@@ -1,3 +1,5 @@
+import { fromType, supplyType } from './base';
+
 // 工料机类型
 // 工料机类型
 export enum GljType {
 export enum GljType {
   LABOUR = 1, // 人工
   LABOUR = 1, // 人工
@@ -73,3 +75,64 @@ export const DisplayType: IDisplayType = {
   7: '利',
   7: '利',
   8: '险',
   8: '险',
 };
 };
+
+export interface IComponent {
+  ID: string;
+  consumption: number; // 消耗量(有别于总消耗,此字段记录配合比的消耗量)
+  gljID: string; // 工料机总库对应id (关联用)
+  specs?: string; // 规格型号
+  unit: string; // 单位
+  name: string; // 名称
+  code: string; // 对应工料机code
+  type: number; // 工料机类型
+  model?: number; // 机型
+  from: fromType; // std, cpt  来自标准工料机库、补充工料机库
+}
+
+export interface IProjectGlj {
+  ID: string;
+  gljID: string; // 工料机ID
+  code: string; // 编码
+  originalCode: string; // 原始的编码
+  name: string; // 名称
+  isEvaluate?: boolean; // 是否暂估 (false为否 true为是) //这个属性考虑放弃
+  supply: supplyType; // 供货方式
+  supplyQuantity?: number; // 甲供数量
+  delivery?: string; // 交货方式
+  deliveryAddress?: string; // 送达地点
+  noAdjustPrice: boolean; // 不调价  { type: boolean; default: false }
+  nTaxEqp: boolean; // 不计税设备  { type: boolean; default: false }
+  adjCoe?: number; // 调整系数ID
+  specs: string; // 规格型号
+  type: number; // 类型
+  model?: number; // 机型
+  unit: string; // 单位
+  isAdd: boolean; // 是否新增
+  basePrice: number; // 基价单价
+  marketPrice: number; // 市场单价
+  components?: IComponent[]; // 组成物
+  taxRate?: number; // 税率
+  adjustPrice?: string; // 显示调整基价
+  quantity?: number; // 显示关联的消耗量
+  techQuantity?: string; // 技术措施项目消耗量
+  subdivisionQuantity?: string; // 分部分项消耗量
+  tenderPrice?: string; // 调整后价格
+  materialType?: number; // 三材类别
+  materialCoe?: number; // 三材系数
+  // 经济指标数据
+  materialIndexType?: string; // 工料指标类别
+  materialIndexUnit?: string; // 工料指标单位
+  materialIndexCoe: number; // 单位转换系数
+  isMainMaterial: boolean; // 是否主要材料 (0为否 1为是) { type: boolean; default: false };
+  remark?: string;
+  originPlace?: string; // 产地
+  vender?: string; // 厂家
+  qualityGrace?: string; // 质量等级
+  brand?: string; // 品牌
+  from: fromType; // std, cpt  来自标准工料机库、补充工料机库
+}
+
+export interface IProjectGljs {
+  projectID: string;
+  projectGljs: IProjectGlj[];
+}

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

@@ -6,7 +6,6 @@ export * from './systemSetting';
 export * from './project';
 export * from './project';
 export * from './increaseFee';
 export * from './increaseFee';
 export * from './labourCoe';
 export * from './labourCoe';
-export * from './unitPrice';
 export * from './feeRate';
 export * from './feeRate';
 export * from './share';
 export * from './share';
 export * from './ration';
 export * from './ration';

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

@@ -217,49 +217,6 @@ export interface IRationGlj {
   from: fromType; // std, cpt  来自标准工料机库、补充工料机库
   from: fromType; // std, cpt  来自标准工料机库、补充工料机库
 }
 }
 
 
-export interface IProjectGlj {
-  ID: string;
-  gljID: string; // 工料机ID
-  code: string; // 编码
-  originalCode: string; // 原始的编码
-  name: string; // 名称
-  isEvaluate?: boolean; // 是否暂估 (false为否 true为是) //这个属性考虑放弃
-  supply: supplyType; // 供货方式
-  supplyQuantity?: number; // 甲供数量
-  delivery?: string; // 交货方式
-  deliveryAddress?: string; // 送达地点
-  noAdjustPrice: boolean; // 不调价  { type: boolean; default: false }
-  nTaxEqp: boolean; // 不计税设备  { type: boolean; default: false }
-  adjCoe?: number; // 调整系数ID
-  specs: string; // 规格型号
-  type: number; // 类型
-  model?: number; // 机型
-  unit: string; // 单位
-  adjustPrice?: string; // 显示调整基价
-  quantity?: number; // 显示关联的消耗量
-  techQuantity?: string; // 技术措施项目消耗量
-  subdivisionQuantity?: string; // 分部分项消耗量
-  tenderPrice?: string; // 调整后价格
-  materialType?: number; // 三材类别
-  materialCoe?: number; // 三材系数
-  // 经济指标数据
-  materialIndexType?: string; // 工料指标类别
-  materialIndexUnit?: string; // 工料指标单位
-  materialIndexCoe: number; // 单位转换系数
-  isMainMaterial: boolean; // 是否主要材料 (0为否 1为是) { type: boolean; default: false };
-  remark?: string;
-  originPlace?: string; // 产地
-  vender?: string; // 厂家
-  qualityGrace?: string; // 质量等级
-  brand?: string; // 品牌
-  from: fromType; // std, cpt  来自标准工料机库、补充工料机库
-}
-
-export interface IProjectGljs {
-  projectID: string;
-  projectGljs: IProjectGlj[];
-}
-
 export interface IStdRationGlj extends IBaseRationGlj {
 export interface IStdRationGlj extends IBaseRationGlj {
   ID: number;
   ID: number;
   repositoryId: number;
   repositoryId: number;

+ 0 - 41
types/src/interface/unitPrice.ts

@@ -1,41 +0,0 @@
-import { DeleteEnum, fromType } from './base';
-
-export interface IComponent {
-  ID: string;
-  consumption: number; // 消耗量(有别于总消耗,此字段记录配合比的消耗量)
-  gljID: string; // 工料机总库对应id (关联用)
-  specs?: string; // 规格型号
-  unit: string; // 单位
-  name: string; // 名称
-  code: string; // 对应工料机code
-  type: number; // 工料机类型
-  model?: number; // 机型
-  from: fromType; // std, cpt  来自标准工料机库、补充工料机库
-}
-
-export interface IUnitPrice {
-  ID: string;
-  basePrice: number; // 基价单价
-  marketPrice: number; // 市场单价
-  taxRate?: number; // 税率
-  code: string; // 编码
-  originalCode: string; // 原始的编码
-  name: string; // 名称
-  specs: string; // 规格型号
-  unit: string; // 单位
-  model?: number; // 机型
-  type: number; // 类型
-  gljID: string; // 对应标准库工料机id
-  from: fromType; // std, cpt  来自标准工料机库、补充工料机库
-  components?: IComponent[]; // 组成物
-  isAdd: boolean; // 是否新增
-}
-
-export interface IUnitPriceFile {
-  ID: string;
-  name: string;
-  userID?: string;
-  rootProjectID: string;
-  unitPrices: IUnitPrice[];
-  deleteType?: DeleteEnum;
-}