1 |
- import{_ as U,__tla as S}from"./ContentWrap.vue_vue_type_script_setup_true_lang-369322ca.js";import{d as Y,ar as f,y as j,e as z,r as g,b as B,a as t,o as _,c as v,A as h,B as r,ac as D,C as l,G as o,dx as M,f as d,R as L,aG as O,F as W,__tla as q}from"./index-ce55a556.js";import{E as H,a as J,__tla as K}from"./el-descriptions-item-bd71640c.js";import{E as Q,a as V,__tla as X}from"./el-timeline-item-be7dfd78.js";import{i as Z,j as $,__tla as aa}from"./index-7fa1ead3.js";import{f as ta,__tla as sa}from"./formatTime-79a2895e.js";import{d as ea,D as E,c as ra,__tla as la}from"./dict-dcbd6a4e.js";import{g as oa,__tla as ia}from"./index-efe6c1df.js";import{u as ca,__tla as _a}from"./useMessage-b3a8bb7f.js";import{_ as na}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ua}from"./el-card-71b43fa7.js";let I,da=Promise.all([(()=>{try{return S}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return la}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"},I=na(Y({__name:"OrderLogistics",props:{id:f.number.def(void 0),showPickUp:f.bool.def(!0)},setup(P){const b=j(),C=z(()=>b.getMobile),w=P,s=g({logs:[],logisticsNo:"",logisticsId:0,deliveryPrice:0}),n=w.id,T=e=>{const a=ra(E.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"},k=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 B(async()=>{(async()=>{if(n){const e=await Z(n);let a;e.deliveryType!="\u865A\u62DF\u5546\u54C1\u6536\u8D27"&&(a=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=a}})(),u.value=await oa()}),(e,a)=>{const i=Q,F=V,N=H,A=J,G=U;return t(s).logisticsId==0||t(s).logisticsId==null?(_(),v("div",m," \u8BE5\u8BA2\u5355\u6682\u65E0\u7269\u6D41\u8BB0\u5F55 ")):(_(),h(G,{key:1,class:D({"mobile-card":t(C)}),style:{"padding-top":"1rem"}},{default:r(()=>[l("div",p,[l("h3",null,o(t(s).logisticsNo),1),l("p",null,o(x(t(s).logisticsId)),1),l("p",null,"\u8FD0\u8D39\uFF1A"+o(t(M)(t(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(t(s).logs,(c,R)=>(_(),h(i,{key:R,timestamp:t(ta)(c.time),placement:"top"},{dot:r(()=>[l("span",{style:O({backgroundColor:T(c.userType)}),class:"dot-node-style"},o(t(ea)(t(E).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{da as __tla,I as default};
|