(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-09e97534"],{"1cc2":function(t,a,e){"use strict";e.r(a);var o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.company?e("div",[e("div",{staticClass:"portlet-body form"},[e("form",[e("div",{staticClass:"form-body"},[e("div",{staticClass:"form-group"},[e("label",[t._v("公司全称")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.company.SCOMPANYNAME,expression:"company.SCOMPANYNAME"}],staticClass:"form-control",attrs:{type:"text",placeholder:"请输入您公司的全称"},domProps:{value:t.company.SCOMPANYNAME},on:{input:function(a){a.target.composing||t.$set(t.company,"SCOMPANYNAME",a.target.value)}}})]),e("div",{staticClass:"form-group"},[e("label",[t._v("公司全称首字母大写")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.company.SNAMESPELL,expression:"company.SNAMESPELL"}],staticClass:"form-control",attrs:{type:"text",placeholder:"请输入您公司的全称首字母大写"},domProps:{value:t.company.SNAMESPELL},on:{input:function(a){a.target.composing||t.$set(t.company,"SNAMESPELL",a.target.value)}}})]),e("div",{staticClass:"form-group"},[e("label",[t._v("公司简称")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.company.SSHORTNAME,expression:"company.SSHORTNAME"}],staticClass:"form-control",attrs:{type:"text",placeholder:"请输入您公司的简称"},domProps:{value:t.company.SSHORTNAME},on:{input:function(a){a.target.composing||t.$set(t.company,"SSHORTNAME",a.target.value)}}})]),e("div",{staticClass:"form-group"},[e("label",[t._v("公司简称首字母大写")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.company.SSHORTSPELL,expression:"company.SSHORTSPELL"}],staticClass:"form-control",attrs:{type:"text",placeholder:"请输入您公司的简称的首字母大写"},domProps:{value:t.company.SSHORTSPELL},on:{input:function(a){a.target.composing||t.$set(t.company,"SSHORTSPELL",a.target.value)}}})]),e("div",{staticClass:"form-group"},[e("label",[t._v("联系人")]),e("div",{staticClass:"input-group"},[t._m(0),e("input",{directives:[{name:"model",rawName:"v-model",value:t.company.SCONTACT,expression:"company.SCONTACT"}],staticClass:"form-control",attrs:{type:"text",placeholder:"请输入联系人姓名"},domProps:{value:t.company.SCONTACT},on:{input:function(a){a.target.composing||t.$set(t.company,"SCONTACT",a.target.value)}}})])]),e("div",{staticClass:"form-group"},[e("label",[t._v("联系电话")]),e("div",{staticClass:"input-group"},[t._m(1),e("input",{directives:[{name:"model",rawName:"v-model",value:t.company.STEL,expression:"company.STEL"}],staticClass:"form-control",attrs:{type:"text",placeholder:"1XX XXXX XXXX / 010 - XXXXXXX"},domProps:{value:t.company.STEL},on:{input:function(a){a.target.composing||t.$set(t.company,"STEL",a.target.value)}}})])])]),e("div",{staticClass:"form-actions"},[e("button",{staticClass:"btn blue",attrs:{type:"button"},on:{click:t.save}},[t._v("提交")])])])])]):t._e()},n=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("span",{staticClass:"input-group-addon"},[e("i",{staticClass:"fa fa-user"})])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("span",{staticClass:"input-group-addon"},[e("i",{staticClass:"fa fa-phone"})])}],s=(e("4160"),e("159b"),e("f5d3")),c=e("4360"),i={name:"",props:[],beforeRouteEnter:function(t,a,e){var o=c["a"].state.login.company;o&&e()},data:function(){return{}},watch:{},computed:{company:function(){return Object.assign({},this.$store.state.login.company)}},created:function(){this.company.STEL="",this.company.STEL||(this.company.STEL=this.$store.state.login.user.STEL)},destroyed:function(){},mounted:function(){},methods:{save:function(){var t=this;s["a"].save(this.company,(function(a){a.forEach((function(a){a.PK===t.$store.getters.login.company.PK&&(t.$store.commit("setCompany",a),t.$message.success("提交成功"))}))}),(function(a){t.$message.error(a.Message)}))}},components:{}},r=i,l=e("2877"),p=Object(l["a"])(r,o,n,!1,null,"a777409a",null);a["default"]=p.exports},f5d3:function(t,a,e){"use strict";var o=e("51f3");a["a"]={getList:function(t,a){o["a"].call("Company","GetList",{},t,a)},getNew:function(t,a){o["a"].call("Company","GetNew",{},t,a)},save:function(t,a,e){o["a"].call("Company","Save",{model:t},a,e)},delete:function(t,a,e){o["a"].call("Company","Delete",{PK:t},a,e)}}}}]);