剂数多为默认 1,「查看处方」不带订单时原先回退到剂数,显示成「1 天」(如 RX202611279682 实际服用 14 天)。 现按 订单用药天数 → 处方服用天数 取值,均未填写显示「—」。管理后台与桌面端一致,重新构建管理后台。 Co-Authored-By: Claude Opus 5 (1M context) <[EMAIL]>
2 lines
3.0 KiB
JavaScript
2 lines
3.0 KiB
JavaScript
import{o as V,q as t,r as o,ai as v,s as i,O as h,D as u,v as z,bp as M,L as d,T as l,F as y,G as P,a5 as F,P as r,p as a}from"./.pnpm-DnXobOVo.js";import{bQ as q,bR as A,bS as G,bl as I,bT as O,bU as Q,bV as U,bW as W,br as X,bo as j,bn as H,bm as J,bX as K,_ as Y}from"./index-B5yNocKV.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=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"}),b=a(()=>G(e.due)),f=a(()=>{var s;return c.value?I((s=e.due)==null?void 0:s.order_date):""}),x=a(()=>O(e.due)),S=a(()=>Q(e.due)),k=a(()=>{var s;return c.value?U((s=e.due)==null?void 0:s.anchor_src):""}),g=a(()=>W(e.due)),D=a(()=>X(e.due)),L=a(()=>{var s;return j((s=e.due)==null?void 0:s.state)}),B=a(()=>{var s;return H((s=e.due)==null?void 0:s.state)}),R=a(()=>J(e.due)),C=a(()=>K(e.due));return(s,N)=>{const _=M,E=F;return t(),o("div",{class:v(["rv-cell",{"rv-cell--compact":n.compact}])},[i("div",Z,[c.value&&b.value.length?(t(),h(E,{key:0,placement:"top","show-after":300,"hide-after":0},{content:u(()=>[i("div",$,[(t(!0),o(y,null,P(b.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":x.value}])},l(S.value),3),!x.value&&k.value?(t(),o(y,{key:2},[N[0]||(N[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:L.value,effect:B.value,class:v(R.value)},{default:u(()=>[d(l(D.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=Y(ue,[["__scopeId","data-v-fb0ce27b"]]);export{pe as default};
|