34
chenyc
2025-01-09 070ff71561be29e98bbc90e6d77f43f806f5b50b
34
8个文件已修改
104 ■■■■ 已修改文件
src/views/home/components/fangAn/editDietary.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/components/pingubiao/editDietary.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/components/pingubiao/editDietary2.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/components/pingubiao/editDietary3.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/components/pingubiao/editDietary4.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/components/pingubiao/editDietary5.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/components/pingubiao/index.vue 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/components/suifangjilu/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/components/fangAn/editDietary.vue
@@ -1049,7 +1049,7 @@
        wherecondition: `survery_form_type=1 and patient_code='${patientsInfo.value.code}'`,
        ordercondition: 'survery_time desc'
    }
    pasm.wherecondition += "and suvery_form_name='营养风险筛查表(NRS2002)'"
    pasm.wherecondition += "and suvery_form_name='NRS2002'"
    const yinyangbiaodan1 = await list(pasm)
    return yinyangbiaodan1
}
@@ -1061,7 +1061,7 @@
        wherecondition: `survery_form_type=1 and patient_code='${patientsInfo.value.code}'`,
        ordercondition: 'survery_time desc'
    }
    pasm.wherecondition += "and suvery_form_name='GNIR营养评估分'"
    pasm.wherecondition += "and suvery_form_name='GNRI'"
    const yinyangbiaodan1 = await list(pasm)
    return yinyangbiaodan1
}
src/views/home/components/pingubiao/editDietary.vue
@@ -1,6 +1,6 @@
<template>
    <div class="dietarySurvey-item">
        <el-dialog v-model="state.dialogTableVisible" title="营养风险筛查表(NRS2002)" :fullscreen="true" width="100%">
        <el-dialog v-model="state.dialogTableVisible" title="NRS2002" :fullscreen="true" width="100%">
            <div class="container" style="width: 100%; height: 100%; overflow: auto">
                <div id="pinggu1">
                    <div>
