OrderLogistics-874d84ae.js 3.0 KB

1
  1. import{_ as A,__tla as M}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{d as R,ah as f,b as S,e as Y,r as g,z as D,a as t,o as _,c as h,j as v,w as l,a0 as L,k as r,t as o,a_ as O,i as d,C as V,ax as q,F as B,__tla as G}from"./index-1e808f2e.js";import{E as H,a as J,__tla as K}from"./el-descriptions-item-8d4be2e8.js";import{E as Q,a as W,__tla as X}from"./el-timeline-item-cb959fb7.js";import{j as Z,k as $,__tla as aa}from"./index-b776b94b.js";import{f as ta,__tla as sa}from"./formatTime-a348c3be.js";import{e as ea,D as b,b as la,__tla as ra}from"./dict-a31cb4ba.js";import{g as oa,__tla as ia}from"./index-57a3dfbf.js";import{u as ca,__tla as _a}from"./useMessage-5f9e8917.js";import{_ as na}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ua}from"./el-card-03b3588b.js";let C,da=Promise.all([(()=>{try{return M}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return _a}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"},C=na(R({__name:"OrderLogistics",props:{id:f.number.def(void 0),showPickUp:f.bool.def(!0)},setup(P){const k=S(),w=Y(()=>k.getMobile),E=P,s=g({logs:[],logisticsNo:"",logisticsId:0,deliveryPrice:0}),n=E.id,I=e=>{const a=la(b.USER_TYPE,e);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=ca(),x=e=>{for(let a=0;a<u.value.length;a++){const i=u.value[a];if(i.id==e)return i.name}},u=g([]);return D(async()=>{(async()=>{if(n){const e=await Z(n);let a;e.deliveryType!="\u865A\u62DF\u5546\u54C1\u6536\u8D27"&&(a=await $(n)),e||(T.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),s.value.logisticsNo=e.logisticsNo,s.value.logisticsId=e.logisticsId,s.value.deliveryPrice=e.deliveryPrice,s.value.logs=a}})(),u.value=await oa()}),(e,a)=>{const i=Q,N=W,F=H,z=J,U=A;return t(s).logisticsId==0||t(s).logisticsId==null?(_(),h("div",m," \u8BE5\u8BA2\u5355\u6682\u65E0\u7269\u6D41\u8BB0\u5F55 ")):(_(),v(U,{key:1,class:L({"mobile-card":t(w)}),style:{"padding-top":"1rem"}},{default:l(()=>[r("div",p,[r("h3",null,o(t(s).logisticsNo),1),r("p",null,o(x(t(s).logisticsId)),1),r("p",null,"\u8FD0\u8D39\uFF1A"+o(t(O)(t(s).deliveryPrice))+"\u5143",1)]),d(z,null,{default:l(()=>[d(F,{labelClassName:"no-colon"},{default:l(()=>[d(N,null,{default:l(()=>[(_(!0),h(B,null,V(t(s).logs,(c,j)=>(_(),v(i,{key:j,timestamp:t(ta)(c.time),placement:"top"},{dot:l(()=>[r("span",{style:q({backgroundColor:I(c.userType)}),class:"dot-node-style"},o(t(ea)(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-8c7a0b0d"]])});export{da as __tla,C as default};