OrderLogistics-a36da4c6.js 3.1 KB

1
  1. import{_ as D,__tla as L}from"./ContentWrap-dd7251be.js";import{d as O,ah as y,Z as R,K as S,r as g,l as Y,a as t,o as _,c as v,v as h,w as r,$ as j,g as l,t as o,at as K,f as d,q as M,au as q,F as Z,_ as $,__tla as B}from"./index-9f1b04e0.js";import{E as G,a as H,__tla as J}from"./el-descriptions-item-8e0c4cca.js";import{E as Q,a as V,__tla as W}from"./el-timeline-item-40e48a21.js";import{i as X,j as tt,__tla as at}from"./index-6c682860.js";import{f as st,__tla as et}from"./formatTime-d3f20077.js";import{b as rt,D as w,c as lt,__tla as ot}from"./dict-1982b8d4.js";import{g as it,__tla as ct}from"./index-be44b44a.js";import{u as _t,__tla as nt}from"./useMessage-b937288f.js";import{__tla as ut}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5f0d348b.js";import{__tla as dt}from"./el-card-17dc17f9.js";let b,mt=Promise.all([(()=>{try{return L}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return dt}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"},b=$(O({__name:"OrderLogistics",props:{id:y.number.def(void 0),showPickUp:y.bool.def(!0)},setup(E){const I=R(),P=S(()=>I.getMobile),x=E,a=g({logs:[],logisticsNo:"",logisticsId:0,deliveryPrice:0}),n=x.id,C=e=>{const s=lt(w.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"},k=_t(),N=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 Y(async()=>{(async()=>{if(n){const e=await X(n),s=await tt(n);e||(k.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 it()}),(e,s)=>{const i=Q,T=V,F=G,U=H,z=D;return t(a).logisticsId==0||t(a).logisticsId==null?(_(),v("div",m," \u8BE5\u8BA2\u5355\u6682\u65E0\u7269\u6D41\u8BB0\u5F55 ")):(_(),h(z,{key:1,class:j({"mobile-card":t(P)}),style:{"padding-top":"1rem"}},{default:r(()=>[l("div",p,[l("h3",null,o(t(a).logisticsNo),1),l("p",null,o(N(t(a).logisticsId)),1),l("p",null,"\u8FD0\u8D39\uFF1A"+o(t(K)(t(a).deliveryPrice))+"\u5143",1)]),d(U,null,{default:r(()=>[d(F,{labelClassName:"no-colon"},{default:r(()=>[d(T,null,{default:r(()=>[(_(!0),v(Z,null,M(t(a).logs,(c,A)=>(_(),h(i,{key:A,timestamp:t(st)(c.time),placement:"top"},{dot:r(()=>[l("span",{style:q({backgroundColor:C(c.userType)}),class:"dot-node-style"},o(t(rt)(t(w).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-878ccc68"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/trade/order/components/OrderLogistics.vue"]])});export{mt as __tla,b as default};