|
|
@@ -7,49 +7,67 @@
|
|
|
<span>
|
|
|
({{ patInfo.sexName }} {{ patInfo.age }} )
|
|
|
</span>
|
|
|
+
|
|
|
</div>
|
|
|
- <div style="flex: 1;overflow: auto">
|
|
|
- <div :class="[ns.e('medicalTrackList')]">
|
|
|
- <template v-for="(item , index) in patInfo.medicalTrackList">
|
|
|
- <div :class="[ns.e('item'), ns.is('activation' , currentUid === item.uid)]"
|
|
|
- @click.stop="handleQueryData(item )">
|
|
|
- <div :class="ns.e('dept_name')"> {{ item.deptName }}</div>
|
|
|
- <div>
|
|
|
- <div :class="ns.e('outOrHosp')">
|
|
|
- {{ outOrHospName(item.outOrHosp) }}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- v-if="item.outOrHosp === 2"
|
|
|
- >
|
|
|
+ <div style="flex: 1;width: 0 ">
|
|
|
+ <div>
|
|
|
+ <el-radio-group v-model="grouping">
|
|
|
+ <el-radio-button :label="0">全部({{ patInfo.medicalTrackList.length }})</el-radio-button>
|
|
|
+ <el-radio-button :label="1">门诊({{ medicalTrackGrouping.mz }})</el-radio-button>
|
|
|
+ <el-radio-button :label="2">住院({{ medicalTrackGrouping.zy }})</el-radio-button>
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <div :class="[ns.e('medicalTrackList')]" style="overflow: auto">
|
|
|
+ <template v-for="(item , index) in medicalTrackComp">
|
|
|
+ <div :class="[ns.e('item'), ns.is('activation' , currentUid === item.uid)]"
|
|
|
+ @click.stop="handleQueryData(item )">
|
|
|
+ <div :class="ns.e('dept_name')"> {{ item.deptName }}</div>
|
|
|
<div>
|
|
|
- {{ formatDate(item.admissDate) }}
|
|
|
+ <div :class="ns.e('outOrHosp')">
|
|
|
+ {{ outOrHospName(item.outOrHosp) }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div>
|
|
|
- |
|
|
|
+ <div
|
|
|
+ v-if="item.outOrHosp === 2"
|
|
|
+ >
|
|
|
+ <div>
|
|
|
+ {{ formatDate(item.admissDate) }}
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ |
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ {{ formatDate(item.disDate) }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div>
|
|
|
- {{ formatDate(item.disDate) }}
|
|
|
+ <div v-else>
|
|
|
+ {{ item.date }}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-else>
|
|
|
- {{ item.date }}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- v-if="index < patInfo.medicalTrackList.length - 1"
|
|
|
- :class="[ns.e('divider_line')]"
|
|
|
- />
|
|
|
- </template>
|
|
|
+ <div
|
|
|
+ v-if="index < patInfo.medicalTrackList.length - 1"
|
|
|
+ :class="[ns.e('divider_line')]"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
-import {patInfo, ns, handleQueryData, currentUid} from "@/views/view/patient360/src";
|
|
|
+import {
|
|
|
+ patInfo,
|
|
|
+ ns,
|
|
|
+ handleQueryData,
|
|
|
+ currentUid,
|
|
|
+ grouping,
|
|
|
+ medicalTrackComp,
|
|
|
+ medicalTrackGrouping
|
|
|
+} from "@/views/view/patient360/src";
|
|
|
import {formatDateToStr, DATEFORMAT} from "@/utils/moment-utils";
|
|
|
+import {ElRadioGroup, ElRadioButton} from "element-plus";
|
|
|
|
|
|
function formatDate(date) {
|
|
|
return formatDateToStr(date ?? new Date(), DATEFORMAT.DATE)
|