1 |
- import{_ as D,__tla as R}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9ba6d043.js";import{d as S,ar as f,y as Y,e as j,r as g,b as z,a,o as _,c as v,A as h,B as r,ac as G,C as l,D as o,dx as M,f as d,P as L,aG as O,F as W,__tla as q}from"./index-645bc0b6.js";import{E as H,a as J,__tla as K}from"./el-descriptions-item-e8eef3a5.js";import{E as Q,a as V,__tla as X}from"./el-timeline-item-ae51afcc.js";import{i as Z,j as $,__tla as tt}from"./index-2d45d96d.js";import{f as at,__tla as st}from"./formatTime-b4735e5f.js";import{d as et,D as P,c as rt,__tla as lt}from"./dict-36eba5cd.js";import{g as ot,__tla as it}from"./index-db0d472f.js";import{u as ct,__tla as _t}from"./useMessage-4e07eecf.js";import{_ as nt}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ut}from"./el-card-dd17acb4.js";let b,dt=Promise.all([(()=>{try{return R}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return ut}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"},b=nt(S({__name:"OrderLogistics",props:{id:f.number.def(void 0),showPickUp:f.bool.def(!0)},setup(C){const E=Y(),I=j(()=>E.getMobile),w=C,s=g({logs:[],logisticsNo:"",logisticsId:0,deliveryPrice:0}),n=w.id,T=e=>{const t=rt(P.USER_TYPE,e);switch(t==null?void 0:t.colorType){case"success":return"#67C23A";case"info":return"#909399";case"warning":return"#E6A23C";case"danger":return"#F56C6C"}return"#409EFF"},k=ct(),x=e=>{for(let t=0;t<u.value.length;t++){const i=u.value[t];if(i.id==e)return i.name}},u=g([]);return z(async()=>{(async()=>{if(n){const e=await Z(n);let t;e.deliveryType!="\u865A\u62DF\u5546\u54C1\u6536\u8D27"&&(t=await $(n)),e||(k.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=t}})(),u.value=await ot()}),(e,t)=>{const i=Q,F=V,N=H,A=J,U=D;return a(s).logisticsId==0||a(s).logisticsId==null?(_(),v("div",m," \u8BE5\u8BA2\u5355\u6682\u65E0\u7269\u6D41\u8BB0\u5F55 ")):(_(),h(U,{key:1,class:G({"mobile-card":a(I)}),style:{"padding-top":"1rem"}},{default:r(()=>[l("div",p,[l("h3",null,o(a(s).logisticsNo),1),l("p",null,o(x(a(s).logisticsId)),1),l("p",null,"\u8FD0\u8D39\uFF1A"+o(a(M)(a(s).deliveryPrice))+"\u5143",1)]),d(A,null,{default:r(()=>[d(N,{labelClassName:"no-colon"},{default:r(()=>[d(F,null,{default:r(()=>[(_(!0),v(W,null,L(a(s).logs,(c,B)=>(_(),h(i,{key:B,timestamp:a(at)(c.time),placement:"top"},{dot:r(()=>[l("span",{style:O({backgroundColor:T(c.userType)}),class:"dot-node-style"},o(a(et)(a(P).USER_TYPE,c.userType)[0]),5)]),default:r(()=>[l("div",y,o(c.content),1)]),_:2},1032,["timestamp"]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["class"]))}}}),[["__scopeId","data-v-02625667"]])});export{dt as __tla,b as default};
|