Files
zyt/server/public/admin/assets/detail-BREDNhLS.js
T
2026-07-03 12:07:34 +08:00

2 lines
4.0 KiB
JavaScript

import{_ as N}from"./index-BeJT5uVo.js";import{o as V,q as r,r as p,v as l,D as a,c0 as C,c1 as I,L as n,T as o,u as t,F as m,G as y,O as u,br as L,P as O,aa as T,s as g,M as h,p as F}from"./.pnpm-BGZW0UGg.js";import{a1 as R}from"./tcm-o2aZele6.js";import{m as q}from"./index-CeIwrh_6.js";const z={class:"detail-popup"},G={key:0},H={key:0,class:"flex gap-2"},M={key:1},P={key:0,class:"flex flex-wrap gap-2"},S={key:1},j={style:{"white-space":"pre-wrap"}},A={style:{"white-space":"pre-wrap"}},J={style:{"white-space":"pre-wrap"}},Z=V({__name:"detail",setup(K,{expose:x}){const b=h(),e=h({}),v=h([]),D=async()=>{try{const i=await q({type:"past_history"});v.value=(i==null?void 0:i.past_history)||[]}catch(i){console.error("获取字典数据失败:",i)}},w=F(()=>!e.value.past_history||!e.value.past_history.length?[]:e.value.past_history.map(i=>{const _=v.value.find(s=>s.value===i);return _?_.name:i}));return x({open:async i=>{b.value.open(),await D(),e.value=await R({id:i})}}),(i,_)=>{const s=I,d=L,k=T,E=C,B=N;return r(),p("div",z,[l(B,{ref_key:"popupRef",ref:b,title:"诊单详情",width:"800px","show-confirm":!1,"z-index":1500},{default:a(()=>[l(E,{column:2,border:""},{default:a(()=>[l(s,{label:"患者ID"},{default:a(()=>[n(o(t(e).patient_id),1)]),_:1}),l(s,{label:"患者姓名"},{default:a(()=>[n(o(t(e).patient_name),1)]),_:1}),l(s,{label:"性别"},{default:a(()=>[n(o(t(e).gender_desc),1)]),_:1}),l(s,{label:"年龄"},{default:a(()=>[n(o(t(e).age)+"岁 ",1)]),_:1}),l(s,{label:"诊断日期"},{default:a(()=>[n(o(t(e).diagnosis_date_text),1)]),_:1}),l(s,{label:"诊断类型"},{default:a(()=>[n(o(t(e).diagnosis_type),1)]),_:1}),l(s,{label:"证型",span:2},{default:a(()=>[n(o(t(e).syndrome_type),1)]),_:1}),l(s,{label:"既往史",span:2},{default:a(()=>[(r(!0),p(m,null,y(t(w),c=>(r(),u(d,{key:c,class:"mr-2",type:"info"},{default:a(()=>[n(o(c),1)]),_:2},1024))),128)),t(w).length?O("",!0):(r(),p("span",G,"无"))]),_:1}),l(s,{label:"外伤史"},{default:a(()=>[n(o(t(e).trauma_history?"有":"无"),1)]),_:1}),l(s,{label:"手术史"},{default:a(()=>[n(o(t(e).surgery_history?"有":"无"),1)]),_:1}),l(s,{label:"过敏史"},{default:a(()=>[n(o(t(e).allergy_history?"有":"无"),1)]),_:1}),l(s,{label:"家族病史"},{default:a(()=>[n(o(t(e).family_history?"有":"无"),1)]),_:1}),l(s,{label:"妊娠哺乳史",span:2},{default:a(()=>[n(o(t(e).pregnancy_history?"有":"无"),1)]),_:1}),l(s,{label:"舌苔照片",span:2},{default:a(()=>[t(e).tongue_images&&t(e).tongue_images.length?(r(),p("div",H,[(r(!0),p(m,null,y(t(e).tongue_images,(c,f)=>(r(),u(k,{key:f,src:c,"preview-src-list":t(e).tongue_images,style:{width:"100px",height:"100px"},fit:"cover"},null,8,["src","preview-src-list"]))),128))])):(r(),p("span",M,"暂无"))]),_:1}),l(s,{label:"检查报告",span:2},{default:a(()=>[t(e).report_files&&t(e).report_files.length?(r(),p("div",P,[(r(!0),p(m,null,y(t(e).report_files,(c,f)=>(r(),u(k,{key:f,src:c,"preview-src-list":t(e).report_files,style:{width:"100px",height:"100px"},fit:"cover"},null,8,["src","preview-src-list"]))),128))])):(r(),p("span",S,"暂无"))]),_:1}),l(s,{label:"症状",span:2},{default:a(()=>[n(o(t(e).symptoms||"无"),1)]),_:1}),l(s,{label:"舌苔"},{default:a(()=>[n(o(t(e).tongue_coating||"无"),1)]),_:1}),l(s,{label:"脉象"},{default:a(()=>[n(o(t(e).pulse||"无"),1)]),_:1}),l(s,{label:"治则",span:2},{default:a(()=>[n(o(t(e).treatment_principle||"无"),1)]),_:1}),l(s,{label:"在用药物",span:2},{default:a(()=>[g("div",j,o(t(e).current_medications||"无"),1)]),_:1}),l(s,{label:"处方",span:2},{default:a(()=>[g("div",A,o(t(e).prescription||"无"),1)]),_:1}),l(s,{label:"医嘱",span:2},{default:a(()=>[g("div",J,o(t(e).doctor_advice||"无"),1)]),_:1}),l(s,{label:"备注",span:2},{default:a(()=>[n(o(t(e).remark||"无"),1)]),_:1}),l(s,{label:"状态"},{default:a(()=>[t(e).status==1?(r(),u(d,{key:0,type:"success"},{default:a(()=>[..._[0]||(_[0]=[n("启用",-1)])]),_:1})):(r(),u(d,{key:1,type:"danger"},{default:a(()=>[..._[1]||(_[1]=[n("禁用",-1)])]),_:1}))]),_:1}),l(s,{label:"创建时间"},{default:a(()=>[n(o(t(e).create_time),1)]),_:1})]),_:1})]),_:1},512)])}}});export{Z as default};