src/api/ecg/devrent/index.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/ecg/doctor/components/DevReadyPanel.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/ecg/doctor/components/RoutinePanel.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/ecg/doctor/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/api/ecg/devrent/index.ts
@@ -50,6 +50,11 @@ return await request.download({ url: `/ecg/dev-rent/export-excel`, params }) }, // 获取 Free的租赁 getFreeRent: async (params: any) => { return await request.get({ url: `/ecg/dev-rent/get-free-rent`, params }) }, // 获取已领取的租赁 getReadyRent: async (params: any) => { return await request.get({ url: `/ecg/dev-rent/get-ready-rent`, params }) src/views/ecg/doctor/components/DevReadyPanel.vue
@@ -18,7 +18,7 @@ </el-form-item> <el-form-item label="患者描述" prop="patDeptDesc"> 科室: {{formData.patDeptDesc}} 病区: {{formData.patWardDesc}} 床位: {{formData.patBedNo}} {{formData.patDetails}} 科室: {{formData.patDeptDesc}} 病区: {{formData.patWardDesc}} 床位: {{formData.patBedNo}} </el-form-item> <el-form-item label="设备编号" prop="devId"> <el-input v-model="formData.devId" placeholder="请输入设备编号" @input="getDevInfo"/> @@ -162,6 +162,7 @@ patWardCode: undefined, patWardDesc: undefined, patBedNo: undefined, patDetails: undefined, rentTime: new Date().getTime(), returnTime: undefined, interference: undefined, @@ -189,6 +190,25 @@ purchaseDate: 0, state: 0, }) const getRentInfoByPatId = () => { const tempPatId = formData.value.patId; resetForm() if (isStringEmpty(tempPatId)) return formData.value.patId = tempPatId; getFreeRentInfo() } const getFreeRentInfo = async () => { const data = await DevRentApi.getFreeRent(formData.value) if (null === data) return // formDate 对应 DevRent formData.value = data } /** 提交表单 */ const submitForm = async () => { @@ -260,10 +280,14 @@ deviceInfo.value.state = 0 } // const setPatient = (queueVO: QueueVO | undefined) => { // resetForm() // formData.value.patId = queueVO?.patId // formData.value.patName = queueVO?.patName // } const setPatient = (queueVO: QueueVO | undefined) => { resetForm() formData.value.patId = queueVO?.patId formData.value.patName = queueVO?.patName getRentInfoByPatId() } defineExpose({ setPatient }) // 提供 setPatient 方法,用于设置患者 src/views/ecg/doctor/components/RoutinePanel.vue
@@ -10,7 +10,7 @@ <el-row :gutter="20"> <el-col :span="12"> <el-form-item label="患者编号" prop="patId"> <el-input v-model="formData.patId" placeholder="请输入患者编号" @input="getAppointmentInfoByPatId" /> <el-input v-model="formData.patId" placeholder="请输入患者编号" @input="getRentInfoByPatId" /> </el-form-item> <el-form-item label="患者名称" prop="patName"> <el-input v-model="formData.patName" placeholder="请输入患者名称" /> @@ -127,7 +127,7 @@ const setPatient = (queueVO: QueueVO | undefined) => { formData.value.patId = queueVO?.patId getAppointmentInfoByPatId() getRentInfoByPatId() } defineExpose({ setPatient }) // 提供 setPatient 方法,用于设置患者 @@ -193,26 +193,23 @@ formRef.value?.resetFields() } const getAppointmentInfoByPatId = () => { const getRentInfoByPatId = () => { const tempPatId = formData.value.patId; resetForm() if (isStringEmpty(tempPatId)) return formData.value.patId = tempPatId; getAppointmentInfo() getFreeRentInfo() } const getAppointmentInfo = async () => { const appointmentData = await AppointmentApi.getAppointmentByPatId(formData.value.patId) if (null === appointmentData) const getFreeRentInfo = async () => { const data = await DevRentApi.getFreeRent(formData.value) if (null === data) return // formDate 对应 DevRent formData.value.patName = appointmentData.patName formData.value.patDeptDesc = appointmentData.patDeptDesc formData.value.patWardDesc = appointmentData.patWardDesc formData.value.patBedNo = appointmentData.patBedNo formData.value = data } src/views/ecg/doctor/index.vue
@@ -89,9 +89,9 @@ getOnstagePatient() patientStat.value = await DoctorApi.getDevReadyStatistic(roomBedVO) const queueVO2 = await DoctorApi.bedDoctorGet(roomBedVO) if (queueVO2.status === 20) if (queueVO2.status === 20) // 工位状态 有医生 state.value = true else if (queueVO2.status === 30) else if (queueVO2.status === 30) // 工位状态 暂停 state.value = false }