1 |
- import{_ as A,__tla as D}from"./ContentWrap-60842994.js";import{d as L,ag as f,Y as O,K as R,r as g,k 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,a$ as q,f as d,q as M,ay as K,F as Z,_ as $,__tla as B}from"./index-430b3151.js";import{E as G,a as H,__tla as J}from"./el-descriptions-item-f31a472b.js";import{E as Q,a as V,__tla as W}from"./el-timeline-item-96c4ad36.js";import{i as X,j as aa,__tla as ta}from"./index-72a4fbcc.js";import{f as ea,__tla as sa}from"./formatTime-00eecbb7.js";import{d as la,D as w,b as ra,__tla as oa}from"./dict-603b6a58.js";import{g as ia,__tla as ca}from"./index-6024924b.js";import{u as _a,__tla as na}from"./useMessage-d226ba89.js";import{__tla as ua}from"./el-card-dee5b36b.js";let E,da=Promise.all([(()=>{try{return D}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return W}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=$(L({__name:"OrderLogistics",props:{id:f.number.def(void 0),showPickUp:f.bool.def(!0)},setup(P){const b=O(),x=R(()=>b.getMobile),C=P,e=g({logs:[],logisticsNo:"",logisticsId:0,deliveryPrice:0}),n=C.id,I=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"},k=_a(),T=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 X(n);let a;s.deliveryType!="\u865A\u62DF\u5546\u54C1\u6536\u8D27"&&(a=await aa(n)),s||(k.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=Q,N=V,F=G,Y=H,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(x)}),style:{"padding-top":"1rem"}},{default:l(()=>[r("div",p,[r("h3",null,o(t(e).logisticsNo),1),r("p",null,o(T(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:I(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};
|