1 |
- import{_ as R,__tla as j}from"./index.vue_vue_type_script_setup_true_lang-cd12277f.js";import{c as F,D as O,__tla as B}from"./dict-33efee75.js";import{a as L,__tla as Q}from"./index-01fa4814.js";import{a as q,b as w,__tla as C}from"./index-41b6ecec.js";import{d as G,r as _,b as H,a as l,o as u,c as d,F as J,Q as K,B as s,E as n,dx as V,f as W,__tla as X}from"./index-6e0fa573.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,g,v,f,S,I,b,h,A,N,x,U;m={key:0,style:{"text-align":"center","margin-top":"50px","font-size":"14px"}},y={key:1},g={class:"rating-title"},v={class:"content"},f={class:"content-image"},S={class:"image"},I=["src"],b={class:"details"},h={class:"product-model"},A={class:"first-aftersale"},N={class:"first-aftersale"},x=["title"],U={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 t=D,o=_({pageNo:1,pageSize:10,merchantId:t.merId,spuId:t.productId,userId:t.userId}),p=_(0),i=async()=>{t.openSource=="Merchant"?E(o.value):t.openSource=="Spu"?T(o.value):t.openSource=="MemberUser"&&k(o.value)},c=_({}),E=async r=>{let e=await q(r);p.value=e.total,c.value=e.list},T=async r=>{let e=await w(r);p.value=e.total,c.value=e.list},k=async r=>{let e=await w(r);p.value=e.total,c.value=e.list};return H(async()=>{console.log("\u516C\u5171\u552E\u540E\u9875\u9762\uFF0C\u8FDB\u6765\u7684\u7C7B\u578B\u662F:",t.openSource),t.openSource=="MemberUser"?(console.log("\u505A\u76F8\u5E94\u7684\u5904\u7406"),i()):t.openSource=="Merchant"?(i(),console.log("\u5546\u6237")):t.openSource=="Spu"?(i(),console.log("\u5546\u54C1")):t.openSource=="Order"&&(console.log(t.orderId),(async()=>{let r=await L(t.orderId);Array.isArray(r)||r==null||(r=[r]),c.value=r})())}),(r,e)=>{const P=R;return l(c)==null||l(c)==""?(u(),d("div",m," \u6682\u65E0\u552E\u540E\u8BB0\u5F55 ")):(u(),d("div",y,[(u(!0),d(J,null,K(l(c),a=>{var M;return u(),d("div",{class:"aftersale-container",key:a},[s("h3",g,n(a==null?void 0:a.spuName),1),s("div",v,[s("div",f,[s("div",S,[s("img",{src:a==null?void 0:a.picUrl},null,8,I)])]),s("div",b,[s("p",h,n((M=l(F)(l(O).TRADE_AFTER_SALE_STATUS,a==null?void 0:a.status))==null?void 0:M.label),1),s("p",A,"\u9000\u6B3E\uFF1A"+n(l(V)(a==null?void 0:a.refundPrice))+"\u5143",1),s("p",N,"\u539F\u7531\uFF1A"+n((a==null?void 0:a.applyReason)||"\u65E0"),1),s("p",{class:"aftersale-comment",title:a==null?void 0:a.applyDescription},"\u63CF\u8FF0\uFF1A"+n((a==null?void 0:a.applyDescription)||"\u65E0"),9,x)])])])}),128)),s("div",U,[W(P,{limit:l(o).pageSize,"onUpdate:limit":e[0]||(e[0]=a=>l(o).pageSize=a),page:l(o).pageNo,"onUpdate:page":e[1]||(e[1]=a=>l(o).pageNo=a),total:l(p),onPagination:i},null,8,["limit","page","total"])])]))}}}),[["__scopeId","data-v-899203e3"]])});export{z as A,Z as __tla};
|