OrderLogistics-c786cb92.js 3.0 KB

1
  1. import{_ as U,__tla as D}from"./ContentWrap-83998678.js";import{d as L,as as f,y as O,e as S,r as g,b as j,a as t,o as _,c as v,C as h,A as l,ad as B,B as r,E as o,dA as H,f as u,R as M,aH as Y,F as q,_ as G,__tla as J}from"./index-286756b9.js";import{E as K,a as Q,__tla as V}from"./el-descriptions-item-63e151c1.js";import{E as W,a as X,__tla as Z}from"./el-timeline-item-c7efc654.js";import{i as $,j as aa,__tla as ta}from"./index-c6443726.js";import{f as ea,__tla as sa}from"./formatTime-83e416ef.js";import{d as la,D as b,c as ra,__tla as oa}from"./dict-82dca549.js";import{g as ia,__tla as ca}from"./index-c052d10f.js";import{u as _a,__tla as na}from"./useMessage-084b1e70.js";import{__tla as da}from"./el-card-d3d5a654.js";let w,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"},w=G(L({__name:"OrderLogistics",props:{id:f.number.def(void 0),showPickUp:f.bool.def(!0)},setup(E){const P=O(),x=S(()=>P.getMobile),C=E,e=g({logs:[],logisticsNo:"",logisticsId:0,deliveryPrice:0}),n=C.id,I=s=>{const a=ra(b.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 j(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,A=K,F=Q,R=U;return t(e).logisticsId==0||t(e).logisticsId==null?(_(),v("div",m," \u8BE5\u8BA2\u5355\u6682\u65E0\u7269\u6D41\u8BB0\u5F55 ")):(_(),h(R,{key:1,class:B({"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(H)(t(e).deliveryPrice))+"\u5143",1)]),u(F,null,{default:l(()=>[u(A,{labelClassName:"no-colon"},{default:l(()=>[u(N,null,{default:l(()=>[(_(!0),v(q,null,M(t(e).logs,(c,z)=>(_(),h(i,{key:z,timestamp:t(ea)(c.time),placement:"top"},{dot:l(()=>[r("span",{style:Y({backgroundColor:I(c.userType)}),class:"dot-node-style"},o(t(la)(t(b).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};