OrderLogistics-928fe877.js 3.1 KB

1
  1. import{_ as Y,__tla as A}from"./ContentWrap-ccf34dcf.js";import{d as L,ag as y,Y as O,K as R,r as g,l as S,a as t,o as _,c as v,v as h,w as r,Z as j,g as l,t as o,at as M,f as d,q,au as K,F as W,_ as Z,__tla as B}from"./index-3f6d2b3a.js";import{E as G,a as H,__tla as J}from"./el-descriptions-item-7f6bb5db.js";import{E as Q,a as V,__tla as X}from"./el-timeline-item-ea1a147c.js";import{i as $,j as tt,__tla as at}from"./index-b92c54b4.js";import{f as st,__tla as et}from"./formatTime-15ffed0a.js";import{b as rt,D as w,c as lt,__tla as ot}from"./dict-9cca1721.js";import{g as it,__tla as ct}from"./index-7b9c6a1e.js";import{u as _t,__tla as nt}from"./useMessage-d75e3be7.js";import{__tla as ut}from"./ContentWrap.vue_vue_type_script_setup_true_lang-beff78ef.js";import{__tla as dt}from"./el-card-850c26c2.js";let I,mt=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return X}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"},I=Z(L({__name:"OrderLogistics",props:{id:y.number.def(void 0),showPickUp:y.bool.def(!0)},setup(P){const b=O(),E=R(()=>b.getMobile),x=P,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 S(async()=>{(async()=>{if(n){const e=await $(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,z=H,D=Y;return t(a).logisticsId==0||t(a).logisticsId==null?(_(),v("div",m," \u8BE5\u8BA2\u5355\u6682\u65E0\u7269\u6D41\u8BB0\u5F55 ")):(_(),h(D,{key:1,class:j({"mobile-card":t(E)}),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(M)(t(a).deliveryPrice))+"\u5143",1)]),d(z,null,{default:r(()=>[d(F,{labelClassName:"no-colon"},{default:r(()=>[d(T,null,{default:r(()=>[(_(!0),v(W,null,q(t(a).logs,(c,U)=>(_(),h(i,{key:U,timestamp:t(st)(c.time),placement:"top"},{dot:r(()=>[l("span",{style:K({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-admin/src/views/mall/trade/order/components/OrderLogistics.vue"]])});export{mt as __tla,I as default};