更新
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import{o as V,q as t,r as o,ae as v,s as i,O as h,D as u,v as z,bm as M,L as d,T as l,F as y,G as P,a1 as F,P as r,p as a}from"./.pnpm-CyuAWpdG.js";import{$ as q,a0 as A,a1 as G,S as I,a2 as O,a3 as U,a4 as Y,a5 as $,Y as j,V as H,U as J,T as K,a6 as Q,_ as W}from"./index-Bkarz3gO.js";const X={class:"rv-line rv-line--head"},Z={class:"rv-tooltip"},ee={key:3,class:"rv-doctor"},te={key:0,class:"rv-dot"},se={class:"rv-line rv-line--order"},ae={key:0,class:"rv-order-date"},oe={key:1,class:"rv-dot"},le={class:"rv-anchor"},re={class:"rv-line rv-line--due"},ie={key:0,class:"rv-due-date"},ce={key:0,class:"rv-line rv-line--follow"},ne={key:1,class:"rv-none"},ue=V({__name:"RevisitNodeCell",props:{due:{},compact:{type:Boolean,default:!1},hasPrescription:{type:Boolean,default:!1},followupDoctorName:{default:""},prescribedText:{}},setup(n){const e=n,c=a(()=>q(e.due)),p=a(()=>e.prescribedText!==void 0?e.prescribedText:e.hasPrescription?"已开方":"未开方"),m=a(()=>A(e.due)),T=a(()=>{var s;return c.value&&Number((s=e.due)==null?void 0:s.current_slot)>0?"primary":"info"}),x=a(()=>G(e.due)),f=a(()=>{var s;return c.value?I((s=e.due)==null?void 0:s.order_date):""}),k=a(()=>O(e.due)),S=a(()=>U(e.due)),g=a(()=>{var s;return c.value?Y((s=e.due)==null?void 0:s.anchor_src):""}),D=a(()=>$(e.due)),b=a(()=>j(e.due)),L=a(()=>{var s;return H((s=e.due)==null?void 0:s.state)}),B=a(()=>{var s;return J((s=e.due)==null?void 0:s.state)}),E=a(()=>K(e.due)),C=a(()=>Q(e.due));return(s,N)=>{const _=M,R=F;return t(),o("div",{class:v(["rv-cell",{"rv-cell--compact":n.compact}])},[i("div",X,[c.value&&x.value.length?(t(),h(R,{key:0,placement:"top","show-after":300,"hide-after":0},{content:u(()=>[i("div",Z,[(t(!0),o(y,null,P(x.value,w=>(t(),o("div",{key:w},l(w),1))),128))])]),default:u(()=>[z(_,{size:"small",type:T.value,effect:"light",class:"rv-slot-tag"},{default:u(()=>[d(l(m.value),1)]),_:1},8,["type"])]),_:1})):c.value?(t(),h(_,{key:1,size:"small",type:T.value,effect:"light",class:"rv-slot-tag"},{default:u(()=>[d(l(m.value),1)]),_:1},8,["type"])):r("",!0),p.value?(t(),o("span",{key:2,class:v(["rv-prescribed",n.hasPrescription?"rv-prescribed--yes":"rv-prescribed--no"])},l(p.value),3)):r("",!0),n.followupDoctorName?(t(),o("span",ee,[p.value?(t(),o("span",te,"·")):r("",!0),d(l(n.followupDoctorName),1)])):r("",!0)]),c.value?(t(),o(y,{key:0},[i("div",se,[f.value?(t(),o("span",ae,l(f.value)+" 开药",1)):r("",!0),f.value?(t(),o("span",oe,"·")):r("",!0),i("span",{class:v(["rv-days",{"rv-days--missing":k.value}])},l(S.value),3),!k.value&&g.value?(t(),o(y,{key:2},[N[0]||(N[0]=i("span",{class:"rv-dot"},"·",-1)),i("span",le,l(g.value),1)],64)):r("",!0)]),i("div",re,[D.value?(t(),o("span",ie,l(D.value),1)):r("",!0),b.value?(t(),h(_,{key:1,size:"small",type:L.value,effect:B.value,class:v(E.value)},{default:u(()=>[d(l(b.value),1)]),_:1},8,["type","effect","class"])):r("",!0)]),C.value?(t(),o("div",ce,l(C.value),1)):r("",!0)],64)):(t(),o("span",ne,"—"))],2)}}}),pe=W(ue,[["__scopeId","data-v-fb0ce27b"]]);export{pe as default};
|
||||
Reference in New Issue
Block a user