(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3be3ab32"],{"0707":function(t,e,a){"use strict";a.r(e);var i=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:"emissionReductionApplicationDate",fn:function({row:e}){return e.emissionReductionApplicationDate?[t._v(" "+t._s(t.$dayjs(e.emissionReductionApplicationDate).format("YYYY-MM-DD"))+" ")]:void 0}},{key:"projectStatus",fn:function({row:a}){return["DSH"==a.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.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.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.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.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.projectStatus||"YTG"==a.projectStatus},on:{click:function(e){return t.handleEdit(a)}}},[t._v(" 编 辑 ")]),e("el-button",{attrs:{type:"text",size:"small",disabled:"DSH"==a.projectStatus||"YTG"==a.projectStatus||"WTB"==a.projectStatus,icon:"el-icon-check"},on:{click:function(e){return t.handleSubmitTo(a)}}},[t._v(" 提 交 ")])]}}],null,!0)},[e("template",{slot:"menuLeft"},[e("div",[e("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:t.handleAdd}},[t._v(" 新 增 ")])],1)])],2)],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("el-form",{attrs:{"label-width":"180px"}},[e("el-row",[e("el-col",{attrs:{span:11}},[e("el-form-item",{attrs:{label:"项目名称:",prop:"orgName"}},[e("el-select",{attrs:{placeholder:"请选择项目名称"},on:{change:t.projectValueChange},model:{value:t.projectValue,callback:function(e){t.projectValue=e},expression:"projectValue"}},t._l(t.projectList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.emissionReductionProjects.projectName,value:t.emissionReductionProjects.id}})})),1)],1)],1)],1)],1),null!==t.form?e("projectDesignForm",{ref:"projectDesign",attrs:{form:t.form,isView:t.isView}}):t._e(),null!==t.form?e("projectApprovalForm",{ref:"projectApprovalForm",attrs:{form:t.form,isView:t.projectApprovalIsView}}):t._e(),null!==t.form?e("projectApplicationForm",{ref:"projectApplicationForm",attrs:{form:t.form,isView:t.projectApplicationIsView}}):t._e(),null!==t.form?e("projectDevelopmentForm",{ref:"projectDevelopmentForm",attrs:{form:t.form,isView:t.projectDevelopmentIsView}}):t._e(),null!==t.form?e("projectVerificationForm",{ref:"projectVerificationForm",attrs:{form:t.form,isView:t.projectVerificationIsView}}):t._e(),e("emissionForm",{ref:"emissionForm",attrs:{form:t.form,isView:t.emissionIsView}}),e("div",{staticClass:"avue-dialog__footer"},[0==t.emissionIsView?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.emissionIsView?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:"26%",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=[],s=a("f0a4"),c=a("6fbe"),r=a("a481"),n=a("0527"),l=a("f7a1"),p=a("736e"),u=a("46a5"),d=a("a1eb"),m=a("4858"),h={data(){return{applicationTitle:"",form:null,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:"projectName"},{label:"所属行业",prop:"industry",bind:"industry",width:220,search:!0,type:"select"},{label:"方法学",prop:"methodology",bind:"methodology",width:180},{label:"签发减排量",prop:"emissionReductionNum",bind:"emissionReductionNum",width:180},{label:"申请日期",prop:"emissionReductionApplicationDate",bind:"emissionReductionApplicationDate",width:180},{label:"状态",prop:"projectStatus",bind:"projectStatus",slot:!0,width:180}]},data:[{id:"1777530003735339009",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:52:32",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:52:39",status:1,isDeleted:0,tenantId:"416380",projectId:"1777528110787223553",emissionReductionApplicationDate:"2024-04-09",projectStatus:"YTG",emissionReductionNum:"213.0000",year:null,projectName:"项目一",industry:"能源需求",methodology:"并网光热发电",attachList:[{id:"1777529984059858946",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:52:28",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:52:32",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777530003735339009",title:"upload/20240409105227739/1708596498165.jpg",introduction:"1708596498165.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409105227739/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:"1777529998802837505",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:52:31",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:52:32",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1777530003735339009",title:"upload/20240409105231248/1708596401368.jpg",introduction:"1708596401368.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240409105231248/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:"1776881161964826626",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-07 15:54:17",updateUser:"1762881283053162498",updateTime:"2024-04-08 09:25:28",status:1,isDeleted:0,tenantId:"416380",projectId:"1776880731188834306",emissionReductionApplicationDate:"2024-04-03",projectStatus:"YTG",emissionReductionNum:"1.0000",year:null,projectName:"xxxx",industry:"能源需求",methodology:"并网光热发电",attachList:[{id:"1776881138350895105",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-07 15:54:11",updateUser:"1762881283053162498",updateTime:"2024-04-07 16:27:25",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1776881161964826626",title:"upload/20240407155410832/截屏2024-01-29 16.55.49.png",introduction:"截屏2024-01-29 16.55.49.png",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240407155410832/截屏2024-01-29 16.55.49.png",bucketName:"bucket2",type:"png",domainUrl:"bucket2",name:"截屏2024-01-29 16.55.49.png",originalName:"截屏2024-01-29 16.55.49.png",extension:"png",attachSize:"1545236",industryId:null,industryName:null,year:null,month:null,dataSource:"1",carbonFootprintId:null},{id:"1776881146403958786",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-07 15:54:13",updateUser:"1762881283053162498",updateTime:"2024-04-07 16:27:25",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1776881161964826626",title:"upload/20240407155412799/截屏2024-03-19 17.11.57.png",introduction:"截屏2024-03-19 17.11.57.png",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240407155412799/截屏2024-03-19 17.11.57.png",bucketName:"bucket2",type:"png",domainUrl:"bucket2",name:"截屏2024-03-19 17.11.57.png",originalName:"截屏2024-03-19 17.11.57.png",extension:"png",attachSize:"148387",industryId:null,industryName:null,year:null,month:null,dataSource:"2",carbonFootprintId:null}]},{id:"1775096295652823041",createUser:"1762881919673012226",createDept:"1762869596682031106",createTime:"2024-04-02 17:41:51",updateUser:"1762881919673012226",updateTime:"2024-04-02 17:43:06",status:1,isDeleted:0,tenantId:"416380",projectId:"1775095214734544897",emissionReductionApplicationDate:"2024-04-02",projectStatus:"YTG",emissionReductionNum:"213.0000",year:null,projectName:"项目一",industry:"能源分配",methodology:"并网光热发电",attachList:[{id:"1775096276375801858",createUser:"1762881919673012226",createDept:"1762869596682031106",createTime:"2024-04-02 17:41:47",updateUser:"1762881919673012226",updateTime:"2024-04-02 17:43:06",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1775096295652823041",title:"upload/20240402174146615/1708596498165.jpg",introduction:"1708596498165.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240402174146615/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:"1775096290229587970",createUser:"1762881919673012226",createDept:"1762869596682031106",createTime:"2024-04-02 17:41:50",updateUser:"1762881919673012226",updateTime:"2024-04-02 17:43:06",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1775096295652823041",title:"upload/20240402174149885/1708596255525.jpg",introduction:"1708596255525.jpg",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240402174149885/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:"1",carbonFootprintId:null}]},{id:"1775082967085846530",createUser:"1762881630190538753",createDept:"1762867586717028353",createTime:"2024-04-02 16:48:53",updateUser:"1762881919673012226",updateTime:"2024-04-02 17:27:45",status:1,isDeleted:0,tenantId:"416380",projectId:"1775095214734544897",emissionReductionApplicationDate:"2023-04-02",projectStatus:"YTG",emissionReductionNum:"1.0000",year:null,projectName:"项目一",industry:"能源分配",methodology:"并网光热发电",attachList:[{id:"1775082953257226242",createUser:"1762881630190538753",createDept:"1762867586717028353",createTime:"2024-04-02 16:48:50",updateUser:"1762881919673012226",updateTime:"2024-04-02 17:27:45",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1775082967085846530",title:"upload/20240402164850097/截屏2024-01-29 16.55.49.png",introduction:"截屏2024-01-29 16.55.49.png",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240402164850097/截屏2024-01-29 16.55.49.png",bucketName:"bucket2",type:"png",domainUrl:"bucket2",name:"截屏2024-01-29 16.55.49.png",originalName:"截屏2024-01-29 16.55.49.png",extension:"png",attachSize:"1545236",industryId:null,industryName:null,year:null,month:null,dataSource:"1",carbonFootprintId:null},{id:"1775082961587113986",createUser:"1762881630190538753",createDept:"1762867586717028353",createTime:"2024-04-02 16:48:52",updateUser:"1762881919673012226",updateTime:"2024-04-02 17:27:45",status:1,isDeleted:0,tenantId:"416380",target:null,orgId:"1775082967085846530",title:"upload/20240402164852070/佳县盐化有限公司2023年度二氧化碳排放核查报告.pdf",introduction:"佳县盐化有限公司2023年度二氧化碳排放核查报告.pdf",attachUrl:"http://192.168.2.201:9000/bucket2/upload/20240402164852070/佳县盐化有限公司2023年度二氧化碳排放核查报告.pdf",bucketName:"bucket2",type:"pdf",domainUrl:"bucket2",name:"佳县盐化有限公司2023年度二氧化碳排放核查报告.pdf",originalName:"佳县盐化有限公司2023年度二氧化碳排放核查报告.pdf",extension:"pdf",attachSize:"1994030",industryId:null,industryName:null,year:null,month:null,dataSource:"2",carbonFootprintId:null}]}],options:[],dialogd:!1,isView:!1,projectApprovalIsView:!1,projectApplicationIsView:!1,projectDevelopmentIsView:!1,projectVerificationIsView:!1,emissionIsView:!1,approvalProcess:[{id:"1777530031820398594",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:52:39",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:52:39",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777530003735339009",approvalNode:"减排量申请",approvalStatus:"YTG",nodeSort:4,approvalDescription:"审核通过,无意见",attachList:null},{id:"1777530003836002305",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:52:32",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:52:32",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777530003735339009",approvalNode:"内部审核",approvalStatus:"DSH",nodeSort:3,approvalDescription:null,attachList:null},{id:"1777530003827613698",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:52:32",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:52:32",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777530003735339009",approvalNode:"减排量申请",approvalStatus:"YTJ",nodeSort:2,approvalDescription:null,attachList:null},{id:"1777530003810836481",createUser:"1762881283053162498",createDept:"1762861991238668290",createTime:"2024-04-09 10:52:32",updateUser:"1762881283053162498",updateTime:"2024-04-09 10:52:32",status:1,isDeleted:0,tenantId:"416380",approvalSourceId:"1777530003735339009",approvalNode:"减排量申请",approvalStatus:"DTJ",nodeSort:1,approvalDescription:null,attachList:null}],projectList:[],projectValue:""}},components:{projectDesignForm:r["a"],projectStatus:m["a"],projectApprovalForm:n["a"],projectApplicationForm:l["a"],projectDevelopmentForm:p["a"],projectVerificationForm:u["a"],emissionForm:d["a"]},mounted(){},computed:{...Object(s["b"])(["permission","companyInfo"])},methods:{async init(){this.getList(this.page)},async reasons(t,e){this.dialogVisible=!0},handleAdd(){this.dialogd=!0,this.applicationTitle="新增减排量申请",this.isView=!0,this.projectApprovalIsView=!0,this.projectApplicationIsView=!0,this.projectDevelopmentIsView=!0,this.projectVerificationIsView=!0,this.emissionIsView=!1;let t={fieldFlag:"projectCertifiedVO",projectStatus:"YTG"};Object(c["getEmissionReductionProjectsList"])(t).then(t=>{if(200==t.data.code)if(t.data.data){if(t.data.data.records){const e=t.data.data.records;this.projectList=e}}else this.data=[]})},async projectValueChange(t){console.log(t,"111"),await Object(c["getProjectDetail"])({id:t}).then(async t=>{this.form=t.data.data,console.log("res",t,this.form)})},hadleClose(){this.$confirm("是否关闭当前窗口?").then(t=>{this.form=null,this.projectValue="",this.isView=!1,this.dialogd=!1}).catch(t=>{})},async handleEdit(t){this.isView=!0,this.projectApprovalIsView=!0,this.projectApplicationIsView=!0,this.projectDevelopmentIsView=!0,this.projectVerificationIsView=!0,this.emissionIsView=!1,this.applicationTitle="编辑减排量申请",await this.projectValueChange(t.projectId),this.form.projectReductionApplicationVO=t,this.dialogd=!0,this.projectValue=t.projectName},async handleView(t){this.isView=!0,this.projectApprovalIsView=!0,this.projectApplicationIsView=!0,this.projectDevelopmentIsView=!0,this.projectVerificationIsView=!0,this.emissionIsView=!0,this.applicationTitle="查看减排量申请",await this.projectValueChange(t.projectId),this.form.projectReductionApplicationVO=t,this.dialogd=!0,this.projectValue=t.projectName},async handleSubmitTo(t){await this.projectValueChange(t.projectId),this.form.projectReductionApplicationVO=t,this.form.projectReductionApplicationVO.projectStatus="DSH",this.form.emissionReductionProjects.projectStage="减排量申请",this.form.emissionReductionProjects.projectStatus="DSH",Object(c["submitEmissionReductionProjects"])(this.form).then(t=>{200==t.data.code&&(this.$message.success("提交成功"),this.getList())})},async handleSubmit(t){let e=await this.$refs.emissionForm.validate();e&&(this.form.projectReductionApplicationVO=this.$refs.emissionForm.projectReductionApplicationVO,this.form.projectReductionApplicationVO.projectStatus=t,this.form.emissionReductionProjects.projectStatus=t,this.form.emissionReductionProjects.projectStage="减排量申请",this.form.projectReductionApplicationVO.attachA.forEach((t,e)=>{delete t.status,t.dataSource="1"}),this.form.projectReductionApplicationVO.attachB.forEach((t,e)=>{delete t.status,t.dataSource="2"}),this.form.projectReductionApplicationVO.attachList=[...this.form.projectReductionApplicationVO.attachA,...this.form.projectReductionApplicationVO.attachB],delete this.form.projectReductionApplicationVO.attachA,delete this.form.projectReductionApplicationVO.attachB,Object(c["submitEmissionReductionProjects"])(this.form).then(t=>{this.$message.success("提交成功"),this.getList(),this.dialogd=!1,this.form=null}))},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};Object(c["getProjectReductionList"])(Object.assign(a,e)).then(t=>{if(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})}}},j=h,g=(a("cef2"),a("1805")),f=Object(g["a"])(j,i,o,!1,null,"73d8f316",null);e["default"]=f.exports},4858:function(t,e,a){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("el-timeline",t._l(t.data,(function(a,i){return e("el-timeline-item",{key:i,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=[],s={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}})}},c=s,r=(a("b55a"),a("1805")),n=Object(r["a"])(c,i,o,!1,null,"031b0c00",null);e["a"]=n.exports},6152:function(t,e,a){},"7b8c":function(t,e,a){"use strict";a("82e7")},"82e7":function(t,e,a){},a1eb:function(t,e,a){"use strict";var i=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:"projectReductionApplicationVO",attrs:{rules:t.rules,model:t.projectReductionApplicationVO,"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:"emissionReductionNum"}},[e("el-input",{attrs:{clearable:"",placeholder:"请输入签发减排量"},model:{value:t.projectReductionApplicationVO.emissionReductionNum,callback:function(e){t.$set(t.projectReductionApplicationVO,"emissionReductionNum",e)},expression:"projectReductionApplicationVO.emissionReductionNum"}},[e("template",{slot:"append"},[t._v("tCo2")])],2)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"减排量申请日期:",prop:"emissionReductionApplicationDate"}},[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.projectReductionApplicationVO.emissionReductionApplicationDate,callback:function(e){t.$set(t.projectReductionApplicationVO,"emissionReductionApplicationDate",e)},expression:"\n projectReductionApplicationVO.emissionReductionApplicationDate\n "}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"减排量申请表:",prop:"attachA"}},[e("vz-upload",{ref:"upload",attrs:{files:t.projectReductionApplicationVO.attachA,isViewFile:t.isView},on:{change:t.changeFile,removeFile:t.removeFileFn},model:{value:t.projectReductionApplicationVO.attachA,callback:function(e){t.$set(t.projectReductionApplicationVO,"attachA",e)},expression:"projectReductionApplicationVO.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.projectReductionApplicationVO.attachB,isViewFile:t.isView},on:{change:t.changeFileHc,removeFile:t.removeFileFnHc},model:{value:t.projectReductionApplicationVO.attachB,callback:function(e){t.$set(t.projectReductionApplicationVO,"attachB",e)},expression:"projectReductionApplicationVO.attachB"}})],1)],1)],1)],1)],1)},o=[],s=(a("fcd3"),a("af95")),c=a("a982"),r=a("0e0b"),n=a("f910"),l={data(){return{projectReductionApplicationVO:{emissionReductionApplicationDate:"",emissionReductionNum:"",attachA:[],attachB:[]},emissionReductionProjects:{projectName:"",industry:"",methodology:"",methodologyVersion:"",projectStage:"减排量申请"},rules:n["g"],pickerOptions:{disabledDate(t){return t.getTime()>Date.now()}}}},props:{form:{type:Object,default:()=>{}},isView:{type:Boolean,require:!0,default:!1}},components:{vzUpload:s["a"]},mounted(){console.log(this.form),this.form&&(this.form.projectReductionApplicationVO&&(this.projectReductionApplicationVO=Object(r["b"])(this.form.projectReductionApplicationVO),this.projectReductionApplicationVO.attachA=[],this.projectReductionApplicationVO.attachB=[],this.form.projectReductionApplicationVO.attachList&&this.form.projectReductionApplicationVO.attachList.forEach(t=>{"1"===t.dataSource?this.projectReductionApplicationVO.attachA.push(t):this.projectReductionApplicationVO.attachB.push(t)})),console.log(this.form.emissionReductionProjects,"this.form.emissionReductionProjects"),this.emissionReductionProjects=this.form.emissionReductionProjects)},methods:{isObjectEmpty(t){return console.log(t,"obj"),0===Object.keys(t).length},async validate(){try{return await this.$refs["projectReductionApplicationVO"].validate()}catch(t){return!1}},changeFile(t){},removeFileFn(t){let e=t.id;Object(c["removeFile"])(e).then(t=>{this.projectReductionApplicationVO.attachA.forEach((t,a)=>{t.id==e&&this.projectReductionApplicationVO.attachA.splice(a,1)})})},removeFileFnHc(t){let e=t.id;Object(c["removeFile"])(e).then(t=>{this.projectReductionApplicationVO.attachB.forEach((t,a)=>{t.id==e&&this.projectReductionApplicationVO.attachB.splice(a,1)})})}}},p=l,u=(a("7b8c"),a("1805")),d=Object(u["a"])(p,i,o,!1,null,"d4aa4f78",null);e["a"]=d.exports},b55a:function(t,e,a){"use strict";a("bf86")},bf86:function(t,e,a){},cef2:function(t,e,a){"use strict";a("6152")}}]);