AfterSale-64e4ab75.js 3.1 KB

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