index-4b406aa7.js 8.6 KB

1
  1. import{_ as ua,__tla as _a}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{d as ca,I as oa,u as na,r as O,k as pa,o as c,c as C,f as a,w as e,m as s,t as u,a as t,as as N,F as R,n as S,q as y,O as v,g as b,at as ia,h as da,au as ya,B as ma,ak as fa,D as ba,G as ha,E as Ea,i as va,p as wa,j as Ta,__tla as ka}from"./index-2eab2d23.js";import{E as Aa,a as Ca,__tla as Ra}from"./el-timeline-item-eddfdd2c.js";import{E as Da,__tla as Pa}from"./el-image-2171f3ff.js";import{__tla as Na}from"./el-image-viewer-5d14bc77.js";import{E as Sa,a as ga,__tla as Fa}from"./el-descriptions-item-fd42286f.js";import{_ as Ia,__tla as La}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{g as Ya,a as Ua,r as xa,b as Oa,c as Ma,__tla as qa}from"./index-ba3cbabb.js";import{D as p,b as Va,c as ja,__tla as za}from"./dict-1ad71b6f.js";import{f as M,__tla as Ba}from"./formatTime-41155543.js";import{_ as Ga,__tla as Ha}from"./AfterSaleDisagreeForm.vue_vue_type_script_setup_true_lang-d71824d8.js";import{c as Ja,__tla as Qa}from"./index-d3f876ab.js";import{u as Wa,__tla as Ka}from"./tagsView-fd4f3d23.js";import{u as Xa,__tla as Za}from"./useMessage-171aa63e.js";import{_ as $a}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ae}from"./el-card-c558f0ec.js";import"./color-6e929987.js";import{__tla as ee}from"./Dialog-c2716df6.js";let q,te=Promise.all([(()=>{try{return _a}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return La}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ba}catch{}})(),(()=>{try{return Ha}catch{}})(),(()=>{try{return Qa}catch{}})(),(()=>{try{return Ka}catch{}})(),(()=>{try{return Za}catch{}})(),(()=>{try{return ae}catch{}})(),(()=>{try{return ee}catch{}})()]).then(async()=>{let w,g,F,I,L,Y;w=T=>(wa("data-v-d290ceed"),T=T(),Ta(),T),g=w(()=>b("span",{style:{color:"red"}},"\u63D0\u9192: ",-1)),F=w(()=>b("br",null,null,-1)),I=w(()=>b("br",null,null,-1)),L={class:"el-timeline-right-content"},Y=ca({name:"TradeAfterSaleDetail",__name:"index",setup(T){const{t:k}=da(),o=Xa(),{params:V}=oa(),{push:j,currentRoute:z}=na(),l=O({order:{},logs:[]}),U=O(),B=i=>{const n=ja(p.USER_TYPE,i);switch(n==null?void 0:n.colorType){case"success":return"#67C23A";case"info":return"#909399";case"warning":return"#E6A23C";case"danger":return"#F56C6C"}return"#409EFF"},f=async()=>{const i=V.id;if(i){const n=await Ya(i);n==null&&(o.notifyError("\u552E\u540E\u8BA2\u5355\u4E0D\u5B58\u5728"),X()),l.value=n}},G=async()=>{try{await o.confirm("\u662F\u5426\u540C\u610F\u552E\u540E\uFF1F"),await Ua(l.value.id),o.success(k("common.success")),await f()}catch{}},H=async()=>{var i;(i=U.value)==null||i.open(l.value)},J=async()=>{try{await o.confirm("\u662F\u5426\u786E\u8BA4\u6536\u8D27\uFF1F"),await xa(l.value.id),o.success(k("common.success")),await f()}catch{}},Q=async()=>{try{await o.confirm("\u662F\u5426\u62D2\u7EDD\u6536\u8D27\uFF1F"),await Oa(l.value.id),o.success(k("common.success")),await f()}catch{}},W=async()=>{try{await o.confirm("\u662F\u5426\u786E\u8BA4\u9000\u6B3E\uFF1F"),await Ma(l.value.id),o.success(k("common.success")),await f()}catch{}},{delView:K}=Wa(),X=()=>{K(t(z)),j({name:"TradeAfterSale"})};return pa(async()=>{await f()}),(i,n)=>{const r=Sa,m=Ia,h=ga,Z=Da,E=ma,$=fa,A=ba,aa=ha,x=Ea,ea=va,ta=Aa,la=Ca,ra=ua;return c(),C(R,null,[a(ra,null,{default:e(()=>[a(h,{title:"\u8BA2\u5355\u4FE1\u606F"},{default:e(()=>[a(r,{label:"\u8BA2\u5355\u53F7: "},{default:e(()=>[s(u(t(l).orderNo),1)]),_:1}),a(r,{label:"\u914D\u9001\u65B9\u5F0F: "},{default:e(()=>[a(m,{type:t(p).TRADE_DELIVERY_TYPE,value:t(l).order.deliveryType},null,8,["type","value"])]),_:1}),a(r,{label:"\u8BA2\u5355\u7C7B\u578B: "},{default:e(()=>[a(m,{type:t(p).TRADE_ORDER_TYPE,value:t(l).order.type},null,8,["type","value"])]),_:1}),a(r,{label:"\u6536\u8D27\u4EBA: "},{default:e(()=>[s(u(t(l).order.receiverName),1)]),_:1}),a(r,{label:"\u4E70\u5BB6\u7559\u8A00: "},{default:e(()=>[s(u(t(l).order.userRemark),1)]),_:1}),a(r,{label:"\u8BA2\u5355\u6765\u6E90: "},{default:e(()=>[a(m,{type:t(p).TERMINAL,value:t(l).order.terminal},null,8,["type","value"])]),_:1}),a(r,{label:"\u8054\u7CFB\u7535\u8BDD: "},{default:e(()=>[s(u(t(l).order.receiverMobile),1)]),_:1}),a(r,{label:"\u5546\u5BB6\u5907\u6CE8: "},{default:e(()=>[s(u(t(l).order.remark),1)]),_:1}),a(r,{label:"\u652F\u4ED8\u5355\u53F7: "},{default:e(()=>[s(u(t(l).order.payOrderId),1)]),_:1}),a(r,{label:"\u4ED8\u6B3E\u65B9\u5F0F: "},{default:e(()=>[a(m,{type:t(p).PAY_CHANNEL_CODE,value:t(l).order.payChannelCode},null,8,["type","value"])]),_:1}),a(r,{label:"\u4E70\u5BB6: "},{default:e(()=>{var _,d;return[s(u((d=(_=t(l))==null?void 0:_.user)==null?void 0:d.nickname),1)]}),_:1})]),_:1}),a(h,{title:"\u552E\u540E\u4FE1\u606F"},{default:e(()=>[a(r,{label:"\u9000\u6B3E\u7F16\u53F7: "},{default:e(()=>[s(u(t(l).no),1)]),_:1}),a(r,{label:"\u7533\u8BF7\u65F6\u95F4: "},{default:e(()=>[s(u(t(M)(t(l).auditTime)),1)]),_:1}),a(r,{label:"\u552E\u540E\u7C7B\u578B: "},{default:e(()=>[a(m,{type:t(p).TRADE_AFTER_SALE_TYPE,value:t(l).type},null,8,["type","value"])]),_:1}),a(r,{label:"\u552E\u540E\u65B9\u5F0F: "},{default:e(()=>[a(m,{type:t(p).TRADE_AFTER_SALE_WAY,value:t(l).way},null,8,["type","value"])]),_:1}),a(r,{label:"\u9000\u6B3E\u91D1\u989D: "},{default:e(()=>[s(u(t(N)(t(l).refundPrice)),1)]),_:1}),a(r,{label:"\u9000\u6B3E\u539F\u56E0: "},{default:e(()=>[s(u(t(l).applyReason),1)]),_:1}),a(r,{label:"\u8865\u5145\u63CF\u8FF0: "},{default:e(()=>[s(u(t(l).applyDescription),1)]),_:1}),a(r,{label:"\u51ED\u8BC1\u56FE\u7247: "},{default:e(()=>[(c(!0),C(R,null,S(t(l).applyPicUrls,(_,d)=>(c(),y(Z,{key:d,src:_.url,class:"mr-10px h-60px w-60px",onClick:n[0]||(n[0]=le=>(D=>{const P=[];ya(D)?D.forEach(sa=>{P.push(sa.url)}):P.push(D),Ja({urlList:P})})(t(l).applyPicUrls))},null,8,["src"]))),128))]),_:1})]),_:1}),a(h,{column:1,title:"\u9000\u6B3E\u72B6\u6001"},{default:e(()=>[a(r,{label:"\u9000\u6B3E\u72B6\u6001: "},{default:e(()=>[a(m,{type:t(p).TRADE_AFTER_SALE_STATUS,value:t(l).status},null,8,["type","value"])]),_:1}),a(r,{"label-class-name":"no-colon"},{default:e(()=>[t(l).status===10?(c(),y(E,{key:0,type:"primary",onClick:G},{default:e(()=>[s("\u540C\u610F\u552E\u540E")]),_:1})):v("",!0),t(l).status===10?(c(),y(E,{key:1,type:"primary",onClick:H},{default:e(()=>[s(" \u62D2\u7EDD\u552E\u540E ")]),_:1})):v("",!0),t(l).status===30?(c(),y(E,{key:2,type:"primary",onClick:J},{default:e(()=>[s(" \u786E\u8BA4\u6536\u8D27 ")]),_:1})):v("",!0),t(l).status===30?(c(),y(E,{key:3,type:"primary",onClick:Q},{default:e(()=>[s("\u62D2\u7EDD\u6536\u8D27")]),_:1})):v("",!0),t(l).status===40?(c(),y(E,{key:4,type:"primary",onClick:W},{default:e(()=>[s("\u786E\u8BA4\u9000\u6B3E")]),_:1})):v("",!0)]),_:1}),a(r,null,{label:e(()=>[g]),default:e(()=>[s(" \u5982\u679C\u672A\u53D1\u8D27\uFF0C\u8BF7\u70B9\u51FB\u540C\u610F\u9000\u6B3E\u7ED9\u4E70\u5BB6\u3002"),F,s(" \u5982\u679C\u5B9E\u9645\u5DF2\u53D1\u8D27\uFF0C\u8BF7\u4E3B\u52A8\u4E0E\u4E70\u5BB6\u8054\u7CFB\u3002"),I,s(" \u5982\u679C\u8BA2\u5355\u6574\u4F53\u9000\u6B3E\u540E\uFF0C\u4F18\u60E0\u5238\u548C\u4F59\u989D\u4F1A\u9000\u8FD8\u7ED9\u4E70\u5BB6. ")]),_:1})]),_:1}),a(h,{title:"\u5546\u54C1\u4FE1\u606F"},{default:e(()=>[a(r,{labelClassName:"no-colon"},{default:e(()=>[a(ea,{gutter:20},{default:e(()=>[a(x,{span:15},{default:e(()=>[a(aa,{data:[t(l).orderItem],border:""},{default:e(()=>[a(A,{label:"\u5546\u54C1",prop:"spuName",width:"auto"},{default:e(({row:_})=>[s(u(_.spuName)+" ",1),(c(!0),C(R,null,S(_.properties,d=>(c(),y($,{key:d.propertyId},{default:e(()=>[s(u(d.propertyName)+": "+u(d.valueName),1)]),_:2},1024))),128))]),_:1}),a(A,{label:"\u5546\u54C1\u539F\u4EF7",prop:"price",width:"150"},{default:e(({row:_})=>[s(u(t(N)(_.price))+" \u5143",1)]),_:1}),a(A,{label:"\u6570\u91CF",prop:"count",width:"100"}),a(A,{label:"\u5408\u8BA1",prop:"payPrice",width:"150"},{default:e(({row:_})=>[s(u(t(N)(_.payPrice))+" \u5143",1)]),_:1})]),_:1},8,["data"])]),_:1}),a(x,{span:10})]),_:1})]),_:1})]),_:1}),a(h,{title:"\u552E\u540E\u65E5\u5FD7"},{default:e(()=>[a(r,{labelClassName:"no-colon"},{default:e(()=>[a(la,null,{default:e(()=>[(c(!0),C(R,null,S(t(l).logs,_=>(c(),y(ta,{key:_.id,timestamp:t(M)(_.createTime),placement:"top"},{dot:e(()=>[b("span",{style:ia({backgroundColor:B(_.userType)}),class:"dot-node-style"},u(t(Va)(t(p).USER_TYPE,_.userType)[0]||"\u7CFB"),5)]),default:e(()=>[b("div",L,[b("span",null,u(_.content),1)])]),_:2},1032,["timestamp"]))),128))]),_:1})]),_:1})]),_:1})]),_:1}),a(Ga,{ref_key:"updateAuditReasonFormRef",ref:U,onSuccess:f},null,512)],64)}}}),q=$a(Y,[["__scopeId","data-v-d290ceed"]])});export{te as __tla,q as default};