(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59dc2db0"],{"18fd":function(e,t,a){"use strict";a("63e3")},"63e3":function(e,t,a){},"79fe":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",[t("el-card",[t("div",[t("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"企业名称"}},[t("el-select",{attrs:{placeholder:"请选择企业名称"},model:{value:e.form.Enterpriseid,callback:function(t){e.$set(e.form,"Enterpriseid",t)},expression:"form.Enterpriseid"}},e._l(e.enterpriseData,(function(e){return t("el-option",{key:e.id,attrs:{label:e.deptName,value:e.id}})})),1)],1)],1),t("el-col",{attrs:{span:6}},[t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),t("el-button",{on:{click:e.empty}},[e._v("清空")])],1)],1)],1)],1)],1),t("div",[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:6}})],1)],1),t("div",[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"emissionBox"},[t("div",{staticClass:"topTitle"},[e._v("排放")]),t("div",{staticClass:"bomBox"},[t("div",{staticClass:"val"},[e._v(e._s(e.carbonEmissions))]),t("div",{staticClass:"unit"},[e._v("tCO2")])])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"emissionBox"},[t("div",{staticClass:"topTitle"},[e._v("综合能耗")]),t("div",{staticClass:"bomBox"},[t("div",{staticClass:"val"},[e._v(e._s(e.energyConsumption))]),t("div",{staticClass:"unit"},[e._v("tce")])])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"emissionBox"},[t("div",{staticClass:"topTitle"},[e._v("配额")]),t("div",{staticClass:"bomBox"},[t("div",{staticClass:"val"},[e._v(e._s(e.quotaNum))]),t("div",{staticClass:"unit"},[e._v("吨")])])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"emissionBox"},[t("div",{staticClass:"topTitle"},[e._v("ccer")]),t("div",{staticClass:"bomBox"},[t("div",{staticClass:"val"},[e._v(e._s(e.ccerNum))]),t("div",{staticClass:"unit"},[e._v("吨")])])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"emissionBox"},[t("div",{staticClass:"topTitle"},[e._v("绿电")]),t("div",{staticClass:"bomBox"},[t("div",{staticClass:"val"},[e._v(e._s(e.totalTransactionVolume))]),t("div",{staticClass:"unit"},[e._v("MWh")])])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"emissionBox"},[t("div",{staticClass:"topTitle"},[e._v("绿证")]),t("div",{staticClass:"bomBox"},[t("div",{staticClass:"val"},[e._v(e._s(e.GreenCertificateNum))]),t("div",{staticClass:"unit"},[e._v("个")])])])])],1)],1),t("div",{staticStyle:{"margin-top":"30px"}},[t("el-row",{attrs:{gutter:24}},[t("el-col",{attrs:{span:12}},[t("div",{staticClass:"box-trend"},[t("div",{staticClass:"trendBox"},[t("div",{ref:"trendRef",staticClass:"trend"})])])]),t("el-col",{attrs:{span:12}},[t("div",{staticClass:"box-trend"},[t("div",{staticClass:"trendBox"},[t("div",{ref:"report",staticClass:"trend"})])])])],1)],1)])],1)},i=[],r=(a("fcd3"),a("95f6")),n=a("f850"),l=(a("2f3b"),a("c168"),a("2466"),a("9031")),o={data(){return{form:{Enterpriseid:""},page:{size:1,current:1,total:0},form:{enterprise:[],dataType:"能碳趋势",time:1},enterpriseData:[],carbonEmissions:"",quotaNum:"52313",ccerNum:"3021",totalTransactionVolume:"4233",GreenCertificateNum:"100",searchid:"",searchDeptName:"",ccerData:[],ccerChart:[]}},created(){},mounted(){this.ccerData=[{id:"1607297995118735361",parentId:"1607296866188259330",code:"vztimes_ccer",dictKey:"ccer_buy",dictValue:"CCER-购入",sort:1,remark:"add",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607299385643757569",parentId:"1607296866188259330",code:"vztimes_ccer",dictKey:"ccer_cell",dictValue:"CCER-注销",sort:2,remark:"sub",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607299510025842689",parentId:"1607296866188259330",code:"vztimes_ccer",dictKey:"ccer_for",dictValue:"CCER-履约",sort:3,remark:"sub",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607299609883832321",parentId:"1607296866188259330",code:"vztimes_ccer",dictKey:"ccer_sell",dictValue:"CCER-售出",sort:4,remark:"sub",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607294764548354050",parentId:"1607294362578841602",code:"vztimes_quota",dictKey:"quota_year",dictValue:"国家分配配额",sort:1,remark:"add",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607294990063497217",parentId:"1607294362578841602",code:"vztimes_quota",dictKey:"quota_buy",dictValue:"配额-购入",sort:2,remark:"add",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607296088870481921",parentId:"1607294362578841602",code:"vztimes_quota",dictKey:"quota_cell",dictValue:"配额-注销",sort:3,remark:"sub",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607296451249958914",parentId:"1607294362578841602",code:"vztimes_quota",dictKey:"quota_for",dictValue:"配额-履约",sort:4,remark:"sub",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1},{id:"1607296670935019521",parentId:"1607294362578841602",code:"vztimes_quota",dictKey:"quota_sell",dictValue:"配额-售出",sort:5,remark:"sub",isSealed:0,isDeleted:0,status:0,createTime:null,parentName:null,hasChildren:!1}],this.colorArr=Object(l["a"])(),this.enterpriseData=[{id:"1762867586717028353",tenantId:"416380",parentId:"1762861991238668290",fullName:"陕西榆林能源集团啸莱能源有限公司有限公司",deptName:"啸莱能源有限公司",ancestors:null,deptCategory:1,sort:null,remark:null,isDeleted:0},{id:"1762869596682031106",tenantId:"416380",parentId:"1762861991238668290",fullName:"陕西鹰电能源有限公司有限公司",deptName:"鹰电能源有限公司",ancestors:null,deptCategory:1,sort:null,remark:null,isDeleted:0},{id:"1762871099350159361",tenantId:"416380",parentId:"1762861991238668290",fullName:"榆能圣莱能源有限公司",deptName:"圣莱能源有限公司",ancestors:null,deptCategory:1,sort:null,remark:null,isDeleted:0},{id:"1762872149339639810",tenantId:"416380",parentId:"1762861991238668290",fullName:"陕西银河榆林发电有限公司",deptName:"银河榆林发电有限公司",ancestors:null,deptCategory:1,sort:null,remark:null,isDeleted:0},{id:"1762872979673419777",tenantId:"416380",parentId:"1762861991238668290",fullName:"榆林经济开发区汇通热电有限公司",deptName:"汇通热电有限公司",ancestors:null,deptCategory:1,sort:null,remark:null,isDeleted:0},{id:"1762873995252830210",tenantId:"416380",parentId:"1762861991238668290",fullName:"榆能集团佳县盐化有限公司",deptName:"佳县盐化有限公司",ancestors:null,deptCategory:1,sort:null,remark:null,isDeleted:0},{id:"1762874811569246209",tenantId:"416380",parentId:"1762861991238668290",fullName:"陕西榆林能源集团杨伙盘煤电有限公司",deptName:"杨伙盘煤电有限公司",ancestors:null,deptCategory:1,sort:null,remark:null,isDeleted:0},{id:"1762875631807336449",tenantId:"416380",parentId:"1762861991238668290",fullName:"陕西榆能化学材料有限公司",deptName:"化学材料有限公司",ancestors:null,deptCategory:1,sort:null,remark:null,isDeleted:0},{id:"1765564963323064322",tenantId:"416380",parentId:"1762861991238668290",fullName:"经纬度",deptName:"10",ancestors:null,deptCategory:1,sort:null,remark:"1111",isDeleted:0}],this.form.Enterpriseid=this.enterpriseData[0].id,this.searchid=this.enterpriseData[0].id,this.searchDeptName=this.enterpriseData[0].deptName,this.init()},methods:{init(){this.emission(),this.getChartData(),this.getData(),this.getRadar()},getChartData(){let e=[];e.push(this.searchDeptName);const t=[{year:"2024",enterpriseNameList:null,map:[{"啸莱能源有限公司":{energyConsumption:["0","325.0","10.0","122.0","0","210.0","11.0","0","0","0","0","0"],carbonEmissions:["0","11542.0","10.0","220.0","0","212.0","11.0","0","0","0","0","0"],carbonIntensity:["0","0.0748","1.0","0.0098","0","1.0547","1.0","0","0","0","0","0"],industryAdded:["0","125.0","10.0","354.0","0","110.0","11.0","0","0","0","0","0"],wasteWaterGeneration:["0","0","0","0","0","0","0","0","0","0","0","0"],industrialSolidWasteGenerationList:["0","0","0","0","0","0","0","0","0","0","0","0"],industrialRepeatedWaterConsumptionList:["0","0","0","0","0","0","0","0","0","0","0","0"],industrialSolidWasteUtilizationList:["0","0","0","0","0","0","0","0","0","0","0","0"],produceValueList:["0","0","0","0","0","0","0","0","0","0","0","0"]}}]}];console.log(t,"图"),this.opt(t),e=[]},emission(){this.carbonEmissions="11995",this.energyConsumption="678"},getQuotaList(e,t){let a={current:e.current,size:e.size,enterpriseName:this.searchDeptName?this.searchDeptName:null};Object(r["getgroupQuotaPage"])(Object.assign(a,t)).then(e=>{const t=e.data.data;t&&t.records.length>0?this.quotaNum=t.records[0].quotaNum:(console.log("没有配额"),this.quotaNum=0)}).catch(e=>{})},getCcerList(e,t){let a={current:e.current,size:e.size,enterpriseName:this.searchDeptName?this.searchDeptName:null};Object(n["getGroupCcerPage"])(Object.assign(a,t)).then(e=>{const t=e.data.data;t&&t.records.length>0?this.ccerNum=t.records[0].totalNum:(console.log("没有ccer"),this.ccerNum=0)}).catch(e=>{})},getGreenElectricityList(e,t){let a={current:e.current,size:e.size,purchaserEnterprise:this.searchDeptName?this.searchDeptName:null};Object(r["getGreenElectricityPage"])(Object.assign(a,t)).then(e=>{const t=e.data.data;t&&t.records.length>0?this.totalTransactionVolume=t.records[0].totalTransactionVolume:(console.log("没有绿电"),this.totalTransactionVolume=0)}).catch(e=>{})},getGreenCertificateList(e,t){let a={current:e.current,size:e.size,purchaserEnterprise:this.searchDeptName?this.searchDeptName:null};Object(r["getGreenCertificatePage"])(Object.assign(a,t)).then(e=>{const t=e.data.data;t&&t.records.length>0?this.GreenCertificateNum=t.records[0].holdingAmount:(console.log("没有绿证"),this.GreenCertificateNum=0)}).catch(e=>{})},search(){let e=this.form.Enterpriseid;const t=this.enterpriseData.find(t=>t.id===e);this.searchid=t.id,this.searchDeptName=t.deptName,this.init()},empty(){this.form.Enterpriseid=this.enterpriseData[0].id,this.searchid=this.enterpriseData[0].id,this.searchDeptName=this.enterpriseData[0].deptName,this.init()},opt(e){let t=[];const a={"能碳趋势":["energyConsumption","carbonEmissions"],"碳排放强度":["carbonIntensity"],"工业增加值":["industryAdded"],"工业废水产生量":["wasteWaterGeneration"],"工业固废产生量":["industrialSolidWasteGenerationList"],"工业重复用水":["industrialRepeatedWaterConsumptionList"],"工业固体废物综合利用量":["industrialSolidWasteUtilizationList"],"企业产值":["produceValueList"]};for(let s of e){let e=s.year,i=s.map[0];for(let s in i){let r=i[s];for(let i in r)a[this.form.dataType]&&a[this.form.dataType].includes(i)&&t.push({name:s,type:i,year:parseInt(e),data:r[i]})}}this.optTwo(t,this.form.time)},optTwo(e,t){const a=(e,t)=>{const a=[],i=(new Date).getFullYear(),r=i-t+1;e.forEach(e=>{const s=e.name+"-"+e.type,i=e.year-r;a[s]||(a[s]=Array(12*t).fill(0)),a[s].splice(12*i,12,...e.data)});const n=Object.keys(a).map(e=>{const[i,r]=e.split("-"),n=a[e].length===12*t?a[e]:[],l=s(r);return{name:i+" "+l,type:l,data:n,itemStyle:{borderColor:"#fff",borderWidth:5},type:"line",smooth:!0,showSymbol:!1,symbolSize:0}});return n},s=e=>"energyConsumption"===e?"能耗":"carbonEmissions"===e?"碳排放":"carbonIntensity"===e?"碳排放强度":"industryAdded"===e?"工业增加值":"wasteWaterGeneration"===e?"工业废水产生量":"industrialSolidWasteGenerationList"===e?"工业固废产生量":"industrialRepeatedWaterConsumptionList"===e?"工业重复用水":"industrialSolidWasteUtilizationList"===e?"工业固体废物综合利用量":"produceValueList"===e?"企业产值":e,i=a(e,t);this.series=i,this.getCcerPie()},getCcerPie(e){let t=this.generateMonths(1);this.optionPie={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}},formatter:function(e){for(var t,a=e[0].name+"
",s=0;s":e[s].seriesName.includes("碳排放")?t=" (tCO2)
":e[s].seriesName.includes("碳排放强度")?t=" (tCO2/万元)
":e[s].seriesName.includes("工业增加值")?t=" (tce/万元)
":e[s].seriesName.includes("工业废水产生量")||e[s].seriesName.includes("工业固废产生量")||e[s].seriesName.includes("工业重复用水")||e[s].seriesName.includes("工业固体废物综合利用量")?t=" (吨)
":e[s].seriesName.includes("企业产值")&&(t=" (万元)
"),a+='',a+=Number(e[s].value).toFixed(2)+t;return a}},xAxis:[{type:"category",boundaryGap:!1,data:t}],yAxis:[{type:"value",scale:!0}],grid:{top:"20%",left:"4%",right:"4%",bottom:"3%",containLabel:!0},legend:{left:"left",icon:"circle"},color:this.colorArr,series:this.series},this.referer(this.optionPie)},referer(e){var t=this.$echarts.init(this.$refs.trendRef);t.clear(),this.$nextTick(()=>{t.setOption(e),window.addEventListener("resize",()=>{t.resize()})})},generateMonths(e){const t=(new Date).getFullYear(),a=((new Date).getMonth(),t-e+1),s=t,i=[];for(let r=a;r<=s;r++)for(let e=1;e<=12;e++){const t=`${r}年${String(e).padStart(2,"0")}月`;i.push(t)}return i},getData(){const e={totalSum:"900136727.00",countryEmission:[{name:"鹰电能源有限公司",countryQuota:"900000000.00",emissionQuota:"99359.00"},{name:"啸莱能源有限公司",countryQuota:"900000000.00",emissionQuota:"122200.00"}],ccerTotal:"13886.00",ccerChart:[{name:"ccer_cell",value:"46214.00"},{name:"ccer_sell",value:"128.00"},{name:"ccer_buy",value:"60228.00"},{name:"quota_for",value:"900080500.00"},{name:"quota_cell",value:"100.00"},{name:"quota_sell",value:"20229.00"},{name:"quota_buy",value:"223670.00"},{name:"quota_year",value:"1800000000.00"}],quotaTotal:"900122841.00"};this.ccerChart=e.ccerChart,this.ccerChart=this.ccerChart.map(e=>{let t=this.ccerData.find(t=>t.dictKey==e.name);return e.name=t.dictValue,e.value=e.value,e}),this.getTrend()},getTrend(){this.piearr=this.ccerChart;let e={tooltip:{trigger:"item",formatter:function(e){var t=e.name+"
",a=e.color;return t+=''+e.percent+"%",t}},grid:{left:"5%",right:"60%"},legend:{type:"scroll",orient:"vertical",right:"1%",width:200,itemGap:10,icon:"circle",textStyle:{fontSize:14}},series:[{type:"pie",radius:["25%","50%"],center:["30%","50%"],avoidLabelOverlap:!0,minAngle:10,itemStyle:{borderRadius:3,borderColor:"#fff",borderWidth:2},label:{show:!1},data:this.piearr}]};var t=this.$echarts.init(this.$refs.report);t.clear(),this.$nextTick(()=>{t.setOption(e),window.addEventListener("resize",()=>{t.resize()})})},getRadar(){this.piearr=this.ccerChart;let e={radar:{indicator:[{name:"能耗",max:6500},{name:"排放",max:16e3},{name:"资产",max:3e4},{name:"减排",max:38e3},{name:"提交次数",max:52e3},{name:"可再生能源",max:25e3}]},series:[{name:"",type:"radar",data:[{value:[5e3,14e3,28e3,26e3,42e3,21e3]}]}]};var t=this.$echarts.init(this.$refs.radar);t.clear(),this.$nextTick(()=>{t.setOption(e),window.addEventListener("resize",()=>{t.resize()})})}},components:{},computed:{},watch:{}},c=o,d=(a("18fd"),a("1805")),u=Object(d["a"])(c,s,i,!1,null,"1ddc2ed1",null);t["default"]=u.exports},9031:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return i}));const s=()=>{const e=["#2474FF","#FFA200","#1C3FFF","#BD1CFF","#1CD4FF","#19C297","#EB5454","#19C25F","#24BDFF","#FF4D01","#EB5486","#19B4C2","#242BFF","#FFF701","#EB54B9","#1927C2","#6624FF","#34FF01","#A054EB"];return e},i=()=>{const e=["#19C297","#FFA200","#2474FF","#EB5454","#C7C7C7","#9F54EB","#42E5E3"];return e}}}]);