1 |
- import{_ as M,__tla as R}from"./ContentWrap.vue_vue_type_script_setup_true_lang-589371a6.js";import{d as S,af as y,X as j,J as q,r as g,k as z,a as t,o as _,c as h,q as v,w as r,Y as D,g as l,t as o,as as J,f as d,n as K,at as L,F as O,__tla as X}from"./index-73e02845.js";import{E as B,a as G,__tla as H}from"./el-descriptions-item-fc6bc3ea.js";import{E as Q,a as V,__tla as W}from"./el-timeline-item-f8a2980d.js";import{i as Z,j as $,__tla as tt}from"./index-cd8f4967.js";import{f as at,__tla as st}from"./formatTime-5f7a2be1.js";import{b as et,D as b,c as rt,__tla as lt}from"./dict-0fdd6c74.js";import{g as ot,__tla as it}from"./index-f590e4e9.js";import{u as ct,__tla as _t}from"./useMessage-1490ad82.js";import{_ as nt}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ut}from"./el-card-ada74e7d.js";let E,dt=Promise.all([(()=>{try{return R}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return W}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,f;m={key:0,style:{"text-align":"center","margin-top":"50px","font-size":"14px"}},p={class:"details m-l-14"},f={class:"el-timeline-right-content"},E=nt(S({__name:"OrderLogistics",props:{id:y.number.def(void 0),showPickUp:y.bool.def(!0)},setup(P){const w=j(),C=q(()=>w.getMobile),I=P,a=g({logs:[],logisticsNo:"",logisticsId:0,deliveryPrice:0}),n=I.id,k=e=>{const s=rt(b.USER_TYPE,e);switch(s==null?void 0:s.colorType){case"success":return"#67C23A";case"info":return"#909399";case"warning":return"#E6A23C";case"danger":return"#F56C6C"}return"#409EFF"},N=ct(),T=e=>{for(let s=0;s<u.value.length;s++){const i=u.value[s];if(i.id==e)return i.name}},u=g([]);return z(async()=>{(async()=>{if(n){const e=await Z(n),s=await $(n);e||(N.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),a.value.logisticsNo=e.logisticsNo,a.value.logisticsId=e.logisticsId,a.value.deliveryPrice=e.deliveryPrice,a.value.logs=s}})(),u.value=await ot()}),(e,s)=>{const i=Q,x=V,F=B,U=G,Y=M;return t(a).logisticsId==0||t(a).logisticsId==null?(_(),h("div",m," \u8BE5\u8BA2\u5355\u6682\u65E0\u7269\u6D41\u8BB0\u5F55 ")):(_(),v(Y,{key:1,class:D({"mobile-card":t(C)}),style:{"padding-top":"1rem"}},{default:r(()=>[l("div",p,[l("h3",null,o(t(a).logisticsNo),1),l("p",null,o(T(t(a).logisticsId)),1),l("p",null,"\u8FD0\u8D39\uFF1A"+o(t(J)(t(a).deliveryPrice))+"\u5143",1)]),d(U,null,{default:r(()=>[d(F,{labelClassName:"no-colon"},{default:r(()=>[d(x,null,{default:r(()=>[(_(!0),h(O,null,K(t(a).logs,(c,A)=>(_(),v(i,{key:A,timestamp:t(at)(c.time),placement:"top"},{dot:r(()=>[l("span",{style:L({backgroundColor:k(c.userType)}),class:"dot-node-style"},o(t(et)(t(b).USER_TYPE,c.userType)[0]),5)]),default:r(()=>[l("div",f,o(c.content),1)]),_:2},1032,["timestamp"]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["class"]))}}}),[["__scopeId","data-v-7182b168"]])});export{dt as __tla,E as default};
|