chenyc
2024-12-25 21ef2641f0292f01cb0bb362c24b30b5014dae8e
src/views/home/index.vue
@@ -1,6 +1,6 @@
<template>
    <div class="home-container layout-pd ">
        <el-row>
        <el-row :gutter="10">
            <el-col class="patTabel" :xs="6" :sm="6" :md="4" :lg="3" :xl="3" v-if="state.isTable">
                <el-table :data="state.filterTableData" stripe :height="state.tableHeight.left" size="default"
                    highlight-current-row @current-change="handleCurrentChange" style="width: 100%">
@@ -46,7 +46,6 @@
                                <span style="margin-left: 5px">生化数据</span>
                            </span>
                        </template>
                        <lisUi ref="lisUiRef"></lisUi>
                    </el-tab-pane>
                    <el-tab-pane label="用药记录" name="用药记录">
                        <template #label>
@@ -68,7 +67,7 @@
                                <span style="margin-left: 5px">历史服务</span>
                            </span>
                        </template>
                        Task
                        <el-empty  description="该功能未开发"></el-empty>
                    </el-tab-pane>
                    <el-tab-pane label="膳食调查" name="膳食调查">
                        <template #label>
@@ -101,7 +100,7 @@
                                <span style="margin-left: 5px">方案</span>
                            </span>
                        </template>
                        Task
                        <!-- <el-empty  description="该功能未开发"></el-empty>  -->
                    </el-tab-pane>
                    <el-tab-pane label="随访记录" name="随访记录">
                        <template #label>
@@ -112,7 +111,7 @@
                                <span style="margin-left: 5px">随访记录</span>
                            </span>
                        </template>
                        Task
                        <!-- <el-empty  description="该功能未开发"></el-empty>  -->
                    </el-tab-pane>
                </el-tabs>
                <div class="itemDoby">
@@ -124,6 +123,8 @@
                    </MedicationRecords>
                    <dietarySurvey ref="dietarySurveyRef" v-show="state.activeName === '膳食调查'"  :tableHeight="state.tableHeight.detailRight"></dietarySurvey>
                    <pinggubiao ref="pinggubiaoRef" v-show="state.activeName === '营养筛查评估'"  :tableHeight="state.tableHeight.detailRight"></pinggubiao>
                    <fangAn ref="fangAnRef" v-show="state.activeName === '方案'"  :tableHeight="state.tableHeight.detailRight"></fangAn>
                    <suifangjilu ref="suifangjiluRef" v-show="state.activeName === '随访记录'" :tableHeight="state.tableHeight.detailRight"></suifangjilu>
                </div>
@@ -159,6 +160,10 @@
import lisUi from './components/lis_.ui.vue'
// 评估表
import pinggubiao from './components/pingubiao/index.vue'
// 方案
import fangAn from './components/fangAn/index.vue'
// 随访记录
import suifangjilu from './components/suifangjilu/index.vue'
interface User {
    code: string,
    patientName: string
@@ -171,6 +176,8 @@
const lisUiRef = ref()
const pinggubiaoRef=ref()
const dietarySurveyRef=ref()// 膳食调查
const fangAnRef=ref()
const suifangjiluRef=ref()
const state = reactive({
    global: {
        homeChartOne: null,
@@ -179,7 +186,7 @@
        dispose: [null, '', undefined],
    } as any,
    filterTableData: [],
    activeName: '膳食调查',
    activeName: '患者档案',
    tableHeight: {
        left: 0,
        detailRight: 0
@@ -196,6 +203,7 @@
        currentRow.value = val
        //缓存到vuex 中
        storesPat.setPatientsInfo(val)
        console.log(val)
        getTabsData()
    }
}
@@ -218,7 +226,9 @@
        age: 0,
        patientName: '',
        patientGenderText: '',
        patientAvatarIcon: ''
        patientAvatarIcon: '',
        clientCode:''
    })
    QueryList(ps).then(res => {
        console.log('----------------患者--------')
@@ -259,6 +269,10 @@
        }else if(state.activeName === '营养筛查评估'){
            pinggubiaoRef.value.getData()
           
        }else if(state.activeName==='方案'){
            fangAnRef.value.getData()
        }else if(state.activeName==='随访记录'){
            suifangjiluRef.value.getData()
        }
    }
}
@@ -277,8 +291,8 @@
        }
        .el-table__body tr.current-row>td.el-table__cell {
            background: #E4F6DE;
            color: #5FCD00;
            background: rgb(197.7, 225.9, 255);
            color: #409EFF;
            /* height: 25px; */
            /* border: tomato solid 1px; */
        }
@@ -324,7 +338,6 @@
    right: 30px;
    width: 200px;
    height: 100px;
    background-color: #ffffff;
    color: rgb(16, 3, 3);
    padding: 10px;
    z-index: 999;