1 |
- import{_ as fa,__tla as ya}from"./index-5771c6d6.js";import{d as ha,Z as va,L as ba,r as _,u as wa,f as ga,l as xa,o as u,c,h as n,a as e,x as m,w as o,F as f,v,Q as ea,g as l,av as Va,S as Y,y as Ta,a6 as ka,n as R,az as Aa,t as y,a$ as Sa,aO as Na,X as Ea,Y as Da,q as Ua,D as Ya,W as Ra,z as Ca,A as Ma,B as ja,C as za,E as Fa,j as La,G as Pa,p as Ia,k as qa,_ as Ha,__tla as Wa}from"./index-3fb48822.js";import{E as Ka,__tla as Oa}from"./el-card-8960fd94.js";import{i as Ba,j as Ga,h as Ja,__tla as Qa}from"./index-72ebef64.js";import{c as C,D as T,d as Xa,__tla as Za}from"./dict-51415be4.js";import{f as $a,__tla as ae}from"./formatTime-1803573a.js";import{__tla as ee}from"./index-3dfce5d7.js";import le,{__tla as te}from"./AfterSaleTabs-6043a603.js";import{__tla as re}from"./index-cf9cdfb4.js";import{__tla as oe}from"./el-image-viewer-ff953702.js";import{__tla as se}from"./ContentWrap-afa47a64.js";import{__tla as ne}from"./SPuUploadImg-11a63c91.js";import{__tla as ue}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-7872c8ab.js";import{__tla as _e}from"./useMessage-b6c78c26.js";import{__tla as ie}from"./Dialog-7d4425a0.js";import{__tla as ce}from"./AfterSaleBaseInfo-fec600e0.js";import{__tla as pe}from"./AfterSaleLog-f0d75780.js";import{__tla as de}from"./el-descriptions-item-afd57e92.js";import{__tla as me}from"./el-timeline-item-e5735e88.js";import{__tla as fe}from"./AfterSaleRetrun-5360110c.js";import{__tla as ye}from"./AfterSaleInfo-a9b92557.js";import{__tla as he}from"./el-image-27385f7d.js";import{__tla as ve}from"./AfterSaleSpuInfo-38d875b7.js";import{__tla as be}from"./AfterSaleDisagreeForm-107ba2ef.js";let la,we=Promise.all([(()=>{try{return ya}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Qa}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 ue}catch{}})(),(()=>{try{return _e}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{}})()]).then(async()=>{let M,j,z,F,L,P,I,q,H,W,K;M={class:"search"},j={style:{"text-align":"right"},class:"search-input"},z={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},F=["title"],L={style:{display:"flex"}},P={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"}},I=["src"],q={style:{"line-height":"25px"}},H={key:0},W=[(b=>(Ia("data-v-1f1e0589"),b=b(),qa(),b))(()=>n("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u552E\u540E\u9000\u6B3E",-1))],K=ha({name:"TradeAfterSale",__name:"index",setup(b){const ta=va(),k=ba(()=>ta.getMobile),w=_(!1),ra=()=>{w.value=!w.value},A=()=>{w.value=!1},O=_(),{push:oa}=wa(),S=_(!0),B=_(0),N=_([]),p=_([]),G=_();_("");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()=>{S.value=!0;try{const s=Na(t);s.status==="0"&&delete s.status;const r=await Ba(s);N.value=r.list,B.value=r.total}finally{S.value=!1,ua()}},d=async()=>{t.pageNo=1,await h(),A()},sa=()=>{var s;(s=G.value)==null||s.resetFields(),t.shopId=void 0,A(),d()},na=async s=>{t.status=s.paneName,await h()},ua=async()=>{const s=_({...t}),r=await Ga(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 J=_([]);return xa(async()=>{await(async()=>{S.value=!0;const s=await Ja();J.value=s})(),await h();for(const s of C(T.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,Q=Ua,V=Ya,E=Ra,D=Ca,U=Ma,i=ja,_a=za,X=Fa,Z=La,ia=Pa,ca=Ka,pa=fa;return u(),c(f,null,[n("div",M,[e(k)?ea("",!0):(u(),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(()=>[(u(!0),c(f,null,v(e(p),a=>(u(),m(g,{key:a.label,label:a.label+"("+a.count+")",name:a.value},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),n("div",j,[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(Q,{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"])])]),Ta(n("div",{class:"searchMore",style:Aa({width:e(k)?"83.7%":"96%"})},[l(ia,{ref_key:"queryFormRef",ref:G,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(()=>[(u(!0),c(f,null,v(e(J),a=>(u(),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(()=>[(u(!0),c(f,null,v(e(C)(e(T).TRADE_AFTER_SALE_WAY),a=>(u(),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(()=>[(u(!0),c(f,null,v(e(C)(e(T).TRADE_AFTER_SALE_TYPE),a=>(u(),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(_a,{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(X,null,{default:o(()=>[l(i,null,{default:o(()=>[l(V,{onClick:A},{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(Q,{class:"mr-5px",icon:"ep:search"}),R(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],4),[[ka,e(w)]]),l(Z,null,{default:o(()=>[(u(!0),c(f,null,v(e(N),(a,da)=>(u(),m(X,{class:"card",key:da,span:7,xl:7,lg:7,md:7,sm:24,xs:24},{default:o(()=>[l(ca,{onClick:ge=>(($,aa)=>{if(k.value){const ma=JSON.stringify(aa);oa({name:"AfterSaleMobileTab",query:{type:$,obj:ma}})}else O.value.open($,aa)})("view",a)},{default:o(()=>[n("div",z,[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",L,[n("div",P,[n("img",{src:a.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,I)]),n("div",q,[n("p",null,"\uFFE5"+y(e(Sa)(a.refundPrice)),1),n("p",null,y(a.orderNo),1),n("p",null,y(a.user.nickname),1),n("p",null,y(e(Xa)(e(T).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(N).length==0?(u(),c("div",H,[...W])):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(B),onPagination:h},null,8,["limit","page","total"]),l(le,{ref_key:"AfterSaleTabsRef",ref:O,onSuccess:h},null,512)],64)}}}),la=Ha(K,[["__scopeId","data-v-1f1e0589"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/afterSale/index.vue"]])});export{we as __tla,la as default};
|