mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 13:04:57 +08:00
This commit is contained in:
parent
b58a554f3b
commit
f8bdc0196a
|
@ -1,6 +1,7 @@
|
|||
import request from "@/utils/request";
|
||||
|
||||
const patientInfoUrl = "/admin/medicine/getPatientInfo";
|
||||
const patientInfoMUrl = "/admin/medicine/getPatientInfoM";
|
||||
const getPatientPageUrl = "/admin/medicine/getPatientPage";
|
||||
const getPatientSurgeryListUrl = "/admin/medicine/getPatientSurgeryList";
|
||||
const getSurgeryTableDataUrl = "/admin/medicine/getSurgeryTableData";
|
||||
|
@ -19,6 +20,20 @@ export function getPatientInfo(name: string, id: string, date: string): Promise<
|
|||
});
|
||||
}
|
||||
|
||||
export function getPatientInfoM(name: string, id: string, date?: string): Promise<any> {
|
||||
return new Promise((resolve, reject) => {
|
||||
request.postForm(patientInfoMUrl, {
|
||||
patientName: name,
|
||||
idNum: id,
|
||||
date: date
|
||||
}).then((res: any) => {
|
||||
resolve(res.data);
|
||||
}).catch(error => {
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
export function getPatientPage(params: {
|
||||
offset: number,
|
||||
limit: number,
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
<div class="body-box">
|
||||
<div class="body-img">
|
||||
<img src="@/assets/imgs/main_body.png" style="width: 100%;height: 100%;" />
|
||||
<img class="lung-img" :class="{ 'shake_1': lungAlarm }" :src="lungAlarm ? imgLungAlarm : imgLung">
|
||||
<img class="lung-img" :class="{ 'shake_1': lungAlarm }"
|
||||
:src="lungAlarm ? imgLungAlarm : imgLung">
|
||||
<img class="heart-img" :class="{ 'shake_1': heartAlarm }"
|
||||
:src="heartAlarm ? imgHeartAlarm : imgHeart">
|
||||
</div>
|
||||
|
@ -128,7 +129,8 @@
|
|||
</el-button>
|
||||
<!-- <el-button size="small" color="#006080" @click="tableItemConfirm(scope)"
|
||||
:disabled="tableDataStore[scope.$index].speed === scope.row.speed">确定-->
|
||||
<el-button size="small" color="#006080" @click="tableItemConfirm(scope, varTableData)">确定
|
||||
<el-button size="small" color="#006080"
|
||||
@click="tableItemConfirm(scope, varTableData)">确定
|
||||
</el-button>
|
||||
<el-button size="small" color="#006080" @click="tableItemCancel(scope)">取消
|
||||
</el-button>
|
||||
|
@ -161,7 +163,8 @@
|
|||
<Minus />
|
||||
</el-icon>
|
||||
</el-button>
|
||||
<el-button size="small" color="#006080" @click="tableItemConfirm(scope, fixedTableData)">确定
|
||||
<el-button size="small" color="#006080"
|
||||
@click="tableItemConfirm(scope, fixedTableData)">确定
|
||||
</el-button>
|
||||
<el-button size="small" color="#006080" @click="tableItemCancel(scope)">取消
|
||||
</el-button>
|
||||
|
@ -204,7 +207,7 @@ import imgLungAlarm from '@/assets/imgs/lung_alarm.png';
|
|||
import imgHeartAlarm from '@/assets/imgs/heart_alarm.png';
|
||||
import { useRemoteWsStore } from "@/stores/remote-ws-store";
|
||||
import { useUserStore } from "@/stores/user-info-store";
|
||||
import {getPatientInfo} from "@/api/patient";
|
||||
import { getPatientInfo, getPatientInfoM } from "@/api/patient";
|
||||
|
||||
|
||||
const router = useRouter()
|
||||
|
@ -257,7 +260,6 @@ let currentDocMedicine: any;
|
|||
const medicineSpeedTemp: any = {};
|
||||
|
||||
onMounted(() => {
|
||||
console.log(currentRemote.value.isRemote)
|
||||
if (!currentRemote.value.isRemote) {
|
||||
router.replace('/remote-manage/remote-manage');
|
||||
return;
|
||||
|
@ -457,29 +459,21 @@ const setDatabase = () => {
|
|||
};
|
||||
|
||||
const viewPatientInfo = () => {
|
||||
getPatientInfo(currentRemote.value.patient, currentRemote.value.patientId,
|
||||
currentRemote.value.date).then(res => {
|
||||
console.log(res)
|
||||
})
|
||||
isPatientDialog.value = true;
|
||||
setTimeout(() => {
|
||||
// getPatientInfo(currentRemote.value.patient, currentRemote.value.patientId,
|
||||
// currentRemote.value.date).then(res => {
|
||||
// if (res.code == 0) {
|
||||
// patientsFormRef.value.resetData()
|
||||
// patientsFormRef.value.formData = JSON.parse(JSON.stringify(res.data))
|
||||
// }
|
||||
// })
|
||||
getPatientInfoM(currentRemote.value.patient, currentRemote.value.patientId,
|
||||
currentRemote.value.date).then(res => {
|
||||
if (res.code == 0) {
|
||||
patientsFormRef.value.resetData()
|
||||
patientsFormRef.value.formData = JSON.parse(JSON.stringify({
|
||||
id: '',
|
||||
name: '测试',
|
||||
code: 'afasf',
|
||||
sex: '男',
|
||||
dept: '测试',
|
||||
bodyHeight: '170',
|
||||
isMedicalHistory: '无',
|
||||
bodyWeight: '80',
|
||||
medicalHistoryName: '无',
|
||||
age: '22',
|
||||
allergyHistoryName: '无',
|
||||
phone: '123456',
|
||||
hospitalTime: new Date()
|
||||
}))
|
||||
}, 0)
|
||||
patientsFormRef.value.formData = JSON.parse(JSON.stringify(res.data))
|
||||
}
|
||||
})
|
||||
}
|
||||
const backRemote = () => {
|
||||
router.back();
|
||||
|
@ -951,4 +945,5 @@ function startAI() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}</style>
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue
Block a user