import{a7 as e,v as a,o as s,s as t,e as r,f as l,w as i,l as n,j as o,p as d,t as u,a3 as c,i as p,C as f,am as m,an as x,D as _,ao as g,m as y}from"./index-9880b451.js";import{_ as w}from"./s-layout.dfc5b0b5.js";import{A as b}from"./afterSale.a533f86e.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";const h=()=>e({url:"/trade/delivery/express/list",method:"get"}),I=v({__name:"return-delivery",setup(e){const v=a({id:0,expressIndex:0,expresses:[]});function I(e){v.expressIndex=e.detail.value}async function j(e){let a={id:v.id,logisticsId:v.expresses[v.expressIndex].id,logisticsNo:e.detail.value.logisticsNo};const{code:s}=await b.deliveryAfterSale(a);0===s&&(c({title:"填写退货成功"}),t.$router.go("/pages/order/aftersale/detail",{id:v.id}))}return s((e=>{e.id?(v.id=e.id,async function(){const{code:e,data:a}=await h();0===e&&(v.expresses=a)}()):t.$helper.toast("缺少订单信息，请检查")})),(e,a)=>{const s=p,t=f,c=m,b=x,h=_,B=g,G=n(y("s-layout"),w);return r(),l(G,{title:"退货物流"},{default:i((()=>[o(s,null,{default:i((()=>[o(B,{onSubmit:j,"report-submit":"true"},{default:i((()=>[o(s,{class:"apply-return"},{default:i((()=>[o(s,{class:"list borRadius14"},{default:i((()=>[o(s,{class:"item acea-row row-between-wrapper",style:{display:"flex","align-items":"center"}},{default:i((()=>[o(s,null,{default:i((()=>[d("物流公司")])),_:1}),o(c,{mode:"selector",class:"num",onChange:I,value:v.expressIndex,range:v.expresses,"range-key":"name"},{default:i((()=>[o(s,{class:"picker acea-row row-between-wrapper"},{default:i((()=>[o(s,{class:"reason"},{default:i((()=>[d(u(v.expresses[v.expressIndex].name),1)])),_:1}),o(t,{class:"iconfont icon-jiantou"})])),_:1})])),_:1},8,["value","range"])])),_:1}),o(s,{class:"item textarea acea-row row-between",style:{display:"flex","align-items":"center"}},{default:i((()=>[o(s,null,{default:i((()=>[d("物流单号")])),_:1}),o(b,{placeholder:"请填写物流单号",class:"num",name:"logisticsNo","placeholder-class":"placeholder"})])),_:1}),o(h,{class:"returnBnt bg-color ss-reset-button ui-BG-Main-Gradient sub-btn","form-type":"submit",style:{background:"linear-gradient(90deg,var(--ui-BG-Main),var(--ui-BG-Main-gradient))!important"}},{default:i((()=>[d("提交")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-145a1c77"]]);export{I as default};
