(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6863b04c"],{"5fbe":function(t,e,s){},b5ad:function(t,e,s){"use strict";var i=s("5fbe"),n=s.n(i);n.a},e101:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-content setting-freight-wrap"},[s("el-form",{ref:"form",staticClass:"demo-form",attrs:{model:t.form,rules:t.rules,"label-width":"10px"}},[s("el-form-item",[s("div",{staticClass:"flex-center"},[s("el-input",{staticStyle:{width:"150px"},model:{value:t.form.first,callback:function(e){t.$set(t.form,"first",e)},expression:"form.first"}}),s("div",{staticClass:"prompt-text"},[s("span",[t._v("公里内免运费，超过 5 公里每增加1公里，运费增加")])]),s("el-input",{staticStyle:{width:"150px"},model:{value:t.form.add,callback:function(e){t.$set(t.form,"add",e)},expression:"form.add"}})],1)]),s("el-form-item",[s("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("form")}}},[t._v("保存")])],1)],1)],1)},n=[],o=s("b54b"),r=s("5880"),f={name:"setting-freight",data:function(){return{form:{first:"",add:""},rules:{}}},computed:Object(o["a"])({},Object(r["mapGetters"])({shopInfo:"shopInfo"})),watch:{shopInfo:function(){this.$util.isEmpty(this.shopInfo)||(this.form.first=this.shopInfo.extend.freightFirst,this.form.add=this.shopInfo.extend.freightAdd)}},mounted:function(){this.init()},methods:{init:function(){this.$util.isEmpty(this.shopInfo)||(this.form.first=this.shopInfo.extend.freightFirst,this.form.add=this.shopInfo.extend.freightAdd)},_updateFn:function(){var t=this;this.$service.single.setFreight(this.form).then((function(e){t.$store.dispatch("shopInfo"),t.$message.success("更新成功！")}))},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return console.log("error submit!!"),!1;e._updateFn()}))},resetForm:function(t){this.$refs[t].resetFields()}}},a=f,c=(s("b5ad"),s("623f")),h=Object(c["a"])(a,i,n,!1,null,null,null);e["default"]=h.exports}}]);