(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bd2e41b0","chunk-ae7cb8dc","chunk-ae7cb8dc"],{"22c1":function(t,e,r){"use strict";r("8d8d")},2840:function(t,e,r){},3066:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"new-reason-content"},[r("custom-bread",{attrs:{breadList:"editReason"!==t.$route.name?t.breadList:t.breadListTwo}}),r("div",{staticClass:"customContent"},[r("a-layout",[r("reason-Info",{attrs:{editObj:t.editObj}})],1)],1)],1)},a=[],i=r("5633"),s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a-layout-content",[r("div",{staticClass:"new-address-content-list",style:{background:"#fff",minHeight:"451px",paddingTop:"48px"}},[r("a-form",{staticClass:"custom-form",attrs:{form:t.form},on:{submit:t.handleSubmit}},[r("a-form-item",{attrs:{required:"",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[r("span",{attrs:{slot:"label"},slot:"label"},[t._v("原因名称 ")]),r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入售后原因名称"}],validateTrigger:"blur"}],expression:"\n [ 'name', {\n rules: [\n { required: true, message: '请输入售后原因名称'}\n ],\n validateTrigger: 'blur'\n }]"}],attrs:{placeholder:"请输入售后原因名称"}})],1),r("a-form-item",{attrs:{required:"",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[r("span",{attrs:{slot:"label"},slot:"label"},[t._v("前台显示 ")]),r("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["show_frontend",{initialValue:1}],expression:"['show_frontend',{initialValue:1 }]"}]},[r("a-radio",{attrs:{value:1}},[t._v("\n 显示\n ")]),r("a-radio",{attrs:{value:2}},[t._v("\n 不显示\n ")])],1)],1),r("a-form-item",{attrs:{required:"",labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[r("span",{attrs:{slot:"label"},slot:"label"},[t._v("排序值\n "),r("a-tooltip",{attrs:{title:"排序值越大越靠前。排序值相同,创建时间越早的售后原因,排序越靠前。"}},[r("a-icon",{attrs:{type:"info-circle"}})],1)],1),r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["index",{rules:[{required:!0,message:"请输入排序值"}],validateTrigger:"blur"}],expression:"\n [ 'index', {\n rules: [\n { required: true, message: '请输入排序值'}\n ],\n validateTrigger: 'blur'\n },\n ]"}],style:{width:"100%"},attrs:{placeholder:"请输入排序值",min:1,max:9999999999,precision:0}})],1),r("a-row",{style:{marginBottom:"24px"}},[r("a-col",{style:{marginRight:"12px",width:"70px"},attrs:{offset:6,span:5}},["editReason"===t.$route.name?r("a-button",{directives:[{name:"permission",rawName:"v-permission",value:"system:/rma_reason/update",expression:"'system:/rma_reason/update'"}],style:{height:"40px"},attrs:{type:"primary","html-type":"submit"}},[t._v("提交")]):r("a-button",{directives:[{name:"permission",rawName:"v-permission",value:"system:/rma_reason/create",expression:"'system:/rma_reason/create'"}],style:{height:"40px"},attrs:{type:"primary","html-type":"submit"}},[t._v("提交")])],1),r("a-col",{style:{width:"70px"},attrs:{span:5}},[r("a-button",{style:{height:"40px"},on:{click:t.cancel}},[t._v("取消")])],1)],1)],1)],1)])},o=[],u=(r("7f7f"),r("6762"),r("2fdb"),r("de6a")),d=r("41aa"),c={data:function(){return{form:this.$form.createForm(this),labelCol:{span:6},wrapperCol:{span:12}}},props:{editObj:{type:Object,default:function(){}}},watch:{editObj:{handler:function(t,e){this.editSet()},deep:!0}},methods:{cancel:function(){var t=[this.form.isFieldsTouched()];if(t.includes(!0)){var e=this;this.$confirm({icon:function(t){return t(u["a"])},title:"数据未提交保存,直接离开数据将会丢失,确定离开!",onOk:function(){e.$router.back()},cancelText:"取消",okText:"确定"})}else this.$router.back()},handleSubmit:function(t){var e=this;t.preventDefault(),this.form.validateFields((function(t,r){t||("editReason"===e.$route.name?e.editReason(r):e.newReason(r))}))},newReason:function(t){var e=this;Object(d["p"])(t).then((function(t){0===t.status&&e.$router.push({path:"/setting/afterSales/reasonList"})}))},editReason:function(t){var e=this,r=this,n={id:1*this.$route.params.reason_id};t.index=1*t.index,t=Object.assign(t,n),Object(d["j"])(t).then((function(t){0===t.status&&e.$router.push({path:"/setting/afterSales/reason/reasonDetail/".concat(r.$route.params.reason_id,"/websiteId/").concat(r.$route.params.site_id)})}))},editSet:function(){""!==this.editObj&&this.form.setFieldsValue({name:this.editObj.name.trim(),show_frontend:this.editObj.show_frontend,index:this.editObj.index})}},mounted:function(){}},l=c,m=r("2877"),b=Object(m["a"])(l,s,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/afterSales/reasonList"},{name:"4",title:"新建售后原因"}]},breadListTwo:{current:"编辑售后原因",loopBread:[{name:"1",title:"工作台",href:"/dashboard"},{name:"2",title:"设置"},{name:"3",title:"售后原因",href:"/setting/afterSales/reasonList"},{name:"4",title:"编辑售后原因"}]}}},mixins:[f["k"]],components:{customBread:i["a"],reasonInfo:p},props:{editObj:{type:Object,default:function(){}}},methods:{}},v=h,g=(r("b7dd"),Object(m["a"])(v,n,a,!1,null,"713d64db",null));e["default"]=g.exports},"41aa":function(t,e,r){"use strict";r.d(e,"H",(function(){return o})),r.d(e,"K",(function(){return u})),r.d(e,"g",(function(){return d})),r.d(e,"d",(function(){return c})),r.d(e,"c",(function(){return l})),r.d(e,"b",(function(){return m})),r.d(e,"o",(function(){return b})),r.d(e,"i",(function(){return p})),r.d(e,"v",(function(){return f})),r.d(e,"p",(function(){return h})),r.d(e,"j",(function(){return v})),r.d(e,"u",(function(){return g})),r.d(e,"t",(function(){return _})),r.d(e,"Q",(function(){return j})),r.d(e,"l",(function(){return O})),r.d(e,"n",(function(){return y})),r.d(e,"R",(function(){return w})),r.d(e,"f",(function(){return x})),r.d(e,"S",(function(){return L})),r.d(e,"m",(function(){return C})),r.d(e,"J",(function(){return R})),r.d(e,"s",(function(){return S})),r.d(e,"a",(function(){return k})),r.d(e,"k",(function(){return D})),r.d(e,"C",(function(){return B})),r.d(e,"h",(function(){return T})),r.d(e,"w",(function(){return $})),r.d(e,"x",(function(){return I})),r.d(e,"B",(function(){return A})),r.d(e,"L",(function(){return U})),r.d(e,"A",(function(){return q})),r.d(e,"O",(function(){return E})),r.d(e,"P",(function(){return N})),r.d(e,"D",(function(){return P})),r.d(e,"M",(function(){return H})),r.d(e,"N",(function(){return z})),r.d(e,"y",(function(){return F})),r.d(e,"z",(function(){return M})),r.d(e,"F",(function(){return Q})),r.d(e,"E",(function(){return J})),r.d(e,"G",(function(){return V})),r.d(e,"I",(function(){return G})),r.d(e,"e",(function(){return K})),r.d(e,"q",(function(){return W})),r.d(e,"r",(function(){return X}));r("8e6e"),r("ac6a"),r("456d"),r("ade3");var n=r("b775");var a="/api-base",i="/api-r",s={rmaHistory:i+"/rma_history/list",rmaLog:i+"/rma_log/list",countryList:a+"/country/list",addressList:i+"/rma_return_address/list",addressDetail:i+"/rma_return_address/detail",addressDelete:i+"/rma_return_address/delete",newAddress:i+"/rma_return_address/create",editAddress:i+"/rma_return_address/update",reasonList:i+"/rma_reason/list",newReason:i+"/rma_reason/create",editReason:i+"/rma_reason/update",reasonDetail:i+"/rma_reason/detail",reasonDelete:i+"/rma_reason/delete",saleSetting:i+"/rma_setting/detail",editSaleSetting:i+"/rma_setting/update",merchantsList:i+"/rma/website_merchants",shippingList:i+"/rma/shipping_type",channelList:i+"/rma/channels",storageList:i+"/stock/list",goodsInfo:i+"/common_order/detail",rmaList:i+"/rma/list",rmaDel:i+"/rma/delete",payList:i+"/rma/payment_method",addRmaStep:i+"/rma/create",editRmaStep:i+"/rma/update",rmaDetail:i+"/rma/detail",rmaDetailDel:i+"/rma/detail",rmaRefusal:i+"/rma/refusal",rmaApproved:i+"/rma/approved",rmaConfirmReturn:i+"/rma/confirm_return_ship",rmaLogistics:i+"/rma/logistics_company",rmaConfirmRefund:i+"/rma/confirm_return",rmaUpdateRefundAmount:i+"/rma/update_refund_amount",rmaUpdateRefundMethods:i+"/rma/update_refund_style",rmaSettingPayment:i+"/rma_setting/payment",rmaLogisticsTrack:i+"/rma/logistics_track",rmaSendCoupon:i+"/rma/again_send_coupon",rmaBatchAudit:i+"/rma/batch_audit",rmaBatchImport:i+"/export_import/create",rmaImgImport:i+"/rma/picture",rmaExportDetail:i+"/export_condition/detail",rmaExportCreate:i+"/export_condition/create",rmaExportUpdate:i+"/export_condition/update",rmaIntegral:i+"/rma/points_detail",autoConfirmReturn:i+"/rma/auto_confirm_return",orderQueryDetail:i+"/search_condition/detail",orderQueryUpdate:i+"/search_condition/update"};function o(t){return Object(n["b"])({url:s.rmaHistory,method:"get",params:t})}function u(t){return Object(n["b"])({url:s.rmaLog,method:"get",params:t})}function d(){return Object(n["b"])({url:s.countryList,method:"get",timeout:6e3})}function c(t){return Object(n["b"])({url:s.addressList,method:"get",params:t})}function l(t){return Object(n["b"])({url:s.addressDetail,method:"get",params:t})}function m(t){return Object(n["b"])({url:s.addressDelete,method:"post",params:t})}function b(t){return Object(n["b"])({url:s.newAddress,method:"post",params:t})}function p(t){return Object(n["b"])({url:s.editAddress,method:"post",params:t})}function f(t){return Object(n["b"])({url:s.reasonList,method:"get",params:t})}function h(t){return Object(n["b"])({url:s.newReason,method:"post",params:t})}function v(t){return Object(n["b"])({url:s.editReason,method:"post",data:t})}function g(t){return Object(n["b"])({url:s.reasonDetail,method:"get",params:t})}function _(t){return Object(n["b"])({url:s.reasonDelete,method:"post",data:t})}function j(t){return Object(n["b"])({url:s.saleSetting,method:"get",params:t})}function O(t){return Object(n["b"])({url:s.editSaleSetting,method:"post",data:t})}function y(t){return Object(n["b"])({url:s.merchantsList,method:"get",params:t})}function w(t){return Object(n["b"])({url:s.shippingList,method:"get",params:t})}function x(t){return Object(n["b"])({url:s.channelList,method:"get",params:t})}function L(t){return Object(n["b"])({url:s.storageList,method:"get",params:t})}function C(t){return Object(n["b"])({url:s.goodsInfo,method:"get",params:t})}function R(t){return Object(n["b"])({url:s.rmaList,method:"get",params:t})}function S(t){return Object(n["b"])({url:s.payList,method:"get",params:t})}function k(t){return Object(n["b"])({url:s.addRmaStep,method:"post",data:t})}function D(t){return Object(n["b"])({url:s.editRmaStep,method:"post",data:t})}function B(t){return Object(n["b"])({url:s.rmaDetail,method:"get",params:t})}function T(t){return Object(n["b"])({url:s.rmaDel,method:"post",data:t})}function $(t){return Object(n["b"])({url:s.rmaRefusal,method:"post",data:t})}function I(t){return Object(n["b"])({url:s.rmaApproved,method:"post",data:t})}function A(t){return Object(n["b"])({url:s.rmaConfirmReturn,method:"post",data:t})}function U(t){return Object(n["b"])({url:s.rmaLogistics,method:"get",params:t})}function q(t){return Object(n["b"])({url:s.rmaConfirmRefund,method:"post",data:t})}function E(t){return Object(n["b"])({url:s.rmaUpdateRefundAmount,method:"post",data:t})}function N(t){return Object(n["b"])({url:s.rmaUpdateRefundMethods,method:"post",data:t})}function P(t){return Object(n["b"])({url:s.rmaSettingPayment,method:"get",params:t})}function H(t){return Object(n["b"])({url:s.rmaLogisticsTrack,method:"post",data:t})}function z(t){return Object(n["b"])({url:s.rmaSendCoupon,method:"get",params:t})}function F(t){return Object(n["b"])({url:s.rmaBatchAudit,method:"get",params:t})}function M(t){return Object(n["b"])({url:s.rmaBatchImport,method:"post",data:t})}function Q(t){return Object(n["b"])({url:s.rmaExportDetail,method:"get",params:t})}function J(t){return Object(n["b"])({url:s.rmaExportCreate,method:"post",data:t})}function V(t){return Object(n["b"])({url:s.rmaExportUpdate,method:"post",data:t})}function G(t){return Object(n["b"])({url:s.rmaIntegral,method:"post",data:t})}function K(t){return Object(n["b"])({url:s.autoConfirmReturn,method:"post",data:t})}function W(t){return Object(n["b"])({url:s.orderQueryDetail,method:"get",params:t})}function X(t){return Object(n["b"])({url:s.orderQueryUpdate,method:"post",data:t})}},5633:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;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"},t._l(t.breadList.loopBread,(function(e){return r("a-breadcrumb-item",{key:e.name},[e.href?r("router-link",{attrs:{to:{path:e.href}}},[t._v("\n "+t._s(e.title)+"\n ")]):r("span",[t._v(t._s(e.title))])],1)})),1),r("div",{staticClass:"detail"},[r("div",{staticClass:"customBreadcrumb-current"},[r("h1",{staticClass:"title"},[t._v(t._s(t.breadList.current))]),t.breadList.showNote&&t.breadList.isText?r("a-tooltip",{attrs:{placement:"bottomLeft"}},[r("template",{slot:"title"},[r("div",{domProps:{innerHTML:t._s(t.noteRender())}})]),r("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):t.breadList.showNote?r("a-popover",{attrs:{placement:"bottomLeft",overlayClassName:"custom-crumbcrumb-tips"}},[r("template",{slot:"content"},[r("div",{domProps:{innerHTML:t._s(t.noteRender())}})]),r("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):t._e()],1)])],1),r("div",{staticClass:"customBreadRight"},[t._t("default")],2)])])},a=[],i={props:{breadList:{type:Object,required:!0}},methods:{noteRender:function(){var t=this.breadList.current;switch(t){case"热搜词":return'\n
商品综合排序规则说明:
\n