gx
chenyc
2025-02-27 4afd7755b465829a21b238fc0ccb98d08a8381e6
src/views/home/components/patient_file.vue
@@ -17,12 +17,12 @@
                        </el-form-item>
                        <el-form-item label="自购套餐:" >
                            <el-row>
                                <el-col span='12'>
                                <el-col :span='12'>
                                    <el-input v-model="state.taochan.自购几月" :disabled="state.formdispl" placeholder="购买多少个月">
                                        <template #append>月</template>
                                    </el-input>
                                </el-col>
                                <el-col span='12'>
                                <el-col :span='12'>
                                    <el-input v-model="state.taochan.多少元套餐" :disabled="state.formdispl" placeholder="套餐金额">
                                        <template #append>元</template>
                                    </el-input>
@@ -31,10 +31,10 @@
                        </el-form-item>
                        <el-form-item label="自购产品名称">
                            <el-row>
                                <el-col span='12'>
                                <el-col :span='12'>
                                    <el-input v-model="state.taochan.产品名称" :disabled="state.formdispl" placeholder="产品名称"></el-input>
                                </el-col>
                                <el-col span='12'>
                                <el-col :span='12'>
                                    <el-input v-model="state.taochan.自购多少盒" :disabled="state.formdispl" placeholder="数量">
                                        <template #append>盒</template>
                                    </el-input>
@@ -78,7 +78,7 @@
                        <tr>
                            <td colspan="2">证件号:{{ patientsInfo.patientIdentityNo }}</td>
                            <td>透析龄:<span v-if="patientsInfo.medHistoryStatByMonth">{{
            patientsInfo.medHistoryStatByMonth }}
                                patientsInfo.medHistoryStatByMonth }}
                                    (月)</span></td>
                            <td>最近体重:<span>{{ state.patientData.上一次透前体重 }} (kg)</span></td>
                            <td>BMI:<span>{{ BMI }}</span></td>
@@ -93,6 +93,15 @@
                        <tr>
                            <td colspan="5">患者诊断:{{ state.patientData.诊断 }}</td>
                        </tr>
                        <tr>
                            <td colspan="5">外院出院诊断:{{ state.patientData.出院诊断 }}
                                <span>
                                    <el-icon :size="14" color="#409EFF" @click="updateZD">
                                        <Edit />
                                    </el-icon>
                                </span>
                                </td>
                        </tr>
                    </table>
                </div>
            </el-card>
@@ -102,34 +111,36 @@
                        <CreditCard />
                    </el-icon> <span> &nbsp; 最新生化数据</span>
                </div>
                <div>
                    <el-row :gutter="10" v-if="state.listData.length">
                        <el-col :xs="8" :sm="8" :md="6" :lg="6" :xl="4" v-for="(item, key) in state.listData"
                            :key="key">
                            <div class="itemLis" v-if="item?.item_result">
                                <div class="title">
                                    {{ key }}
                                </div>
                                <div class="itemRes">
                                    <div class="itemResDtile">
                                        <div style="text-align: center;width: 100%;">
                                            {{ item?.item_name }}
                                        </div>
                                        <div>
                                            {{ item?.item_result }}<span class="tdate">{{ item?.item_result_unit
                                                }}</span>
                <el-scrollbar :height="(tableHeight-520)+'px'">
                    <div>
                        <el-row :gutter="10" v-if="state.listData.length">
                            <el-col :xs="8" :sm="8" :md="6" :lg="6" :xl="4" v-for="(item, key) in state.listData"
                                :key="key">
                                <div class="itemLis" v-if="item?.item_result">
                                    <div class="title">
                                        {{ key }}
                                    </div>
                                    <div class="itemRes">
                                        <div class="itemResDtile">
                                            <div style="text-align: center;width: 100%;">
                                                {{ item?.item_name }}
                                            </div>
                                            <div>
                                                {{ item?.item_result }}<span class="tdate">{{ item?.item_result_unit
                                                    }}</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="tdate">
                                    {{ item?.sample_date_str }}
                                    <div class="tdate">
                                        {{ item?.sample_date_str }}
                                    </div>
                                </div>
                            </div>
                        </el-col>
                    </el-row>
                </div>
                            </el-col>
                        </el-row>
                    </div>
                </el-scrollbar>
            </el-card>
        </div>
@@ -176,7 +187,8 @@
        证件号: "",
        诊断: '',
        身高: '',
        上一次透前体重: ''
        上一次透前体重: '',
        出院诊断:'',
    },
    listData: <any>{}
})
@@ -207,6 +219,30 @@
        })
    }
}
const updateZD=()=>{
    ElMessageBox.prompt('请输入你要编辑的外院出院诊断', '提示', {
        confirmButtonText: '确认',
        cancelButtonText: '取消',
        inputValue: state.patientData.出院诊断,
    })
        .then(({ value }) => {
            const params = {
                id: patientsInfo.value.id,
                outDiagnoseFromPrevHospital: value
            }
            update(params).then(re => {
                getPatData({ patCode: patientsInfo.value.code, }).then(res => {
                    state.patientData = res.data
                })
            })
        })
        .catch(() => {
            ElMessage({
                type: 'info',
                message: '取消修改',
            })
        })
}
/**打开修改身高 */
const updateSg = () => {
    ElMessageBox.prompt('请输入你要修改的身高单位cm', '提示', {