修改头像&机构相关

This commit is contained in:
Flow 2025-05-23 17:13:39 +08:00
parent 8fffc24768
commit d0aef05643
7 changed files with 48 additions and 14 deletions

BIN
public/头像.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -128,8 +128,8 @@ export const PatientApi = {
return await request.get({ url: `/inspect/patient/createPatientitem?medicalSn=` + medicalSn })
},
//根据体检编号&姓名&身份证号获取患者信息
getPatientInfoByMedicalSn: async (searchKey: string) => {
return await request.get({ url: `/inspect/patient/PatientBySearchKey?searchKey=` + searchKey })
getPatientInfoByMedicalSn: async (searchKey: string,examhoscode: string,status: string) => {
return await request.get({ url: `/inspect/patient/PatientBySearchKey?searchKey=` + searchKey + `&examhoscode=` + examhoscode + `&status=` + status})
},
//获取公卫患者信息
getGwPatientInfo: async (idCard: string) => {

View File

@ -609,7 +609,7 @@ const handleLocalSearch = async () => {
})
//
const res = await PatientApi.getPatientInfoByMedicalSn(searchQuery.value)
const res = await PatientApi.getPatientInfoByMedicalSn(searchQuery.value,user.value.deptId,statusFilter.value)
//
if (res) {
@ -2771,7 +2771,8 @@ const getDoctorList = async () => {
try {
const res = await DoctorApi.getDoctorPage({
pageNo: 1,
pageSize: 100 //
pageSize: 100, //
orgid: user.value?.deptId
})
if (res && res.list && res.list.length > 0) {
//

View File

@ -302,6 +302,21 @@ onMounted(() => {
/** 打印报告按钮操作 */
const handlePrint = async (row: PatientVO) => {
try {
const patientInfo = await PatientApi.getPatientInfo(row.medicalSn)
if (patientInfo.status == 1 && patientInfo.medicalDateTime) {
const lastMedicalDate = new Date(patientInfo.medicalDateTime)
const currentDate = new Date()
//
const timeDiff = currentDate.getTime() - lastMedicalDate.getTime()
//
const daysDiff = Math.floor(timeDiff / (1000 * 3600 * 24))
// 365
if (daysDiff < 365) {
//
message.error(`该患者上次体检距今不满一年`)
return
}
}
const userInfo = await getUserProfile()
const deptInfo = await InspectOrgApi.getInspectOrg(userInfo.deptId)
await PatientApi.updatePatientOrg(row.medicalSn,deptInfo.orgid,deptInfo.orgName)
@ -355,8 +370,20 @@ const handlePrintBarcode = async (row: PatientVO) => {
try {
//
const patientInfo = await PatientApi.getPatientInfo(row.medicalSn)
console.log('患者信息:', patientInfo)
if (patientInfo.status == 1 && patientInfo.medicalDateTime) {
const lastMedicalDate = new Date(patientInfo.medicalDateTime)
const currentDate = new Date()
//
const timeDiff = currentDate.getTime() - lastMedicalDate.getTime()
//
const daysDiff = Math.floor(timeDiff / (1000 * 3600 * 24))
// 365
if (daysDiff < 365) {
//
message.error(`该患者上次体检距今不满一年`)
return
}
}
//
if(patientInfo.barcodetime){
//

View File

@ -9,17 +9,20 @@
>
<el-row gutter="20">
<el-col :span="12">
<el-form-item label="机构ID" prop="orgid">
<el-input v-model="formData.orgid" placeholder="请输入机构ID" disabled />
</el-form-item>
<el-form-item label="机构名称" prop="orgName">
<el-input v-model="formData.orgName" placeholder="请输入机构名称" />
</el-form-item>
<el-form-item label="机构地址" prop="address">
<el-input v-model="formData.address" placeholder="请输入机构地址" />
</el-form-item>
<el-form-item label="机构号" prop="orgSN">
<el-input v-model="formData.orgSN" placeholder="请输入机构号" />
<el-form-item label="机构号" prop="orgSN">
<el-input v-model="formData.orgSN" placeholder="请输入机构号" />
</el-form-item>
<el-form-item label="机构码" prop="inHisCode">
<el-input v-model="formData.inHisCode" placeholder="请输入机构码" />
<el-input v-model="formData.inHisCode" placeholder="his系统中的机构码" />
</el-form-item>
</el-col>
<el-col :span="12">
@ -82,11 +85,9 @@ const formData = ref({
})
const formRules = reactive({
highLevelOrgID: [{ required: true, message: '请选择上级机构', trigger: 'change' }],
orgSN: [{ required: true, message: '请输入机构编号', trigger: 'change' }],
orgType: [{ required: true, message: '请选择医院机构类型', trigger: 'change' }],
orgName: [{ required: true, message: '请输入机构名称', trigger: 'change' }],
contactPerson: [{ required: true, message: '请输入联系人姓名', trigger: 'change' }],
inHisCode: [{ required: true, message: '请输入机构码', trigger: 'change' }],
contactTel: [
{ required: true, message: '请填入正确的手机号', trigger: 'blur' },
{

View File

@ -53,7 +53,7 @@
<!-- 列表 -->
<ContentWrap>
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
<el-table-column label="机构" align="center" prop="inHisCode" />
<el-table-column label="机构ID" align="center" prop="orgid" />
<el-table-column label="机构名称" align="center" prop="orgName" />
<el-table-column label="机构地址" align="center" prop="address" />
<el-table-column label="联系电话" align="center" prop="contactTel" />

View File

@ -12,7 +12,7 @@
<div class="iframe-container">
<iframe
v-if="dialogVisible"
src="/inspect/templates/report-template.html"
src="/templates/report-template.html"
frameborder="0"
style="width: 100%; height: 100%; border: none"
@load="handleIframeLoad"
@ -126,8 +126,13 @@ const handleIframeLoad = async () => {
//
const avatarImg = doc.getElementById('avatar-image')
if (avatarImg) {
if (reportData.headPicUrl) {
avatarImg.src = 'data:image/jpeg;base64,' + reportData.headPicUrl
}
else{
avatarImg.src = '/头像.png'
}
}
//
const summaryDoctorImage = doc.getElementById('summary-doctor-image')
const summaryDoctorImage2 = doc.getElementById('summary-doctor-image2')