1 |
- import{_ as R,__tla as j}from"./index.vue_vue_type_script_setup_true_lang-ca67dc77.js";import{c as F,D as O,__tla as B}from"./dict-0e53af99.js";import{a as L,__tla as Q}from"./index-6451d5a2.js";import{a as q,b as w,__tla as C}from"./index-95f2e02a.js";import{d as G,r as d,b as H,a as l,o as n,c as u,F as J,Q as K,B as s,E as p,dx as V,f as W,__tla as X}from"./index-a9d538d5.js";import{_ as Y}from"./_plugin-vue_export-helper-1b428a4d.js";let z,Z=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return C}catch{}})(),(()=>{try{return X}catch{}})()]).then(async()=>{let _,m,y,f,v,g,S,b,h,I,A,N,x;_={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"],b={class:"details"},h={class:"product-model"},I={class:"first-aftersale"},A={class:"first-aftersale"},N=["title"],x={style:{clear:"both","margin-right":"20px"}},z=Y(G({__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(D){const r=D,o=d({pageNo:1,pageSize:10,merchantId:r.merId,spuId:r.productId,userId:r.userId}),c=d(0),U=async()=>{r.openSource=="Merchant"?M(o.value):r.openSource=="Spu"?T(o.value):r.openSource=="MemberUser"&&k(o.value)},i=d({}),M=async e=>{let t=await q(e);c.value=t.total,i.value=t.list},T=async e=>{let t=await w(e);c.value=t.total,i.value=t.list},k=async e=>{let t=await w(e);c.value=t.total,i.value=t.list};return H(async()=>{r.openSource=="MemberUser"||r.openSource=="Merchant"||r.openSource=="Spu"?U():r.openSource=="Order"&&(async()=>{let e=await L(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(J,null,K(l(i),a=>{var E;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",b,[s("p",h,p((E=l(F)(l(O).TRADE_AFTER_SALE_STATUS,a==null?void 0:a.status))==null?void 0:E.label),1),s("p",I,"\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",x,[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:U},null,8,["limit","page","total"])])]))}}}),[["__scopeId","data-v-899203e3"]])});export{z as A,Z as __tla};
|