import{Q as w}from"./qrcode2.0c0c9194.js";import{X as k}from"./portrait.cf4d213b.js";import{_ as R,d as S,s as T,f as y}from"./index.d8dd5fc3.js";import{J as I,a1 as q,b as u,h as H,p as a,q as o,t,X as s,V as c,M as N,aE as z,W as D,aB as V,aC as M}from"./@vueup/vue-quill.21cd2cdd.js";import"./axios.ea4db374.js";import"./element-plus.f81624fb.js";import"./dayjs.a1cdcf75.js";import"./js-md5.b1820eba.js";import"./recordrtc.23a12127.js";import"./ali-oss.30ce4767.js";import"./nprogress.136ad679.js";import"./v-viewer.c3762968.js";const L=I({setup(e,A){const r=S(),n=q({}),d=u(""),_=u(""),m=u(null),f=u(null),v=u(null),F=u(null),g=u(null),h=u(!1),C=p=>{let i=p;document.getElementById("qrcode"),new w("qrcode",{width:100,height:100,text:i})},E=()=>{setTimeout(()=>{window.print()},1500)},B=()=>{let p={report_id:r.query.report_id,is_remote:r.query.isRemote};k(p).then(i=>{if(i){if(Object.assign(n,i),d.value=y.getReplaceUrl(i.report_autograph,i.report_autograph_type),_.value=y.getReplaceUrl(i.review_autograph,i.review_autograph_type),n.institution_name.length>=11&&(n.institution_name.length>14&&(document.getElementsByClassName("hospitalTitle")[0].style.letterSpacing=0,document.getElementsByClassName("hospitalTitle")[0].style.fontSize=26+"px"),document.getElementsByClassName("hospitalTitle")[0].style.letterSpacing=0),n.patient_num.length>=10){let b=document.getElementsByClassName("record")[0];b.style.fontSize=14+"px"}r.query.operationType==="stamp"&&E(),n.qr_code!=null&&C(n.qr_code)}})};return H(()=>{setTimeout(()=>{const p=f.value.offsetHeight+v.value.offsetHeight+F.value.offsetHeight+g.value.offsetHeight;console.log(p,"\u5185\u5BB9\u603B\u8BA1\u9AD8\u5EA6"),p>m.value.offsetHeight?h.value=!1:h.value=!0},400)}),B(),{allData:n,report_autograph:d,review_autograph:_,institutionId:T.get("user").institution_id,headerRef:f,stampRef:m,personalRef:v,resultRef:F,bottomRef:g,isVisible:h}}}),l=e=>(V("data-v-1a0c3e3c"),e=e(),M(),e),$={class:"Stamp",ref:"stampRef"},Q={class:"Stamp-content"},j={ref:"headerRef"},U={class:"hospital"},X={class:"reportName"},J={class:"hospitalTitle"},O={style:{"font-size":"23px"}},P={style:{position:"relative"}},W={key:0,style:{"text-align":"center","font-size":"18px","font-weight":"800","vertical-align":"top","letter-spacing":"0px",position:"absolute",left:"-170px",width:"66px",bottom:"34px","font-family":"'\u9ED1\u4F53\u4E94\u53F7'"}},G=z('
\u8BF7\u4F7F\u7528\u5FAE\u4FE1\u626B\u7801
\u83B7\u53D6\u6570\u5B57\u5F71\u50CF
',1),K={key:0,style:{"text-align":"right"}},Y=l(()=>t("p",{style:{"margin-bottom":"0.4em"}},"\u201C\u25C6\u201D\u533B\u7597\u673A\u6784\u653E\u5C04\u5F71\u50CF\u4E92\u8BA4\u9879\u76EE",-1)),Z=[Y],x={ref:"personalRef"},tt={class:"detailsInfo"},et=l(()=>t("span",{class:"label"},"\u59D3\u540D\uFF1A",-1)),st={class:"value"},at=l(()=>t("span",{class:"label"},"\u6027\u522B\uFF1A",-1)),ot={key:0,class:"value"},lt={key:1,class:"value"},nt=l(()=>t("span",{class:"label"},"\u5E74\u9F84\uFF1A",-1)),it={class:"value"},ut=l(()=>t("span",{class:"label"},"\u75C5\u5386\u53F7\uFF1A",-1)),ct={class:"value record"},pt=l(()=>t("span",{class:"label"},"\u95E8\u8BCA\u53F7\uFF1A",-1)),rt={class:"value out_patient"},dt=l(()=>t("span",{class:"label"},"\u4F4F\u9662\u53F7\uFF1A",-1)),_t={class:"value"},ht={key:0},mt=l(()=>t("span",{class:"label"},"\u5E8A\u53F7\uFF1A",-1)),ft={class:"value"},vt={key:1},Ft=l(()=>t("span",{class:"label"},"\u75C5\u533A\uFF1A",-1)),gt={class:"value"},yt={style:{width:"50%"}},Dt=l(()=>t("span",{class:"label",style:{width:"90px"}},"\u7533\u8BF7\u79D1\u5BA4\uFF1A",-1)),At={class:"value"},Ct={style:{width:"50%"}},Et=l(()=>t("span",{class:"label"},"\u68C0\u67E5\u53F7\uFF1A",-1)),Bt={class:"value"},bt={class:"headerInfo"},wt={class:"result",ref:"resultRef"},kt={class:"printCss"},Rt=l(()=>t("span",{class:"label"},"\u68C0\u67E5\u6240\u89C1\uFF1A",-1)),St=["innerHTML"],Tt={key:1,style:{"white-space":"pre-wrap"}},It={class:"printCss"},qt=l(()=>t("span",{class:"label"},"\u5370\u8C61\uFF1A",-1)),Ht=["innerHTML"],Nt={key:1},zt={class:"docter"},Vt={key:0},Mt=D(" \u62A5\u544A\u533B\u5E08\uFF1A "),Lt=["src"],$t={key:1},Qt={key:2},jt={key:0},Ut=D(" \u5BA1\u6838\u533B\u5E08\uFF1A "),Xt=["src"],Jt={key:1},Ot={class:"time"},Pt=l(()=>t("span",null,"\u672C\u68C0\u67E5\u7ED3\u679C\u4EC5\u53CD\u5E94\u53D7\u68C0\u8005\u5F53\u65F6\u7684\u60C5\u51B5\u53CA\u4EC5\u4F9B\u4E34\u5E8A\u533B\u5E08\u53C2\u8003",-1));function Wt(e,A,r,n,d,_){return a(),o("div",$,[t("div",Q,[t("section",j,[t("section",U,[t("div",X,[t("p",J,s(e.allData.institution_name),1),t("p",O,s(e.allData.exam_class)+"\u68C0\u67E5\u62A5\u544A\u5355",1)]),t("div",P,[e.allData.hr_status==1&&e.allData.hr_info?(a(),o("span",W,s(e.allData.hr_info),1)):c("",!0),G])]),e.institutionId=="73000003"?(a(),o("section",K,Z)):c("",!0)],512),t("section",x,[t("section",tt,[t("div",null,[et,t("span",st,s(e.allData.name),1)]),t("div",null,[at,e.allData.sex=="F"||e.allData.sex=="\u5973"?(a(),o("span",ot,"\u5973")):c("",!0),e.allData.sex=="M"||e.allData.sex=="\u7537"?(a(),o("span",lt,"\u7537")):c("",!0)]),t("div",null,[nt,t("span",it,s(e.allData.age),1)]),t("div",null,[ut,t("span",ct,s(e.allData.patient_num),1)]),t("div",null,[pt,t("span",rt,s(e.allData.out_patient),1)]),t("div",null,[dt,t("span",_t,s(e.allData.hopitalized_no),1)]),e.institutionId!=="16100014"?(a(),o("div",ht,[mt,t("span",ft,s(e.allData.bed_no),1)])):c("",!0),e.institutionId!=="16100014"?(a(),o("div",vt,[Ft,t("span",gt,s(e.allData.patient_area),1)])):c("",!0),t("div",yt,[Dt,t("span",At,s(e.allData.application_department),1)]),t("div",Ct,[Et,t("span",Bt,s(e.allData.accession_num),1)])]),t("section",bt,[t("span",null,"\u68C0\u67E5\u65B9\u6CD5\uFF1A"+s(e.allData.exam_project),1)])],512),t("section",wt,[t("div",kt,[Rt,/<[^>]+>/g.test(e.allData.description)?(a(),o("span",{key:0,style:{"white-space":"pre-wrap"},innerHTML:e.allData.description},null,8,St)):(a(),o("pre",Tt,s(e.allData.description),1))]),t("div",It,[qt,/<[^>]+>/g.test(e.allData.impression)?(a(),o("span",{key:0,style:{"white-space":"pre-wrap"},innerHTML:e.allData.impression},null,8,Ht)):(a(),o("pre",Nt,s(e.allData.impression),1))])],512),t("section",{class:"bottom",style:N([e.isVisible?"bottom:0":""]),ref:"bottomRef"},[t("section",zt,[e.allData.report_use_autograph==1?(a(),o("span",Vt,[Mt,t("img",{src:this.report_autograph,alt:""},null,8,Lt)])):(a(),o("span",$t,"\u62A5\u544A\u533B\u5E08\uFF1A"+s(e.allData.report_doctor_name),1)),e.allData.review_print=="1"?(a(),o("span",Qt,[e.allData.review_use_autograph==1?(a(),o("span",jt,[Ut,t("img",{src:this.review_autograph,alt:""},null,8,Xt)])):(a(),o("span",Jt,"\u5BA1\u6838\u533B\u5E08\uFF1A"+s(e.allData.review_doctor_name),1))])):c("",!0)]),t("section",Ot,[Pt,t("span",null,"\u62A5\u544A\u65E5\u671F\uFF1A"+s(e.allData.report_datetime),1)])],4)])],512)}const ie=R(L,[["render",Wt],["__scopeId","data-v-1a0c3e3c"]]);export{ie as default};