2 lines
3.0 KiB
JavaScript
2 lines
3.0 KiB
JavaScript
import{o as P,q as t,r as o,ai as v,s as i,O as h,D as u,v as R,bp as z,L as d,T as l,F as y,G as V,a5 as F,P as r,p as a}from"./.pnpm-DnXobOVo.js";import{bJ as O,bK as q,bL as A,be as G,bM as I,bN as J,bO as K,bP as Q,bk as j,bh as H,bg as U,bf as W,bQ as X,_ as Y}from"./index-IqTjb7BC.js";const Z={class:"rv-line rv-line--head"},$={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=P({__name:"RevisitNodeCell",props:{due:{},compact:{type:Boolean,default:!1},hasPrescription:{type:Boolean,default:!1},followupDoctorName:{default:""},prescribedText:{}},setup(n){const e=n,c=a(()=>O(e.due)),p=a(()=>e.prescribedText!==void 0?e.prescribedText:e.hasPrescription?"已开方":"未开方"),m=a(()=>q(e.due)),T=a(()=>{var s;return c.value&&Number((s=e.due)==null?void 0:s.current_slot)>0?"primary":"info"}),b=a(()=>A(e.due)),f=a(()=>{var s;return c.value?G((s=e.due)==null?void 0:s.order_date):""}),x=a(()=>I(e.due)),L=a(()=>J(e.due)),k=a(()=>{var s;return c.value?K((s=e.due)==null?void 0:s.anchor_src):""}),g=a(()=>Q(e.due)),D=a(()=>j(e.due)),S=a(()=>{var s;return H((s=e.due)==null?void 0:s.state)}),B=a(()=>{var s;return U((s=e.due)==null?void 0:s.state)}),E=a(()=>W(e.due)),N=a(()=>X(e.due));return(s,C)=>{const _=z,M=F;return t(),o("div",{class:v(["rv-cell",{"rv-cell--compact":n.compact}])},[i("div",Z,[c.value&&b.value.length?(t(),h(M,{key:0,placement:"top","show-after":300,"hide-after":0},{content:u(()=>[i("div",$,[(t(!0),o(y,null,V(b.value,w=>(t(),o("div",{key:w},l(w),1))),128))])]),default:u(()=>[R(_,{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":x.value}])},l(L.value),3),!x.value&&k.value?(t(),o(y,{key:2},[C[0]||(C[0]=i("span",{class:"rv-dot"},"·",-1)),i("span",le,l(k.value),1)],64)):r("",!0)]),i("div",re,[g.value?(t(),o("span",ie,l(g.value),1)):r("",!0),D.value?(t(),h(_,{key:1,size:"small",type:S.value,effect:B.value,class:v(E.value)},{default:u(()=>[d(l(D.value),1)]),_:1},8,["type","effect","class"])):r("",!0)]),N.value?(t(),o("div",ce,l(N.value),1)):r("",!0)],64)):(t(),o("span",ne,"—"))],2)}}}),pe=Y(ue,[["__scopeId","data-v-fb0ce27b"]]);export{pe as default};
|