1 |
- import{_ as xa,__tla as Ta}from"./index-e6cd813f.js";import{d as ka,N as Va,b as Aa,e as Sa,r as c,u as Ea,g as Na,z as Ua,h as ua,T as Da,o,c as i,j as n,a as e,k as d,w as s,F as y,C as v,S as E,i as t,dz as Ra,U as z,D as oa,a7 as Ya,l as j,ay as Ca,t as h,b9 as za,dB as ja,aZ as Fa,aw as Ma,Z as qa,$ as Pa,n as Ha,s as Ja,Y as Ka,I as La,G as Oa,H as Za,q as Ga,E as Ia,p as Wa,J as Ba,aQ as Qa,v as $a,x as Xa,_ as ae,__tla as ee}from"./index-2f799233.js";import{E as le,__tla as te}from"./el-card-c64c83d1.js";import{h as re,i as se,__tla as ue}from"./index-8cb2149a.js";import{c as N,D as x,e as oe,__tla as ne}from"./dict-20c916e2.js";import{f as _e,__tla as ie}from"./formatTime-2157894c.js";import ce,{__tla as pe}from"./AfterSaleTabs-fbad0e62.js";import{__tla as me}from"./index-1c180a16.js";import{__tla as de}from"./ContentWrap-9da801df.js";import{__tla as ye}from"./SPuUploadImg-121cd89e.js";import{__tla as fe}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-ac19fa49.js";import{__tla as ve}from"./index-5f6db4a5.js";import{__tla as he}from"./el-image-viewer-8e9e3571.js";import{__tla as be}from"./useMessage-e567ad40.js";import{__tla as ge}from"./Dialog-6fd39e06.js";import{__tla as we}from"./AfterSaleBaseInfo-9e8a5925.js";import{__tla as xe}from"./AfterSaleLog-09b774b4.js";import{__tla as Te}from"./el-descriptions-item-0a78cef7.js";import{__tla as ke}from"./el-timeline-item-e925b025.js";import{__tla as Ve}from"./AfterSaleRetrun-a233d58c.js";import{__tla as Ae}from"./AfterSaleInfo-5d227178.js";import{__tla as Se}from"./el-image-4d26fa76.js";import{__tla as Ee}from"./AfterSaleSpuInfo-7cc80a57.js";import{__tla as Ne}from"./AfterSaleDisagreeForm-51db473d.js";let na,Ue=Promise.all([(()=>{try{return Ta}catch{}})(),(()=>{try{return ee}catch{}})(),(()=>{try{return te}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return ie}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Ne}catch{}})()]).then(async()=>{let F,M,q,P,H,J,K,L,O,Z,G,I,W;F={class:"search"},M={style:{"text-align":"right"},class:"search-input"},q={key:0,style:{width:"100%"}},P={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},H=["title"],J=["onClick"],K={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"}},O=["src"],Z={style:{"line-height":"25px"}},G={key:1},I=[(T=>($a("data-v-1f1e0589"),T=T(),Xa(),T))(()=>n("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u552E\u540E\u9000\u6B3E",-1))],W=ka({name:"TradeAfterSale",__name:"index",setup(T){const B=Va(),_a=Aa(),b=Sa(()=>_a.getMobile),k=c(!1),ia=()=>{k.value=!k.value},U=()=>{k.value=!1},Q=c(),$=(u,l)=>{b.value?B.query.openType=="tobedone"||l.status==10||l.status==30||l.status==40?X({name:"AfterSaleMobileTab",query:{type:B.query.openType,obj:JSON.stringify(l)}}):X({name:"AfterSaleMobileTab",query:{type:u,obj:JSON.stringify(l)}}):Q.value.open(u,l)},{push:X}=Ea(),aa=c(!0),ea=c(0),D=c([]),_=c([]),la=c(),r=Na({pageNo:1,pageSize:10,no:null,status:"10",orderNo:null,spuName:null,createTime:[],way:null,type:null}),g=async()=>{aa.value=!0;try{const u=Ma(r);u.status==="0"&&delete u.status;const l=await re(u);D.value=l.list,ea.value=l.total}finally{aa.value=!1,pa()}},f=async()=>{r.pageNo=1,await g(),U()},ca=()=>{var u;(u=la.value)==null||u.resetFields(),U(),f()},ta=async u=>{r.status=u.paneName||u.name,await g()},pa=async()=>{const u=c({...r}),l=await se(u.value);let V=c(0);for(let p in _.value){V.value+=l[_.value[p].value]||0;for(let w in l)try{_.value[p].value==w&&(_.value[p].count=l[w]),_.value[p].value==""&&(_.value[p].count=V.value)}finally{continue}}};return Ua(async()=>{await g();for(const u of N(x.TRADE_AFTER_SALE_STATUS))_.value.push({label:u.label,value:u.value});_.value.push({label:"\u5168\u90E8",value:""})}),(u,l)=>{const V=qa,p=Pa,w=Ha,A=Ja,R=Ka,m=La,S=Oa,Y=Za,ma=Ga,ra=Ia,sa=Wa,da=Ba,ya=ua("van-tab"),fa=ua("van-tabs"),va=Qa,ha=le,ba=xa,ga=Da("hasPermi");return o(),i(y,null,[n("div",F,[e(b)?E("",!0):(o(),d(p,{key:0,modelValue:e(r).status,"onUpdate:modelValue":l[0]||(l[0]=a=>e(r).status=a),class:"parent-tabs",onTabClick:ta},{default:s(()=>[(o(!0),i(y,null,v(e(_),a=>(o(),d(V,{key:a.label,label:a.label+"("+a.count+")",name:a.value},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),n("div",M,[t(R,{modelValue:e(r).orderNo,"onUpdate:modelValue":l[1]||(l[1]=a=>e(r).orderNo=a),placeholder:"\u8BA2\u5355\u53F7",onKeyup:z(f,["enter"])},{suffix:s(()=>[t(w,{class:"mr-5px",icon:"ep:search",onClick:f,style:{cursor:"pointer"}})]),append:s(()=>[t(A,{icon:e(Ra),onClick:ia},null,8,["icon"])]),_:1},8,["modelValue"])])]),oa(n("div",{class:"searchMore",style:Ca({width:e(b)?"83.7%":"96%"})},[t(da,{ref_key:"queryFormRef",ref:la,inline:!0,model:e(r),"label-width":"68px"},{default:s(()=>[t(m,{label:"\u5546\u54C1\u540D\u79F0",prop:"spuName"},{default:s(()=>[t(R,{modelValue:e(r).spuName,"onUpdate:modelValue":l[2]||(l[2]=a=>e(r).spuName=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1 SPU \u540D\u79F0",onKeyup:z(f,["enter"])},null,8,["modelValue"])]),_:1}),t(m,{label:"\u9000\u6B3E\u7F16\u53F7",prop:"no"},{default:s(()=>[t(R,{modelValue:e(r).no,"onUpdate:modelValue":l[3]||(l[3]=a=>e(r).no=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u7F16\u53F7",onKeyup:z(f,["enter"])},null,8,["modelValue"])]),_:1}),t(m,{label:"\u552E\u540E\u72B6\u6001",prop:"status"},{default:s(()=>[t(Y,{modelValue:e(r).status,"onUpdate:modelValue":l[4]||(l[4]=a=>e(r).status=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u552E\u540E\u72B6\u6001"},{default:s(()=>[t(S,{label:"\u5168\u90E8",value:"0"}),(o(!0),i(y,null,v(e(N)(e(x).TRADE_AFTER_SALE_STATUS),a=>(o(),d(S,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(m,{label:"\u552E\u540E\u65B9\u5F0F",prop:"way"},{default:s(()=>[t(Y,{modelValue:e(r).way,"onUpdate:modelValue":l[5]||(l[5]=a=>e(r).way=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u552E\u540E\u65B9\u5F0F"},{default:s(()=>[(o(!0),i(y,null,v(e(N)(e(x).TRADE_AFTER_SALE_WAY),a=>(o(),d(S,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(m,{label:"\u552E\u540E\u7C7B\u578B",prop:"type"},{default:s(()=>[t(Y,{modelValue:e(r).type,"onUpdate:modelValue":l[6]||(l[6]=a=>e(r).type=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u552E\u540E\u7C7B\u578B"},{default:s(()=>[(o(!0),i(y,null,v(e(N)(e(x).TRADE_AFTER_SALE_TYPE),a=>(o(),d(S,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(m,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:s(()=>[t(ma,{modelValue:e(r).createTime,"onUpdate:modelValue":l[7]||(l[7]=a=>e(r).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}),t(sa,null,{default:s(()=>[t(ra,null,{default:s(()=>[t(m,null,{default:s(()=>[t(A,{onClick:U},{default:s(()=>[j(" \u6536\u8D77 ")]),_:1}),t(A,{onClick:ca},{default:s(()=>[j(" \u91CD\u7F6E ")]),_:1}),t(A,{onClick:f,plain:"",type:"primary"},{default:s(()=>[t(w,{class:"mr-5px",icon:"ep:search"}),j(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],4),[[Ya,e(k)]]),e(b)?(o(),i("div",q,[t(fa,{active:e(r).status,"onUpdate:active":l[8]||(l[8]=a=>e(r).status=a),class:"parent-tabs",onClickTab:ta},{default:s(()=>[(o(!0),i(y,null,v(e(_),a=>(o(),d(ya,{key:a.label,title:a.label+"("+a.count+")",name:a.value},null,8,["title","name"]))),128))]),_:1},8,["active"])])):E("",!0),t(sa,null,{default:s(()=>[(o(!0),i(y,null,v(e(D),(a,wa)=>(o(),d(ra,{class:"card",key:wa,span:7,xl:7,lg:7,md:7,sm:24,xs:24},{default:s(()=>[t(ha,{onClick:C=>$("view",a)},{default:s(()=>{var C;return[n("div",P,[n("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:a.spuName},h(a.spuName),9,H),e(b)?E("",!0):oa((o(),i("div",{key:0,class:"setting",onClick:za(De=>$("update",a),["stop"])},[t(va,{size:"20",color:"rgb(220 223 231)"},{default:s(()=>[t(e(ja))]),_:1})],8,J)),[[ga,["system:user:update"]]])]),n("div",K,[n("div",L,[n("img",{src:a==null?void 0:a.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,O)]),n("div",Z,[n("p",null,"\uFFE5"+h(e(Fa)(a.refundPrice)),1),n("p",null,h(a.orderNo),1),n("p",null,h((C=a==null?void 0:a.user)==null?void 0:C.nickname),1),n("p",null,h(e(oe)(e(x).TRADE_AFTER_SALE_WAY,a.way)),1),n("p",null,h(e(_e)(a.createTime,"YYYY-MM-DD HH:mm")),1)])])]}),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),e(D).length==0?(o(),i("div",G,[...I])):E("",!0),t(ba,{limit:e(r).pageSize,"onUpdate:limit":l[9]||(l[9]=a=>e(r).pageSize=a),page:e(r).pageNo,"onUpdate:page":l[10]||(l[10]=a=>e(r).pageNo=a),total:e(ea),onPagination:g},null,8,["limit","page","total"]),t(ce,{ref_key:"AfterSaleTabsRef",ref:Q,onSuccess:g},null,512)],64)}}}),na=ae(W,[["__scopeId","data-v-1f1e0589"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/trade/afterSale/index.vue"]])});export{Ue as __tla,na as default};
|