This commit is contained in:
kmd 2025-10-13 15:25:13 +08:00
parent 0416b0e9e3
commit 27a7b2352e
3 changed files with 9 additions and 6 deletions

View File

@ -56,7 +56,7 @@ export default defineComponent({
//
onMounted(() => {
const tableRef = unref(elTableRef)
emit('register', tableRef?.$parent, elTableRef)
emit('register', tableRef?.$parent, unref(elTableRef))
})
const pageSizeRef = ref(props.pageSize)

View File

@ -52,7 +52,7 @@
<span v-if="row.children">{{ row.orgname || '未知' }}</span>
</template>
</el-table-column>
<el-table-column label="行政村" align="center" min-width="160">
<el-table-column label="详细地址" align="center" min-width="160">
<template #default="{ row }">
<span v-if="!row.children">{{ row.districtname || '未知' }}</span>
</template>

View File

@ -38,7 +38,7 @@
class="!w-320px"
/>
</el-form-item>
<el-form-item label="当前机构" prop="hospitalNo">
<!-- <el-form-item label="当前机构" prop="hospitalNo">
<el-select
v-model="queryParams.hospitalNo"
placeholder="请选择当前机构"
@ -52,7 +52,7 @@
:value="hospital.code"
/>
</el-select>
</el-form-item>
</el-form-item> -->
<el-form-item>
<el-button type="primary" @click="handleQuery">
@ -140,6 +140,7 @@ import { PatientApi, type PatientVO } from '@/api/inspect/inspectpatient'
import ReportPreview from './components/ReportPreview.vue'
import dayjs from 'dayjs'
import { hospitals } from '@/config/hospitals'
import { getUserProfile } from '@/api/system/user/profile'
defineOptions({ name: 'ReportPrint' })
//
@ -155,7 +156,7 @@ const queryParams = reactive({
pageSize: 10,
medicalSn: undefined as string | undefined,
pname: undefined as string | undefined,
hospitalNo: undefined as string | undefined,
examhoscode: undefined as string | undefined,
medicalDateTime: [
dayjs().startOf('day').format('YYYY-MM-DD HH:mm:ss'),
dayjs().endOf('day').format('YYYY-MM-DD HH:mm:ss')
@ -168,6 +169,8 @@ const queryFormRef = ref() // 搜索的表单
const getList = async () => {
loading.value = true
try {
const userInfo = await getUserProfile()
queryParams.examhoscode = userInfo.deptId
const data = await PatientApi.getPatientPage({
pageNo: queryParams.pageNo,
pageSize: queryParams.pageSize,
@ -175,7 +178,7 @@ const getList = async () => {
pName: queryParams.pname?.trim() || undefined,
medicalDateTime: queryParams.medicalDateTime,
status: queryParams.status,
hospitalNo: queryParams.hospitalNo
examhoscode: queryParams.examhoscode
})
list.value = data.list
total.value = data.total