(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0db47728"],{"08ff":function(e,t,r){},"307f":function(e,t,r){"use strict";r.r(t);var a=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:"projectDesignFileCompletionDate",fn:function({row:t}){return[e._v(" "+e._s(e.$dayjs(t.projectDesign.projectDesignFileCompletionDate).format("YYYY-MM-DD"))+" ")]}},{key:"projectStatus",fn:function({row:r}){return["DSH"==r.projectDesign.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(r,"YBH")}}},[e._v("待审核")]):e._e(),"YTG"==r.projectDesign.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(r,"YTG")}}},[e._v("已通过")]):e._e(),"YBH"==r.projectDesign.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(r,"YBH")}}},[e._v("已驳回")]):e._e(),"DTJ"==r.projectDesign.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(r,"YBH")}}},[e._v("待提交")]):e._e(),"WTB"==r.projectDesign.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:r}){return[t("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-view"},on:{click:function(t){return e.handleView(r)}}},[e._v(" 查 看 ")]),t("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-edit",disabled:"DSH"==r.projectDesign.projectStatus||"YTG"==r.projectDesign.projectStatus},on:{click:function(t){return e.handleEdit(r)}}},[e._v(" 编 辑 ")]),t("el-button",{attrs:{type:"text",size:"small",disabled:"DSH"==r.projectDesign.projectStatus||"YTG"==r.projectDesign.projectStatus||"WTB"==r.projectDesign.projectStatus,icon:"el-icon-check"},on:{click:function(t){return e.handleSubmitTo(r)}}},[e._v(" 提 交 ")])]}}])},[t("template",{slot:"menuLeft"},[t("div",[t("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v(" 新 增 ")]),t("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-upload2"},on:{click:e.exportAll}},[e._v(" 设计模板 ")])],1)])],2)],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("div",{staticClass:"avue-dialog__footer"},[0==e.isView?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.isView?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:e.dialogVisibleFn}},[e._v("取 消")])],1)],1)],1)},i=[],s=(r("aada"),r("1287"),r("2fb4"),r("6fbe")),o=(r("2f3b"),r("0e0b"),r("a481")),n=r("4858"),l={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",search:!0,type:"select",width:220},{label:"方法学",prop:"methodology",bind:"emissionReductionProjects.methodology",width:180},{label:"设计文件版本",prop:"projectDesignFileVersion",bind:"projectDesign.projectDesignFileVersion",width:180},{label:"预计温室气体减排量",prop:"estimatedAnnualGreenhouseGasEmissionReduction",bind:"projectDesign.estimatedAnnualGreenhouseGasEmissionReduction",width:180},{label:"项目设计文件完成日期",prop:"projectDesignFileCompletionDate",bind:"projectDesign.projectDesignFileCompletionDate",type:"date",valueFormat:"yyyy-MM-dd",value:"yy-MM-dd",width:180},{label:"状态",prop:"projectStatus",bind:"projectDesign.projectStatus",slot:!0,width:180}]},data:[{emissionReductionProjects:{id:"1777529931664613378",createUser:"1762882390462664706",createDept:"1762872149339639810",createTime:"2024-04-09 10:52:15",updateUser:"1762882141362950145",updateTime:"2024-04-09 11:21:51",status:1,isDeleted:0,tenantId:"416380",projectName:"10",industry:"能源分配",methodology:"并网光热发电",methodologyVersion:"CCER—01—001—V01",projectStatus:"DTJ",projectStage:null,fieldFlag:null,attachList:null,auditStatus:null},projectDesign:{id:"1777529931677196289",createUser:"1762882390462664706",createDept:"1762872149339639810",createTime:"2024-04-09 10:52:15",updateUser:"1762882141362950145",updateTime:"2024-04-09 11:21:51",status:1,isDeleted:0,tenantId:"416380",projectId:"1777529931664613378",projectDesignFileVersion:"10",projectDesignFileCompletionDate:"2024-04-08",startTimeOfInclusionPeriod:"2024-04-09",endTimeOfInclusionPeriod:null,estimatedAnnualGreenhouseGasEmissionReduction:"10",projectOwner:"10",registeredAddress:"10",projectOwnerLegalRepresentative:"10",projectProprietor:"10",projectResponsibleUnit:"10",projectManager:"10",contactInformation:"13545454515",contactAddress:"10",email:"11@163.com",projectStatus:"YTG",attachList:[{id:"1777529744590266370",createUser:"1762882390462664706",createDept:"1762872149339639810",createTime:"2024-04-09 10:51:31",updateUser:"1762882141362950145",updateTime:"2024-04-09 11:21:51",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777529931677196289",title:"upload/20240409105130662/数据录入@2x.png",introduction:"数据录入@2x.png",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409105130662/数据录入@2x.png",bucketName:"bucket2",type:"png",domainUrl:"bucket2",name:"数据录入@2x.png",originalName:"数据录入@2x.png",extension:"png",attachSize:"15112",industryId:null,industryName:null,year:null,month:null,dataSource:"1",carbonFootprintId:null},{id:"1777529782313836545",createUser:"1762882390462664706",createDept:"1762872149339639810",createTime:"2024-04-09 10:51:40",updateUser:"1762882141362950145",updateTime:"2024-04-09 11:21:51",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777529931677196289",title:"upload/20240409105139655/数据录入@2x.png",introduction:"数据录入@2x.png",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409105139655/数据录入@2x.png",bucketName:"bucket2",type:"png",domainUrl:"bucket2",name:"数据录入@2x.png",originalName:"数据录入@2x.png",extension:"png",attachSize:"15112",industryId:null,industryName:null,year:null,month:null,dataSource:"2",carbonFootprintId:null}]},projectApprovalVO:{id:"1777529974652035074",createUser:"1762882390462664706",createDept:"1762872149339639810",createTime:"2024-04-09 10:52:26",updateUser:"1762882141362950145",updateTime:"2024-04-09 11:21:51",status:1,isDeleted:0,tenantId:"416380",projectId:"1777529931664613378",orgName:"121",director:"121",approveDate:"2024-04-09",orgAddress:"121",contactInfo:"15154115151",projectStatus:"DTJ",attachList:[{id:"1777537370136907777",createUser:"1762882141362950145",createDept:"1762871099350159361",createTime:"2024-04-09 11:21:49",updateUser:"1762882141362950145",updateTime:"2024-04-09 11:21:51",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777529974652035074",title:"upload/20240409112148730/工业增加产值@2x.png",introduction:"工业增加产值@2x.png",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409112148730/工业增加产值@2x.png",bucketName:"bucket2",type:"png",domainUrl:"bucket2",name:"工业增加产值@2x.png",originalName:"工业增加产值@2x.png",extension:"png",attachSize:"7648",industryId:null,industryName:null,year:null,month:null,dataSource:null,carbonFootprintId:null}]},projectApplyForVO:null,projectDevelop:null,projectCertifiedVO:null,projectReductionApplicationVO:null,projectLogout:null}],options:[],dialogd:!1,isView:!1,approvalProcess:[{id:"1777529974618480642",createUser:"1762882390462664706",createDept:"1762872149339639810",createTime:"2024-04-09 10:52:26",updateUser:"1762882390462664706",updateTime:"2024-04-09 10:52:26",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777529931677196289",approvalNode:"项目设计",approvalStatus:"YTG",nodeSort:4,approvalDescription:"审核通过,无意见",attachList:null},{id:"1777529945237381122",createUser:"1762882390462664706",createDept:"1762872149339639810",createTime:"2024-04-09 10:52:19",updateUser:"1762882390462664706",updateTime:"2024-04-09 10:52:19",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777529931677196289",approvalNode:"内部审核",approvalStatus:"DSH",nodeSort:3,approvalDescription:null,attachList:null},{id:"1777529945224798210",createUser:"1762882390462664706",createDept:"1762872149339639810",createTime:"2024-04-09 10:52:19",updateUser:"1762882390462664706",updateTime:"2024-04-09 10:52:19",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777529931677196289",approvalNode:"项目设计",approvalStatus:"YTJ",nodeSort:2,approvalDescription:null,attachList:null},{id:"1777529931744305153",createUser:"1762882390462664706",createDept:"1762872149339639810",createTime:"2024-04-09 10:52:15",updateUser:"1762882390462664706",updateTime:"2024-04-09 10:52:15",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777529931677196289",approvalNode:"项目设计",approvalStatus:"DTJ",nodeSort:0,approvalDescription:null,attachList:null}]}},components:{projectDesignForm:o["a"],projectStatus:n["a"]},mounted(){},methods:{async init(){this.getList(this.page)},dialogVisibleFn(){this.dialogVisible=!1,this.approvalProcess=[]},async reasons(e,t){this.dialogVisible=!0},hadleClose(){this.$confirm("是否关闭当前窗口?").then(e=>{this.form={},this.isView=!1,this.dialogd=!1}).catch(e=>{})},handleAdd(){this.applicationTitle="新增项目设计",this.dialogd=!0},handleEdit(e){this.applicationTitle="编辑项目设计",this.dialogd=!0,this.form=e},handleView(e){this.applicationTitle="查看项目设计",this.isView=!0,this.dialogd=!0,this.form=e},handleSubmitTo(e){e.projectDesign.projectStatus="DSH",e.emissionReductionProjects.projectStatus="DSH",e.emissionReductionProjects.projectStage="项目设计",Object(s["submitEmissionReductionProjects"])(e).then(e=>{200==e.data.code&&(this.$message.success("提交成功"),this.getList())})},async handleSubmit(e){let t=await this.$refs.projectDesign.validate(),r=await this.$refs.projectDesign.validateEmissionReductionProjects();t&&r&&(this.form.projectDesign=this.$refs.projectDesign.projectDesign,this.form.emissionReductionProjects=this.$refs.projectDesign.emissionReductionProjects,this.form.projectDesign.projectStatus=e,this.form.emissionReductionProjects.projectStatus=e,this.form.projectDesign.attachA.forEach((e,t)=>{delete e.status,e.dataSource="1"}),this.form.projectDesign.attachB.forEach((e,t)=>{delete e.status,e.dataSource="2"}),this.form.projectDesign.attachList=[...this.form.projectDesign.attachA,...this.form.projectDesign.attachB],delete this.form.projectDesign.attachA,delete this.form.projectDesign.attachB,Object(s["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()},exportAll(){if(this.selectionList.length>0){const e=this.$loading({lock:!0,text:"正在导出文件,请稍等。",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});api_Export(this.selectionList).then(t=>{e.close();const r=t.data,a=new Blob([r],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),i="交易申请文件.xlsx";if("download"in document.createElement("a")){const e=document.createElement("a");e.download=i,e.style.display="none",e.href=URL.createObjectURL(a),document.body.appendChild(e),e.click(),URL.revokeObjectURL(e.href),document.body.removeChild(e)}else navigator.msSaveBlob(a,i)})}else this.$message.error("请选择导出的数据")},getList(e,t){this.loading=!0;let r={size:this.page.size,current:this.page.current,fieldFlag:"projectDesign"};Object(s["getEmissionReductionProjectsList"])(Object.assign(r,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})}}},c=l,d=(r("6f1c"),r("1805")),p=Object(d["a"])(c,a,i,!1,null,"2f13b366",null);t["default"]=p.exports},4858:function(e,t,r){"use strict";var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"block"},[t("el-timeline",e._l(e.data,(function(r,a){return t("el-timeline-item",{key:a,attrs:{timestamp:r.createTime,size:r.size}},[t("div",[t("div",{staticClass:"activity"},[t("h3",{staticClass:"approvalNode"},[e._v(e._s(r.approvalNode))]),t("div",{class:[r.className,"static-class"]},[e._v(" "+e._s(r.value)+" ")])]),r.text?t("div",{class:[r.className,"text-class"]},[e._v(" "+e._s(r.approvalDescription)+" ")]):e._e()])])})),1)],1)},i=[],s={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}})}},o=s,n=(r("b55a"),r("1805")),l=Object(n["a"])(o,a,i,!1,null,"031b0c00",null);t["a"]=l.exports},"6f1c":function(e,t,r){"use strict";r("c809")},"7b65":function(e,t,r){"use strict";r("08ff")},a481:function(e,t,r){"use strict";var a=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:"emissionReductionProjects",attrs:{rules:e.emissionReductionProjectsRules,model:e.emissionReductionProjects,"label-width":"200px",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:"projectName"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入项目名称"},model:{value:e.emissionReductionProjects.projectName,callback:function(t){e.$set(e.emissionReductionProjects,"projectName",t)},expression:"emissionReductionProjects.projectName"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"项目所属行业领域:",prop:"industry"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请选择所属行业"},model:{value:e.emissionReductionProjects.industry,callback:function(t){e.$set(e.emissionReductionProjects,"industry",t)},expression:"emissionReductionProjects.industry"}},e._l(e.industryOptions,(function(e){return t("el-option",{key:e.dictKey,attrs:{label:e.dictValue,value:e.dictValue}})})),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"所选择的方法学:",prop:"methodology"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请选择交易类型"},on:{change:e.changeMenthodology},model:{value:e.emissionReductionProjects.methodology,callback:function(t){e.$set(e.emissionReductionProjects,"methodology",t)},expression:"emissionReductionProjects.methodology"}},e._l(e.menthodology,(function(e){return t("el-option",{key:e.id,attrs:{label:e.methodologyName,value:e.methodologyName}})})),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"方法学版本:",prop:"methodologyVersion"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入方法学版本"},model:{value:e.emissionReductionProjects.methodologyVersion,callback:function(t){e.$set(e.emissionReductionProjects,"methodologyVersion",t)},expression:"emissionReductionProjects.methodologyVersion"}})],1)],1)],1)],1),t("el-form",{ref:"projectDesign",attrs:{rules:e.rules,model:e.projectDesign,"label-width":"200px",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:"projectDesignFileVersion"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入项目设计文件版本"},model:{value:e.projectDesign.projectDesignFileVersion,callback:function(t){e.$set(e.projectDesign,"projectDesignFileVersion",t)},expression:"projectDesign.projectDesignFileVersion"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"项目设计文件完成日期:",prop:"projectDesignFileCompletionDate"}},[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.projectDesign.projectDesignFileCompletionDate,callback:function(t){e.$set(e.projectDesign,"projectDesignFileCompletionDate",t)},expression:"projectDesign.projectDesignFileCompletionDate"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"计入期起止时间:",prop:"startTimeOfInclusionPeriod"}},[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.projectDesign.startTimeOfInclusionPeriod,callback:function(t){e.$set(e.projectDesign,"startTimeOfInclusionPeriod",t)},expression:"projectDesign.startTimeOfInclusionPeriod"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"预计的温室气体年均减排量:",prop:"estimatedAnnualGreenhouseGasEmissionReduction"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入减排量"},model:{value:e.projectDesign.estimatedAnnualGreenhouseGasEmissionReduction,callback:function(t){e.$set(e.projectDesign,"estimatedAnnualGreenhouseGasEmissionReduction",t)},expression:"\n projectDesign.estimatedAnnualGreenhouseGasEmissionReduction\n "}},[t("template",{slot:"append"},[e._v("tCo2")])],2)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"项目设计文件:",prop:"attachA"}},[t("vz-upload",{ref:"upload",attrs:{files:e.projectDesign.attachA,isViewFile:e.isView},on:{change:e.changeFile,removeFile:e.removeFileFn},model:{value:e.projectDesign.attachA,callback:function(t){e.$set(e.projectDesign,"attachA",t)},expression:"projectDesign.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.projectDesign.attachB,isViewFile:e.isView},on:{change:e.changeFileHc,removeFile:e.removeFileFnHc},model:{value:e.projectDesign.attachB,callback:function(t){e.$set(e.projectDesign,"attachB",t)},expression:"projectDesign.attachB"}})],1)],1),t("el-col",{attrs:{span:24}},[t("div",{staticClass:"title"},[e._v("项目业主")]),t("div",{staticClass:"line"})]),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"项目业主:",prop:"projectOwner"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入项目业主"},model:{value:e.projectDesign.projectOwner,callback:function(t){e.$set(e.projectDesign,"projectOwner",t)},expression:"projectDesign.projectOwner"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"项目所有者:",prop:"projectProprietor"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入项目所有者"},model:{value:e.projectDesign.projectProprietor,callback:function(t){e.$set(e.projectDesign,"projectProprietor",t)},expression:"projectDesign.projectProprietor"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"注册地址:",prop:"registeredAddress"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入注册地址"},model:{value:e.projectDesign.registeredAddress,callback:function(t){e.$set(e.projectDesign,"registeredAddress",t)},expression:"projectDesign.registeredAddress"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"法人代表:",prop:"projectOwnerLegalRepresentative"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入法人代表"},model:{value:e.projectDesign.projectOwnerLegalRepresentative,callback:function(t){e.$set(e.projectDesign,"projectOwnerLegalRepresentative",t)},expression:"projectDesign.projectOwnerLegalRepresentative"}})],1)],1),t("el-col",{attrs:{span:24}},[t("div",{staticClass:"title"},[e._v("负责联系人")]),t("div",{staticClass:"line"})]),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"项目负责单位:",prop:"projectResponsibleUnit"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入项目负责单位"},model:{value:e.projectDesign.projectResponsibleUnit,callback:function(t){e.$set(e.projectDesign,"projectResponsibleUnit",t)},expression:"projectDesign.projectResponsibleUnit"}})],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"项目负责人:",prop:"projectManager"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入项目负责人"},model:{value:e.projectDesign.projectManager,callback:function(t){e.$set(e.projectDesign,"projectManager",t)},expression:"projectDesign.projectManager"}})],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"联系方式:",prop:"contactInformation"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入联系方式"},model:{value:e.projectDesign.contactInformation,callback:function(t){e.$set(e.projectDesign,"contactInformation",t)},expression:"projectDesign.contactInformation"}})],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"联系地址:",prop:"contactAddress"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入联系地址"},model:{value:e.projectDesign.contactAddress,callback:function(t){e.$set(e.projectDesign,"contactAddress",t)},expression:"projectDesign.contactAddress"}})],1)],1),t("el-col",{attrs:{span:8}},[t("el-form-item",{attrs:{label:"邮箱:",prop:"email"}},[t("el-input",{attrs:{clearable:"",placeholder:"请输入邮箱"},model:{value:e.projectDesign.email,callback:function(t){e.$set(e.projectDesign,"email",t)},expression:"projectDesign.email"}})],1)],1)],1)],1)],1)},i=[],s=(r("fcd3"),r("af95")),o=r("a982"),n=r("6fbe"),l=r("2f3b"),c=r("f910"),d=r("0e0b"),p={data(){return{projectDesign:{projectDesignFileVersion:"",projectDesignFileCompletionDate:"",startTimeOfInclusionPeriod:"",estimatedAnnualGreenhouseGasEmissionReduction:"",attachA:[],attachB:[],enterpriseName:"",projectProprietor:"",registeredAddress:"",projectResponsibleUnit:"",projectManager:"",contactInformation:"",contactAddress:"",email:""},emissionReductionProjects:{projectName:"",industry:"",methodology:"",methodologyVersion:"",projectStage:"项目设计"},emissionReductionProjectsRules:c["a"],rules:c["h"],menthodology:[],industryOptions:[],pickerOptions:{disabledDate(e){return e.getTime()>Date.now()}}}},props:{form:{type:Object,default:()=>{}},isView:{type:Boolean,require:!0,default:!1}},components:{vzUpload:s["a"]},mounted(){this.getMenthodology(),"{}"!==JSON.stringify(this.form)&&(this.projectDesign=Object(d["b"])(this.form.projectDesign),this.projectDesign.attachA=[],this.projectDesign.attachB=[],this.form.projectDesign.attachList&&this.form.projectDesign.attachList.forEach(e=>{"1"===e.dataSource?this.projectDesign.attachA.push(e):this.projectDesign.attachB.push(e)}),this.emissionReductionProjects=Object(d["b"])(this.form.emissionReductionProjects),this.emissionReductionProjects.projectStage="项目设计"),Object(l["qrCode"])("emission_reduction_project_industry").then(e=>{this.industryOptions=e.data.data[0].children||[]})},methods:{async validate(){try{return await this.$refs["projectDesign"].validate()}catch(e){return!1}},async validateEmissionReductionProjects(){try{return await this.$refs["emissionReductionProjects"].validate()}catch(e){return!1}},getMenthodology(){Object(n["getInternalAudit"])({size:10,current:1}).then(e=>{const t=e.data.data;this.menthodology=t?t.records:[]})},changeMenthodology(e){let t=this.menthodology.find(t=>t.methodologyName===e);this.emissionReductionProjects.methodologyVersion=t?t.methodologyVersion:""},removeFileFn(e){let t=e.id;Object(o["removeFile"])(t).then(e=>{this.projectDesign.attachA.forEach((e,r)=>{e.id==t&&this.projectDesign.attachA.splice(r,1)})})},removeFileFnHc(e){let t=e.id;Object(o["removeFile"])(t).then(e=>{this.projectDesign.attachB.forEach((e,r)=>{e.id==t&&this.projectDesign.attachB.splice(r,1)})})},changeFile(e){this.$refs.projectDesign.validateField("attachA")},changeFileHc(e){this.$refs.projectDesign.validateField("attachB")}}},u=p,g=(r("7b65"),r("1805")),m=Object(g["a"])(u,a,i,!1,null,"335d5c06",null);t["a"]=m.exports},b55a:function(e,t,r){"use strict";r("bf86")},bf86:function(e,t,r){},c809:function(e,t,r){},f910:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"h",(function(){return s})),r.d(t,"c",(function(){return o})),r.d(t,"b",(function(){return n})),r.d(t,"e",(function(){return l})),r.d(t,"d",(function(){return c})),r.d(t,"g",(function(){return d})),r.d(t,"f",(function(){return p}));var a=r("c54a");const i={projectName:[{required:!0,message:"请输入项目名称",trigger:"blur"},{validator:a["j"],trigger:"blur"}],industry:[{required:!0,message:"请选择所属行业领域",trigger:"change"}],methodology:[{required:!0,message:"请选择方法学",trigger:"change"}],methodologyVersion:[{required:!0,message:"请输入方法学版本",trigger:"blur"}]},s={projectDesignFileVersion:[{required:!0,message:"请输入项目设计文件版本",trigger:"change"}],projectDesignFileCompletionDate:[{required:!0,message:"请选择项目设计文件完成日期",trigger:"blue"}],startTimeOfInclusionPeriod:[{required:!0,message:"请选择计入期起止时间",trigger:"blue"}],estimatedAnnualGreenhouseGasEmissionReduction:[{required:!0,message:"请输入减排量",trigger:"blur"},{validator:a["e"],trigger:"blur"}],attachA:[{required:!0,message:"请上传项目设计文件",trigger:"change"}],attachB:[{required:!0,message:"请上传支撑性文件",trigger:"change"}],projectOwner:[{required:!0,message:"请输入项目业主",trigger:"blur"},{validator:a["j"],trigger:"blur"}],projectProprietor:[{required:!0,message:"请输入项目所有者",trigger:"blur"},{validator:a["j"],trigger:"blur"}],registeredAddress:[{required:!0,message:"请输入注册地址",trigger:"blur"},{validator:a["j"],trigger:"blur"}],projectOwnerLegalRepresentative:[{required:!0,message:"请输入法人代表",trigger:"blur"},{validator:a["j"],trigger:"blur"}],projectResponsibleUnit:[{required:!0,message:"请输入项目负责单位",trigger:"blur"}],projectManager:[{required:!0,message:"请输入项目负责人",trigger:"blur"},{validator:a["j"],trigger:"blur"}],contactInformation:[{required:!0,message:"请输入联系方式",trigger:"blur"},{validator:a["i"],trigger:"blur"}],contactAddress:[{required:!0,message:"请输入联系地址",trigger:"blur"},{validator:a["j"],trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"},{validator:a["d"],trigger:"blur"}]},o={orgName:[{required:!0,message:"请输入机构名称",trigger:"blur"},{validator:a["j"],trigger:"blur"}],orgAddress:[{required:!0,message:"请输入机构地址",trigger:"blur"},{validator:a["j"],trigger:"blur"}],director:[{required:!0,message:"请输入负责人",trigger:"blur"},{validator:a["j"],trigger:"blur"}],contactInfo:[{required:!0,message:"请输入联系方式",trigger:"blur"},{validator:a["i"],trigger:"blur"}],approveDate:[{required:!0,message:"请选择审定日期",trigger:"blue"}],attachList:[{required:!0,message:"请上传项目审定报告",trigger:"change"}]},n={applyDate:[{required:!0,message:"请选择申请日期",trigger:"blue"}],filingsNumber:[{required:!0,message:"请输入备案号",trigger:"blue"}],attachA:[{required:!0,message:"请上传项目申请表",trigger:"change"}],attachB:[{required:!0,message:"请上传承诺书",trigger:"change"}]},l={baselineEmission:[{required:!0,message:"请输入基准线排放值",trigger:"blur"},{validator:a["b"],trigger:"blur"}],projectEmission:[{required:!0,message:"请输入项目排放量",trigger:"blur"},{validator:a["b"],trigger:"blur"}],leakageAmount:[{required:!0,message:"请输入泄漏量",trigger:"blur"},{validator:a["b"],trigger:"blur"}],emissionReduction:[{required:!0,message:"请输入减排量",trigger:"blur"},{validator:a["b"],trigger:"blur"}],developmentDate:[{required:!0,message:"请选择项目开发日期",trigger:"blue"}],completionDate:[{required:!0,message:"请选择项目完成日期",trigger:"blue"}],attachA:[{required:!0,message:"请上传减排量核算报告",trigger:"change"}],attachB:[{required:!0,message:"请上传监测报告",trigger:"change"}],attachC:[{required:!0,message:"请上传其他文件",trigger:"change"}]},c={organizationName:[{required:!0,message:"请输入机构名称",trigger:"blur"},{validator:a["j"],trigger:"blur"}],organizationAddress:[{required:!0,message:"请输入机构地址",trigger:"blur"},{validator:a["j"],trigger:"blur"}],headOfOrganization:[{required:!0,message:"请输入负责人",trigger:"blur"},{validator:a["j"],trigger:"blur"}],contactInformation:[{required:!0,message:"请输入联系方式",trigger:"blur"},{validator:a["i"],trigger:"blur"}],verificationDate:[{required:!0,message:"请选择核证日期",trigger:"blue"}],attachList:[{required:!0,message:"请上传减排量核证报告",trigger:"change"}]},d={emissionReductionApplicationDate:[{required:!0,message:"请选择减排量日期",trigger:"blur"}],emissionReductionNum:[{required:!0,message:"请输入签发减排量",trigger:"blur"},{validator:a["b"],trigger:"blur"}],attachA:[{required:!0,message:"请上传减排量申请表",trigger:"change"}],attachB:[{required:!0,message:"请上传承诺书",trigger:"change"}]},p={projectLogout:[{required:!0,message:"请选择注销原因",trigger:"blue"}],logoutDate:[{required:!0,message:"请选择注销日期",trigger:"blue"}],attachList:[{required:!0,message:"请上传注销申请文件",trigger:"change"}]}}}]);