hunan_2020.js 21 KB

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