| | |
| | | baseline: string | undefined // 基线粗 |
| | | detachment: string | undefined // 脱落 |
| | | remark: string | undefined // 备注 |
| | | state: number | undefined // 状态 |
| | | paid: number | undefined |
| | | roomId: number | undefined | null |
| | | bedNo: string | undefined | null |
| | |
| | | /** |
| | | * |
| | | * 设备状态 |
| | | */ |
| | | export const DevStateOptions = [ |
| | | {label: "空闲", value: 0}, |
| | |
| | | } |
| | | |
| | | /** |
| | | * |
| | | * 检查状态 |
| | | */ |
| | | export const CheckStateOptions = [ |
| | | {label: "待检查", value: 0}, |
| | | {label: "已领用", value: 5}, |
| | | {label: "已装机", value: 10}, |
| | | {label: "已拆机", value: 20}, |
| | | {label: "已录入", value: 25}, |
| | | {label: "领用放弃", value: 30}, |
| | | {label: "安装放弃", value: 35}, |
| | | {label: "已遗失", value: 40}, |
| | | {label: "检查放弃", value: 50}, |
| | | {label: "检查完成", value: 60}, |
| | | ] |
| | | |
| | | export const tranlateCheckState = (state) => { |
| | | const stateOption = CheckStateOptions.find(obj => obj.value === state) |
| | | return stateOption?.label || '-' |
| | | } |
| | | |
| | | /** |
| | | * 排队状态 |
| | | */ |
| | | export const queueStatusConvert = (status: number) => { |
| | | if (3 === status) |
| | |
| | | </el-table-column> |
| | | <el-table-column label="型号" align="center" prop="model" /> |
| | | --> |
| | | <el-table-column label="使用状态" align="center" prop="lost" > |
| | | <el-table-column label="使用状态" align="center" prop="state" > |
| | | <template #default="scope"> |
| | | <span>{{tranlateDevState(scope.row.state)}}</span> |
| | | </template> |
| | |
| | | |
| | | getList() |
| | | }) |
| | | </script> |
| | | </script> |
| | |
| | | <el-table-column label="设备编号" align="center" prop="devId" /> |
| | | <el-table-column label="患者编号" align="center" prop="patId" /> |
| | | <el-table-column label="患者名称" align="center" prop="patName" /> |
| | | <el-table-column |
| | | <el-table-column label="检查状态" align="center" prop="state" > |
| | | <template #default="scope"> |
| | | <span>{{tranlateCheckState(scope.row.state)}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="检查&装机时间" |
| | | align="center" |
| | | prop="rentTime" |
| | |
| | | import download from '@/utils/download' |
| | | import { DevRentApi, DevRentVO } from '@/api/ecg/devrent' |
| | | import DevRentForm from './DevRentForm.vue' |
| | | import {tranlateCheckState} from "../../../utils/statusFormatter"; |
| | | |
| | | /** 装机拆机 列表 */ |
| | | defineOptions({ name: 'DevRent' }) |
| | |
| | | onMounted(() => { |
| | | getList() |
| | | }) |
| | | </script> |
| | | </script> |