1 |
- import{_ as ve,__tla as be}from"./index-c8f58bd0.js";import{d as we,Y as ge,K as xe,r as _,u as Ve,e as ke,l as Te,Q as Ne,o as n,c,g as u,a,v as f,w as o,F as y,q as b,P as Y,f as t,dG as Ae,R as N,x as le,a4 as Se,n as C,au as Ue,t as h,aS as Ee,e2 as De,at as Re,a_ as Ye,W as Ce,X as je,j as ze,C as Fe,V as Me,y as Pe,z as Le,A as He,B as Ie,E as Ke,i as qe,D as We,aT as Xe,p as Oe,k as Qe,_ as Be,__tla as Ge}from"./index-11e4820e.js";import{E as Je,__tla as Ze}from"./el-card-919c14be.js";import{i as $e,j as ea,h as aa,__tla as la}from"./index-63b1dc70.js";import{d as j,D as A,b as ta,__tla as ra}from"./dict-4072dcec.js";import{f as oa,__tla as sa}from"./formatTime-f6a2c881.js";import{__tla as ua}from"./index-4203485c.js";import na,{__tla as _a}from"./AfterSaleTabs-a89d16c2.js";import{__tla as ia}from"./index-dd73c59d.js";import{__tla as ca}from"./el-image-viewer-c4f5814f.js";import{__tla as pa}from"./ContentWrap-694014d4.js";import{__tla as da}from"./ContentWrap.vue_vue_type_script_setup_true_lang-11f85821.js";import{__tla as ma}from"./SPuUploadImg-7c6bd56b.js";import{__tla as fa}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-8854a0f2.js";import{__tla as ya}from"./useMessage-06ddf735.js";import{__tla as ha}from"./Dialog-bbfaf85c.js";import{__tla as va}from"./AfterSaleBaseInfo-fc4b7326.js";import{__tla as ba}from"./AfterSaleLog-11f837f5.js";import{__tla as wa}from"./el-descriptions-item-4246212b.js";import{__tla as ga}from"./el-timeline-item-52f21599.js";import{__tla as xa}from"./AfterSaleRetrun-14028fad.js";import{__tla as Va}from"./AfterSaleInfo-b2f71f07.js";import{__tla as ka}from"./el-image-17e8bc54.js";import{__tla as Ta}from"./AfterSaleSpuInfo-1accc158.js";import{__tla as Na}from"./AfterSaleDisagreeForm-754cafe9.js";let te,Aa=Promise.all([(()=>{try{return be}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return Ze}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Na}catch{}})()]).then(async()=>{let z,F,M,P,L,H,I,K,q,W,X,O;z={class:"search"},F={style:{"text-align":"right"},class:"search-input"},M={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},P=["title"],L=["onClick"],H={style:{display:"flex"}},I={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"}},K=["src"],q={style:{"line-height":"25px"}},W={key:0},X=[(w=>(Oe("data-v-1f1e0589"),w=w(),Qe(),w))(()=>u("p",{style:{"text-align":"center","margin-top":"100px"}},"\u6682\u65E0\u552E\u540E\u9000\u6B3E",-1))],O=we({name:"TradeAfterSale",__name:"index",setup(w){const re=ge(),g=xe(()=>re.getMobile),x=_(!1),oe=()=>{x.value=!x.value},S=()=>{x.value=!1},Q=_(),B=(s,l)=>{if(g.value){const m=JSON.stringify(l);se({name:"AfterSaleMobileTab",query:{type:s,obj:m}})}else Q.value.open(s,l)},{push:se}=Ve(),U=_(!0),G=_(0),E=_([]),d=_([]),J=_();_("");const r=ke({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}),v=async()=>{U.value=!0;try{const s=Ye(r);s.status==="0"&&delete s.status;const l=await $e(s);E.value=l.list,G.value=l.total}finally{U.value=!1,_e()}},p=async()=>{r.pageNo=1,await v(),S()},ue=()=>{var s;(s=J.value)==null||s.resetFields(),r.shopId=void 0,S(),p()},ne=async s=>{r.status=s.paneName,await v()},_e=async()=>{const s=_({...r}),l=await ea(s.value);for(let m in d.value)for(let V in l)try{d.value[m].value==V&&(d.value[m].count=l[V])}finally{continue}};let Z=_([]);return Te(async()=>{await(async()=>{U.value=!0;const s=await aa();Z.value=s})(),await v();for(const s of j(A.TRADE_AFTER_SALE_STATUS))d.value.push({label:s.label,value:s.value,count:0});console.log(d.value)}),(s,l)=>{const m=Ce,V=je,$=ze,k=Fe,T=Me,D=Pe,R=Le,i=He,ie=Ie,ee=Ke,ae=qe,ce=We,pe=Xe,de=Je,me=ve,fe=Ne("hasPermi");return n(),c(y,null,[u("div",z,[a(g)?Y("",!0):(n(),f(V,{key:0,modelValue:a(r).status,"onUpdate:modelValue":l[0]||(l[0]=e=>a(r).status=e),class:"parent-tabs",onTabClick:ne},{default:o(()=>[(n(!0),c(y,null,b(a(d),e=>(n(),f(m,{key:e.label,label:e.label+"("+e.count+")",name:e.value},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),u("div",F,[t(T,{modelValue:a(r).orderNo,"onUpdate:modelValue":l[1]||(l[1]=e=>a(r).orderNo=e),placeholder:"\u8BA2\u5355\u7F16\u53F7",onKeyup:N(p,["enter"])},{suffix:o(()=>[t($,{class:"mr-5px",icon:"ep:search",onClick:p,style:{cursor:"pointer"}})]),append:o(()=>[t(k,{icon:a(Ae),onClick:oe},null,8,["icon"])]),_:1},8,["modelValue"])])]),le(u("div",{class:"searchMore",style:Ue({width:a(g)?"83.7%":"96%"})},[t(ce,{ref_key:"queryFormRef",ref:J,inline:!0,model:a(r),"label-width":"68px"},{default:o(()=>[t(i,{label:"\u5E97\u94FA\u540D\u79F0"},{default:o(()=>[t(R,{modelValue:a(r).shopId,"onUpdate:modelValue":l[2]||(l[2]=e=>a(r).shopId=e),placeholder:"\u8BF7\u9009\u62E9",filterable:""},{default:o(()=>[(n(!0),c(y,null,b(a(Z),e=>(n(),f(D,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(i,{label:"\u5546\u54C1\u540D\u79F0",prop:"spuName"},{default:o(()=>[t(T,{modelValue:a(r).spuName,"onUpdate:modelValue":l[3]||(l[3]=e=>a(r).spuName=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1 SPU \u540D\u79F0",onKeyup:N(p,["enter"])},null,8,["modelValue"])]),_:1}),t(i,{label:"\u9000\u6B3E\u7F16\u53F7",prop:"no"},{default:o(()=>[t(T,{modelValue:a(r).no,"onUpdate:modelValue":l[4]||(l[4]=e=>a(r).no=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u9000\u6B3E\u7F16\u53F7",onKeyup:N(p,["enter"])},null,8,["modelValue"])]),_:1}),t(i,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"orderNo"},{default:o(()=>[t(T,{modelValue:a(r).orderNo,"onUpdate:modelValue":l[5]||(l[5]=e=>a(r).orderNo=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u7F16\u53F7",onKeyup:N(p,["enter"])},null,8,["modelValue"])]),_:1}),t(i,{label:"\u552E\u540E\u65B9\u5F0F",prop:"way"},{default:o(()=>[t(R,{modelValue:a(r).way,"onUpdate:modelValue":l[6]||(l[6]=e=>a(r).way=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u552E\u540E\u65B9\u5F0F"},{default:o(()=>[(n(!0),c(y,null,b(a(j)(a(A).TRADE_AFTER_SALE_WAY),e=>(n(),f(D,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(i,{label:"\u552E\u540E\u7C7B\u578B",prop:"type"},{default:o(()=>[t(R,{modelValue:a(r).type,"onUpdate:modelValue":l[7]||(l[7]=e=>a(r).type=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u552E\u540E\u7C7B\u578B"},{default:o(()=>[(n(!0),c(y,null,b(a(j)(a(A).TRADE_AFTER_SALE_TYPE),e=>(n(),f(D,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[t(ie,{modelValue:a(r).createTime,"onUpdate:modelValue":l[8]||(l[8]=e=>a(r).createTime=e),"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(ae,null,{default:o(()=>[t(ee,null,{default:o(()=>[t(i,null,{default:o(()=>[t(k,{onClick:S},{default:o(()=>[C(" \u6536\u8D77 ")]),_:1}),t(k,{onClick:ue},{default:o(()=>[C(" \u91CD\u7F6E ")]),_:1}),t(k,{onClick:p,plain:"",type:"primary"},{default:o(()=>[t($,{class:"mr-5px",icon:"ep:search"}),C(" \u641C\u7D22 ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],4),[[Se,a(x)]]),t(ae,null,{default:o(()=>[(n(!0),c(y,null,b(a(E),(e,ye)=>(n(),f(ee,{class:"card",key:ye,span:7,xl:7,lg:7,md:7,sm:24,xs:24},{default:o(()=>[t(de,{onClick:he=>B("view",e)},{default:o(()=>[u("div",M,[u("p",{style:{width:"100%","white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden","font-size":"16px",color:"#000"},title:e.spuName},h(e.spuName),9,P),a(g)?Y("",!0):le((n(),c("div",{key:0,class:"setting",onClick:Ee(he=>B("update",e),["stop"])},[t(pe,{size:"20",color:"rgb(220 223 231)"},{default:o(()=>[t(a(De))]),_:1})],8,L)),[[fe,["system:user:update"]]])]),u("div",H,[u("div",I,[u("img",{src:e.picUrl,style:{width:"100%",height:"100%","object-fit":"cover","object-position":"center"}},null,8,K)]),u("div",q,[u("p",null,"\uFFE5"+h(a(Re)(e.refundPrice)),1),u("p",null,h(e.orderNo),1),u("p",null,h(e.user.nickname),1),u("p",null,h(a(ta)(a(A).TRADE_AFTER_SALE_WAY,e.way)),1),u("p",null,h(a(oa)(e.createTime,"YYYY-MM-DD HH:mm")),1)])])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),a(E).length==0?(n(),c("div",W,[...X])):Y("",!0),t(me,{limit:a(r).pageSize,"onUpdate:limit":l[9]||(l[9]=e=>a(r).pageSize=e),page:a(r).pageNo,"onUpdate:page":l[10]||(l[10]=e=>a(r).pageNo=e),total:a(G),onPagination:v},null,8,["limit","page","total"]),t(na,{ref_key:"AfterSaleTabsRef",ref:Q,onSuccess:v},null,512)],64)}}}),te=Be(O,[["__scopeId","data-v-1f1e0589"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/trade/afterSale/index.vue"]])});export{Aa as __tla,te as default};
|