exportSEIInterface.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  1. /**
  2. * Created by zhang on 2019/5/20.
  3. */
  4. let exportUtil = {
  5. setEngineerPriceIndex:function (tender,projectData) {
  6. let priceIndex = {
  7. name:"工程造价指标",
  8. attrs:[],
  9. children:[],
  10. };
  11. let fixMap = {};
  12. let buildingArea = this.getBuildArea(tender.property.engineerFeatures); //tender.property.projectFeature?getItemValueBykey(tender.property.projectFeature,"buildingArea"):1;//建筑面积
  13. for(let b of projectData.bills){
  14. if(b.flags && b.flags.length > 0){
  15. let f = _.find(b.flags,{"fieldName":"fixed"});
  16. if(f) fixMap[f.flag] = this.getTotalFee(b);
  17. }
  18. }
  19. //计算其他组织措施费 = 施工组织措施项目下的子项,除了 安全文明施工费、建设工程竣工档案编制费以外的项
  20. let CONSTRUCTION_ORGANIZATION = fixMap[fixedFlag.CONSTRUCTION_ORGANIZATION]?fixMap[fixedFlag.CONSTRUCTION_ORGANIZATION]:0;
  21. let SAFETY_CONSTRUCTION = fixMap[fixedFlag.SAFETY_CONSTRUCTION]?fixMap[fixedFlag.SAFETY_CONSTRUCTION]:0;
  22. let PROJECT_COMPLETE_ARCH_FEE = fixMap[fixedFlag.PROJECT_COMPLETE_ARCH_FEE]? fixMap[fixedFlag.PROJECT_COMPLETE_ARCH_FEE]:0;
  23. let other_org_fee = CONSTRUCTION_ORGANIZATION - SAFETY_CONSTRUCTION - PROJECT_COMPLETE_ARCH_FEE;
  24. other_org_fee = other_org_fee >0 ?other_org_fee:0;
  25. let engineerCost = fixMap[fixedFlag.ENGINEERINGCOST]?fixMap[fixedFlag.ENGINEERINGCOST]:1;
  26. priceIndex.children.push(this.getFlag("分部分项工程费",fixMap[fixedFlag.SUB_ENGINERRING],engineerCost,buildingArea));
  27. priceIndex.children.push(this.getFlag("技术措施费",fixMap[fixedFlag.CONSTRUCTION_TECH],engineerCost,buildingArea));
  28. priceIndex.children.push(this.getFlag("安全文明施工费",fixMap[fixedFlag.SAFETY_CONSTRUCTION],engineerCost,buildingArea));
  29. priceIndex.children.push(this.getFlag("建设工程竣工档案编制费",fixMap[fixedFlag.PROJECT_COMPLETE_ARCH_FEE],engineerCost,buildingArea));
  30. priceIndex.children.push(this.getFlag("其他组织措施费",other_org_fee,engineerCost,buildingArea));
  31. priceIndex.children.push(this.getFlag("暂列金额",fixMap[fixedFlag.PROVISIONAL],engineerCost,buildingArea));
  32. priceIndex.children.push(this.getFlag("专业工程暂估价",fixMap[fixedFlag.ENGINEERING_ESITIMATE],engineerCost,buildingArea));
  33. priceIndex.children.push(this.getFlag("计日工",fixMap[fixedFlag.DAYWORK],engineerCost,buildingArea));
  34. priceIndex.children.push(this.getFlag("总承包服务费",fixMap[fixedFlag.TURN_KEY_CONTRACT],engineerCost,buildingArea));
  35. priceIndex.children.push(this.getFlag("索赔与现场签证",fixMap[fixedFlag.CLAIM_VISA],engineerCost,buildingArea));
  36. priceIndex.children.push(this.getFlag("规费",fixMap[fixedFlag.CHARGE],engineerCost,buildingArea));
  37. priceIndex.children.push(this.getFlag("税金",fixMap[fixedFlag.TAX],engineerCost,buildingArea));
  38. priceIndex.children.push(this.getFlag("工程造价",fixMap[fixedFlag.ENGINEERINGCOST],engineerCost,buildingArea));
  39. return priceIndex;
  40. },
  41. getTotalFee:function (b) {
  42. let total = 0;
  43. if(b.fees && b.fees.length > 0){
  44. let common = _.find(b.fees,{"fieldName":"common"});
  45. if(common) total = scMathUtil.roundForObj(common.totalFee,getDecimal("bills.totalPrice"))
  46. }
  47. return total;
  48. },
  49. getFlag: function (name,totalCost,engineerCost,buildingArea) {
  50. totalCost = totalCost?totalCost:0;
  51. let flag = {
  52. name:name,
  53. attrs:[
  54. {name: "金额", value: scMathUtil.roundToString(totalCost,3)},
  55. {name: "单方造价", value: scMathUtil.roundToString(exportUtil.calcUnitB(totalCost,buildingArea),2)},
  56. {name: "占造价比例", value: scMathUtil.roundToString(totalCost/engineerCost * 100,2)},
  57. ],
  58. };
  59. return flag;
  60. },
  61. getBuildArea:function (features) {
  62. if(features){
  63. let areas = [];
  64. for(let f of features){
  65. if(f.index == true && f.value && f.value !=="" && IsNumber(f.value)) areas.push(f.value);
  66. }
  67. return _.isEmpty(areas)?1:areas;
  68. }
  69. return 1
  70. },
  71. calcUnitB:function (total,building,coe,decimal = 3) {
  72. if(Array.isArray(building)){
  73. for(let b of building){
  74. total = scMathUtil.roundForObj(total/b,6);
  75. }
  76. }else {
  77. total = scMathUtil.roundForObj(total/building,6);
  78. }
  79. coe = gljUtil.isDef(coe)?coe:1;
  80. return scMathUtil.roundForObj(total*coe,decimal);
  81. },
  82. calUnitWidthCoe:function (total,noNeedCoe) {
  83. let areas = exportUtil.getBuildArea(projectObj.project.property.engineerFeatures);
  84. let f = _.find(projectObj.project.property.engineerFeatures,{index:true});
  85. return f && noNeedCoe!==true?exportUtil.calcUnitB(total,areas,f.coe):exportUtil.calcUnitB(total,areas);
  86. },
  87. getIndexBills:function (bills) {
  88. let parentMap = {},datas = [],totalCost = 0;
  89. let FBFX_b = null,teh_b = null,costNode=null;
  90. for(let b of bills) {
  91. parentMap[b.ParentID] ? parentMap[b.ParentID].push(b) : parentMap[b.ParentID] = [b];//有添加,无则生成
  92. if(b.flags && b.flags.length > 0){
  93. let f = _.find(b.flags,{"fieldName":"fixed"});
  94. if(!f) continue;
  95. if(f.flag == fixedFlag.SUB_ENGINERRING) FBFX_b = b;//过滤出分部分项工程;
  96. if(f.flag == fixedFlag.CONSTRUCTION_TECH) teh_b = b;//过滤出技术措施项目;
  97. if(f.flag == fixedFlag.ENGINEERINGCOST) costNode = b;//过滤出工程造价项目;
  98. }
  99. }
  100. if(FBFX_b) getChildren(FBFX_b,parentMap,datas);
  101. if(teh_b) getChildren(teh_b,parentMap,datas);
  102. if(costNode) totalCost = exportUtil.getTotalFee(costNode);
  103. for(let td of datas){
  104. if(parentMap[td.ID]){
  105. td.economicType = "";
  106. td.quantityIndexType = "";
  107. td.quantityIndexUnit = "";
  108. td.quantityIndexCoe = "";
  109. }
  110. }
  111. return [datas,totalCost];
  112. function getChildren(d,map,arr) {
  113. let tem = {
  114. ID:d.ID,
  115. ParentID:d.ParentID,
  116. code:d.code,
  117. name:d.name,
  118. unit:d.unit,
  119. quantity:d.quantity,
  120. totalFee:exportUtil.getTotalFee(d),
  121. economicType:d.economicType,
  122. quantityIndexType:d.quantityIndexType,
  123. quantityIndexUnit:d.quantityIndexUnit,
  124. quantityIndexCoe:d.quantityIndexCoe,
  125. };
  126. arr.push(tem);
  127. if(map[d.ID]){
  128. for(let s of map[d.ID]){
  129. getChildren(s,map,arr)
  130. }
  131. }
  132. }
  133. }
  134. };
  135. async function exportSEI(projectID) {
  136. let tenderProjects = [];
  137. let result = await ajaxPost("/project/getSEIProjects",{projectID:projectID});
  138. let pr = new SCComponent.InitProgressBar($('#progress'), $('#progress-title'), $('#progress-content'), $('#progressBar'));
  139. pr.start('导出数据接口', '正在导出文件,请稍候……');
  140. console.log(result);
  141. let project = getProject(result);
  142. await prepareTenderDatas(tenderProjects,project);
  143. toXml(project);
  144. pr.end();
  145. function getProject(orignal) {//取建设项目信息
  146. let basicInformation = getBaseInfo(orignal);
  147. let project = {
  148. name: "建设项目",
  149. attrs: [
  150. {name: "项目名称", value: orignal.name},
  151. {name:"建设单位",value:getItemValueBykey(basicInformation.items,"constructionUnit")},
  152. {name:"施工单位",value:getItemValueBykey(basicInformation.items,"buildingUnit")},
  153. {name: "标准名称", value: "重庆市建设工程造价指标采集标准(清单计价)"},
  154. {name: "标准版本号", value: "1.1"}
  155. ],
  156. basicInformation:basicInformation,
  157. children:[]
  158. };
  159. initAtts(project.attrs);
  160. for(let c of orignal.children){
  161. project.children.push(getEngineering(c));
  162. }
  163. return project;
  164. }
  165. function getEngineering(source){
  166. let engineer = {
  167. name:"单项工程",
  168. attrs:[
  169. {name: "名称", value: source.name}
  170. ],
  171. children:[]
  172. };
  173. for(let c of source.children){
  174. let tenderProject = getTender(c);
  175. engineer.children.push(tenderProject);
  176. tenderProjects.push(tenderProject);
  177. }
  178. return engineer
  179. };
  180. function getTender(source) {
  181. let tender = {
  182. ID:source.ID,
  183. name:"单位工程",
  184. attrs:[
  185. {name: "名称", value: source.name}
  186. ],
  187. children:[],
  188. valuationType:source.property.valuationType,
  189. taxType:source.property.taxType,
  190. property:source.property
  191. };
  192. return tender;
  193. }
  194. async function prepareTenderDatas(tenders,project) {
  195. for(let t of tenders){
  196. await setTenderData(t,project);
  197. await setTimeoutSync(null,500);
  198. }
  199. }
  200. async function setTenderData(tender,project) {
  201. let projectData = await ajaxPost("/project/loadSEIProjectData",{projectID:tender.ID});
  202. tender.children.push(setEngineerInfo(tender));//设置工程信息
  203. tender.children.push(setEngineerFeature(tender));//设置工程特征
  204. tender.children.push(setEngineerIndex(tender,projectData));
  205. tender.children.push(await setGLJSummy(tender,projectData));
  206. //
  207. }
  208. function setEngineerIndex(tender,projectData) {//设置工程指标
  209. let index = {
  210. name:"工程指标",
  211. attrs:[],
  212. children:[],
  213. };
  214. let indexName = tender.property.indexName?tender.property.indexName:"建筑工程";
  215. index.children.push(exportUtil.setEngineerPriceIndex(tender,projectData));
  216. index.children.push(setEngineerEcoIndex(tender,projectData,indexName));
  217. index.children.push(setMainMaterialIndex(tender,projectData,indexName));
  218. index.children.push(setQuantityIndex(tender,projectData,indexName));
  219. return index;
  220. function setMainMaterialIndex(tender,projectData,indexName){
  221. let mainIndex = {
  222. name:`${indexName}工料指标`,
  223. attrs:[],
  224. children:[]
  225. };
  226. if(projectData) gljUtil.calcProjectGLJQuantity(projectData.projectGLJs,projectData.ration_gljs,projectData.rations,projectData.bills,getDecimal("glj.quantity"),_,scMathUtil);
  227. let materials = indexObj.getMainMaterialDatas(tender.property.materials,projectData.projectGLJs,tender.property.calcOptions,tender.property.decimal,false,_,scMathUtil);
  228. for(let m of materials){
  229. mainIndex.children.push(getMaterial(m))
  230. }
  231. let index = {
  232. name:"主要工料价格及消耗量指标",
  233. attrs:[],
  234. children:[mainIndex]
  235. };
  236. return index;
  237. function getMaterial(m) {
  238. let material = {
  239. name:m.name,
  240. attrs:[
  241. {name:"综合单价",value:scMathUtil.roundToString(m.unitPrice,2)},
  242. {name:"数量",value:scMathUtil.roundToString(m.quantity,2)},
  243. {name:"单方指标",value:scMathUtil.roundToString(m.unitIndex,3)},
  244. {name:"单位",value:m.unit}
  245. ]
  246. };
  247. return material;
  248. }
  249. }
  250. function setQuantityIndex(tender,projectData,indexName) {
  251. let quantityIndex = {
  252. name:`${indexName}量指标`,
  253. attrs:[],
  254. children:[]
  255. };
  256. let quantities = indexObj.getQuantityDatas(tender.property.mainQuantities,projectData.bills);
  257. for(let q of quantities){
  258. quantityIndex.children.push(getQuantity(q));
  259. }
  260. let index = {
  261. name:`主要工程量指标`,
  262. attrs:[],
  263. children:[quantityIndex]
  264. };
  265. return index;
  266. function getQuantity(q) {
  267. let quantity = {
  268. name:q.name,
  269. attrs:[
  270. {name:"工程量指标",value:scMathUtil.roundToString(q.quantity,3)},
  271. {name:"单位",value:q.unit}
  272. ]
  273. };
  274. return quantity;
  275. }
  276. }
  277. function setEngineerEcoIndex(tender,projectData,indexName) {
  278. let ecoIndex = {
  279. name:`${indexName}经济指标`,
  280. attrs:[],
  281. children:[]
  282. };
  283. let economicDatas = indexObj.getEconomicDatas(tender.property.economics,projectData.bills);
  284. for(let e of economicDatas){
  285. ecoIndex.children.push(getEco(e))
  286. }
  287. let index = {
  288. name:`工程经济指标`,
  289. attrs:[],
  290. children:[ecoIndex]
  291. };
  292. return index;
  293. function getEco(e) {
  294. let eco = {
  295. name:e.name,
  296. attrs:[
  297. {name:"综合合价",value:scMathUtil.roundToString(e.cost,2)},
  298. {name:"单方指标",value:scMathUtil.roundToString(e.unitCost,2)},
  299. {name:"占造价比例",value:scMathUtil.roundToString(e.per,2)}
  300. ]
  301. };
  302. return eco;
  303. }
  304. }
  305. }
  306. async function setGLJSummy(tender,projectData) {
  307. let gljs = {
  308. name:"人材机汇总",
  309. attrs:[],
  310. children:[]
  311. };
  312. setGLJDetail(projectData,tender.property,gljs);
  313. return gljs;
  314. }
  315. function setGLJDetail(projectData,property,gljs) {
  316. if(projectData){
  317. gljUtil.calcProjectGLJQuantity(projectData.projectGLJs,projectData.ration_gljs,projectData.rations,projectData.bills,getDecimal("glj.quantity"),_,scMathUtil);
  318. }
  319. for(let g of projectData.projectGLJs.gljList) {
  320. if (!g.quantity || g.quantity == "") continue;
  321. g.marketPrice = gljUtil.getMarketPrice(g,projectData.projectGLJs,property.calcOptions,property.decimal,false,_,scMathUtil);
  322. gljs.children.push(setEachGLJ(g));
  323. }
  324. }
  325. function setEachGLJ(source){
  326. let g = {
  327. name:"人材机",
  328. attrs:[
  329. {name: "代码", value: source.code},
  330. {name: "名称", value: source.name},
  331. {name: "规格型号", value: source.specs},
  332. {name: "单位", value: source.unit},
  333. {name: "市场单价", value: source.marketPrice},
  334. {name: "数量", value: source.quantity},
  335. {name: "类型", value: source.type},
  336. {name: "产地", value: source.originPlace},
  337. {name: "厂家", value: source.vender},
  338. {name: "备注", value: source.remark}
  339. ]
  340. };
  341. return g;
  342. }
  343. function setEngineerInfo(tender) {//设置工程信息
  344. let infos = tender.property.engineerInfos?tender.property.engineerInfos:[];
  345. let info = {
  346. name:"工程信息",
  347. attrs:[
  348. {name:"造价编制单位",value:getItemValueByDispName(infos,"造价编制单位")},
  349. {name:"造价审核单位",value:getItemValueByDispName(infos,"造价审核单位")},
  350. {name:"项目负责人",value:getItemValueByDispName(infos,"项目负责人")},
  351. {name:"施工单位编制人员",value:getItemValueByDispName(infos,"施工单位编制人员")},
  352. {name:"编制人员",value:getItemValueByDispName(infos,"编制人员")},
  353. {name:"审核人员",value:getItemValueByDispName(infos,"审核人员")},
  354. {name:"开工日期",value:getItemValueByDispName(infos,"开工日期")},
  355. {name:"竣工日期",value:getItemValueByDispName(infos,"竣工日期")},
  356. {name:"工程地点",value:getItemValueByDispName(infos,"工程地点")},
  357. {name:"工程类型",value:getItemValueByDispName(infos,"工程类型")},
  358. {name:"合同价类型",value:getItemValueByDispName(infos,"合同价类型")},
  359. {name:"造价类型",value:getItemValueByDispName(infos,"造价类型")},
  360. {name:"计价方式及依据",value:getItemValueByDispName(infos,"计价方式及依据")},
  361. {name:"工程类别",value:getItemValueByDispName(infos,"工程类别")},
  362. {name:"编制日期",value:getItemValueByDispName(infos,"编制日期")},
  363. {name:"审查日期",value:getItemValueByDispName(infos,"审查日期")}
  364. ]
  365. };
  366. initAtts(info.attrs);
  367. return info;
  368. }
  369. function setEngineerFeature(tender) {
  370. let fea = {
  371. name:"工程特征",
  372. attrs:[],
  373. children:[]
  374. };
  375. fea.children.push(setIndexName(tender));
  376. return fea;
  377. function setIndexName(tender) {
  378. let indexName = {
  379. name:tender.property.indexName?tender.property.indexName:"建筑工程",
  380. attrs:[],
  381. children:[]
  382. };
  383. setFeatures(tender,indexName.children);
  384. return indexName
  385. }
  386. function setFeatures(tender,arr) {
  387. let features = tender.property.engineerFeatures?tender.property.engineerFeatures:[];
  388. if(features.length == 0) return;
  389. let parentMap = _.groupBy(features,"ParentID");
  390. let rootNodes = parentMap["-1"]?parentMap["-1"]:parentMap[null];
  391. for(let r of rootNodes){
  392. arr.push(getFeatrue(r,parentMap))
  393. }
  394. }
  395. function getFeatrue(node,parentMap){
  396. if(parentMap[node.ID]){//如果有子节点,那么它就是一个节点
  397. let name = node.exportName?node.exportName:node.name;
  398. let tem = {
  399. name:name.replace("*",""),
  400. attrs:[],
  401. children:[]
  402. };
  403. for(let s of parentMap[node.ID]){
  404. let f = getFeatrue(s,parentMap);
  405. f.children?tem.children.push(f):tem.attrs.push(f);//如果有children这个属性,则返回的是一个节点,如果没有,则返回的是一个属性
  406. }
  407. return tem;
  408. }else {//如果没有子节点,那么它就是父节点的一个属性
  409. if(node.isDetail == true){//如果是明细节点,则造一个明细节点
  410. return {name:"明细",attrs:[{name:"名称",value:node.value}],children:[]};
  411. }
  412. return {name:node.name.replace("*",""),value:node.value};
  413. }
  414. }
  415. }
  416. function getBaseInfo(project){
  417. let basicInformation = {items:[]};
  418. let tem = null;
  419. if(project.property&&project.property.basicInformation) tem =_.find(project.property.basicInformation,{"key":"basicInfo"});
  420. if(tem) basicInformation = tem;
  421. return basicInformation;
  422. }
  423. function getItemValueBykey(items,key) {
  424. let item = _.find(items,{"key":key});
  425. if(item) return item.value;
  426. return ""
  427. }
  428. function getItemValueByDispName(items,dispName) {
  429. let item = _.find(items,{"dispName":dispName});
  430. if(item) return item.value;
  431. return ""
  432. }
  433. function initAtts(arrs) {
  434. _.remove(arrs,function (item) {
  435. return item.required == false && _.isEmpty(item.value)
  436. })
  437. }
  438. //开始标签
  439. function startTag(ele) {
  440. let rst = `<${ele.name}`;
  441. for (let attr of ele.attrs) {
  442. rst += ` ${attr.name}="${ attr.value!=undefined&&attr.value!= null?attr.value:""}"`;
  443. }
  444. rst += ele.children&&ele.children.length > 0 ? '>' : '/>';
  445. return rst;
  446. }
  447. //结束标签
  448. function endTag(ele) {
  449. return `</${ele.name}>`;
  450. }
  451. //拼接成xml字符串
  452. function toXMLStr(eles) {
  453. let rst = '';
  454. for (let ele of eles) {
  455. rst += startTag(ele);
  456. if (ele.children&& ele.children.length > 0) {
  457. rst += toXMLStr(ele.children);
  458. rst += endTag(ele);
  459. }
  460. }
  461. return rst;
  462. }
  463. //格式化xml字符串
  464. function formatXml(text) {
  465. //去掉多余的空格
  466. text = '\n' + text.replace(/>\s*?</g, ">\n<");
  467. //调整格式
  468. let rgx = /\n(<(([^\?]).+?)(?:\s|\s*?>|\s*?(\/)>)(?:.*?(?:(?:(\/)>)|(?:<(\/)\2>)))?)/mg;
  469. let nodeStack = [];
  470. let output = text.replace(rgx, function($0, all, name, isBegin, isCloseFull1, isCloseFull2, isFull1, isFull2){
  471. let isClosed = (isCloseFull1 === '/') || (isCloseFull2 === '/' ) || (isFull1 === '/') || (isFull2 === '/');
  472. let prefix = '';
  473. if (isBegin === '!') {
  474. prefix = getPrefix(nodeStack.length);
  475. } else {
  476. if (isBegin !== '/') {
  477. prefix = getPrefix(nodeStack.length);
  478. if (!isClosed) {
  479. nodeStack.push(name);
  480. }
  481. } else {
  482. nodeStack.pop();
  483. prefix = getPrefix(nodeStack.length);
  484. }
  485. }
  486. let ret = '\n' + prefix + all;
  487. return ret;
  488. });
  489. let outputText = output.substring(1);
  490. return outputText;
  491. function getPrefix(prefixIndex) {
  492. let span = ' ';
  493. let output = [];
  494. for (let i = 0 ; i < prefixIndex; ++i) {
  495. output.push(span);
  496. }
  497. return output.join('');
  498. }
  499. }
  500. /*
  501. * 导出数据
  502. * @param {Number}tenderID(当前界面的单位工程ID,后台根据这个单位工程,根据导出粒度去找其建设项目下相关数据)
  503. * @return {void}
  504. * */
  505. function toXml(eleData) {
  506. //转换成xml字符串
  507. let xmlStr = toXMLStr([eleData]);
  508. //加上xml声明
  509. xmlStr = `<?xml version="1.0" encoding="utf-8"?>${xmlStr}`;
  510. //格式化
  511. xmlStr = formatXml(xmlStr);
  512. let blob = new Blob([xmlStr], {type: 'text/plain;charset=utf-8'});
  513. saveAs(blob, '经济指标.ZBF');
  514. }
  515. }
  516. $(function () {
  517. $("#SEIMenu").click(async function () {
  518. await exportSEI(projectObj.project.property.rootProjectID);
  519. $("#exportMenu").removeClass("show");
  520. })
  521. });