| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="患者编号" prop="patId"> |
| | | <el-input v-model="formData.patId" placeholder="请输入患者编号" @input="getRentInfoByPatId" /> |
| | | <Qrcode v-if="formData.patId !== undefined && formData.patId !== ''" :text="formData.patId" logo="/logo.gif" width=100 /> |
| | | <!-- <Qrcode v-if="formData.patId !== undefined && formData.patId !== ''" :text="formData.patId" logo="/logo.gif" width=100 />--> |
| | | <Barcode v-if="!isStringEmpty(formData.patId) && 1 === checkTypeStore.getCheckTypeDispBarCode(formData.checkType)" :value="formData.patId" :width=100 /> |
| | | </el-form-item> |
| | | <el-form-item label="患者名称" prop="patName"> |
| | | <el-input v-model="formData.patName" placeholder="请输入患者名称" /> |
| | |
| | | </el-row> |
| | | </el-form> |
| | | <el-button @click="submitForm" type="primary" :disabled="formLoading">检查完成</el-button> |
| | | <el-button @click="resetForm()">重 置</el-button> |
| | | <el-button @click="cancelInstall" :disabled="formLoading">放弃检查</el-button> |
| | | <el-button @click="resetForm()">重 置</el-button> |
| | | <el-button @click="feeConfirm" :disabled="formLoading">确费</el-button> |
| | | <el-button @click="feeCancel" :disabled="formLoading">取消确费</el-button> |
| | | |
| | | <!-- 医生装机列表 --> |
| | | <ContentWrap> |
| | | <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true" @row-click="onRowClick" > |
| | | <el-table-column label="id" align="center" prop="id" /> |
| | | <el-table-column label="装机情况" align="center" prop="lost" > |
| | | <!-- <el-table-column label="id" align="center" prop="id" />--> |
| | | <el-table-column label="检查状态" align="center" prop="lost" > |
| | | <template #default="scope"> |
| | | <span v-if="scope.row.jobType === 60">已检查</span> |
| | | <span v-if="scope.row.jobType === 50">已放弃</span> |
| | |
| | | import {JobRecordApi, JobRecordVO} from "@/api/ecg/jobrecord"; |
| | | import {isStringEmpty} from "@/utils/stringUtil"; |
| | | import {curDayEnd, curDayStart} from "@/utils/dateUtil"; |
| | | import {DeviceApi} from "@/api/ecg/devmanage"; |
| | | import {QueueVO} from "@/api/ecg/queue"; |
| | | import {RoomBedVO} from "@/api/ecg/doctor"; |
| | | import {AppointmentApi} from "@/api/ecg/appointment"; |
| | | import {Barcode} from "@/components/Barcode"; |
| | | import {useCheckTypeStore} from "@/store/modules/checkType"; |
| | | |
| | | /** 设备装机 表单 */ |
| | | defineComponent({ name: 'RoutinePanel' }) |
| | |
| | | |
| | | const emit = defineEmits(['event_routine']) // 定义 success 事件,用于操作成功后的回调 |
| | | |
| | | const checkTypeStore = useCheckTypeStore() |
| | | |
| | | const setPatient = (queueVO: QueueVO | undefined) => { |
| | | resetForm() |
| | | formData.value.patId = queueVO?.patId |
| | | formData.value.patName = queueVO?.patName |
| | | formData.value.checkType = queueVO?.bookCheckType |
| | | getFreeRentInfo(formData.value) |
| | | } |
| | | defineExpose({ setPatient }) // 提供 setPatient 方法,用于设置患者 |
| | |
| | | // 发送操作成功的事件 |
| | | emit('event_routine') |
| | | resetForm() |
| | | getList() |
| | | getList() // 医生作业历史 |
| | | } finally { |
| | | formLoading.value = false |
| | | } |
| | |
| | | formData.value.roomId = props.room.roomId |
| | | formData.value.bedNo = props.room.bedNo |
| | | const data = formData.value as unknown as DevRentVO |
| | | if (formData.value.id === null || formData.value.id === undefined) { |
| | | const result = await DevRentApi.routineCheckCancel(data) |
| | | formData.value.id = result |
| | | message.success(t('操作成功')) |
| | | } else { |
| | | await DevRentApi.routineCheckCancel(data) |
| | | message.success(t('操作成功')) |
| | | } |
| | | await DevRentApi.routineCheckCancel(data) |
| | | |
| | | // 发送操作成功的事件 |
| | | emit('event_routine') |
| | | resetForm() |
| | | getList() |
| | | |
| | | message.success(t('操作成功')) |
| | | } |
| | | |
| | | const feeConfirm = async () => { |
| | | const result = await DevRentApi.feeConfirm(formData.value.id) |
| | | if (0 == result) |
| | | message.success(t('操作成功')) |
| | | } |
| | | |
| | | const feeCancel = async () => { |
| | | const result = await DevRentApi.feeCancel(formData.value.id) |
| | | if (0 == result) |
| | | message.success(t('操作成功')) |
| | | } |
| | | |
| | | /** 初始化 **/ |