chenyc
2025-07-18 480c0834c2dc57721022cc9b06d527a3e7cad09b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
}