1 |
- import{_ as fa,__tla as ya}from"./index.vue_vue_type_script_setup_true_lang-ca67dc77.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 d,A as o,F as m,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 f,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 La,V as za,L as Ha,M as Ia,__tla as Ka}from"./index-a9d538d5.js";import{E as qa,__tla as Ja}from"./el-card-0ea446a3.js";import{i as Oa,j as Wa,g as Ba,__tla as Ga}from"./index-95f2e02a.js";import{b as C,D as T,d as Qa,__tla as Xa}from"./dict-0e53af99.js";import{f as Za,__tla as $a}from"./formatTime-8985a9d0.js";import{__tla as ae}from"./index-ab25a150.js";import{_ as ee,__tla as le}from"./AfterSaleTabs.vue_vue_type_style_index_0_lang-5846ee80.js";import{_ as te}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as re}from"./index-95ad39b3.js";import{__tla as oe}from"./el-image-viewer-2e77a3e7.js";import{__tla as se}from"./ContentWrap.vue_vue_type_script_setup_true_lang-6b7b4656.js";import{__tla as ue}from"./SPuUploadImg-40b4a494.js";import{__tla as _e}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-7f19656e.js";import{__tla as ne}from"./useMessage-d5cbbfad.js";import{__tla as ie}from"./Dialog-f354f369.js";import{__tla as ce}from"./AfterSaleBaseInfo-99469d79.js";import{__tla as pe}from"./AfterSaleLog-5ef371e3.js";import{__tla as de}from"./el-descriptions-item-fc5f9080.js";import{__tla as me}from"./el-timeline-item-f8774d6b.js";import{__tla as fe}from"./AfterSaleRetrun-dd1b81e9.js";import{__tla as ye}from"./AfterSaleInfo-0f86b368.js";import{__tla as he}from"./el-image-2dadd73e.js";import{__tla as ve}from"./AfterSaleSpuInfo-fa27f85b.js";import{__tla as be}from"./AfterSaleDisagreeForm.vue_vue_type_script_setup_true_lang-22cbd398.js";let la,ge=Promise.all([(()=>{try{return ya}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Ja}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,L,z,H,I,K,q,J;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"],L={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"}},H=["src"],I={style:{"line-height":"25px"}},K={key:0},q=[(b=>(Ha("data-v-86106d1a"),b=b(),Ia(),b))(()=>u("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u552E\u540E\u9000\u6B3E",-1))],J=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},O=n(),{push:oa}=ga(),S=n(!0),W=n(0),N=n([]),y=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 Oa(s);N.value=r.list,W.value=r.total}finally{S.value=!1,_a()}},p=async()=>{t.pageNo=1,await h(),A()},sa=()=>{var s;(s=B.value)==null||s.resetFields(),t.shopId=void 0,A(),p()},ua=async s=>{t.status=s.paneName,await h()},_a=async()=>{const s=n({...t}),r=await Wa(s.value);for(let w in y.value)for(let x in r)try{y.value[w].value==x&&(y.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))y.value.push({label:s.label,value:s.value,count:0})}),(s,r)=>{const w=Ea,x=Ua,Q=Da,V=Ra,E=Ya,U=Ca,D=Ma,i=ja,na=Fa,X=Pa,Z=La,ia=za,ca=qa,pa=fa;return _(),c(m,null,[u("div",M,[e(k)?ea("",!0):(_(),d(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(m,null,v(e(y),a=>(_(),d(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(p,["enter"])},{suffix:o(()=>[l(Q,{class:"mr-5px",icon:"ep:search",onClick:p,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(m,null,v(e(G),a=>(_(),d(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(p,["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(p,["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(m,null,v(e(C)(e(T).TRADE_AFTER_SALE_WAY),a=>(_(),d(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(m,null,v(e(C)(e(T).TRADE_AFTER_SALE_TYPE),a=>(_(),d(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:p,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(m,null,v(e(N),(a,da)=>(_(),d(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 O.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},f(a.spuName),9,P)]),u("div",L,[u("div",z,[u("img",{src:a.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,H)]),u("div",I,[u("p",null,"\uFFE5"+f(e(Sa)(a.refundPrice)),1),u("p",null,f(a.orderNo),1),u("p",null,f(a.user.nickname),1),u("p",null,f(e(Qa)(e(T).TRADE_AFTER_SALE_WAY,a.way)),1),u("p",null,f(e(Za)(a.createTime,"YYYY-MM-DD HH:mm")),1)])])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),e(N).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(W),onPagination:h},null,8,["limit","page","total"]),l(ee,{ref_key:"AfterSaleTabsRef",ref:O,onSuccess:h},null,512)],64)}}}),la=te(J,[["__scopeId","data-v-86106d1a"]])});export{ge as __tla,la as default};
|