(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c2b67730","chunk-ae7cb8dc","chunk-ae7cb8dc"],{"150f":function(e,t,r){"use strict";r("6270")},"22c1":function(e,t,r){"use strict";r("8d8d")},"41aa":function(e,t,r){"use strict";r.d(t,"H",(function(){return o})),r.d(t,"K",(function(){return d})),r.d(t,"g",(function(){return u})),r.d(t,"d",(function(){return l})),r.d(t,"c",(function(){return c})),r.d(t,"b",(function(){return m})),r.d(t,"o",(function(){return b})),r.d(t,"i",(function(){return p})),r.d(t,"v",(function(){return f})),r.d(t,"p",(function(){return h})),r.d(t,"j",(function(){return v})),r.d(t,"u",(function(){return _})),r.d(t,"t",(function(){return g})),r.d(t,"Q",(function(){return y})),r.d(t,"l",(function(){return O})),r.d(t,"n",(function(){return w})),r.d(t,"R",(function(){return x})),r.d(t,"f",(function(){return j})),r.d(t,"S",(function(){return C})),r.d(t,"m",(function(){return L})),r.d(t,"J",(function(){return k})),r.d(t,"s",(function(){return S})),r.d(t,"a",(function(){return R})),r.d(t,"k",(function(){return T})),r.d(t,"C",(function(){return V})),r.d(t,"h",(function(){return q})),r.d(t,"w",(function(){return E})),r.d(t,"x",(function(){return D})),r.d(t,"B",(function(){return I})),r.d(t,"L",(function(){return N})),r.d(t,"A",(function(){return A})),r.d(t,"O",(function(){return $})),r.d(t,"P",(function(){return B})),r.d(t,"D",(function(){return F})),r.d(t,"M",(function(){return U})),r.d(t,"N",(function(){return z})),r.d(t,"y",(function(){return P})),r.d(t,"z",(function(){return H})),r.d(t,"F",(function(){return M})),r.d(t,"E",(function(){return Q})),r.d(t,"G",(function(){return J})),r.d(t,"I",(function(){return G})),r.d(t,"e",(function(){return K})),r.d(t,"q",(function(){return W})),r.d(t,"r",(function(){return X}));r("8e6e"),r("ac6a"),r("456d"),r("ade3");var a=r("b775");var n="/api-base",s="/api-r",i={rmaHistory:s+"/rma_history/list",rmaLog:s+"/rma_log/list",countryList:n+"/country/list",addressList:s+"/rma_return_address/list",addressDetail:s+"/rma_return_address/detail",addressDelete:s+"/rma_return_address/delete",newAddress:s+"/rma_return_address/create",editAddress:s+"/rma_return_address/update",reasonList:s+"/rma_reason/list",newReason:s+"/rma_reason/create",editReason:s+"/rma_reason/update",reasonDetail:s+"/rma_reason/detail",reasonDelete:s+"/rma_reason/delete",saleSetting:s+"/rma_setting/detail",editSaleSetting:s+"/rma_setting/update",merchantsList:s+"/rma/website_merchants",shippingList:s+"/rma/shipping_type",channelList:s+"/rma/channels",storageList:s+"/stock/list",goodsInfo:s+"/common_order/detail",rmaList:s+"/rma/list",rmaDel:s+"/rma/delete",payList:s+"/rma/payment_method",addRmaStep:s+"/rma/create",editRmaStep:s+"/rma/update",rmaDetail:s+"/rma/detail",rmaDetailDel:s+"/rma/detail",rmaRefusal:s+"/rma/refusal",rmaApproved:s+"/rma/approved",rmaConfirmReturn:s+"/rma/confirm_return_ship",rmaLogistics:s+"/rma/logistics_company",rmaConfirmRefund:s+"/rma/confirm_return",rmaUpdateRefundAmount:s+"/rma/update_refund_amount",rmaUpdateRefundMethods:s+"/rma/update_refund_style",rmaSettingPayment:s+"/rma_setting/payment",rmaLogisticsTrack:s+"/rma/logistics_track",rmaSendCoupon:s+"/rma/again_send_coupon",rmaBatchAudit:s+"/rma/batch_audit",rmaBatchImport:s+"/export_import/create",rmaImgImport:s+"/rma/picture",rmaExportDetail:s+"/export_condition/detail",rmaExportCreate:s+"/export_condition/create",rmaExportUpdate:s+"/export_condition/update",rmaIntegral:s+"/rma/points_detail",autoConfirmReturn:s+"/rma/auto_confirm_return",orderQueryDetail:s+"/search_condition/detail",orderQueryUpdate:s+"/search_condition/update"};function o(e){return Object(a["b"])({url:i.rmaHistory,method:"get",params:e})}function d(e){return Object(a["b"])({url:i.rmaLog,method:"get",params:e})}function u(){return Object(a["b"])({url:i.countryList,method:"get",timeout:6e3})}function l(e){return Object(a["b"])({url:i.addressList,method:"get",params:e})}function c(e){return Object(a["b"])({url:i.addressDetail,method:"get",params:e})}function m(e){return Object(a["b"])({url:i.addressDelete,method:"post",params:e})}function b(e){return Object(a["b"])({url:i.newAddress,method:"post",params:e})}function p(e){return Object(a["b"])({url:i.editAddress,method:"post",params:e})}function f(e){return Object(a["b"])({url:i.reasonList,method:"get",params:e})}function h(e){return Object(a["b"])({url:i.newReason,method:"post",params:e})}function v(e){return Object(a["b"])({url:i.editReason,method:"post",data:e})}function _(e){return Object(a["b"])({url:i.reasonDetail,method:"get",params:e})}function g(e){return Object(a["b"])({url:i.reasonDelete,method:"post",data:e})}function y(e){return Object(a["b"])({url:i.saleSetting,method:"get",params:e})}function O(e){return Object(a["b"])({url:i.editSaleSetting,method:"post",data:e})}function w(e){return Object(a["b"])({url:i.merchantsList,method:"get",params:e})}function x(e){return Object(a["b"])({url:i.shippingList,method:"get",params:e})}function j(e){return Object(a["b"])({url:i.channelList,method:"get",params:e})}function C(e){return Object(a["b"])({url:i.storageList,method:"get",params:e})}function L(e){return Object(a["b"])({url:i.goodsInfo,method:"get",params:e})}function k(e){return Object(a["b"])({url:i.rmaList,method:"get",params:e})}function S(e){return Object(a["b"])({url:i.payList,method:"get",params:e})}function R(e){return Object(a["b"])({url:i.addRmaStep,method:"post",data:e})}function T(e){return Object(a["b"])({url:i.editRmaStep,method:"post",data:e})}function V(e){return Object(a["b"])({url:i.rmaDetail,method:"get",params:e})}function q(e){return Object(a["b"])({url:i.rmaDel,method:"post",data:e})}function E(e){return Object(a["b"])({url:i.rmaRefusal,method:"post",data:e})}function D(e){return Object(a["b"])({url:i.rmaApproved,method:"post",data:e})}function I(e){return Object(a["b"])({url:i.rmaConfirmReturn,method:"post",data:e})}function N(e){return Object(a["b"])({url:i.rmaLogistics,method:"get",params:e})}function A(e){return Object(a["b"])({url:i.rmaConfirmRefund,method:"post",data:e})}function $(e){return Object(a["b"])({url:i.rmaUpdateRefundAmount,method:"post",data:e})}function B(e){return Object(a["b"])({url:i.rmaUpdateRefundMethods,method:"post",data:e})}function F(e){return Object(a["b"])({url:i.rmaSettingPayment,method:"get",params:e})}function U(e){return Object(a["b"])({url:i.rmaLogisticsTrack,method:"post",data:e})}function z(e){return Object(a["b"])({url:i.rmaSendCoupon,method:"get",params:e})}function P(e){return Object(a["b"])({url:i.rmaBatchAudit,method:"get",params:e})}function H(e){return Object(a["b"])({url:i.rmaBatchImport,method:"post",data:e})}function M(e){return Object(a["b"])({url:i.rmaExportDetail,method:"get",params:e})}function Q(e){return Object(a["b"])({url:i.rmaExportCreate,method:"post",data:e})}function J(e){return Object(a["b"])({url:i.rmaExportUpdate,method:"post",data:e})}function G(e){return Object(a["b"])({url:i.rmaIntegral,method:"post",data:e})}function K(e){return Object(a["b"])({url:i.autoConfirmReturn,method:"post",data:e})}function W(e){return Object(a["b"])({url:i.orderQueryDetail,method:"get",params:e})}function X(e){return Object(a["b"])({url:i.orderQueryUpdate,method:"post",data:e})}},5633:function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"customBread"},[r("div",{staticClass:"page-header clearfix"},[r("div",{staticClass:"page-header-index-wide",staticStyle:{float:"left"}},[r("a-breadcrumb",{staticClass:"breadcrumb"},e._l(e.breadList.loopBread,(function(t){return r("a-breadcrumb-item",{key:t.name},[t.href?r("router-link",{attrs:{to:{path:t.href}}},[e._v("\n "+e._s(t.title)+"\n ")]):r("span",[e._v(e._s(t.title))])],1)})),1),r("div",{staticClass:"detail"},[r("div",{staticClass:"customBreadcrumb-current"},[r("h1",{staticClass:"title"},[e._v(e._s(e.breadList.current))]),e.breadList.showNote&&e.breadList.isText?r("a-tooltip",{attrs:{placement:"bottomLeft"}},[r("template",{slot:"title"},[r("div",{domProps:{innerHTML:e._s(e.noteRender())}})]),r("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):e.breadList.showNote?r("a-popover",{attrs:{placement:"bottomLeft",overlayClassName:"custom-crumbcrumb-tips"}},[r("template",{slot:"content"},[r("div",{domProps:{innerHTML:e._s(e.noteRender())}})]),r("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):e._e()],1)])],1),r("div",{staticClass:"customBreadRight"},[e._t("default")],2)])])},n=[],s={props:{breadList:{type:Object,required:!0}},methods:{noteRender:function(){var e=this.breadList.current;switch(e){case"热搜词":return'\n
\n
\n
\n

\n
\n
\n
\n ';case"搜索暗文":return'\n \n
\n
\n

\n
\n
\n
\n ';case"搜索跳转":return'\n \n
\n
\n 设置搜索词跳转到指定的落地页\n
\n
\n
\n ';case"搜索联想词":return'\n \n
\n
\n

\n
\n
\n
\n ';case"热推商品":return'\n \n
\n
\n 搜索商品列表页、运营分类商品列表页、品牌商品列表页、店铺商品列表页的商品,优先展示热推商品,同为热推商品,按排序值由小到大展示。\n
\n
\n
\n ';case"搜索无结果关联词":return'\n \n
\n
\n

\n
\n
\n
\n ';case"商品排序得分":return'\n \n
\n
商品综合排序规则说明:
\n
\n - 无库存商品,排在有库存商品之后
\n - 热推商品展示在前,非热推商品展示在后;热推商品按热推商品排序值由小到大排序
\n - 运营分类商品列表:按运营分类人工排值由小到大排序(不适用搜索商品列表页、品牌商品列表页、店铺商品列表页)
\n - \n 排序值相同,按系统自动计算的商品排序得分由大到小排序。
\n 商品排序得分="0.7*支付件数+0.03*下单件数+0.02*加购件数+0.05*访问uv+0.2*新品得分(新品=1,否则=0)
\n 支付件数:最近一年已支付状态订单的sku件数合计
\n 下单件数:最近一年所有状态订单的sku件数合计
\n 加购件数:最近一年加入购物车的sku件数合计
\n 访问uv:最近一年商品浏览访问uv合计
\n 新品得分:新品=1,否则=0。设置新品规则 >>\n \n - 若人工排序值和系统排序值都相同,则按照搜索引擎返回的顺序排序
\n
\n
\n
\n ';case"异款SPU规则":return'\n \n
\n
\n 将属于规则设置范围内,且属于同一店铺、同一品牌、同一品类,且符合价格最大极差的不同款商品,聚合成一个SPU商品\n
\n
\n
\n ';case"主图视频":return'\n \n
\n
\n 按SPU编码维度,通过第三方视频生成服务,使用商品主图生成主图视频\n
\n
\n
\n ';default:return""}}}},i=s,o=(r("22c1"),r("2877")),d=Object(o["a"])(i,a,n,!1,null,"ceaaba20",null);t["a"]=d.exports},6270:function(e,t,r){},"6b9b":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"new-address-content"},[r("custom-bread",{attrs:{breadList:"editAddress"!==e.$route.name?e.breadList:e.breadListTwo}}),r("div",{staticClass:"customContent"},[r("a-layout",[r("address-Info",{attrs:{editObj:e.editObj}})],1)],1)],1)},n=[],s=r("5633"),i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a-layout-content",{staticClass:"multipleLayout-margin-bottom"},[r("div",{staticClass:"new-address-content-list",style:{background:"#fff",paddingTop:"48px"}},[r("a-form",{staticClass:"custom-form",attrs:{form:e.form},on:{submit:e.handleSubmit}},[r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("span",{attrs:{slot:"label"},slot:"label"},[e._v("公司名称 ")]),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["company",{rules:[{max:60,message:"不超过60个字符"}],validateTrigger:"blur"}],expression:"\n [ 'company', {\n rules: [\n { max:60, message: '不超过60个字符' }\n ],\n validateTrigger: 'blur'\n },\n ]"}],attrs:{placeholder:"请输入公司名称"},on:{change:e.companyEnter}},[r("span",{attrs:{slot:"suffix"},slot:"suffix"},[e._v(e._s(e.companyEnterValue.length)+"/60")])])],1),r("a-form-item",{attrs:{required:"",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("span",{attrs:{slot:"label"},slot:"label"},[e._v("联系人 ")]),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact",{rules:[{required:!0,message:"请输入联系人姓名"},{max:40,message:"不超过40个字符"}],validateTrigger:"blur"}],expression:"\n [ 'contact', {\n rules: [\n { required: true, message: '请输入联系人姓名' },\n { max:40, message: '不超过40个字符' }\n ],\n validateTrigger: 'blur'\n },\n ]"}],attrs:{placeholder:"请输入联系人姓名"},on:{change:e.contactEnter}},[r("span",{attrs:{slot:"suffix"},slot:"suffix"},[e._v(e._s(e.contactEnterValue.length)+"/40")])])],1),r("a-form-item",{attrs:{required:"",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("span",{attrs:{slot:"label"},slot:"label"},[e._v("联系方式 ")]),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["contact_mobile",{rules:[{required:!0,message:"请输入手机号码"}],validateTrigger:"blur"}],expression:"\n [\n 'contact_mobile',\n {\n rules: [\n { required: true, message: '请输入手机号码' }],\n validateTrigger: 'blur'\n }\n ]"}],attrs:{placeholder:"请输入手机号码"}})],1),r("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"座机",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-form-item",{style:{display:"inline-block",width:"calc(33.3333%)",paddingRight:"8px"},attrs:{"validate-status":""!=this.phone&&""===this.phone_code?"error":"success",help:""!=this.phone&&""===this.phone_code?"请输入区号":""}},[r("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入区号"},model:{value:e.phone_code,callback:function(t){e.phone_code="string"===typeof t?t.trim():t},expression:"phone_code"}})],1),r("a-form-item",{style:{display:"inline-block",width:"calc(33.3333%)",paddingRight:"8px"}},[r("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入座机号"},model:{value:e.phone,callback:function(t){e.phone="string"===typeof t?t.trim():t},expression:"phone"}})],1),r("a-form-item",{style:{display:"inline-block",width:"calc(33.3333%)"}},[r("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:"分机号(选填)"},model:{value:e.phone_extension,callback:function(t){e.phone_extension="string"===typeof t?t.trim():t},expression:"phone_extension"}})],1)],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("span",{attrs:{slot:"label"},slot:"label"},[e._v("邮箱 ")]),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["email",{rules:[{validator:e.emailValueChecker}]}],expression:"\n [\n 'email',\n {\n rules: [{ validator: emailValueChecker}],\n }\n ]"}],attrs:{placeholder:"请输入邮箱"}})],1),r("a-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"联系地址",required:"",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-form-item",{style:{display:"inline-block",width:"calc(25%)",paddingRight:"8px"}},[r("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["country",{initialValue:"中国"}],expression:"['country',{initialValue: '中国'}]"}],staticStyle:{width:"100%"},attrs:{"show-search":"","option-filter-prop":"children","filter-option":e.filterOption}},e._l(e.countryList,(function(t){return r("a-select-option",{key:t.country_code,attrs:{value:t.name}},[e._v(e._s(t.name))])})),1)],1),r("a-form-item",{style:{display:"inline-block",width:"calc(25%)",paddingRight:"8px"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["province",{rules:[{required:!0,message:"请输入省"}],validateTrigger:"blur"}],expression:" [ 'province', { rules: [ { required: true, message: '请输入省'} ], validateTrigger: 'blur' }]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入省"}})],1),r("a-form-item",{style:{display:"inline-block",width:"calc(25%)",paddingRight:"8px"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["city",{rules:[{required:!0,message:"请输入市"}],validateTrigger:"blur"}],expression:" [ 'city', { rules: [ { required: true, message: '请输入市'} ], validateTrigger: 'blur' }]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入市"}})],1),r("a-form-item",{style:{display:"inline-block",width:"calc(25%)"}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["county",{rules:[{required:!0,message:"请输入区/县"}],validateTrigger:"blur"}],expression:" [ 'county', { rules: [ { required: true, message: '请输入区/县'} ], validateTrigger: 'blur' },]"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入县"}})],1)],1),r("a-form-item",{attrs:{required:"",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("span",{attrs:{slot:"label"},slot:"label"},[e._v("详细地址 ")]),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["street1",{rules:[{required:!0,message:"请输入详细地址"}],validateTrigger:"blur"}],expression:"\n [ 'street1', {\n rules: [\n { required: true, message: '请输入详细地址'}\n ],\n validateTrigger: 'blur'\n },\n ]"}],attrs:{placeholder:"请输入详细地址,如街道名称,门牌号等信息"}})],1),r("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("span",{attrs:{slot:"label"},slot:"label"},[e._v("邮编 ")]),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["postcode",{rules:[{required:!0,message:"请输入邮编"}]}],expression:"['postcode',{ rules: [ { required: true, message: '请输入邮编'} ] }]"}],attrs:{placeholder:"请输入邮编"}})],1),r("a-form-item",{attrs:{required:"",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("span",{attrs:{slot:"label"},slot:"label"},[e._v("地址类型 ")]),r("a-checkbox-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["address_type",{rules:[{required:!0,message:"请选择地址类型"}]}],expression:"['address_type',{ rules: [ { required: true, message: '请选择地址类型'} ] } ]"}],on:{change:e.onChange}},[r("a-row",{style:{marginBottom:"12px",marginTop:"10px"}},[r("a-checkbox",{attrs:{value:"return_address"}},[e._v("退货地址")]),r("a-checkbox",{directives:[{name:"show",rawName:"v-show",value:e.return_default,expression:"return_default"}],attrs:{value:"return_default"}},[e._v("设置为默认退货地址")])],1),r("a-row",[r("a-checkbox",{attrs:{value:"send_address"}},[e._v("发货地址")]),r("a-checkbox",{directives:[{name:"show",rawName:"v-show",value:e.send_default,expression:"send_default"}],attrs:{value:"send_default"}},[e._v("设置为默认发货地址")])],1)],1)],1),r("a-row",{style:{marginBottom:"24px"}},[r("a-col",{style:{marginRight:"12px",width:"70px"},attrs:{offset:6,span:5}},["editAddress"===e.$route.name?r("a-button",{directives:[{name:"permission",rawName:"v-permission",value:"system:/rma_return_address/update",expression:"'system:/rma_return_address/update'"}],style:{height:"40px"},attrs:{type:"primary","html-type":"submit"}},[e._v("提交")]):r("a-button",{directives:[{name:"permission",rawName:"v-permission",value:"system:/rma_return_address/create",expression:"'system:/rma_return_address/create'"}],style:{height:"40px"},attrs:{type:"primary","html-type":"submit"}},[e._v("提交")])],1),r("a-col",{style:{width:"70px"},attrs:{span:5}},[r("a-button",{style:{height:"40px"},on:{click:e.cancel}},[e._v("取消")])],1)],1)],1)],1)])},o=[],d=(r("7f7f"),r("6762"),r("2fdb"),r("20d6"),r("de6a")),u=r("41aa"),l={data:function(){return{form:this.$form.createForm(this),labelCol:{span:6},wrapperCol:{span:12},companyEnterValue:"",contactEnterValue:"",phone:"",phone_code:"",phone_extension:"",return_default:!1,send_default:!1,addressType:[],countryList:[],validateStatus:"success"}},props:{editObj:{type:Object,default:function(){}}},computed:{websiteId:function(){return this.$store.getters.websiteId}},watch:{editObj:{handler:function(e,t){this.editSet()},deep:!0}},methods:{companyEnter:function(e){if(!e)return 0;this.companyEnterValue=e.target.value},contactEnter:function(e){if(!e)return 0;this.contactEnterValue=e.target.value},onChange:function(e){var t=this.form.setFieldsValue;if(e.indexOf("return_address")>-1)this.return_default=!0;else{this.return_default=!1;var r=e.findIndex((function(e){if("return_default"===e)return!0}));r>=0&&e.splice(r,1),t({address_type:e})}if(e.indexOf("send_address")>-1)this.send_default=!0;else{this.send_default=!1;var a=e.findIndex((function(e){if("send_default"===e)return!0}));a>=0&&e.splice(a,1),t({address_type:e})}},phoneValueChecker:function(e,t,r){var a=/^(1)\d{10}$/i;t?a.test(t.trim())?(this.form.setFieldsValue({contact_mobile:t.trim()}),r()):r(new Error("请输入正确的手机号码")):r()},emailValueChecker:function(e,t,r){var a=/^(?:[a-z0-9]+[_\-+]+)*[a-z0-9]+@(?:([a-z0-9]+-?)*[a-z0-9]+\.)+([a-z]{2,})+$/i;t?a.test(t.trim())?(this.form.setFieldsValue({email:t.trim()}),r()):r(new Error("请输入正确邮箱")):r()},cancel:function(){var e=[this.form.isFieldsTouched()];if(e.includes(!0)){var t=this;this.$confirm({icon:function(e){return e(d["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){t.$router.back()},cancelText:"取消",okText:"确定"})}else this.$router.back()},handleSubmit:function(e){var t=this;e.preventDefault();var r,a,n=this,s={};this.form.validateFields((function(e,i){e||""!==t.phone&&""===t.phone_code||(n.$delete(i,"address_type"),a=i,""!==t.phone&&(r={phone:t.phone,phone_code:t.phone_code,phone_extension:t.phone_extension},a=Object.assign(a,r)),""!==n.form.getFieldValue("address_type")&&(s.return_address=n.form.getFieldValue("address_type").indexOf("return_address")>-1?2:1,s.send_address=n.form.getFieldValue("address_type").indexOf("send_address")>-1?2:1,s.return_default=n.form.getFieldValue("address_type").indexOf("return_default")>-1?2:1,s.send_default=n.form.getFieldValue("address_type").indexOf("send_default")>-1?2:1,n.form.getFieldValue("address_type").indexOf("return_default")<=-1&&t.editObj&&2===t.editObj.return_default&&(s.return_default=1),n.form.getFieldValue("address_type").indexOf("send_default")<=-1&&t.editObj&&2===t.editObj.send_default&&(s.send_default=1),a=Object.assign(a,s)),"editAddress"===t.$route.name?t.editAddress(a):t.newAddress(a))}))},filterOption:function(e,t){return t.componentOptions.children[0].text.toLowerCase().indexOf(e.toLowerCase())>=0},getCountryList:function(){var e=this;Object(u["g"])().then((function(t){var r=t.data;r&&(e.countryList=r.rows)}))},newAddress:function(e){var t=this,r={website_id:this.websiteId};e=Object.assign(e,r),Object(u["o"])(e).then((function(e){0===e.status&&t.$router.push({path:"/setting/address/list"})})).catch((function(){}))},editAddress:function(e){var t=this,r=this,a={id:this.$route.params.address_id,website_id:this.websiteId};e=Object.assign(e,a),Object(u["i"])(e).then((function(e){0===e.status&&t.$router.push({path:"/setting/address/addressDetail/".concat(r.$route.params.address_id,"/websiteId/").concat(r.websiteId)})})).catch((function(){}))},editSet:function(){var e=[];""!==this.editObj&&(this.form.setFieldsValue({company:this.editObj.company.trim(),contact:this.editObj.contact.trim(),contact_mobile:this.editObj.contact_mobile.trim(),email:this.editObj.email.trim(),country:this.editObj.country.trim(),province:this.editObj.province.trim(),city:this.editObj.city.trim(),county:this.editObj.county.trim(),street1:this.editObj.street1.trim(),postcode:this.editObj.postcode.trim()}),this.phone=this.editObj.phone,this.phone_code=this.editObj.phone_code,this.phone_extension=this.editObj.phone_extension,2===this.editObj.return_address&&(e.push("return_address"),this.return_default=!0),2===this.editObj.send_address&&(e.push("send_address"),this.send_default=!0),2===this.editObj.return_default&&e.push("return_default"),2===this.editObj.send_default&&e.push("send_default"),this.form.setFieldsValue({address_type:e}))}},created:function(){this.getCountryList()}},c=l,m=r("2877"),b=Object(m["a"])(c,i,o,!1,null,null,null),p=b.exports,f=r("ac0d"),h={data:function(){return{breadList:{current:"新建地址",loopBread:[{name:"1",title:"工作台",href:"/dashboard"},{name:"2",title:"设置"},{name:"3",title:"地址管理",href:"/setting/address/list"},{name:"4",title:"新建地址"}]},breadListTwo:{current:"编辑地址",loopBread:[{name:"1",title:"工作台",href:"/dashboard"},{name:"2",title:"设置"},{name:"3",title:"地址管理",href:"/setting/address/list"},{name:"4",title:"编辑地址"}]},companyEnterValue:"",contactEnterValue:""}},mixins:[f["k"]],components:{customBread:s["a"],addressInfo:p},props:{editObj:{type:Object,default:function(){}}},methods:{}},v=h,_=(r("150f"),Object(m["a"])(v,a,n,!1,null,"328b2aa4",null));t["default"]=_.exports},"8d8d":function(e,t,r){}}]);