1 |
- import{_ as ia,__tla as pa}from"./index.vue_vue_type_script_setup_true_lang-cd12277f.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,B as u,a as e,C as d,A as o,F as f,Q as v,a2 as Q,f as r,aC as ba,a4 as R,k as ga,v as wa,D as Y,aG as Va,E as y,dx as Ta,cM as ka,a9 as xa,aa as Aa,_ as Na,J as Sa,a8 as Ea,R as Ua,S as Da,U as Ra,I as Ya,K as Ca,V as Ma,H as Fa,L as Ia,M as Pa,__tla as Ha}from"./index-6e0fa573.js";import{E as La,__tla as ja}from"./el-card-f999e23d.js";import{i as Ka,j as za,g as Wa,__tla as qa}from"./index-41b6ecec.js";import{b as C,D as k,d as Ja,__tla as Ba}from"./dict-33efee75.js";import{f as Ga,__tla as Oa}from"./formatTime-4408999b.js";import{__tla as Qa}from"./index-f34352a4.js";import{I as Xa,__tla as Za}from"./ImageCard-2e4257de.js";import{_ as $a,__tla as ae}from"./AfterSaleTabs.vue_vue_type_style_index_0_lang-fcf1b786.js";import{_ as ee}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as le}from"./index-99c4720b.js";import{__tla as te}from"./el-image-viewer-bd37a3c0.js";import{__tla as re}from"./ContentWrap.vue_vue_type_script_setup_true_lang-bed37a76.js";import{__tla as oe}from"./SPuUploadImg-57a4a7e3.js";import{__tla as se}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-16273a08.js";import{__tla as _e}from"./useMessage-7f978edc.js";import{__tla as ue}from"./Dialog-a16029e3.js";import{__tla as ne}from"./AfterSaleBaseInfo-84cd9c74.js";import{__tla as ce}from"./AfterSaleLog-d3bbefbc.js";import{__tla as ie}from"./el-descriptions-item-868c8d3f.js";import{__tla as pe}from"./el-timeline-item-248613ef.js";import{__tla as me}from"./AfterSaleRetrun-eec1aac7.js";import{__tla as de}from"./AfterSaleInfo-80c9f725.js";import{__tla as fe}from"./el-image-f27c893c.js";import{__tla as ye}from"./AfterSaleSpuInfo-c90124eb.js";import{__tla as he}from"./AfterSaleDisagreeForm.vue_vue_type_script_setup_true_lang-5d1584b2.js";let X,ve=Promise.all([(()=>{try{return pa}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return ae}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 ce}catch{}})(),(()=>{try{return ie}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 M,F,I,P,H,L,j;M={class:"search"},F={style:{"text-align":"right"},class:"search-input"},I={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"5px"}},P=["title"],H={key:0},L=[(b=>(Ia("data-v-524f3387"),b=b(),Pa(),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(),x=fa(()=>Z.getMobile),g=n(!1),$=()=>{g.value=!g.value},A=()=>{g.value=!1},K=n(),{push:aa}=ya(),N=n(!0),z=n(0),S=n([]),i=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()=>{N.value=!0;try{const s=ka(l);s.status==="0"&&delete s.status;const t=await Ka(s);S.value=t.list,z.value=t.total}finally{N.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 za(s.value);for(let w in i.value)for(let V in t)try{i.value[w].value==V&&(i.value[w].count=t[V])}finally{continue}};let q=n([]);return va(async()=>{await(async()=>{N.value=!0;const s=await Wa();q.value=s})(),await h();for(const s of C(k.TRADE_AFTER_SALE_STATUS))i.value.push({label:s.label,value:s.value,count:0});console.log(i.value)}),(s,t)=>{const w=xa,V=Aa,J=Na,T=Sa,E=Ea,U=Ua,D=Da,m=Ra,ra=Ya,B=Ca,oa=Ma,sa=La,_a=Fa,ua=ia;return _(),c(f,null,[u("div",M,[e(x)?Q("",!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),c(f,null,v(e(i),a=>(_(),d(w,{key:a.label,label:a.label+"("+a.count+")",name:a.value},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])),u("div",F,[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(x)?"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(D,{modelValue:e(l).shopId,"onUpdate:modelValue":t[2]||(t[2]=a=>e(l).shopId=a),placeholder:"\u8BF7\u9009\u62E9",filterable:""},{default:o(()=>[(_(!0),c(f,null,v(e(q),a=>(_(),d(U,{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(D,{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),c(f,null,v(e(C)(e(k).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}),r(m,{label:"\u552E\u540E\u7C7B\u578B",prop:"type"},{default:o(()=>[r(D,{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),c(f,null,v(e(C)(e(k).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}),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(B,{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(B,null,{default:o(()=>[(_(!0),c(f,null,v(e(S),(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=>((G,O)=>{if(x.value){const ca=JSON.stringify(O);aa({name:"AfterSaleMobileTab",query:{type:G,obj:ca}})}else K.value.open(G,O)})("view",a)},{default:o(()=>[u("div",I,[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)]),r(Xa,{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(Ja)(e(k).TRADE_AFTER_SALE_WAY,a.way)),1),u("p",null,y(e(Ga)(a.createTime,"YYYY-MM-DD HH:mm")),1)]),_:2},1032,["url"])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),e(S).length==0?(_(),c("div",H,L)):Q("",!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(z),onPagination:h},null,8,["limit","page","total"]),r($a,{ref_key:"AfterSaleTabsRef",ref:K,onSuccess:h},null,512)],64)}}}),X=ee(j,[["__scopeId","data-v-524f3387"]])});export{ve as __tla,X as default};
|