Pc.9fe88c3e.js 8.6 KB

1
  1. var e=Object.defineProperty,a=Object.defineProperties,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,r=(a,s,t)=>s in a?e(a,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[s]=t;import{a as n}from"./preload-helper.f63d3d91.js";import{d as c,y as o,x as d,h as u,B as h,j as m,o as p,c as v,m as f,k as g,v as _,l as y,e as b,t as w,p as j,F as k,C as x,D as R,b as O}from"./vendor.f6a75447.js";import{L as I}from"./Loading.0da0e019.js";import{L as P,T as D}from"./maiResult.2670d3b8.js";import{_ as q}from"./Chart.vue_vue_type_style_index_0_lang.d6f063f0.js";import{_ as F,a as T,b as C,c as M,d as L}from"./Stability.vue_vue_type_script_lang.08c040a8.js";import{_ as N}from"./DeviceInfo.vue_vue_type_style_index_0_lang.a2d97cd0.js";import{_ as E,a as S}from"./Chart.vue_vue_type_style_index_0_lang.a8b20620.js";import{_ as B}from"./PatientPortait.vue_vue_type_script_lang.e73e0f88.js";import{_ as $,B as U,C as A,Q as K}from"./QxjyLegend.f1ca1618.js";import{u as Q}from"./useMaiResult.b1694065.js";import{u as V}from"./usePatientInfo.03c887d8.js";import{s as Y,C as z}from"./index.a0e135ad.js";import{g as G}from"./service.d9dc8d6b.js";import"./plugin-vue_export-helper.44898cd3.js";import"./Item.vue_vue_type_script_lang.8aa0fc9f.js";const H={class:"build-report"},J={class:"build-report2"},W={class:"user-desc-three"},X={class:"user-desc"},Z={class:"user-info"},ee={class:"user"},ae={class:"name"},se={class:"mai-item mai-total"},te={class:"title"},ie={class:"heart-rate img-heart-rate"},le={key:0,class:"mai"},re={class:"three"},ne={class:"paragraph-wrap mai-desc"},ce=f("div",{class:"item-border-top"},null,-1),oe={class:"mai-item"},de=f("h1",{class:"title"},"分部脉象",-1),ue={key:0,class:"pc-branch-warp"},he={class:"hand-branch_legend"},me={class:"pc-branch"},pe={key:1,class:"pc-branch-warp"},ve={class:"hand-branch_legend"},fe=f("div",{class:"mai-hand img-hand"},null,-1),ge={class:"pc-branch"},_e={key:2,class:"pc-branch-warp",style:{"margin-top":"70px"}},ye={class:"hand-branch_legend"},be=f("div",{class:"mai-hand img-hand left"},null,-1),we={class:"pc-branch"},je=f("div",{class:"item-border-top"},null,-1),ke={class:"mai-item mai-channel"},xe=f("h1",{class:"title yellow"},"六经辨证",-1),Re={class:"channel-content"},Oe={class:"mai-item mai-channel"},Ie={class:"desc-channel"},Pe=f("div",{class:"item-border-top"},null,-1),De={class:"mai-item mai-qxjy"},qe=f("h1",{class:"title yellow"},"气血津液",-1),Fe={class:"qxjy-content"},Te={class:"mai-item mai-qxjy"},Ce={class:"desc-qxjy"},Me=f("div",{class:"item-border-top"},null,-1),Le={class:"mai-item mai-heresy"},Ne={class:"desc-heresy"},Ee=f("h1",{class:"title yellow"},"邪性",-1),Se=f("div",{class:"item-border-top"},null,-1),Be={class:"mai-item"},$e=f("h1",{class:"title blue"},"养生建议",-1),Ue=f("div",{class:"btmpoint"},"(以上分析结果为大数据分析所得,请结合临床)",-1),Ae=c({setup(e){const c=o({loader:()=>n((()=>import("./Group.4e6780bb.js")),["2.25.2/Group.4e6780bb.js","2.25.2/maiResult.2670d3b8.js","2.25.2/maiResult.323d33b1.css","2.25.2/plugin-vue_export-helper.44898cd3.js","2.25.2/vendor.f6a75447.js","2.25.2/Loading.0da0e019.js","2.25.2/groups.33cbde4f.js","2.25.2/groups.b622c8b5.css","2.25.2/Branch3d.vue_vue_type_style_index_0_lang.5f009683.js","2.25.2/Branch3d.vue_vue_type_style_index_0_lang.3f0c04c9.css","2.25.2/echarts-gl.0cf6f5ff.js","2.25.2/chart3d.e5c0bc32.js"]),loadingComponent:P}),Ae=o({loader:()=>n((()=>import("./Total3d.680fc3e5.js")),["2.25.2/Total3d.680fc3e5.js","2.25.2/Total3d.04a92d04.css","2.25.2/echarts-gl.0cf6f5ff.js","2.25.2/vendor.f6a75447.js","2.25.2/chart3d.e5c0bc32.js","2.25.2/screenshot.aaaeb3ff.js","2.25.2/index.a0e135ad.js","2.25.2/preload-helper.f63d3d91.js","2.25.2/preload-helper.ebc8eac7.css"]),loadingComponent:P});Y("pc");const Ke=d().query,Qe=u(),Ve=u(),Ye=u(),ze=Ke.appId||"",{loading:Ge,patientInfo:He}=V(Ke.uid,Ke.access_session),Je=u(!(!z||!z.showKaiFang||"True"!==z.showKaiFang())),{loading:We,branchResult:Xe,channelReault:Ze,createTime:ea,deviceInfo:aa,hand:sa,handText:ta,heartrate:ia,heresyResult:la,proposeResult:ra,qxjyResult:na,feature:ca,summary:oa,symptomsResult:da,totalMai:ua,score:ha}=Q(Ke.mid,Ke.access_session,!1,ze);h([He],(()=>{document.title=`${He.value.name||He.value.nickName||""}|脉诊报告`}));const ma=()=>{try{z.runReturn()}catch(e){D.fail("返回错误")}},pa=()=>{try{z.buildReport(`/print.html#/print?mid=${Ke.mid}&uid=${Ke.uid}&access_session=${Ke.access_session}`)}catch(e){D.fail("报告生成失败")}},va=u(0),fa=async()=>{var e,n,c=await G({patientUid:Ke.uid,access_session:Ke.access_session}),o={birthday:"",height:0,weight:0};if(e=((e,a)=>{for(var s in a||(a={}))i.call(a,s)&&r(e,s,a[s]);if(t)for(var s of t(a))l.call(a,s)&&r(e,s,a[s]);return e})({},c.data),n={status_code:c.status_code},"000000"===(c=a(e,s(n))).status_code)if(o.birthday=c.account.birthday,o.height=c.patient.height?c.patient.height:0,o.weight=c.patient.weight?c.patient.weight/22.0462:0,va.value=c.patient?c.patient.createOrgId:"",0==o.height||0==o.weight){var d="";0==o.height&&(d="height"),0==o.weight&&(d="weight"),0==o.height&&0==o.weight&&(d="both"),z.addUserInfo(Ke.uid,Ke.access_session,d)}else{var u=Number(function(e){var a,s=e.split("-"),t=Number(s[0]),i=Number(s[1]),l=Number(s[2]),r=(o=new Date).getFullYear(),n=o.getMonth()+1,c=o.getDate();if(null==s)return!1;var o=new Date(t,i-1,l);if(o.getFullYear()==t&&o.getMonth()+1==i&&o.getDate()==l){if(r==t)a=0;else{var d=r-t;if(!(d>0))return"日期晚于今天,数据有误";a=n==i?c-l<0?d-1:d:n-i<0?d-1:d}return a}return"日期格式错误!"}(o.birthday?o.birthday:"")),h=o.weight?o.weight:0;u<13||u>86?z.showMessage("小于13岁或大于86岁,无法查看建议方"):u>=13&&u<=16&&h>120?z.showMessage("年龄【13-16】之间体重超过120kg,无法查看建议方"):h<39.99||h>120?z.showMessage("年龄【17-86】岁之间,体重小于40kg或者大于120kg,无法查看建议方"):z.clickShowFang(Ke.uid,Ke.mid,Ke.access_session)}return o},ga=u(!1);ga.value=[1,3,5,7,9,11,428].includes(va.value);const _a=()=>{try{fa()}catch(e){alert(e),D.fail("返回错误")}};return m((()=>{Qe.value.onclick=pa,Ve.value.onclick=ma,Ye.value.onclick=_a})),(e,a)=>(p(),v(k,null,[f("div",H,[g(f("span",{ref_key:"refBuildReport",ref:Qe},"生 成报 告",512),[[_,!y(ze)]])]),g(f("div",J,[f("span",{ref_key:"refBack",ref:Ve},"返 回测 脉",512)],512),[[_,"True"===y(Ke).showreturn]]),f("div",W,[f("div",X,[f("div",Z,[f("div",ee,[b(B,{gender:y(He).gender,portrait:y(He).portraitUrl},null,8,["gender","portrait"]),g(f("div",ae,[f("strong",null,w(y(He).name||y(He).nickName),1)],512),[[_,!y(ze)]]),f("p",null,"测脉时间:"+w(y(ea)),1)])]),b(F,{pc:"",num:y(ha)},null,8,["num"]),f("div",se,[f("h1",te,w(y(ta))+"脉象",1),b($),f("div",ie,"心率:"+w(y(ia))+"次/分钟",1),y(ua).title.length>0?(p(),v("h1",le,w(y(ua).title.join(" ")),1)):j("",!0)])]),f("div",re,[b(y(Ae),{feature:y(ca).left||y(ca).right,"auto-rotate":"",width:640,"total-mai":y(ua).title},null,8,["feature","total-mai"])])]),f("div",ne,[(p(!0),v(k,null,x(y(ua).desc,((e,a)=>(p(),v("p",{style:{"font-size":"18px"},key:a},w(e),1)))),128))]),ce,f("div",oe,[de,2!==y(sa)?(p(),v("div",ue,[f("div",he,[f("div",{class:R("mai-hand img-hand "+(0===y(sa)?"left":""))},null,2),b(U)]),f("div",me,[b(y(c),{"branch-result":0===y(sa)?y(Xe).left:y(Xe).right,feature:y(ca).left||y(ca).right},null,8,["branch-result","feature"])])])):j("",!0),2===y(sa)?(p(),v("div",pe,[f("div",ve,[fe,b(U)]),f("div",ge,[b(y(c),{"branch-result":y(Xe).right,feature:y(ca).right},null,8,["branch-result","feature"])])])):j("",!0),2===y(sa)?(p(),v("div",_e,[f("div",ye,[be,b(U)]),f("div",we,[b(y(c),{"branch-result":y(Xe).left,feature:y(ca).left},null,8,["branch-result","feature"])])])):j("",!0)]),je,f("div",ke,[xe,f("div",Re,[f("div",null,[b(A)]),b(q,{channels:y(Ze),heartrate:y(ia),summary:y(oa),width:540},null,8,["channels","heartrate","summary"])])]),f("div",Oe,[f("div",Ie,[b(T,{channels:y(Ze),symptoms:y(da)},null,8,["channels","symptoms"])])]),Pe,f("div",De,[qe,f("div",Fe,[b(K),b(E,{value:y(na).level},null,8,["value"])])]),f("div",Te,[f("div",Ce,[b(C,{qxjy:y(na)},null,8,["qxjy"])])]),Me,f("div",Le,[f("div",Ne,[Ee,b(S,{value:y(la).value},null,8,["value"]),b(M,{heresy:y(la)},null,8,["heresy"])])]),Se,f("div",Be,[$e,b(L,{propose:y(ra)},null,8,["propose"])]),Ue,y(aa)?(p(),O(N,{key:0,info:y(aa),class:"mai-item"},null,8,["info"])):j("",!0),g(f("div",{class:"btmbutton",id:"id_ShowFang",ref_key:"refShowFang",ref:Ye},"查看建议方",512),[[_,Je.value&&2===y(sa)||ga.value&&2===y(sa)]]),b(y(I),{message:"加载中...",visible:y(Ge)||y(We)},null,8,["visible"])],64))}});export{Ae as default};