OrderLogistics-fb9f0265.js 3.0 KB

1
  1. import{_ as A,__tla as D}from"./ContentWrap-2a772ce5.js";import{d as L,ag as f,Y as O,K as R,r as g,l as S,a as t,o as _,c as v,v as h,w as l,Z as j,g as r,t as o,at as q,f as d,q as M,au as K,F as Z,_ as B,__tla as G}from"./index-297c97b3.js";import{E as H,a as J,__tla as Q}from"./el-descriptions-item-32aa8ffa.js";import{E as V,a as W,__tla as X}from"./el-timeline-item-caa273b5.js";import{i as $,j as aa,__tla as ta}from"./index-40f9ff9c.js";import{f as ea,__tla as sa}from"./formatTime-43b819e0.js";import{b as la,D as w,c as ra,__tla as oa}from"./dict-299f12fd.js";import{g as ia,__tla as ca}from"./index-30c02983.js";import{u as _a,__tla as na}from"./useMessage-8a849e40.js";import{__tla as ua}from"./el-card-22a26825.js";let E,da=Promise.all([(()=>{try{return D}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ua}catch{}})()]).then(async()=>{let m,p,y;m={key:0,style:{"text-align":"center","margin-top":"50px","font-size":"14px"}},p={class:"details m-l-14"},y={class:"el-timeline-right-content"},E=B(L({__name:"OrderLogistics",props:{id:f.number.def(void 0),showPickUp:f.bool.def(!0)},setup(I){const P=O(),b=R(()=>P.getMobile),x=I,e=g({logs:[],logisticsNo:"",logisticsId:0,deliveryPrice:0}),n=x.id,C=s=>{const a=ra(w.USER_TYPE,s);switch(a==null?void 0:a.colorType){case"success":return"#67C23A";case"info":return"#909399";case"warning":return"#E6A23C";case"danger":return"#F56C6C"}return"#409EFF"},T=_a(),k=s=>{for(let a=0;a<u.value.length;a++){const i=u.value[a];if(i.id==s)return i.name}},u=g([]);return S(async()=>{(async()=>{if(n){const s=await $(n);let a;s.deliveryType!="\u865A\u62DF\u5546\u54C1\u6536\u8D27"&&(a=await aa(n)),s||(T.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),e.value.logisticsNo=s.logisticsNo,e.value.logisticsId=s.logisticsId,e.value.deliveryPrice=s.deliveryPrice,e.value.logs=a}})(),u.value=await ia()}),(s,a)=>{const i=V,N=W,F=H,Y=J,z=A;return t(e).logisticsId==0||t(e).logisticsId==null?(_(),v("div",m," \u8BE5\u8BA2\u5355\u6682\u65E0\u7269\u6D41\u8BB0\u5F55 ")):(_(),h(z,{key:1,class:j({"mobile-card":t(b)}),style:{"padding-top":"1rem"}},{default:l(()=>[r("div",p,[r("h3",null,o(t(e).logisticsNo),1),r("p",null,o(k(t(e).logisticsId)),1),r("p",null,"\u8FD0\u8D39\uFF1A"+o(t(q)(t(e).deliveryPrice))+"\u5143",1)]),d(Y,null,{default:l(()=>[d(F,{labelClassName:"no-colon"},{default:l(()=>[d(N,null,{default:l(()=>[(_(!0),v(Z,null,M(t(e).logs,(c,U)=>(_(),h(i,{key:U,timestamp:t(ea)(c.time),placement:"top"},{dot:l(()=>[r("span",{style:K({backgroundColor:C(c.userType)}),class:"dot-node-style"},o(t(la)(t(w).USER_TYPE,c.userType)[0]),5)]),default:l(()=>[r("div",y,o(c.content),1)]),_:2},1032,["timestamp"]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["class"]))}}}),[["__scopeId","data-v-878ccc68"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/trade/order/components/OrderLogistics.vue"]])});export{da as __tla,E as default};