@@ -224,7 +224,7 @@
const state = reactive({
    dialogTableVisible: false,
    tableData: {
        表名: '营养风险筛查表(NRS2002)',
        表名: 'NRS2002',
        初次调查日期: '',
        填表日期: '',
        更新日期: '',
@@ -253,7 +253,7 @@
        surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
        surveryPerson: userInfos.value.code,
        surveryJsonBody: '',
        suveryFormName: '营养风险筛查表(NRS2002)',
        suveryFormName: 'NRS2002',
        surveryFormType: 1,
        updateTime: '',
    },
@@ -296,7 +296,7 @@
        surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
        surveryPerson: userInfos.value.code,
        surveryJsonBody: JSON.stringify(state.tableData),
        suveryFormName: '营养风险筛查表(NRS2002)',
        suveryFormName: 'NRS2002',
        updateTime: '',
    };
    console.log(info);
@@ -342,7 +342,7 @@
};
const getPageInfo = () => {
    state.tableData = {
        表名: '营养风险筛查表(NRS2002)',
        表名: 'NRS2002',
        初次调查日期: formatDate(new Date(), 'YYYY-mm-dd'),
        填表日期: '',
        更新日期: formatDate(new Date(), 'YYYY-mm-dd'),
@@ -370,7 +370,7 @@
        surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
        surveryPerson: userInfos.value.code,
        surveryJsonBody: '',
        suveryFormName: '营养风险筛查表(NRS2002)',
        suveryFormName: 'NRS2002',
        surveryFormType: 1,
        updateTime: '',
    };
src/views/home/components/pingubiao/editDietary2.vue
@@ -1,6 +1,6 @@
<template>
    <div class="dietarySurvey-item">
        <el-dialog v-model="state.dialogTableVisible" title="主观全面评定(SGA)评价" :fullscreen="true" width="100%">
        <el-dialog v-model="state.dialogTableVisible" title="SGA" :fullscreen="true" width="100%">
            <div class="container" style="width: 100%; height: 100%;overflow: auto;">
                <div id="pinggu2">
                    <div>
@@ -464,7 +464,7 @@
const state = reactive({
    dialogTableVisible: false,
    tableData: {
        表名: '主观全面评定(SGA)评价',
        表名: 'SGA',
        初次调查日期: "",
        填表日期: '',
        更新日期: '',
@@ -551,7 +551,7 @@
        surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
        surveryPerson: userInfos.value.code,
        surveryJsonBody: '',
        suveryFormName: '主观全面评定(SGA)评价',
        suveryFormName: 'SGA',
        surveryFormType: 1,
        updateTime: ''
    }
@@ -588,7 +588,7 @@
        surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
        surveryPerson: userInfos.value.code,
        surveryJsonBody: JSON.stringify(state.tableData),
        suveryFormName: '主观全面评定(SGA)评价',
        suveryFormName: 'SGA',
        updateTime: ''
    }
    console.log(info)
@@ -640,7 +640,7 @@
}
const getPageInfo = () => {
    state.tableData = {
        表名: '主观全面评定(SGA)评价',
        表名: 'SGA',
        初次调查日期: formatDate(new Date(), 'YYYY-mm-dd'),
        填表日期: '',
        更新日期: formatDate(new Date(), 'YYYY-mm-dd'),
@@ -726,7 +726,7 @@
        surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
        surveryPerson: userInfos.value.code,
        surveryJsonBody: '',
        suveryFormName: '主观全面评定(SGA)评价',
        suveryFormName: 'SGA',
        surveryFormType: 1,
        updateTime: ''
    }
src/views/home/components/pingubiao/editDietary3.vue
@@ -1,6 +1,6 @@
<template>
    <div class="dietarySurvey-item">
        <el-dialog v-model="state.dialogTableVisible" title="营养不良炎症评分表(MIS)" :fullscreen="true" width="100%">
        <el-dialog v-model="state.dialogTableVisible" title="MIS" :fullscreen="true" width="100%">
            <div class="container" style="width: 100%; height: 100%; overflow: auto">
                <div id="pinggu3">
                    <div>
@@ -228,7 +228,7 @@
const state = reactive({
    dialogTableVisible: false,
    tableData: {
        表名: '营养不良炎症评分表(MIS)',
        表名: 'MIS',
        初次调查日期: '',
        填表日期: '',
        更新日期: '',
@@ -313,7 +313,7 @@
        surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
        surveryPerson: userInfos.value.code,
        surveryJsonBody: JSON.stringify(state.tableData),
        suveryFormName: '营养不良炎症评分表(MIS)',
        suveryFormName: 'MIS',
        updateTime: '',
    };
    console.log(info);
@@ -359,7 +359,7 @@
};
const getPageInfo = () => {
    state.tableData = {
        表名: '营养不良炎症评分表(MIS)',
        表名: 'MIS',
        初次调查日期: formatDate(new Date(), 'YYYY-mm-dd'),
        填表日期: '',
        更新日期: formatDate(new Date(), 'YYYY-mm-dd'),
src/views/home/components/pingubiao/editDietary4.vue
@@ -1,6 +1,6 @@
<template>
    <div class="dietarySurvey-item">
        <el-dialog  v-model="state.dialogTableVisible" title="PEW(蛋白质能量消耗评估)" :fullscreen="true" width="100%">
        <el-dialog  v-model="state.dialogTableVisible" title="PEW" :fullscreen="true" width="100%">
            <div class="container" style="width: 100%; height: 100%;overflow: auto;">
                <div id="pinggu4">
                    <div>
@@ -170,7 +170,7 @@
    options:[0,1],
    dialogTableVisible:false,
    tableData: {
        表名: 'PEW(蛋白质能量消耗评估)',
        表名: 'PEW',
        初次调查日期:"",
        填表日期: '',
        更新日期: '',
@@ -201,7 +201,7 @@
        surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
        surveryPerson: userInfos.value.code,
        surveryJsonBody: '',
        suveryFormName:'PEW(蛋白质能量消耗评估)',
        suveryFormName:'PEW',
        surveryFormType:1,
        updateTime: ''
    }
@@ -232,7 +232,7 @@
    surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
    surveryPerson: userInfos.value.code,
    surveryJsonBody: JSON.stringify(state.tableData),
    suveryFormName:'PEW(蛋白质能量消耗评估)',
    suveryFormName:'PEW',
    updateTime: ''
  }
  console.log(info)
@@ -283,7 +283,7 @@
}
const getPageInfo=()=>{
    state.tableData={
        表名: 'PEW(蛋白质能量消耗评估)',
        表名: 'PEW',
        初次调查日期:formatDate(new Date(),'YYYY-mm-dd'),
        填表日期: '',
        更新日期: formatDate(new Date(),'YYYY-mm-dd'),
@@ -313,7 +313,7 @@
        surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
        surveryPerson: userInfos.value.code,
        surveryJsonBody: '',
        suveryFormName:'PEW(蛋白质能量消耗评估)',
        suveryFormName:'PEW',
        surveryFormType:1,
        updateTime: ''
    }
src/views/home/components/pingubiao/editDietary5.vue
@@ -1,6 +1,6 @@
<template>
    <div class="dietarySurvey-item">
        <el-dialog v-model="state.dialogTableVisible" title="GNIR营养评估分" :fullscreen="true" width="100%">
        <el-dialog v-model="state.dialogTableVisible" title="GNRI" :fullscreen="true" width="100%">
            <div class="container" style="width: 100%; height: 100%;overflow: auto;">
                <div id="pinggu5">
                    <div>
@@ -125,7 +125,7 @@
                                    </tr>
                                    <tr>
                                        <td colspan="6" style="color: #E6A23C;">
                                            GNIR营养评估分为4个等级:<br>
                                            GNRI为4个等级:<br>
                                            高营养风险(GNIR&lt;82<br>
                                            中营养风险(82≤GNIR<92)<br>
                                            低营养风险(92≤GNIR≤98)<br>
@@ -189,7 +189,7 @@
    options: [0, 1],
    dialogTableVisible: false,
    tableData: {
        表名: 'GNIR营养评估分',
        表名: 'GNRI',
        初次调查日期: "",
        填表日期: '',
        更新日期: '',
@@ -214,7 +214,7 @@
        surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
        surveryPerson: userInfos.value.code,
        surveryJsonBody: '',
        suveryFormName: 'GNIR营养评估分',
        suveryFormName: 'GNRI',
        surveryFormType: 1,
        updateTime: ''
    }
@@ -270,13 +270,13 @@
            data= Number(((1.498 * Number(state.tableData.血清白蛋白浓度)) + 41.7).toFixed(2))
        }
        if(data<82){
           return `GNIR营养评估分:${data} 高营养风险`
           return `GNRI:${data} 高营养风险`
        }else if(data>=82&&data<92){
           return `GNIR营养评估分:${data} 中营养风险`
           return `GNRI:${data} 中营养风险`
        }else if(data>=92&&data<98){
           return `GNIR营养评估分:${data} 低营养风险`
           return `GNRI:${data} 低营养风险`
        }else if(data>=98){
           return `GNIR营养评估分:${data} 无营养风险`
           return `GNRI:${data} 无营养风险`
        }else{
            return ''
        }
@@ -300,7 +300,7 @@
        surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
        surveryPerson: userInfos.value.code,
        surveryJsonBody: JSON.stringify(state.tableData),
        suveryFormName: 'GNIR营养评估分',
        suveryFormName: 'GNRI',
        updateTime: ''
    }
    console.log(info)
@@ -352,7 +352,7 @@
    const res = await getPatData({ patCode: patientsInfo.value.code, })
    console.log(res.data, '----')
    state.tableData = {
        表名: 'GNIR营养评估分',
        表名: 'GNRI',
        初次调查日期: formatDate(new Date(), 'YYYY-mm-dd'),
        填表日期: '',
        更新日期: formatDate(new Date(), 'YYYY-mm-dd'),
@@ -374,7 +374,7 @@
        surveryTime: formatDate(new Date(), 'YYYY-mm-dd HH:MM:SS'),
        surveryPerson: userInfos.value.code,
        surveryJsonBody: '',
        suveryFormName:'GNIR营养评估分',
        suveryFormName:'GNRI',
        surveryFormType:1,
        updateTime: ''
    }
src/views/home/components/pingubiao/index.vue
@@ -8,11 +8,11 @@
                        placeholder="不选默认查全部"
                        clearable
                    >
                        <el-option label="营养风险筛查表(NRS2002)" value="营养风险筛查表(NRS2002)" />
                        <el-option label="营养不良炎症评分表(MIS)" value="营养不良炎症评分表(MIS)" />
                        <el-option label="主观全面评定(SGA)评价" value="主观全面评定(SGA)评价" />
                        <el-option label="PEW(蛋白质能量消耗评估)" value="PEW(蛋白质能量消耗评估)" />
                        <el-option label="GNIR营养评估分" value="GNIR营养评估分" />
                        <el-option label="NRS2002" value="NRS2002" />
                        <el-option label="MIS" value="MIS" />
                        <el-option label="SGA" value="SGA" />
                        <el-option label="PEW" value="PEW" />
                        <el-option label="GNRI" value="GNRI" />
                    </el-select>
                </el-form-item>
                <el-form-item label="填报日期">
@@ -197,15 +197,15 @@
const addItem=()=>{
    
    if(state.formInline.formTableName){  
        if(state.formInline.formTableName==='营养风险筛查表(NRS2002)'){
        if(state.formInline.formTableName==='NRS2002'){
            editDietaryRef.value.openShow('add')
        }else if(state.formInline.formTableName==='主观全面评定(SGA)评价'){
        }else if(state.formInline.formTableName==='SGA'){
            editDietaryRef2.value.openShow('add')
        }else if(state.formInline.formTableName==='营养不良炎症评分表(MIS)'){
        }else if(state.formInline.formTableName==='MIS'){
            editDietaryRef3.value.openShow('add')
        }else if(state.formInline.formTableName==='PEW(蛋白质能量消耗评估)'){
        }else if(state.formInline.formTableName==='PEW'){
            editDietaryRef4.value.openShow('add')
        }else if(state.formInline.formTableName==='GNIR营养评估分'){
        }else if(state.formInline.formTableName==='GNRI'){
            editDietaryRef5.value.openShow('add')
        }
    }else{
@@ -251,15 +251,15 @@
 */
const handleEdit = (index: number, row: any) => {
  console.log(index, row,state.formInline.formTableName)
  if(row.suveryFormName==='营养风险筛查表(NRS2002)'){
  if(row.suveryFormName==='NRS2002'){
        editDietaryRef.value.openShow('update',row)
    }else if(row.suveryFormName==='主观全面评定(SGA)评价'){
    }else if(row.suveryFormName==='SGA'){
        editDietaryRef2.value.openShow('update',row)
    }else if(row.suveryFormName==='营养不良炎症评分表(MIS)'){
    }else if(row.suveryFormName==='MIS'){
        editDietaryRef3.value.openShow('update',row)
    }else if(row.suveryFormName==='PEW(蛋白质能量消耗评估)'){
    }else if(row.suveryFormName==='PEW'){
        editDietaryRef4.value.openShow('update',row)
    }else if(row.suveryFormName==='GNIR营养评估分'){
    }else if(row.suveryFormName==='GNRI'){
        editDietaryRef5.value.openShow('update',row)
    }
}
src/views/home/components/suifangjilu/index.vue
@@ -662,7 +662,7 @@
        wherecondition: `survery_form_type=1 and patient_code='${patientsInfo.value.code}'`,
        ordercondition: 'survery_time desc'
    }
    pasm.wherecondition += "and suvery_form_name='营养风险筛查表(NRS2002)'"
    pasm.wherecondition += "and suvery_form_name='NRS2002'"
    const yinyangbiaodan1 = await list(pasm)
    return yinyangbiaodan1
}
@@ -674,7 +674,7 @@
        wherecondition: `survery_form_type=1 and patient_code='${patientsInfo.value.code}'`,
        ordercondition: 'survery_time desc'
    }
    pasm.wherecondition += "and suvery_form_name='GNIR营养评估分'"
    pasm.wherecondition += "and suvery_form_name='GNRI'"
    const yinyangbiaodan1 = await list(pasm)
    return yinyangbiaodan1
}