(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-66783b5e"],{"00fe":function(t,e,o){},1192:function(t,e,o){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"text"},[e("div",{staticClass:"innerText"},[t._v(t._s(t.num)+" 吨")]),e("div",{staticClass:"title"},[t._v(t._s(t.title))])])])},a=[],r={props:["title","num"],data(){return{iconName:"el-icon-platform-eleme"}}},s=r,c=(o("f6e3"),o("1805")),l=Object(c["a"])(s,i,a,!1,null,"194a5d8a",null);e["a"]=l.exports},"196c":function(t,e,o){"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:"projectLogout",attrs:{rules:t.rules,model:t.projectLogout,"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:"projectLogout"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"请选择注销原因"},model:{value:t.projectLogout.projectLogout,callback:function(e){t.$set(t.projectLogout,"projectLogout",e)},expression:"projectLogout.projectLogout"}},t._l(t.projectLogoutOptions,(function(t){return e("el-option",{key:t.dictKey,attrs:{label:t.dictValue,value:t.dictValue}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"注销日期:",prop:"logoutDate"}},[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.projectLogout.logoutDate,callback:function(e){t.$set(t.projectLogout,"logoutDate",e)},expression:"projectLogout.logoutDate"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"注销申请文件:",prop:"attachList"}},[e("vz-upload",{ref:"upload",attrs:{files:t.projectLogout.attachList,isViewFile:t.isView},on:{change:t.changeFile,removeFile:t.removeFileFn},model:{value:t.projectLogout.attachList,callback:function(e){t.$set(t.projectLogout,"attachList",e)},expression:"projectLogout.attachList"}})],1)],1)],1)],1)],1)},a=[],r=o("af95"),s=o("a982"),c=o("0e0b"),l=o("2f3b"),n=o("f910"),p={data(){return{projectLogout:{projectLogout:"",logoutDate:"",attachList:""},emissionReductionProjects:{projectName:"",industry:"",methodology:"",methodologyVersion:"",projectStage:"项目注销"},rules:n["f"],menthodology:[],projectLogoutOptions:[],pickerOptions:{disabledDate(t){return t.getTime()>Date.now()}}}},props:{form:{type:Object,default:()=>{}},isView:{type:Boolean,require:!0,default:!1}},components:{vzUpload:r["a"]},mounted(){"{}"!==JSON.stringify(this.form)&&(this.projectLogout=Object(c["b"])(this.form.projectLogout),this.emissionReductionProjects=this.form.emissionReductionProjects,this.emissionReductionProjects.projectStage="项目注销"),Object(l["qrCode"])("reason_for_cancellation").then(t=>{this.projectLogoutOptions=t.data.data[0].children||[]})},methods:{async validate(){try{return await this.$refs["projectLogout"].validate()}catch(t){return!1}},removeFileFn(t){let e=t.id;Object(s["removeFile"])(e).then(t=>{this.projectLogout.attachList.forEach((t,o)=>{t.id==e&&this.projectLogout.attachList.splice(o,1)})})},changeFile(t){}}},u=p,d=(o("bd6b"),o("1805")),m=Object(d["a"])(u,i,a,!1,null,"74b7c03e",null);e["a"]=m.exports},5278:function(t,e,o){},"612c":function(t,e,o){},"7b8c":function(t,e,o){"use strict";o("82e7")},"7db7":function(t,e,o){"use strict";o("612c")},"82e7":function(t,e,o){},9031:function(t,e,o){"use strict";o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return a}));const i=()=>{const t=["#2474FF","#FFA200","#1C3FFF","#BD1CFF","#1CD4FF","#19C297","#EB5454","#19C25F","#24BDFF","#FF4D01","#EB5486","#19B4C2","#242BFF","#FFF701","#EB54B9","#1927C2","#6624FF","#34FF01","#A054EB"];return t},a=()=>{const t=["#19C297","#FFA200","#2474FF","#EB5454","#C7C7C7","#9F54EB","#42E5E3"];return t}},a1eb:function(t,e,o){"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)},a=[],r=(o("fcd3"),o("af95")),s=o("a982"),c=o("0e0b"),l=o("f910"),n={data(){return{projectReductionApplicationVO:{emissionReductionApplicationDate:"",emissionReductionNum:"",attachA:[],attachB:[]},emissionReductionProjects:{projectName:"",industry:"",methodology:"",methodologyVersion:"",projectStage:"减排量申请"},rules:l["g"],pickerOptions:{disabledDate(t){return t.getTime()>Date.now()}}}},props:{form:{type:Object,default:()=>{}},isView:{type:Boolean,require:!0,default:!1}},components:{vzUpload:r["a"]},mounted(){console.log(this.form),this.form&&(this.form.projectReductionApplicationVO&&(this.projectReductionApplicationVO=Object(c["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(s["removeFile"])(e).then(t=>{this.projectReductionApplicationVO.attachA.forEach((t,o)=>{t.id==e&&this.projectReductionApplicationVO.attachA.splice(o,1)})})},removeFileFnHc(t){let e=t.id;Object(s["removeFile"])(e).then(t=>{this.projectReductionApplicationVO.attachB.forEach((t,o)=>{t.id==e&&this.projectReductionApplicationVO.attachB.splice(o,1)})})}}},p=n,u=(o("7b8c"),o("1805")),d=Object(u["a"])(p,i,a,!1,null,"d4aa4f78",null);e["a"]=d.exports},a7ba:function(t,e,o){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",[e("cus-drawe",{attrs:{size:"75%",title:t.title,visible:t.visible,buttons:t.buttonsList},on:{handleBeforeClose:t.handleBeforeClose,buttonClick:t.buttonsClick}},[t.form.projectDesign&&"WTB"!==t.form.projectDesign.projectStatus?e("projectDesignForm",{attrs:{form:t.form,isView:!0}}):t._e(),t.form.projectApprovalVO&&"WTB"!==t.form.projectApprovalVO.projectStatus?e("projectApprovalForm",{attrs:{form:t.form,isView:!0}}):t._e(),t.form.projectApplyForVO&&"WTB"!==t.form.projectApplyForVO.projectStatus?e("projectApplicationForm",{attrs:{form:t.form,isView:!0}}):t._e(),t.form.projectDevelop&&"WTB"!==t.form.projectDevelop.projectStatus?e("projectDevelopmentForm",{attrs:{form:t.form,isView:!0}}):t._e(),t.form.projectCertifiedVO&&"WTB"!==t.form.projectCertifiedVO.projectStatus?e("projectVerificationForm",{attrs:{form:t.form,isView:!0}}):t._e(),t.form.projectReductionApplicationVO&&"WTB"!==t.form.projectReductionApplicationVO.projectStatus?e("emissionForm",{attrs:{form:t.form,isView:!0}}):t._e(),t.form.projectLogout&&"WTB"!==t.form.projectLogout.projectStatus?e("projectCancellationForm",{attrs:{form:t.form,isView:!0}}):t._e(),"1"===t.type?e("row",[e("div",{staticClass:"tiele"},[t._v("项目进度")]),e("div",{staticClass:"line"}),e("el-steps",{attrs:{active:t.processList.length,"align-center":""}},t._l(t.list,(function(t,o){return e("el-step",{key:o,attrs:{title:t.title,status:t.status,description:t.text}})})),1)],1):t._e(),"2"===t.type&&"DSH"==t.rowData.auditStatus&&0==t.ruleForm.flag||"2"===t.type&&"DSH"!=t.rowData.auditStatus&&1==t.ruleForm.flag?e("row",[e("div",{staticClass:"tiele"},[t._v("审核意见")]),e("div",{staticClass:"line"}),e("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"220px",disabled:t.ruleForm.flag}},[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"审核:",prop:"auditStatus"}},[e("el-radio",{attrs:{label:"YTG"},on:{input:t.inputRadi},model:{value:t.ruleForm.auditStatus,callback:function(e){t.$set(t.ruleForm,"auditStatus",e)},expression:"ruleForm.auditStatus"}},[t._v("通过")]),e("el-radio",{attrs:{label:"YBH"},on:{input:t.inputRadi},model:{value:t.ruleForm.auditStatus,callback:function(e){t.$set(t.ruleForm,"auditStatus",e)},expression:"ruleForm.auditStatus"}},[t._v("驳回")])],1)],1),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"说明:",prop:"remark"}},[e("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:t.ruleForm.remark,callback:function(e){t.$set(t.ruleForm,"remark",e)},expression:"ruleForm.remark"}})],1)],1)],1)],1)],1):t._e()],1)],1)},a=[],r=o("a481"),s=o("0527"),c=o("f7a1"),l=o("736e"),n=o("46a5"),p=o("a1eb"),u=o("196c"),d=(o("0e0b"),o("6fbe")),m={props:{type:{type:String},isView:{type:Boolean}},data(){return{loading:!0,visible:!1,title:"项目管理详情",buttonsList:[],form:{},ruleForm:{auditStatus:"YTG",flag:!1,remark:"审核通过,无意见"},rowData:{},list:[{title:"项目设计",status:"WTB",text:"未填报"},{title:"项目审定",status:"WTB",text:"未填报"},{title:"项目申请",status:"WTB",text:"未填报"},{title:"项目开发",status:"WTB",text:"未填报"},{title:"项目核证",status:"WTB",text:"未填报"},{title:"减排量申请",status:"WTB",text:"未填报"},{title:"项目注销",status:"WTB",text:"未填报"}],processList:[]}},components:{projectDesignForm:r["a"],projectApprovalForm:s["a"],projectApplicationForm:c["a"],projectDevelopmentForm:l["a"],projectVerificationForm:n["a"],emissionForm:p["a"],projectCancellationForm:u["a"]},mounted(){},methods:{inputRadi(t){this.ruleForm.remark="YTG"==t?"审核通过,无意见":"审核驳回"},handleBeforeClose(){this.visible=!1,this.processList=[]},async buttonsClick(t){"cancel"==t?this.visible=!1:(this.rowData.auditStatus=this.ruleForm.auditStatus,this.rowData.remark=this.ruleForm.remark,delete this.ruleForm.auditStatus,delete this.ruleForm.remark,await Object(d["projectInternalAuditApprove"])(Object.assign(this.ruleForm,this.rowData)).then(t=>{200==t.data.code&&this.$message.success("审核成功")}),this.rowData={},this.ruleForm={auditStatus:"YTG"},this.visible=!1,this.processList=[],this.$emit("change"))},open(t,e,o,i){this.form=e,this.rowData=t,"DSH"!=t.auditStatus&&(this.ruleForm.auditStatus=t.auditStatus,this.ruleForm.remark=t.remark),"view"==o?(this.buttonsList=[{type:"default",icon:"el-icon-circle-close",label:"取消",btnName:"cancel"}],this.ruleForm.flag=!0,i&&(this.processList=i,this.list.forEach(t=>{switch(this.processList.forEach(e=>{t.title===e.approvalNode&&(t.text=e.approvalDescription,t.status=e.approvalStatus)}),t.status){case"YTG":t.status="success";break;case"YBH":t.status="error";break;case"DTH":t.status="finish";break;case"WTB":t.text="未填报",t.status="wait";break;default:t.status="process"}}))):(this.ruleForm.flag=!1,this.buttonsList=[{type:"primary",icon:"el-icon-circle-plus-outline",label:"审核",btnName:"save"},{type:"default",icon:"el-icon-circle-close",label:"取消",btnName:"cancel"}]),this.visible=!0}}},f=m,h=(o("7db7"),o("1805")),j=Object(h["a"])(f,i,a,!1,null,"78b81a94",null);e["a"]=j.exports},bd6b:function(t,e,o){"use strict";o("5278")},f6e3:function(t,e,o){"use strict";o("00fe")}}]);