1 |
- import{_ as R,__tla as D}from"./ContentWrap-260746ab.js";import{d as L,as as f,y as O,e as S,r as g,b as Y,a as t,o as _,c as v,C as h,A as l,ad as j,B as r,E as o,dz as M,f as u,R as B,aH as H,F as W,_ as q,__tla as G}from"./index-54aa57d8.js";import{E as J,a as K,__tla as Q}from"./el-descriptions-item-347c85ca.js";import{E as V,a as X,__tla as Z}from"./el-timeline-item-24fd452f.js";import{i as $,j as aa,__tla as ta}from"./index-e7a32376.js";import{f as ea,__tla as sa}from"./formatTime-e6197688.js";import{d as la,D as P,c as ra,__tla as oa}from"./dict-573b3b04.js";import{g as ia,__tla as ca}from"./index-56fb6cd9.js";import{u as _a,__tla as na}from"./useMessage-f56cafbb.js";import{__tla as da}from"./el-card-e7d6628c.js";let w,ua=Promise.all([(()=>{try{return D}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return da}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"},w=q(L({__name:"OrderLogistics",props:{id:f.number.def(void 0),showPickUp:f.bool.def(!0)},setup(E){const b=O(),x=S(()=>b.getMobile),C=E,e=g({logs:[],logisticsNo:"",logisticsId:0,deliveryPrice:0}),n=C.id,I=s=>{const a=ra(P.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<d.value.length;a++){const i=d.value[a];if(i.id==s)return i.name}},d=g([]);return Y(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}})(),d.value=await ia()}),(s,a)=>{const i=V,N=X,z=J,F=K,U=R;return t(e).logisticsId==0||t(e).logisticsId==null?(_(),v("div",m," \u8BE5\u8BA2\u5355\u6682\u65E0\u7269\u6D41\u8BB0\u5F55 ")):(_(),h(U,{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(k(t(e).logisticsId)),1),r("p",null,"\u8FD0\u8D39\uFF1A"+o(t(M)(t(e).deliveryPrice))+"\u5143",1)]),u(F,null,{default:l(()=>[u(z,{labelClassName:"no-colon"},{default:l(()=>[u(N,null,{default:l(()=>[(_(!0),v(W,null,B(t(e).logs,(c,A)=>(_(),h(i,{key:A,timestamp:t(ea)(c.time),placement:"top"},{dot:l(()=>[r("span",{style:H({backgroundColor:I(c.userType)}),class:"dot-node-style"},o(t(la)(t(P).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{ua as __tla,w as default};
|