1 |
- import{_ as fa,__tla as ya}from"./index.vue_vue_type_script_setup_true_lang-cf2a6735.js";import{d as ha,y as va,e as ba,r as n,u as ga,x as wa,b as xa,o as _,c,B as u,a as e,C as m,A as o,F as f,Q as v,a2 as ea,f as l,aC as Va,a4 as R,k as Ta,v as ka,D as Y,aG as Aa,E as y,dx as Sa,cM as Na,a9 as Ea,aa as Ua,_ as Da,J as Ra,a8 as Ya,R as Ca,S as Ma,U as ja,I as Fa,H as Pa,K as Ha,V as za,L as Ia,M as Ka,__tla as La}from"./index-1f518666.js";import{E as Wa,__tla as qa}from"./el-card-955661ed.js";import{i as Ja,j as Oa,g as Ba,__tla as Ga}from"./index-eb0421d0.js";import{b as C,D as T,d as Qa,__tla as Xa}from"./dict-167d9193.js";import{f as Za,__tla as $a}from"./formatTime-a4909bb5.js";import{__tla as ae}from"./index-32463859.js";import{_ as ee,__tla as le}from"./AfterSaleTabs.vue_vue_type_style_index_0_lang-231fd649.js";import{_ as te}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as re}from"./index-a37b14c7.js";import{__tla as oe}from"./el-image-viewer-91778fd6.js";import{__tla as se}from"./ContentWrap.vue_vue_type_script_setup_true_lang-a4de6de9.js";import{__tla as ue}from"./SPuUploadImg-41da98e4.js";import{__tla as _e}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-f02ca529.js";import{__tla as ne}from"./useMessage-633c11d2.js";import{__tla as ie}from"./Dialog-4c960d8c.js";import{__tla as ce}from"./AfterSaleBaseInfo-73c95bb1.js";import{__tla as pe}from"./AfterSaleLog-94485920.js";import{__tla as de}from"./el-descriptions-item-9cf2d6d9.js";import{__tla as me}from"./el-timeline-item-11f6201f.js";import{__tla as fe}from"./AfterSaleRetrun-0dceb30d.js";import{__tla as ye}from"./AfterSaleInfo-22aa514e.js";import{__tla as he}from"./el-image-1ae80d1a.js";import{__tla as ve}from"./AfterSaleSpuInfo-62287a5c.js";import{__tla as be}from"./AfterSaleDisagreeForm.vue_vue_type_script_setup_true_lang-43594721.js";let la,ge=Promise.all([(()=>{try{return ya}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return ae}catch{}})(),(()=>{try{return le}catch{}})(),(()=>{try{return re}catch{}})(),(()=>{try{return oe}catch{}})(),(()=>{try{return se}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return ne}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,F,P,H,z,I,K,L,W,q;M={class:"search"},j={style:{"text-align":"right"},class:"search-input"},F={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},P=["title"],H={style:{display:"flex"}},z={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"],K={style:{"line-height":"25px"}},L={key:0},W=[(b=>(Ia("data-v-9c117cad"),b=b(),Ka(),b))(()=>u("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u552E\u540E\u9000\u6B3E",-1))],q=ha({name:"TradeAfterSale",__name:"index",setup(b){const ta=va(),k=ba(()=>ta.getMobile),g=n(!1),ra=()=>{g.value=!g.value},A=()=>{g.value=!1},J=n(),{push:oa}=ga(),S=n(!0),O=n(0),N=n([]),p=n([]),B=n();n("");const t=wa({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 Ja(s);N.value=r.list,O.value=r.total}finally{S.value=!1,_a()}},d=async()=>{t.pageNo=1,await h(),A()},sa=()=>{var s;(s=B.value)==null||s.resetFields(),t.shopId=void 0,A(),d()},ua=async s=>{t.status=s.paneName,await h()},_a=async()=>{const s=n({...t}),r=await Oa(s.value);for(let w in p.value)for(let x in r)try{p.value[w].value==x&&(p.value[w].count=r[x])}finally{continue}};let G=n([]);return xa(async()=>{await(async()=>{S.value=!0;const s=await Ba();G.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 w=Ea,x=Ua,Q=Da,V=Ra,E=Ya,U=Ca,D=Ma,i=ja,na=Fa,X=Pa,Z=Ha,ia=za,ca=Wa,pa=fa;return _(),c(f,null,[u("div",M,[e(k)?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:ua},{default:o(()=>[(_(!0),c(f,null,v(e(p),a=>(_(),m(w,{key:a.label,label:a.label+"("+a.count+")",name:a.value},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),u("div",j,[l(E,{modelValue:e(t).orderNo,"onUpdate:modelValue":r[1]||(r[1]=a=>e(t).orderNo=a),placeholder:"\u8BA2\u5355\u53F7",onKeyup:R(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(u("div",{class:"searchMore",style:Aa({width:e(k)?"83.7%":"96%"})},[l(ia,{ref_key:"queryFormRef",ref:B,inline:!0,model:e(t),"label-width":"68px"},{default:o(()=>[l(i,{label:"\u5E97\u94FA\u540D\u79F0"},{default:o(()=>[l(D,{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(G),a=>(_(),m(U,{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:R(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:R(d,["enter"])},null,8,["modelValue"])]),_:1}),l(i,{label:"\u552E\u540E\u65B9\u5F0F",prop:"way"},{default:o(()=>[l(D,{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(T).TRADE_AFTER_SALE_WAY),a=>(_(),m(U,{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(D,{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(T).TRADE_AFTER_SALE_TYPE),a=>(_(),m(U,{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(na,{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(()=>[Y(" \u6536\u8D77 ")]),_:1}),l(V,{onClick:sa},{default:o(()=>[Y(" \u91CD\u7F6E ")]),_:1}),l(V,{onClick:d,plain:"",type:"primary"},{default:o(()=>[l(Q,{class:"mr-5px",icon:"ep:search"}),Y(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],4),[[ka,e(g)]]),l(Z,null,{default:o(()=>[(_(!0),c(f,null,v(e(N),(a,da)=>(_(),m(X,{class:"card",key:da,span:7,xl:7,lg:7,md:7,sm:24,xs:24},{default:o(()=>[l(ca,{onClick:we=>(($,aa)=>{if(k.value){const ma=JSON.stringify(aa);oa({name:"AfterSaleMobileTab",query:{type:$,obj:ma}})}else J.value.open($,aa)})("view",a)},{default:o(()=>[u("div",F,[u("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:a.spuName},y(a.spuName),9,P)]),u("div",H,[u("div",z,[u("img",{src:a.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,I)]),u("div",K,[u("p",null,"\uFFE5"+y(e(Sa)(a.refundPriceTotal)),1),u("p",null,y(a.orderNo),1),u("p",null,y(a.user.nickname),1),u("p",null,y(e(Qa)(e(T).TRADE_AFTER_SALE_WAY,a.way)),1),u("p",null,y(e(Za)(a.createTime,"YYYY-MM-DD HH:mm")),1)])])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),e(N).length==0?(_(),c("div",L,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(O),onPagination:h},null,8,["limit","page","total"]),l(ee,{ref_key:"AfterSaleTabsRef",ref:J,onSuccess:h},null,512)],64)}}}),la=te(q,[["__scopeId","data-v-9c117cad"]])});export{ge as __tla,la as default};
|