(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-74f366ea"],{4858:function(e,t,a){"use strict";var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"block"},[t("el-timeline",e._l(e.data,(function(a,o){return t("el-timeline-item",{key:o,attrs:{timestamp:a.createTime,size:a.size}},[t("div",[t("div",{staticClass:"activity"},[t("h3",{staticClass:"approvalNode"},[e._v(e._s(a.approvalNode))]),t("div",{class:[a.className,"static-class"]},[e._v(" "+e._s(a.value)+" ")])]),a.text?t("div",{class:[a.className,"text-class"]},[e._v(" "+e._s(a.approvalDescription)+" ")]):e._e()])])})),1)],1)},r=[],i={data(){return{}},props:{data:{default:()=>[],required:!0}},watch:{data(e,t){this.data.forEach(e=>{switch(e.text=e.approvalDescription,e.approvalStatus){case"WTB":e.value="未填报",e.className="wtbstatus";break;case"DTJ":e.value="待提交",e.className="dtjstatus";break;case"YTJ":e.value="已提交",e.className="ytjstatus";break;case"DSH":e.value="待审核",e.className="dshstatus";break;case"YBH":e.value="已驳回",e.className="ybhstatus";break;case"YTG":e.value="已通过",e.className="ytgstatus";break}})},immediate:!0},created(){this.data.forEach(e=>{switch(e.text=e.approvalDescription,e.approvalStatus){case"WTB":e.value="未填报",e.className="wtbstatus";break;case"DTJ":e.value="待提交",e.className="dtjstatus";break;case"YTJ":e.value="已提交",e.className="ytjstatus";break;case"DSH":e.value="待审核",e.className="dshstatus";break;case"YBH":e.value="已驳回",e.className="ybhstatus";break;case"YTG":e.value="已通过",e.className="ytgstatus";break}})}},l=i,s=(a("b55a"),a("1805")),c=Object(s["a"])(l,o,r,!1,null,"031b0c00",null);t["a"]=c.exports},"500c":function(e,t,a){"use strict";a("f0b6")},"5ba9c":function(e,t,a){},"5d9d":function(e,t,a){"use strict";a("5ba9c")},"6a7d":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"box"},[t("el-card",{staticClass:"box-main"},[t("div",[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.searchReset,"current-change":e.currentChange,"size-change":e.sizeChange,"refresh-change":e.refreshChange},scopedSlots:e._u([{key:"approveDate",fn:function({row:t}){return t.projectDevelop.approveDate?[e._v(" "+e._s(e.$dayjs(t.projectDevelop.approveDate).format("YYYY-MM-DD"))+" ")]:void 0}},{key:"projectStatus",fn:function({row:a}){return["DSH"==a.projectDevelop.projectStatus?t("el-tag",{staticStyle:{color:"#ffd801",border:"1px solid rgba(255, 216, 1, 0.2)"},attrs:{color:"rgba(255, 216, 1, 0.2)"},on:{click:function(t){return e.reasons(a,"YBH")}}},[e._v("待审核")]):e._e(),"YTG"==a.projectDevelop.projectStatus?t("el-tag",{staticStyle:{color:"#19c297",border:"1px solid rgba(25, 194, 151, 0.2)"},attrs:{color:"rgba(25, 194, 151, 0.2)"},on:{click:function(t){return e.reasons(a,"YTG")}}},[e._v("已通过")]):e._e(),"YBH"==a.projectDevelop.projectStatus?t("el-tag",{staticStyle:{color:"#eb5454",border:"1px solid rgba(235, 84, 84, 0.2)"},attrs:{color:"rgba(235, 84, 84, 0.2)"},on:{click:function(t){return e.reasons(a,"YBH")}}},[e._v("已驳回")]):e._e(),"DTJ"==a.projectDevelop.projectStatus?t("el-tag",{staticStyle:{color:"#50b7fc",border:"1px solid rgba(80, 183, 252, 0.2)"},attrs:{color:"rgba(80, 183, 252, 0.2)"},on:{click:function(t){return e.reasons(a,"YBH")}}},[e._v("待提交")]):e._e(),"WTB"==a.projectDevelop.projectStatus?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()]}},{key:"menu",fn:function({row:a}){return[t("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-view"},on:{click:function(t){return e.handleView(a)}}},[e._v(" 查 看 ")]),t("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-edit",disabled:"DSH"==a.projectDevelop.projectStatus||"YTG"==a.projectDevelop.projectStatus},on:{click:function(t){return e.handleEdit(a)}}},[e._v(" 编 辑 ")]),t("el-button",{attrs:{type:"text",size:"small",disabled:"DSH"==a.projectDevelop.projectStatus||"YTG"==a.projectDevelop.projectStatus||"WTB"==a.projectDevelop.projectStatus,icon:"el-icon-check"},on:{click:function(t){return e.handleSubmitTo(a)}}},[e._v(" 提 交 ")])]}}],null,!0)})],1)]),t("el-drawer",{staticClass:"el-dialog__wrapper avue-dialog avue-crud__dialog",attrs:{title:e.applicationTitle,visible:e.dialogd,size:"80%","close-on-press-escape":!1,"destroy-on-close":"","append-to-body":"",wrapperClosable:!1,"before-close":e.hadleClose},on:{"update:visible":function(t){e.dialogd=t}}},[t("projectDesignForm",{ref:"projectDesign",attrs:{form:e.form,isView:e.isView}}),t("projectApprovalForm",{ref:"projectApprovalForm",attrs:{form:e.form,isView:e.projectApprovalIsView}}),t("projectApplicationForm",{ref:"projectApplicationForm",attrs:{form:e.form,isView:e.projectApplicationIsView}}),t("projectDevelopmentForm",{ref:"projectDevelopmentForm",attrs:{form:e.form,isView:e.projectDevelopmentIsView}}),t("div",{staticClass:"avue-dialog__footer"},[0==e.projectDevelopmentIsView?t("el-button",{attrs:{icon:"el-icon-circle-plus-outline",type:"primary"},on:{click:function(t){return e.handleSubmit("DSH")}}},[e._v("保存并提交")]):e._e(),0==e.projectDevelopmentIsView?t("el-button",{attrs:{icon:"el-icon-circle-plus-outline",type:"primary"},on:{click:function(t){return e.handleSubmit("DTJ")}}},[e._v("保 存")]):e._e(),t("el-button",{attrs:{icon:"el-icon-circle-close"},on:{click:e.hadleClose}},[e._v("取 消")])],1)],1),t("el-dialog",{attrs:{title:"审核状态",visible:e.dialogVisible,width:"25%",modal:!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("projectStatus",{attrs:{data:e.approvalProcess}}),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")])],1)],1)],1)},r=[],i=a("6fbe"),l=a("a481"),s=a("0527"),c=a("f7a1"),p=a("736e"),n=a("4858"),d={data(){return{applicationTitle:"",form:{},loading:!1,dialogVisible:!1,page:{size:10,current:1,total:0},rules:[],industryOptions:[],option:{height:"auto",calcHeight:80,tip:!1,searchShow:!0,searchMenuSpan:6,align:"left",headerAlign:"left",viewBtn:!1,addBtn:!1,editBtn:!1,delBtn:!1,dialogClickModal:!1,menuWidth:260,selection:!1,column:[{label:"企业名称",prop:"projectName",search:!0,width:200,bind:"emissionReductionProjects.projectName"},{label:"所属行业",prop:"industry",bind:"emissionReductionProjects.industry",width:220,search:!0,type:"select"},{label:"方法学",prop:"methodology",bind:"emissionReductionProjects.methodology",width:180},{label:"减排量",prop:"emissionReduction",bind:"projectDevelop.emissionReduction",width:180},{label:"项目开发日期",prop:"developmentDate",bind:"projectDevelop.developmentDate",width:180},{label:"项目完成日期",prop:"completionDate",bind:"projectDevelop.completionDate",width:180},{label:"状态",prop:"projectStatus",bind:"projectDevelop.projectStatus",slot:!0,width:180}]},data:[{emissionReductionProjects:{id:"1777528110787223553",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:45:01",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",projectName:"项目一",industry:"能源需求",methodology:"并网光热发电",methodologyVersion:"CCER—01—001—V01",projectStatus:"DSH",projectStage:null,fieldFlag:null,attachList:null,auditStatus:null},projectDesign:{id:"1777528110887886850",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:45:01",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",projectId:"1777528110787223553",projectDesignFileVersion:"12",projectDesignFileCompletionDate:"2024-04-09",startTimeOfInclusionPeriod:"2024-04-08",endTimeOfInclusionPeriod:null,estimatedAnnualGreenhouseGasEmissionReduction:"123",projectOwner:"12",registeredAddress:"23",projectOwnerLegalRepresentative:"23",projectProprietor:"23",projectResponsibleUnit:"21",projectManager:"12",contactInformation:"17310814246",contactAddress:"23",email:"yangseng@vztimes.com",projectStatus:"YTG",attachList:[{id:"1777528029824573441",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:44:42",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777528110887886850",title:"upload/20240409104441751/1708596498165.jpg",introduction:"1708596498165.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409104441751/1708596498165.jpg",bucketName:"bucket2",type:"jpg",domainUrl:"bucket2",name:"1708596498165.jpg",originalName:"1708596498165.jpg",extension:"jpg",attachSize:"401963",industryId:null,industryName:null,year:null,month:null,dataSource:"1",carbonFootprintId:null},{id:"1777528041979666434",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:44:45",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777528110887886850",title:"upload/20240409104444703/1708596401368.jpg",introduction:"1708596401368.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409104444703/1708596401368.jpg",bucketName:"bucket2",type:"jpg",domainUrl:"bucket2",name:"1708596401368.jpg",originalName:"1708596401368.jpg",extension:"jpg",attachSize:"602592",industryId:null,industryName:null,year:null,month:null,dataSource:"2",carbonFootprintId:null}]},projectApprovalVO:{id:"1777528183331905537",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:45:18",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",projectId:"1777528110787223553",orgName:"12",director:"21",approveDate:"2024-04-07",orgAddress:"123",contactInfo:"17310814246",projectStatus:"YTG",attachList:[{id:"1777529067965145090",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:48:49",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777528183331905537",title:"upload/20240409104849325/1708596498165.jpg",introduction:"1708596498165.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409104849325/1708596498165.jpg",bucketName:"bucket2",type:"jpg",domainUrl:"bucket2",name:"1708596498165.jpg",originalName:"1708596498165.jpg",extension:"jpg",attachSize:"401963",industryId:null,industryName:null,year:null,month:null,dataSource:null,carbonFootprintId:null}]},projectApplyForVO:{id:"1777529253047197697",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:49:33",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",projectId:"1777528110787223553",applyDate:"2024-04-09",projectStatus:"YTG",filingsNumber:"123",attachList:[{id:"1777529367102906369",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:50:01",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777529253047197697",title:"upload/20240409105000646/1708596498165.jpg",introduction:"1708596498165.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409105000646/1708596498165.jpg",bucketName:"bucket2",type:"jpg",domainUrl:"bucket2",name:"1708596498165.jpg",originalName:"1708596498165.jpg",extension:"jpg",attachSize:"401963",industryId:null,industryName:null,year:null,month:null,dataSource:"2",carbonFootprintId:null},{id:"1777529381111881730",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:50:04",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777529253047197697",title:"upload/20240409105003972/1708596401368.jpg",introduction:"1708596401368.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409105003972/1708596401368.jpg",bucketName:"bucket2",type:"jpg",domainUrl:"bucket2",name:"1708596401368.jpg",originalName:"1708596401368.jpg",extension:"jpg",attachSize:"602592",industryId:null,industryName:null,year:null,month:null,dataSource:"1",carbonFootprintId:null}]},projectDevelop:{id:"1777529444571701250",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:50:19",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",projectId:"1777528110787223553",baselineEmission:"123.00",leakageAmount:"123.00",developmentDate:"2024-04-09",projectEmission:"213.00",emissionReduction:"213.00",completionDate:"2024-04-09",projectStatus:"YTG",attachList:[{id:"1777529499072487426",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:50:32",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777529444571701250",title:"upload/20240409105032111/1708596498165.jpg",introduction:"1708596498165.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409105032111/1708596498165.jpg",bucketName:"bucket2",type:"jpg",domainUrl:"bucket2",name:"1708596498165.jpg",originalName:"1708596498165.jpg",extension:"jpg",attachSize:"401963",industryId:null,industryName:null,year:null,month:null,dataSource:"2",carbonFootprintId:null},{id:"1777529511730896897",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:50:35",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777529444571701250",title:"upload/20240409105035123/1708596401368.jpg",introduction:"1708596401368.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409105035123/1708596401368.jpg",bucketName:"bucket2",type:"jpg",domainUrl:"bucket2",name:"1708596401368.jpg",originalName:"1708596401368.jpg",extension:"jpg",attachSize:"602592",industryId:null,industryName:null,year:null,month:null,dataSource:"1",carbonFootprintId:null},{id:"1777529525769232386",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:50:39",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777529444571701250",title:"upload/20240409105038435/1708596255525.jpg",introduction:"1708596255525.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409105038435/1708596255525.jpg",bucketName:"bucket2",type:"jpg",domainUrl:"bucket2",name:"1708596255525.jpg",originalName:"1708596255525.jpg",extension:"jpg",attachSize:"1154213",industryId:null,industryName:null,year:null,month:null,dataSource:"3",carbonFootprintId:null}]},projectCertifiedVO:{id:"1777529617599324162",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:51:00",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",projectId:"1777528110787223553",organizationName:"213",headOfOrganization:"213",verificationDate:"2024-04-09",organizationAddress:"213",contactInformation:"17310182732",projectStatus:"YTG",attachList:[{id:"1777529856796286978",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:51:57",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777529617599324162",title:"upload/20240409105157379/1708596401368.jpg",introduction:"1708596401368.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409105157379/1708596401368.jpg",bucketName:"bucket2",type:"jpg",domainUrl:"bucket2",name:"1708596401368.jpg",originalName:"1708596401368.jpg",extension:"jpg",attachSize:"602592",industryId:null,industryName:null,year:null,month:null,dataSource:null,carbonFootprintId:null}]},projectReductionApplicationVO:null,projectLogout:{id:"1777530031849758721",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:52:39",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",projectId:"1777528110787223553",projectLogout:"自愿注销",logoutDate:"2024-04-09",projectStatus:"DSH",attachList:[{id:"1777531171995803649",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:57:11",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:57:13",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777530031849758721",title:"upload/20240409105710967/1708596498165.jpg",introduction:"1708596498165.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409105710967/1708596498165.jpg",bucketName:"bucket2",type:"jpg",domainUrl:"bucket2",name:"1708596498165.jpg",originalName:"1708596498165.jpg",extension:"jpg",attachSize:"401963",industryId:null,industryName:null,year:null,month:null,dataSource:null,carbonFootprintId:null}]}}],options:[],dialogd:!1,isView:!1,projectApprovalIsView:!1,projectApplicationIsView:!1,projectDevelopmentIsView:!1,approvalProcess:[{id:"1777529617565769730",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:51:00",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:51:00",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777529444571701250",approvalNode:"项目开发",approvalStatus:"YTG",nodeSort:4,approvalDescription:"审核通过,无意见",attachList:null},{id:"1777529536074637314",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:50:41",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:50:41",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777529444571701250",approvalNode:"内部审核",approvalStatus:"DSH",nodeSort:3,approvalDescription:null,attachList:null},{id:"1777529536066248705",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:50:41",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:50:41",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777529444571701250",approvalNode:"项目开发",approvalStatus:"YTJ",nodeSort:2,approvalDescription:null,attachList:null},{id:"1777529536045277186",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:50:41",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:50:41",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777529444571701250",approvalNode:"项目开发",approvalStatus:"DTJ",nodeSort:1,approvalDescription:null,attachList:null}]}},components:{projectDesignForm:l["a"],projectStatus:n["a"],projectApprovalForm:s["a"],projectApplicationForm:c["a"],projectDevelopmentForm:p["a"]},mounted(){},methods:{async init(){this.getList(this.page)},async reasons(e,t){this.dialogVisible=!0},hadleClose(){this.$confirm("是否关闭当前窗口?").then(e=>{this.form={},this.isView=!1,this.dialogd=!1}).catch(e=>{})},handleEdit(e){this.isView=!0,this.projectApprovalIsView=!0,this.projectApplicationIsView=!0,this.projectDevelopmentIsView=!1,this.applicationTitle="编辑项目开发",this.dialogd=!0,this.form=e},handleView(e){this.isView=!0,this.projectApprovalIsView=!0,this.projectApplicationIsView=!0,this.projectDevelopmentIsView=!0,this.applicationTitle="查看项目开发",this.dialogd=!0,this.form=e},handleSubmitTo(e){e.projectDevelop.projectStatus="DSH",e.emissionReductionProjects.projectStatus="DSH",e.emissionReductionProjects.projectStage="项目开发",Object(i["submitEmissionReductionProjects"])(e).then(e=>{200==e.data.code&&(this.$message.success("提交成功"),this.getList())})},async handleSubmit(e){let t=await this.$refs.projectDevelopmentForm.validate();t&&(this.form.projectDevelop=this.$refs.projectDevelopmentForm.projectDevelop,this.form.emissionReductionProjects=this.$refs.projectDevelopmentForm.emissionReductionProjects,this.form.projectDevelop.projectStatus=e,this.form.emissionReductionProjects.projectStatus=e,this.form.projectDevelop.attachA.forEach((e,t)=>{delete e.status,e.dataSource="1"}),this.form.projectDevelop.attachB.forEach((e,t)=>{delete e.status,e.dataSource="2"}),this.form.projectDevelop.attachC.forEach((e,t)=>{delete e.status,e.dataSource="3"}),this.form.projectDevelop.attachList=[...this.form.projectDevelop.attachA,...this.form.projectDevelop.attachB,...this.form.projectDevelop.attachC],delete this.form.projectDevelop.attachA,delete this.form.projectDevelop.attachB,delete this.form.projectDevelop.attachC,Object(i["submitEmissionReductionProjects"])(this.form).then(e=>{this.$message.success("提交成功"),this.getList(),this.dialogd=!1,this.form={}}))},searchReset(e){this.getList(this.page)},searchChange(e,t){this.page.current=1,this.getList(this.page,e),t()},currentChange(e){this.page.current=e,this.getList(this.page)},sizeChange(e){this.page.size=e,this.getList()},refreshChange(){this.getList()},getList(e,t){this.loading=!0;let a={size:this.page.size,current:this.page.current,fieldFlag:"projectDevelop"};Object(i["getEmissionReductionProjectsList"])(Object.assign(a,t)).then(e=>{if(console.log(e),200==e.data.code)if(e.data.data){if(e.data.data.records){const t=e.data.data.records;this.page.total=e.data.data.total,this.data=t}}else this.data=[];this.loading=!1})}}},u=d,m=(a("500c"),a("1805")),h=Object(m["a"])(u,o,r,!1,null,"1e3a1104",null);t["default"]=h.exports},"736e":function(e,t,a){"use strict";var o=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"title"},[e._v("减排量核算")]),t("div",{staticClass:"line"}),t("el-form",{ref:"projectDevelop",attrs:{rules:e.rules,model:e.projectDevelop,"label-width":"180px",disabled:e.isView}},[t("el-row",{staticStyle:{"margin-top":"10px","padding-right":"20px"},attrs:{gutter:10}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"基准线排放量:",prop:"baselineEmission"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入基准线排放量"},model:{value:e.projectDevelop.baselineEmission,callback:function(t){e.$set(e.projectDevelop,"baselineEmission",t)},expression:"projectDevelop.baselineEmission"}},[t("template",{slot:"append"},[e._v("tCo2")])],2)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"项目排放量:",prop:"projectEmission"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入项目排放量"},model:{value:e.projectDevelop.projectEmission,callback:function(t){e.$set(e.projectDevelop,"projectEmission",t)},expression:"projectDevelop.projectEmission"}},[t("template",{slot:"append"},[e._v("tCo2")])],2)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"泄漏量:",prop:"leakageAmount"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入泄漏量"},model:{value:e.projectDevelop.leakageAmount,callback:function(t){e.$set(e.projectDevelop,"leakageAmount",t)},expression:"projectDevelop.leakageAmount"}},[t("template",{slot:"append"},[e._v("tCo2")])],2)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"减排量:",prop:"emissionReduction"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入减排量"},model:{value:e.projectDevelop.emissionReduction,callback:function(t){e.$set(e.projectDevelop,"emissionReduction",t)},expression:"projectDevelop.emissionReduction"}},[t("template",{slot:"append"},[e._v("tCo2")])],2)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"项目开发日期:",prop:"developmentDate"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,clearable:"",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date",placeholder:"请输入项目开发日期"},model:{value:e.projectDevelop.developmentDate,callback:function(t){e.$set(e.projectDevelop,"developmentDate",t)},expression:"projectDevelop.developmentDate"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"项目完成日期:",prop:"completionDate"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,clearable:"",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date",placeholder:"请输入项目完成日期"},model:{value:e.projectDevelop.completionDate,callback:function(t){e.$set(e.projectDevelop,"completionDate",t)},expression:"projectDevelop.completionDate"}})],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"减排量核算报告:",prop:"attachA"}},[t("vz-upload",{ref:"upload",attrs:{files:e.projectDevelop.attachA,isViewFile:e.isView},on:{change:e.changeFileHc,removeFile:e.removeFileFnHa},model:{value:e.projectDevelop.attachA,callback:function(t){e.$set(e.projectDevelop,"attachA",t)},expression:"projectDevelop.attachA"}})],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"监测报告:",prop:"attachB"}},[t("vz-upload",{ref:"upload",attrs:{files:e.projectDevelop.attachB,isViewFile:e.isView},on:{change:e.changeFileHc,removeFile:e.removeFileFnHb},model:{value:e.projectDevelop.attachB,callback:function(t){e.$set(e.projectDevelop,"attachB",t)},expression:"projectDevelop.attachB"}})],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"其他文件:",prop:"attachC"}},[t("vz-upload",{ref:"upload",attrs:{files:e.projectDevelop.attachC,isViewFile:e.isView},on:{change:e.changeFile,removeFile:e.removeFileFnc},model:{value:e.projectDevelop.attachC,callback:function(t){e.$set(e.projectDevelop,"attachC",t)},expression:"projectDevelop.attachC"}})],1)],1)],1)],1)],1)},r=[],i=(a("fcd3"),a("af95")),l=a("a982"),s=(a("6fbe"),a("f910")),c=a("0e0b"),p={data(){return{projectDevelop:{applyDate:"",attachA:[],attachB:[],attachC:[]},emissionReductionProjects:{projectName:"",industry:"",methodology:"",methodologyVersion:"",projectStage:"项目开发"},rules:s["e"],pickerOptions:{disabledDate(e){return e.getTime()>Date.now()}}}},props:{form:{type:Object,default:()=>{}},isView:{type:Boolean,require:!0,default:!1}},components:{vzUpload:i["a"]},mounted(){"{}"!==JSON.stringify(this.form)&&(this.projectDevelop=Object(c["b"])(this.form.projectDevelop),this.projectDevelop.attachA=[],this.projectDevelop.attachB=[],this.projectDevelop.attachC=[],this.form.projectDevelop.attachList&&this.form.projectDevelop.attachList.forEach(e=>{"1"===e.dataSource?this.projectDevelop.attachA.push(e):"2"===e.dataSource?this.projectDevelop.attachB.push(e):this.projectDevelop.attachC.push(e)}),this.emissionReductionProjects=this.form.emissionReductionProjects,this.emissionReductionProjects.projectStage="项目开发")},methods:{async validate(){try{return await this.$refs["projectDevelop"].validate()}catch(e){return!1}},changeFile(e){},removeFileFnHa(e){let t=e.id;Object(l["removeFile"])(t).then(e=>{this.projectDevelop.attachA.forEach((e,a)=>{e.id==t&&this.projectDevelop.attachA.splice(a,1)})})},removeFileFnHb(e){let t=e.id;Object(l["removeFile"])(t).then(e=>{this.projectDevelop.attachB.forEach((e,a)=>{e.id==t&&this.projectDevelop.attachB.splice(a,1)})})},removeFileFnc(e){let t=e.id;Object(l["removeFile"])(t).then(e=>{this.projectDevelop.attachC.forEach((e,a)=>{e.id==t&&this.projectDevelop.attachC.splice(a,1)})})}}},n=p,d=(a("5d9d"),a("1805")),u=Object(d["a"])(n,o,r,!1,null,"5923d52f",null);t["a"]=u.exports},8039:function(e,t,a){},b55a:function(e,t,a){"use strict";a("bf86")},bf86:function(e,t,a){},d6ef:function(e,t,a){"use strict";a("8039")},f0b6:function(e,t,a){},f7a1:function(e,t,a){"use strict";var o=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"title"},[e._v("项目申请文件")]),t("div",{staticClass:"line"}),t("el-form",{ref:"projectApplyForVO",attrs:{rules:e.rules,model:e.projectApplyForVO,"label-width":"180px",disabled:e.isView}},[t("el-row",{staticStyle:{"margin-top":"10px","padding-right":"20px"},attrs:{gutter:10}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"备案编号:",prop:"filingsNumber"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入备案编号"},model:{value:e.projectApplyForVO.filingsNumber,callback:function(t){e.$set(e.projectApplyForVO,"filingsNumber",t)},expression:"projectApplyForVO.filingsNumber"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"申请日期:",prop:"applyDate"}},[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,clearable:"",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date",placeholder:"请输入申请日期"},model:{value:e.projectApplyForVO.applyDate,callback:function(t){e.$set(e.projectApplyForVO,"applyDate",t)},expression:"projectApplyForVO.applyDate"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"项目申请表:",prop:"attachA"}},[t("vz-upload",{ref:"upload",attrs:{files:e.projectApplyForVO.attachA,isViewFile:e.isView},on:{change:e.changeFile,removeFile:e.removeFileFn},model:{value:e.projectApplyForVO.attachA,callback:function(t){e.$set(e.projectApplyForVO,"attachA",t)},expression:"projectApplyForVO.attachA"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"承诺书:",prop:"attachB"}},[t("vz-upload",{ref:"upload",attrs:{files:e.projectApplyForVO.attachB,isViewFile:e.isView},on:{change:e.changeFileHc,removeFile:e.removeFileFnHc},model:{value:e.projectApplyForVO.attachB,callback:function(t){e.$set(e.projectApplyForVO,"attachB",t)},expression:"projectApplyForVO.attachB"}})],1)],1)],1)],1)],1)},r=[],i=(a("fcd3"),a("af95")),l=a("a982"),s=a("0e0b"),c=a("f910"),p={data(){return{projectApplyForVO:{applyDate:"",attachA:[],attachB:[]},emissionReductionProjects:{projectName:"",industry:"",methodology:"",methodologyVersion:"",projectStage:"项目申请"},rules:c["b"],pickerOptions:{disabledDate(e){return e.getTime()>Date.now()}}}},props:{form:{type:Object,default:()=>{}},isView:{type:Boolean,require:!0,default:!1}},components:{vzUpload:i["a"]},mounted(){"{}"!==JSON.stringify(this.form)&&(this.projectApplyForVO=Object(s["b"])(this.form.projectApplyForVO),this.emissionReductionProjects=this.form.emissionReductionProjects,this.emissionReductionProjects.projectStage="项目申请",this.projectApplyForVO.attachA=[],this.projectApplyForVO.attachB=[],this.projectApplyForVO.attachList&&this.projectApplyForVO.attachList.forEach(e=>{"1"===e.dataSource?this.projectApplyForVO.attachA.push(e):this.projectApplyForVO.attachB.push(e)}))},methods:{async validate(){try{return await this.$refs["projectApplyForVO"].validate()}catch(e){return!1}},changeFile(e){},removeFileFn(e){let t=e.id;Object(l["removeFile"])(t).then(e=>{this.projectApplyForVO.attachA.forEach((e,a)=>{e.id==t&&this.projectApplyForVO.attachA.splice(a,1)})})},removeFileFnHc(e){let t=e.id;Object(l["removeFile"])(t).then(e=>{this.projectApplyForVO.attachB.forEach((e,a)=>{e.id==t&&this.projectApplyForVO.attachB.splice(a,1)})})}}},n=p,d=(a("d6ef"),a("1805")),u=Object(d["a"])(n,o,r,!1,null,"038b4a09",null);t["a"]=u.exports}}]);