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.427910d1.js";import{d as c,y as o,x as u,h as d,B as m,j as h,o as p,c as v,m as g,k as _,v as f,l as b,e as y,t as j,p as w,F as k,C as x,D as R,b as O}from"./vendor.075d5207.js";import{L as P}from"./Loading.b1502e0b.js";import{T as I}from"./maiResult.19fec382.js";import{_ as C}from"./Chart.vue_vue_type_style_index_0_lang.6b9cce17.js";import{_ as D,a as q,b as F}from"./Paragraph.vue_vue_type_script_lang.2eb18209.js";import{_ as T}from"./DeviceInfo.vue_vue_type_style_index_0_lang.583a3065.js";import{_ as L}from"./HealthAdvice.vue_vue_type_script_lang.c89db1b9.js";import{_ as M,a as N}from"./Chart.vue_vue_type_style_index_0_lang.952f4e76.js";import{L as B}from"./LoadingComponent.3efe460b.js";import{_ as E}from"./PatientPortait.vue_vue_type_script_lang.5c88074c.js";import{_ as S,B as $,C as A,Q as U}from"./QxjyLegend.b2389253.js";import{_ as K}from"./Stability.vue_vue_type_script_lang.3c7a3b7b.js";import{u as Q}from"./useMaiResult.c8234c83.js";import{u as V}from"./usePatientInfo.8017a744.js";import{s as Y,C as z}from"./index.e1d72e8c.js";import{h as G}from"./service.6d7d3c00.js";import"./index.aa033d06.js";import"./ChannelBgPc.vue_vue_type_script_lang.1f6b71b0.js";import"./Item.vue_vue_type_script_lang.f58ab026.js";import"./plugin-vue_export-helper.44898cd3.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=g("div",{class:"item-border-top"},null,-1),oe={class:"mai-item"},ue=g("h1",{class:"title"},"分部脉象",-1),de={key:0,class:"pc-branch-warp"},me={class:"hand-branch_legend"},he={class:"pc-branch"},pe={key:1,class:"pc-branch-warp"},ve={class:"hand-branch_legend"},ge=g("div",{class:"mai-hand img-hand"},null,-1),_e={class:"pc-branch"},fe={key:2,class:"pc-branch-warp",style:{"margin-top":"70px"}},be={class:"hand-branch_legend"},ye=g("div",{class:"mai-hand img-hand left"},null,-1),je={class:"pc-branch"},we=g("div",{class:"item-border-top"},null,-1),ke={class:"mai-item mai-channel"},xe=g("h1",{class:"title yellow"},"六经辨证",-1),Re={class:"channel-content"},Oe={class:"mai-item mai-channel"},Pe={class:"desc-channel"},Ie=g("div",{class:"item-border-top"},null,-1),Ce={class:"mai-item mai-qxjy"},De=g("h1",{class:"title yellow"},"气血津液",-1),qe={class:"qxjy-content"},Fe={class:"mai-item mai-qxjy"},Te={class:"desc-qxjy"},Le=g("div",{class:"item-border-top"},null,-1),Me={class:"mai-item mai-heresy"},Ne={class:"desc-heresy"},Be=g("h1",{class:"title yellow"},"邪性",-1),Ee=g("div",{class:"item-border-top"},null,-1),Se={class:"mai-item"},$e=g("h1",{class:"title blue"},"养生建议",-1),Ae=g("div",{class:"btmpoint"},"(以上分析结果为大数据分析所得,请结合临床)",-1),Ue=c({setup(e){const c=o({loader:()=>n((()=>import("./Group.f7c45daf.js")),["2.25.2/Group.f7c45daf.js","2.25.2/index.aa033d06.js","2.25.2/groups.b4cec164.js","2.25.2/Branch3d.vue_vue_type_style_index_0_lang.520c00d5.js","2.25.2/Group2.65b08d4f.css","2.25.2/echarts-gl.920df512.js","2.25.2/vendor.075d5207.js","2.25.2/index.esm.9495837c.js","2.25.2/chart3d.014b432f.js","2.25.2/baseSeries.bf32faa9.js","2.25.2/Bar.cbfab8d4.js","2.25.2/Bar.927e4945.css"]),loadingComponent:B}),Ue=o({loader:()=>n((()=>import("./Total3d.deda896a.js")),["2.25.2/Total3d.deda896a.js","2.25.2/Total3d.04a92d04.css","2.25.2/echarts-gl.920df512.js","2.25.2/vendor.075d5207.js","2.25.2/cgc_img1.ca32eb5e.js","2.25.2/index.esm.9495837c.js","2.25.2/chart3d.014b432f.js","2.25.2/screenshot.36d6fd71.js","2.25.2/index.e1d72e8c.js","2.25.2/preload-helper.427910d1.js","2.25.2/preload-helper.ebc8eac7.css"]),loadingComponent:B});Y("pc");const Ke=u().query,Qe=d(),Ve=d(),Ye=d(),ze=Ke.appId||"",Ge=Ke.en||"",{loading:He,patientInfo:Je}=V(Ke.uid,Ke.access_session),We=d(!(!z||!z.showKaiFang||"True"!==z.showKaiFang())),{loading:Xe,branchResult:Ze,channelReault:ea,createTime:aa,deviceInfo:sa,hand:ta,handText:ia,heartrate:la,heresyResult:ra,proposeResult:na,qxjyResult:ca,feature:oa,summary:ua,symptomsResult:da,totalMai:ma,score:ha}=Q(Ke.mid,Ke.access_session,!1,Ge,ze);console.log(789),m([Je],(()=>{document.title=`${Je.value.name||Je.value.nickName||""}|脉诊报告`}));const pa=()=>{try{z.runReturn()}catch(e){I.fail("返回错误")}},va=()=>{try{z.buildReport(`/print.html#/print?mid=${Ke.mid}&uid=${Ke.uid}&access_session=${Ke.access_session}`)}catch(e){I.fail("报告生成失败")}},ga=d(0),_a=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,ga.value=c.patient?c.patient.createOrgId:"",0==o.height||0==o.weight){var u="";0==o.height&&(u="height"),0==o.weight&&(u="weight"),0==o.height&&0==o.weight&&(u="both"),z.addUserInfo(Ke.uid,Ke.access_session,u)}else{var d=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 u=r-t;if(!(u>0))return"日期晚于今天,数据有误";a=n==i?c-l<0?u-1:u:n-i<0?u-1:u}return a}return"日期格式错误!"}(o.birthday?o.birthday:"")),m=o.weight?o.weight:0;d<13||d>86?z.showMessage("小于13岁或大于86岁,无法查看建议方"):d>=13&&d<=16&&m>120?z.showMessage("年龄【13-16】之间体重超过120kg,无法查看建议方"):m<39.99||m>120?z.showMessage("年龄【17-86】岁之间,体重小于40kg或者大于120kg,无法查看建议方"):z.clickShowFang(Ke.uid,Ke.mid,Ke.access_session)}return o},fa=d(!1);fa.value=[1,3,5,7,9,11,428].includes(ga.value);const ba=()=>{try{_a()}catch(e){alert(e),I.fail("返回错误")}};return h((()=>{Qe.value.onclick=va,Ve.value.onclick=pa,Ye.value.onclick=ba})),(e,a)=>(p(),v(k,null,[g("div",H,[_(g("span",{ref_key:"refBuildReport",ref:Qe},"生 成报 告",512),[[f,!b(ze)]])]),_(g("div",J,[g("span",{ref_key:"refBack",ref:Ve},"返 回测 脉",512)],512),[[f,"True"===b(Ke).showreturn]]),g("div",W,[g("div",X,[g("div",Z,[g("div",ee,[y(E,{gender:b(Je).gender,portrait:b(Je).portraitUrl},null,8,["gender","portrait"]),_(g("div",ae,[g("strong",null,j(b(Je).name||b(Je).nickName),1)],512),[[f,!b(ze)]]),g("p",null,"测脉时间:"+j(b(aa)),1)])]),y(K,{pc:"",num:b(ha)},null,8,["num"]),g("div",se,[g("h1",te,j(b(ia))+"脉象",1),y(S),g("div",ie,"心率:"+j(b(la))+"次/分钟",1),b(ma).title.length>0?(p(),v("h1",le,j(b(ma).title.join(" ")),1)):w("",!0)])]),g("div",re,[y(b(Ue),{feature:b(oa).left||b(oa).right,"auto-rotate":"",width:640,"total-mai":b(ma).title},null,8,["feature","total-mai"])])]),g("div",ne,[(p(!0),v(k,null,x(b(ma).desc,((e,a)=>(p(),v("p",{style:{"font-size":"18px"},key:a},j(e),1)))),128))]),ce,g("div",oe,[ue,2!==b(ta)?(p(),v("div",de,[g("div",me,[g("div",{class:R("mai-hand img-hand "+(0===b(ta)?"left":""))},null,2),y($)]),g("div",he,[y(b(c),{"branch-result":0===b(ta)?b(Ze).left:b(Ze).right,feature:b(oa).left||b(oa).right},null,8,["branch-result","feature"])])])):w("",!0),2===b(ta)?(p(),v("div",pe,[g("div",ve,[ge,y($)]),g("div",_e,[y(b(c),{"branch-result":b(Ze).right,feature:b(oa).right},null,8,["branch-result","feature"])])])):w("",!0),2===b(ta)?(p(),v("div",fe,[g("div",be,[ye,y($)]),g("div",je,[y(b(c),{"branch-result":b(Ze).left,feature:b(oa).left},null,8,["branch-result","feature"])])])):w("",!0)]),we,g("div",ke,[xe,g("div",Re,[g("div",null,[y(A)]),y(C,{channels:b(ea),heartrate:b(la),summary:b(ua),width:540},null,8,["channels","heartrate","summary"])])]),g("div",Oe,[g("div",Pe,[y(D,{channels:b(ea),symptoms:b(da)},null,8,["channels","symptoms"])])]),Ie,g("div",Ce,[De,g("div",qe,[y(U),y(M,{value:b(ca).level},null,8,["value"])])]),g("div",Fe,[g("div",Te,[y(q,{qxjy:b(ca)},null,8,["qxjy"])])]),Le,g("div",Me,[g("div",Ne,[Be,y(N,{value:b(ra).value},null,8,["value"]),y(F,{heresy:b(ra)},null,8,["heresy"])])]),Ee,g("div",Se,[$e,y(L,{propose:b(na)},null,8,["propose"])]),Ae,b(sa)?(p(),O(T,{key:0,info:b(sa),class:"mai-item"},null,8,["info"])):w("",!0),_(g("div",{class:"btmbutton",id:"id_ShowFang",ref_key:"refShowFang",ref:Ye},"查看建议方",512),[[f,We.value&&2===b(ta)||fa.value&&2===b(ta)]]),y(b(P),{message:"加载中...",visible:b(He)||b(Xe)},null,8,["visible"])],64))}});export{Ue as default};
|