import {sockteStore} from '@/stores/sockteInfo'
|
import { confingInfoStore } from '@/stores/StoresConfing'
|
import {getPatientInfo2,updatePatient} from '@/api/user/index'
|
import {writePatient,writeResult} from './sockteStomp'
|
/**
|
* 发送患者卡号返回患者信息
|
* @param codeStr
|
*/
|
const sendPationCodeApi=(codeStr:string)=>{
|
const pcName= sockteStore().pcName
|
const mode={
|
machineName:pcName,
|
clientCode:confingInfoStore().confingInfo.clientCode,
|
queryCode:codeStr
|
}
|
getPatientInfo2(mode).then(re=>{
|
writePatient(re.data)
|
})
|
}
|
const updatePatientApi=(pam:object)=>{
|
updatePatient(pam).then(re=>{
|
writeResult(re.data)
|
})
|
|
}
|
export {
|
sendPationCodeApi,
|
updatePatientApi
|
}
|