(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-12a2a540"],{"0b08":function(a,e,t){"use strict";var o=TypeError;a.exports=function(a,e){if(a{const{industry:e,enterpriseName:t,year:o,electricityCarbonIntensity:r,heatingCarbonEmission:i,heatingCoalConsumption:n,heatingLoad:s,heatingRatio:l,loadOutputCoefficient:c,operationHours:u,powerCoalConsumption:p,powerSupply:d,id:h,month:C}=a;return{industry:e,enterpriseName:t,year:o,electricityCarbonIntensityCarbon:r.carbon,electricityCarbonIntensityMarkFlag:r.markFlag,electricityCarbonIntensityMarkValue:r.markValue,heatingCarbonEmissionCarbon:i.carbon,heatingCarbonEmissionMarkFlag:i.markFlag,heatingCarbonEmissionMarkValue:i.markValue,heatingCoalConsumptionCarbon:n.carbon,heatingCoalConsumptionMarkFlag:n.markFlag,heatingCoalConsumptionMarkValue:n.markValue,heatingLoadCarbon:s.carbon,heatingLoadMarkFlag:s.markFlag,heatingLoadMarkValue:s.markValue,heatingRatioCarbon:l.carbon,heatingRatioMarkFlag:l.markFlag,heatingRatioMarkValue:l.markValue,loadOutputCoefficientCarbon:c.carbon,loadOutputCoefficientMarkFlag:c.markFlag,loadOutputCoefficientMarkValue:c.markValue,operationHoursCarbon:u.carbon,operationHoursMarkFlag:u.markFlag,operationHoursMarkValue:u.markValue,powerCoalConsumptionCarbon:p.carbon,powerCoalConsumptionMarkFlag:p.markFlag,powerCoalConsumptionMarkValue:p.markValue,powerSupplyCarbon:d.carbon,powerSupplyMarkFlag:d.markFlag,powerSupplyMarkValue:d.markValue,id:h,month:C}})},handleOpen(a,e){this.dialogd=!0,console.log(a,e);a.id},hadleClose(){this.$confirm("是否关闭当前窗口?").then(a=>{this.dialogd=!1}).catch(a=>{})},handleSuccess(a,e){let t=e.response.data.originalName,o=e.response.data.attachId,r={name:t,id:o};this.attachUrl.push(r)}}}),u=c,p=(t("ab9b"),t("1805")),d=Object(p["a"])(u,s,l,!1,null,"74007c9d",null),h=d.exports,C={components:{ProductionView:h},computed:{...Object(n["b"])(["permission"])},data(){return{form:{},query:{},loading:!1,page:{size:10,current:1,total:0},selectionList:[],option:{height:"auto",calcHeight:80,tip:!1,searchShow:!0,searchMenuSpan:6,align:"left",headerAlign:"left",viewBtn:!1,addBtn:!1,editBtn:!1,delBtn:!1,dialogType:"drawer",dialogClickModal:!1,selection:!0,menuWidth:180,column:[{label:"年度",prop:"year",type:"year",valueFormat:"yyyy",search:!0,fixed:"left",searchLabelWidth:50},{label:"行业",prop:"industry",search:!0,type:"select",minWidth:120},{label:"企业名称",prop:"enterpriseName",fixed:"left",width:200,search:!0,type:"select"},{label:"供电量(MWh)",prop:"powerSupplyCarbon",slot:!0,minWidth:160},{label:"供热量(GJ)",prop:"heatingLoadCarbon",slot:!0,minWidth:160},{label:"供热比(%)",prop:"heatingRatioCarbon",slot:!0,minWidth:160},{label:"运行小时数(h)",prop:"operationHoursCarbon",slot:!0,minWidth:160},{label:"供电煤耗(tCe/MWh)",prop:"powerCoalConsumptionCarbon",slot:!0,minWidth:160},{label:"供热煤耗(tCe/GJ)",prop:"heatingCoalConsumptionCarbon",slot:!0,minWidth:160},{label:"供电排放强度(tCO2/MWh)",prop:"electricityCarbonIntensityCarbon",slot:!0,minWidth:180},{label:"供热排放强度(tCO2/GJ)",prop:"heatingCarbonEmissionCarbon",slot:!0,minWidth:160},{label:"负荷力系数(%)",prop:"loadOutputCoefficientCarbon",slot:!0,minWidth:160}]},data:[{id:"1765983654012620801",year:"2024",month:"1",enterpriseName:"啸莱能源有限公司",industry:"发电行业",powerSupply:{carbon:"146.00",markFlag:"-1",markValue:"-99.0"},heatingLoad:{carbon:"163.00",markFlag:"-1",markValue:"-93.9"},heatingRatio:{carbon:"88.00",markFlag:"-1",markValue:"-82.0"},loadOutputCoefficient:{carbon:"75.00",markFlag:"-1",markValue:"-80.3"},operationHours:{carbon:"544.00",markFlag:"-1",markValue:"-81.2"},heatingCoalConsumption:{carbon:"210.00",markFlag:"-1",markValue:"-90.3"},heatingCarbonEmission:{carbon:"180.00",markFlag:"-1",markValue:"-94.6"},powerCoalConsumption:{carbon:"140.00",markFlag:"-1",markValue:"-96.5"},electricityCarbonIntensity:{carbon:"251.00",markFlag:"-1",markValue:"-94.4"},ratioType:null},{id:"1763165861982605314",year:"2024",month:"2",enterpriseName:"鹰电能源有限公司",industry:"发电行业",powerSupply:{carbon:"0",markFlag:"0",markValue:"0"},heatingLoad:{carbon:"0",markFlag:"0",markValue:"0"},heatingRatio:{carbon:"0",markFlag:"0",markValue:"0"},loadOutputCoefficient:{carbon:"0",markFlag:"0",markValue:"0"},operationHours:{carbon:"0",markFlag:"0",markValue:"0"},heatingCoalConsumption:{carbon:"0",markFlag:"0",markValue:"0"},heatingCarbonEmission:{carbon:"0",markFlag:"0",markValue:"0"},powerCoalConsumption:{carbon:"0",markFlag:"0",markValue:"0"},electricityCarbonIntensity:{carbon:"0",markFlag:"0",markValue:"0"},ratioType:null},{id:"1767726329313202177",year:"2024",month:"1",enterpriseName:"圣莱能源有限公司",industry:"发电行业",powerSupply:{carbon:"2685.00",markFlag:"1",markValue:"172.6"},heatingLoad:{carbon:"4996.00",markFlag:"1",markValue:"464.5"},heatingRatio:{carbon:"182.00",markFlag:"-1",markValue:"-60.8"},loadOutputCoefficient:{carbon:"237.00",markFlag:"-1",markValue:"-45.8"},operationHours:{carbon:"1877.00",markFlag:"-1",markValue:"-33.0"},heatingCoalConsumption:{carbon:"409.00",markFlag:"-1",markValue:"-47.6"},heatingCarbonEmission:{carbon:"557.00",markFlag:"-1",markValue:"-24.4"},powerCoalConsumption:{carbon:"828.00",markFlag:"-1",markValue:"-35.8"},electricityCarbonIntensity:{carbon:"436.00",markFlag:"-1",markValue:"-50.7"},ratioType:null}],dataArr:[],linkTypey:"primary",linkTypeq:"info",ratioType:"1",powerSupplyTotal:{carbon:"7870.00",markFlag:"1",markValue:"946.5"},yearPowerSupply:[{name:"啸莱能源有限公司",value:"708"},{name:"鹰电能源有限公司",value:"267"},{name:"圣莱能源有限公司",value:"4895"}],yearHeatingRatio:[{name:"啸莱能源有限公司",value:"630"},{name:"鹰电能源有限公司",value:"112"},{name:"圣莱能源有限公司",value:"439"}]}},mounted(){this.init()},methods:{async init(){let a=this.transformData(this.data);console.log(a,"处理"),this.data=a,this.getHeatingRatio(),this.getPowerSupply()},search(){},ProductDataBaseTrend(){Object(i["getProductDataBaseTrend"])().then(a=>{console.log(a,"res");const e=a.data.data;console.log(e,"data"),this.powerSupplyTotal=e.powerSupplyTotal,this.yearPowerSupply=e.yearPowerSupply,this.yearHeatingRatio=e.yearHeatingRatio,this.getHeatingRatio(),this.getPowerSupply()}).catch(a=>{})},handleExport(a){const e=this.$loading({lock:!0,text:"正在导出文件,请稍等。",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});let t=this.dataArr.find(e=>(console.log(e.id,a.id,"?"),e.id===a.id));console.log(t,"对象"),Object(i["api_produceDataExport"])([t]).then(a=>{e.close();const t=a.data,o=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),r="生产数据文件.xlsx";if("download"in document.createElement("a")){const a=document.createElement("a");a.download=r,a.style.display="none",a.href=URL.createObjectURL(o),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}else navigator.msSaveBlob(o,r)})},handleExportAll(){let a=[],e=[];if(this.selectionList.forEach(e=>{console.log(e.id),a.push(e.id)}),e=this.dataArr.filter(e=>a.includes(e.id)),console.log(e),e.length>0){const a=this.$loading({lock:!0,text:"正在导出文件,请稍等。",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});Object(i["api_produceDataExport"])(e).then(e=>{a.close();const t=e.data,o=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),r="生产数据文件.xlsx";if("download"in document.createElement("a")){const a=document.createElement("a");a.download=r,a.style.display="none",a.href=URL.createObjectURL(o),document.body.appendChild(a),a.click(),URL.revokeObjectURL(a.href),document.body.removeChild(a)}else navigator.msSaveBlob(o,r)})}else this.$message.error("请选择导出的数据")},linky(){"info"==this.linkTypey&&(this.linkTypey="primary",this.linkTypeq="info",this.ratioType="1",console.log(this.searchParams),this.searchParams?this.getList(this.page,this.searchParams):this.getList(this.page))},linkq(){"primary"==this.linkTypey&&(this.linkTypey="info",this.linkTypeq="primary",this.ratioType="2",console.log(this.searchParams),this.searchParams?this.getList(this.page,this.searchParams):this.getList(this.page))},getHeatingRatio(a){let e=[],t=[];this.yearHeatingRatio.forEach(a=>{e.push(a.name),t.push(a.value)}),this.optionPie={title:{text:"企业供热比",subtext:"单位:%",left:"0%",top:"0%",textStyle:{fontSize:16}},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},axisLine:{show:!0,lineStyle:{color:"#4F4F4F"}},axisTick:{show:!1},grid:{top:"22%",right:"8%",left:"8%",bottom:"4%",containLabel:!0},series:[{name:"供热比",type:"bar",barWidth:"12",itemStyle:{barBorderRadius:[6,6,0,0],color:new this.$echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#FFA200"},{offset:1,color:"#FFE8BF"}])},data:t}],xAxis:{type:"category",axisTick:{alignWithLabel:!0},data:e,axisLabel:{formatter:function(a,e){const t=2;return a.length>t?a.substring(0,t)+"...":a}}},yAxis:{type:"value",data:[],splitLine:{show:!0,lineStyle:{type:"dashed"}}}},this.referer(this.optionPie)},getPowerSupply(a){let e=[],t=[];this.yearPowerSupply.forEach(a=>{console.log(a),e.push(a.name),t.push(a.value)});let o={title:{text:"年度企业供电量",subtext:"单位:MWh",left:"0%",top:"0%",textStyle:{fontSize:16}},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},axisLine:{show:!0,lineStyle:{color:"#4F4F4F"}},axisTick:{show:!1},grid:{top:"22%",right:"8%",left:"8%",bottom:"4%",containLabel:!0},series:[{name:"供电量",type:"bar",barWidth:"12",itemStyle:{barBorderRadius:[6,6,0,0],color:new this.$echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#2474FF"},{offset:1,color:"#B0CBFC"}])},data:t}],xAxis:{type:"category",axisTick:{alignWithLabel:!0},data:e,axisLabel:{formatter:function(a,e){const t=2;return a.length>t?a.substring(0,t)+"...":a}}},yAxis:{type:"value",data:[],splitLine:{show:!0,lineStyle:{type:"dashed"}}}};this.stacked(o)},handleView(a){this.$refs.templateInfo.handleOpen(a,this.ratioType)},searchReset(a){this.searchParams={},this.getList(this.page)},searchChange(a,e){this.page.current=1,this.searchParams=a,console.log(a,"params"),this.getList(this.page,a),e()},selectionChange(a){this.selectionList=a,console.log(this.selectionList)},selectionClear(){this.selectionList=[],this.$refs.crud.toggleSelection()},currentChange(a){this.page.current=a,this.getList(this.page)},sizeChange(a){this.page.size=a,this.getList()},refreshChange(){this.getList()},stacked(a){var e=this.$echarts.init(this.$refs.shureferer);e.clear(),this.$nextTick(()=>{e.setOption(a),window.addEventListener("resize",()=>{e.resize()})})},referer(a){var e=this.$echarts.init(this.$refs.referer);e.clear(),this.$nextTick(()=>{e.setOption(a),window.addEventListener("resize",()=>{e.resize()})})},transformData(a){return a.map(a=>{const{industry:e,enterpriseName:t,year:o,electricityCarbonIntensity:r,heatingCarbonEmission:i,heatingCoalConsumption:n,heatingLoad:s,heatingRatio:l,loadOutputCoefficient:c,operationHours:u,powerCoalConsumption:p,powerSupply:d,id:h}=a;return{industry:e,enterpriseName:t,year:o,electricityCarbonIntensityCarbon:r.carbon,electricityCarbonIntensityMarkFlag:r.markFlag,electricityCarbonIntensityMarkValue:r.markValue,heatingCarbonEmissionCarbon:i.carbon,heatingCarbonEmissionMarkFlag:i.markFlag,heatingCarbonEmissionMarkValue:i.markValue,heatingCoalConsumptionCarbon:n.carbon,heatingCoalConsumptionMarkFlag:n.markFlag,heatingCoalConsumptionMarkValue:n.markValue,heatingLoadCarbon:s.carbon,heatingLoadMarkFlag:s.markFlag,heatingLoadMarkValue:s.markValue,heatingRatioCarbon:l.carbon,heatingRatioMarkFlag:l.markFlag,heatingRatioMarkValue:l.markValue,loadOutputCoefficientCarbon:c.carbon,loadOutputCoefficientMarkFlag:c.markFlag,loadOutputCoefficientMarkValue:c.markValue,operationHoursCarbon:u.carbon,operationHoursMarkFlag:u.markFlag,operationHoursMarkValue:u.markValue,powerCoalConsumptionCarbon:p.carbon,powerCoalConsumptionMarkFlag:p.markFlag,powerCoalConsumptionMarkValue:p.markValue,powerSupplyCarbon:d.carbon,powerSupplyMarkFlag:d.markFlag,powerSupplyMarkValue:d.markValue,id:h}})},getList(a,e){this.loading=!0;let t={year:(new Date).getFullYear()};e?e.year||(e.year=t.year):e=t;let o={current:a.current,size:a.size,ratioType:this.ratioType};this.data=[],Object(i["getProductDataBase"])(Object.assign(o,e)).then(a=>{const e=a.data.data;console.log(e.records),this.page.total=e?e.total:0,this.dataArr=e.records;let t=this.transformData(e.records);console.log(t,"处理"),this.data=t,this.loading=!1}).catch(a=>{this.loading=!1})}}},g=C,m=(t("238d"),Object(p["a"])(g,o,r,!1,null,"4ff88c30",null));e["default"]=m.exports},cbc8:function(a,e,t){},de6a:function(a,e,t){"use strict";var o=t("2cd5"),r=String;a.exports=function(a){if("Symbol"===o(a))throw new TypeError("Cannot convert a Symbol value to a string");return r(a)}},ee0f:function(a,e,t){"use strict";var o=t("91d5"),r=t("8d37");a.exports=function(a,e,t){return t.get&&o(t.get,e,{getter:!0}),t.set&&o(t.set,e,{setter:!0}),r.f(a,e,t)}}}]);