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