(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2be3d8cf"],{3850:function(e,a,r){"use strict";r.r(a);var l=function(){var e=this,a=e._self._c;return a("div",[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[a("el-breadcrumb-item",[e._v("首页")]),a("el-breadcrumb-item",[e._v("基础数据管理")]),a("el-breadcrumb-item",[e._v("企业基本信息")])],1),a("el-card",{staticClass:"box-card",staticStyle:{height:"100vh - 30px"}},[a("alltitle",{attrs:{msg:"基本信息"}}),a("el-form",{ref:"companyInfo",attrs:{model:e.form,rules:e.rules,"label-width":"120px"}},[a("div",{staticClass:"box-card"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"企业名称:",prop:"companyName"}},[a("el-input",{attrs:{size:"mini",disabled:"1"==e.flag,placeholder:"请输入企业名称"},model:{value:e.form.companyName,callback:function(a){e.$set(e.form,"companyName",a)},expression:"form.companyName"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"统一信用代码:",prop:"companycode"}},[a("el-input",{attrs:{size:"mini",disabled:"1"==e.flag,placeholder:"请输入统一信用代码"},model:{value:e.form.companycode,callback:function(a){e.$set(e.form,"companycode",a)},expression:"form.companycode"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"所属行业:",prop:"companyIndustry"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"1"==e.flag,clearable:"",size:"mini",placeholder:"请输入所属行业"},model:{value:e.form.companyIndustry,callback:function(a){e.$set(e.form,"companyIndustry",a)},expression:"form.companyIndustry"}},e._l(e.indetys,(function(e){return a("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})})),1)],1)],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"行业代码:",prop:"industryCode"}},[a("el-input",{attrs:{size:"mini",disabled:"1"==e.flag,placeholder:"请输入行业代码"},model:{value:e.form.industryCode,callback:function(a){e.$set(e.form,"industryCode",a)},expression:"form.industryCode"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"适用指南:",prop:"guide"}},[a("el-input",{attrs:{size:"mini",disabled:"1"==e.flag,placeholder:"请输入适用指南"},model:{value:e.form.guide,callback:function(a){e.$set(e.form,"guide",a)},expression:"form.guide"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"法人代表:",prop:"legalRepresentative"}},[a("el-input",{attrs:{size:"mini",disabled:"1"==e.flag,placeholder:"请输入法人代表"},model:{value:e.form.legalRepresentative,callback:function(a){e.$set(e.form,"legalRepresentative",a)},expression:"form.legalRepresentative"}})],1)],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"法人性质:",prop:"legalNature"}},[a("el-input",{attrs:{size:"mini",disabled:"1"==e.flag,placeholder:"请输入法人性质"},model:{value:e.form.legalNature,callback:function(a){e.$set(e.form,"legalNature",a)},expression:"form.legalNature"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"经营所在地:",prop:"companyAddress"}},[a("el-input",{attrs:{size:"mini",disabled:"1"==e.flag,placeholder:"请输入经营所在地"},model:{value:e.form.companyAddress,callback:function(a){e.$set(e.form,"companyAddress",a)},expression:"form.companyAddress"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"经营状态:",prop:"companyStatus"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"mini",placeholder:"请输入经营状态"},model:{value:e.form.companyStatus,callback:function(a){e.$set(e.form,"companyStatus",a)},expression:"form.companyStatus"}},e._l(e.status,(function(e){return a("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})})),1)],1)],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"员工人数:",prop:"companyMans"}},[a("el-input",{attrs:{size:"mini",disabled:"1"==e.flag,placeholder:"请输入员工人数"},model:{value:e.form.companyMans,callback:function(a){e.$set(e.form,"companyMans",a)},expression:"form.companyMans"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"碳资产管理:",prop:"charge"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"mini",placeholder:"请选择"},model:{value:e.form.charge,callback:function(a){e.$set(e.form,"charge",a)},expression:"form.charge"}},e._l(e.charges,(function(e){return a("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})})),1)],1)],1)],1)],1),a("alltitle",{attrs:{msg:"碳资产管理信息"}}),"部门"==e.form.charge?a("div",{staticClass:"box-card"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"单位分管领导:",prop:"untileLeader"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入单位分管领导"},model:{value:e.form.untileLeader,callback:function(a){e.$set(e.form,"untileLeader",a)},expression:"form.untileLeader"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"联系方式:",prop:"leaderPhone"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入联系方式"},model:{value:e.form.leaderPhone,callback:function(a){e.$set(e.form,"leaderPhone",a)},expression:"form.leaderPhone"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"职务:",prop:"leaderJob"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入职务"},model:{value:e.form.leaderJob,callback:function(a){e.$set(e.form,"leaderJob",a)},expression:"form.leaderJob"}})],1)],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"碳资产管理部门:",prop:"administrativeDepartment"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入碳资产管理部门"},model:{value:e.form.administrativeDepartment,callback:function(a){e.$set(e.form,"administrativeDepartment",a)},expression:"form.administrativeDepartment"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"碳资产负责人:",prop:"chargePerson"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入碳资产负责人"},model:{value:e.form.chargePerson,callback:function(a){e.$set(e.form,"chargePerson",a)},expression:"form.chargePerson"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"职务:",prop:"job"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入职务"},model:{value:e.form.job,callback:function(a){e.$set(e.form,"job",a)},expression:"form.job"}})],1)],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"联系电话:",prop:"phone"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入联系电话"},model:{value:e.form.phone,callback:function(a){e.$set(e.form,"phone",a)},expression:"form.phone"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"邮箱:",prop:"email"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入邮箱"},model:{value:e.form.email,callback:function(a){e.$set(e.form,"email",a)},expression:"form.email"}})],1)],1)],1)],1):e._e(),"机构"==e.form.charge?a("div",{staticClass:"box-card"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"机构名称:",prop:"mechanism"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入机构名称"},model:{value:e.form.mechanism,callback:function(a){e.$set(e.form,"mechanism",a)},expression:"form.mechanism"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"机构联系方式:",prop:"mechanismPhone"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入机构联系方式"},model:{value:e.form.mechanismPhone,callback:function(a){e.$set(e.form,"mechanismPhone",a)},expression:"form.mechanismPhone"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"机构地址:",prop:"mechanismAddress"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入机构地址"},model:{value:e.form.mechanismAddress,callback:function(a){e.$set(e.form,"mechanismAddress",a)},expression:"form.mechanismAddress"}})],1)],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"机构负责人:",prop:"chargePerson"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入机构负责人"},model:{value:e.form.chargePerson,callback:function(a){e.$set(e.form,"chargePerson",a)},expression:"form.chargePerson"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"负责人联系方式:",prop:"phone"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入负责人联系方式"},model:{value:e.form.phone,callback:function(a){e.$set(e.form,"phone",a)},expression:"form.phone"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"职务:",prop:"job"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入职务"},model:{value:e.form.job,callback:function(a){e.$set(e.form,"job",a)},expression:"form.job"}})],1)],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"邮箱:",prop:"email"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入邮箱"},model:{value:e.form.email,callback:function(a){e.$set(e.form,"email",a)},expression:"form.email"}})],1)],1)],1)],1):e._e(),"公司"==e.form.charge?a("div",{staticClass:"box-card"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"公司名称:",prop:"company"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入公司名称"},model:{value:e.form.company,callback:function(a){e.$set(e.form,"company",a)},expression:"form.company"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"公司联系方式:",prop:"companyPhone"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入公司联系方式"},model:{value:e.form.companyPhone,callback:function(a){e.$set(e.form,"companyPhone",a)},expression:"form.companyPhone"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"公司地址:",prop:"companyLocation"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入公司地址"},model:{value:e.form.companyLocation,callback:function(a){e.$set(e.form,"companyLocation",a)},expression:"form.companyLocation"}})],1)],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"碳资产负责人:",prop:"chargePerson"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入碳资产负责人"},model:{value:e.form.chargePerson,callback:function(a){e.$set(e.form,"chargePerson",a)},expression:"form.chargePerson"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"联系方式:",prop:"phone"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入联系方式"},model:{value:e.form.phone,callback:function(a){e.$set(e.form,"phone",a)},expression:"form.phone"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"职务:",prop:"job"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入职务"},model:{value:e.form.job,callback:function(a){e.$set(e.form,"job",a)},expression:"form.job"}})],1)],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"邮箱:",prop:"email"}},[a("el-input",{attrs:{size:"mini",placeholder:"请输入邮箱"},model:{value:e.form.email,callback:function(a){e.$set(e.form,"email",a)},expression:"form.email"}})],1)],1)],1)],1):e._e()],1),a("div",[a("el-row",{attrs:{type:"flex",justify:"center"}},[a("el-col",{attrs:{span:2}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submit}},[e._v("提交")])],1),a("el-col",{attrs:{span:2}},[a("el-button",{attrs:{type:"",size:"mini"},on:{click:e.submit}},[e._v("保存")])],1),a("el-col",{attrs:{span:2}},[a("el-button",{attrs:{type:"success",size:"mini"},on:{click:e.apply}},[e._v("申请修改")])],1)],1)],1)],1)],1)},t=[],s=r("737a"),o={data(){return{indetys:[{lable:"化工生产企业",value:"化工生产企业"},{lable:"水泥生产企业",value:"水泥生产企业"},{lable:"石油生产企业",value:"石油生产企业"},{lable:"平板玻璃生产企业",value:"平板玻璃生产企业"},{lable:"钢铁生产企业",value:"钢铁生产企业"},{lable:"电解铝生产企业",value:"电解铝生产企业"},{lable:"民用航空企业",value:"民用航空企业"},{lable:"发电设施企业",value:"发电设施企业"},{lable:"造纸和纸制品生产企业",value:"造纸和纸制品生产企业"},{lable:"其他有色金属治炼和压延加工企业",value:"其他有色金属治炼和压延加工企业"}],flag:0,form:{companyName:"陕西煤业化工集团有限责任公司",companycode:"",companyIndustry:"",industryCode:"",guide:"",legalRepresentative:"",legalNature:"",companyAddress:"",companyStatus:"",companyMans:"",blongCompanyCode:"",charge:"部门",company:"",companyPhone:"",companyLocation:"",mechanism:"",mechanismPhone:"",mechanismAddress:""},charges:[{lable:"部门",value:"部门"},{lable:"机构",value:"机构"},{lable:"公司",value:"公司"}],status:[{value:"存续",lable:"1"},{value:"在业",lable:"2"},{value:"迁入",lable:"3"},{value:"迁出",lable:"4"},{value:"吊销",lable:"5"},{value:"注销",lable:"6"},{value:"停业",lable:"7"},{value:"清算",lable:"8"}],rules:{companyName:[{required:!0,message:"企业名称不能为空",trigger:"blur"}],companycode:[{required:!0,message:"统一信用代码不能为空",trigger:"blur"}],companyIndustry:[{required:!0,message:"所属行业不能为空",trigger:"blur"}],industryCode:[{required:!0,message:"行业代码不能为空",trigger:"blur"}],guide:[{required:!0,message:"适用指南不能为空",trigger:"blur"}],legalRepresentative:[{required:!0,message:"法人代表不能为空",trigger:"blur"}],legalNature:[{required:!0,message:"法人性质不能为空",trigger:"blur"}],companyAddress:[{required:!0,message:"经营所在地不能为空",trigger:"blur"}],companyStatus:[{required:!0,message:"经营状态不能为空",trigger:"blur"}],companyMans:[{required:!0,message:"员工人数不能为空",trigger:"blur"}],charge:[{required:!0,message:"碳资产管理不能为空",trigger:"blur"}],untileLeader:[{required:!0,message:"单位分管领导不能为空",trigger:"blur"}],leaderPhone:[{required:!0,message:"联系方式不能为空",trigger:"blur"},{pattern:/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,message:"请输入正确的格式"}],leaderJob:[{required:!0,message:"职务不能为空",trigger:"blur"}],job:[{required:!0,message:"职务不能为空",trigger:"blur"}],administrativeDepartment:[{required:!0,message:"碳资产管理部门不能为空",trigger:"blur"}],chargePerson:[{required:!0,message:"碳资产负责人不能为空",trigger:"blur"}],phone:[{required:!0,message:"联系方式不能为空",trigger:"blur"},{pattern:/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,message:"请输入正确的格式"}],email:[{required:!0,message:"邮箱不能为空",trigger:"blur"},{pattern:/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,message:"请输入正确的格式"}],mechanism:[{required:!0,message:"机构名称不能为空",trigger:"blur"}],mechanismPhone:[{required:!0,message:"联系方式不能为空",trigger:"blur"},{pattern:/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,message:"请输入正确的格式"}],mechanismAddress:[{required:!0,message:"机构地址不能为空",trigger:"blur"}],company:[{required:!0,message:"公司名称不能为空",trigger:"blur"}],companyPhone:[{required:!0,message:"联系方式不能为空",trigger:"blur"},{pattern:/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/,message:"请输入正确的格式"}],companyLocation:[{required:!0,message:"公司地址不能为空",trigger:"blur"}],blongCompanyCode:[]}}},created(){this.init()},methods:{init(){let e=this.$store.getters.userInfo,a={user_name:e.user_name};Object(s["a"])(a).then(e=>{console.log(e),e.data[0]&&(this.form=e.data[0],this.flag=e.data[0].flag,this.$store.dispatch("setUserInfo",e.data[0]))})},submit(){this.$refs["companyInfo"].validate(e=>{if(e){let e=this.$store.getters.userInfo;const a=(new Date).getTime();this.form.blongCompanyCode||(this.form.blongCompanyCode="W"+a.toString()),this.form.flag=this.flag,this.form.user_name=e.user_name,console.log(this.form),Object(s["c"])(this.form).then(e=>{200==e.code?(this.flag=e.flag,this.init(),this.$message({type:"success",message:e.message})):this.message({type:"error",message:e.message})})}})},apply(){Object(s["b"])().then(e=>{200==e.code?(this.$message({type:"success",message:e.message}),this.flag=e.flag):this.$message({type:"success",message:e.message})})}}},i=o,n=r("1805"),m=Object(n["a"])(i,l,t,!1,null,"03669c7a",null);a["default"]=m.exports},"737a":function(e,a,r){"use strict";r.d(a,"c",(function(){return t})),r.d(a,"b",(function(){return s})),r.d(a,"a",(function(){return o}));var l=r("751a");r("01ea");function t(e){return Object(l["b"])("/userInfo",{params:e})}function s(e){return Object(l["b"])("/revise",{params:e})}function o(e){return Object(l["b"])("/getinfo",{params:e})}}}]);