glj.ts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. import { fromType, supplyType } from './base';
  2. // 工料机类型
  3. export enum GljType {
  4. LABOUR = 1, // 人工
  5. // ==============材料类型 ↓=================
  6. GENERAL_MATERIAL = 201, // 普通材料
  7. CONCRETE = 202, // 混凝土
  8. MORTAR = 203, // 砂浆
  9. MIX_RATIO = 204, // 配合比
  10. COMMERCIAL_CONCRETE = 205, // 商品混凝土
  11. COMMERCIAL_MORTAR = 206, // 商品砂浆
  12. OTHER_MATERIAL = 207, // 其它材料
  13. // ==============材料类型 ↑=================
  14. // ==============机械类型 ↓=================
  15. GENERAL_MACHINE = 301, // 机械台班
  16. MACHINE_COMPOSITION = 302, // 机械组成物
  17. MACHINE_LABOUR = 303, // 机上人工
  18. INSTRUMENT = 304, // 仪器仪表
  19. FUEL_POWER_FEE = 305, // 燃料动力费
  20. DEPRECIATION_FEE = 306, // 折旧费
  21. INSPECTION_FEE = 307, // 检修费
  22. MAINTENANCE = 308, // 维护费
  23. DISMANTLING_FREIGHT_FEE = 309, // 安拆费及场外运费
  24. VERIFICATION_FEE = 310, // 校验费
  25. OTHER_FEE = 311, // 其他费用
  26. OTHER_MACHINE_USED = 312, // 其他施工机具使用费
  27. // ==============机械类型 ↑=================
  28. MAIN_MATERIAL = 4, // 主材
  29. EQUIPMENT = 5, // 设备
  30. MANAGEMENT_FEE = 6, // 企业管理费
  31. PROFIT = 7, // 利润
  32. GENERAL_RISK_FEE = 8, // 一般风险费
  33. }
  34. export interface IBaseGlj {
  35. code: string;
  36. name: string;
  37. specs?: string;
  38. type: GljType;
  39. unit: string;
  40. [key: string]: any;
  41. }
  42. export interface IDisplayType {
  43. [type: number]: string;
  44. }
  45. export const DisplayType: IDisplayType = {
  46. 1: '人',
  47. 201: '材',
  48. 202: '砼',
  49. 203: '浆',
  50. 204: '配比',
  51. 205: '商砼',
  52. 206: '商浆',
  53. 207: '材',
  54. 208: '外购',
  55. 209: '苗木',
  56. 301: '机',
  57. 302: '机',
  58. 303: '机人',
  59. 304: '仪',
  60. 305: '动',
  61. 306: '折',
  62. 307: '检',
  63. 308: '维',
  64. 309: '安',
  65. 310: '校',
  66. 311: '机',
  67. 312: '机',
  68. 4: '主',
  69. 5: '设',
  70. 6: '管',
  71. 7: '利',
  72. 8: '险',
  73. };
  74. export interface IComponent {
  75. ID: string;
  76. consumption: number; // 消耗量(有别于总消耗,此字段记录配合比的消耗量)
  77. gljID: string; // 工料机总库对应id (关联用)
  78. specs?: string; // 规格型号
  79. unit: string; // 单位
  80. name: string; // 名称
  81. code: string; // 对应工料机code
  82. type: GljType; // 工料机类型
  83. model?: number; // 机型
  84. from: fromType; // std, cpt 来自标准工料机库、补充工料机库
  85. }
  86. export enum MaterialType {
  87. GC = 1,
  88. GJ = 2,
  89. MC = 3,
  90. SN = 4,
  91. ST = 5,
  92. SS = 6,
  93. }
  94. export const MaterialDisplay = {
  95. 1: '钢材',
  96. 2: '钢筋',
  97. 3: '木材',
  98. 4: '水泥',
  99. 5: '商品砼',
  100. 6: '商品砂浆',
  101. };
  102. export interface IProjectGlj {
  103. ID: string;
  104. gljID: string; // 工料机ID
  105. code: string; // 编码
  106. originalCode: string; // 原始的编码
  107. name: string; // 名称
  108. isEvaluate?: boolean; // 是否暂估 (false为否 true为是) //这个属性考虑放弃
  109. supply: supplyType; // 供货方式
  110. supplyQuantity?: number; // 甲供数量
  111. delivery?: string; // 交货方式
  112. deliveryAddress?: string; // 送达地点
  113. noAdjustPrice: boolean; // 不调价 { type: boolean; default: false }
  114. noTaxEqp?: boolean; // 不计税设备 { type: boolean; default: false }
  115. adjCoe?: number; // 调整系数ID
  116. specs: string; // 规格型号
  117. type: GljType; // 类型
  118. model?: number; // 机型
  119. unit: string; // 单位
  120. isAdd: boolean; // 是否新增
  121. basePrice: number; // 基价单价
  122. marketPrice: number; // 市场单价
  123. components?: IComponent[]; // 组成物
  124. taxRate?: number; // 税率
  125. adjustPrice?: string; // 显示调整基价
  126. quantity?: number; // 显示关联的消耗量
  127. techQuantity?: string; // 技术措施项目消耗量
  128. subdivisionQuantity?: string; // 分部分项消耗量
  129. tenderPrice?: string; // 调整后价格
  130. materialType?: MaterialType; // 三材类别
  131. materialCoe?: number; // 三材系数
  132. // 经济指标数据
  133. materialIndexType?: string; // 工料指标类别
  134. materialIndexUnit?: string; // 工料指标单位
  135. materialIndexCoe: number; // 单位转换系数
  136. isMainMaterial: boolean; // 是否主要材料 (0为否 1为是) { type: boolean; default: false };
  137. remark?: string;
  138. originPlace?: string; // 产地
  139. vender?: string; // 厂家
  140. qualityGrade?: string; // 质量等级
  141. brand?: string; // 品牌
  142. priceFrom?: string; // 价格来源
  143. from: fromType; // std, cpt 来自标准工料机库、补充工料机库
  144. }
  145. export interface IProjectGljs {
  146. projectID: string;
  147. projectGljs: IProjectGlj[];
  148. }