unitPrice.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import { DeleteEnum, fromType } from './base';
  2. export interface IComponent {
  3. ID: string;
  4. consumption: number; // 消耗量(有别于总消耗,此字段记录配合比的消耗量)
  5. gljID: string; // 工料机总库对应id (关联用)
  6. specs?: string; // 规格型号
  7. unit: string; // 单位
  8. name: string; // 名称
  9. code: string; // 对应工料机code
  10. type: number; // 工料机类型
  11. model?: number; // 机型
  12. from: fromType; // std, cpt 来自标准工料机库、补充工料机库
  13. }
  14. export interface IUnitPrice {
  15. ID: string;
  16. basePrice: number; // 基价单价
  17. marketPrice: number; // 市场单价
  18. taxRate?: number; // 税率
  19. code: string; // 编码
  20. originalCode: string; // 原始的编码
  21. name: string; // 名称
  22. specs?: string; // 规格型号
  23. unit: string; // 单位
  24. model?: number; // 机型
  25. type: number; // 类型
  26. gljID: string; // 对应标准库工料机id
  27. from: fromType; // std, cpt 来自标准工料机库、补充工料机库
  28. components?: IComponent[]; // 组成物
  29. isAdd: boolean; // 是否新增
  30. }
  31. export interface IUnitPriceFile {
  32. ID: string;
  33. name: string;
  34. userID?: string;
  35. rootProjectID: string;
  36. unitPrices: IUnitPrice[];
  37. deleteType?: DeleteEnum;
  38. }