1 |
- import{_ as fa,__tla as ya}from"./index-a786614b.js";import{d as ha,Y as va,K as ba,r as u,u as wa,e as ga,l as xa,o as _,c,g as n,a as e,v as m,w as o,F as f,q as v,P as ea,f as l,dD as Va,R as Y,x as Aa,a4 as Ta,n as R,au as ka,t as y,at as Na,aL as Sa,W as Ea,X as Da,j as Ua,C as Ya,V as Ra,y as Ca,z as ja,A as za,B as Pa,E as Fa,i as Ma,D as La,p as Ha,k as Ia,_ as Ka,__tla as qa}from"./index-6d7b82ba.js";import{E as Wa,__tla as Ba}from"./el-card-1a4b93b1.js";import{i as Ja,j as Oa,h as Xa,__tla as Ga}from"./index-abce4807.js";import{d as C,D as A,b as Qa,__tla as Za}from"./dict-efb5f3b6.js";import{f as $a,__tla as ae}from"./formatTime-d24faf41.js";import{__tla as ee}from"./index-8e19be94.js";import le,{__tla as te}from"./AfterSaleTabs-9d321f8a.js";import{__tla as re}from"./index-e37504b6.js";import{__tla as oe}from"./el-image-viewer-4a19ded4.js";import{__tla as se}from"./ContentWrap-1ba5c8ca.js";import{__tla as ne}from"./ContentWrap.vue_vue_type_script_setup_true_lang-68bb15fa.js";import{__tla as _e}from"./SPuUploadImg-3b4ba08d.js";import{__tla as ue}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-b2231227.js";import{__tla as ie}from"./useMessage-be161634.js";import{__tla as ce}from"./Dialog-78181bae.js";import{__tla as pe}from"./AfterSaleBaseInfo-a81db029.js";import{__tla as de}from"./AfterSaleLog-8ca33056.js";import{__tla as me}from"./el-descriptions-item-a49b1792.js";import{__tla as fe}from"./el-timeline-item-cf907363.js";import{__tla as ye}from"./AfterSaleRetrun-73af19f7.js";import{__tla as he}from"./AfterSaleInfo-85e9d7cf.js";import{__tla as ve}from"./el-image-afb9e567.js";import{__tla as be}from"./AfterSaleSpuInfo-fe0605c4.js";import{__tla as we}from"./AfterSaleDisagreeForm-07e6da69.js";let la,ge=Promise.all([(()=>{try{return ya}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return ae}catch{}})(),(()=>{try{return ee}catch{}})(),(()=>{try{return te}catch{}})(),(()=>{try{return re}catch{}})(),(()=>{try{return oe}catch{}})(),(()=>{try{return se}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return ie}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return we}catch{}})()]).then(async()=>{let j,z,P,F,M,L,H,I,K,q,W;j={class:"search"},z={style:{"text-align":"right"},class:"search-input"},P={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},F=["title"],M={style:{display:"flex"}},L={style:{width:"216px",height:"122px","margin-right":"10px",border:"1px solid rgb(220, 223, 231)","border-radius":"5px",display:"flex","align-items":"center","justify-content":"center",overflow:"hidden"}},H=["src"],I={style:{"line-height":"25px"}},K={key:0},q=[(b=>(Ha("data-v-1f1e0589"),b=b(),Ia(),b))(()=>n("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u552E\u540E\u9000\u6B3E",-1))],W=ha({name:"TradeAfterSale",__name:"index",setup(b){const ta=va(),T=ba(()=>ta.getMobile),w=u(!1),ra=()=>{w.value=!w.value},k=()=>{w.value=!1},B=u(),{push:oa}=wa(),N=u(!0),J=u(0),S=u([]),p=u([]),O=u();u("");const t=ga({pageNo:1,pageSize:10,no:void 0,status:"10",orderNo:void 0,spuName:void 0,createTime:[],way:void 0,type:void 0,shopId:void 0}),h=async()=>{N.value=!0;try{const s=Sa(t);s.status==="0"&&delete s.status;const r=await Ja(s);S.value=r.list,J.value=r.total}finally{N.value=!1,_a()}},d=async()=>{t.pageNo=1,await h(),k()},sa=()=>{var s;(s=O.value)==null||s.resetFields(),t.shopId=void 0,k(),d()},na=async s=>{t.status=s.paneName,await h()},_a=async()=>{const s=u({...t}),r=await Oa(s.value);for(let g in p.value)for(let x in r)try{p.value[g].value==x&&(p.value[g].count=r[x])}finally{continue}};let X=u([]);return xa(async()=>{await(async()=>{N.value=!0;const s=await Xa();X.value=s})(),await h();for(const s of C(A.TRADE_AFTER_SALE_STATUS))p.value.push({label:s.label,value:s.value,count:0});console.log(p.value)}),(s,r)=>{const g=Ea,x=Da,G=Ua,V=Ya,E=Ra,D=Ca,U=ja,i=za,ua=Pa,Q=Fa,Z=Ma,ia=La,ca=Wa,pa=fa;return _(),c(f,null,[n("div",j,[e(T)?ea("",!0):(_(),m(x,{key:0,modelValue:e(t).status,"onUpdate:modelValue":r[0]||(r[0]=a=>e(t).status=a),class:"parent-tabs",onTabClick:na},{default:o(()=>[(_(!0),c(f,null,v(e(p),a=>(_(),m(g,{key:a.label,label:a.label+"("+a.count+")",name:a.value},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),n("div",z,[l(E,{modelValue:e(t).orderNo,"onUpdate:modelValue":r[1]||(r[1]=a=>e(t).orderNo=a),placeholder:"\u8BA2\u5355\u53F7",onKeyup:Y(d,["enter"])},{suffix:o(()=>[l(G,{class:"mr-5px",icon:"ep:search",onClick:d,style:{cursor:"pointer"}})]),append:o(()=>[l(V,{icon:e(Va),onClick:ra},null,8,["icon"])]),_:1},8,["modelValue"])])]),Aa(n("div",{class:"searchMore",style:ka({width:e(T)?"83.7%":"96%"})},[l(ia,{ref_key:"queryFormRef",ref:O,inline:!0,model:e(t),"label-width":"68px"},{default:o(()=>[l(i,{label:"\u5E97\u94FA\u540D\u79F0"},{default:o(()=>[l(U,{modelValue:e(t).shopId,"onUpdate:modelValue":r[2]||(r[2]=a=>e(t).shopId=a),placeholder:"\u8BF7\u9009\u62E9",filterable:""},{default:o(()=>[(_(!0),c(f,null,v(e(X),a=>(_(),m(D,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(i,{label:"\u5546\u54C1\u540D\u79F0",prop:"spuName"},{default:o(()=>[l(E,{modelValue:e(t).spuName,"onUpdate:modelValue":r[3]||(r[3]=a=>e(t).spuName=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1 SPU \u540D\u79F0",onKeyup:Y(d,["enter"])},null,8,["modelValue"])]),_:1}),l(i,{label:"\u9000\u6B3E\u7F16\u53F7",prop:"no"},{default:o(()=>[l(E,{modelValue:e(t).no,"onUpdate:modelValue":r[4]||(r[4]=a=>e(t).no=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u7F16\u53F7",onKeyup:Y(d,["enter"])},null,8,["modelValue"])]),_:1}),l(i,{label:"\u552E\u540E\u65B9\u5F0F",prop:"way"},{default:o(()=>[l(U,{modelValue:e(t).way,"onUpdate:modelValue":r[5]||(r[5]=a=>e(t).way=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u552E\u540E\u65B9\u5F0F"},{default:o(()=>[(_(!0),c(f,null,v(e(C)(e(A).TRADE_AFTER_SALE_WAY),a=>(_(),m(D,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(i,{label:"\u552E\u540E\u7C7B\u578B",prop:"type"},{default:o(()=>[l(U,{modelValue:e(t).type,"onUpdate:modelValue":r[6]||(r[6]=a=>e(t).type=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u552E\u540E\u7C7B\u578B"},{default:o(()=>[(_(!0),c(f,null,v(e(C)(e(A).TRADE_AFTER_SALE_TYPE),a=>(_(),m(D,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[l(ua,{modelValue:e(t).createTime,"onUpdate:modelValue":r[7]||(r[7]=a=>e(t).createTime=a),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-220px","end-placeholder":"\u81EA\u5B9A\u4E49\u65F6\u95F4","start-placeholder":"\u81EA\u5B9A\u4E49\u65F6\u95F4",type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","default-time"])]),_:1}),l(Z,null,{default:o(()=>[l(Q,null,{default:o(()=>[l(i,null,{default:o(()=>[l(V,{onClick:k},{default:o(()=>[R(" \u6536\u8D77 ")]),_:1}),l(V,{onClick:sa},{default:o(()=>[R(" \u91CD\u7F6E ")]),_:1}),l(V,{onClick:d,plain:"",type:"primary"},{default:o(()=>[l(G,{class:"mr-5px",icon:"ep:search"}),R(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],4),[[Ta,e(w)]]),l(Z,null,{default:o(()=>[(_(!0),c(f,null,v(e(S),(a,da)=>(_(),m(Q,{class:"card",key:da,span:7,xl:7,lg:7,md:7,sm:24,xs:24},{default:o(()=>[l(ca,{onClick:xe=>(($,aa)=>{if(T.value){const ma=JSON.stringify(aa);oa({name:"AfterSaleMobileTab",query:{type:$,obj:ma}})}else B.value.open($,aa)})("view",a)},{default:o(()=>[n("div",P,[n("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:a.spuName},y(a.spuName),9,F)]),n("div",M,[n("div",L,[n("img",{src:a.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,H)]),n("div",I,[n("p",null,"\uFFE5"+y(e(Na)(a.refundPrice)),1),n("p",null,y(a.orderNo),1),n("p",null,y(a.user.nickname),1),n("p",null,y(e(Qa)(e(A).TRADE_AFTER_SALE_WAY,a.way)),1),n("p",null,y(e($a)(a.createTime,"YYYY-MM-DD HH:mm")),1)])])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),e(S).length==0?(_(),c("div",K,[...q])):ea("",!0),l(pa,{limit:e(t).pageSize,"onUpdate:limit":r[8]||(r[8]=a=>e(t).pageSize=a),page:e(t).pageNo,"onUpdate:page":r[9]||(r[9]=a=>e(t).pageNo=a),total:e(J),onPagination:h},null,8,["limit","page","total"]),l(le,{ref_key:"AfterSaleTabsRef",ref:B,onSuccess:h},null,512)],64)}}}),la=Ka(W,[["__scopeId","data-v-1f1e0589"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/afterSale/index.vue"]])});export{ge as __tla,la as default};
|