(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2793515c"],{1733:function(e,t,s){"use strict";s.r(t);var i=s("9ab4"),r=s("1b40"),a=s("b3ad"),o=s("2b8e");let n=class extends r.e{constructor(){super(...arguments),this.form={name:"",icon:"",code:"",code100:"",codebird:"",sort:""},this.loading=!1}handleSave(){this.$refs.form.validate(e=>{if(!e)return!1;(this.id?Object(o.d)(this.form):Object(o.a)(this.form)).then(()=>{this.$router.go(-1)})})}getExpressDetail(){this.loading=!0,Object(o.c)({id:this.id}).then(e=>{this.loading=!1,this.form=e})}created(){this.id=this.$route.query.id,this.id&&this.getExpressDetail()}};n=Object(i.a)([Object(r.a)({components:{MaterialSelect:a.a}})],n);var l=n,d=(s("5d7a"),s("2877")),c=Object(d.a)(l,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"express-edit flex-col"},[s("div",{staticClass:"ls-card express-edit__header"},[s("el-page-header",{attrs:{content:e.id?"编辑快递公司":"新增快递公司"},on:{back:function(t){return e.$router.go(-1)}}})],1),s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"ls-card express-edit__form m-t-10"},[s("el-form",{ref:"form",staticClass:"ls-form",attrs:{model:e.form,"label-width":"120px",size:"small"}},[s("el-form-item",{attrs:{label:"快递名称",required:"",prop:"name",rules:[{required:!0,message:"请输入快递名称",trigger:["blur","change"]}]}},[s("el-input",{attrs:{placeholder:"请输入快递名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),s("el-form-item",{attrs:{label:"快递图标"}},[s("material-select",{attrs:{limit:1},model:{value:e.form.icon,callback:function(t){e.$set(e.form,"icon",t)},expression:"form.icon"}}),s("div",{staticClass:"muted"},[e._v("快递图标，建议宽高尺寸200px*200px。")])],1),s("el-form-item",{attrs:{label:"快递编码"}},[s("el-input",{attrs:{placeholder:""},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}}),s("div",{staticClass:"muted"},[e._v("快递公司编码。")])],1),s("el-form-item",{attrs:{label:"快递100编码"}},[s("el-input",{attrs:{placeholder:""},model:{value:e.form.code100,callback:function(t){e.$set(e.form,"code100",t)},expression:"form.code100"}}),s("div",{staticClass:"muted"},[e._v("快递公司在快递100平台的编码，用于快递查询跟踪")])],1),s("el-form-item",{attrs:{label:"快递鸟编码"}},[s("el-input",{attrs:{placeholder:""},model:{value:e.form.codebird,callback:function(t){e.$set(e.form,"codebird",t)},expression:"form.codebird"}}),s("div",{staticClass:"muted"},[e._v("快递公司在快递鸟平台的编码，用于快递查询跟踪")])],1),s("el-form-item",{attrs:{label:"排序"}},[s("el-input",{attrs:{placeholder:""},model:{value:e.form.sort,callback:function(t){e.$set(e.form,"sort",t)},expression:"form.sort"}})],1)],1)],1),s("div",{staticClass:"express-edit__footer bg-white ls-fixed-footer"},[s("div",{staticClass:"btns row-center flex",staticStyle:{height:"100%"}},[s("el-button",{attrs:{size:"small"},on:{click:function(t){return e.$router.go(-1)}}},[e._v("取消")]),s("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("保存")])],1)])])}),[],!1,null,"31651b2e",null);t.default=c.exports},"2b8e":function(e,t,s){"use strict";s.d(t,"m",(function(){return r})),s.d(t,"n",(function(){return a})),s.d(t,"a",(function(){return o})),s.d(t,"d",(function(){return n})),s.d(t,"b",(function(){return l})),s.d(t,"c",(function(){return d})),s.d(t,"e",(function(){return c})),s.d(t,"k",(function(){return f})),s.d(t,"l",(function(){return u})),s.d(t,"f",(function(){return m})),s.d(t,"i",(function(){return g})),s.d(t,"j",(function(){return p})),s.d(t,"h",(function(){return v})),s.d(t,"g",(function(){return h}));var i=s("f175");const r=()=>i.a.get("settings.delivery.delivery_way/getConfig"),a=e=>i.a.post("settings.delivery.delivery_way/setConfig",e),o=e=>i.a.post("/settings.delivery.express/add",e),n=e=>i.a.post("/settings.delivery.express/edit",e),l=e=>i.a.post("/settings.delivery.express/del",e),d=e=>i.a.get("/settings.delivery.express/detail",{params:e}),c=e=>i.a.get("/settings.delivery.express/lists",{params:e}),f=()=>i.a.get("settings.delivery.logistics_config/getLogisticsConfig"),u=e=>i.a.post("settings.delivery.logistics_config/setLogisticsConfig",e),m=e=>i.a.post("settings.delivery.freight/add",e),g=e=>i.a.post("settings.delivery.freight/edit",e),p=e=>i.a.get("settings.delivery.freight/lists",{params:e}),v=e=>i.a.get("settings.delivery.freight/detail",{params:e}),h=e=>i.a.post("settings.delivery.freight/del",e)},"5d7a":function(e,t,s){"use strict";s("f2ff")},f2ff:function(e,t,s){}}]);