(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-74729472"],{"073f":function(t,e,a){},"0caa":function(t,e,a){"use strict";var i=a("ef05");t.exports=function(t,e){var a=[][t];return!!a&&i((function(){a.call(null,e||function(){return 1},1)}))}},"73b6":function(t,e,a){"use strict";var i=a("9374"),s=a("4cf6"),r=a("e1a3"),n=a("83fc"),o=TypeError,l="Reduce of empty array with no initial value",c=function(t){return function(e,a,c,d){var u=s(e),p=r(u),h=n(u);if(i(a),0===h&&c<2)throw new o(l);var f=t?h-1:0,m=t?-1:1;if(c<2)while(1){if(f in p){d=p[f],f+=m;break}if(f+=m,t?f<0:h<=f)throw new o(l)}for(;t?f>=0:h>f;f+=m)f in p&&(d=a(d,p[f],f,u));return d}};t.exports={left:c(!1),right:c(!0)}},9031:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return s}));const i=()=>{const t=["#2474FF","#FFA200","#1C3FFF","#BD1CFF","#1CD4FF","#19C297","#EB5454","#19C25F","#24BDFF","#FF4D01","#EB5486","#19B4C2","#242BFF","#FFF701","#EB54B9","#1927C2","#6624FF","#34FF01","#A054EB"];return t},s=()=>{const t=["#19C297","#FFA200","#2474FF","#EB5454","#C7C7C7","#9F54EB","#42E5E3"];return t}},a092:function(t,e,a){"use strict";var i=a("5661"),s=a("73b6").left,r=a("0caa"),n=a("74ad"),o=a("cd69"),l=!o&&n>79&&n<83,c=l||!r("reduce");i({target:"Array",proto:!0,forced:c},{reduce:function(t){var e=arguments.length;return s(this,t,e,e>1?arguments[1]:void 0)}})},b3a3:function(t,e,a){},b50a:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"box"},[e("el-card",[e("div",{staticClass:"box-header"},[e("el-row",{staticStyle:{height:"100%"},attrs:{gutter:16}},[e("el-col",{staticStyle:{height:"100%"},attrs:{span:12}},[e("div",{staticClass:"overallProgress"},[e("div",{staticClass:"df"},[e("div",{staticClass:"op-img"}),e("div",{staticClass:"op-title"},[t._v("集团总进度")])]),e("div",{staticClass:"op-right"},[t._v(t._s(t.headerData.yearPromiseRate)+"%")])]),e("outgress",{attrs:{pie:t.headerData.yearPromiseRate,warn:t.warn}})],1),e("el-col",{staticStyle:{height:"100%"},attrs:{span:6}},[e("div",{staticClass:"SurplusDeficit"},[e("el-row",{staticStyle:{"margin-top":"4px"},attrs:{gutter:16}},[e("el-col",{attrs:{span:24}},[e("div",{staticClass:"sd-title"},[t._v("集团盈缺量")])]),e("el-col",{attrs:{span:24}},[e("div",{staticClass:"df"},[e("div",{staticClass:"sd-value"},[t._v(" "+t._s(t.headerData.surplusAndDeficit>1e5?(t.headerData.surplusAndDeficit/1e4).toFixed(2):t.headerData.surplusAndDeficit)+" ")]),t.headerData.promisePrice>1e5?e("div",{staticClass:"sd-unit"},[t._v(" 万吨 ")]):e("div",{staticClass:"sd-unit"},[t._v("吨")])])])],1)],1)]),e("el-col",{staticStyle:{height:"100%"},attrs:{span:6}},[e("div",{staticClass:"SurplusDeficit"},[e("el-row",{staticStyle:{"margin-top":"4px"},attrs:{gutter:16}},[e("el-col",{attrs:{span:24}},[e("div",{staticClass:"sd-title"},[t._v("履约成本")])]),e("el-col",{attrs:{span:24}},[e("div",{staticClass:"df"},[e("div",{staticClass:"sd-value"},[t._v(" "+t._s(t.headerData.promisePrice>1e5?(t.headerData.promisePrice/1e4).toFixed(2):t.headerData.promisePrice)+" ")]),t.headerData.promisePrice>1e5?e("div",{staticClass:"sd-unit"},[t._v(" 万元 ")]):e("div",{staticClass:"sd-unit"},[t._v("元")])])])],1)],1)])],1)],1),e("div",{staticClass:"ch-bom"},[e("el-row",{staticStyle:{"margin-bottom":"16px"},attrs:{gutter:16}},[e("el-col",{attrs:{span:12}},[e("div",{ref:"SurplusDeficiencyChart",staticClass:"Charts"})]),e("el-col",{attrs:{span:12}},[e("div",{ref:"scheduleChart",staticClass:"Charts"})])],1),e("el-row",{staticStyle:{"margin-bottom":"16px"},attrs:{gutter:16}},[e("el-col",{attrs:{span:12}},[e("div",{ref:"performanceChart",staticClass:"Charts"})]),e("el-col",{attrs:{span:12}},[e("div",{ref:"costAnalysisChart",staticClass:"Charts"})])],1)],1)])],1)},s=[],r=(a("a092"),a("bf12")),n=(a("9031"),a("f0a4")),o=(a("6aac"),{components:{outgress:r["a"]},computed:{...Object(n["b"])(["permission"])},data(){return{pie:"90",warn:"80",colorArr:[],data:{promiseCollect:{notPromiseEnterprise:6,alreadyPromiseEnterprise:3,totalEnterprise:9},deficitAnalysis:[{name:"啸莱能源有限公司",value:"899016667.00"},{name:"啸莱能源有限公司",value:"899913482.00"}],promiseRate:[{name:"未履约",value:1},{name:"已履约",value:3}],promiseAnalysis:[{carbonEmissions:"983333",name:"啸莱能源有限公司",countryValue:"900000000.00"},{carbonEmissions:"86518",name:"啸莱能源有限公司",countryValue:"900000000.00"}],promiseCostAnalysis:[{name:"啸莱能源有限公司",value:"821097360.08"},{name:"啸莱能源有限公司",value:"893057795.68"}]},headerData:{surplusAndDeficit:"1798930149.00",promisePrice:"142547225006.76",yearPromiseRate:"75.00"}}},mounted(){this.init()},methods:{async init(){this.getSurplusDeficiency(),this.getScheduleChart(),this.getPerformanceChart(),this.getCostAnalysisChart()},getSurplusDeficiency(t){let e=this.data.deficitAnalysis.map(t=>t.name),a=this.data.deficitAnalysis.map(t=>t.value),i={title:{text:"盈缺分析",left:"left",subtext:"单位:吨",top:"0%",textStyle:{fontSize:16}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"25%",right:"0%",left:"0%",bottom:"0%",containLabel:!0},xAxis:{type:"category",data:e,axisLabel:{formatter:function(t,e){const a=2;return t.length>a?t.substring(0,a)+"...":t}}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},yAxis:{type:"value"},series:[{data:a,type:"bar",barWidth:"20",itemStyle:{color:function(t){return t.value>=0?"#2474FF":"#19C297"}}}]};this.SurplusDeficiency(i)},SurplusDeficiency(t){var e=this.$echarts.init(this.$refs.SurplusDeficiencyChart);e.clear(),this.$nextTick(()=>{e.setOption(t),window.addEventListener("resize",()=>{e.resize()})})},getScheduleChart(){const t=this.data.promiseRate.reduce((t,e)=>t+e.value,0),e=this.data.promiseRate.map(e=>({name:e.name,value:e.value,percentage:(e.value/t*100).toFixed(2)}));let a={title:{text:"履约整体进度",left:"left",top:"0",textStyle:{fontSize:16}},tooltip:{trigger:"item",formatter:function(t){return t.name+t.percent+"%"}},grid:{left:"5%",right:"60%"},legend:{right:"10%",top:"40%",width:200,itemWidth:10,itemHeight:10,itemGap:40,icon:"circle",textStyle:{fontSize:14}},series:[{type:"pie",radius:["35%","50%"],center:["30%","65%"],avoidLabelOverlap:!0,minAngle:10,itemStyle:{borderRadius:3,borderColor:"#fff",borderWidth:2},label:{show:!1},data:e,color:this.colorArr}]};var i=this.$echarts.init(this.$refs.scheduleChart);i.clear(),this.$nextTick(()=>{i.setOption(a),window.addEventListener("resize",()=>{i.resize()})})},getPerformanceChart(){let t=this.data.promiseAnalysis.map(t=>t.name),e=this.data.promiseAnalysis.map(t=>t.carbonEmissions),a=this.data.promiseAnalysis.map(t=>t.countryValue),i={title:{text:"履约分析",subtext:"单位:吨",left:"left",top:"0%",textStyle:{fontSize:16}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},axisLine:{show:!0,lineStyle:{color:"#4F4F4F"}},axisTick:{show:!1},grid:{top:"30%",right:"8%",left:"8%",bottom:"5%",containLabel:!0},series:[{name:"排放",type:"bar",barWidth:"12",itemStyle:{barBorderRadius:[6,6,0,0],color:"#2474FF"},data:e},{name:"年分配配额",type:"bar",barWidth:"12",itemStyle:{barBorderRadius:[6,6,0,0],color:"#B1CCFC"},data:a}],xAxis:{type:"category",data:t,axisTick:{alignWithLabel:!0},axisLabel:{formatter:function(t,e){const a=2;return t.length>a?t.substring(0,a)+"...":t}}},yAxis:{type:"value",data:[],splitLine:{show:!0,lineStyle:{type:"dashed"}}},legend:{left:"right"}};var s=this.$echarts.init(this.$refs.performanceChart);s.clear(),this.$nextTick(()=>{s.setOption(i),window.addEventListener("resize",()=>{s.resize()})})},getCostAnalysisChart(){let t=this.data.promiseCostAnalysis.map(t=>t.name),e=this.data.promiseCostAnalysis.map(t=>t.value),a={title:{text:"履约成本分析",left:"left",subtext:"单位:元",top:"0%",textStyle:{fontSize:16}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"25%",right:"0%",left:"0%",bottom:"0%",containLabel:!0},xAxis:{type:"category",data:t,axisLabel:{formatter:function(t,e){const a=2;return t.length>a?t.substring(0,a)+"...":t}}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},yAxis:{type:"value"},series:[{data:e,type:"bar",barWidth:"20",itemStyle:{color:function(t){return t.value>=0?"#2474FF":"#19C297"}}}]};var i=this.$echarts.init(this.$refs.costAnalysisChart);i.clear(),this.$nextTick(()=>{i.setOption(a),window.addEventListener("resize",()=>{i.resize()})})}},filters:{convert(t){return t>1e4?(t/1e4).toFixed(2):t.toFixed(2)}}}),l=o,c=(a("d13a"),a("1805")),d=Object(c["a"])(l,i,s,!1,null,"42cee2f9",null);e["default"]=d.exports},bf12:function(t,e,a){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"out"},[e("div",{staticClass:"outgress",style:{}},[e("div",{staticClass:"ossgress",style:{width:t.pie+"%",background:"linear-gradient(90deg, #4D8BF9 0%, #2474FF 100%)","border-radius":100==t.pie?"0 0 8px 8px":"0 0 0 8px"}}),0!==t.warn?e("div",{staticClass:"innergress",style:{"margin-left":t.warn+"%"}}):t._e()])])},s=[],r={props:["pie","warn"],data(){return{}},computed:{}},n=r,o=(a("c29b"),a("1805")),l=Object(o["a"])(n,i,s,!1,null,"4eac9aaa",null);e["a"]=l.exports},c29b:function(t,e,a){"use strict";a("b3a3")},cd69:function(t,e,a){"use strict";var i=a("45ed"),s=a("2478");t.exports="process"===s(i.process)},d13a:function(t,e,a){"use strict";a("073f")}}]);