You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virtual-patient/docker/nginx/html/dist/static/js/consultation-10bd4098.js

2 lines
1.7 KiB
JavaScript

import{J as a,A as o,L as c}from"./index-93dfb385.js";import{b as n,c as l,a as r}from"./inquiry-8a7adca2.js";const h=a({id:"consultation",state:()=>({activedKey:0,activedTabKey:0,inspectSatus:"",processId:"",selectToolInfo:{toolName:"",img:"",id:"",requireLocation:0},bodyPositionType:"",bodyResultInfo:{name:"",label:"",value:"",postion:""},primaryIdList:[],selectSupportId:"",firstInspectList:[],bodyInspectList:[],suppertInspectList:[],uuid:"",exhalationFlag:!1,voiceFlag:!0,planTypeFlag:"",supportActionId:[]}),actions:{changeActivedKey(t){this.activedKey=t,t!==1&&(o(this.selectToolInfo),o(this.bodyResultInfo)),t===0?(this.exhalationFlag=!1,this.voiceFlag=!0):this.voiceFlag=!1},changeActivedTabKey(t){this.activedTabKey=t,t!==1&&(o(this.selectToolInfo),o(this.bodyResultInfo)),t===0?(this.exhalationFlag=!1,this.voiceFlag=!0):this.voiceFlag=!1},changeSelectToolInfo(t){this.selectToolInfo=t},changeBodyPositionType(t){this.bodyPositionType=t},changeBodyResultInfo(t){this.bodyResultInfo=t},changeProcessId(t){this.processId=t},changeSelectSupportId(t){this.selectSupportId=t},changeUUID(t){this.uuid=t},changeExhalationFlag(t){this.exhalationFlag=t},changeInspectSatus(t){this.inspectSatus=t},changePrimaryIdList(t){this.primaryIdList=t},async getAskPrimaryList(t){return new Promise((i,s)=>{n({processId:t}).then(e=>{e.code===200&&(this.firstInspectList=e.data,i(e))}).catch(e=>{s(e)})})},async getyAskPhysicalHistory(t){return new Promise((i,s)=>{l({processId:t}).then(e=>{e.code===200&&(this.bodyInspectList=e.data,i(e))}).catch(e=>{s(e)})})},async getAskAncillaryHistory(){return new Promise((t,i)=>{r({processId:this.processId}).then(s=>{s.code===200&&(this.suppertInspectList=s.data,t(s))}).catch(s=>{i(s)})})}}});function d(){return h(c)}export{d as u};