|
@@ -0,0 +1,1181 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <el-drawer
|
|
|
|
|
+ v-model="dialogVisible"
|
|
|
|
|
+ :title="title"
|
|
|
|
|
+ resizable
|
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
|
+ :close-on-press-escape="false"
|
|
|
|
|
+ :destroy-on-close="true"
|
|
|
|
|
+ size="70%"
|
|
|
|
|
+ :before-close="handleClosed"
|
|
|
|
|
+ >
|
|
|
|
|
+
|
|
|
|
|
+ <div class="attack-risk-form">
|
|
|
|
|
+ <h1 class="form-title">风险知情书(附件)</h1>
|
|
|
|
|
+ <!-- 基本信息 -->
|
|
|
|
|
+ <el-row :gutter="40">
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12" class="row">
|
|
|
|
|
+ <text>长者姓名</text>
|
|
|
|
|
+ <search-the-elderly ref="selectElderRef" :disabled="isDetail" @update_elder="elderUp" v-model="dataForm.elderName" :tId="dataForm.tenantId"/>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12" class="row">
|
|
|
|
|
+ <text>档案号</text>
|
|
|
|
|
+ <el-input v-if="!isDetail" v-model="dataForm.contractNumber" disabled />
|
|
|
|
|
+ <el-text v-else disabled="">{{dataForm.contractNumber}}</el-text>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row :gutter="40">
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12" class="row">
|
|
|
|
|
+ <text>入院日期</text>
|
|
|
|
|
+ <el-input v-if="!isDetail" :model-value="dayjs(dataForm.checkInTime).format('YYYY-MM-DD')=='Invalid Date'?'':dayjs(dataForm.checkInTime).format('YYYY-MM-DD')" disabled />
|
|
|
|
|
+ <el-text v-else disabled="">{{dayjs(dataForm.checkInTime).format('YYYY-MM-DD')}}</el-text>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12" class="row">
|
|
|
|
|
+ <text>床位号</text>
|
|
|
|
|
+ <el-input v-if="!isDetail" v-model="dataForm.bedName" disabled />
|
|
|
|
|
+ <el-text v-else disabled="">{{dataForm.bedName}}</el-text>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+
|
|
|
|
|
+ <el-row :gutter="40">
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12" class="row">
|
|
|
|
|
+ <text>记录人</text>
|
|
|
|
|
+ <el-input :disabled="isDetail" v-model="form.assessor" />
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12" class="row">
|
|
|
|
|
+ <text>记录日期</text>
|
|
|
|
|
+ <el-date-picker :disabled="isDetail" v-model="form.assessDate" type="date" style="width: 100%;"/>
|
|
|
|
|
+
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 内容区域 -->
|
|
|
|
|
+ <div class="form-body">
|
|
|
|
|
+ <RiskDisclosureBody
|
|
|
|
|
+ v-model="riskDisclosureForm"
|
|
|
|
|
+ :is-text-mode="isDetail"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <el-button @click="handleClosed">关闭</el-button>
|
|
|
|
|
+ <el-button v-if="isDetail" type="success" @click="handleExport">打印</el-button>
|
|
|
|
|
+ <el-button style="margin-left: 22px;margin-right: 30px" v-loading="formLoading" type="primary" v-show="!isDetail" @click="submitForm">确定</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ </el-drawer>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script lang="ts" setup>
|
|
|
|
|
+import { computed, ref, watch, reactive } from 'vue'
|
|
|
|
|
+
|
|
|
|
|
+import dayjs from 'dayjs'
|
|
|
|
|
+import RiskDisclosureBody from '../components/RiskDisclosureBody.vue'
|
|
|
|
|
+
|
|
|
|
|
+import { attackRiskCreate, attackRiskGetById, attackRiskUpdate, attackRiskGetByElderId } from "@/api/social-work";
|
|
|
|
|
+const message = useMessage() // 消息弹窗
|
|
|
|
|
+const { t } = useI18n() // 国际化
|
|
|
|
|
+const title = ref('')
|
|
|
|
|
+const dialogVisible = ref(false) // 弹窗
|
|
|
|
|
+const formRef = ref() // 表单 Ref
|
|
|
|
|
+const selectElderRef = ref() // 表单 Ref
|
|
|
|
|
+const isDetail = ref(false) // 是否详情打开
|
|
|
|
|
+const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
|
|
|
|
|
+let dataForm = ref({
|
|
|
|
|
+ // 表单字段
|
|
|
|
|
+ id: undefined,
|
|
|
|
|
+ idCard: '',
|
|
|
|
|
+ contractNumber: '', //档案号
|
|
|
|
|
+ elderName: '',//长者姓名
|
|
|
|
|
+ bedName: '', //床位号
|
|
|
|
|
+ elderAge: '', //年龄
|
|
|
|
|
+ elderSex: '', //性别
|
|
|
|
|
+ checkInTime: '', //入院日期
|
|
|
|
|
+ elderId: '',
|
|
|
|
|
+ tenantId: undefined
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+const elderUp = (e) => {
|
|
|
|
|
+ dataForm.value.elderName = e.elderName
|
|
|
|
|
+ dataForm.value.elderId = e.id
|
|
|
|
|
+ dataForm.value.elderSex = e.elderSex === 1 ? '男' : '女'
|
|
|
|
|
+ dataForm.value.bedName = e.bedName || ''
|
|
|
|
|
+ dataForm.value.checkInTime = e.checkInTime
|
|
|
|
|
+ dataForm.value.contractNumber = e.contractNumber||e.fileNumber
|
|
|
|
|
+ dataForm.value.elderAge = e.elderAge
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// ========== 攻击风险因素评估量表 表单序列化方法 ==========
|
|
|
|
|
+
|
|
|
|
|
+/** 风险程度文本 */
|
|
|
|
|
+const riskLevelText = computed(() => {
|
|
|
|
|
+ const level = form.attackLevel
|
|
|
|
|
+ if (!level || level === 0) return '无风险'
|
|
|
|
|
+ if (level === 1) return 'I级'
|
|
|
|
|
+ if (level === 2) return 'II级'
|
|
|
|
|
+ if (level === 3) return 'III级'
|
|
|
|
|
+ return 'IV级'
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+/** 风险程度样式类 */
|
|
|
|
|
+const riskLevelClass = computed(() => {
|
|
|
|
|
+ const level = form.attackLevel
|
|
|
|
|
+ if (!level || level === 0) return 'risk-none'
|
|
|
|
|
+ if (level === 1) return 'risk-low'
|
|
|
|
|
+ if (level === 2) return 'risk-medium'
|
|
|
|
|
+ return 'risk-high'
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+/** 自动判断风险等级 */
|
|
|
|
|
+const autoJudgeRiskLevel = () => {
|
|
|
|
|
+ const level = form.attackLevel
|
|
|
|
|
+ if (!level || level === 0) form.riskLevel = 'none'
|
|
|
|
|
+ else if (level === 1) form.riskLevel = 'low'
|
|
|
|
|
+ else if (level === 2) form.riskLevel = 'medium'
|
|
|
|
|
+ else form.riskLevel = 'high'
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/** 处理级别选择变化 - 清空其他级别的选中项 */
|
|
|
|
|
+const handleLevelChange = (val: number) => {
|
|
|
|
|
+ // 根据选中的级别,清空其他级别的多选框
|
|
|
|
|
+ if (val === 1) {
|
|
|
|
|
+ form.attackLevel2Items = []
|
|
|
|
|
+ form.attackLevel3Items = []
|
|
|
|
|
+ form.attackLevel4Items = []
|
|
|
|
|
+ } else if (val === 2) {
|
|
|
|
|
+ form.attackLevel1Items = []
|
|
|
|
|
+ form.attackLevel3Items = []
|
|
|
|
|
+ form.attackLevel4Items = []
|
|
|
|
|
+ } else if (val === 3) {
|
|
|
|
|
+ form.attackLevel1Items = []
|
|
|
|
|
+ form.attackLevel2Items = []
|
|
|
|
|
+ form.attackLevel4Items = []
|
|
|
|
|
+ } else if (val === 4) {
|
|
|
|
|
+ form.attackLevel1Items = []
|
|
|
|
|
+ form.attackLevel2Items = []
|
|
|
|
|
+ form.attackLevel3Items = []
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+/** 将表单数据序列化为 JSON 对象 */
|
|
|
|
|
+const serializeFormData = () => {
|
|
|
|
|
+ return {
|
|
|
|
|
+ // 基本信息
|
|
|
|
|
+ assessor: form.assessor || '',
|
|
|
|
|
+ assessDate: form.assessDate ? dayjs(form.assessDate).format('YYYY-MM-DD') : '',
|
|
|
|
|
+
|
|
|
|
|
+ // 攻击风险等级(1=I级,2=II级,3=III级,4=IV级)
|
|
|
|
|
+ attackLevel: form.attackLevel || 0,
|
|
|
|
|
+
|
|
|
|
|
+ // 各级别选择的具体项
|
|
|
|
|
+ attackLevel1Items: form.attackLevel1Items || [],
|
|
|
|
|
+ attackLevel2Items: form.attackLevel2Items || [],
|
|
|
|
|
+ attackLevel3Items: form.attackLevel3Items || [],
|
|
|
|
|
+ attackLevel4Items: form.attackLevel4Items || [],
|
|
|
|
|
+
|
|
|
|
|
+ // 风险程度
|
|
|
|
|
+ riskLevel: form.riskLevel || '',
|
|
|
|
|
+
|
|
|
|
|
+ // 预防措施
|
|
|
|
|
+ preventiveMeasures: form.preventiveMeasures || [],
|
|
|
|
|
+ preventiveMeasuresOther: form.preventiveMeasuresOther || '',
|
|
|
|
|
+
|
|
|
|
|
+ // 签名
|
|
|
|
|
+ familySignature: form.familySignature || '',
|
|
|
|
|
+ familySignDate: form.familySignDate ? dayjs(form.familySignDate).format('YYYY-MM-DD') : '',
|
|
|
|
|
+
|
|
|
|
|
+ // 风险知情书内容
|
|
|
|
|
+ riskDisclosure: {
|
|
|
|
|
+ companyName: riskDisclosureForm.companyName || '',
|
|
|
|
|
+ partyBSign: riskDisclosureForm.partyBSign || '',
|
|
|
|
|
+ partyBDate: riskDisclosureForm.partyBDate || '',
|
|
|
|
|
+ partyCSign: riskDisclosureForm.partyCSign || '',
|
|
|
|
|
+ partyCDate: riskDisclosureForm.partyCDate || ''
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/** 将 JSON 对象反序列化为表单数据 */
|
|
|
|
|
+const deserializeFormData = (formData: Record<string, any>) => {
|
|
|
|
|
+ if (!formData) return
|
|
|
|
|
+
|
|
|
|
|
+ // 基本信息
|
|
|
|
|
+ form.assessor = formData.assessor || ''
|
|
|
|
|
+ form.assessDate = formData.assessDate ? dayjs(formData.assessDate).toDate() : ''
|
|
|
|
|
+
|
|
|
|
|
+ // 攻击风险等级
|
|
|
|
|
+ form.attackLevel = formData.attackLevel || 0
|
|
|
|
|
+
|
|
|
|
|
+ // 各级别选择的具体项
|
|
|
|
|
+ form.attackLevel1Items = formData.attackLevel1Items || []
|
|
|
|
|
+ form.attackLevel2Items = formData.attackLevel2Items || []
|
|
|
|
|
+ form.attackLevel3Items = formData.attackLevel3Items || []
|
|
|
|
|
+ form.attackLevel4Items = formData.attackLevel4Items || []
|
|
|
|
|
+
|
|
|
|
|
+ // 风险程度
|
|
|
|
|
+ form.riskLevel = formData.riskLevel || ''
|
|
|
|
|
+
|
|
|
|
|
+ // 预防措施
|
|
|
|
|
+ form.preventiveMeasures = formData.preventiveMeasures || []
|
|
|
|
|
+ form.preventiveMeasuresOther = formData.preventiveMeasuresOther || ''
|
|
|
|
|
+
|
|
|
|
|
+ // 签名
|
|
|
|
|
+ form.familySignature = formData.familySignature || ''
|
|
|
|
|
+ form.familySignDate = formData.familySignDate ? dayjs(formData.familySignDate).toDate() : ''
|
|
|
|
|
+
|
|
|
|
|
+ // 风险知情书内容
|
|
|
|
|
+ if (formData.riskDisclosure) {
|
|
|
|
|
+ riskDisclosureForm.companyName = formData.riskDisclosure.companyName || ''
|
|
|
|
|
+ riskDisclosureForm.partyBSign = formData.riskDisclosure.partyBSign || ''
|
|
|
|
|
+ riskDisclosureForm.partyBDate = formData.riskDisclosure.partyBDate || ''
|
|
|
|
|
+ riskDisclosureForm.partyCSign = formData.riskDisclosure.partyCSign || ''
|
|
|
|
|
+ riskDisclosureForm.partyCDate = formData.riskDisclosure.partyCDate || ''
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/** 重置攻击风险因素评估表表单数据 */
|
|
|
|
|
+const resetAttackRiskForm = () => {
|
|
|
|
|
+ form.assessor = ''
|
|
|
|
|
+ form.assessDate = ''
|
|
|
|
|
+
|
|
|
|
|
+ // 攻击风险等级
|
|
|
|
|
+ form.attackLevel = 0
|
|
|
|
|
+
|
|
|
|
|
+ // 各级别选择的具体项
|
|
|
|
|
+ form.attackLevel1Items = []
|
|
|
|
|
+ form.attackLevel2Items = []
|
|
|
|
|
+ form.attackLevel3Items = []
|
|
|
|
|
+ form.attackLevel4Items = []
|
|
|
|
|
+
|
|
|
|
|
+ // 风险程度
|
|
|
|
|
+ form.riskLevel = ''
|
|
|
|
|
+
|
|
|
|
|
+ // 预防措施
|
|
|
|
|
+ form.preventiveMeasures = []
|
|
|
|
|
+ form.preventiveMeasuresOther = ''
|
|
|
|
|
+
|
|
|
|
|
+ // 签名
|
|
|
|
|
+ form.familySignature = ''
|
|
|
|
|
+ form.familySignDate = ''
|
|
|
|
|
+
|
|
|
|
|
+ // 风险知情书
|
|
|
|
|
+ riskDisclosureForm.companyName = '颐年医养'
|
|
|
|
|
+ riskDisclosureForm.partyBSign = ''
|
|
|
|
|
+ riskDisclosureForm.partyBDate = ''
|
|
|
|
|
+ riskDisclosureForm.partyCSign = ''
|
|
|
|
|
+ riskDisclosureForm.partyCDate = ''
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/** 打开弹窗 */
|
|
|
|
|
+const open = async (tenantId, id?: any, detail: boolean = false) => {
|
|
|
|
|
+ resetForm()
|
|
|
|
|
+ dialogVisible.value = true
|
|
|
|
|
+ dataForm.value.id = id || undefined
|
|
|
|
|
+ dataForm.value.tenantId = tenantId
|
|
|
|
|
+ isDetail.value = detail
|
|
|
|
|
+ if (id) {
|
|
|
|
|
+ title.value = "编辑-攻击风险因素评估"
|
|
|
|
|
+ // 加载评估数据
|
|
|
|
|
+ await loadAttackRiskData(id)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ title.value = "新增-攻击风险因素评估"
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/** 加载评估数据 */
|
|
|
|
|
+const loadAttackRiskData = async (id: number) => {
|
|
|
|
|
+ try {
|
|
|
|
|
+ const res = await attackRiskGetById(id)
|
|
|
|
|
+ if (res) {
|
|
|
|
|
+ // 填充长者基本信息
|
|
|
|
|
+ dataForm.value.elderName = res.elderName || ''
|
|
|
|
|
+ dataForm.value.elderId = res.elderId || ''
|
|
|
|
|
+ dataForm.value.elderSex = res.elderSex || ''
|
|
|
|
|
+ dataForm.value.bedName = res.bedName || ''
|
|
|
|
|
+ dataForm.value.checkInTime = res.checkInTime || ''
|
|
|
|
|
+ dataForm.value.contractNumber = res.fileNumber || ''
|
|
|
|
|
+ dataForm.value.elderAge = res.elderAge || ''
|
|
|
|
|
+ await selectElderRef.value.upData(res.elderName, res.elderId)
|
|
|
|
|
+ // 解析 assessData
|
|
|
|
|
+ if (res.assessData) {
|
|
|
|
|
+ const formData = JSON.parse(res.assessData)
|
|
|
|
|
+ deserializeFormData(formData)
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ message.error('加载评估数据失败')
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/** 根据长者ID加载评估数据 */
|
|
|
|
|
+const loadAttackRiskByElderId = async (elderId: number) => {
|
|
|
|
|
+ try {
|
|
|
|
|
+ const res = await attackRiskGetByElderId(elderId)
|
|
|
|
|
+ if (res && res.assessData) {
|
|
|
|
|
+ const formData = JSON.parse(res.assessData)
|
|
|
|
|
+ deserializeFormData(formData)
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ // 无历史数据,不处理
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const form = reactive({
|
|
|
|
|
+ // 基本信息
|
|
|
|
|
+ assessor: '',
|
|
|
|
|
+ assessDate: '',
|
|
|
|
|
+
|
|
|
|
|
+ // 攻击风险等级(0=无,1=I级,2=II级,3=III级,4=IV级)
|
|
|
|
|
+ attackLevel: 0,
|
|
|
|
|
+
|
|
|
|
|
+ // 各级别选择的具体项
|
|
|
|
|
+ attackLevel1Items: [], // I级选择的项(1-7)
|
|
|
|
|
+ attackLevel2Items: [], // II级选择的项(1-3)
|
|
|
|
|
+ attackLevel3Items: [], // III级选择的项(1-4)
|
|
|
|
|
+ attackLevel4Items: [], // IV级选择的项(1-2)
|
|
|
|
|
+
|
|
|
|
|
+ // 风险程度
|
|
|
|
|
+ riskLevel: '',
|
|
|
|
|
+
|
|
|
|
|
+ // 预防措施
|
|
|
|
|
+ preventiveMeasures: [],
|
|
|
|
|
+ preventiveMeasuresOther: '',
|
|
|
|
|
+
|
|
|
|
|
+ // 签名
|
|
|
|
|
+ familySignature: '',
|
|
|
|
|
+ familySignDate: ''
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+// 监听攻击等级变化,自动判断风险等级
|
|
|
|
|
+watch(() => form.attackLevel, () => {
|
|
|
|
|
+ autoJudgeRiskLevel()
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+// 风险知情书表单数据
|
|
|
|
|
+const riskDisclosureForm = reactive({
|
|
|
|
|
+ elderName: '',
|
|
|
|
|
+ companyName: '颐年医养',
|
|
|
|
|
+ assessor: '',
|
|
|
|
|
+ assessDate: '',
|
|
|
|
|
+ partyBSign: '',
|
|
|
|
|
+ partyBDate: '',
|
|
|
|
|
+ partyCSign: '',
|
|
|
|
|
+ partyCDate: ''
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+// 长者信息变化时同步到风险告知书
|
|
|
|
|
+watch(
|
|
|
|
|
+ () => dataForm.value.elderName,
|
|
|
|
|
+ (name) => {
|
|
|
|
|
+ riskDisclosureForm.elderName = name
|
|
|
|
|
+ }
|
|
|
|
|
+)
|
|
|
|
|
+
|
|
|
|
|
+// 记录人变化时同步
|
|
|
|
|
+watch(
|
|
|
|
|
+ () => form.assessor,
|
|
|
|
|
+ (val) => {
|
|
|
|
|
+ riskDisclosureForm.assessor = val
|
|
|
|
|
+ }
|
|
|
|
|
+)
|
|
|
|
|
+
|
|
|
|
|
+watch(
|
|
|
|
|
+ () => form.assessDate,
|
|
|
|
|
+ (val) => {
|
|
|
|
|
+ riskDisclosureForm.assessDate = val ? dayjs(val).format('YYYY-MM-DD') : ''
|
|
|
|
|
+ }
|
|
|
|
|
+)
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
|
|
|
|
+
|
|
|
|
|
+/** 提交表单 */
|
|
|
|
|
+const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调
|
|
|
|
|
+const submitForm = async () => {
|
|
|
|
|
+ if (formLoading.value) {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ formLoading.value = true
|
|
|
|
|
+ // 提交请求
|
|
|
|
|
+ try {
|
|
|
|
|
+ const assessData = serializeFormData()
|
|
|
|
|
+ const tempParams = {
|
|
|
|
|
+ ...dataForm.value,
|
|
|
|
|
+ assessData: JSON.stringify(assessData),
|
|
|
|
|
+ attackLevel: form.attackLevel,
|
|
|
|
|
+ riskLevel: form.riskLevel,
|
|
|
|
|
+ assessor: form.assessor,
|
|
|
|
|
+ assessScore: form.attackLevel,
|
|
|
|
|
+ assessDate: form.assessDate ? dayjs(form.assessDate).format('YYYY-MM-DD') : ''
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (dataForm.value.id) {
|
|
|
|
|
+ const res = await attackRiskUpdate(tempParams)
|
|
|
|
|
+ if (res) {
|
|
|
|
|
+ message.success(t('common.updateSuccess'))
|
|
|
|
|
+ dialogVisible.value = false
|
|
|
|
|
+ // 发送操作成功的事件
|
|
|
|
|
+ emit('success')
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ const res = await attackRiskCreate(tempParams)
|
|
|
|
|
+ if (res) {
|
|
|
|
|
+ message.success(t('common.createSuccess'))
|
|
|
|
|
+ dialogVisible.value = false
|
|
|
|
|
+ // 发送操作成功的事件
|
|
|
|
|
+ emit('success')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } finally {
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ formLoading.value = false
|
|
|
|
|
+ }, 500)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+/** 重置表单 */
|
|
|
|
|
+const resetForm = () => {
|
|
|
|
|
+ dataForm.value = {
|
|
|
|
|
+ id: undefined,
|
|
|
|
|
+ idCard: '',
|
|
|
|
|
+ contractNumber: '', //档案号
|
|
|
|
|
+ elderName: '',//长者姓名
|
|
|
|
|
+ bedName: '', //床位号
|
|
|
|
|
+ elderAge: '', //年龄
|
|
|
|
|
+ elderSex: '', //性别
|
|
|
|
|
+ checkInTime: '', //入院日期
|
|
|
|
|
+ elderId: '',
|
|
|
|
|
+ tenantId: undefined
|
|
|
|
|
+ }
|
|
|
|
|
+ formRef.value?.resetFields()
|
|
|
|
|
+
|
|
|
|
|
+ // 重置攻击风险因素评估表表单
|
|
|
|
|
+ resetAttackRiskForm()
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 关闭表单
|
|
|
|
|
+const handleClosed = () => {
|
|
|
|
|
+ dialogVisible.value = false
|
|
|
|
|
+ resetForm()
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/** 导出打印 */
|
|
|
|
|
+const handleExport = () => {
|
|
|
|
|
+ // 创建打印窗口
|
|
|
|
|
+ const printWindow = window.open('', '_blank')
|
|
|
|
|
+ if (!printWindow) {
|
|
|
|
|
+ message.error('请允许弹出窗口')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 构建打印内容
|
|
|
|
|
+ const printContent = `
|
|
|
|
|
+ <!DOCTYPE html>
|
|
|
|
|
+ <html>
|
|
|
|
|
+ <head>
|
|
|
|
|
+ <meta charset="UTF-8">
|
|
|
|
|
+ <title>攻击风险因素评估量表 - ${dataForm.value.elderName || ''}</title>
|
|
|
|
|
+ <style>
|
|
|
|
|
+ @media print {
|
|
|
|
|
+ @page { size: A4 portrait; margin: 15mm; }
|
|
|
|
|
+ }
|
|
|
|
|
+ body {
|
|
|
|
|
+ font-family: 'SimSun', 'Microsoft YaHei', serif;
|
|
|
|
|
+ font-size: 10pt;
|
|
|
|
|
+ line-height: 1.4;
|
|
|
|
|
+ color: #333;
|
|
|
|
|
+ }
|
|
|
|
|
+ .header {
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ margin-bottom: 15px;
|
|
|
|
|
+ border-bottom: 2px solid #333;
|
|
|
|
|
+ padding-bottom: 10px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .header h1 {
|
|
|
|
|
+ font-size: 16pt;
|
|
|
|
|
+ margin: 0;
|
|
|
|
|
+ letter-spacing: 2px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .info-section {
|
|
|
|
|
+ margin-bottom: 15px;
|
|
|
|
|
+ padding: 10px;
|
|
|
|
|
+ border: 1px solid #999;
|
|
|
|
|
+ background: #fafafa;
|
|
|
|
|
+ }
|
|
|
|
|
+ .info-row {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
|
+ gap: 20px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .info-item {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ }
|
|
|
|
|
+ .info-item .label {
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ margin-right: 8px;
|
|
|
|
|
+ color: #555;
|
|
|
|
|
+ }
|
|
|
|
|
+ .info-item .value {
|
|
|
|
|
+ border-bottom: 1px solid #333;
|
|
|
|
|
+ min-width: 80px;
|
|
|
|
|
+ padding: 0 5px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ }
|
|
|
|
|
+ .score-summary {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ padding: 10px 15px;
|
|
|
|
|
+ background: #f0f0f0;
|
|
|
|
|
+ border: 2px solid #333;
|
|
|
|
|
+ margin-bottom: 15px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .total-score {
|
|
|
|
|
+ font-size: 14pt;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ }
|
|
|
|
|
+ .total-score .score-value {
|
|
|
|
|
+ color: #d9534f;
|
|
|
|
|
+ font-size: 18pt;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .assessment-table {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ border-collapse: collapse;
|
|
|
|
|
+ margin-bottom: 15px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .assessment-table th, .assessment-table td {
|
|
|
|
|
+ border: 1px solid #333;
|
|
|
|
|
+ padding: 8px;
|
|
|
|
|
+ text-align: left;
|
|
|
|
|
+ vertical-align: top;
|
|
|
|
|
+ }
|
|
|
|
|
+ .assessment-table th {
|
|
|
|
|
+ background: #e8e8e8;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ }
|
|
|
|
|
+ .assessment-table .content-col {
|
|
|
|
|
+ width: 65%;
|
|
|
|
|
+ }
|
|
|
|
|
+ .assessment-table .level-col {
|
|
|
|
|
+ width: 10%;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ }
|
|
|
|
|
+ .assessment-table .select-col {
|
|
|
|
|
+ width: 25%;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ }
|
|
|
|
|
+ .assessment-table .content-title {
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ margin-bottom: 5px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .assessment-table .content-item {
|
|
|
|
|
+ margin-left: 15px;
|
|
|
|
|
+ margin-bottom: 3px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .assessment-table .select {
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ vertical-align: middle;
|
|
|
|
|
+ }
|
|
|
|
|
+ .assessment-table .print-multi-select {
|
|
|
|
|
+ margin-top: 8px;
|
|
|
|
|
+ padding-top: 8px;
|
|
|
|
|
+ border-top: 1px dashed #ccc;
|
|
|
|
|
+ font-size: 9pt;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .risk-judgment-section {
|
|
|
|
|
+ margin: 15px 0;
|
|
|
|
|
+ padding: 10px;
|
|
|
|
|
+ border: 1px solid #999;
|
|
|
|
|
+ }
|
|
|
|
|
+ .risk-judgment-title {
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .risk-options {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
|
+ gap: 15px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .measures-section {
|
|
|
|
|
+ margin: 15px 0;
|
|
|
|
|
+ border: 1px solid #999;
|
|
|
|
|
+ }
|
|
|
|
|
+ .measures-title {
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ background: #e8e8e8;
|
|
|
|
|
+ padding: 8px 12px;
|
|
|
|
|
+ border-bottom: 1px solid #999;
|
|
|
|
|
+ }
|
|
|
|
|
+ .measures-content {
|
|
|
|
|
+ padding: 10px 12px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .measure-item {
|
|
|
|
|
+ margin-bottom: 8px;
|
|
|
|
|
+ font-size: 10pt;
|
|
|
|
|
+ }
|
|
|
|
|
+ .measure-other {
|
|
|
|
|
+ margin-left: 10px;
|
|
|
|
|
+ border-bottom: 1px solid #333;
|
|
|
|
|
+ min-width: 200px;
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .signature-section {
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ padding: 15px;
|
|
|
|
|
+ border: 1px solid #999;
|
|
|
|
|
+ }
|
|
|
|
|
+ .signature-row {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ }
|
|
|
|
|
+ .signature-item {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 10px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .signature-label {
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ }
|
|
|
|
|
+ .signature-value {
|
|
|
|
|
+ border-bottom: 1px solid #333;
|
|
|
|
|
+ min-width: 150px;
|
|
|
|
|
+ height: 25px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .note-section {
|
|
|
|
|
+ margin-top: 15px;
|
|
|
|
|
+ padding: 10px;
|
|
|
|
|
+ border: 1px solid #999;
|
|
|
|
|
+ background: #fafafa;
|
|
|
|
|
+ }
|
|
|
|
|
+ .note-title {
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ margin-bottom: 8px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .note-content {
|
|
|
|
|
+ font-size: 9pt;
|
|
|
|
|
+ line-height: 1.6;
|
|
|
|
|
+ }
|
|
|
|
|
+ .note-content p {
|
|
|
|
|
+ margin: 3px 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ .note-content .indent {
|
|
|
|
|
+ margin-left: 20px;
|
|
|
|
|
+ }
|
|
|
|
|
+ </style>
|
|
|
|
|
+ </head>
|
|
|
|
|
+ <body>
|
|
|
|
|
+ <div class="header">
|
|
|
|
|
+ <h1>攻击风险因素评估量表</h1>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="info-section">
|
|
|
|
|
+ <div class="info-row">
|
|
|
|
|
+ <div class="info-item">
|
|
|
|
|
+ <span class="label">长者姓名:</span>
|
|
|
|
|
+ <span class="value">${dataForm.value.elderName || ''}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="info-item">
|
|
|
|
|
+ <span class="label">档案号:</span>
|
|
|
|
|
+ <span class="value">${dataForm.value.contractNumber || ''}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="info-item">
|
|
|
|
|
+ <span class="label">床位号:</span>
|
|
|
|
|
+ <span class="value">${dataForm.value.bedName || ''}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="info-row" style="margin-top: 10px;">
|
|
|
|
|
+ <div class="info-item">
|
|
|
|
|
+ <span class="label">评估日期:</span>
|
|
|
|
|
+ <span class="value">${form.assessDate ? dayjs(form.assessDate).format('YYYY-MM-DD') : ''}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="info-item">
|
|
|
|
|
+ <span class="label">评估人:</span>
|
|
|
|
|
+ <span class="value">${form.assessor || ''}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 评估表格 -->
|
|
|
|
|
+ <table class="assessment-table">
|
|
|
|
|
+ <thead>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th class="content-col">评估内容</th>
|
|
|
|
|
+ <th class="level-col">级别</th>
|
|
|
|
|
+ <th class="select-col">评估</th>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </thead>
|
|
|
|
|
+ <tbody>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td class="content">
|
|
|
|
|
+ <div class="content-title">存在右之一者,若为男性则有两项:</div>
|
|
|
|
|
+ <div class="content-item">(1) 男性</div>
|
|
|
|
|
+ <div class="content-item">(2) 精神分裂症,伴有幻听或被害妄想</div>
|
|
|
|
|
+ <div class="content-item">(3) 躁狂</div>
|
|
|
|
|
+ <div class="content-item">(4) 酒药依赖的脱瘾期</div>
|
|
|
|
|
+ <div class="content-item">(5) 意识障碍伴行为紊乱</div>
|
|
|
|
|
+ <div class="content-item">(6) 痴呆伴行为紊乱</div>
|
|
|
|
|
+ <div class="content-item">(7) 既往人格不良者(有冲动、边缘型人格障碍)</div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td class="level">I级</td>
|
|
|
|
|
+ <td class="select">
|
|
|
|
|
+ <div>${form.attackLevel === 1 ? '☑' : '☐'} 符合</div>
|
|
|
|
|
+ <div class="print-multi-select">
|
|
|
|
|
+ ${[1,2,3,4,5,6,7].map(n => `${form.attackLevel1Items?.includes(n) ? '☑' : '☐'} ${n}`).join(' ')}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td class="content">
|
|
|
|
|
+ <div class="content-title">存在右侧情形之一者</div>
|
|
|
|
|
+ <div class="content-item">(1) 被动的言语攻击行为,表现为激惹性增高,如无对象的抱怨、发牢骚、说怪话</div>
|
|
|
|
|
+ <div class="content-item">(2) 交谈时态度不好、抵触、有敌意或不信任</div>
|
|
|
|
|
+ <div class="content-item">(3) 或精神分裂症有命令性幻听者</div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td class="level">II级</td>
|
|
|
|
|
+ <td class="select">
|
|
|
|
|
+ <div>${form.attackLevel === 2 ? '☑' : '☐'} 符合</div>
|
|
|
|
|
+ <div class="print-multi-select">
|
|
|
|
|
+ ${[1,2,3].map(n => `${form.attackLevel2Items?.includes(n) ? '☑' : '☐'} ${n}`).join(' ')}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td class="content">
|
|
|
|
|
+ <div class="content-title">存在右侧情形之一者</div>
|
|
|
|
|
+ <div class="content-item">(1) 主动的言语攻击行为,如有对象的辱骂</div>
|
|
|
|
|
+ <div class="content-item">(2) 被动的躯体攻击行为如毁物</div>
|
|
|
|
|
+ <div class="content-item">(3) 在交往时出现社交粗暴(交谈时突然离去、躲避、推挡他人善意的躯体接触)</div>
|
|
|
|
|
+ <div class="content-item">(4) 既往曾有过主动的躯体攻击行为</div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td class="level">III级</td>
|
|
|
|
|
+ <td class="select">
|
|
|
|
|
+ <div>${form.attackLevel === 3 ? '☑' : '☐'} 符合</div>
|
|
|
|
|
+ <div class="print-multi-select">
|
|
|
|
|
+ ${[1,2,3,4].map(n => `${form.attackLevel3Items?.includes(n) ? '☑' : '☐'} ${n}`).join(' ')}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <td class="content">
|
|
|
|
|
+ <div class="content-title">存在右侧情形之一者</div>
|
|
|
|
|
+ <div class="content-item">(1) 有主动的躯体攻击行为,如踢、打、咬或使用物</div>
|
|
|
|
|
+ <div class="content-item">(2) 攻击行为在一天内至少出现两次以上或攻击行为造成了他人肉体上的伤害</div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td class="level">IV级</td>
|
|
|
|
|
+ <td class="select">
|
|
|
|
|
+ <div>${form.attackLevel === 4 ? '☑' : '☐'} 符合</div>
|
|
|
|
|
+ <div class="print-multi-select">
|
|
|
|
|
+ ${[1,2].map(n => `${form.attackLevel4Items?.includes(n) ? '☑' : '☐'} ${n}`).join(' ')}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </tbody>
|
|
|
|
|
+ </table>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 风险程度判断 -->
|
|
|
|
|
+ <div class="risk-judgment-section">
|
|
|
|
|
+ <div class="risk-judgment-title">风险程度判断:</div>
|
|
|
|
|
+ <div class="risk-options">
|
|
|
|
|
+ <span class="risk-option">${form.riskLevel === 'none' ? '☑' : '☐'} 无风险:无级别</span>
|
|
|
|
|
+ <span class="risk-option">${form.riskLevel === 'low' ? '☑' : '☐'} 低风险:I级</span>
|
|
|
|
|
+ <span class="risk-option">${form.riskLevel === 'medium' ? '☑' : '☐'} 中风险:II级</span>
|
|
|
|
|
+ <span class="risk-option">${form.riskLevel === 'high' ? '☑' : '☐'} 高风险:III级、IV级</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 预防措施 -->
|
|
|
|
|
+ <div class="measures-section">
|
|
|
|
|
+ <div class="measures-title">预防措施</div>
|
|
|
|
|
+ <div class="measures-content">
|
|
|
|
|
+ <div class="measure-item">${form.preventiveMeasures?.includes('patrol') ? '☑' : '☐'} 加强巡视</div>
|
|
|
|
|
+ <div class="measure-item">${form.preventiveMeasures?.includes('handover') ? '☑' : '☐'} 严格交接班</div>
|
|
|
|
|
+ <div class="measure-item">${form.preventiveMeasures?.includes('checkItems') ? '☑' : '☐'} 检查有无危险物品</div>
|
|
|
|
|
+ <div class="measure-item">${form.preventiveMeasures?.includes('emotion') ? '☑' : '☐'} 注重长者情绪行为</div>
|
|
|
|
|
+ <div class="measure-item">
|
|
|
|
|
+ ${form.preventiveMeasures?.includes('other') ? '☑' : '☐'} 其他
|
|
|
|
|
+ ${form.preventiveMeasures?.includes('other') ? '<span class="measure-other">' + (form.preventiveMeasuresOther || '') + '</span>' : ''}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 说明 -->
|
|
|
|
|
+ <div class="note-section">
|
|
|
|
|
+ <div class="note-title">说明:</div>
|
|
|
|
|
+ <div class="note-content">
|
|
|
|
|
+ <p>1. 新入住长者应在长者入住24小时内完成首次评估;</p>
|
|
|
|
|
+ <p>2. 定期评估:</p>
|
|
|
|
|
+ <p class="indent">(1)认知照护专区:高风险1个月评估一次,中风险、低风险3个月评估一次;</p>
|
|
|
|
|
+ <p class="indent">(2)非认知照护专区:高风险1个月评估一次,中风险3个月评估一次,低风险6个月评估一次;</p>
|
|
|
|
|
+ <p>3. 当长者身体发生变化者,应及时进行动态评估。</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </body>
|
|
|
|
|
+ </html>
|
|
|
|
|
+ `
|
|
|
|
|
+
|
|
|
|
|
+ // 写入内容并打印
|
|
|
|
|
+ printWindow.document.write(printContent)
|
|
|
|
|
+ printWindow.document.close()
|
|
|
|
|
+
|
|
|
|
|
+ // 延迟打印,确保样式加载完成
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ printWindow.print()
|
|
|
|
|
+ }, 500)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+<style scoped lang="scss">
|
|
|
|
|
+
|
|
|
|
|
+.form-title {
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ font-size: 20px;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.attack-risk-form {
|
|
|
|
|
+ max-width: 1200px;
|
|
|
|
|
+ margin: 0 auto;
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ .info-row {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ gap: 40px;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ flex-direction: row;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
|
+
|
|
|
|
|
+ .info-item {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 8px;
|
|
|
|
|
+
|
|
|
|
|
+ .label {
|
|
|
|
|
+ width: 82px;
|
|
|
|
|
+ text-align: right;
|
|
|
|
|
+ margin-right: 4px;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ .form-body {
|
|
|
|
|
+ border: 1px solid #333;
|
|
|
|
|
+ padding: 15px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 调整 Element Plus 组件样式
|
|
|
|
|
+ :deep(.el-input__inner) {
|
|
|
|
|
+ height: 28px;
|
|
|
|
|
+ line-height: 28px;
|
|
|
|
|
+ border-top: none;
|
|
|
|
|
+ border-left: none;
|
|
|
|
|
+ border-right: none;
|
|
|
|
|
+ border-radius: 0;
|
|
|
|
|
+ padding: 0 4px;
|
|
|
|
|
+
|
|
|
|
|
+ &:focus {
|
|
|
|
|
+ border-color: #409eff;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ :deep(.el-checkbox__label),
|
|
|
|
|
+ :deep(.el-radio__label) {
|
|
|
|
|
+ padding-left: 4px;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+.row{
|
|
|
|
|
+ margin-bottom: 12px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: row;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ text{
|
|
|
|
|
+ text-align: right;
|
|
|
|
|
+ margin-right: 4px;
|
|
|
|
|
+ width: 82px;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// NGASR自杀风险评估量表 特有样式
|
|
|
|
|
+.total-score-section {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ padding: 15px;
|
|
|
|
|
+ background: #f5f7fa;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
|
+
|
|
|
|
|
+ .total-score {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: baseline;
|
|
|
|
|
+ gap: 4px;
|
|
|
|
|
+
|
|
|
|
|
+ .score-label {
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .score-value {
|
|
|
|
|
+ font-size: 28px;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ color: #409eff;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .score-max {
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ color: #909399;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .risk-level {
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ padding: 8px 16px;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+
|
|
|
|
|
+ &.risk-none {
|
|
|
|
|
+ color: #67c23a;
|
|
|
|
|
+ background: #f0f9eb;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &.risk-low {
|
|
|
|
|
+ color: #e6a23c;
|
|
|
|
|
+ background: #fdf6ec;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &.risk-medium {
|
|
|
|
|
+ color: #f56c6c;
|
|
|
|
|
+ background: #fef0f0;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &.risk-high {
|
|
|
|
|
+ color: #f56c6c;
|
|
|
|
|
+ background: #fef0f0;
|
|
|
|
|
+ border: 1px solid #f56c6c;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.assessment-table {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ border-collapse: collapse;
|
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
|
+
|
|
|
|
|
+ table {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ border: 1px solid #333;
|
|
|
|
|
+
|
|
|
|
|
+ th, td {
|
|
|
|
|
+ border: 1px solid #333;
|
|
|
|
|
+ padding: 12px;
|
|
|
|
|
+ text-align: left;
|
|
|
|
|
+ vertical-align: top;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ th {
|
|
|
|
|
+ background: #f5f7fa;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .content-col {
|
|
|
|
|
+ width: 65%;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .level-col {
|
|
|
|
|
+ width: 10%;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .select-col {
|
|
|
|
|
+ width: 25%;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .content {
|
|
|
|
|
+ text-align: left;
|
|
|
|
|
+
|
|
|
|
|
+ .content-title {
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ margin-bottom: 8px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .content-item {
|
|
|
|
|
+ margin-left: 15px;
|
|
|
|
|
+ margin-bottom: 4px;
|
|
|
|
|
+ font-size: 13px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .level {
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .select {
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+
|
|
|
|
|
+ :deep(.el-radio) {
|
|
|
|
|
+ margin-right: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.risk-judgment-section {
|
|
|
|
|
+ margin: 20px 0;
|
|
|
|
|
+ padding: 15px;
|
|
|
|
|
+ background: #f5f7fa;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ border: 1px solid #e4e7ed;
|
|
|
|
|
+
|
|
|
|
|
+ .risk-judgment-title {
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ margin-bottom: 12px;
|
|
|
|
|
+ color: #303133;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .risk-options {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
|
+ gap: 20px;
|
|
|
|
|
+
|
|
|
|
|
+ :deep(.el-radio) {
|
|
|
|
|
+ margin-right: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.preventive-section {
|
|
|
|
|
+ margin: 20px 0;
|
|
|
|
|
+ padding: 15px;
|
|
|
|
|
+ background: #f5f7fa;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ border: 1px solid #e4e7ed;
|
|
|
|
|
+
|
|
|
|
|
+ .preventive-title {
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ margin-bottom: 12px;
|
|
|
|
|
+ color: #303133;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .preventive-options {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
|
+ gap: 15px;
|
|
|
|
|
+
|
|
|
|
|
+ :deep(.el-checkbox) {
|
|
|
|
|
+ margin-right: 20px;
|
|
|
|
|
+ margin-bottom: 8px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .other-input {
|
|
|
|
|
+ width: 200px;
|
|
|
|
|
+ margin-left: 10px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.signature-section {
|
|
|
|
|
+ margin: 20px 0;
|
|
|
|
|
+ padding: 15px;
|
|
|
|
|
+ background: #f5f7fa;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ border: 1px solid #e4e7ed;
|
|
|
|
|
+
|
|
|
|
|
+ .signature-row {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 20px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .signature-item {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 10px;
|
|
|
|
|
+
|
|
|
|
|
+ &.date-item {
|
|
|
|
|
+ :deep(.el-date-picker) {
|
|
|
|
|
+ width: 150px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .signature-label {
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .signature-input {
|
|
|
|
|
+ width: 150px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .date-picker {
|
|
|
|
|
+ width: 150px;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.note-section {
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ padding: 15px;
|
|
|
|
|
+ background: #f5f7fa;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ border: 1px solid #e4e7ed;
|
|
|
|
|
+
|
|
|
|
|
+ .note-title {
|
|
|
|
|
+ font-weight: bold;
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ margin-bottom: 12px;
|
|
|
|
|
+ color: #303133;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .note-content {
|
|
|
|
|
+ font-size: 13px;
|
|
|
|
|
+ line-height: 1.8;
|
|
|
|
|
+ color: #606266;
|
|
|
|
|
+
|
|
|
|
|
+ p {
|
|
|
|
|
+ margin: 5px 0;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .indent {
|
|
|
|
|
+ margin-left: 20px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|