(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e8adc1f"],{"00fe":function(t,e,a){},1192:function(t,e,a){"use strict";var l=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"text"},[e("div",{staticClass:"innerText"},[t._v(t._s(t.num)+" 吨")]),e("div",{staticClass:"title"},[t._v(t._s(t.title))])])])},r=[],s={props:["title","num"],data(){return{iconName:"el-icon-platform-eleme"}}},i=s,n=(a("f6e3"),a("1805")),o=Object(n["a"])(i,l,r,!1,null,"194a5d8a",null);e["a"]=o.exports},1351:function(t,e,a){"use strict";a("5379")},"2c1b":function(t,e,a){"use strict";var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"out"},t._l(t.arr,(function(a,l){return e("div",{key:l},[l<4?e("div",{staticClass:"out-df"},[e("div",{staticClass:"title-df"},[e("div",{staticStyle:{display:"flex",width:"60%"}},[e("div",{staticClass:"idx"},[t._v(t._s(l+1+"."))]),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:a.name,placement:"top"}},[e("div",{staticClass:"title"},[t._v(t._s(a.name))])])],1),e("div",{staticStyle:{display:"flex"}},[e("div",{staticClass:"value"},[t._v(" "+t._s(a.value)+" ")]),e("div",{staticClass:"unit"},[t._v(t._s(t.unit))])])]),e("div",{staticClass:"outgress"},[e("div",{staticClass:"ossgres",style:{width:a.value/t.warn*100+"%"}},[e("div",{staticClass:"drop"})])])]):t._e()])})),0)},r=[],s={props:["warn","arr","unit"],data(){return{}},computed:{}},i=s,n=(a("1351"),a("1805")),o=Object(n["a"])(i,l,r,!1,null,"ea54e7ca",null);e["a"]=o.exports},"4d96":function(t,e,a){},5379:function(t,e,a){},9031:function(t,e,a){"use strict";a.d(e,"a",(function(){return l})),a.d(e,"b",(function(){return r}));const l=()=>{const t=["#2474FF","#FFA200","#1C3FFF","#BD1CFF","#1CD4FF","#19C297","#EB5454","#19C25F","#24BDFF","#FF4D01","#EB5486","#19B4C2","#242BFF","#FFF701","#EB54B9","#1927C2","#6624FF","#34FF01","#A054EB"];return t},r=()=>{const t=["#19C297","#FFA200","#2474FF","#EB5454","#C7C7C7","#9F54EB","#42E5E3"];return t}},b0a2:function(t,e,a){"use strict";a("4d96")},dd28:function(t,e,a){"use strict";a.r(e);var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"box"},[e("el-card",{staticClass:"box-main"},[e("div",{staticClass:"box-header"},[e("el-row",{attrs:{gutter:16}},[e("el-col",{attrs:{span:6}},[e("div",{staticClass:"box-top"},[e("div",{},[e("div",{staticClass:"groupTitle"},[t._v("集团配额总量")]),e("div",{staticClass:"top-value"},[e("div",{staticClass:"v-total"},[t._v(" "+t._s(t.data.quotaTotal>1e4?(t.data.quotaTotal/1e4).toFixed(2):t.data.quotaTotal)+" ")]),(t.data.quotaTotal,e("div",{staticClass:"v-unit"},[t._v("万吨")]))])])])]),e("el-col",{attrs:{span:6}},[e("div",{staticClass:"box-top"},[e("div",{},[e("div",{staticClass:"groupTitle"},[t._v("集团CCER总量")]),e("div",{staticClass:"top-value"},[e("div",{staticClass:"v-total"},[t._v(" "+t._s(t.data.ccerTotal>1e4?(t.data.ccerTotal/1e4).toFixed(2):t.data.ccerTotal)+" ")]),(t.data.ccerTotal,e("div",{staticClass:"v-unit"},[t._v("万吨")]))])])])]),e("el-col",{attrs:{span:6}},[e("div",{staticClass:"box-top"},[e("div",{},[e("div",{staticClass:"groupTitle"},[t._v("集团绿电总量")]),e("div",{staticClass:"top-value"},[e("div",{staticClass:"v-total"},[t._v(" "+t._s(t.data.electricityTotal>1e4?(t.data.electricityTotal/1e4).toFixed(2):t.data.electricityTotal)+" ")]),t.data.electricityTotal>1e4?e("div",{staticClass:"v-unit"},[t._v(" 万MWh ")]):e("div",{staticClass:"v-unit"},[t._v("MWh")])])])])]),e("el-col",{attrs:{span:6}},[e("div",{staticClass:"box-top"},[e("div",{},[e("div",{staticClass:"groupTitle"},[t._v("集团绿证总量")]),e("div",{staticClass:"top-value"},[e("div",{staticClass:"v-total"},[t._v(" "+t._s(t.data.greenCerTotal>1e4?(t.data.greenCerTotal/1e4).toFixed(2):t.data.greenCerTotal)+" ")]),t.data.greenCerTotal>1e4?e("div",{staticClass:"v-unit"},[t._v(" 万个 ")]):e("div",{staticClass:"v-unit"},[t._v("个")])])])])])],1)],1),e("div",[e("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px"}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:7}},[e("el-form-item",{attrs:{label:"企业名称:"}},[e("el-select",{attrs:{placeholder:"请选择资企业名称"},model:{value:t.form.enterpriseName,callback:function(e){t.$set(t.form,"enterpriseName",e)},expression:"form.enterpriseName"}},t._l(t.enterprise,(function(t,a){return e("el-option",{key:a,attrs:{label:t.deptName,value:t.deptName}})})),1)],1)],1),e("el-col",{attrs:{span:7}},[e("el-form-item",{attrs:{label:"资产指标:"}},[e("el-select",{attrs:{placeholder:"请选择资产指标"},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},[e("el-option",{attrs:{label:"配额",value:"PE"}}),e("el-option",{attrs:{label:"CCER",value:"CCER"}})],1)],1)],1),e("el-col",{attrs:{span:7}},[e("el-form-item",{attrs:{label:"时间:"}},[e("el-select",{attrs:{placeholder:"请选择时间"},on:{change:t.menus},model:{value:t.form.year,callback:function(e){t.$set(t.form,"year",e)},expression:"form.year"}},[e("el-option",{attrs:{label:"近一年",value:"1"}}),e("el-option",{attrs:{label:"近三年",value:"3"}}),e("el-option",{attrs:{label:"近五年",value:"5"}})],1)],1)],1)],1)],1)],1),e("div",{staticClass:"box-trend"},[e("el-row",{staticStyle:{height:"100%"},attrs:{gutter:16}},[e("el-col",{staticClass:"trendBox",attrs:{span:12}},[e("div",{ref:"trendRef",staticClass:"trend"},[t._v("1")])]),e("el-col",{staticClass:"trendBox",attrs:{span:12}},[e("div",{ref:"distributionRef",staticClass:"trend"},[t._v("1")])])],1)],1),e("div",{staticClass:"box-ranking"},[e("el-row",{staticStyle:{height:"100%"},attrs:{gutter:16}},[e("el-col",{staticClass:"trendBox",attrs:{span:6}},[e("div",{staticClass:"trend-top"},[e("div",{staticClass:"trend-title"},[t._v("配额总量排名")]),e("div",{staticClass:"Proportion"},[e("vz-ranking",{staticStyle:{width:"100%","margin-top":"16px"},attrs:{arr:t.data.quotaList,warn:t.quotaNum,unit:"吨"}})],1)])]),e("el-col",{staticClass:"trendBox",attrs:{span:6}},[e("div",{staticClass:"trend-top"},[e("div",{staticClass:"trend-title"},[t._v("CCER总量排名")]),e("div",{staticClass:"Proportion"},[e("vz-ranking",{staticStyle:{width:"100%","margin-top":"16px"},attrs:{arr:t.data.ccerList,warn:t.ccerNum,unit:"吨"}})],1)])]),e("el-col",{staticClass:"trendBox",attrs:{span:6}},[e("div",{staticClass:"trend-top"},[e("div",{staticClass:"trend-title"},[t._v("绿电总量排名")]),e("div",{staticClass:"Proportion"},[e("vz-ranking",{staticStyle:{width:"100%","margin-top":"16px"},attrs:{arr:t.data.electricityList,warn:t.electricityHoldingAmount,unit:"MWh"}})],1)])]),e("el-col",{staticClass:"trendBox",attrs:{span:6}},[e("div",{staticClass:"trend-top"},[e("div",{staticClass:"trend-title"},[t._v("绿证总量排名")]),e("div",{staticClass:"Proportion"},[e("vz-ranking",{staticStyle:{width:"100%","margin-top":"16px"},attrs:{arr:t.data.certificateList,warn:t.certificateHoldingAmount,unit:"个"}})],1)])])],1)],1)])],1)},r=[],s=(a("fcd3"),a("f0a4")),i=a("1192"),n=a("2c1b"),o=a("9031");a("2466"),a("2f3b");const c=function(t,e){let a=[],l=(new Date).getFullYear();const r=Array.from({length:e},(t,e)=>l-e);let s=new Map(t.map(t=>[Number(t.year),t])),i=r.map(t=>s.has(t)?s.get(t):{value:Array.from({length:12},()=>"0"),year:t.toString()});return i.reverse().map(t=>{a=[...a,...t.value]}),{value:a}};var u={components:{vzStatistic:i["a"],vzRanking:n["a"]},computed:{...Object(s["b"])(["permission"])},watch:{"form.enterpriseName":{handler(t,e){this.lineTitle=t+"交易趋势",this.pieTitle=t+"分布图",this.init()},deep:!0},"form.type":{handler(t,e){this.init()},deep:!0},"form.year":{handler(t,e){this.init()},deep:!0}},data(){return{lineTitle:"集团交易趋势",pieTitle:"集团分布图",colorArr:[],form:{enterpriseName:null,type:"PE",year:"1"},quotaNum:"",ccerNum:"",electricityHoldingAmount:"",certificateHoldingAmount:"",enterprise:[],leftTimes:[],data:{},chartData:{}}},async mounted(){let t=(new Date).getFullYear(),e=t;for(let a=1;a<=12;a++)this.leftTimes.push(`${e}-${String(a).padStart(2,"0")}`);this.getCarbonAssetsAnalysis(),await this.getCarbonAssetsAnalysisTrendChart(),this.getSelectEnterpriseAccount(),this.analyzeRequests()},methods:{async init(){await this.getCarbonAssetsAnalysisTrendChart(),this.getCcerPie(),this.getCcerCurve()},getCarbonAssetsAnalysis(){let t={enterpriseName:null,type:null,year:null,quotaTotal:"900122841.00",ccerTotal:"13886.00",electricityTotal:"1000142",greenCerTotal:"102592",assetsAnalysisTrend:null,assetsAnalysisChart:null,quotaList:[{enterpriseName:"鹰电能源有限公司",enterpriseId:"1762867586717028353",industryName:null,quotaNum:"122200.00",quotaDate:null},{enterpriseName:"啸莱能源有限公司",enterpriseId:"1762869596682031106",industryName:null,quotaNum:"-899999359.00",quotaDate:null}],ccerList:[{id:null,createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,enterpriseId:"1762867586717028353",enterpriseName:"鹰电能源有限公司",industryId:null,industryName:null,ccerYear:null,ccerMonth:null,holdingAmount:null,ccerNum:null,ccerType:null,ccerDate:null,isFile:null,remark:null,totalNum:"90.00"},{id:null,createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,enterpriseId:"1762869596682031106",enterpriseName:"啸莱能源有限公司",industryId:null,industryName:null,ccerYear:null,ccerMonth:null,holdingAmount:null,ccerNum:null,ccerType:null,ccerDate:null,isFile:null,remark:null,totalNum:"13796.00"}],electricityList:[{purchaserEnterprise:"鹰电能源有限公司",purchaserIndustry:"发电行业",totalTransactionVolume:"72",totalTransactionPrice:"984",holdingAmount:null,enterpriseId:"1762867586717028353"},{purchaserEnterprise:"啸莱能源有限公司",purchaserIndustry:"发电行业",totalTransactionVolume:"1000070",totalTransactionPrice:"781001160",holdingAmount:null,enterpriseId:"1762869596682031106"}],certificateList:[{id:null,createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,greenCertificateYear:null,greenCertificateMonth:null,projectName:null,projectType:null,projectScale:null,transactionUnitPrice:null,numberOfTransaction:102572,totalTransactionPrice:"7950522.00",tradingHour:null,projectIntroduction:null,enterpriseId:"1762869596682031106",enterpriseName:null,soldEnterpriseId:null,soldEnterpriseName:null,typeOfSoldEnterprise:null,greenPowerProducts:null,soldContact:null,soldContactInformation:null,remark:null,purchaserEnterprise:"啸莱能源有限公司",purchaserIndustryId:null,purchaserIndustry:"发电行业",purchaserContact:null,buyerContactInformation:null,isFile:null,holdingAmount:"102572",accountList:null},{id:null,createUser:null,createDept:null,createTime:null,updateUser:null,updateTime:null,status:null,isDeleted:null,tenantId:null,greenCertificateYear:null,greenCertificateMonth:null,projectName:null,projectType:null,projectScale:null,transactionUnitPrice:null,numberOfTransaction:20,totalTransactionPrice:"200.00",tradingHour:null,projectIntroduction:null,enterpriseId:"1762867586717028353",enterpriseName:null,soldEnterpriseId:null,soldEnterpriseName:null,typeOfSoldEnterprise:null,greenPowerProducts:null,soldContact:null,soldContactInformation:null,remark:null,purchaserEnterprise:"鹰电能源有限公司",purchaserIndustryId:null,purchaserIndustry:"发电行业",purchaserContact:null,buyerContactInformation:null,isFile:null,holdingAmount:"20",accountList:null}]};t.quotaList.sort((t,e)=>e.quotaNum-t.quotaNum),t.ccerList.sort((t,e)=>e.totalNum-t.totalNum),t.electricityList.sort((t,e)=>e.totalTransactionVolume-t.totalTransactionVolume),t.certificateList.sort((t,e)=>e.holdingAmount-t.holdingAmount),this.data=t,this.data.quotaList.forEach((t,e)=>{0===e&&(this.quotaNum=t.quotaNum),t.name=t.enterpriseName,t.value=t.quotaNum}),this.data.ccerList.forEach((t,e)=>{0===e&&(this.ccerNum=t.totalNum),t.name=t.enterpriseName,t.value=t.totalNum}),this.data.electricityList.forEach((t,e)=>{0===e&&(this.electricityHoldingAmount=t.totalTransactionVolume),t.name=t.purchaserEnterprise,t.value=t.totalTransactionVolume}),this.data.certificateList.forEach((t,e)=>{0===e&&(this.certificateHoldingAmount=t.holdingAmount),t.name=t.purchaserEnterprise,t.value=t.holdingAmount})},menus(t){this.leftTimes=[];let e=(new Date).getFullYear(),a=e;if("1"==t){this.yearText="近一年";for(let t=1;t<=12;t++)this.leftTimes.push(`${a}-${String(t).padStart(2,"0")}`)}else if("3"==t){this.yearText="近三年";let t=e-2;for(let a=t;a<=e;a++)for(let t=1;t<=12;t++)this.leftTimes.push(`${a}-${String(t).padStart(2,"0")}`)}else{this.yearText="近五年";let t=e-4;for(let a=t;a<=e;a++)for(let t=1;t<=12;t++)this.leftTimes.push(`${a}-${String(t).padStart(2,"0")}`)}this.form.year=t,this.init()},async getCarbonAssetsAnalysisTrendChart(){this.chartData={enterpriseName:null,type:null,year:null,quotaTotal:null,ccerTotal:null,electricityTotal:null,greenCerTotal:null,assetsAnalysisTrend:[{year:"2024",value:["0","192241.00","-900069400.00","0","0","0","0","0","0","0","0","0"]}],assetsAnalysisChart:[{name:"配额-售出",value:"20229.00"},{name:"配额-履约",value:"900080500.00"},{name:"配额-购入",value:"223670.00"},{name:"配额-注销",value:"100.00"},{name:"年分配额",value:"1800000000.00"}],quotaList:null,ccerList:null,electricityList:null,certificateList:null};let t=c(this.chartData.assetsAnalysisTrend,this.form.year);this.chartData.assetsAnalysisTrend=t.value},getSelectEnterpriseAccount(){this.enterprise=[{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}]},analyzeRequests(){this.colorArr=Object(o["a"])(),this.getCcerPie(),this.getCcerCurve()},search(){},getCcerPie(t){this.optionPie={title:{text:this.lineTitle,subtext:"单位:吨",left:"4%",top:"4%",textStyle:{fontSize:16}},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#D8D8D8"}},formatter:function(t){var e=t[0].color,a=t[0].name+"
";return a+=``,a+=t[0].value+" 吨",a}},xAxis:[{type:"category",boundaryGap:!1,data:this.leftTimes}],yAxis:[{type:"value",min:t=>{let e=10**(t.min.toString().length-2);return Math.floor(t.min/e)*e},max:t=>{let e=10**(t.max.toString().length-2);return Math.ceil(t.max/e)*e},scale:!0}],grid:{top:"25%",left:"6%",right:"6%",bottom:"3%",containLabel:!0},series:[{symbolSize:0,type:"line",stack:"Total",smooth:!0,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgb(36,116,255,0.76)"},{offset:1,color:"rgb(36,116,255,0)"}],global:!1}},itemStyle:{borderColor:"#fff",color:"#2474FF"},emphasis:{focus:"series"},data:this.chartData.assetsAnalysisTrend}]},this.referer(this.optionPie)},getCcerCurve(t){let e={title:{text:this.pieTitle,subtext:"单位:吨",left:"4%",top:"4%",textStyle:{fontSize:16}},tooltip:{trigger:"item",formatter:function(t){var e=t.name+"
",a=t.color;return e+='',e+=t.value+" 吨",e+='
'+t.percent+"%",e}},grid:{left:"10%",right:"60%"},legend:{right:"10%",top:"25%",orient:"vertical",itemWidth:8,itemHeight:8,itemGap:20,icon:"circle"},series:[{type:"pie",radius:["35%","50%"],center:["30%","55%"],avoidLabelOverlap:!0,minAngle:10,itemStyle:{borderRadius:3,borderColor:"#fff",borderWidth:2},label:{show:!1},data:this.chartData.assetsAnalysisChart||[],color:this.colorArr}]};this.stacked(e)},stacked(t){var e=this.$echarts.init(this.$refs.distributionRef);e.clear(),this.$nextTick(()=>{e.setOption(t),console.log(),window.addEventListener("resize",()=>{e.resize()})})},referer(t){var e=this.$echarts.init(this.$refs.trendRef);e.clear(),this.$nextTick(()=>{e.setOption(t),window.addEventListener("resize",()=>{e.resize()})})}}},d=u,p=(a("b0a2"),a("1805")),m=Object(p["a"])(d,l,r,!1,null,"05986cb6",null);e["default"]=m.exports},f6e3:function(t,e,a){"use strict";a("00fe")}}]);