新增
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
</div> -->
|
||||
<div class="patient-info">
|
||||
<div class="patient-name">{{ row.patient_name }}</div>
|
||||
<div class="patient-phone">{{ row.patient_phone }}</div>
|
||||
<div class="patient-phone">{{ maskPhone(row.patient_phone) }}</div>
|
||||
<div class="patient-extra">
|
||||
{{ [row.gender === 1 ? '男' : row.gender === 0 ? '女' : '', row.age != null ? row.age + '岁' : '', row.height != null ? row.height + 'cm' : '', row.weight != null ? row.weight + 'kg' : ''].filter(Boolean).join(' ') || '-' }}
|
||||
</div>
|
||||
@@ -404,9 +404,9 @@
|
||||
病史信息
|
||||
</div>
|
||||
<div class="detail-grid">
|
||||
<div v-if="detailData.diabetes_discovery_year != null" class="detail-item">
|
||||
<div v-if="isDiabetesDiscoveryFilled(detailData.diabetes_discovery_year)" class="detail-item">
|
||||
<span class="detail-label">发现糖尿病病史</span>
|
||||
<span class="detail-value">{{ detailData.diabetes_discovery_year }}年</span>
|
||||
<span class="detail-value">{{ formatDiabetesDiscoveryDisplay(detailData.diabetes_discovery_year) }}</span>
|
||||
</div>
|
||||
<div v-if="detailData.local_hospital_name" class="detail-item">
|
||||
<span class="detail-label">当地就诊医院</span>
|
||||
@@ -513,6 +513,10 @@ import { appointmentLists, cancelAppointment, completeAppointment, appointmentDe
|
||||
import { getCallSignature, generateMiniProgramQrcode, tcmDiagnosisDetail, prescriptionGetByAppointment } from '@/api/tcm'
|
||||
import { getDictData } from '@/api/app'
|
||||
import feedback from '@/utils/feedback'
|
||||
import {
|
||||
formatDiabetesDiscoveryDisplay,
|
||||
isDiabetesDiscoveryFilled
|
||||
} from '@/utils/diabetes-discovery-display'
|
||||
|
||||
// 重组件异步加载,避免与列表同 chunk 阻塞路由进入与首帧渲染
|
||||
const EditPopup = defineAsyncComponent(() => import('../diagnosis/edit.vue'))
|
||||
@@ -540,6 +544,12 @@ import {
|
||||
const userStore = useUserStore()
|
||||
const userInfo = computed(() => userStore.userInfo)
|
||||
|
||||
// 手机号脱敏处理
|
||||
const maskPhone = (phone: string) => {
|
||||
if (!phone || phone.length < 11) return phone
|
||||
return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
|
||||
}
|
||||
|
||||
// 判断是否为管理员(非医生、非医助)
|
||||
const isAdmin = computed(() => {
|
||||
const roleId = userInfo.value.role_id
|
||||
|
||||
Reference in New Issue
Block a user