OrderLogistics-5af069c2.js 3.1 KB

1
  1. import{_ as Y,__tla as z}from"./ContentWrap-694014d4.js";import{d as D,ag as y,Y as L,K as O,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 H,F as K,_ as W,__tla as X}from"./index-11e4820e.js";import{E as Z,a as B,__tla as G}from"./el-descriptions-item-4246212b.js";import{E as J,a as Q,__tla as V}from"./el-timeline-item-52f21599.js";import{i as $,j as tt,__tla as at}from"./index-85087f4c.js";import{f as st,__tla as et}from"./formatTime-f6a2c881.js";import{b as rt,D as w,c as lt,__tla as ot}from"./dict-4072dcec.js";import{g as it,__tla as ct}from"./index-80a7d751.js";import{u as _t,__tla as nt}from"./useMessage-06ddf735.js";import{__tla as ut}from"./ContentWrap.vue_vue_type_script_setup_true_lang-11f85821.js";import{__tla as dt}from"./el-card-919c14be.js";let E,mt=Promise.all([(()=>{try{return z}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return V}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=W(D({__name:"OrderLogistics",props:{id:y.number.def(void 0),showPickUp:y.bool.def(!0)},setup(I){const P=L(),b=O(()=>P.getMobile),k=I,a=g({logs:[],logisticsNo:"",logisticsId:0,deliveryPrice:0}),n=k.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"},x=_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||(x.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=J,T=Q,F=Z,U=B,A=Y;return t(a).logisticsId==0||t(a).logisticsId==null?(_(),v("div",m," \u8BE5\u8BA2\u5355\u6682\u65E0\u7269\u6D41\u8BB0\u5F55 ")):(_(),h(A,{key:1,class:j({"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(M)(t(a).deliveryPrice))+"\u5143",1)]),d(U,null,{default:r(()=>[d(F,{labelClassName:"no-colon"},{default:r(()=>[d(T,null,{default:r(()=>[(_(!0),v(K,null,q(t(a).logs,(c,R)=>(_(),h(i,{key:R,timestamp:t(st)(c.time),placement:"top"},{dot:r(()=>[l("span",{style:H({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","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/trade/order/components/OrderLogistics.vue"]])});export{mt as __tla,E as default};