index-e93a568d.js 8.4 KB

1
  1. import{_ as ca,__tla as pa}from"./index-e6a7fd1e.js";import{d as ma,y as da,e as fa,r as n,u as ya,x as ha,b as va,o as _,c as i,B as u,a as e,C as d,A as o,F as f,R as v,a3 as G,f as r,aD as ba,a5 as R,k as ga,v as wa,D as Y,aH as Va,E as y,dz as Ta,cT as xa,aa as ka,ab as Aa,Q as Sa,J as Na,a9 as Ea,S as Da,U as Ua,V as Ra,I as Ya,K as za,W as Ca,H as Ma,L as Fa,M as Ha,_ as Ia,__tla as Pa}from"./index-54aa57d8.js";import{E as ja,__tla as Ka}from"./el-card-e7d6628c.js";import{i as La,j as Wa,g as qa,__tla as Ja}from"./index-692b7677.js";import{b as z,D as x,d as Oa,__tla as Ba}from"./dict-573b3b04.js";import{f as Qa,__tla as Ga}from"./formatTime-e6197688.js";import{__tla as Xa}from"./index-1a846221.js";import{I as Za,__tla as $a}from"./ImageCard-dcb28e16.js";import ae,{__tla as ee}from"./AfterSaleTabs-c1371169.js";import{__tla as le}from"./index-254a9b5e.js";import{__tla as te}from"./el-image-viewer-ec0edec4.js";import{__tla as re}from"./ContentWrap-260746ab.js";import{__tla as oe}from"./SPuUploadImg-d377301f.js";import{__tla as se}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-03e554d4.js";import{__tla as _e}from"./useMessage-f56cafbb.js";import{__tla as ue}from"./Dialog-7bb778a5.js";import{__tla as ne}from"./AfterSaleBaseInfo-abd11c9f.js";import{__tla as ie}from"./AfterSaleLog-cbe888da.js";import{__tla as ce}from"./el-descriptions-item-347c85ca.js";import{__tla as pe}from"./el-timeline-item-24fd452f.js";import{__tla as me}from"./AfterSaleRetrun-aa2de06b.js";import{__tla as de}from"./AfterSaleInfo-9624ef8e.js";import{__tla as fe}from"./el-image-94dad5a7.js";import{__tla as ye}from"./AfterSaleSpuInfo-c5904bc0.js";import{__tla as he}from"./AfterSaleDisagreeForm-fbe35830.js";let X,ve=Promise.all([(()=>{try{return pa}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Ja}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ga}catch{}})(),(()=>{try{return Xa}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return ee}catch{}})(),(()=>{try{return le}catch{}})(),(()=>{try{return te}catch{}})(),(()=>{try{return re}catch{}})(),(()=>{try{return oe}catch{}})(),(()=>{try{return se}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return ie}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return pe}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return he}catch{}})()]).then(async()=>{let C,M,F,H,I,P,j;C={class:"search"},M={style:{"text-align":"right"},class:"search-input"},F={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},H=["title"],I={key:0},P=[(b=>(Fa("data-v-1f1e0589"),b=b(),Ha(),b))(()=>u("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u552E\u540E\u9000\u6B3E",-1))],j=ma({name:"TradeAfterSale",__name:"index",setup(b){const Z=da(),k=fa(()=>Z.getMobile),g=n(!1),$=()=>{g.value=!g.value},A=()=>{g.value=!1},K=n(),{push:aa}=ya(),S=n(!0),L=n(0),N=n([]),c=n([]),W=n();n("");const l=ha({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=xa(l);s.status==="0"&&delete s.status;const t=await La(s);N.value=t.list,L.value=t.total}finally{S.value=!1,ta()}},p=async()=>{l.pageNo=1,await h(),A()},ea=()=>{var s;(s=W.value)==null||s.resetFields(),l.shopId=void 0,A(),p()},la=async s=>{l.status=s.paneName,await h()},ta=async()=>{const s=n({...l}),t=await Wa(s.value);for(let w in c.value)for(let V in t)try{c.value[w].value==V&&(c.value[w].count=t[V])}finally{continue}};let q=n([]);return va(async()=>{await(async()=>{S.value=!0;const s=await qa();q.value=s})(),await h();for(const s of z(x.TRADE_AFTER_SALE_STATUS))c.value.push({label:s.label,value:s.value,count:0});console.log(c.value)}),(s,t)=>{const w=ka,V=Aa,J=Sa,T=Na,E=Ea,D=Da,U=Ua,m=Ra,ra=Ya,O=za,oa=Ca,sa=ja,_a=Ma,ua=ca;return _(),i(f,null,[u("div",C,[e(k)?G("",!0):(_(),d(V,{key:0,modelValue:e(l).status,"onUpdate:modelValue":t[0]||(t[0]=a=>e(l).status=a),class:"parent-tabs",onTabClick:la},{default:o(()=>[(_(!0),i(f,null,v(e(c),a=>(_(),d(w,{key:a.label,label:a.label+"("+a.count+")",name:a.value},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),u("div",M,[r(E,{modelValue:e(l).orderNo,"onUpdate:modelValue":t[1]||(t[1]=a=>e(l).orderNo=a),placeholder:"\u8BA2\u5355\u53F7",onKeyup:R(p,["enter"])},{suffix:o(()=>[r(J,{class:"mr-5px",icon:"ep:search",onClick:p,style:{cursor:"pointer"}})]),append:o(()=>[r(T,{icon:e(ba),onClick:$},null,8,["icon"])]),_:1},8,["modelValue"])])]),ga(u("div",{class:"searchMore",style:Va({width:e(k)?"83.7%":"96%"})},[r(oa,{ref_key:"queryFormRef",ref:W,inline:!0,model:e(l),"label-width":"80px"},{default:o(()=>[r(m,{label:"\u5E97\u94FA\u540D\u79F0"},{default:o(()=>[r(U,{modelValue:e(l).shopId,"onUpdate:modelValue":t[2]||(t[2]=a=>e(l).shopId=a),placeholder:"\u8BF7\u9009\u62E9",filterable:""},{default:o(()=>[(_(!0),i(f,null,v(e(q),a=>(_(),d(D,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(m,{label:"\u5546\u54C1\u540D\u79F0",prop:"spuName"},{default:o(()=>[r(E,{modelValue:e(l).spuName,"onUpdate:modelValue":t[3]||(t[3]=a=>e(l).spuName=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1 SPU \u540D\u79F0",onKeyup:R(p,["enter"])},null,8,["modelValue"])]),_:1}),r(m,{label:"\u9000\u6B3E\u7F16\u53F7",prop:"no"},{default:o(()=>[r(E,{modelValue:e(l).no,"onUpdate:modelValue":t[4]||(t[4]=a=>e(l).no=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u7F16\u53F7",onKeyup:R(p,["enter"])},null,8,["modelValue"])]),_:1}),r(m,{label:"\u552E\u540E\u65B9\u5F0F",prop:"way"},{default:o(()=>[r(U,{modelValue:e(l).way,"onUpdate:modelValue":t[5]||(t[5]=a=>e(l).way=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u552E\u540E\u65B9\u5F0F"},{default:o(()=>[(_(!0),i(f,null,v(e(z)(e(x).TRADE_AFTER_SALE_WAY),a=>(_(),d(D,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(m,{label:"\u552E\u540E\u7C7B\u578B",prop:"type"},{default:o(()=>[r(U,{modelValue:e(l).type,"onUpdate:modelValue":t[6]||(t[6]=a=>e(l).type=a),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u552E\u540E\u7C7B\u578B"},{default:o(()=>[(_(!0),i(f,null,v(e(z)(e(x).TRADE_AFTER_SALE_TYPE),a=>(_(),d(D,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),r(m,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[r(ra,{modelValue:e(l).createTime,"onUpdate:modelValue":t[7]||(t[7]=a=>e(l).createTime=a),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],"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}),r(O,{class:"pb-20px flex justify-end"},{default:o(()=>[r(T,{onClick:A},{default:o(()=>[Y(" \u6536\u8D77 ")]),_:1}),r(T,{onClick:ea},{default:o(()=>[Y(" \u91CD\u7F6E ")]),_:1}),r(T,{onClick:p,plain:"",type:"primary"},{default:o(()=>[r(J,{class:"mr-5px",icon:"ep:search"}),Y(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1},8,["model"])],4),[[wa,e(g)]]),r(O,null,{default:o(()=>[(_(!0),i(f,null,v(e(N),(a,na)=>(_(),d(_a,{class:"card",key:na,span:7,xl:7,lg:7,md:7,sm:24,xs:24},{default:o(()=>[r(sa,{onClick:be=>((B,Q)=>{if(k.value){const ia=JSON.stringify(Q);aa({name:"AfterSaleMobileTab",query:{type:B,obj:ia}})}else K.value.open(B,Q)})("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,H)]),r(Za,{url:a.picUrl,width:216,height:122},{label:o(()=>[u("p",null,"\uFFE5"+y(e(Ta)(a.refundPriceTotal)),1),u("p",null,y(a.orderNo),1),u("p",null,y(a.user.nickname),1),u("p",null,y(e(Oa)(e(x).TRADE_AFTER_SALE_WAY,a.way)),1),u("p",null,y(e(Qa)(a.createTime,"YYYY-MM-DD HH:mm")),1)]),_:2},1032,["url"])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),e(N).length==0?(_(),i("div",I,[...P])):G("",!0),r(ua,{limit:e(l).pageSize,"onUpdate:limit":t[8]||(t[8]=a=>e(l).pageSize=a),page:e(l).pageNo,"onUpdate:page":t[9]||(t[9]=a=>e(l).pageNo=a),total:e(L),onPagination:h},null,8,["limit","page","total"]),r(ae,{ref_key:"AfterSaleTabsRef",ref:K,onSuccess:h},null,512)],64)}}}),X=Ia(j,[["__scopeId","data-v-1f1e0589"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/afterSale/index.vue"]])});export{ve as __tla,X as default};