guangxi_2021.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. // 清单基数
  2. const progression = [
  3. '施工场地建设费',
  4. '养护管理单位项目管理费',
  5. '项目信息化费',
  6. '工程监理费',
  7. '设计文件审查费(一阶段)',
  8. '设计文件审查费(二阶段)',
  9. '采用一阶段设计的工程设计费',
  10. '采用二阶段设计的工程设计费',
  11. '独立立项进行维修、加固的一般桥梁工程设计费',
  12. '独立立项进行维修、加固的技术复杂大桥工程设计费',
  13. '独立立项进行维修、加固的隧道工程设计费',
  14. '招标费',
  15. ];
  16. const deficiency = {
  17. '设计文件审查费(一阶段)': 4000,
  18. '设计文件审查费(二阶段)': 4000,
  19. };
  20. if (typeof baseFigureMap !== 'undefined') {
  21. const { fixedFlag } = commonConstants;
  22. const budgetMap = {
  23. // 显示:除清单固定类别是“建筑安装工程费”的以外部分可显示。
  24. '建筑安装工程费': {
  25. base: 'JZAZGCF',
  26. fixedFlag: fixedFlag.CONSTRUCTION_INSTALL_FEE,
  27. filter: [fixedFlag.CONSTRUCTION_INSTALL_FEE],
  28. pick: false,
  29. },
  30. // 显示:除清单固定类别是“建筑安装工程费”的以外部分可显示。
  31. '定额建筑安装工程费': {
  32. base: 'DEJZAZGCF',
  33. fixedFlag: fixedFlag.CONSTRUCTION_INSTALL_FEE,
  34. filter: [fixedFlag.CONSTRUCTION_INSTALL_FEE],
  35. pick: false,
  36. },
  37. // 显示:除“建筑安装工程费”以外部分可显示。
  38. '建筑安装工程费(不含设备费)': {
  39. base: 'JZAZGCFBHSB',
  40. fixedFlag: null,
  41. filter: [fixedFlag.CONSTRUCTION_INSTALL_FEE],
  42. pick: false,
  43. },
  44. // 显示:仅清单固定类别是“专项费用”可显示
  45. '定额建筑安装工程费(不含专项费用)': {
  46. base: 'DEJZAZGCFBHZX',
  47. fixedFlag: null,
  48. filter: [fixedFlag.SPECIAL_COST],
  49. pick: true,
  50. },
  51. // 显示:仅清单固定类别是“安全生产费”可显示。
  52. '建筑安装工程费(不含安全生产费)': {
  53. base: 'JZAZGCFBHSC',
  54. fixedFlag: null,
  55. filter: [fixedFlag.SAFE_COST],
  56. pick: true
  57. },
  58. // 显示:仅清单固定类别是“专项费用”可显示。
  59. '施工场地建设费': {
  60. isProgressive: true,
  61. base: 'SGCDJSF',
  62. fixedFlag: null,
  63. filter: [fixedFlag.SPECIAL_COST],
  64. pick: true,
  65. },
  66. // 显示:仅清单固定类别是“养护工程其他费用”部分可显示。
  67. '养护管理单位项目管理费': {
  68. isProgressive: true,
  69. base: 'YHGLDWXMGLF',
  70. fixedFlag: null,
  71. filter: [fixedFlag.MAINTENANCE_EXPENSES],
  72. pick: true,
  73. },
  74. // 显示:仅清单固定类别是“养护工程其他费用”部分可显示。
  75. '项目信息化费': {
  76. isProgressive: true,
  77. base: 'XMXXHF',
  78. fixedFlag: null,
  79. filter: [fixedFlag.MAINTENANCE_EXPENSES],
  80. pick: true,
  81. },
  82. // 显示:仅清单固定类别是“养护工程其他费用”部分可显示。
  83. '工程监理费': {
  84. isProgressive: true,
  85. base: 'GCJLF',
  86. fixedFlag: null,
  87. filter: [fixedFlag.MAINTENANCE_EXPENSES],
  88. pick: true,
  89. },
  90. // 显示:仅清单固定类别是“养护工程其他费用”部分可显示。
  91. '设计文件审查费(一阶段)': {
  92. isProgressive: true,
  93. deficiency: 4000,
  94. base: 'SJWJSCFYJD',
  95. fixedFlag: null,
  96. filter: [fixedFlag.MAINTENANCE_EXPENSES],
  97. pick: true,
  98. },
  99. // 显示:仅清单固定类别是“养护工程其他费用”部分可显示。
  100. '设计文件审查费(二阶段)': {
  101. isProgressive: true,
  102. deficiency: 4000,
  103. base: 'SJWJSCFEJD',
  104. fixedFlag: null,
  105. filter: [fixedFlag.MAINTENANCE_EXPENSES],
  106. pick: true,
  107. },
  108. // 显示:仅清单固定类别是“养护工程其他费用”部分可显示。
  109. '采用一阶段设计的工程设计费': {
  110. isProgressive: true,
  111. base: 'CQYJDSJDGCSJF',
  112. fixedFlag: null,
  113. filter: [fixedFlag.MAINTENANCE_EXPENSES],
  114. pick: true,
  115. },
  116. // 显示:仅清单固定类别是“养护工程其他费用”部分可显示。
  117. '采用二阶段设计的工程设计费': {
  118. isProgressive: true,
  119. base: 'CQEJDSJDGCSJF',
  120. fixedFlag: null,
  121. filter: [fixedFlag.MAINTENANCE_EXPENSES],
  122. pick: true,
  123. },
  124. // 显示:仅清单固定类别是“养护工程其他费用”部分可显示。
  125. '独立立项进行维修、加固的一般桥梁工程设计费': {
  126. isProgressive: true,
  127. base: 'DLLXJXWXJGDYBQLGCSJF',
  128. fixedFlag: null,
  129. filter: [fixedFlag.MAINTENANCE_EXPENSES],
  130. pick: true,
  131. },
  132. // 显示:仅清单固定类别是“养护工程其他费用”部分可显示。
  133. '独立立项进行维修、加固的技术复杂大桥工程设计费': {
  134. isProgressive: true,
  135. base: 'DLLXJXWXJGDJSFZDQGCSJF',
  136. fixedFlag: null,
  137. filter: [fixedFlag.MAINTENANCE_EXPENSES],
  138. pick: true,
  139. },
  140. // 显示:仅清单固定类别是“养护工程其他费用”部分可显示。
  141. '独立立项进行维修、加固的隧道工程设计费': {
  142. isProgressive: true,
  143. base: 'DLLXJXWXJGDSDGCSJF',
  144. fixedFlag: null,
  145. filter: [fixedFlag.MAINTENANCE_EXPENSES],
  146. pick: true,
  147. },
  148. // 显示:仅清单固定类别是“养护工程其他费用”部分可显示。
  149. '招标费': {
  150. isProgressive: true,
  151. base: 'ZBF',
  152. fixedFlag: null,
  153. filter: [fixedFlag.MAINTENANCE_EXPENSES],
  154. pick: true,
  155. },
  156. // 显示:仅“价差预备费”可显示
  157. '价差预备费': {
  158. base: 'JCYBF',
  159. fixedFlag: null,
  160. filter: [fixedFlag.SPREAD_BUDGET_FEE],
  161. pick: true,
  162. },
  163. };
  164. const boqMap = {
  165. //仅允许用于固定类别是“第100章至700章清单”以外的清单
  166. '各章清单合计': {
  167. base: 'GZQDHJ',
  168. fixedFlag: fixedFlag.ONE_SEVEN_BILLS,
  169. filter: [fixedFlag.ONE_SEVEN_BILLS],
  170. pick: false
  171. },
  172. //仅允许用于固定类别是“第100章至700章清单”以外的清单
  173. '专项暂定合计': {
  174. base: 'ZXZDHJ',
  175. fixedFlag: null,
  176. filter: [fixedFlag.ONE_SEVEN_BILLS],
  177. pick: false
  178. },
  179. /*
  180. * 清单固定行[第100章至700章清单]下的[第100章清单]需要允许清单可使用基数{100章以外合计}
  181. * 因此{100章以外合计}不设置关联的清单固定行
  182. * */
  183. //仅允许用于固定类别为“100章清单”引用
  184. '100章以外清单合计': {
  185. base: 'YBZYWQDHJ',
  186. fixedFlag: null,
  187. filter: [fixedFlag.ONE_HUNDRED_BILLS],
  188. pick: true
  189. }
  190. };
  191. baseFigureMap.budget = budgetMap;
  192. baseFigureMap.boq = boqMap;
  193. }
  194. if (typeof baseFigureTemplate !== 'undefined') {
  195. const { fixedFlag } = commonConstants;
  196. baseFigureTemplate.budget = {
  197. // 建筑安装工程费 算法:取清单固定类别是“建筑安装工程费”的金额。
  198. JZAZGCF(tender) {
  199. return cbTools.getBaseFee(fixedFlag.CONSTRUCTION_INSTALL_FEE, tender, 'common');
  200. },
  201. // 定额建筑安装工程费 算法:取清单固定类别是“建筑安装工程费”的定额建安费。
  202. DEJZAZGCF(tender) {
  203. return cbTools.getBaseFee(fixedFlag.CONSTRUCTION_INSTALL_FEE, tender, 'rationCommon');
  204. },
  205. // 建筑安装工程费(不含设备费) 算法:取清单固定类别是“建筑安装工程费”的金额,扣除设备购置。
  206. JZAZGCFBHSB(tender) {
  207. let baseFee = this['JZAZGCF'](tender);
  208. const fixedNode = projectObj.project.mainTree.roots.find(node => node.getFlag() === fixedFlag.CONSTRUCTION_INSTALL_FEE);
  209. const equipmentFee = cbTools.getEquipmentFee(fixedNode, tender);
  210. baseFee = (baseFee - equipmentFee).toDecimal(decimalObj.process);
  211. return baseFee.toDecimal(decimalObj.bills.totalPrice);
  212. },
  213. // 定额建筑安装工程费(不含专项费用) 算法:取清单固定类别是“建筑安装工程费”的定额建安费,扣除“专项费用”行的定额建安费。
  214. DEJZAZGCFBHZX(tender) {
  215. return cbTools.getFeeWithDeduction(fixedFlag.CONSTRUCTION_INSTALL_FEE, [fixedFlag.SPECIAL_COST], tender, 'rationCommon');
  216. },
  217. // 建筑安装工程费(不含安全生产费) 算法:取清单固定类别是“建筑安装工程费”的金额,扣除“安全生产费”的金额。
  218. JZAZGCFBHSC(tender) {
  219. return cbTools.getFeeWithDeduction(fixedFlag.CONSTRUCTION_INSTALL_FEE, [fixedFlag.SAFE_COST], tender, 'common');
  220. },
  221. // 施工场地建设费 算法:按“定额建筑安装工程费(不含专项费用)”为基数,以累进办法计算。
  222. SGCDJSF(tender) {
  223. const baseFee = this['DEJZAZGCFBHZX'](tender);
  224. if (!tender) {
  225. calcBase.baseProgressiveFee = baseFee;
  226. }
  227. return calculateUtil.getProgressiveFee(baseFee, '施工场地建设费', projectObj.project.property.progressiveInterval, decimalObj.bills.totalPrice, deficiency);
  228. },
  229. // 养护管理单位项目管理费 算法:按“定额建筑安装工程费”为基数,以累进办法计算。
  230. YHGLDWXMGLF(tender) {
  231. const baseFee = this['DEJZAZGCF'](tender);
  232. if (!tender) {
  233. calcBase.baseProgressiveFee = baseFee;
  234. }
  235. return calculateUtil.getProgressiveFee(baseFee, '养护管理单位项目管理费', projectObj.project.property.progressiveInterval, decimalObj.bills.totalPrice, deficiency);
  236. },
  237. // 项目信息化费 算法:按“定额建筑安装工程费”为基数,以累进办法计算。
  238. XMXXHF(tender) {
  239. const baseFee = this['DEJZAZGCF'](tender);
  240. if (!tender) {
  241. calcBase.baseProgressiveFee = baseFee;
  242. }
  243. return calculateUtil.getProgressiveFee(baseFee, '项目信息化费', projectObj.project.property.progressiveInterval, decimalObj.bills.totalPrice, deficiency);
  244. },
  245. // 工程监理费 算法:按“定额建筑安装工程费”为基数,以累进办法计算。
  246. GCJLF(tender) {
  247. const baseFee = this['DEJZAZGCF'](tender);
  248. if (!tender) {
  249. calcBase.baseProgressiveFee = baseFee;
  250. }
  251. return calculateUtil.getProgressiveFee(baseFee, '工程监理费', projectObj.project.property.progressiveInterval, decimalObj.bills.totalPrice, deficiency);
  252. },
  253. // 设计文件审查费(一阶段) 算法:按“定额建筑安装工程费”为基数,以累进办法计算。
  254. SJWJSCFYJD(tender) {
  255. const baseFee = this['DEJZAZGCF'](tender);
  256. if (!tender) {
  257. calcBase.baseProgressiveFee = baseFee;
  258. }
  259. return calculateUtil.getProgressiveFee(baseFee, '设计文件审查费(一阶段)', projectObj.project.property.progressiveInterval, decimalObj.bills.totalPrice, deficiency);
  260. },
  261. // 设计文件审查费(二阶段) 算法:按“定额建筑安装工程费”为基数,以累进办法计算。
  262. SJWJSCFEJD(tender) {
  263. const baseFee = this['DEJZAZGCF'](tender);
  264. if (!tender) {
  265. calcBase.baseProgressiveFee = baseFee;
  266. }
  267. return calculateUtil.getProgressiveFee(baseFee, '设计文件审查费(二阶段)', projectObj.project.property.progressiveInterval, decimalObj.bills.totalPrice, deficiency);
  268. },
  269. // 采用一阶段设计的工程设计费 算法:按“定额建筑安装工程费”为基数,以累进办法计算。
  270. CQYJDSJDGCSJF(tender) {
  271. const baseFee = this['DEJZAZGCF'](tender);
  272. if (!tender) {
  273. calcBase.baseProgressiveFee = baseFee;
  274. }
  275. return calculateUtil.getProgressiveFee(baseFee, '采用一阶段设计的工程设计费', projectObj.project.property.progressiveInterval, decimalObj.bills.totalPrice, deficiency);
  276. },
  277. // 采用二阶段设计的工程设计费 算法:按“定额建筑安装工程费”为基数,以累进办法计算。
  278. CQEJDSJDGCSJF(tender) {
  279. const baseFee = this['DEJZAZGCF'](tender);
  280. if (!tender) {
  281. calcBase.baseProgressiveFee = baseFee;
  282. }
  283. return calculateUtil.getProgressiveFee(baseFee, '采用二阶段设计的工程设计费', projectObj.project.property.progressiveInterval, decimalObj.bills.totalPrice, deficiency);
  284. },
  285. // 独立立项进行维修、加固的一般桥梁工程设计费 算法:按“定额建筑安装工程费”为基数,以累进办法计算。
  286. DLLXJXWXJGDYBQLGCSJF(tender) {
  287. const baseFee = this['DEJZAZGCF'](tender);
  288. if (!tender) {
  289. calcBase.baseProgressiveFee = baseFee;
  290. }
  291. return calculateUtil.getProgressiveFee(baseFee, '独立立项进行维修、加固的一般桥梁工程设计费', projectObj.project.property.progressiveInterval, decimalObj.bills.totalPrice, deficiency);
  292. },
  293. // 独立立项进行维修、加固的技术复杂大桥工程设计费 算法:按“定额建筑安装工程费”为基数,以累进办法计算。
  294. DLLXJXWXJGDJSFZDQGCSJF(tender) {
  295. const baseFee = this['DEJZAZGCF'](tender);
  296. if (!tender) {
  297. calcBase.baseProgressiveFee = baseFee;
  298. }
  299. return calculateUtil.getProgressiveFee(baseFee, '独立立项进行维修、加固的技术复杂大桥工程设计费', projectObj.project.property.progressiveInterval, decimalObj.bills.totalPrice, deficiency);
  300. },
  301. // 独立立项进行维修、加固的隧道工程设计费 算法:按“定额建筑安装工程费”为基数,以累进办法计算。
  302. DLLXJXWXJGDSDGCSJF(tender) {
  303. const baseFee = this['DEJZAZGCF'](tender);
  304. if (!tender) {
  305. calcBase.baseProgressiveFee = baseFee;
  306. }
  307. return calculateUtil.getProgressiveFee(baseFee, '独立立项进行维修、加固的隧道工程设计费', projectObj.project.property.progressiveInterval, decimalObj.bills.totalPrice, deficiency);
  308. },
  309. // 招标费 算法:按“指标建筑安装工程费”为基数,以累进办法计算。
  310. ZBF(tender) {
  311. const baseFee = this['DEJZAZGCF'](tender);
  312. if (!tender) {
  313. calcBase.baseProgressiveFee = baseFee;
  314. }
  315. return calculateUtil.getProgressiveFee(baseFee, '招标费', projectObj.project.property.progressiveInterval, decimalObj.bills.totalPrice, deficiency);
  316. },
  317. /* 价差预备费 算法:以建筑安装工程费为基数,按设计文件编制年始至养护项目工程竣工年终的年数和年工程造价增涨率计算。
  318. 价差预备费 P * [(1+i)^(n-1) -1]
  319. P——建筑安装工程费总额(元);
  320. i——年工程造价增涨率(%);
  321. n——设计文件编制年至养护项目开工年+养护项目建设期限(年)。
  322. */
  323. JCYBF(tender) {
  324. //建筑安装工程费作为基数
  325. const installFee = this['JZAZGCF'](tender);
  326. //年造价增涨
  327. const costGrowthRate = calcBase.project.property.costGrowthRate
  328. ? calcBase.project.property.costGrowthRate
  329. : 0;
  330. //增涨计费年限
  331. const growthPeriod = projectObj.project.property.growthPeriod
  332. ? calcBase.project.property.growthPeriod
  333. : 0;
  334. //= P * [(1+i)^(n-1) -1]
  335. return (installFee * (Math.pow(1 + costGrowthRate, growthPeriod - 1) - 1)).toDecimal(decimalObj.bills.totalPrice);
  336. }
  337. };
  338. baseFigureTemplate.boq = {
  339. //{各章清单合计}
  340. // 取清单固定类别是“第100章至700章清单”的金额
  341. 'GZQDHJ': function (tender) {
  342. return cbTools.getBaseFee(calcBase.fixedFlag.ONE_SEVEN_BILLS, tender, 'common');
  343. },
  344. //{专项暂定合计}
  345. // 第100章至700章清单行的暂估合价
  346. 'ZXZDHJ': function (tender) {
  347. return cbTools.getBaseFee(calcBase.fixedFlag.ONE_SEVEN_BILLS, tender, 'estimate');
  348. },
  349. //{100章以外清单合计}
  350. // 取清单固定清单[第100章至700章清单]的金额,但扣除清单100章下的金额。
  351. // 如果是固定清单[第100章至700章清单]下100章以外清单引用此基数,要排除自身(目前只允许100章的清单使用,所以暂时不需要此判断)
  352. 'YBZYWQDHJ': function (tender) {
  353. let oneToSeven = cbTools.findNodeByFlag(fixedFlag.ONE_SEVEN_BILLS);
  354. if (!oneToSeven) {
  355. return 0;
  356. }
  357. //100-700章固定节点的所有子节点
  358. let allChildren = [];
  359. function getChildren(nodes) {
  360. allChildren = allChildren.concat(nodes);
  361. for (let node of nodes) {
  362. if (node.children.length > 0) {
  363. getChildren(node.children);
  364. }
  365. }
  366. }
  367. getChildren(oneToSeven.children);
  368. //扣除的节点:100章的节点[100-200)
  369. let deductNodes = allChildren.filter(cbTools.withingOneHundred);
  370. //计算金额
  371. let fullFeeField = tender ? 'common.tenderTotalFee' : 'common.totalFee';
  372. return projectObj.project.calcProgram.getTotalFee([oneToSeven], deductNodes, fullFeeField).toDecimal(decimalObj.bills.totalPrice);
  373. }
  374. };
  375. }
  376. function overwriteRationCalcBases() {
  377. if (typeof rationCalcBases == 'undefined') return;
  378. for (let key in rationCalcBases) delete rationCalcBases[key];
  379. rationCalcBases['人工费'] = function (node, isTender) {
  380. return calcTools.rationBaseFee(node, [gljType.LABOUR], priceTypes.ptMarketPrice, isTender);
  381. };
  382. rationCalcBases['材料费'] = function (node, isTender) {
  383. return calcTools.rationBaseFee(node, baseMaterialTypes, priceTypes.ptMarketPrice, isTender);
  384. };
  385. rationCalcBases['施工机械使用费'] = function (node, isTender) {
  386. return calcTools.rationBaseFee(node, baseMachineTypes, priceTypes.ptMarketPrice, isTender);
  387. };
  388. rationCalcBases['施工机械人工费'] = function (node, isTender) {
  389. return calcTools.machineDetailFee(node, node.data.gljList, [], gljType.MACHINE_LABOUR, isTender);
  390. };
  391. rationCalcBases['设备购置费'] = function (node, isTender) {
  392. return calcTools.rationBaseFee(node, [gljType.EQUIPMENT], priceTypes.ptMarketPrice, isTender);
  393. };
  394. rationCalcBases['定额人工费'] = function (node, isTender) {
  395. return calcTools.rationBaseFee(node, [gljType.LABOUR], priceTypes.ptBasePrice, isTender);
  396. };
  397. rationCalcBases['定额材料费'] = function (node, isTender) {
  398. return calcTools.rationBaseFee(node, baseMaterialTypes, priceTypes.ptBasePrice, isTender);
  399. };
  400. rationCalcBases['定额施工机械使用费'] = function (node, isTender) {
  401. return calcTools.rationBaseFee(node, baseMachineTypes, priceTypes.ptBasePrice, isTender);
  402. };
  403. rationCalcBases['定额商品砼费'] = function (node, isTender) {
  404. return calcTools.rationBaseFee(node, [gljType.COMMERCIAL_CONCRETE, gljType.COMMERCIAL_MORTAR], priceTypes.ptBasePrice, isTender);
  405. };
  406. rationCalcBases['定额设备购置费'] = function (node, isTender) {
  407. return calcTools.rationBaseFee(node, [gljType.EQUIPMENT], priceTypes.ptBasePrice, isTender);
  408. };
  409. rationCalcBases['定额外购砼构件费'] = function (node, isTender) {
  410. return calcTools.rationBaseFee(node, [gljType.PURCHASE_COMPONENT], priceTypes.ptBasePrice, isTender);
  411. };
  412. rationCalcBases['定额绿化苗木费'] = function (node, isTender) {
  413. return calcTools.rationBaseFee(node, [gljType.GREEN_SEEDLING], priceTypes.ptBasePrice, isTender);
  414. };
  415. };
  416. if (typeof projectObj !== 'undefined') {
  417. projectObj.isInsertEquipmentVisable = function (selected) {
  418. return true; //广西不管是预算或者工程量清单,都是显示
  419. }
  420. }
  421. if (typeof feeRateObject !== 'undefined') {
  422. feeRateObject.feeRateSpecialHandle = function (subRate, value) {
  423. let result = {};
  424. if (subRate.name == "工地转移(km)" && value && value < 50) {//工地转移50km以内按50km算
  425. result.valueKey = "50";
  426. result.value = scMathUtil.roundForObj(value, getDecimal("feeRate"));//设置显示的节点值
  427. }
  428. if (subRate.name == "综合里程(km)" && value && value < 3) {//综合里程3km以内按3km算
  429. result.valueKey = "3";
  430. result.value = scMathUtil.roundForObj(value, getDecimal("feeRate"));//设置显示的节点值
  431. }
  432. if (subRate.name == "施工进出场(km)" && value && value < 5) {//施工进出场5km以内按3km算
  433. result.valueKey = "5";
  434. result.value = scMathUtil.roundForObj(value, getDecimal("feeRate"));//设置显示的节点值
  435. }
  436. return result;
  437. }
  438. }
  439. (function overwriteFeeTypes() {
  440. if (typeof cpFeeTypes == 'undefined') return;
  441. cpFeeTypes = [
  442. { type: 'marketDirect', name: '直接费' },
  443. { type: 'marketLabour', name: '人工费' },
  444. { type: 'marketMaterial', name: '材料费' },
  445. { type: 'marketMachine', name: '施工机械使用费' },
  446. { type: 'marketMachineLabour', name: '施工机械人工费' },
  447. { type: 'marketEquipment', name: '设备购置费' },
  448. { type: 'labour', name: '定额人工费' },
  449. { type: 'material', name: '定额材料费' },
  450. { type: 'machine', name: '定额施工机械使用费' },
  451. { type: 'equipment', name: '定额设备购置费' },
  452. { type: 'direct', name: '定额直接费' },
  453. { type: 'measure', name: '措施费' },
  454. { type: 'manage', name: '企业管理费' },
  455. { type: 'force', name: '规费' },
  456. { type: 'profit', name: '利润' },
  457. { type: 'tax', name: '税金' },
  458. { type: 'common', name: '建安费' },
  459. { type: 'rationCommon', name: '定额建安费' }
  460. ];
  461. })();