(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22c80c"],{f408:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e._self._c;return t("div",[t("el-card",{staticClass:"box-card",staticStyle:{height:"80px"},attrs:{shadow:"always"}},[t("el-form",{ref:"form",staticClass:"all-form-add",attrs:{model:e.form,inline:!1,"label-width":"73px",size:"medium"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"公司名称:"}},[t("el-input",{attrs:{size:"mini",placeholder:"请输入公司名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:""}})],1),t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:""}})],1),t("el-col",{staticClass:"all-t-r",staticStyle:{padding:"10px"},attrs:{span:6}},[t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.search("search")}}},[e._v("查询")]),t("el-button",{attrs:{size:"mini"},on:{click:e.reset}},[e._v("添加")])],1)],1)],1)],1),t("el-card",[t("alltitle",{attrs:{msg:"企业成员列表"}}),t("div",[t("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{stripe:!0,data:e.tableData}},[e._l(e.colums,(function(l,a){return[l.template?e._e():t("el-table-column",{key:l.k,attrs:{align:"center",label:l.label,prop:l.prop,width:l.width,"column-key":l.columnKey,filters:l.filters,formatter:l.format,type:l.type,"filter-method":l.filterMethod}}),"actionBar"==l.prop?t("el-table-column",{key:a,attrs:{align:"center",label:l.label,prop:l.prop,width:l.width},scopedSlots:e._u([{key:"default",fn:function(l){return[t("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.toEdit(l.row)}}},[e._v("编辑")]),t("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.remove(l.row)}}},[e._v("删除")])]}}],null,!0)}):e._e()]}))],2),t("el-pagination",{staticClass:"postop",staticStyle:{float:"right"},attrs:{"current-page":e.currentPage4,"page-sizes":[10,30,50,100],"page-size":1,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.length},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1),t("add",{ref:"add",on:{change:e.info}})],1)},o=[],s=l("751a");function r(e){return Object(s["b"])("/companylist/add",{params:e})}function n(e){return Object(s["b"])("/companylist/getlist",{params:e})}function i(e){return Object(s["b"])("/companylist/updata",{params:e})}var m=function(){var e=this,t=e._self._c;return t("div",[t("alldialog",{ref:"allDialog",attrs:{title:"新增企业信息"},on:{submit:e.submit}},[t("el-card",[t("el-form",{attrs:{model:e.form,"label-width":"120px"}},[t("alltitle",{attrs:{msg:"基本信息"}}),t("el-row",{staticClass:"pad",attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"企业名称:"}},[t("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入企业名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"统一信用代码:"}},[t("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"统一信用代码"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"所属行业:"}},[t("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入所属行业"},model:{value:e.form.brandId,callback:function(t){e.$set(e.form,"brandId",t)},expression:"form.brandId"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"经营所在省/市:"}},[t("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入经营所在省/市"},model:{value:e.form.model,callback:function(t){e.$set(e.form,"model",t)},expression:"form.model"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"项目负责人:"}},[t("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入项目负责人"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"联系方式:"}},[t("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入联系方式"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"企业账户:"}},[t("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入企业账户"},model:{value:e.form.userNameCode,callback:function(t){e.$set(e.form,"userNameCode",t)},expression:"form.userNameCode"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"企业级别:"}},[t("el-select",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请选择企业级别"},model:{value:e.form.level,callback:function(t){e.$set(e.form,"level",t)},expression:"form.level"}},e._l(e.companyss,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"所属公司:"}},[t("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入所属公司"},model:{value:e.form.blongCompany,callback:function(t){e.$set(e.form,"blongCompany",t)},expression:"form.blongCompany"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"所属公司代码:"}},[t("el-input",{staticStyle:{width:"50%"},attrs:{size:"mini",placeholder:"请输入所属公司"},model:{value:e.form.blongCompanyCode,callback:function(t){e.$set(e.form,"blongCompanyCode",t)},expression:"form.blongCompanyCode"}})],1)],1)],1)],1)],1)],1)],1)},c=[],p={data(){return{visible:!1,form:{name:"",code:"",brandId:"",model:"",userName:"",phone:"",level:"",blongCompany:"",userNameCode:""},companyss:[{value:"1",label:"一级单位"},{value:"2",label:"二级单位"},{value:"3",label:"三级单位"},{value:"4",label:"四级单位"},{value:"5",label:"其他"}],propertys:[{value:"1",label:"二氧化碳"},{value:"2",label:"甲烷"},{value:"3",label:"氧化亚氮"},{value:"4",label:"氢氟碳化物"},{value:"5",label:"全氟碳化物"},{value:"6",label:"六氟化硫"},{value:"7",label:"三氟化硫"},{value:"8",label:"水泥"}],id:""}},methods:{submit(){this.form.blongCompanyCode=this.$store.getters.userInfo.blongCompanyCode,this.form.user_name=this.$store.getters.userInfo.user_name,this.id?i(this.form).then(e=>{this.$message({type:"success",message:e.message}),this.$emit("change")}):r(this.form).then(e=>{this.$message({type:"success",message:e.message}),this.$emit("change")})},show(e){this.$refs.allDialog.showDialog(),e.name&&(console.log(e.name),this.form=e,this.id=e.name)}}},d=p,u=l("1805"),f=Object(u["a"])(d,m,c,!1,null,"0dc7a343",null),b=f.exports,h={components:{add:b},data(){return{currentPage4:1,form:{},tableData:[{name:"乌海能源有限责任公司",code:"91610000681585170N",brandId:"化工生产企业",model:"内蒙古乌海市",userName:"--",phone:"--"}],colums:[{type:"index",label:"序号"},{prop:"name",label:"企业名称"},{prop:"code",label:"统一信用代码"},{prop:"brandId",label:"所属行业"},{prop:"model",label:"经营所在省/市"},{prop:"userName",label:"项目负责人"},{prop:"phone",label:"联系方式"},{prop:"actionBar",label:"操作",template:!0,width:100}],blongCompanyCode:""}},created(){this.blongCompanyCode=this.$store.getters.userInfo.blongCompanyCode,this.info()},methods:{info(){},toEdit(e){this.$refs["add"].show(e)},handleSizeChange(e){console.log(`每页 ${e} 条`)},handleCurrentChange(e){console.log("当前页: "+e)},handleClick(e){},remove(e){},reset(e){this.$refs["add"].show(e)},search(e){let t={user_name:this.user_name};console.log(1233),n(Object.assign(t,this.form)).then(e=>{this.tableData=e.data})}}},g=h,y=Object(u["a"])(g,a,o,!1,null,"d812b878",null);t["default"]=y.exports}}]);