1 |
- import{_ as U,__tla as D}from"./ContentWrap-96bb70ec.js";import{d as L,as as f,y as M,e as O,r as g,b as S,a as t,o as _,c as v,C as h,A as l,ad as Y,B as r,E as o,dz as j,f as u,R as q,aH as B,F as H,_ as G,__tla as J}from"./index-f6fb8e95.js";import{E as K,a as Q,__tla as V}from"./el-descriptions-item-60dd5c8e.js";import{E as W,a as X,__tla as Z}from"./el-timeline-item-4391c2d1.js";import{i as $,j as aa,__tla as ta}from"./index-fb236505.js";import{f as ea,__tla as sa}from"./formatTime-ddd96ac8.js";import{d as la,D as w,c as ra,__tla as oa}from"./dict-c9a7f6a4.js";import{g as ia,__tla as ca}from"./index-8dc2d023.js";import{u as _a,__tla as na}from"./useMessage-3b767a67.js";import{__tla as da}from"./el-card-8db16709.js";let E,ua=Promise.all([(()=>{try{return D}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return V}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"},E=G(L({__name:"OrderLogistics",props:{id:f.number.def(void 0),showPickUp:f.bool.def(!0)},setup(I){const P=M(),b=O(()=>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<d.value.length;a++){const i=d.value[a];if(i.id==s)return i.name}},d=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}})(),d.value=await ia()}),(s,a)=>{const i=W,N=X,z=K,F=Q,A=U;return t(e).logisticsId==0||t(e).logisticsId==null?(_(),v("div",m," \u8BE5\u8BA2\u5355\u6682\u65E0\u7269\u6D41\u8BB0\u5F55 ")):(_(),h(A,{key:1,class:Y({"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(j)(t(e).deliveryPrice))+"\u5143",1)]),u(F,null,{default:l(()=>[u(z,{labelClassName:"no-colon"},{default:l(()=>[u(N,null,{default:l(()=>[(_(!0),v(H,null,q(t(e).logs,(c,R)=>(_(),h(i,{key:R,timestamp:t(ea)(c.time),placement:"top"},{dot:l(()=>[r("span",{style:B({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{ua as __tla,E as default};
|