| | |
| | | <el-table-column label="设备编号" align="center" prop="devId" /> |
| | | <el-table-column label="患者编号" align="center" prop="patId" /> |
| | | <el-table-column label="患者名称" align="center" prop="patName" /> |
| | | <!-- 需求1:门诊号 + 医嘱号(此前这两个页面遗漏了该列,本次补齐) |
| | | 标签由「就诊卡号」改为「门诊号」(经确认):medical_card 全库为空, |
| | | 该列实际显示 outpatient_no(详见《部署清单》5.1)。 --> |
| | | <el-table-column label="门诊号" align="center" min-width="140px"> |
| | | <template #default="scope"> |
| | | <span>{{ resolveCardNo(scope.row).value }}</span> |
| | | <el-tag v-if="resolveCardNo(scope.row).from" size="small" type="info" effect="plain" class="ml-1"> |
| | | {{ resolveCardNo(scope.row).from }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="医嘱号" align="center" prop="doctorAdviceNo" min-width="110px"> |
| | | <template #default="scope"> |
| | | {{ scope.row.doctorAdviceNo || '-' }} |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <!-- 需求1:补齐患者信息(后端 DevRentRespVO 已扩字段并回填) --> |
| | | <el-table-column label="性别" align="center" width="70px"> |
| | | <template #default="scope"> |
| | | <!-- 1男/2女;0 或缺失(HIS 未提供,实测库中有 2123 行=0)显示"未知" --> |
| | | <dict-tag v-if="scope.row.patGender === 1 || scope.row.patGender === 2" |
| | | :type="DICT_TYPE.SYSTEM_USER_SEX" :value="scope.row.patGender" /> |
| | | <span v-else>未知</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="出生日期" align="center" width="110px"> |
| | | <template #default="scope">{{ formatDateOnly(scope.row.patBirthday) || '-' }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="年龄" align="center" width="80px"> |
| | | <template #default="scope">{{ formatAge(scope.row.patBirthday) || '-' }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="来源" align="center" width="90px"> |
| | | <template #default="scope"> |
| | | <dict-tag v-if="scope.row.patSrc !== undefined && scope.row.patSrc !== null" |
| | | :type="DICT_TYPE.ECG_PAT_SOURCE" :value="scope.row.patSrc" /> |
| | | <span v-else>-</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="病区" align="center" min-width="110px"> |
| | | <template #default="scope">{{ scope.row.patWardDesc || scope.row.patDetails?.wardDesc || '-' }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="病床号" align="center" width="90px"> |
| | | <template #default="scope">{{ scope.row.patBedNo || scope.row.patDetails?.bedNo || '-' }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="患者电话" align="center" min-width="120px"> |
| | | <template #default="scope"> |
| | | {{ scope.row.patMobile || scope.row.patPhone || scope.row.patDetails?.mobile || '-' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="登记时间" align="center" min-width="150px"> |
| | | <template #default="scope">{{ formatDateTime(scope.row.registerDate) || '-' }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="开单日期" align="center" min-width="150px"> |
| | | <template #default="scope">{{ formatDateTime(scope.row.doctorTime) || '-' }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="距今天数" align="center" width="90px"> |
| | | <template #default="scope">{{ formatDaysFromOrder(scope.row.doctorTime) || '-' }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="开单医师" align="center" min-width="100px"> |
| | | <template #default="scope">{{ scope.row.doctor || '-' }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="多耐" align="center" width="110px"> |
| | | <template #default="scope"> |
| | | <dict-tag :type="DICT_TYPE.ECG_TOLERANCE" :value="scope.row.tolerance ?? 0" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="检查类型" align="center" prop="checkType" width="100px"> |
| | | <template #default="scope"> |
| | | <span>{{getCheckTypeName(scope.row.checkType)}}</span> |
| | |
| | | import DevRentForm from './DevRentForm.vue' |
| | | import {tranlateCheckState} from "../../../utils/statusFormatter"; |
| | | import {getCheckTypeName} from "../../../utils/checkTypeFormatter"; |
| | | // 需求1:患者信息 18 项(字典 + 年龄/距今天数等实时计算) |
| | | import { DICT_TYPE } from '@/utils/dict' |
| | | import { formatAge, formatDaysFromOrder, formatDateTime, formatDateOnly, resolveCardNo } from '@/utils/patientInfo' |
| | | |
| | | /** 装机拆机 列表 */ |
| | | defineOptions({ name: 'DevRent' }) |