(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b37eab7"],{"410d":function(e,t,a){},"42a5":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("basic-container",[t("avue-crud",{ref:"crud",attrs:{option:e.option,data:e.data,page:e.page},on:{"update:page":function(t){e.page=t},"search-change":e.searchChange,"search-reset":e.resetChange,"current-change":e.currentChange,"size-change":e.sizeChange,"refresh-change":e.refreshChange},scopedSlots:e._u([{key:"id",fn:function({row:a}){return[t("el-button",{attrs:{type:"text",disabled:!a.attaFlag},on:{click:function(t){return e.downLoad(a)}}},[e._v("下载")])]}},{key:"dataStatus",fn:function(a){return[t("div",{staticClass:"moon"},["待审核"==a.row.dataStatus?t("el-tag",{staticStyle:{color:"#ffd801",border:"1px solid rgba(255, 216, 1, 0.2)"},attrs:{color:"rgba(255, 216, 1, 0.2)"}},[e._v("待审核")]):e._e(),"已通过"==a.row.dataStatus?t("el-tag",{staticStyle:{color:"#19c297",border:"1px solid rgba(25, 194, 151, 0.2)"},attrs:{color:"rgba(25, 194, 151, 0.2)"}},[e._v("已通过")]):e._e(),"已退回"==a.row.dataStatus?t("el-tag",{staticStyle:{color:"#eb5454",border:"1px solid rgba(235, 84, 84, 0.2)"},attrs:{color:"rgba(235, 84, 84, 0.2)"}},[e._v("已退回")]):e._e(),"待提交"==a.row.dataStatus?t("el-tag",{staticStyle:{color:"#50b7fc",border:"1px solid rgba(235, 84, 84, 0.2)"},attrs:{color:"rgba(235, 84, 84, 0.2)"}},[e._v("待提交")]):e._e(),"未填报"==a.row.dataStatus?t("el-tag",{staticStyle:{color:"#c7c7c7",border:"1px solid rgba(199, 199, 199, 0.2)"},attrs:{color:"rgba(199, 199, 199, 0.2)"}},[e._v("未填报")]):e._e()],1)]}},{key:"menu",fn:function({row:a}){return[t("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-s-check",disabled:"YTG"===e.activeName||"YTH"===e.activeName},on:{click:function(t){return e.handleExamine(a)}}},[e._v("审 核")])]}}])},[t("template",{slot:"menuLeft"},[t("el-tabs",{staticClass:"my-tabs",attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"待审核",name:"DSH"}}),t("el-tab-pane",{attrs:{label:"已通过",name:"YTG"}}),t("el-tab-pane",{attrs:{label:"已驳回",name:"YTH"}})],1)],1)],2),t("cus-drawe",{attrs:{visible:e.visible,size:"80%",buttons:e.buttonList,title:"审核"},on:{handleBeforeClose:e.handleBeforeClose,buttonClick:e.buttonClick}},[t("ExamineDetail",{ref:"examineDetail",on:{colose:e.colose}})],1)],1)],1)},n=[],s=(a("aada"),a("1287"),a("2fb4"),a("882a")),r=a("5c2f"),o={components:{ExamineDetail:r["a"]},props:[],data(){return{loading:!1,activeName:"DSH",query:{},option:{height:"auto",calcHeight:30,align:"left",addBtn:!1,editBtn:!1,delBtn:!1,searchMenuSpan:6,selection:!1,tip:!1,searchLabelWidth:50,column:[{label:"年份",prop:"year",width:120,search:!0,type:"year",valueFormat:"yyyy",fixed:"left"},{label:"月份",prop:"month",fixed:"left"},{label:"行业",prop:"industry",search:!0,type:"select",props:{label:"dictValue",value:"dictValue"},width:120},{label:"企业名称",prop:"enterpriseName",fixed:"left",width:200,search:!0,type:"select",searchLabelWidth:100},{label:"碳排放值(tCO2)",prop:"carbonEmissions",width:150},{label:"能源消费(tCe)",prop:"energyConsumption",width:150},{label:"企业产值(万元)",prop:"produceValue",width:150},{label:"排放强度(tCO2/万元)",prop:"carbonIntensity",width:150},{label:"报告及材料",prop:"id",slot:!0},{label:"状态",prop:"dataStatus",slot:!0}]},data:[{id:"1777540698858196994",createUser:"1762881919673012226",createDept:"1762869596682031106",createTime:"2024-04-09 11:35:02",updateUser:"1762881919673012226",updateTime:"2024-04-09 11:36:48",status:1,isDeleted:0,tenantId:"416380",enterpriseName:"圣莱能源有限公司",year:"2024",month:"4",carbonEmissions:"12",industry:"发电行业",includeCarbonClassification:"中国发电企业",includeCarbonMarkets:"热电联产",energyConsumption:"23",industrialWastewaterGeneration:"23",industrialSolidWasteGeneration:"23",industrialRepeatedWaterConsumption:"23",totalIndustrialWaterConsumption:"23",blueWaterConsumption:"23",greenWaterConsumption:"23",greyWaterConsumption:"23",industrialSolidWasteUtilization:"23",produceValue:"12123",dataStatus:"待审核",remark:null,carbonIntensity:"0.0010",energyConsumptionIntensity:"0.0019",accountEnterpriseId:"1762869596682031106",attaFlag:!0},{id:"1776865017019203585",createUser:"1762882141362950145",createDept:"1762871099350159361",createTime:"2024-04-07 14:50:07",updateUser:"1762882141362950145",updateTime:"2024-04-08 09:31:36",status:1,isDeleted:0,tenantId:"416380",enterpriseName:"鹰电能源有限公司",year:"2024",month:"4",carbonEmissions:"10",industry:"发电行业",includeCarbonClassification:"中国发电企业",includeCarbonMarkets:"热电联产",energyConsumption:"10",industrialWastewaterGeneration:"10",industrialSolidWasteGeneration:"10",industrialRepeatedWaterConsumption:"10",totalIndustrialWaterConsumption:"10",blueWaterConsumption:"10",greenWaterConsumption:"10",greyWaterConsumption:"10",industrialSolidWasteUtilization:"10",produceValue:"10",dataStatus:"待审核",remark:null,carbonIntensity:"1.0000",energyConsumptionIntensity:"1.0000",accountEnterpriseId:"1762872149339639810",attaFlag:!0},{id:"1774673640176955394",createUser:"1762881630190538753",createDept:"1762867586717028353",createTime:"2024-04-01 13:42:22",updateUser:"1762881630190538753",updateTime:"2024-04-01 13:43:23",status:1,isDeleted:0,tenantId:"416380",enterpriseName:"圣莱能源有限公司",year:"2024",month:"5",carbonEmissions:"74521",industry:"发电行业",includeCarbonClassification:"中国发电企业",includeCarbonMarkets:"热电联产",energyConsumption:"10000",industrialWastewaterGeneration:"40",industrialSolidWasteGeneration:"23",industrialRepeatedWaterConsumption:"12",totalIndustrialWaterConsumption:"23",blueWaterConsumption:"2",greenWaterConsumption:"3",greyWaterConsumption:"4",industrialSolidWasteUtilization:"5",produceValue:"352",dataStatus:"待审核",remark:null,carbonIntensity:"211.7074",energyConsumptionIntensity:"28.4091",accountEnterpriseId:"1762867586717028353",attaFlag:!1}],page:{total:0,currentPage:1,pageSize:10},dataStatus:"DSH",buttonList:[{type:"primary",icon:"el-icon-s-check",label:"审核",btnName:"save"},{type:"",icon:"el-icon-circle-close",label:"取消",btnName:"cancel"}],visible:!1}},watch:{},created(){},methods:{getList(){return new Promise(e=>{let t={current:this.page.currentPage,size:this.page.pageSize,...this.query,dataStatus:this.dataStatus};this.loading=!0,Object(s["getDataReview"])(t).then(t=>{if(200===t.data.code){const a=t.data.data;this.page.total=a.total,this.data=a.records,this.loading=!1,e()}})})},handleClick({name:e}){this.dataStatus=e,this.getList()},handleExamine(e){this.visible=!0,this.detailId=e.id},handleBeforeClose(){this.$refs.examineDetail.handleCancel(),this.visible=!1,this.getList()},buttonClick(e){"save"===e?this.$refs.examineDetail.handletExamine():"cancel"===e&&this.$confirm("确认关闭?").then(e=>{this.handleBeforeClose()}).catch(e=>{})},colose(){this.handleBeforeClose()},downLoad(e){let t=e.id;const a=this.$loading({lock:!0,text:"正在下载文件,请稍等。",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),i={id:t};Object(s["udownloadDataReview"])(i).then(e=>{a.close();const t=e.data,i=new Blob([t],{type:"application/zip;chartset=UTF-8"}),n=document.createElement("a"),s=window.URL.createObjectURL(i);n.href=s,n.download="相关文件",document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(s)})},resetChange(){this.dataStatus=this.activeName,this.query={},this.getList()},searchChange(e,t){this.dataStatus=this.activeName,this.query=e,this.page.current=1,this.getList(),t()},currentChange(e){this.dataStatus=this.activeName,this.page.current=e,this.getList()},sizeChange(e){this.dataStatus=this.activeName,this.page.size=e,this.getList()},refreshChange(){this.dataStatus=this.activeName,this.page={pageSize:10,currentPage:1,total:0},this.getList()}}},l=o,c=(a("aab3"),a("1805")),d=Object(c["a"])(l,i,n,!1,null,"2db51780",null);t["default"]=d.exports},aab3:function(e,t,a){"use strict";a("410d")}}]);