(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-403a7406"],{"2daf":function(t,e,a){},4858:function(t,e,a){"use strict";var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("el-timeline",t._l(t.data,(function(a,r){return e("el-timeline-item",{key:r,attrs:{timestamp:a.createTime,size:a.size}},[e("div",[e("div",{staticClass:"activity"},[e("h3",{staticClass:"approvalNode"},[t._v(t._s(a.approvalNode))]),e("div",{class:[a.className,"static-class"]},[t._v(" "+t._s(a.value)+" ")])]),a.text?e("div",{class:[a.className,"text-class"]},[t._v(" "+t._s(a.approvalDescription)+" ")]):t._e()])])})),1)],1)},o=[],i={data(){return{}},props:{data:{default:()=>[],required:!0}},watch:{data(t,e){this.data.forEach(t=>{switch(t.text=t.approvalDescription,t.approvalStatus){case"WTB":t.value="未填报",t.className="wtbstatus";break;case"DTJ":t.value="待提交",t.className="dtjstatus";break;case"YTJ":t.value="已提交",t.className="ytjstatus";break;case"DSH":t.value="待审核",t.className="dshstatus";break;case"YBH":t.value="已驳回",t.className="ybhstatus";break;case"YTG":t.value="已通过",t.className="ytgstatus";break}})},immediate:!0},created(){this.data.forEach(t=>{switch(t.text=t.approvalDescription,t.approvalStatus){case"WTB":t.value="未填报",t.className="wtbstatus";break;case"DTJ":t.value="待提交",t.className="dtjstatus";break;case"YTJ":t.value="已提交",t.className="ytjstatus";break;case"DSH":t.value="待审核",t.className="dshstatus";break;case"YBH":t.value="已驳回",t.className="ybhstatus";break;case"YTG":t.value="已通过",t.className="ytgstatus";break}})}},s=i,l=(a("b55a"),a("1805")),p=Object(l["a"])(s,r,o,!1,null,"031b0c00",null);e["a"]=p.exports},8039:function(t,e,a){},"923a":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"box"},[e("el-card",{staticClass:"box-main"},[e("div",[e("avue-crud",{ref:"crud",attrs:{option:t.option,data:t.data,page:t.page},on:{"update:page":function(e){t.page=e},"search-change":t.searchChange,"search-reset":t.searchReset,"current-change":t.currentChange,"size-change":t.sizeChange,"refresh-change":t.refreshChange},scopedSlots:t._u([{key:"approveDate",fn:function({row:e}){return e.projectApplyForVO.approveDate?[t._v(" "+t._s(t.$dayjs(e.projectApplyForVO.approveDate).format("YYYY-MM-DD"))+" ")]:void 0}},{key:"projectStatus",fn:function({row:a}){return["DSH"==a.projectApplyForVO.projectStatus?e("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(e){return t.reasons(a,"YBH")}}},[t._v("待审核")]):t._e(),"YTG"==a.projectApplyForVO.projectStatus?e("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(e){return t.reasons(a,"YTG")}}},[t._v("已通过")]):t._e(),"YBH"==a.projectApplyForVO.projectStatus?e("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(e){return t.reasons(a,"YBH")}}},[t._v("已驳回")]):t._e(),"DTJ"==a.projectApplyForVO.projectStatus?e("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(e){return t.reasons(a,"YBH")}}},[t._v("待提交")]):t._e(),"WTB"==a.projectApplyForVO.projectStatus?e("el-tag",{staticStyle:{color:"#c7c7c7",border:"1px solid rgba(199, 199, 199, 0.2)"},attrs:{color:"rgba(199, 199, 199, 0.2)"}},[t._v("未填报")]):t._e()]}},{key:"menu",fn:function({row:a}){return[e("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-view"},on:{click:function(e){return t.handleView(a)}}},[t._v(" 查 看 ")]),e("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-edit",disabled:"DSH"==a.projectApplyForVO.projectStatus||"YTG"==a.projectApplyForVO.projectStatus},on:{click:function(e){return t.handleEdit(a)}}},[t._v(" 编 辑 ")]),e("el-button",{attrs:{type:"text",size:"small",disabled:"DSH"==a.projectApplyForVO.projectStatus||"YTG"==a.projectApplyForVO.projectStatus||"WTB"==a.projectApplyForVO.projectStatus,icon:"el-icon-check"},on:{click:function(e){return t.handleSubmitTo(a)}}},[t._v(" 提 交 ")])]}}],null,!0)})],1)]),e("el-drawer",{staticClass:"el-dialog__wrapper avue-dialog avue-crud__dialog",attrs:{title:t.applicationTitle,visible:t.dialogd,size:"80%","close-on-press-escape":!1,"destroy-on-close":"","append-to-body":"",wrapperClosable:!1,"before-close":t.hadleClose},on:{"update:visible":function(e){t.dialogd=e}}},[e("projectDesignForm",{ref:"projectDesign",attrs:{form:t.form,isView:t.isView}}),e("projectApprovalForm",{ref:"projectApprovalForm",attrs:{form:t.form,isView:t.projectApprovalIsView}}),e("projectApplicationForm",{ref:"projectApplicationForm",attrs:{form:t.form,isView:t.projectApplicationIsView}}),e("div",{staticClass:"avue-dialog__footer"},[0==t.projectApplicationIsView?e("el-button",{attrs:{icon:"el-icon-circle-plus-outline",type:"primary"},on:{click:function(e){return t.handleSubmit("DSH")}}},[t._v("保存并提交")]):t._e(),0==t.projectApplicationIsView?e("el-button",{attrs:{icon:"el-icon-circle-plus-outline",type:"primary"},on:{click:function(e){return t.handleSubmit("DTJ")}}},[t._v("保 存")]):t._e(),e("el-button",{attrs:{icon:"el-icon-circle-close"},on:{click:t.hadleClose}},[t._v("取 消")])],1)],1),e("el-dialog",{attrs:{title:"审核状态",visible:t.dialogVisible,width:"25%",modal:!1},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("projectStatus",{attrs:{data:t.approvalProcess}}),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")])],1)],1)],1)},o=[],i=a("6fbe"),s=a("a481"),l=a("0527"),p=a("f7a1"),c=a("4858"),n={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:"filingsNumber",bind:"projectApplyForVO.filingsNumber",width:180},{label:"申请日期",prop:"applyDate",bind:"projectApplyForVO.applyDate",width:180},{label:"状态",prop:"projectStatus",bind:"projectApplyForVO.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,approvalProcess:[{id:"1777529444538146818",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:50:19",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:50:19",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777529253047197697",approvalNode:"项目申请",approvalStatus:"YTG",nodeSort:4,approvalDescription:"审核通过,无意见",attachList:null},{id:"1777529387504001026",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:50:06",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:50:06",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777529253047197697",approvalNode:"内部审核",approvalStatus:"DSH",nodeSort:3,approvalDescription:null,attachList:null},{id:"1777529387495612417",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:50:06",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:50:06",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777529253047197697",approvalNode:"项目申请",approvalStatus:"YTJ",nodeSort:2,approvalDescription:null,attachList:null},{id:"1777529387478835202",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:50:06",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:50:06",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777529253047197697",approvalNode:"项目申请",approvalStatus:"DTJ",nodeSort:1,approvalDescription:null,attachList:null}]}},components:{projectDesignForm:s["a"],projectStatus:c["a"],projectApprovalForm:l["a"],projectApplicationForm:p["a"]},mounted(){},methods:{async init(){this.getList(this.page)},async reasons(t,e){this.dialogVisible=!0},hadleClose(){this.$confirm("是否关闭当前窗口?").then(t=>{this.form={},this.isView=!1,this.dialogd=!1}).catch(t=>{})},handleEdit(t){this.isView=!0,this.projectApprovalIsView=!0,this.projectApplicationIsView=!1,this.applicationTitle="编辑项目申请",this.dialogd=!0,this.form=t},handleView(t){this.isView=!0,this.projectApprovalIsView=!0,this.projectApplicationIsView=!0,this.applicationTitle="查看项目申请",this.dialogd=!0,this.form=t},handleSubmitTo(t){t.projectApplyForVO.projectStatus="DSH",t.emissionReductionProjects.projectStatus="DSH",t.emissionReductionProjects.projectStage="项目申请",Object(i["submitEmissionReductionProjects"])(t).then(t=>{200==t.data.code&&(this.$message.success("提交成功"),this.getList())})},async handleSubmit(t){let e=await this.$refs.projectApplicationForm.validate();e&&(this.form.projectApplyForVO=this.$refs.projectApplicationForm.projectApplyForVO,this.form.emissionReductionProjects=this.$refs.projectApplicationForm.emissionReductionProjects,this.form.projectApplyForVO.projectStatus=t,this.form.emissionReductionProjects.projectStatus=t,this.form.projectApplyForVO.attachA.forEach((t,e)=>{delete t.status,t.dataSource="1"}),this.form.projectApplyForVO.attachB.forEach((t,e)=>{delete t.status,t.dataSource="2"}),this.form.projectApplyForVO.attachList=[...this.form.projectApplyForVO.attachA,...this.form.projectApplyForVO.attachB],delete this.form.projectApplyForVO.attachA,delete this.form.projectApplyForVO.attachB,Object(i["submitEmissionReductionProjects"])(this.form).then(t=>{this.$message.success("提交成功"),this.getList(),this.dialogd=!1,this.form={}}))},searchReset(t){this.getList(this.page)},searchChange(t,e){this.page.current=1,this.getList(this.page,t),e()},currentChange(t){this.page.current=t,this.getList(this.page)},sizeChange(t){this.page.size=t,this.getList()},refreshChange(){this.getList()},getList(t,e){this.loading=!0;let a={size:this.page.size,current:this.page.current,fieldFlag:"projectApplyForVO"};Object(i["getEmissionReductionProjectsList"])(Object.assign(a,e)).then(t=>{if(console.log(t),200==t.data.code)if(t.data.data){if(t.data.data.records){const e=t.data.data.records;this.page.total=t.data.data.total,this.data=e}}else this.data=[];this.loading=!1})}}},u=n,d=(a("acba"),a("1805")),m=Object(d["a"])(u,r,o,!1,null,"76863567",null);e["default"]=m.exports},acba:function(t,e,a){"use strict";a("2daf")},b55a:function(t,e,a){"use strict";a("bf86")},bf86:function(t,e,a){},d6ef:function(t,e,a){"use strict";a("8039")},f7a1:function(t,e,a){"use strict";var r=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"title"},[t._v("项目申请文件")]),e("div",{staticClass:"line"}),e("el-form",{ref:"projectApplyForVO",attrs:{rules:t.rules,model:t.projectApplyForVO,"label-width":"180px",disabled:t.isView}},[e("el-row",{staticStyle:{"margin-top":"10px","padding-right":"20px"},attrs:{gutter:10}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"备案编号:",prop:"filingsNumber"}},[e("el-input",{attrs:{clearable:"",placeholder:"请输入备案编号"},model:{value:t.projectApplyForVO.filingsNumber,callback:function(e){t.$set(t.projectApplyForVO,"filingsNumber",e)},expression:"projectApplyForVO.filingsNumber"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"申请日期:",prop:"applyDate"}},[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":t.pickerOptions,clearable:"",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date",placeholder:"请输入申请日期"},model:{value:t.projectApplyForVO.applyDate,callback:function(e){t.$set(t.projectApplyForVO,"applyDate",e)},expression:"projectApplyForVO.applyDate"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"项目申请表:",prop:"attachA"}},[e("vz-upload",{ref:"upload",attrs:{files:t.projectApplyForVO.attachA,isViewFile:t.isView},on:{change:t.changeFile,removeFile:t.removeFileFn},model:{value:t.projectApplyForVO.attachA,callback:function(e){t.$set(t.projectApplyForVO,"attachA",e)},expression:"projectApplyForVO.attachA"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"承诺书:",prop:"attachB"}},[e("vz-upload",{ref:"upload",attrs:{files:t.projectApplyForVO.attachB,isViewFile:t.isView},on:{change:t.changeFileHc,removeFile:t.removeFileFnHc},model:{value:t.projectApplyForVO.attachB,callback:function(e){t.$set(t.projectApplyForVO,"attachB",e)},expression:"projectApplyForVO.attachB"}})],1)],1)],1)],1)],1)},o=[],i=(a("fcd3"),a("af95")),s=a("a982"),l=a("0e0b"),p=a("f910"),c={data(){return{projectApplyForVO:{applyDate:"",attachA:[],attachB:[]},emissionReductionProjects:{projectName:"",industry:"",methodology:"",methodologyVersion:"",projectStage:"项目申请"},rules:p["b"],pickerOptions:{disabledDate(t){return t.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(l["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(t=>{"1"===t.dataSource?this.projectApplyForVO.attachA.push(t):this.projectApplyForVO.attachB.push(t)}))},methods:{async validate(){try{return await this.$refs["projectApplyForVO"].validate()}catch(t){return!1}},changeFile(t){},removeFileFn(t){let e=t.id;Object(s["removeFile"])(e).then(t=>{this.projectApplyForVO.attachA.forEach((t,a)=>{t.id==e&&this.projectApplyForVO.attachA.splice(a,1)})})},removeFileFnHc(t){let e=t.id;Object(s["removeFile"])(e).then(t=>{this.projectApplyForVO.attachB.forEach((t,a)=>{t.id==e&&this.projectApplyForVO.attachB.splice(a,1)})})}}},n=c,u=(a("d6ef"),a("1805")),d=Object(u["a"])(n,r,o,!1,null,"038b4a09",null);e["a"]=d.exports}}]);