OrderLogistics-cdfd68ed.js 3.1 KB

1
  1. import{_ as q,__tla as A}from"./ContentWrap-31b34b9c.js";import{d as D,ag as y,Y as L,K as O,r as g,l as R,a as t,o as _,c as v,v as h,w as r,Z as S,g as l,t as o,at as j,f as d,q as M,au as K,F as Z,_ as B,__tla as G}from"./index-00b1998d.js";import{E as H,a as J,__tla as Q}from"./el-descriptions-item-cebe3cbb.js";import{E as V,a as W,__tla as X}from"./el-timeline-item-7324aad8.js";import{i as $,j as tt,__tla as at}from"./index-673d8d3b.js";import{f as st,__tla as et}from"./formatTime-4e31c660.js";import{b as rt,D as w,c as lt,__tla as ot}from"./dict-29c23f6f.js";import{g as it,__tla as ct}from"./index-c8059554.js";import{u as _t,__tla as nt}from"./useMessage-437e6444.js";import{__tla as ut}from"./ContentWrap.vue_vue_type_script_setup_true_lang-d8a41a7a.js";import{__tla as dt}from"./el-card-fa7e872f.js";let E,mt=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return Q}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"},E=B(D({__name:"OrderLogistics",props:{id:y.number.def(void 0),showPickUp:y.bool.def(!0)},setup(I){const P=L(),b=O(()=>P.getMobile),x=I,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 R(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=V,T=W,F=H,z=J,U=q;return t(a).logisticsId==0||t(a).logisticsId==null?(_(),v("div",m," \u8BE5\u8BA2\u5355\u6682\u65E0\u7269\u6D41\u8BB0\u5F55 ")):(_(),h(U,{key:1,class:S({"mobile-card":t(b)}),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(j)(t(a).deliveryPrice))+"\u5143",1)]),d(z,null,{default:r(()=>[d(F,{labelClassName:"no-colon"},{default:r(()=>[d(T,null,{default:r(()=>[(_(!0),v(Z,null,M(t(a).logs,(c,Y)=>(_(),h(i,{key:Y,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,E as default};