1 |
- !function(){var e=document.createElement("style");e.innerHTML='body.pc{font-size:14px;min-width:1140px}body.pc .wrap{width:1024px;padding:64px 0;margin:auto;display:flex;flex-direction:column;position:relative}body.pc .build-report{position:fixed;width:1024px;text-align:right;z-index:100}body.pc .build-report span{cursor:pointer;background-color:#39caaf;color:#fff;padding:10px;width:60px;height:60px;text-align:center;border-radius:4px;font-weight:500;position:absolute}body.pc .build-report2{position:fixed;width:950px;text-align:right;z-index:100}body.pc .build-report2 span{cursor:pointer;background-color:#39caaf;color:#fff;padding:10px;width:60px;height:60px;text-align:center;border-radius:4px;font-weight:500;position:absolute}body.pc .btmpoint{font-size:1.7rem;line-height:2;width:100%;text-align:center;font-weight:600}body.pc .btmbutton{width:20%;padding:10px;background-color:#39caaf;color:#fff;font-size:20px;text-align:center;border-radius:50px;position:fixed;left:43%;bottom:30px}body.pc .mai-item{letter-spacing:1px}body.pc .mai-item.device-info{border-top:2px solid #e5e9f2;padding:8px;margin-top:12px}body.pc .mai-item h1.title{font-size:26px;color:#39caaf;border-left:40px solid #39caaf;padding-left:12px;line-height:40px;font-weight:500}body.pc .mai-item h1.title.yellow{border-color:#f5b52a;color:#f5b52a}body.pc .mai-item h1.title.blue{border-color:#2291fb;color:#2291fb}body.pc .mai-item h2.sub-title{font-size:18px;font-weight:600;margin-bottom:3rem}body.pc .item-border-top{border-top:2px solid #e5e9f2;margin-top:16px;padding-top:36px}body.pc .mai{font-size:24px;line-height:2;padding-left:53px}body.pc .legend{border:1px solid #eff2f7;background-color:#fbfbfb;border-radius:6px;padding:10px 10px 10px 0;display:flex;justify-content:space-between;align-items:center;text-align:center;color:#475669;font-size:12px;min-height:60px}body.pc .legend>.title{border-right:1px solid #e5e9f2;width:52px;color:#8492a6}body.pc .legend .item{border-radius:1px}body.pc .legend-mai{width:280px;margin-left:53px}body.pc .legend-mai .item{background-image:url(//taiyi.oss-accelerate.aliyuncs.com/website/hybrid-app/test/report/3d_unhealthy.png?v=2.25.2);background-position:top;background-size:80px 25px;background-repeat:no-repeat;padding-top:30px;width:80px}body.pc .legend-mai .item2{background-image:url(//taiyi.oss-accelerate.aliyuncs.com/website/hybrid-app/test/report/3d_healthy.png?v=2.25.2)}body.pc .hand-branch_legend{margin-left:53px;display:flex;flex-direction:column;align-items:center}body.pc .legend-branch .title{margin-right:12px}body.pc .legend-branch .item{border-left:#f7f3e9 solid 20px;padding-left:8px;font-weight:400;line-height:1}body.pc .legend-branch .item2{border-color:#a3e5d9;margin-top:10px}body.pc .paragraph-wrap{padding-left:52px;padding-top:12px;margin-bottom:20px}body.pc .paragraph{padding-top:12px}body.pc .paragraph h3{font-weight:400;font-size:18px}body.pc .paragraph-p{margin-bottom:16px;text-align:justify;font-size:18px}body.pc .paragraph-p:last-child{margin-bottom:0}body.pc .legend-channel{width:260px;margin-bottom:4px}body.pc .legend-channel .item{position:relative;line-height:16px}body.pc .legend-channel .item:before{position:absolute;content:"";width:24px;height:16px;background-color:#c23534;left:0}body.pc .legend-channel .item2:before{background-color:#fff;border:1px solid #f1b5b7}body.pc .legend-dialectical{width:260px}body.pc .legend-dialectical>div>div{text-align:left}body.pc .legend-dialectical .dialectical{display:flex;flex-wrap:wrap;width:180px}body.pc .legend-dialectical .dialectical .item{width:50%;border-left:#3bdcc9 solid 24px;padding-left:8px;font-weight:400;line-height:16px;margin-top:8px}body.pc .legend-dialectical .dialectical .item2{border-color:#fbb74a}body.pc .legend-dialectical .dialectical .item3{border-color:#fee273}body.pc .legend-dialectical .dialectical .item4{border-color:#de4d56}body.pc .user-info{margin-bottom:40px;width:360px;display:flex;justify-content:space-between;text-align:center}body.pc .user-info .user{width:220px}body.pc .user-info .user p{color:#99a9bf}body.pc .user-info .name{font-size:22px;padding:6px 0;line-height:1.5;min-height:45px}body.pc .user-info .name span{font-size:10px;padding-left:10px}body.pc .user-info .portrait{margin:auto;width:94px;height:94px;border:1px solid #eff2f7;border-radius:10px;background-size:cover;background-position:center}body.pc .mai-hand{width:100px;height:180px}body.pc .mai-total h1.title{margin-bottom:20px}body.pc .mai-desc{padding-top:0}body.pc .heart-rate{background-position:left;background-size:30px;padding-left:52px;font-size:16px;font-weight:bolder;line-height:2.5}body.pc .user-desc-three{display:flex;justify-content:space-between;align-items:center}body.pc .user-desc-three .user-desc{width:380px}body.pc .user-desc-three .three{width:640px}body.pc .user-desc-three .three .loading-component{height:512px}body.pc .stability .paragraph{padding-top:0}body.pc .stability .paragraph p{margin-bottom:0;font-size:12px;letter-spacing:0;color:#99a9bf}body.pc .stability .num{font-size:40px;font-weight:bolder;padding-right:50px}body.pc .stability .num i{font-size:24px;font-style:normal}body.pc .pc-branch-warp{min-height:444px;display:flex;align-items:center;justify-content:space-between}body.pc .pc-branch-warp .loading-component{height:444px;width:780px}body.pc .pc-branch{width:780px;display:flex;justify-content:space-between;text-align:center}body.pc .pc-branch .branch-canvas-wrap{margin:auto}body.pc .mai-channel{display:flex;flex-direction:column;justify-content:space-between}body.pc .mai-channel .channel-content{padding-left:52px;width:100%}body.pc .mai-channel .chart-channel{margin:0;height:900px}body.pc .mai-qxjy{display:flex;flex-direction:column;justify-content:space-between}body.pc .mai-qxjy .qxjy-content{padding-left:52px;width:100%;display:flex;align-items:center;justify-content:space-between}body.pc .mai-qxjy .chart-qxjy{width:540px}body.pc .mai-qxjy .chart-qxjy .column{width:280px;height:320px}body.pc .mai-qxjy .chart-qxjy .icon{background-size:35px;padding-top:36px}body.pc .mai-heresy{display:flex}body.pc .mai-heresy .desc-heresy{width:100%}body.pc .mai-heresy .chart-heresy{align-items:center}body.pc .mai-heresy .chart-heresy .item{width:132px;background-size:60%;padding-top:80px}html{font-size:10px}.btmbutton{width:20%;padding:10px;background-color:#39caaf;color:#fff;font-size:20px;text-align:center;border-radius:50px;position:fixed;left:43%;bottom:30px}body.print.pc{font-size:1.4rem;width:100%;height:auto;min-width:auto;margin:auto;background-color:#c0cdde}body.print.pc .nop-page-hr{background-color:#c0cdde}body.print.pc .page-num-simple{margin-left:100px;margin-right:40px;border-top:2px solid #e5e9f2;width:84%;height:70px;display:flex;justify-content:space-between}body.print.pc .page-num-simple .hole-content{position:absolute;display:flex;justify-content:space-between;bottom:0;width:80%;height:60px}body.print.pc .page-num-simple .hole-content .content-warp{margin-top:5px}body.print.pc .page-num-simple .hole-content .content-warp i{display:block;font-style:normal;min-width:20%;text-align:left;font-size:1.4rem}body.print.pc .page-num-simple .hole-content i{font-style:normal}body.print.pc .page-num-simple span{background-color:#8492a6;position:absolute;bottom:0;right:0;width:60px;height:60px;line-height:60px;text-align:center;font-size:3.6rem;color:#fff}body.print.pc .nop-page-content .item-border-top:first-child{position:relative;border-top:none!important;padding-top:0;margin-top:36px}body.print.pc .wrap{width:100%;padding:0;margin:0}body.print.pc .print-home{width:100%;height:100%;background-image:url(//taiyi.oss-accelerate.aliyuncs.com/website/hybrid-app/test/report/print-home.jpg?v=2.25.2);background-repeat:no-repeat;background-size:cover;position:absolute;top:0;left:0}body.print.pc .print-home .name-wrap{position:absolute;left:42.5%;top:20%;font-size:5rem}body.print.pc .print-home .name-wrap p{color:#475669;font-size:4.5rem}body.print.pc .btmpoint{font-size:1.7rem;line-height:2;width:100%;text-align:center;font-weight:600}body.print.pc .mai-item h1.title{font-size:2rem;border-left-width:24px;height:24px;line-height:24px;font-weight:bolder;padding-left:16px}body.print.pc .legend{margin-left:40px}body.print.pc .legend .title{font-size:1.6rem;width:7.2rem}body.print.pc .legend-branch .item{border-left-width:24px}body.print.pc .legend-channel,body.print.pc .legend-dialectical{width:280px}body.print.pc .paragraph-wrap{padding-left:40px;font-size:1.4rem}body.print.pc .heart-rate{padding-left:40px}body.print.pc .print-page-wrap{width:100%}body.print.pc .print-page{width:100%;padding:0 60px;position:relative;overflow:hidden}body.print.pc .page-top{overflow:hidden;display:flex;justify-content:space-between;padding-bottom:7px}body.print.pc .page-top .title{text-align:right}body.print.pc .page-top .title h1{font-size:34px;font-weight:bolder}body.print.pc .page-top .title h2{font-size:24px;font-weight:bolder}body.print.pc .page-top.gray{border-color:#000;color:#000}body.print.pc .print-user{display:flex}body.print.pc .print-user .portrait{margin:auto;width:78px;height:78px;border:1px solid #eff2f7;border-radius:10px;background-size:cover;background-position:center}body.print.pc .print-user .info{padding-left:8px;font-weight:bolder;font-size:16px}body.print.pc .print-user .name{font-size:24px}body.print.pc .print-user .name span{font-size:16px;padding-left:10px}body.print.pc .name-wrap div{font-size:2rem;font-weight:bolder}body.print.pc .name-wrap p{font-size:1.4em}body.print.pc .print-total-item{display:flex;flex-direction:column}body.print.pc .print-total-item h1.title{margin-bottom:120px}body.print.pc .print-total-item .mai{padding-left:40px}body.print.pc .print-total-item .mai-img{display:flex;justify-content:space-between}body.print.pc .print-total-item .mai-total-txt{display:flex;flex-direction:column;justify-content:space-between}body.print.pc .print-total-item .loading-component{height:400px;width:640px}body.print.pc .print-total-item .three{overflow:hidden;height:400px}body.print.pc .print-total-item .three .chart-3d{position:relative;top:-70px}body.print.pc .item-stability{padding-top:0}body.print.pc .stability .paragraph-wrap{display:flex;align-items:center}body.print.pc .print-channel-item .channel-content{align-items:flex-start;padding-left:0}body.print.pc .print-channel-item .channel-title{display:flex;flex-direction:column}body.print.pc .print-channel-item .channel-title h1{margin-bottom:10px}body.print.pc .print-heresy-item{flex-direction:column}body.print.pc .mai-branch .title{display:flex;justify-content:space-between}body.print.pc .mai-branch .loading-component{height:600px}body.print.pc .mai-branch .chart-branch .chart{padding:1.2rem 0;display:flex;justify-content:space-around}body.print.pc .mai-all{margin-top:10px;position:relative;display:flex;align-items:center;width:110%;height:200px}body.print.pc .mai-all .mai-font{text-align:center}body.print.pc .mai-all .mai-font img{height:200px}body.print.pc .mai-all .mai-img{width:80%;height:100%}body.print.pc .mai-color-image{width:70px;height:200px;margin-left:10px}body.print.pc .mai-color-image img{width:100px;height:200px}body.print.pc .far{font-size:40px;display:flex;justify-content:center;align-items:center}body.print.pc .far1{font-size:40px;display:flex;justify-content:center;align-items:center;padding-right:1.4rem}body.print.pc .timeWidth{margin-top:1rem;margin-left:-20px}body.print.pc .hole-body{position:relative}body.print.pc .print-branch-item .pc-branch{width:750px;margin:0;justify-content:space-around}body.print.pc .print-branch-item .branch-content{display:flex;align-items:center;justify-content:space-between}body.print.pc .print-branch-item .branch-content-3d{padding-top:20px}body.print.pc .print-branch-item .branch-content-bar{padding-bottom:20px}body.print.pc .print-branch-item .legend-branch{width:170px;margin-left:0}body.print.pc .print-branch-item .loading-component{width:750px;height:240}body.print.pc .print-branch-item .hand-branch_legend{margin-left:40px}body.print.pc .print-qxjy-item .chart-qxjy{padding:0}body.print.pc .print-qxjy-item .qxjy-content{padding-left:0;align-items:flex-start}body.print.pc .print-qxjy-item .qxjy-title{display:flex;flex-direction:column}body.print.pc .print-qxjy-item .qxjy-title h1.title{margin-bottom:80px}.btn-print{display:block;position:fixed;z-index:100;background-color:#39caaf;color:#fff;-ms-writing-mode:tb-lr;writing-mode:vertical-lr;-ms-writing-mode:tb-rl;writing-mode:tb-rl;text-align:center;font-size:16px;top:200px;right:0;width:40px;height:120px;line-height:40px;letter-spacing:6px;text-indent:6px;border-radius:4px 0 0 4px;cursor:pointer;transition:.2s}.btn-print:hover{opacity:.9}.btmbutton{display:block;letter-spacing:6px;text-indent:6px;z-index:100;width:20%;padding:10px;background-color:#39caaf;color:#fff;font-size:20px;text-align:center;border-radius:50px;position:fixed;right:0;bottom:30px}.build-report3{position:fixed;text-align:right;z-index:100;display:block;cursor:pointer;background-color:#39caaf;color:#fff;padding:10px;width:60px;height:60px;text-align:center;font-size:1.5rem;border-radius:4px;right:200px;top:20px;font-weight:500}@media print{.dialog-msg-print,.test-img,.btn-print,.btmbutton,.build-report3{display:none}}\n',document.head.appendChild(e),System.register(["./preload-helper-legacy.ee49126d.js","./vendor-legacy.4c930df7.js","./pressure-legacy.a0543d60.js","./Loading-legacy.1b89f9f2.js","./maiResult-legacy.6bee908b.js","./useWindowSize-legacy.c24b9a53.js","./groups-legacy.752a5a8a.js","./Chart.vue_vue_type_style_index_0_lang-legacy.4750c813.js","./Stability.vue_vue_type_script_lang-legacy.3bab7056.js","./Chart.vue_vue_type_style_index_0_lang-legacy.e1986213.js","./QxjyLegend-legacy.46052cf7.js","./Header.vue_vue_type_script_lang-legacy.abc4487d.js","./useMaiResult-legacy.8c243de6.js","./usePatientInfo-legacy.117ca2fd.js","./index-legacy.34f943bd.js","./service-legacy.34640094.js","./plugin-vue_export-helper-legacy.d48ec26d.js","./Item.vue_vue_type_script_lang-legacy.57789042.js","./PatientPortait.vue_vue_type_script_lang-legacy.0cd6039f.js"],(function(e,t){"use strict";var i,a,n,l,o,r,c,p,d,s,h,m,g,b,u,y,f,x,v,w,k,j,_,z,q,C,F,R,I,T,U,M,B,D,P,L,N,S,$,W,Y,E,K,G,H,O,Q,A,J,V,X,Z,ee,te,ie,ae,ne,le,oe,re;return{setters:[function(e){i=e.a},function(e){a=e.d,n=e.H,l=e.y,o=e.h,r=e.x,c=e.z,p=e.j,d=e.A,s=e.B,h=e.o,m=e.c,g=e.m,b=e.e,u=e.l,y=e.t,f=e.p,x=e.F,v=e.C,w=e.k,k=e.v,j=e.b,_=e.D,z=e.I,q=e.G},function(e){C=e._,F=e.a,R=e.b,I=e.c,T=e.d,U=e.e,M=e.f},function(e){B=e.L},function(e){D=e.r,P=e.t,L=e.L,N=e.T},function(e){S=e.u},function(e){$=e._,W=e.g},function(e){Y=e._},function(e){E=e._,K=e.a,G=e.b,H=e.c,O=e.d},function(e){Q=e._,A=e.a},function(e){J=e._,V=e.B,X=e.C,Z=e.Q},function(e){ee=e._},function(e){te=e.u},function(e){ie=e.u},function(e){ae=e.s,ne=e.C},function(e){le=e.r,oe=e.g,re=e.b},function(){},function(){},function(){}],execute:function(){const ce=a({components:{Bar:$},props:{widthBar:{type:Number,default:150},value:{type:Object,default:D},feature:{type:Object,default:null},branchResult:{type:Object,default:null},showKong:Boolean},setup(e,t){const i=e=>{t.emit("canline",e)},{branchResult:{branch:a}}=e;return()=>W.map((t=>n("div",{class:"branch-bar"},n($,{color:P[t.key],height:1.5*e.widthBar,value:e.branchResult.branch[t.key].value,width:e.widthBar,mai:a[t.key].mai,showKong:e.showKong,onCanbuildline:i}))))}});const pe={id:"content-box",class:"print-page"},de=g("div",{"data-op-type":"new-page"},null,-1),se=g("div",{"data-op-type":"pendants"},null,-1),he={"data-op-type":"block",class:"mai-item print-total-item item-border-top"},me={class:"mai-img"},ge={class:"mai-total-txt"},be={class:"title"},ue={class:"heart-rate img-heart-rate"},ye={key:0,class:"mai"},fe={class:"three"},xe={"data-op-type":"block",class:"mai-item print-total-item"},ve={class:"paragraph-wrap"},we=g("div",{"data-op-type":"block",class:"mai-item item-border-top"},[g("h1",{class:"title"},"分部脉象")],-1),ke={key:0,"data-op-type":"block",class:"mai-item print-branch-item"},je={class:"branch-content branch-content-3d"},_e={class:"hand-branch_legend"},ze={id:"handLeftImg",class:"mai-hand img-hand left"},qe={id:"handRightImg",class:"mai-hand img-hand"},Ce={key:0,class:"pc-branch pc-branch-3d"},Fe={key:1,class:"pc-branch pc-branch-3d"},Re={key:1,"data-op-type":"block",class:"mai-item print-branch-item"},Ie={class:"branch-content branch-content-bar"},Te={class:"hand-branch_legend"},Ue={class:"pc-branch"},Me={key:2,"data-op-type":"block",class:"mai-item print-branch-item"},Be={class:"branch-content branch-content-3d"},De=g("div",{class:"hand-branch_legend"},[g("div",{id:"handLeftImg",class:"mai-hand img-hand left"})],-1),Pe={class:"pc-branch pc-branch-3d"},Le={key:3,class:"mai-item mai-branch"},Ne={class:"hole-body",style:{"margin-top":"3rem"}},Se={style:{display:"flex",width:"100%","align-items":"center","justify-content":"center"}},$e={class:"mai-all"},We=g("div",{class:"mai-font"},[g("img",{src:R,alt:""})],-1),Ye=g("img",{src:I,alt:"",style:{height:"200px"}},null,-1),Ee=["src"],Ke=g("span",{style:{position:"absolute",top:"0",left:"8%",color:"white"}},"左寸",-1),Ge=g("div",{class:"mai-color-image"},[g("img",{src:T,alt:""})],-1),He={class:"mai-all"},Oe=g("div",{class:"mai-font"},[g("img",{src:U,alt:""})],-1),Qe=g("img",{src:I,alt:"",style:{height:"200px"}},null,-1),Ae=["src"],Je=g("span",{style:{position:"absolute",top:"0",left:"8%",color:"white"}},"左关",-1),Ve=g("div",{class:"mai-color-image"},[g("img",{src:T,alt:"",class:"mai-color-img"})],-1),Xe={class:"mai-all"},Ze=g("div",{class:"mai-font"},[g("img",{src:M,alt:""})],-1),et=g("img",{src:I,alt:"",style:{height:"200px"}},null,-1),tt=["src"],it=g("span",{style:{position:"absolute",top:"0",left:"8%",color:"white"}},"左尺",-1),at=g("div",{class:"mai-color-image"},[g("img",{src:T,alt:"",class:"mai-color-img"})],-1),nt={style:{display:"flex",width:"100%"}},lt=[g("div",null,[g("div",null,"外"),g("div",null,"压")],-1)],ot={key:4,"data-op-type":"block",class:"mai-item print-branch-item"},rt={class:"branch-content branch-content-bar"},ct={class:"hand-branch_legend"},pt={class:"pc-branch"},dt={key:5,"data-op-type":"block",class:"mai-item print-branch-item"},st={class:"branch-content branch-content-3d"},ht=g("div",{class:"hand-branch_legend"},[g("div",{id:"handRightImg",class:"mai-hand img-hand"})],-1),mt={class:"pc-branch pc-branch-3d"},gt={key:6,class:"mai-item mai-branch"},bt={class:"hole-body",style:{"margin-top":"3rem"}},ut={style:{display:"flex",width:"100%","align-items":"center","justify-content":"center"}},yt={class:"mai-all"},ft=g("div",{class:"mai-font"},[g("img",{src:R,alt:""})],-1),xt=g("img",{src:I,alt:"",style:{height:"200px"}},null,-1),vt=["src"],wt=g("span",{style:{position:"absolute",top:"0",left:"8%",color:"white"}},"右寸",-1),kt=g("div",{class:"mai-color-image"},[g("img",{src:T,alt:""})],-1),jt={class:"mai-all"},_t=g("div",{class:"mai-font"},[g("img",{src:U,alt:""})],-1),zt=g("img",{src:I,alt:"",style:{height:"200px"}},null,-1),qt=["src"],Ct=g("span",{style:{position:"absolute",top:"0",left:"8%",color:"white"}},"右关",-1),Ft=g("div",{class:"mai-color-image"},[g("img",{src:T,alt:"",class:"mai-color-img"})],-1),Rt={class:"mai-all"},It=g("div",{class:"mai-font"},[g("img",{src:M,alt:""})],-1),Tt=g("img",{src:I,alt:"",style:{height:"200px"}},null,-1),Ut=["src"],Mt=g("span",{style:{position:"absolute",top:"0",left:"8%",color:"white"}},"右尺",-1),Bt=g("div",{class:"mai-color-image"},[g("img",{src:T,alt:"",class:"mai-color-img"})],-1),Dt={style:{display:"flex",width:"100%"}},Pt=[g("div",null,[g("div",null,"外"),g("div",null,"压")],-1)],Lt={key:7,"data-op-type":"block",class:"mai-item print-branch-item"},Nt={class:"branch-content branch-content-bar"},St={class:"hand-branch_legend"},$t={class:"pc-branch"},Wt={"data-op-type":"block",class:"mai-item mai-channel item-border-top print-channel-item"},Yt={class:"channel-content"},Et={class:"channel-title"},Kt=g("h1",{class:"title yellow"},"六经辨证",-1),Gt={"data-op-type":"mix-box",class:"mai-item mai-channel print-channel-item"},Ht={"data-op-type":"block",class:"mai-item mai-qxjy item-border-top print-qxjy-item"},Ot={class:"qxjy-content"},Qt={class:"qxjy-title"},At=g("h1",{class:"title yellow"},"气血津液",-1),Jt={"data-op-type":"mix-box",class:"mai-item mai-qxjy print-qxjy-item"},Vt={"data-op-type":"block",class:"mai-item mai-heresy item-border-top print-heresy-item"},Xt=g("h1",{class:"title yellow"},"邪性",-1),Zt={class:"desc-heresy"},ei={"data-op-type":"mix-box",class:"mai-item mai-heresy print-heresy-item"},ti=g("div",{"data-op-type":"block-box",class:"mai-item item-border-top"},[g("h1",{class:"title blue"},"养生建议")],-1),ii={"data-op-type":"block-box",class:"mai-item"},ai=g("div",{class:"btmpoint"},"(以上分析结果为大数据分析所得,请结合临床)",-1);e("default",a({setup(e){const a=l({loader:()=>i((()=>t.import("./Group3D-legacy.f6fc69cf.js")),void 0),loadingComponent:L}),n=l({loader:()=>i((()=>t.import("./Total3d-legacy.c9b1e6db.js")),void 0),loadingComponent:L}),R=l({loader:()=>i((()=>t.import("./Chart-legacy.05b99b2b.js")),void 0),loadingComponent:L});ae("pc print");const{width:I}=S(),T=o(!1),U=o(!1),M=r().query,D=o(!1);o(),o();const P=o("1"===M.kong),$=o(!(!ne||!ne.showKaiFang||"True"!==ne.showKaiFang())),W=o(),ni=o(),li=o(),oi=o(),ri=o(),ci=c((()=>.4*I.value)),{loading:pi,patientInfo:di}=ie(M.uid,M.access_session);I.value>640||I.value;const{loading:si,leftFlag:hi,rightFlag:mi,leftResUrl:gi,rightResUrl:bi,branchResult:ui,channelReault:yi,createTime:fi,leftChiUrl:xi,leftCunUrl:vi,leftGuanUrl:wi,rightChiUrl:ki,rightCunUrl:ji,rightGuanUrl:_i,hand:zi,handText:qi,heartrate:Ci,heresyResult:Fi,proposeResult:Ri,qxjyResult:Ii,feature:Ti,summary:Ui,symptomsResult:Mi,totalMai:Bi,score:Di}=te(M.mid,M.access_session,!1),Pi=()=>{try{"True"!==ne.printPdf(M.mid)&&N.success("脉象报告开始打印")}catch(e){N.fail("报告打印失败")}},Li=o(!0),Ni=o(!0),Si=o(!0),$i=o(!0),Wi=o(!0);function Yi(){0==Li.value&&Ei("mailegenditem1",(()=>{Li.value=!0})),0==Ni.value&&Ei("mailegenditem2",(()=>{Ni.value=!0})),0==Si.value&&Ei("channelchartbg",(()=>{Si.value=!0})),0==$i.value&&Ei("handLeftImg",(()=>{$i.value=!0})),0==Wi.value&&Ei("handRightImg",(()=>{Wi.value=!0})),0!=Li.value&&0!=Ni.value&&0!=Si.value&&0!=$i.value&&0!=Wi.value||setTimeout(Yi,1e3)}function Ei(e,t){try{const i=document.getElementById(e),a=getComputedStyle(i).background;const n=/url\((['"])?(.*?)\1\)/gi.exec(a)[2],l=document.createElement("img");l.src=n,l.onload=()=>{console.log(e,"加载成功"),t()},l.onerror=()=>{console.log(e,"加载失败")}}catch(i){console.log(e,"加载失败"),console.log(i)}}function Ki(e){var t,i=e.split("-"),a=Number(i[0]),n=Number(i[1]),l=Number(i[2]),o=(p=new Date).getFullYear(),r=p.getMonth()+1,c=p.getDate();if(null==i)return!1;var p=new Date(a,n-1,l);if(p.getFullYear()==a&&p.getMonth()+1==n&&p.getDate()==l){if(o==a)t=0;else{var d=o-a;if(!(d>0))return"日期晚于今天,数据有误";t=r==n?c-l<0?d-1:d:r-n<0?d-1:d}return t}return"日期格式错误!"}p((()=>{Li.value=!1,Ni.value=!1,Si.value=!1,$i.value=!1,Wi.value=!1,Yi()}));const Gi=()=>{try{ne.runReturn()}catch(e){N.fail("返回错误")}},Hi=o(0),Oi=o(!1);Oi.value=[1,3,5,7,9,11,428].includes(Hi.value);const Qi=async()=>{var e=await le({combined_id:M.mid,access_session:M.access_session});if("000000"===e.status_code&&e.data)window.location.href.includes("dev")||window.location.href.includes("8090")?window.location.href=`https://nurse.dev.taiyi-tech.com/ctmdresult?ctmdId=${e.data.ctmd_result_id}&token=${M.access_session}`:window.location.href.includes("test")?window.location.href=`https://nurse.test.taiyi-tech.com/ctmdresult?ctmdId=${e.data.ctmd_result_id}&token=${M.access_session}`:window.location.href=`https://nurse.taiyi-tech.com/ctmdresult?ctmdId=${e.data.ctmd_result_id}&token=${M.access_session}`;else try{(async()=>{var e=await oe({patientUid:M.uid,access_session:M.access_session}),t={birthday:"",height:0,weight:0};if("000000"===(e={...e.data,status_code:e.status_code}).status_code)if(t.birthday=e.account.birthday,Hi.value=e.patient?e.patient.createOrgId:"",t.height=e.patient&&e.patient.height?e.patient.height:0,t.weight=e.patient&&e.patient.weight?e.patient.weight/22.0462:0,0==t.height||0==t.weight){var i="";0==t.height&&(i="height"),0==t.weight&&(i="weight"),0==t.height&&0==t.weight&&(i="both"),ne.addUserInfo(M.uid,M.access_session,i)}else{var a=Number(Ki(t.birthday?t.birthday:"")),n=t.weight?t.weight:0;a<13||a>86?ne.showMessage("小于13岁或大于86岁,无法查看建议方"):a>=13&&a<=16&&n>120?ne.showMessage("年龄【13-16】之间体重超过120kg,无法查看建议方"):n<39.99||n>120?ne.showMessage("年龄【17-86】岁之间,体重小于40kg或者大于120kg,无法查看建议方"):ne.clickShowFang(M.uid,M.mid,M.access_session)}})()}catch(t){alert(t),N.fail("返回错误")}},Ai=()=>{try{ne.buildPdf(M.mid),setTimeout((()=>{D.value=!0}),1e3),Ji()}catch(e){N.fail("PDF生成失败")}},Ji=()=>{try{ne.saveJCHPdf(di.value.name||di.value.nickName,Number(Ki(di.value.birthday?di.value.birthday:"")),di.value.gender||"",M.mid,M.uid)}catch(e){console.log(e)}},Vi=o(!1),Xi=o(0),Zi=o(0),ea=e=>{Vi.value=e},ta=e=>{Xi.value=Xi.value+1},ia=e=>{Zi.value=Zi.value+1};return d((()=>{(gi.value||bi.value)&&((async e=>{const t={resUrl:e},i=await re(t),a=[];i.x.forEach(((e,t)=>{a.push([e/1e3,i.y[t]/100])})),oi.value=a})(gi.value),(async e=>{const t={resUrl:e},i=await re(t),a=[];i.x.forEach(((e,t)=>{a.push([e/1e3,i.y[t]/100])})),ri.value=a})(bi.value))})),s([fi,zi],(()=>{const e=q(fi.value).format("YYYY年MM月DD日");T.value=0===zi.value||2===zi.value,U.value=1===zi.value||2===zi.value,document.title=e})),s([di,si,Li,Ni,Si,Vi,Xi,Zi,$i,Wi],(()=>{pi.value||si.value||(document.title=`${di.value.name||di.value.nickName||""}|脉诊报告`,setTimeout((()=>{window.bookConfig.start=!0}),1e3),console.log(di.value.name),ne&&di.value.name&&Ci.value&&"0"!==M.print&&Li.value&&Ni.value&&Si.value&&Vi.value&&Xi.value&&Zi.value&&(9==Xi.value&&3==Zi.value||2==zi.value)&&(18==Xi.value&&6==Zi.value||2!==zi.value)&&($i.value||0!==zi.value)&&(Wi.value||1!==zi.value)&&($i.value&&Wi.value||2!==zi.value)&&setTimeout(Ai,3e3))})),p((()=>{Yi(),W.value.onclick=Pi,ni.value.onclick=Gi,li.value.onclick=Qi})),(e,t)=>(h(),m(x,null,[g("div",pe,[de,se,b(E,{pc:"",print:"",num:u(Di)},null,8,["num"]),g("div",null,[b(ee,{"create-time":u(fi),gray:"",hand:u(zi),"patient-info":u(di)},null,8,["create-time","hand","patient-info"]),g("div",he,[g("div",me,[g("div",ge,[g("h1",be,y(u(qi))+"脉象",1),b(J),g("div",null,[g("div",ue,"心率:"+y(u(Ci))+"次/分钟",1),u(Bi).title.length>0?(h(),m("h1",ye,y(u(Bi).title.join(" ")),1)):f("",!0)])]),g("div",fe,[b(u(n),{feature:u(Ti).left||u(Ti).right,rotate:!1,width:640,"total-mai":u(Bi).title,onCanbuild:ea},null,8,["feature","total-mai"])])])]),g("div",xe,[g("div",ve,[(h(!0),m(x,null,v(u(Bi).desc,((e,t)=>(h(),m("p",{key:t,style:{"font-size":"18px"}},y(e),1)))),128))])])]),we,2!==u(zi)?(h(),m("div",ke,[g("div",je,[g("div",_e,[w(g("div",ze,null,512),[[k,0===u(zi)]]),w(g("div",qe,null,512),[[k,0!==u(zi)]])]),0===u(zi)?(h(),m("div",Ce,[b(u(a),{"branch-result":u(ui).left,feature:u(Ti).left||u(Ti).right,rotate:!1,onCanhand:ta},null,8,["branch-result","feature"])])):f("",!0),1===u(zi)?(h(),m("div",Fe,[b(u(a),{"branch-result":u(ui).right,feature:u(Ti).left||u(Ti).right,rotate:!1,onCanhand:ta},null,8,["branch-result","feature"])])):f("",!0)])])):f("",!0),2!==u(zi)?(h(),m("div",Re,[g("div",Ie,[g("div",Te,[b(V)]),g("div",Ue,[u(si)?f("",!0):(h(),j(ce,{key:0,"branch-result":0===u(zi)?u(ui).left:u(ui).right,"show-kong":P.value,onCanline:ia},null,8,["branch-result","show-kong"]))])])])):f("",!0),2===u(zi)?(h(),m("div",Me,[g("div",Be,[De,g("div",Pe,[b(u(a),{"branch-result":u(ui).left,feature:u(Ti).left,rotate:!1,onCanhand:ta},null,8,["branch-result","feature"])])])])):f("",!0),T.value?(h(),m("div",Le,[g("div",Ne,[w(g("div",null,[g("div",Se,[g("div",null,[g("div",$e,[We,Ye,g("img",{src:u(vi),alt:"",class:"mai-img",style:{position:"relative"}},null,8,Ee),Ke,Ge]),g("div",He,[Oe,Qe,g("img",{src:u(wi),alt:"",class:"mai-img",style:{position:"relative"}},null,8,Ae),Je,Ve]),g("div",Xe,[Ze,et,g("img",{src:u(xi),alt:"",class:"mai-img",style:{position:"relative"}},null,8,tt),it,at]),u(hi).sortFlag&&"T"===u(hi).sortFlag||u(hi).sortFlag&&"T"===u(mi).sortFlag?(h(),m("img",{key:0,src:C,alt:"",style:{width:"88%"},class:_(""+(u(I)>500?"timeWidth":""))},null,2)):(h(),m("img",{key:1,src:F,alt:"",style:{width:"96%"},class:_(""+(u(I)>500?"timeWidth":""))},null,2))])]),g("div",nt,[g("div",{class:_(""+(u(I)>500?"far":"far1"))},lt,2),b(u(R),{x:oi.value,width:u(ci)},null,8,["x","width"])])],512),[[k,oi.value]])])])):f("",!0),2===u(zi)?(h(),m("div",ot,[g("div",rt,[g("div",ct,[b(V)]),g("div",pt,[u(si)?f("",!0):(h(),j(ce,{key:0,"branch-result":u(ui).left,"show-kong":P.value,onCanline:ia},null,8,["branch-result","show-kong"]))])])])):f("",!0),2===u(zi)?(h(),m("div",dt,[g("div",st,[ht,g("div",mt,[b(u(a),{"branch-result":u(ui).right,feature:u(Ti).right,rotate:!1,onCanhand:ta},null,8,["branch-result","feature"])])])])):f("",!0),U.value?(h(),m("div",gt,[g("div",bt,[w(g("div",null,[g("div",ut,[g("div",null,[g("div",yt,[ft,xt,g("img",{src:u(ji),alt:"",class:"mai-img",style:{position:"relative"}},null,8,vt),wt,kt]),g("div",jt,[_t,zt,g("img",{src:u(_i),alt:"",class:"mai-img",style:{position:"relative"}},null,8,qt),Ct,Ft]),g("div",Rt,[It,Tt,g("img",{src:u(ki),alt:"",class:"mai-img",style:{position:"relative"}},null,8,Ut),Mt,Bt]),u(hi).sortFlag&&"T"===u(hi).sortFlag||u(hi).sortFlag&&"T"===u(mi).sortFlag?(h(),m("img",{key:0,src:C,alt:"",style:{width:"88%"},class:_(""+(u(I)>500?"timeWidth":""))},null,2)):(h(),m("img",{key:1,src:F,alt:"",style:{width:"96%"},class:_(""+(u(I)>500?"timeWidth":""))},null,2))])]),g("div",Dt,[g("div",{class:_(""+(u(I)>500?"far":"far1"))},Pt,2),b(u(R),{x:ri.value,width:u(ci)},null,8,["x","width"])])],512),[[k,ri.value]])])])):f("",!0),2===u(zi)?(h(),m("div",Lt,[g("div",Nt,[g("div",St,[b(V)]),g("div",$t,[u(si)?f("",!0):(h(),j(ce,{key:0,"branch-result":u(ui).right,"show-kong":P.value,onCanline:ia},null,8,["branch-result","show-kong"]))])])])):f("",!0),g("div",Wt,[g("div",Yt,[g("div",Et,[Kt,b(Y,{channels:u(yi),heartrate:u(Ci),summary:u(Ui),width:600},null,8,["channels","heartrate","summary"])])])]),b(X),g("div",Gt,[b(K,{channels:u(yi),symptoms:u(Mi)},null,8,["channels","symptoms"])]),g("div",Ht,[g("div",Ot,[g("div",Qt,[At,b(Z)]),b(Q,{value:u(Ii).level},null,8,["value"])])]),g("div",Jt,[b(G,{qxjy:u(Ii)},null,8,["qxjy"])]),g("div",Vt,[Xt,g("div",Zt,[b(A,{value:u(Fi).value},null,8,["value"])])]),g("div",ei,[b(H,{heresy:u(Fi)},null,8,["heresy"])]),ti,g("div",ii,[b(O,{propose:u(Ri)},null,8,["propose"])]),ai]),(h(),j(z,{to:"body"},[w(g("div",{ref_key:"refPrintPdf",ref:W,class:"btn-print"},"点击打印",512),[[k,D.value]])])),(h(),j(z,{to:"body"},[w(g("div",{id:"id_ShowFang",ref_key:"refShowFang",ref:li,class:"btmbutton"}," 查看建议方 ",512),[[k,$.value&&2===u(zi)||Oi.value&&2===u(zi)]])])),(h(),j(z,{to:"body"},[w(g("span",{ref_key:"refBack",ref:ni,class:"build-report3"},"返 回测 脉",512),[[k,"True"===u(M).showreturn]])])),b(u(B),{message:"加载中...",visible:u(pi)||u(si)},null,8,["visible"])],64))}}))}}}))}();
|