1 |
- import{_ as F}from"./ContentWrap.vue_vue_type_script_setup_true_lang-3e2a4d47.js";import{d as P,af as m,r as h,b as A,e as U,x,o as r,j as i,w as a,Z as S,a as e,i as n,c as Y,A as j,k as d,t as p,av as R,F as D}from"./index-6d906b8a.js";import{E as I,a as L}from"./el-descriptions-item-9d55de2b.js";import{E as M,a as N}from"./el-timeline-item-4d02b36e.js";import{g as O}from"./index-69b80eed.js";import{f as Z}from"./formatTime-b48ce278.js";import{e as q,D as u,b as z}from"./dict-1d5b7a74.js";import{_ as B}from"./_plugin-vue_export-helper-1b428a4d.js";import"./el-card-dcb0121c.js";const G={class:"el-timeline-right-content"},H=B(P({__name:"OrderLogs",props:{id:m.number.def(void 0),showPickUp:m.bool.def(!0)},setup(f){const l=h({logs:[]}),_=f,g=A(),y=U(()=>g.getMobile),b=s=>{const o=z(u.USER_TYPE,s);switch(o==null?void 0:o.colorType){case"success":return"#67C23A";case"info":return"#909399";case"warning":return"#E6A23C";case"danger":return"#F56C6C"}return"#409EFF"},c=_.id;return x(async()=>{(async()=>{if(c){const s=await O(c);s||(message.error("\u4EA4\u6613\u8BA2\u5355\u4E0D\u5B58\u5728"),close()),l.value=s}})()}),(s,o)=>{const E=M,T=N,C=I,k=L,v=F;return r(),i(v,{class:S({"mobile-card":e(y)}),style:{"padding-top":"1rem"}},{default:a(()=>[n(k,null,{default:a(()=>[n(C,{labelClassName:"no-colon"},{default:a(()=>[n(T,null,{default:a(()=>[(r(!0),Y(D,null,j(e(l).logs,(t,w)=>(r(),i(E,{key:w,timestamp:e(Z)(t.createTime),placement:"top"},{dot:a(()=>[d("span",{style:R({backgroundColor:b(t.userType)}),class:"dot-node-style"},p(e(q)(e(u).USER_TYPE,t.userType)[0]),5)]),default:a(()=>[d("div",G,p(t.content),1)]),_:2},1032,["timestamp"]))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["class"])}}}),[["__scopeId","data-v-fde57e30"]]);export{H as default};
|