AfterSale-9e9db6c0.js 3.1 KB

1
  1. import{_ as R,__tla as j}from"./index-5771c6d6.js";import{d as F,r as m,l as O,a as r,o as u,c as d,F as L,v as Z,h as s,t as c,a$ as $,g as q,_ as B,__tla as C}from"./index-3fb48822.js";import{b as G,D as H,__tla as J}from"./dict-51415be4.js";import{a as K,__tla as Q}from"./index-01bff116.js";import{g as V,a as w,__tla as W}from"./index-72ebef64.js";let D,X=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return C}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})()]).then(async()=>{let _,y,f,g,v,S,h,I,b,A,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"},b={class:"product-model"},A={class:"first-aftersale"},x={class:"first-aftersale"},N=["title"],z={style:{clear:"both","margin-right":"20px"}},D=B(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(M){const t=M,o=m({pageNo:1,pageSize:10,merchantId:t.merId,spuId:t.productId,userId:t.userId}),i=m(0),p=async()=>{t.openSource=="Merchant"?T(o.value):t.openSource=="Spu"?k(o.value):t.openSource=="MemberUser"&&E(o.value)},n=m({}),T=async l=>{let e=await V(l);i.value=e.total,n.value=e.list},k=async l=>{let e=await w(l);i.value=e.total,n.value=e.list},E=async l=>{let e=await w(l);i.value=e.total,n.value=e.list};return O(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"),p()):t.openSource=="Merchant"?(p(),console.log("\u5546\u6237")):t.openSource=="Spu"?(p(),console.log("\u5546\u54C1")):t.openSource=="Order"&&(console.log(t.orderId),(async()=>{let l=await K(t.orderId);Array.isArray(l)||l==null||(l=[l]),n.value=l})())}),(l,e)=>{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(L,null,Z(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",b,c((U=r(G)(r(H).TRADE_AFTER_SALE_STATUS,a==null?void 0:a.status))==null?void 0:U.label),1),s("p",A,"\u9000\u6B3E\uFF1A"+c(r($)(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,[q(P,{limit:r(o).pageSize,"onUpdate:limit":e[0]||(e[0]=a=>r(o).pageSize=a),page:r(o).pageNo,"onUpdate:page":e[1]||(e[1]=a=>r(o).pageNo=a),total:r(i),onPagination:p},null,8,["limit","page","total"])])]))}}}),[["__scopeId","data-v-44a362ef"],["__file","D:/zx/mall-newfeifan-zx-admin/src/components/ZxTemplate/AfterSale/AfterSale.vue"]])});export{D as A,X as __tla};