|
@@ -1,6 +1,6 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import {onMounted, ref} from "vue";
|
|
import {onMounted, ref} from "vue";
|
|
-import {currentAndAFewDaysAgo, getDateRange} from '@/utils/date'
|
|
|
|
|
|
+import {currentAndAFewDaysAgo, getDateRange} from '@/utils/date';
|
|
import {getDetail, getNormal} from "@/api/jian-yan-jie-kou/jian-yan-jie-kou";
|
|
import {getDetail, getNormal} from "@/api/jian-yan-jie-kou/jian-yan-jie-kou";
|
|
import XcTable from "@/components/xiao-chan/xc-table/XcTable.vue";
|
|
import XcTable from "@/components/xiao-chan/xc-table/XcTable.vue";
|
|
import {shortcuts} from '@/data/shortcuts'
|
|
import {shortcuts} from '@/data/shortcuts'
|
|
@@ -20,7 +20,7 @@ interface SidebarData {
|
|
const dateRange = ref<string[]>([])
|
|
const dateRange = ref<string[]>([])
|
|
const sidebarData = ref<SidebarData[]>([])
|
|
const sidebarData = ref<SidebarData[]>([])
|
|
|
|
|
|
-const inspectionHeader = ref<{
|
|
|
|
|
|
+interface InspectionHeader {
|
|
ordr_usr_name: string;
|
|
ordr_usr_name: string;
|
|
ptnt_sex: string
|
|
ptnt_sex: string
|
|
ptnt_age: string
|
|
ptnt_age: string
|
|
@@ -35,7 +35,9 @@ const inspectionHeader = ref<{
|
|
audt_time: string
|
|
audt_time: string
|
|
test_usr_name: string
|
|
test_usr_name: string
|
|
audt_usr_name: string
|
|
audt_usr_name: string
|
|
-}>({
|
|
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const inspectionHeader = ref<InspectionHeader>({
|
|
aply_cntn: "",
|
|
aply_cntn: "",
|
|
aply_date: "",
|
|
aply_date: "",
|
|
audt_time: "",
|
|
audt_time: "",
|
|
@@ -73,6 +75,23 @@ const query = () => {
|
|
const sidebarRowClick = (row: SidebarData) => {
|
|
const sidebarRowClick = (row: SidebarData) => {
|
|
getDetail(row.reportId).then(res => {
|
|
getDetail(row.reportId).then(res => {
|
|
if (XEUtils.isEmpty(res)) {
|
|
if (XEUtils.isEmpty(res)) {
|
|
|
|
+ inspectionHeader.value = {
|
|
|
|
+ aply_cntn: "",
|
|
|
|
+ aply_date: "",
|
|
|
|
+ audt_time: "",
|
|
|
|
+ audt_usr_name: "",
|
|
|
|
+ dept_name: "",
|
|
|
|
+ ordr_create_date: "",
|
|
|
|
+ ordr_usr_name: "",
|
|
|
|
+ ptnt_age: "",
|
|
|
|
+ ptnt_age_unit: "",
|
|
|
|
+ ptnt_bed_no: "",
|
|
|
|
+ ptnt_no: "",
|
|
|
|
+ ptnt_sex: "",
|
|
|
|
+ smpl_name: "",
|
|
|
|
+ test_usr_name: ""
|
|
|
|
+ }
|
|
|
|
+ detailData.value = []
|
|
return
|
|
return
|
|
}
|
|
}
|
|
console.log(res)
|
|
console.log(res)
|
|
@@ -144,14 +163,14 @@ onMounted(async () => {
|
|
<template>
|
|
<template>
|
|
<el-auto-resizer>
|
|
<el-auto-resizer>
|
|
<template #default="{ height, width }">
|
|
<template #default="{ height, width }">
|
|
- <div style="display: flex ; height: 100%">
|
|
|
|
|
|
+ <div class="test-aside">
|
|
<div style="width: 220px">
|
|
<div style="width: 220px">
|
|
- <div style="height: 50px">
|
|
|
|
|
|
+ <div class="test_query_header">
|
|
<el-date-picker v-model="dateRange"
|
|
<el-date-picker v-model="dateRange"
|
|
:shortcuts="shortcuts"
|
|
:shortcuts="shortcuts"
|
|
style="width: 180px"
|
|
style="width: 180px"
|
|
type="daterange"/>
|
|
type="daterange"/>
|
|
- <br>
|
|
|
|
|
|
+ <br/>
|
|
<el-button @click="query">查询</el-button>
|
|
<el-button @click="query">查询</el-button>
|
|
</div>
|
|
</div>
|
|
<xc-table :local-data="sidebarData"
|
|
<xc-table :local-data="sidebarData"
|
|
@@ -163,6 +182,7 @@ onMounted(async () => {
|
|
<el-table-column prop="trscDate" label="检验时间" width="75"></el-table-column>
|
|
<el-table-column prop="trscDate" label="检验时间" width="75"></el-table-column>
|
|
</xc-table>
|
|
</xc-table>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
<div style="flex: 1">
|
|
<div style="flex: 1">
|
|
<div class="describe" ref="describeRef">
|
|
<div class="describe" ref="describeRef">
|
|
<div class="pat-info">
|
|
<div class="pat-info">
|
|
@@ -277,6 +297,16 @@ onMounted(async () => {
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
|
+.test-aside {
|
|
|
|
+ display: flex;
|
|
|
|
+ height: 100%;
|
|
|
|
+
|
|
|
|
+ .test_query_header {
|
|
|
|
+ height: 50px
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
.describe {
|
|
.describe {
|
|
width: 100%;
|
|
width: 100%;
|
|
margin-left: 20px;
|
|
margin-left: 20px;
|