1 |
- import{_ as R,__tla as j}from"./index.vue_vue_type_script_setup_true_lang-2534a34f.js";import{c as F,D as O,__tla as L}from"./dict-0fdd6c74.js";import{a as q,__tla as B}from"./index-cd8f4967.js";import{d as C,e as k,__tla as G}from"./index-3ebb11c3.js";import{d as H,r as d,k as J,a as l,o as n,c as u,F as K,n as Q,g as s,t as p,as as V,f as W,__tla as X}from"./index-73e02845.js";import{_ as Y}from"./_plugin-vue_export-helper-1b428a4d.js";let w,Z=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return X}catch{}})()]).then(async()=>{let _,m,y,f,v,g,S,h,I,b,A,N,U;_={key:0,style:{"text-align":"center","margin-top":"50px","font-size":"14px"}},m={key:1},y={class:"rating-title"},f={class:"content"},v={class:"content-image"},g={class:"image"},S=["src"],h={class:"details"},I={class:"product-model"},b={class:"first-aftersale"},A={class:"first-aftersale"},N=["title"],U={style:{clear:"both","margin-right":"20px"}},w=Y(H({__name:"AfterSale",props:{obj:{type:Object,default:()=>{}},openSource:{type:String,default:""},merId:{type:Number,default:void 0},productId:{type:Number,default:void 0},orderId:{type:Number,default:0},userId:{type:Number,default:void 0}},setup(z){const r=z,o=d({pageNo:1,pageSize:10,merchantId:r.merId,spuId:r.productId,userId:r.userId}),c=d(0),x=async()=>{r.openSource=="Merchant"?D(o.value):r.openSource=="Spu"?T(o.value):r.openSource=="MemberUser"&&E(o.value)},i=d({}),D=async e=>{let t=await C(e);c.value=t.total,i.value=t.list},T=async e=>{let t=await k(e);c.value=t.total,i.value=t.list},E=async e=>{let t=await k(e);c.value=t.total,i.value=t.list};return J(async()=>{r.openSource=="MemberUser"||r.openSource=="Merchant"||r.openSource=="Spu"?x():r.openSource=="Order"&&(async()=>{let e=await q(r.orderId);Array.isArray(e)||e==null||(e=[e]),i.value=e})()}),(e,t)=>{const P=R;return l(i)==null||l(i)==""?(n(),u("div",_," \u6682\u65E0\u552E\u540E\u8BB0\u5F55 ")):(n(),u("div",m,[(n(!0),u(K,null,Q(l(i),a=>{var M;return n(),u("div",{class:"aftersale-container",key:a},[s("h3",y,p(a==null?void 0:a.spuName),1),s("div",f,[s("div",v,[s("div",g,[s("img",{src:a==null?void 0:a.picUrl},null,8,S)])]),s("div",h,[s("p",I,p((M=l(F)(l(O).TRADE_AFTER_SALE_STATUS,a==null?void 0:a.status))==null?void 0:M.label),1),s("p",b,"\u9000\u6B3E\uFF1A"+p(l(V)(a==null?void 0:a.refundPrice))+"\u5143",1),s("p",A,"\u539F\u7531\uFF1A"+p((a==null?void 0:a.applyReason)||"\u65E0"),1),s("p",{class:"aftersale-comment",title:a==null?void 0:a.applyDescription},"\u63CF\u8FF0\uFF1A"+p((a==null?void 0:a.applyDescription)||"\u65E0"),9,N)])])])}),128)),s("div",U,[W(P,{limit:l(o).pageSize,"onUpdate:limit":t[0]||(t[0]=a=>l(o).pageSize=a),page:l(o).pageNo,"onUpdate:page":t[1]||(t[1]=a=>l(o).pageNo=a),total:l(c),onPagination:x},null,8,["limit","page","total"])])]))}}}),[["__scopeId","data-v-4d70b030"]])});export{w as A,Z as __tla};
|