anhui_maanshan.js 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842
  1. /*
  2. * @Descripttion: 安徽-马鞍山 接口
  3. * @Author: vian
  4. * @Date: 2020-08-17 15:40:08
  5. */
  6. // INTERFACE_EXPORT =,必须这么写,这样才能在导出时动态加载脚本后,覆盖前端代码
  7. INTERFACE_EXPORT = (() => {
  8. 'use strict';
  9. /**
  10. *
  11. * @param {String} areaKey - 地区标识,如:'安徽@马鞍山',有些地区的接口只是取值上有不同,共有一个接口脚本, 需要通过地区标识确定一些特殊处理
  12. * @param {Number} exportKind - 导出类型,招标、投标、控制价
  13. * @param {Object} projectData - 项目表数据:{ 建设项目Data, children: [单位工程...] }
  14. * @param {Object} tenderDetailMap - 单位工程ID与getData接口数据(projectObj.project的结构)的映射。
  15. * @return {Promise<Array>} - 返回的数据结构必须按照规定:[{ data, exportKind, fileName }],参考web\building_saas\standard_interface\index.js中的注释说明
  16. */
  17. async function entry(areaKey, exportKind, projectData, tenderDetailMap) {
  18. const {
  19. CONFIG: {
  20. TYPE,
  21. WHITE_SPACE
  22. },
  23. UTIL: {
  24. getValueByKey,
  25. getHan,
  26. getFee,
  27. generateHardwareId,
  28. },
  29. Element,
  30. } = INTERFACE_EXPORT_BASE;
  31. const {
  32. EXPORT_KIND: { BID_INVITATION, BID_SUBMISSION, CONTROL },
  33. fixedFlag,
  34. RationType,
  35. } = window.commonConstants
  36. const GljType = gljUtil.gljType;
  37. const { isEmptyVal, isDef } = window.commonUtil;
  38. const isBidInvitation = exportKind === BID_INVITATION; // 是否是招标
  39. const isBidSubmission = exportKind === BID_SUBMISSION; // 是否是投标
  40. const isControl = exportKind === CONTROL; // 是否是控制价
  41. // 节点定义--------------------------------
  42. const subArea = areaKey.split('@')[1];
  43. // 建设项目基本信息
  44. function JingJiBiao(projectName, information) {
  45. const taxModeMap = {
  46. '一般计税': '1',
  47. '简易计税': '2',
  48. };
  49. const czzt = {
  50. [BID_INVITATION]: '招标',
  51. [BID_SUBMISSION]: '投标',
  52. [CONTROL]: '招标控制',
  53. };
  54. const attrs = [
  55. { name: 'Xmbh', value: getValueByKey(information, 'projNum'), minLen: 1, whiteSpace: WHITE_SPACE.COLLAPSE }, // 项目编号,招标xsd中有规定minLen whiteSpace,这里投标招标统一处理
  56. { name: 'Xmmc', value: projectName }, // 项目名称
  57. { name: 'Bzlx', value: '清单' }, // 项目编制类型
  58. { name: 'Jjyj', value: '【18清单】2018部颁清单计价依据' }, // 计价依据
  59. { name: 'Xmqzzh', value: getValueByKey(information, 'startEndChainages') }, // 项目起止桩号
  60. { name: 'Jsdw', value: getValueByKey(information, 'constructingUnits') }, // 建设单位
  61. { name: 'Czzt', value: czzt[exportKind] }, // 操作状态:招标、投标、招标控制,即导出接口时,所选的文件类型
  62. { name: 'Jsfs', value: taxModeMap[getValueByKey(information, 'taxMode')] || '1', type: TYPE.INT }, // 计税方式,默认1。1=一般计税 2=简易计税
  63. { name: 'Version', value: ['淮北', '铜陵', '亳州'].includes(subArea) ? '1.1' : '1.0' },
  64. ];
  65. Element.call(this, 'JingJiBiao', attrs);
  66. }
  67. // 招标信息
  68. function ZhaoBiaoXx(information) {
  69. const attrs = [
  70. { name: 'Zbr', value: getValueByKey(information, 'tendereeName') }, // 招标人
  71. { name: 'Zxr', value: getValueByKey(information, 'costConsultant') }, // 造价咨询人
  72. { name: 'ZbrDb', value: getValueByKey(information, 'tenderAuthorizer') }, // 招标人法定代表人或其授权人
  73. { name: 'ZxrDb', value: getValueByKey(information, 'consultantAuthorizer') }, // 造价咨询人法定代表人或其授权人
  74. { name: 'Bzr', value: getValueByKey(information, 'compileApprover') }, // 编制人
  75. { name: 'Fhr', value: getValueByKey(information, 'reviewApprover') }, // 复核人
  76. { name: 'BzTime', value: getValueByKey(information, 'compileDate'), type: TYPE.DATE }, // 编制时间
  77. { name: 'FhTime', value: getValueByKey(information, 'reviewDate'), type: TYPE.DATE }, // 复核时间
  78. ];
  79. // 额外字段
  80. const extraMap = {
  81. '淮北': [
  82. { name: 'ZbrNssbh', value: getValueByKey(information, 'tendereeTaxpayerIdentificationNo') }, // 招标人纳税识别号
  83. { name: 'ZxrNssbh', value: getValueByKey(information, 'costConsultantTaxpayerIdentificationNo') }, // 造价咨询人纳税识别号
  84. { name: 'ZbrDbSfzh', value: getValueByKey(information, 'tenderAuthorizerIDNo') }, // 招标人法定代表人或其授权人身份证号
  85. { name: 'ZxrDbSfzh', value: getValueByKey(information, 'consultantAuthorizerTaxpayerIdentificationNo') }, // 造价咨询人法定代表或其授权人纳税识别号
  86. ],
  87. '铜陵': [
  88. { name: 'ZbrNssbh', value: getValueByKey(information, 'tendereeTaxpayerIdentificationNo') }, // 招标人纳税识别号
  89. { name: 'ZxrNssbh', value: getValueByKey(information, 'costConsultantTaxpayerIdentificationNo') }, // 造价咨询人纳税识别号
  90. { name: 'ZbrDbSfzh', value: getValueByKey(information, 'tenderAuthorizerIDNo') }, // 招标人法定代表人或其授权人身份证号
  91. { name: 'ZxrDbSfzh', value: getValueByKey(information, 'consultantAuthorizerTaxpayerIdentificationNo') }, // 造价咨询人法定代表或其授权人纳税识别号
  92. ],
  93. '亳州': [
  94. { name: 'ZbrNssbh', value: getValueByKey(information, 'tendereeTaxpayerIdentificationNo') }, // 招标人纳税识别号
  95. { name: 'ZxrNssbh', value: getValueByKey(information, 'costConsultantTaxpayerIdentificationNo') }, // 造价咨询人纳税识别号
  96. { name: 'ZbrDbSfzh', value: getValueByKey(information, 'tenderAuthorizerIDNo') }, // 招标人法定代表人或其授权人身份证号
  97. { name: 'ZxrDbSfzh', value: getValueByKey(information, 'consultantAuthorizerTaxpayerIdentificationNo') }, // 造价咨询人法定代表或其授权人纳税识别号
  98. ],
  99. };
  100. if (extraMap[subArea]) {
  101. attrs.push(...extraMap[subArea]);
  102. }
  103. Element.call(this, 'ZhaoBiaoXx', attrs);
  104. }
  105. // 招标控制价信息
  106. function ZhaoBiaoKzXx(information, totalCost) {
  107. const attrs = [
  108. { name: 'Zbr', value: getValueByKey(information, 'tendereeName') }, // 招标人
  109. { name: 'Zxr', value: getValueByKey(information, 'costConsultant') }, // 造价咨询人
  110. { name: 'ZbrDb', value: getValueByKey(information, 'tenderAuthorizer') }, // 招标人法定代表人或其授权人
  111. { name: 'ZxrDb', value: getValueByKey(information, 'consultantAuthorizer') }, // 造价咨询人法定代表人或其授权人
  112. { name: 'Bzr', value: getValueByKey(information, 'compileApprover') }, // 编制人
  113. { name: 'Fhr', value: getValueByKey(information, 'reviewApprover') }, // 复核人
  114. { name: 'BzTime', value: getValueByKey(information, 'compileDate'), type: TYPE.DATE }, // 编制时间
  115. { name: 'FhTime', value: getValueByKey(information, 'reviewDate'), type: TYPE.DATE }, // 复核时间
  116. { name: 'Zbkzj', value: totalCost, type: TYPE.DECIMAL }, // 控制价总价(元),取“投标报价”的金额。
  117. ];
  118. // 额外字段
  119. const extraMap = {
  120. '淮北': [
  121. { name: 'ZbrNssbh', value: getValueByKey(information, 'tendereeTaxpayerIdentificationNo') }, // 招标人纳税识别号
  122. { name: 'ZxrNssbh', value: getValueByKey(information, 'costConsultantTaxpayerIdentificationNo') }, // 造价咨询人纳税识别号
  123. { name: 'ZbrDbSfzh', value: getValueByKey(information, 'tenderAuthorizerIDNo') }, // 招标人法定代表人或其授权人身份证号
  124. { name: 'ZxrDbSfzh', value: getValueByKey(information, 'consultantAuthorizerTaxpayerIdentificationNo') }, // 造价咨询人法定代表或其授权人纳税识别号
  125. ],
  126. '铜陵': [
  127. { name: 'ZbrNssbh', value: getValueByKey(information, 'tendereeTaxpayerIdentificationNo') }, // 招标人纳税识别号
  128. { name: 'ZxrNssbh', value: getValueByKey(information, 'costConsultantTaxpayerIdentificationNo') }, // 造价咨询人纳税识别号
  129. { name: 'ZbrDbSfzh', value: getValueByKey(information, 'tenderAuthorizerIDNo') }, // 招标人法定代表人或其授权人身份证号
  130. { name: 'ZxrDbSfzh', value: getValueByKey(information, 'consultantAuthorizerTaxpayerIdentificationNo') }, // 造价咨询人法定代表或其授权人纳税识别号
  131. ],
  132. '亳州': [
  133. { name: 'ZbrNssbh', value: getValueByKey(information, 'tendereeTaxpayerIdentificationNo') }, // 招标人纳税识别号
  134. { name: 'ZxrNssbh', value: getValueByKey(information, 'costConsultantTaxpayerIdentificationNo') }, // 造价咨询人纳税识别号
  135. { name: 'ZbrDbSfzh', value: getValueByKey(information, 'tenderAuthorizerIDNo') }, // 招标人法定代表人或其授权人身份证号
  136. { name: 'ZxrDbSfzh', value: getValueByKey(information, 'consultantAuthorizerTaxpayerIdentificationNo') }, // 造价咨询人法定代表或其授权人纳税识别号
  137. ],
  138. };
  139. if (extraMap[subArea]) {
  140. attrs.push(...extraMap[subArea]);
  141. }
  142. Element.call(this, 'ZhaoBiaoKzXx', attrs);
  143. }
  144. // 招标控制价信息
  145. function TouBiaoXx(information, totalCost) {
  146. const attrs = [
  147. { name: 'Zbr', value: getValueByKey(information, 'tendereeName') }, // 招标人
  148. { name: 'Tbr', value: getValueByKey(information, 'bidder') }, // 投标人
  149. { name: 'TbrDb', value: getValueByKey(information, 'bidderAuthorizer') }, // 投标人法定代表或其授权
  150. { name: 'Bzr', value: getValueByKey(information, 'compileApprover') }, // 编制人
  151. { name: 'BzTime', value: getValueByKey(information, 'compileDate'), type: TYPE.DATE }, // 编制时间
  152. { name: 'Tbzj', value: totalCost, type: TYPE.DECIMAL }, // 控制价总价(元),取“投标报价”的金额。
  153. ];
  154. // 额外字段
  155. const extraMap = {
  156. '淮北': [
  157. { name: 'ZbrNssbh', value: getValueByKey(information, 'tendereeTaxpayerIdentificationNo') }, // 招标人纳税识别号
  158. { name: 'TbrNssbh', value: getValueByKey(information, 'bidderTaxpayerIdentificationNo') }, // 投标人纳税识别号
  159. { name: 'TbrDbSfzh', value: getValueByKey(information, 'bidderAuthorizerTaxpayerIdentificationNo') }, // 投标人法定代表或其授权人身份证号
  160. ],
  161. '铜陵': [
  162. { name: 'ZbrNssbh', value: getValueByKey(information, 'tendereeTaxpayerIdentificationNo') }, // 招标人纳税识别号
  163. { name: 'TbrNssbh', value: getValueByKey(information, 'bidderTaxpayerIdentificationNo') }, // 投标人纳税识别号
  164. { name: 'TbrDbSfzh', value: getValueByKey(information, 'bidderAuthorizerTaxpayerIdentificationNo') }, // 投标人法定代表或其授权人身份证号
  165. ],
  166. '亳州': [
  167. { name: 'ZbrNssbh', value: getValueByKey(information, 'tendereeTaxpayerIdentificationNo') }, // 招标人纳税识别号
  168. { name: 'TbrNssbh', value: getValueByKey(information, 'bidderTaxpayerIdentificationNo') }, // 投标人纳税识别号
  169. { name: 'TbrDbSfzh', value: getValueByKey(information, 'bidderAuthorizerTaxpayerIdentificationNo') }, // 投标人法定代表或其授权人身份证号
  170. ],
  171. };
  172. if (extraMap[subArea]) {
  173. attrs.push(...extraMap[subArea]);
  174. }
  175. Element.call(this, 'TouBiaoXx', attrs);
  176. }
  177. // 单项工程信息,因项目管理中无“单项工程”这一层,从单位工程的工程特征信息中拼凑出来
  178. function Dxgcxx(code, name) {
  179. const attrs = [
  180. { name: 'Dxgcbh', value: code, minLen: 1, whiteSpace: WHITE_SPACE.COLLAPSE }, // 单项工程编号
  181. { name: 'Dxgcmc', value: name }, // 单项工程名称
  182. ];
  183. Element.call(this, 'Dxgcxx', attrs);
  184. }
  185. // 单位工程信息
  186. function Dwgcxx(tenderName, feature) {
  187. const attrs = [
  188. { name: 'Dwgcbh', value: getValueByKey(feature, 'unitProjNo'), minLen: 1, whiteSpace: WHITE_SPACE.COLLAPSE }, // 单位工程编号
  189. { name: 'Dwgcmc', value: tenderName }, // 单位工程名称
  190. ];
  191. Element.call(this, 'Dwgcxx', attrs);
  192. }
  193. // 取费信息(费率信息)
  194. function Qfxx() {
  195. Element.call(this, 'Qfxx');
  196. }
  197. // 计价费率表
  198. function JjFlb() {
  199. Element.call(this, 'JjFlb');
  200. }
  201. // 费率明细名称-编码映射表
  202. const FeeRateCodeMap = {
  203. '冬季施工增加费': 'DJF',
  204. '雨季施工增加费': 'YJF',
  205. '夜间施工增加费': 'YEF',
  206. '工地转移费': 'ZYF',
  207. '高原地区施工增加费': 'GYF',
  208. '风沙地区施工增加费': 'FSF',
  209. '沿海地区施工增加费': 'YHF',
  210. '行车干扰施工增加费': 'XCF',
  211. '施工辅助费': 'SFF',
  212. '养老保险费': 'YLF',
  213. '失业保险费': 'SYF',
  214. '医疗保险费': 'YBF',
  215. '住房公积金': 'ZFF',
  216. '工伤保险费': 'GSF',
  217. '基本费用': 'JBF',
  218. '主副食运费补贴': 'YFF',
  219. '职工探亲路费': 'TQF',
  220. '职工取暖补贴': 'QNF',
  221. '财务费用': 'CWF',
  222. '利润': 'LR',
  223. '税金': 'SJ',
  224. };
  225. // 费率工程名称-取费类别映射表
  226. const FeeRateTypeMap = {
  227. '土方': 1,
  228. '石方': 3,
  229. '运输': 2,
  230. '路面': 4,
  231. '隧道': 11,
  232. '构造物Ⅰ': 5,
  233. '构造物Ⅰ(不计冬)': 16,
  234. '构造物Ⅱ': 6,
  235. '构造物Ⅲ(桥梁)': 9,
  236. '构造物Ⅲ(除桥以外不计雨夜)': 8,
  237. '技术复杂大桥': 10,
  238. '钢材及钢结构(桥梁)': 12,
  239. '钢材及钢结构(除桥以外不计夜)': 13,
  240. '费率为0': 17,
  241. '路面(不计雨)': 18,
  242. '构造物Ⅰ(不计雨)': 19,
  243. '构造物Ⅲ(除桥以外)': 7,
  244. '钢材及钢结构(除桥以外)': 20,
  245. '设备': 15,
  246. '量价': 14,
  247. };
  248. // 计价费率表明细,造价书费率页面左侧最底层数据
  249. function JjFlbMx(rootItem, item) {
  250. const rate = isEmptyVal(item.rate) ? '100' : item.rate; // 为空时输出=100,为0时输出=0
  251. const attrs = [
  252. { name: 'Bm', value: FeeRateCodeMap[item.name] }, // 编码
  253. { name: 'Name', value: item.name }, // 名称
  254. { name: 'Fl', value: rate, type: TYPE.DECIMAL }, // 费率
  255. { name: 'Qflb', value: FeeRateTypeMap[rootItem.name], type: TYPE.INT }, // 取费类别
  256. ];
  257. Element.call(this, 'JjFlbMx', attrs);
  258. }
  259. // 计价费率项
  260. function JjFlx() {
  261. Element.call(this, 'JjFlx');
  262. }
  263. // 计价费率项明细,造价书费率页面右侧最顶层数据
  264. function JjFlxMx(item) {
  265. // 编码取名称拼音首字母
  266. const allHanName = getHan(item.name || '');
  267. const code = pinyinUtil.getFirstLetter(allHanName).toLowerCase();
  268. let value;
  269. if (isDef(item.value)) {
  270. value = item.value;
  271. } else {
  272. const selected = item.optionList.find(item => item.selected);
  273. value = selected && selected.name || '';
  274. }
  275. const attrs = [
  276. { name: 'Bm', value: code }, // 编码
  277. { name: 'Mc', value: item.name }, // 名称
  278. { name: 'ShuZhi', value: value }, // 数值
  279. ];
  280. Element.call(this, 'JjFlxMx', attrs);
  281. }
  282. // 清单项目
  283. function QdXm() {
  284. Element.call(this, 'QdXm');
  285. }
  286. // 标题类别:1=100~700清单合计,2=暂估价合计,3=清单不包含暂估价合计,4=计日工,5=暂列金额(不含计日工总额)),6=投标报价,0=其他
  287. const BillsTitleType = {
  288. [fixedFlag.ONE_SEVEN_BILLS]: '1',
  289. [fixedFlag.PROVISIONAL_TOTAL]: '2',
  290. [fixedFlag.BILLS_TOTAL_WT_PROV]: '3',
  291. [fixedFlag.DAYWORK_LABOR]: '4',
  292. [fixedFlag.PROVISIONAL]: '5',
  293. [fixedFlag.TOTAL_COST]: '6',
  294. };
  295. // 标题映射
  296. /* 写死:
  297. “第100章至700章清单”输出=1、
  298. “已包含在清单合计中的材料、工程设备、专业工程暂估价合计”输出=9、
  299. “清单合计减去材料、工程设备、专业工程暂估价合计”输出=10、
  300. “计日工合计”输出=11、
  301. “暂列金额(不含计日工总额)”输出=12、
  302. “投标报价”输出=13;
  303. 如果有新增的同级的大项费用,则以14开始编号 */
  304. const BillsTitleValue = {
  305. [fixedFlag.ONE_SEVEN_BILLS]: '1',
  306. [fixedFlag.PROVISIONAL_TOTAL]: '9',
  307. [fixedFlag.BILLS_TOTAL_WT_PROV]: '10',
  308. [fixedFlag.DAYWORK_LABOR]: '11',
  309. [fixedFlag.PROVISIONAL]: '12',
  310. [fixedFlag.TOTAL_COST]: '13',
  311. };
  312. let curTitleValue;
  313. // 清单标题 造价书的第一层数据。
  314. function QdBt(node, allNodes) {
  315. const row = node.row();
  316. const orgFee = getFee(node.data.fees, 'common.tenderTotalFee');
  317. const fee = isBidInvitation ? '0' : orgFee;
  318. const flag = node.getFlag();
  319. // 编号:清单编码有值则直接取,无值则写死
  320. const bm = node.data.code || BillsTitleValue[flag] || curTitleValue++;
  321. const titleType = BillsTitleType[flag];
  322. const calcBase = titleType === '5'
  323. ? orgFee
  324. : node.data.calcBase
  325. ? cbParser.toFExpr(node.data.calcBase, allNodes)
  326. : '';
  327. const attrs = [
  328. { name: 'Xh', value: row, type: TYPE.INT }, // 序号
  329. { name: 'Bm', value: bm }, // 编码
  330. { name: 'Name', value: node.data.name }, // 名称
  331. { name: 'Je', value: fee, type: TYPE.DECIMAL }, // 金额
  332. { name: 'Code', value: `F${row}` }, // 行引用
  333. { name: 'Jsgs', value: calcBase }, // 计算基数
  334. { name: 'Lb', value: titleType, type: TYPE.INT }, // 类别
  335. { name: 'Bz', value: node.data.remark }, // 备注
  336. ];
  337. Element.call(this, 'QdBt', attrs);
  338. }
  339. // 清单明细 (只有100-700章清单标题输出)
  340. function QdMx(node, allNodes) {
  341. const row = node.row();
  342. const name = node.data.name || '';
  343. // 编码: 清单编码有值则取清单编码,无值则:清单非章级的,读取清单编码列。章级的清单,写死:“清单第100章总则”输出=100,“清单第200章”输出=200,依次类推。可以判断章级的,取清单名称中的数字。
  344. let code = node.data.code || '';
  345. if (!code) {
  346. const codeMatched = name.match(/第\s*(\d+)\s*章/);
  347. if (codeMatched && codeMatched[1]) {
  348. code = codeMatched[1];
  349. }
  350. }
  351. const iszg = node.data.specialProvisional === '专业工程';
  352. const calcBaseBeFee = iszg || node.getFlag() === fixedFlag.PROVISIONAL;
  353. const orgFee = getFee(node.data.fees, 'common.tenderTotalFee');
  354. const calcBase = calcBaseBeFee
  355. ? orgFee
  356. : node.data.calcBase
  357. ? cbParser.toFExpr(node.data.calcBase, allNodes)
  358. : '';
  359. const attrs = [
  360. { name: 'Xh', value: row, type: TYPE.INT }, // 序号
  361. { name: 'Qdbm', value: code, minLen: 1 }, // 编码
  362. { name: 'Name', value: node.data.name }, // 名称
  363. { name: 'Dw', value: node.data.unit }, // 单位
  364. { name: 'Sl', value: node.data.quantity, type: TYPE.DECIMAL }, // 工程量
  365. { name: 'Sl2', value: '0', type: TYPE.DECIMAL }, // 工程量2
  366. { name: 'Rgf', value: isBidInvitation ? '0' : getFee(node.data.fees, 'marketLabour.tenderTotalFee'), type: TYPE.DECIMAL }, // 人工费
  367. { name: 'Clf', value: isBidInvitation ? '0' : getFee(node.data.fees, 'marketMaterial.tenderTotalFee'), type: TYPE.DECIMAL }, // 材料费
  368. { name: 'Jxf', value: isBidInvitation ? '0' : getFee(node.data.fees, 'marketMachine.tenderTotalFee'), type: TYPE.DECIMAL }, // 机械费
  369. { name: 'Sbf', value: isBidInvitation ? '0' : getFee(node.data.fees, 'marketEquipment.tenderTotalFee'), type: TYPE.DECIMAL }, // 设备费
  370. { name: 'Csf', value: isBidInvitation ? '0' : getFee(node.data.fees, 'measure.tenderTotalFee'), type: TYPE.DECIMAL }, // 措施费
  371. { name: 'Glf', value: isBidInvitation ? '0' : getFee(node.data.fees, 'manage.tenderTotalFee'), type: TYPE.DECIMAL }, // 企业管理费
  372. { name: 'Gf', value: isBidInvitation ? '0' : getFee(node.data.fees, 'force.tenderTotalFee'), type: TYPE.DECIMAL }, // 规费
  373. { name: 'Lr', value: isBidInvitation ? '0' : getFee(node.data.fees, 'profit.tenderTotalFee'), type: TYPE.DECIMAL }, // 利润
  374. { name: 'Sj', value: isBidInvitation ? '0' : getFee(node.data.fees, 'tax.tenderTotalFee'), type: TYPE.DECIMAL }, // 税金
  375. { name: 'Zhdj', value: isBidInvitation ? '0' : getFee(node.data.fees, 'common.tenderUnitFee'), type: TYPE.DECIMAL }, // 单价
  376. { name: 'Zhhj', value: isBidInvitation ? '0' : orgFee, type: TYPE.DECIMAL }, // 合价
  377. { name: 'Zgj', value: isBidInvitation ? '0' : getFee(node.data.fees, 'estimate.tenderTotalFee'), type: TYPE.DECIMAL }, // 暂估价
  378. { name: 'Iszg', value: iszg, type: TYPE.BOOL }, // 是否暂定 如果专项暂定列选择了“专业工程”,则输出true,否则是false。
  379. { name: 'Djfx', value: !!node.data.unitPriceAnalysis, type: TYPE.BOOL }, // 单价分析
  380. { name: 'Jsgs', value: calcBase }, // 计算基数
  381. { name: 'Bl', value: '' }, // 变量
  382. { name: 'Bz', value: node.data.remark }, // 备注
  383. ];
  384. Element.call(this, 'QdMx', attrs);
  385. }
  386. // 定额组价
  387. function Qdxdezj() {
  388. Element.call(this, 'Qdxdezj');
  389. }
  390. // 定额租价明细 招标文件不输出
  391. function QdxdezjMx(ration) {
  392. const typeMap = {
  393. [RationType.RATION]: '1',
  394. [RationType.VOLUME_PRICE + GljType.LABOUR]: '2',
  395. [RationType.VOLUME_PRICE + GljType.GENERAL_MATERIAL]: '3',
  396. [RationType.VOLUME_PRICE + GljType.GENERAL_MACHINE]: '4',
  397. [RationType.VOLUME_PRICE + GljType.EQUIPMENT]: '2',
  398. };
  399. const typeKey = (ration.type || '') + (ration.subType || '');
  400. const type = typeMap[typeKey];
  401. const attrs = [
  402. { name: 'Debm', value: ration.code }, // 编码
  403. { name: 'Mc', value: ration.name }, // 名称
  404. { name: 'Dw', value: ration.unit }, // 单位
  405. { name: 'Sl', value: ration.tenderQuantity, type: TYPE.DECIMAL }, // 工程量
  406. { name: 'Dj', value: getFee(ration.fees, 'common.tenderUnitFee'), type: TYPE.DECIMAL }, // 单价
  407. { name: 'Hj', value: getFee(ration.fees, 'common.tenderTotalFee'), type: TYPE.DECIMAL }, // 合价
  408. { name: 'Rgf', value: getFee(ration.fees, 'marketLabour.tenderTotalFee'), type: TYPE.DECIMAL }, // 人工费
  409. { name: 'Clf', value: getFee(ration.fees, 'marketMaterial.tenderTotalFee'), type: TYPE.DECIMAL }, // 材料费
  410. { name: 'Jxf', value: getFee(ration.fees, 'marketMachine.tenderTotalFee'), type: TYPE.DECIMAL }, // 机械费
  411. { name: 'Sbf', value: getFee(ration.fees, 'marketEquipment.tenderTotalFee'), type: TYPE.DECIMAL }, // 设备费
  412. { name: 'Csf', value: getFee(ration.fees, 'measure.tenderTotalFee'), type: TYPE.DECIMAL }, // 措施费
  413. { name: 'Glf', value: getFee(ration.fees, 'manage.tenderTotalFee'), type: TYPE.DECIMAL }, // 企业管理费
  414. { name: 'Gf', value: getFee(ration.fees, 'force.tenderTotalFee'), type: TYPE.DECIMAL }, // 规费
  415. { name: 'Lr', value: getFee(ration.fees, 'profit.tenderTotalFee'), type: TYPE.DECIMAL }, // 利润
  416. { name: 'Sj', value: getFee(ration.fees, 'tax.tenderTotalFee'), type: TYPE.DECIMAL }, // 税金
  417. { name: 'Delb', value: type, type: TYPE.INT }, // 取定额/量价/设备的类别。(1=普通定额,2=人工,3=材料,4=机械,5=设备)
  418. { name: 'Iszd', value: 'false', type: TYPE.BOOL }, // 暂时,全部取fals
  419. ];
  420. Element.call(this, 'QdxdezjMx', attrs);
  421. }
  422. // 定额人材机含量
  423. function Qdxdercjhl() {
  424. Element.call(this, 'Qdxdercjhl');
  425. }
  426. // 定额人材机含量明细
  427. function QdxdercjhlMx(rcjID, quantity) {
  428. const attrs = [
  429. { name: 'RcjId', value: rcjID }, // 人材机资源ID
  430. { name: 'Sl', value: quantity, type: TYPE.DECIMAL }, // 消耗量
  431. ]
  432. Element.call(this, 'QdxdercjhlMx', attrs);
  433. }
  434. // 清单人材机含量
  435. function Qdxrcjhl() {
  436. Element.call(this, 'Qdxrcjhl');
  437. }
  438. // 清单人材机含量明细
  439. function QdxrcjhlMx(item) {
  440. const attrs = [
  441. { name: 'RcjId', value: item.rcjID }, // 人材机资源ID
  442. { name: 'Rcjhl', value: item.contain, type: TYPE.DECIMAL }, // 含量:取叶子清单下所有的人材机的含量,=各定额下的人材机总消耗量之和,再除以清单工程量
  443. { name: 'Rcjhj', value: item.totalPrice, type: TYPE.DECIMAL }, // 合价:人材机含量*人材机预算价
  444. { name: 'Zgjbz', value: item.isEvaluate, type: TYPE.BOOL }, // 是否暂估,根据资源ID,读取工料机汇总界面对应的“是否暂估”
  445. { name: 'Zcbz', value: 'false', type: TYPE.BOOL }, // 主材标记,公路上无此概念,默认输出=fales
  446. { name: 'Zyclbz', value: item.isMainMaterial, type: TYPE.BOOL }, // 根据资源ID,读取工料机汇总界面对应的“主要材料”
  447. ]
  448. Element.call(this, 'QdxrcjhlMx', attrs);
  449. }
  450. // 计日工
  451. function Jrg() {
  452. Element.call(this, 'Jrg');
  453. }
  454. // 计日工标题
  455. function JrgBt(node) {
  456. const typeMap = {
  457. [fixedFlag.LABOUR_SERVICE]: '1',
  458. [fixedFlag.MATERIAL]: '2',
  459. [fixedFlag.CONSTRUCTION_MACHINE]: '3',
  460. };
  461. const attrs = [
  462. { name: 'Name', value: node.data.name }, // 名称
  463. { name: 'Je', value: isBidInvitation ? '0' : getFee(node.data.fees, 'common.tenderTotalFee'), type: TYPE.DECIMAL }, // 金额
  464. { name: 'Lb', value: typeMap[node.getFlag()], type: TYPE.INT }, // 类别:1=劳务;2=材料;3=施工机械
  465. { name: 'Bz', value: node.data.remark }, // 备注
  466. ];
  467. Element.call(this, 'JrgBt', attrs);
  468. }
  469. // 计日工明细
  470. function JrgMx(node) {
  471. const attrs = [
  472. { name: 'Bh', value: node.data.code }, // 编码
  473. { name: 'Name', value: node.data.name }, // 名称
  474. { name: 'Dw', value: node.data.unit }, // 单位
  475. { name: 'Sl', value: node.data.quantity, type: TYPE.DECIMAL }, // 工程量
  476. { name: 'Dj', value: isBidInvitation ? '0' : getFee(node.data.fees, 'common.tenderTotalFee'), type: TYPE.DECIMAL }, // 单价
  477. { name: 'Hj', value: isBidInvitation ? '0' : getFee(node.data.fees, 'common.tenderUnitFee'), type: TYPE.DECIMAL }, // 合价
  478. ];
  479. Element.call(this, 'JrgMx', attrs);
  480. }
  481. // 暂估材料表、评标材料表
  482. function gljRefRoot(eleName) {
  483. Element.call(this, eleName);
  484. }
  485. // 暂估材料表、评标材料表明细
  486. function gljRefElement(eleName, glj) {
  487. const attrs = [
  488. { name: 'Xh', value: glj.seq }, // 序号
  489. { name: 'RcjId', value: projectGLJIDToRcjID[glj.projectGLJID] }, // 资源ID
  490. { name: 'Bm', value: glj.code }, // 编码
  491. { name: 'Mc', value: glj.name }, // 名称
  492. { name: 'Ggxh', value: glj.specs }, // 规格型号
  493. { name: 'Dw', value: glj.unit }, // 单位
  494. { name: 'Sl', value: BID_INVITATION ? '0' : glj.quantity, type: TYPE.DECIMAL }, // 工程量
  495. { name: 'Dj', value: glj.marketPrice, type: TYPE.DECIMAL }, // 暂定价、单价
  496. { name: 'Hj', value: BID_INVITATION ? '0' : glj.totalPrice, type: TYPE.DECIMAL }, // 合价
  497. { name: 'Bz', value: glj.remark }, // 备注
  498. ];
  499. Element.call(this, eleName, attrs);
  500. }
  501. // 人材机汇总
  502. function Rcjhz() {
  503. Element.call(this, 'Rcjhz');
  504. }
  505. // 人材机汇总明细
  506. function RcjhzMx(glj) {
  507. const rootTypeReg = /\d/;
  508. let rootType = rootTypeReg.exec(glj.type)[0];
  509. if (!['1', '2', '3'].includes(rootType)) {
  510. rootType = '2';
  511. }
  512. const attrs = [
  513. { name: 'RcjId', value: projectGLJIDToRcjID[glj.id] }, // 资源ID
  514. { name: 'RcjBm', value: glj.code }, // 编码
  515. { name: 'Name', value: glj.name }, // 名称
  516. { name: 'Ggxh', value: glj.specs }, // 规格型号
  517. { name: 'Dw', value: glj.unit }, // 单位
  518. { name: 'Dj', value: glj.priceInfo.tenderPrice, type: TYPE.DECIMAL }, // 预算价,调后
  519. { name: 'Sl', value: glj.tenderQuantity, type: TYPE.DECIMAL }, // 总消耗量
  520. { name: 'Hj', value: glj.priceInfo.totalPrice, type: TYPE.DECIMAL }, // 合价,人材料总消耗量*预算价
  521. { name: 'Cd', value: '' }, // 产地
  522. { name: 'Gycs', value: '' }, // 厂商
  523. { name: 'Rcjlb', value: rootType, type: TYPE.INT }, // 人材机类型 1=人工;2=材料;3=机械
  524. { name: 'Jgbz', value: 'false', type: TYPE.BOOL }, // 供材方
  525. { name: 'Zyclbz', value: !!glj.is_main_material, type: TYPE.BOOL }, // 主要材料
  526. { name: 'Zgjbz', value: !!glj.is_evaluate, type: TYPE.BOOL }, // 是否暂估
  527. { name: 'Zcbz', value: 'false', type: TYPE.BOOL }, // 主材标记
  528. ];
  529. Element.call(this, 'RcjhzMx', attrs);
  530. }
  531. // 配比组成
  532. function PbZc() {
  533. Element.call(this, 'PbZc');
  534. }
  535. // 配比明细
  536. function PbZcMx(ratio) {
  537. const attrs = [
  538. { name: 'RcjId', value: projectGLJIDToRcjID[ratio.projectGLJID] }, // 组成物对应人材机汇总的资源ID
  539. { name: 'Sl', value: ratio.consumption, type: TYPE.DECIMAL }, // 组成物消耗量
  540. ];
  541. Element.call(this, 'PbZcMx', attrs);
  542. }
  543. // 校验信息
  544. function Jyxx(cpuID, diskID, macID, toMD5Value) {
  545. const attrs = [
  546. { name: 'SoftName', value: '珠海纵横创新软件有限公司' }, // 公司名
  547. { name: 'SoftNum', value: md5(toMD5Value) }, // 校验数据
  548. { name: 'MacAdress', value: macID }, // mac地址
  549. { name: 'DogNum', value: userID }, // 加密锁号,取用户ID
  550. { name: 'ComputerName', value: USER_NAME }, // 计算机名,取用户名称
  551. { name: 'HDDSerial', value: diskID }, // 硬盘序列号
  552. { name: 'CPUSerial', value: cpuID }, // CPU序列号
  553. ];
  554. Element.call(this, 'Jyxx', attrs);
  555. }
  556. // 组装数据 --------------------------------------
  557. // 组装建设项目数据
  558. function setupConstruction(constructionData) {
  559. const information = constructionData.property && constructionData.property.basicInformation || [];
  560. const summaryInfo = constructionData.summaryInfo[constructionData.ID];
  561. const jingJiBiao = new JingJiBiao(constructionData.name, information);
  562. if (isBidInvitation) {
  563. jingJiBiao.children.push(new ZhaoBiaoXx(information));
  564. } else if (isControl) {
  565. jingJiBiao.children.push(new ZhaoBiaoKzXx(information, summaryInfo.totalCost));
  566. } else {
  567. jingJiBiao.children.push(new TouBiaoXx(information, summaryInfo.totalCost));
  568. }
  569. // 将单位工程工程特征中,单项工程编号、名称相同的,插入到建设项目和分段(单位工程)的中间层。
  570. const midLayerMap = {}; // 单项工程key(code@name)与单项工程节点映射
  571. for (const tenderData of constructionData.children) {
  572. const feature = tenderData.property && tenderData.property.projectFeature || [];
  573. const midLayerCode = getValueByKey(feature, 'singleProjNo');
  574. const midLayerName = getValueByKey(feature, 'singleProjName');
  575. const midLayerKey = `${midLayerCode}@${midLayerName}`;
  576. if (!midLayerMap[midLayerKey]) {
  577. jingJiBiao.children.push(midLayerMap[midLayerKey] = new Dxgcxx(midLayerCode, midLayerName));
  578. }
  579. midLayerMap[midLayerKey].children.push(setupTender(tenderData, information, feature));
  580. }
  581. // 校验信息
  582. const [cpuID, diskID, macID] = generateHardwareId().split(';');
  583. const suffix = INTERFACE_CONFIG[areaKey]['fileSuffix'][exportKind];
  584. // 需要md5的值:MD5(“WHGLZTB”+项目名称+机器码+加密锁锁号)机器码取mac地址,加密锁锁号取用户账号id
  585. const toMD5Suffix = suffix.split('.')[1];
  586. const toMD5Value = `${toMD5Suffix}${constructionData.name}${macID}${userID}`;
  587. jingJiBiao.children.push(new Jyxx(cpuID, diskID, macID, suffix, toMD5Value));
  588. return [{
  589. data: jingJiBiao,
  590. exportKind,
  591. fileName: `${constructionData.name}${suffix}`
  592. }];
  593. }
  594. // getData接口数据
  595. let curDetail;
  596. // 需要先设置项目人材机的关联ID(从1开始),因为定额人材机等一些节点需要用到这个关联ID
  597. const projectGLJIDToRcjID = {}; // 项目人材机ID与新生成的整形ID映射
  598. const projectGLJMap = {}; // 项目人材机与项目人材机数据映射
  599. // 组装单位工程数据
  600. function setupTender(tenderData, info, feature) {
  601. curDetail = tenderDetailMap[tenderData.ID];
  602. curDetail.projectGLJ.datas.gljList.forEach((glj, index) => {
  603. projectGLJIDToRcjID[glj.id] = index + 1;
  604. projectGLJMap[glj.id] = glj;
  605. });
  606. curTitleValue = 14;
  607. const dwgcxx = new Dwgcxx(tenderData.name, feature);
  608. dwgcxx.children.push(
  609. setupFeeRate(curDetail.FeeRate, info),
  610. setupBills(curDetail.mainTree),
  611. ...setupGLJList(curDetail)
  612. );
  613. return dwgcxx;
  614. }
  615. // 组装费率数据
  616. function setupFeeRate(feeRateDetail, info) {
  617. const qfxx = new Qfxx();
  618. const jjflb = new JjFlb();
  619. // 费率界面左侧底层数据
  620. let curRootItem;
  621. feeRateDetail.datas.rates.forEach(item => {
  622. if (!item.ParentID) {
  623. curRootItem = item;
  624. } else if (!item.sum) { // 最底层
  625. const curFeeRateType = FeeRateTypeMap[curRootItem.name];
  626. const exclude = [18, 19, 20];
  627. if (!exclude.includes(curFeeRateType)) {
  628. jjflb.children.push(new JjFlbMx(curRootItem, item));
  629. }
  630. }
  631. });
  632. // 费率界面右侧顶层数据
  633. // 除右侧数据外,还应拼凑工程所在地、费率标准的数据。
  634. const jjflx = new JjFlx();
  635. // 工程所在地取建设项目-基本信息中的“工程所在地”;
  636. const locationItem = { name: '工程所在地', value: getValueByKey(info, 'location') };
  637. jjflx.children.push(new JjFlxMx(locationItem));
  638. // 费率标准取,费率-重选标准中当前用的费率标准名称。
  639. const feeRateStandardItem = { name: '费率标准', value: feeRateDetail.datas.libName };
  640. jjflx.children.push(new JjFlxMx(feeRateStandardItem));
  641. const flxmxData = feeRateDetail
  642. .getAllSubRates()
  643. .filter(item => !item.isSub)
  644. .map(item => new JjFlxMx(item));
  645. jjflx.children.push(...flxmxData);
  646. qfxx.children.push(jjflb, jjflx);
  647. return qfxx;
  648. }
  649. // 组装清单数据
  650. function setupBills(mainTree) {
  651. const qdxm = new QdXm();
  652. mainTree.roots.forEach(node => {
  653. const flag = node.getFlag();
  654. const qdbt = new QdBt(node, mainTree.items);
  655. if (flag === fixedFlag.ONE_SEVEN_BILLS) { // 100章到700章清单需要输出详细数据
  656. qdbt.children.push(...setupSubBills(node.children, mainTree.items));
  657. } else if (flag === fixedFlag.DAYWORK_LABOR) {
  658. qdbt.children.push(setupDaywork(node.children));
  659. }
  660. qdxm.children.push(qdbt);
  661. });
  662. function setupSubBills(nodes, allNodes) {
  663. const rst = [];
  664. nodes.forEach(node => {
  665. const qdmx = new QdMx(node, allNodes);
  666. rst.push(qdmx);
  667. const subIsRations = node.children.length && !node.source.children.length;
  668. if (subIsRations) {
  669. qdmx.children.push(...setupRations(node.children));
  670. qdmx.children.push(...setupBillsContain(node.data));
  671. } else {
  672. qdmx.children.push(...setupSubBills(node.children, allNodes));
  673. }
  674. });
  675. return rst;
  676. }
  677. function setupDaywork(nodes) {
  678. const dayworkRoot = new Jrg();
  679. const dayworkBT = nodes.map(node => {
  680. const bt = new JrgBt(node);
  681. const dayworkMX = node.children.map(child => new JrgMx(child));
  682. bt.children.push(...dayworkMX);
  683. return bt;
  684. });
  685. dayworkRoot.children.push(...dayworkBT);
  686. return dayworkRoot;
  687. }
  688. return qdxm;
  689. }
  690. // 组装定额、定额人材机数据
  691. function setupRations(rationNodes) {
  692. // 招标文件不输出
  693. if (isBidInvitation) {
  694. return [];
  695. }
  696. const rationRoot = new Qdxdezj();
  697. const rationEles = rationNodes.map(node => {
  698. const rationEle = new QdxdezjMx(node.data);
  699. /* // 定额人材机
  700. let rationGLJList = curDetail.ration_glj.datas.filter(glj => glj.rationID === node.data.ID);
  701. rationGLJList = gljUtil.sortRationGLJ(rationGLJList); */
  702. const rationGLJRoot = new Qdxdercjhl();
  703. const rationGLJEles = node.data.rationGLJList.map(glj => new QdxdercjhlMx(projectGLJIDToRcjID[glj.projectGLJID], glj.tenderQuantity));
  704. rationGLJRoot.children.push(...rationGLJEles);
  705. rationEle.children.push(rationGLJRoot);
  706. return rationEle;
  707. });
  708. rationRoot.children.push(...rationEles);
  709. return [rationRoot];
  710. }
  711. // 组装清单人材机含量数据
  712. function setupBillsContain(bills) {
  713. if (isBidInvitation) {
  714. return [];
  715. }
  716. // 读取清单下的人材机,先将各定额下的人材机汇总,相同的合并(相同的项目人材机ID)
  717. const gljList = curDetail.ration_glj.datas.filter(glj => glj.billsItemID === bills.ID);
  718. if (!gljList) {
  719. return [];
  720. }
  721. const map = {};
  722. gljList.forEach(glj => {
  723. if (!map[glj.projectGLJID]) {
  724. const projectGLJ = projectGLJMap[glj.projectGLJID];
  725. map[glj.projectGLJID] = {
  726. rcjID: projectGLJIDToRcjID[glj.projectGLJID],
  727. totalQuantity: glj.tenderQuantity,
  728. price: projectGLJ.priceInfo.tenderPrice,
  729. isEvaluate: !!projectGLJ.is_evaluate,
  730. isMainMaterial: !!projectGLJ.is_main_material
  731. };
  732. } else {
  733. map[glj.projectGLJID].totalQuantity = scMathUtil.roundTo(map[glj.projectGLJID].totalQuantity + glj.tenderQuantity, -6);
  734. }
  735. });
  736. const containItems = Object
  737. .values(map)
  738. .map(glj => {
  739. const contain = glj.totalQuantity / (bills.quantity || 1);
  740. return {
  741. rcjID: glj.rcjID,
  742. contain: scMathUtil.roundTo(contain, -6), // 固定取6位
  743. totalPrice: scMathUtil.roundTo(contain * glj.price, -2), // 固定取2位
  744. isEvaluate: glj.isEvaluate,
  745. isMainMaterial: glj.isMainMaterial
  746. };
  747. });
  748. const root = new Qdxrcjhl();
  749. root.children.push(...containItems.map(item => new QdxrcjhlMx(item)));
  750. return [root]
  751. }
  752. // 组装人材机汇总相关表数据
  753. function setupGLJList(tenderDetail) {
  754. // 暂估材料
  755. const zgcl = new gljRefRoot('ZgCl');
  756. zgcl.children = tenderDetail.evaluateMaterialData.map(glj => new gljRefElement('ZgClMx', glj));
  757. // 评标材料
  758. const jpcl = new gljRefRoot('JpCl');
  759. jpcl.children = tenderDetail.bidMaterialData.map(glj => new gljRefElement('JpClMx', glj));
  760. if (isBidInvitation) {
  761. return [zgcl, jpcl];
  762. }
  763. // 人材机汇总 (招标不导出)
  764. const rcjhz = new Rcjhz();
  765. rcjhz.children = tenderDetail.projectGLJ.datas.gljList.map(pGLJ => {
  766. const gljElement = new RcjhzMx(pGLJ);
  767. // 组成物
  768. const connectKey = gljUtil.getIndex(pGLJ, gljKeyArray);
  769. const ratioData = tenderDetail.projectGLJ.datas.mixRatioMap[connectKey];
  770. if (ratioData && ratioData.length) {
  771. const pbzc = new PbZc();
  772. pbzc.children = ratioData.map(ratio => new PbZcMx(ratio));
  773. gljElement.children.push(pbzc);
  774. }
  775. return gljElement;
  776. });
  777. return [zgcl, jpcl, rcjhz];
  778. }
  779. return setupConstruction(projectData);
  780. }
  781. return {
  782. entry,
  783. };
  784. })();