<template>
  <div class="main-page">
        <div class="detail-page-header flex-row-colCenter">
            <span class="back" @click="goBack"><i class="el-icon-back"></i>返回</span>
             <el-divider direction="vertical"></el-divider>
            <span class="title">患者详情</span>
        </div>
        <div class="main-page-body">
          <div class="mainContent">
            <el-form  class="detailForm" label-width="160px" size="mini"  :rules="detailFormRules">
              <h2>基本信息</h2>
              <el-row>
                <el-col :span="8">
                  <el-form-item label="姓名:" prop="name"><span>{{detailForm.name}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="身份证号:" prop="identityNumber"><span>{{detailForm.identityNumber}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="手环ID:" prop="braceletId"><span>{{detailForm.braceletId}}</span></el-form-item>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="8">
                  <el-form-item label="性别:" prop="sex">
                    <span v-if="detailForm.sex==1">男</span>
                    <span v-else-if="detailForm.sex==2">女</span>
                    <span v-else>未知</span>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="年龄:" prop="age"><span>{{detailForm.age}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="出生日期:" prop="dateOfBirth"><span>{{detailForm.dateOfBirth}}</span></el-form-item>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="8">
                  <el-form-item label="发病时间:" prop="onsetTime"><span>{{detailForm.onsetTime}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="发病时长:" prop="onsetTimeLength"><span>{{detailForm.onsetTimeLength}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="车牌号:" prop="licensePlateNumber"><span>{{detailForm.licensePlateNumber}}</span></el-form-item>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="8">
                  <el-form-item label="联系人:" prop="contactPerson"><span>{{detailForm.contactPerson}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="联系电话:" prop="phoneNumber"><span>{{detailForm.phoneNumber}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="地址:" prop="address"><span>{{detailForm.address}}</span></el-form-item>
                </el-col>
              </el-row>
            <!-- 创伤字段-->
              <el-row v-if="patientType==3 || patientType==4">
                <el-col :span="8">
                  <el-form-item label="详细地址:" prop="detailedAddress"><span>{{detailForm.detailedAddress}}</span></el-form-item>
                </el-col>
              </el-row>

              <h2>来院方式</h2>
              <el-row>
                <el-col :span="8">
                  <el-form-item label="呼叫方式:" prop="callMethod"><span>{{detailForm.callMethod}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="呼叫120时间:" prop="callTime"><span>{{detailForm.callTime}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="医院人员:" prop="hospitalStaff"><span>{{detailForm.hospitalStaff}}</span></el-form-item>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="8">
                  <el-form-item label="出车单位:" prop="carCompany"><span>{{detailForm.carCompany}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="到达受伤现场时间:" prop="arrivalTime"><span>{{detailForm.arrivalTime}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="从现场出发时间:" prop="departureTime"><span>{{detailForm.departureTime}}</span></el-form-item>
                </el-col>
              </el-row>

              <h2>生命体征</h2>
              <el-row>
                <el-col :span="8">
                  <el-form-item label="血压:" prop="bloodPressure"><span>{{detailForm.bloodPressure}}</span><span v-if="detailForm.bloodPressure">mmHg</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="呼吸:" prop="breathing"><span>{{detailForm.breathing}}</span><span v-if="detailForm.breathing">次/分</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="脉搏:" prop="pulse"><span>{{detailForm.pulse}}</span><span v-if="detailForm.pulse">次/分</span></el-form-item>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="8">
                  <el-form-item label="体温:" prop="bodyTemperature"><span>{{detailForm.bodyTemperature}}</span><span v-if="detailForm.bodyTemperature">℃</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="心率:" prop="heartRate"><span>{{detailForm.heartRate}}</span><span v-if="detailForm.heartRate">次/分</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="血氧饱和度:" prop="bloodOxygenSaturation"><span>{{detailForm.bloodOxygenSaturation}}</span><span v-if="detailForm.bloodOxygenSaturation">%</span></el-form-item>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="8">
                  <el-form-item label="血糖:" prop="bloodSugar"><span>{{detailForm.bloodSugar}}</span><span v-if="detailForm.bloodSugar">mmol/L</span></el-form-item>
                </el-col>
                <el-col :span="8" v-if="patientType==1 || patientType==2">
                  <el-form-item label="身高:" prop="height"><span>{{detailForm.height}}</span><span v-if="detailForm.height">cm</span></el-form-item>
                </el-col>
                <el-col :span="8" v-if="patientType==1 || patientType==2">
                  <el-form-item label="体重:" prop="weight"><span>{{detailForm.weight}}</span><span v-if="detailForm.weight">kg</span></el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==1 || patientType==2">
                <el-col :span="8">
                  <el-form-item label="BMI:" prop="bmi"><span>{{detailForm.bmi}}</span><span v-if="detailForm.bmi">kg</span></el-form-item>
                </el-col>
                <el-col :span="8" v-if="patientType==2">
                  <el-form-item label="意识:" prop="awareness"><span>{{detailForm.awareness}}</span></el-form-item>
                </el-col>
              </el-row>

              <h2 v-if="patientType==2">FAST_ED评分</h2>
              <el-row v-if="patientType==2">
                  <el-col :span="24">
                    <el-form-item label="评分内容:" prop="fastEDScoreList">
                      <el-checkbox-group v-model="detailForm.fastEDScoreList">
                        <el-checkbox :label="1">F面瘫、口角歪斜</el-checkbox>
                        <el-checkbox :label="2">A肢体无力</el-checkbox>
                        <el-checkbox :label="3">S言语不清</el-checkbox>
                        <el-checkbox :label="4">T迅速求助</el-checkbox>
                      </el-checkbox-group>
                    </el-form-item>
                  </el-col>
                </el-row>

              <h2 v-if="patientType==3">START快速检伤</h2>
              <el-row v-if="patientType==3">
                <el-col :span="8">
                  <el-form-item label="患者能否行走:" prop="canThePatientWalk">
                    <el-radio-group v-model="detailForm.canThePatientWalk">
                      <el-radio :label="1">是</el-radio>
                      <el-radio :label="2">否</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
                <el-col :span="6">
                  <el-form-item label="患者有无自主呼吸:" prop="isBreathingSpontaneously">
                    <el-radio-group v-model="detailForm.isBreathingSpontaneously">
                      <el-radio :label="1">是</el-radio>
                      <el-radio :label="2">否</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
                <el-col :span="10">
                  <el-form-item label="患者呼吸频率:" prop="breathingRate">
                    <el-radio-group v-model="detailForm.breathingRate">
                      <el-radio :label="1">＞30次/分或者＜6次/分</el-radio>
                      <el-radio :label="2">6-30次/分</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==3">
                <el-col :span="8">
                  <el-form-item label="患者颈动脉搏动:" prop="isArterialPulsation">
                    <el-radio-group v-model="detailForm.isArterialPulsation">
                      <el-radio :label="1">是</el-radio>
                      <el-radio :label="2">否</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="患者神志:" prop="consciousness">
                    <el-radio-group v-model="detailForm.consciousness">
                      <el-radio :label="1">正常</el-radio>
                      <el-radio :label="2">异常</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
              </el-row>

              <h2 v-if="patientType==3">检伤级别</h2>
              <el-row v-if="patientType==3">
                <el-col :span="24">
                  <el-form-item label="检伤级别(单选):" prop="inspectionLevel">
                    <el-radio-group v-model="detailForm.inspectionLevel">
                      <el-radio :label="1">Ⅰ级</el-radio>
                      <el-radio :label="2">Ⅱ级</el-radio>
                      <el-radio :label="3">Ⅲ级</el-radio>
                      <el-radio :label="4">Ⅳ级</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
              </el-row>

              <h2 v-if="patientType==3">预警级别</h2>
              <el-row v-if="patientType==3">
                <el-col :span="24">
                  <el-form-item label="预警级别(单选):" prop="warningLevel">
                    <el-radio-group v-model="detailForm.warningLevel">
                      <el-radio :label="1">轻度</el-radio>
                      <el-radio :label="2">中度</el-radio>
                      <el-radio :label="3">重度</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
              </el-row>

              <h2 v-if="patientType==3">体格检查</h2>
              <el-row v-if="patientType==3">
                <el-col :span="8">
                  <el-form-item label="瞳孔:" prop="pupil">
                    <span v-if="detailForm.pupil==1">正常</span>
                    <span v-else-if="detailForm.pupil==2">扩大</span>
                    <span v-else-if="detailForm.pupil==3">缩小</span>
                    <span v-else></span>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="光反射:" prop="lightReflection">
                    <span v-if="detailForm.lightReflection==1">正常</span>
                    <span v-else-if="detailForm.lightReflection==2">迟钝</span>
                    <span v-else-if="detailForm.lightReflection==3">消失</span>
                    <span v-else></span>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="意识:" prop="awareness">
                    <span v-if="detailForm.awareness==1">正常</span>
                    <span v-else-if="detailForm.awareness==2">模糊</span>
                    <span v-else-if="detailForm.awareness==3">谵妄</span>
                    <span v-else-if="detailForm.awareness==4">昏迷</span>
                    <span v-else-if="detailForm.awareness==5">消失</span>
                    <span v-else></span>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==3">
                <el-col :span="8">
                  <el-form-item label="气道:" prop="airway">
                    <span v-if="detailForm.airway==1">通畅</span>
                    <span v-else-if="detailForm.airway==2">阻塞</span>
                    <span v-else-if="detailForm.airway==3">部分阻塞</span>
                    <span v-else></span>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="循环:" prop="cycle">
                    <span v-if="detailForm.cycle==1">正常</span>
                    <span v-else-if="detailForm.cycle==2">脉搏有力</span>
                    <span v-else-if="detailForm.cycle==3">脉搏快</span>
                    <span v-else-if="detailForm.cycle==4">脉搏慢</span>
                    <span v-else-if="detailForm.cycle==5">脉搏消失</span>
                    <span v-else></span>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="心率:" prop="heartRateState">
                    <span v-if="detailForm.heartRateState==1">齐</span>
                    <span v-else-if="detailForm.heartRateState==2">不齐</span>
                    <span v-else-if="detailForm.heartRateState==3">消失</span>
                    <span v-else></span>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==3">
                <el-col :span="8">
                  <el-form-item label="胸部:" prop="chest">
                    <span v-if="detailForm.chest==1">正常</span>
                    <span v-else-if="detailForm.chest==2">反常呼吸</span>
                    <span v-else-if="detailForm.chest==3">压痛</span>
                    <span v-else-if="detailForm.chest==4">隆起</span>
                    <span v-else-if="detailForm.chest==5">塌陷</span>
                    <span v-else></span>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="腹部:" prop="abdomen">
                    <span v-if="detailForm.abdomen==1">正常</span>
                    <span v-else-if="detailForm.abdomen==2">膨隆</span>
                    <span v-else-if="detailForm.abdomen==3">舟状</span>
                    <span v-else-if="detailForm.abdomen==4">板状腹</span>
                    <span v-else-if="detailForm.abdomen==5">压痛</span>
                    <span v-else-if="detailForm.abdomen==6">反跳痛</span>
                    <span v-else-if="detailForm.abdomen==7">肝大</span>
                    <span v-else-if="detailForm.abdomen==8">脾大</span>
                    <span v-else-if="detailForm.abdomen==9">腹部包块</span>
                    <span v-else></span>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="肠鸣:" prop="bowel">
                    <span v-if="detailForm.bowel==1">正常</span>
                    <span v-else-if="detailForm.bowel==2">亢进</span>
                    <span v-else-if="detailForm.bowel==3">减弱</span>
                    <span v-else-if="detailForm.bowel==4">消失</span>
                    <span v-else></span>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==3">
                <el-col :span="8">
                  <el-form-item label="肌力:" prop="muscleStrength">
                    <span v-if="detailForm.muscleStrength==1">正常</span>
                    <span v-else-if="detailForm.muscleStrength==2">减弱</span>
                    <span v-else-if="detailForm.muscleStrength==3">增强</span>
                    <span v-else-if="detailForm.muscleStrength==4">消失</span>
                    <span v-else></span>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="骨折:" prop="fracture">
                    <span v-if="detailForm.muscleStrength==1">无</span>
                    <span v-else-if="detailForm.muscleStrength==2">有</span>
                    <span v-else-if="detailForm.muscleStrength==3">有，开放</span>
                    <span v-else></span>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="其他体格检查:" prop="otherPhysicalExamination">
                    <span>{{detailForm.otherPhysicalExamination}}</span>
                  </el-form-item>
                </el-col>
              </el-row>

              <h2 v-if="patientType==4">烧伤</h2>
              <el-row v-if="patientType==4">
                <el-col :span="24">
                  <el-form-item label="烧伤验证程度划分:" prop="degreeOfBurn">
                    <el-radio-group v-model="detailForm.degreeOfBurn">
                      <el-radio :label="1">轻度烧伤</el-radio>
                      <el-radio :label="2">中度烧伤</el-radio>
                      <el-radio :label="3">重度烧伤</el-radio>
                      <el-radio :label="4">特重烧伤</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==4">
                <el-col :span="24">
                  <el-form-item label="烧伤深度评估:" prop="burnDepth">
                    <el-radio-group v-model="detailForm.burnDepth">
                      <el-radio :label="1">Ⅰ°</el-radio>
                      <el-radio :label="2">浅Ⅱ°</el-radio>
                      <el-radio :label="3">深Ⅱ°</el-radio>
                      <el-radio :label="4">Ⅲ°</el-radio>
                      <el-radio :label="5">Ⅳ°</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==4">
                <el-col :span="24">
                  <el-form-item label="烧伤面积:" prop="burnArea">
                   <span>{{detailForm.burnArea}}</span>
                    <span v-if="detailForm.burnArea">cm²</span>
                  </el-form-item>
                </el-col>
              </el-row>


              <h2 v-if="patientType==1">病情评估</h2>
              <el-row v-if="patientType==1">
                <el-col :span="24">
                  <el-form-item label="病情评估(单选):" prop="conditionAssessmentOne" label-width="130px">
                    <el-radio-group v-model="detailForm.conditionAssessmentOne">
                      <el-radio :label="1">持续性胸闷/胸痛</el-radio>
                      <el-radio :label="2">间歇性胸闷/胸痛</el-radio>
                      <el-radio :label="3">症状缓解</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==1">
                <el-col :span="24">
                  <el-form-item label="病情评估(多选):" prop="conditionAssessmentTwoList" label-width="130px">
                    <el-checkbox-group v-model="detailForm.conditionAssessmentTwoList">
                      <el-checkbox :label="1">呼吸困难</el-checkbox>
                      <el-checkbox :label="2">腹痛</el-checkbox>
                      <el-checkbox :label="3">齿痛</el-checkbox>
                      <el-checkbox :label="4">肩背痛</el-checkbox>
                      <el-checkbox :label="5">合并出血</el-checkbox>
                      <el-checkbox :label="6">合并心衰</el-checkbox>
                      <el-checkbox :label="7">合并恶性心律失常</el-checkbox>
                      <el-checkbox :label="8">不明原因昏厥 </el-checkbox>
                      <el-checkbox :label="9">自汗/大汗淋漓</el-checkbox>
                      <el-checkbox :label="10">心慌心悸</el-checkbox>
                      <el-checkbox :label="11">烦躁不安</el-checkbox>
                      <el-checkbox :label="12">颈前部束缚感</el-checkbox>
                      <el-checkbox :label="13">乏力</el-checkbox>
                      <el-checkbox :label="14">气喘</el-checkbox>
                      <el-checkbox :label="99">其他</el-checkbox>
                    </el-checkbox-group>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==1">
                <el-col :span="8">
                  <el-form-item label="院前诊断:" prop="preHospitalDiagnosis"><span>{{detailForm.preHospitalDiagnosis}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="院前会诊时间:" prop="preHospitalConsultationTime"><span>{{detailForm.preHospitalConsultationTime}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="院前首份心电图时间:" prop="firstECGTimeBeforeHospital"><span>{{detailForm.firstECGTimeBeforeHospital}}</span></el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==1">
                <el-col :span="8">
                  <el-form-item label="院前会诊结果:" prop="preHospitalConsultationResults"><span>{{detailForm.preHospitalConsultationResults}}</span></el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="院前会诊医生:" prop="preHospitalConsultationDoctor"><span>{{detailForm.preHospitalConsultationDoctor}}</span></el-form-item>
                </el-col>
              </el-row>

              <h2 v-if="patientType==1">院前给药</h2>
              <el-row v-if="patientType==1">
                <el-col :span="3" class="padding-left-20">  <span>双联抗血小板治疗给药</span></el-col>
                <el-col :span="6">
                  <el-form-item  label="是否给药:" prop="whetherToGiveDualAntiplateletTherapy">
                    <el-radio-group v-model="detailForm.whetherToGiveDualAntiplateletTherapy">
                      <el-radio :label="1">是</el-radio>
                      <el-radio :label="2">否</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
                <el-col :span="6">
                  <el-form-item  label="给药时间:" v-if="detailForm.whetherToGiveDualAntiplateletTherapy==1">
                    <span>{{detailForm.dosingTimeOfDualAntiplateletTherapy}}</span>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==1">
                <el-col :span="3" class="padding-left-20">  <span>首次抗凝给药</span></el-col>
                <el-col :span="6">
                  <el-form-item label="是否给药:" prop="whetherTheFirstAnticoagulantAdministration">
                    <el-radio-group v-model="detailForm.whetherTheFirstAnticoagulantAdministration">
                      <el-radio :label="1">是</el-radio>
                      <el-radio :label="2">否</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
                <el-col :span="6">
                  <el-form-item  label="给药时间:" v-if="detailForm.whetherTheFirstAnticoagulantAdministration==1">
                    <span>{{detailForm.timeOfFirstAnticoagulantAdministration}}</span>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==1">
                <el-col :span="3"  class="padding-left-20">  <span>他汀给药</span></el-col>
                <el-col :span="6">
                  <el-form-item label="是否给药:" prop="whetherToAdministerAStatin">
                    <el-radio-group v-model="detailForm.whetherToAdministerAStatin">
                      <el-radio :label="1">是</el-radio>
                      <el-radio :label="2">否</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
                <el-col :span="6">
                  <el-form-item  label="给药时间:" v-if="detailForm.whetherToAdministerAStatin==1">
                    <span>{{detailForm.statinAdministrationTime}}</span>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==1">
                <el-col :span="3"  class="padding-left-20">  <span>β受体阻滞剂</span></el-col>
                <el-col :span="6">
                  <el-form-item label="是否给药:" prop="whetherBetaBlocker">
                    <el-radio-group v-model="detailForm.whetherBetaBlocker">
                      <el-radio :label="1">是</el-radio>
                      <el-radio :label="2">否</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
                <el-col :span="6">
                  <el-form-item  label="给药时间:" v-if="detailForm.whetherBetaBlocker==1">
                    <span>{{detailForm.betaBlockerAdministrationTime}}</span>
                  </el-form-item>
                </el-col>
              </el-row>

              <h2>病史信息</h2>
              <el-row>
                <el-col :span="24">
                  <el-form-item label="主诉:" prop="chiefComplaint"><span>{{detailForm.chiefComplaint}}</span></el-form-item>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="24">
                  <el-form-item label="现病史:" prop="historyOfPresentIllness"><span>{{detailForm.historyOfPresentIllness}}</span></el-form-item>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="24">
                  <el-form-item label="既往史(多选):" prop="pastHistoryList" label-width="130px">
                    <el-checkbox-group v-model="detailForm.pastHistoryList">
                      <el-checkbox :label="1">高血压</el-checkbox>
                      <el-checkbox :label="2">糖尿病</el-checkbox>
                      <el-checkbox :label="3">高血脂</el-checkbox>
                      <el-checkbox :label="4">脑卒中病史</el-checkbox>
                      <el-checkbox :label="5">心脏病史</el-checkbox>
                      <el-checkbox :label="6">血液系统病史</el-checkbox>
                      <el-checkbox :label="7">肿瘤疾病史</el-checkbox>
                      <el-checkbox :label="8">传染病史 </el-checkbox>
                      <el-checkbox :label="9">肝炎</el-checkbox>
                      <el-checkbox :label="10">疫区生存</el-checkbox>
                      <el-checkbox :label="11">手术史</el-checkbox>
                      <el-checkbox :label="99">其他既往史</el-checkbox>
                    </el-checkbox-group>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="24">
                  <el-form-item label="过敏史(多选):" prop="allergiesList" label-width="130px">
                    <el-checkbox-group v-model="detailForm.allergiesList">
                      <el-checkbox :label="1">青霉素</el-checkbox>
                      <el-checkbox :label="2">头孢</el-checkbox>
                    </el-checkbox-group>
                    <el-checkbox v-model="detailForm.otherAllergies" :label="1">其他</el-checkbox>
                    <span v-if="detailForm.otherAllergies==1" class="padding-left-20">更多过敏史：磺胺药、阿司匹林、保泰松</span>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="24">
                  <el-form-item label="用药情况:" prop="medication"><span>{{detailForm.medication}}</span></el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==1">
                <el-col :span="24">
                  <el-form-item label="绕行急诊:" prop="whetherToBypassTheEmergencyDepartment">
                    <el-radio-group v-model="detailForm.whetherToBypassTheEmergencyDepartment">
                      <el-radio :label="1">是</el-radio>
                      <el-radio :label="2">否</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row v-if="patientType==1">
                <el-col :span="24">
                  <el-form-item label="绕行CCU:" prop="whetherToBypassCCU">
                    <el-radio-group v-model="detailForm.whetherToBypassCCU">
                      <el-radio :label="1">是</el-radio>
                      <el-radio :label="2">否</el-radio>
                    </el-radio-group>
                  </el-form-item>
                </el-col>
              </el-row>

              <h2 v-if="patientType==3 || patientType==4">急救措施</h2>
              <el-row v-if="patientType==3 || patientType==4">
                <el-col :span="24">
                  <el-form-item label="急救措施(多选):" prop="firstAidMeasuresList">
                    <el-checkbox-group v-model="detailForm.firstAidMeasuresList">
                      <el-checkbox :label="1">止血包扎</el-checkbox>
                      <el-checkbox :label="2">使用升压药物</el-checkbox>
                      <el-checkbox :label="3">心肺复苏</el-checkbox>
                      <el-checkbox :label="4">输液</el-checkbox>
                      <el-checkbox :label="5">固定（包括颈托、铲担、充气夹板）</el-checkbox>
                      <el-checkbox :label="6">气道开放（气管插管、鼻/口咽通气）</el-checkbox>
                      <el-checkbox :label="7">使用气血药物（氨甲环酸）</el-checkbox>
                    </el-checkbox-group>
                  </el-form-item>
                </el-col>
              </el-row>
            </el-form>


          </div>
        </div>
  </div>
</template>

<script>
    import { queryDetail } from '@/api/hospital'
    export default {
        name: "detail",
      data() {
        return {
          resData:'',
          patientType:'',//1.胸痛;2.卒中;3.创伤,4烧伤
          associationId:'',
          detailForm:{
            fastEDScoreList:[],
            conditionAssessmentTwoList:[],
            pastHistoryList:[],
            allergiesList:[],
            otherAllergies:'',
            firstAidMeasuresList:[]
          },
          detailFormRules:{
            name: [
              {required: true, message: '', trigger: 'blur'},
            ],
            sex: [
              {required: true, message: '', trigger: 'blur'},
            ],
            age: [
              {required: true, message: '', trigger: 'blur'},
            ],
            dateOfBirth: [
              {required: true, message: '', trigger: 'blur'},
            ]
          }
        }
      },
      mounted(){
        this.patientType =this.$route.query.patientType
        this.associationId =this.$route.query.associationId
        this.getDetailData()
      },
      methods: {
        getDetailData() {
          const params = {
            patientType: this.patientType,
            associationId: this.associationId
          }
          queryDetail(params).then((res) => {
            if (res.msg == 201) {
              this.resData = res.respData
              this.resData.fastEDScoreList ? '': this.resData.fastEDScoreList = []
              this.resData.conditionAssessmentTwoList ? '': this.resData.conditionAssessmentTwoList = []
              this.resData.pastHistoryList ? '': this.resData.pastHistoryList = []
              this.resData.allergiesList ? '': this.resData.allergiesList = []
              this.resData.firstAidMeasuresList ? '': this.resData.firstAidMeasuresList = []
              this.detailForm =Object.assign({},this.resData)
            } else {
              this.$message.error(res.content)
            }
          })
        },
        dealNull(data){
          if(data && data!=='null'){}else {data=[]}
        },
        goBack(){
          this.$router.go(-1)
        }
      }
    }
</script>

<style lang="scss" scoped>
  .detail-page-header{
    height: 45px;
    background: #FFFFFF;
    margin-bottom: 10px;
    padding-left: 20px;
    font-size: 14px;
    color: #333333;
    .back{
      cursor: pointer;
    }
    .title{
      font-weight: 600;
    }

  }
  .flex-row-colCenter{
    display: flex;
    align-items: center;
  }
  .padding-left-20{
    padding-left: 20px;
    text-align: right;
    width: 160px;
  }
  .main-page-body{
    .mainContent {
      padding: 20px;
      .detailForm{
        h2{
          min-width: 80px;
          height: 16px;
          font-size: 14px;
          font-weight: 600;
          color: #333333;
          line-height: 16px;
          padding-bottom: 15px;
        }
      }
    }
  }

</style>
