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