From 3ea8754aa2da3b38cade5d2e65989c0fce03cf8f Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期三, 02 七月 2025 14:47:50 +0800
Subject: [PATCH] gg患者列表人数
---
src/views/home/components/pingubiao/editDietary2.vue | 53 +++++++++++++++++++++++++++++++++++++++--------------
1 files changed, 39 insertions(+), 14 deletions(-)
diff --git a/src/views/home/components/pingubiao/editDietary2.vue b/src/views/home/components/pingubiao/editDietary2.vue
index 049ae82..5a8cbd5 100644
--- a/src/views/home/components/pingubiao/editDietary2.vue
+++ b/src/views/home/components/pingubiao/editDietary2.vue
@@ -1,7 +1,7 @@
<template>
<div class="dietarySurvey-item">
<el-dialog v-model="state.dialogTableVisible" title="SGA" :fullscreen="true" width="100%">
- <div class="container" style="width: 100%; height: 100%;overflow: auto;">
+ <div style="width: 100%; height: 100%;overflow: auto;">
<div id="pinggu2">
<div>
<el-form size="small">
@@ -52,7 +52,7 @@
</td>
<td colspan="3" style="color: red;">
- 评级结果:{{sum}}
+ 评级结果:{{sum.value}},{{sum.label}}
</td>
@@ -125,8 +125,8 @@
<td colspan="2">这种情况持续多长时间?</td>
<td colspan="3">
<el-radio-group class="elradiozdi" v-model="state.tableData.进食3.type">
- <el-radio value="A">A:小于等于2周</el-radio>
- <el-radio value="B">B:大于2周</el-radio>
+ <el-radio value="A">A:≤2周</el-radio>
+ <el-radio value="B">B:>2周</el-radio>
</el-radio-group>
</td>
@@ -404,13 +404,13 @@
</tr>
<tr>
- <td colspan="6" style="font-weight: 600;">
+ <td colspan="6" style="font-weight: 600; color: #000;">
注意:
<br />
1.体重变化,考虑过去6个月或近2周的,过去5个月变化显著,但近一个月无丢失无增加,或近2周经治疗后体重稳定,则体重丢失一项不予考虑。
<br />2.胃肠道症状至少持续2周,偶尔一两次不予考虑。
<br />3.应激参照:大面积烧伤、高烧、或大量出血属高应激,长期发烧、慢性腹泻属中应激,长期低烧或恶性肿瘤属低应
- <br />4.评价结果中,8项中至少5项属于C级或者B级,分别定位重度或中度具体参考:C>5项定为重度营养不良,有明显的躯体症状C小于5但B+C大于等于5项定为中度营养不良,B+C小于5项为轻度营养不良A≥5定为营养良好,或有明显的改善病例结果
+ <br />4.评价结果中,8项中至少5项属于C级或者B级,分别定位重度或中度具体参考:C>5项定为重度营养不良,有明显的躯体症状C小于5但B+C>等于5项定为中度营养不良,B+C小于5项为轻度营养不良A≥5定为营养良好,或有明显的改善病例结果
</td>
</tr>
@@ -456,6 +456,7 @@
import { storeToRefs } from 'pinia';
import { useRoute, useRouter } from 'vue-router';
import { ElMessage } from 'element-plus';
+import { getPatData } from '/@/api/Patients';
const stores = useUserInfo();
const { patientsInfo } = storeToRefs(storesPat);
const { userInfos } = storeToRefs(stores);
@@ -540,7 +541,8 @@
腹水: {
type: '',
input1: '',
- }
+ },
+ 结果:''
},
loading: false,
viewInfo: {
@@ -561,8 +563,12 @@
let a = 0
let b=0
let c=0
+ const res={
+ value:'',
+ label:'',
+ color:''
+ }
for (let key in state.tableData) {
- console.log(key + 'key==' + state.tableData[key]?.type)
if (state.tableData[key]?.type==='A') {
a++
}else if(state.tableData[key]?.type==='B') {
@@ -571,7 +577,23 @@
c++
}
}
- return `A:${a},B:${b},C:${c}`
+ if(c>5){
+ res.label='重度营养不良'
+ res.color='#F56C6C'
+ }else if(c<5&&b+c>=5){
+ res.label='中度营养不良'
+ res.color='#E6A23C'
+ }else if(b+c<5){
+ res.label='轻度营养不良'
+ res.color='#E6A23C'
+ }else if(a>=5) {
+ res.label='营养良好'
+ res.color='#303133'
+ }else{
+ res.label=''
+ }
+ res.value=`A:${a},B:${b},C:${c}`
+ return res
})
const funhui = () => {
state.dialogTableVisible = false
@@ -579,6 +601,7 @@
const onSubmit = () => {
console.log('submit!')
console.log(state.tableData)
+ state.tableData.结果=sum.value
const info: tiaochabiaoInfo = {
id: state.viewInfo.id,
surveryFormType: 1,
@@ -615,14 +638,14 @@
}
// 打开查看或者编辑明细
-const openShow = (type: string, mode: tiaochabiaoInfo) => {
+const openShow = async (type: string, mode: tiaochabiaoInfo) => {
console.log(type)
if (type === 'add') {
state.tableData.初次调查日期 = formatDate(new Date(), 'YYYY-mm-dd')
state.tableData.更新日期 = formatDate(new Date(), 'YYYY-mm-dd')
state.tableData.记录者 = userInfos.value.userName
- getPageInfo()
+ await getPageInfo()
state.dialogTableVisible = true
}
else if (type === 'update') {
@@ -638,14 +661,15 @@
}
}
-const getPageInfo = () => {
+const getPageInfo = async () => {
+ const res = await getPatData({ patCode: patientsInfo.value.code, })
state.tableData = {
表名: 'SGA',
初次调查日期: formatDate(new Date(), 'YYYY-mm-dd'),
填表日期: '',
更新日期: formatDate(new Date(), 'YYYY-mm-dd'),
记录者: userInfos.value.userName,
- 您目前体重: '',
+ 您目前体重: res.data.上一次透前体重,
体重改变1: {
type: '',
input1: '',
@@ -716,7 +740,8 @@
腹水: {
type: '',
input1: '',
- }
+ },
+ 结果:''
}
state.viewInfo={
id: 0,
--
Gitblit v1.8.0