1 |
- import{_ as S,__tla as Y}from"./ContentWrap.vue_vue_type_script_setup_true_lang-8883b5ea.js";import{d as j,ar as f,y as z,e as B,r as g,b as D,a as t,o as _,c as v,C as h,A as r,ac as L,B as l,E as o,dx as M,f as d,Q as q,aG as G,F as O,__tla as Q}from"./index-92ee0c67.js";import{E as H,a as J,__tla as K}from"./el-descriptions-item-9c7e8258.js";import{E as V,a as W,__tla as X}from"./el-timeline-item-f60a2dd7.js";import{i as Z,j as $,__tla as aa}from"./index-e0ae1d8d.js";import{f as ta,__tla as sa}from"./formatTime-a873e830.js";import{d as ea,D as E,c as ra,__tla as la}from"./dict-84c3ed73.js";import{g as oa,__tla as ia}from"./index-329125e2.js";import{u as ca,__tla as _a}from"./useMessage-f82a8260.js";import{_ as na}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ua}from"./el-card-82c8630d.js";let I,da=Promise.all([(()=>{try{return Y}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(j({__name:"OrderLogistics",props:{id:f.number.def(void 0),showPickUp:f.bool.def(!0)},setup(P){const b=z(),C=B(()=>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 D(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=V,N=W,A=H,F=J,U=S;return t(s).logisticsId==0||t(s).logisticsId==null?(_(),v("div",m," \u8BE5\u8BA2\u5355\u6682\u65E0\u7269\u6D41\u8BB0\u5F55 ")):(_(),h(U,{key:1,class:L({"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(F,null,{default:r(()=>[d(A,{labelClassName:"no-colon"},{default:r(()=>[d(N,null,{default:r(()=>[(_(!0),v(O,null,q(t(s).logs,(c,R)=>(_(),h(i,{key:R,timestamp:t(ta)(c.time),placement:"top"},{dot:r(()=>[l("span",{style:G({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};
|