| | |
| | | # 标题 |
| | | VITE_APP_TITLE=芋道管理系统 |
| | | VITE_APP_TITLE=动态心电装机系统 |
| | | |
| | | # 项目本地运行端口号 |
| | | VITE_PORT=80 |
| | |
| | | VITE_OPEN=true |
| | | |
| | | # 租户开关 |
| | | VITE_APP_TENANT_ENABLE=true |
| | | VITE_APP_TENANT_ENABLE=false |
| | | |
| | | # 验证码的开关 |
| | | VITE_APP_CAPTCHA_ENABLE=true |
| | | |
| | | # 文档地址的开关 |
| | | VITE_APP_DOCALERT_ENABLE=true |
| | | VITE_APP_DOCALERT_ENABLE=false |
| | | |
| | | # 百度统计 |
| | | VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc |
| | |
| | | |
| | | // 装机拆机 VO |
| | | export interface DevRentVO { |
| | | id: number // id |
| | | id: number | null // id |
| | | devId: string // 设备编号 |
| | | patId: string // 患者编号 |
| | | patName: string // 患者名称 |
| | |
| | | // 导出装机拆机 Excel |
| | | exportDevRent: async (params) => { |
| | | return await request.download({ url: `/ecg/dev-rent/export-excel`, params }) |
| | | }, |
| | | |
| | | // 获取患者设备最近的租赁 |
| | | getLatestRent: async (patId: string, devId: string) => { |
| | | return await request.download({ url: `/ecg/dev-rent/get-latest-rent?pat-id=` + patId + '&dev-id=' + devId }) |
| | | } |
| | | } |
| | |
| | | <template> |
| | | 当前患者: {{patient.patId}} {{patient.patName}} |
| | | 当前患者: {{patient.patId}} {{isStringEmpty(patient.patName)?'无':patient.patName}} |
| | | <el-form |
| | | ref="formRef" |
| | | :model="formData" |
| | |
| | | v-loading="formLoading" |
| | | > |
| | | <el-form-item label="设备编号" prop="devId"> |
| | | <el-input v-model="formData.devId" placeholder="请输入设备编号" /> |
| | | <el-input v-model="formData.devId" placeholder="请输入设备编号" @input="searchRentInfo"/> |
| | | </el-form-item> |
| | | <el-form-item label="装机时间" prop="rentTime"> |
| | | <el-date-picker |
| | |
| | | <el-button @click="submitDismantleForm" type="primary" :disabled="formLoading">拆机</el-button> |
| | | <el-button @click="dialogVisible = false">取 消</el-button> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import {defineComponent, PropType} from "vue"; |
| | | import { DevRentApi, DevRentVO } from '@/api/ecg/devrent' |
| | | import {QueueVO} from "@/api/ecg/queue"; |
| | | import {isStringEmpty} from "@/utils/stringUtil"; |
| | | |
| | | /** 装机拆机 表单 */ |
| | | defineComponent({ name: 'DevRentPanel' }) |
| | |
| | | }) |
| | | const formRules = reactive({ |
| | | devId: [{ required: true, message: '设备编号不能为空', trigger: 'blur' }], |
| | | patId: [{ required: true, message: '患者编号不能为空', trigger: 'blur' }], |
| | | patName: [{ required: true, message: '患者名称不能为空', trigger: 'blur' }] |
| | | patId: [{ required: true, message: '目前没有患者', trigger: 'blur' }], |
| | | patName: [{ required: true, message: '目前没有患者', trigger: 'blur' }] |
| | | }) |
| | | const formRef = ref() // 表单 Ref |
| | | |
| | |
| | | formLoading.value = true |
| | | try { |
| | | const data = formData.value as unknown as DevRentVO |
| | | data.id = null |
| | | data.patId = props.patient.patId |
| | | data.patName = props.patient.patName |
| | | if (formType.value === 'create') { |
| | | await DevRentApi.createDevRent(data) |
| | | const result = await DevRentApi.createDevRent(data) |
| | | formData.value.id = result.data |
| | | message.success(t('common.createSuccess')) |
| | | } else { |
| | | await DevRentApi.updateDevRent(data) |
| | |
| | | formData.value = { |
| | | id: undefined, |
| | | devId: undefined, |
| | | patId: undefined, |
| | | patName: undefined, |
| | | patId: props.patient.patId, |
| | | patName: props.patient.patName, |
| | | rentTime: undefined, |
| | | returnTime: undefined, |
| | | interference: undefined, |
| | |
| | | } |
| | | formRef.value?.resetFields() |
| | | } |
| | | |
| | | const searchRentInfo = async () => { |
| | | const result = await DevRentApi.getLatestRent(formData.value.patId, formData.value.devId!) |
| | | console.info( result ) |
| | | if (null != result.data) { |
| | | formData.value = result.data |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | |
| | |
| | | <script setup lang="ts"> |
| | | import {defineComponent, PropType} from "vue"; |
| | | import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor"; |
| | | import {dateFormatter} from "@/utils/formatTime"; |
| | | |
| | | defineComponent({ |
| | | name: 'JobRecordPanel' |
| | |
| | | </script> |
| | | |
| | | <template> |
| | | |
| | | <div>作业记录</div> |
| | | </template> |
| | | |
| | | <style scoped lang="scss"> |
| | |
| | | |
| | | const onStagePatient = ref<QueueVO>({ |
| | | bedNo: "", bookCheckType: 0, bookTimeslot: 0, expired: 0, id: 0, jumpFlag: 0, passed: 0, |
| | | patGender: 0, patId: "1", patName: "OKK", roomId: 0, roomName: "", seqNum: 0, status: 0 |
| | | patGender: 0, patId: "", patName: "", roomId: 0, roomName: "", seqNum: 0, status: 0 |
| | | }) |
| | | |
| | | const patientStat = ref<PatientStatisticVO>({ |