<template>
  <div class="medical-record-con" id="medical-record" style="line-height: 30px">
    <el-row>
      <el-col :span="24">
        <div class="hos-name">院外会诊申请单</div>
      </el-col>
    </el-row>
    <div class="patient-info">
      <el-row>
        <el-col :span="10">
          <span class="label"
            >患者<span class="Arial">ID/Patient ID</span>：</span
          >
          <span class="text" v-show="applyConsultationInfo.userInfo.healthCardNo">{{
            applyConsultationInfo.userInfo.healthCardNo
          }}</span>
        </el-col>
        <el-col :span="9">
          <span class="label"
            >姓名<span class="Arial">/Patient Name</span>：</span
          >
          <span class="text" v-show="applyConsultationInfo.userInfo.patientName">{{
            applyConsultationInfo.userInfo.patientName
          }}</span>
        </el-col>
        <el-col :span="5">
          <span class="label">性别<span class="Arial">/Gender</span>：</span>
          <span class="text">{{ applyConsultationInfo.userInfo.gender === "M" ? "男" : "女" }}</span>
        </el-col>
        <el-col :span="10">
          <span class="label"
            >科室<span class="Arial">/Department</span>：</span
          >
          <span class="text" v-show="applyConsultationInfo.deptName">{{
            applyConsultationInfo.deptName
          }}</span>
        </el-col>
         <el-col :span="9">
          <span class="label"
            >出生日期<span class="Arial">/Date of Birth</span>：</span
          >
          <span class="text" v-show="applyConsultationInfo.userInfo.birthday">{{
            applyConsultationInfo.userInfo.birthday
          }}</span>
        </el-col>
        <el-col :span="5">
          <span class="label">年龄<span class="Arial">/Age</span>：</span>
          <span class="text">{{ applyConsultationInfo.userInfo.age }}</span><span class="label" style="margin-left:5px">岁</span>
        </el-col>
      </el-row>
    </div>
    <section class="border-con">
      <div class="border-con-bottom">
        <div class="title" style="font-weight:bold;">患者病情摘要</div>
        <div class="flex-row flex-column">
          <div class="row-con" style="min-height: 100px">
            <span class="text">简要病史：</span>
            <span class="value" style="text-indent: 30px;">{{applyConsultationInfo.briefMedicalHistory}}</span>
          </div>
        </div>
        <div class="flex-row flex-column">
          <div class="row-con" style="min-height: 100px">
            <span class="text" >主要辅助检查：</span>
            <span class="value" style="text-indent: 30px;">{{applyConsultationInfo.ptePrint}}</span>
          </div>
        </div>
      </div>
      <div class="border-con-bottom">
        <div class="flex-row flex-column">
          <div class="row-con" style="min-height: 260px">
            <span class="text"  style="font-weight:bold;font-size:16px;">目前诊断：</span>
            <span class="value">
              <span style="display:block;text-indent: 30px;" v-for="(item,index) of applyConsultationInfo.diagnosis" :key="index">{{item.diagnosesName}}</span>
            </span>
          </div>
        </div>
      </div>
      <div class="border-con-bottom">
        <div class="flex-row flex-column">
          <div class="row-con" style="min-height: 50px">
            <span class="text" style="font-weight:bold;font-size:16px;">会诊目的：</span>
            <span class="value" style="text-indent: 30px;">{{applyConsultationInfo.purpose}}</span>
          </div>
        </div>
      </div>
      <div class="border-con-bottom">
        <div class="flex-row flex-column">
          <div class="row-con" style="min-height: 50px">
            <span class="text" style="font-weight:bold;font-size:16px;">拟邀请医院及科室：</span>
            <span class="value" style="text-indent: 30px;">{{applyConsultationInfo.intendInviteHospitalDept}}</span>
          </div>
        </div>
      </div>
      <div class="border-con-bottom">
        <div class="flex-row flex-column">
          <div class="row-con" style="min-height: 50px">
            <span class="text" style="font-weight:bold;font-size:16px;">拟邀请人员及职称要求：</span>
            <span class="value" style="text-indent: 30px;">{{applyConsultationInfo.intendInviteConsultantsJobRequire}}</span>
          </div>
        </div>
      </div>
      <div class="border-con-bottom">
        <div class="flex-row">
          <div class="row-con">
            <span class="text">患者（家属）签名：</span>
            <span class="value"></span>
          </div>
          <div class="row-con">
            <span class="text">日期：</span>
            <span class="value"></span>
          </div>
        </div>
      </div>
      <div class="border-con-bottom">
        <div class="flex-row">
          <div class="row-con">
            <span class="text">申请医生签名：</span>
            <span class="value"></span>
          </div>
          <div class="row-con">
            <span class="text">科主任签名：</span>
            <span class="value"></span>
          </div>
        </div>
        <div class="flex-row">
          <div class="row-con">
            <span class="text">日期：</span>
            <span class="value"></span>
          </div>
          <div class="row-con">
            <span class="text">日期</span>
            <span class="value"></span>
          </div>
        </div>
      </div>
      <div style="padding:5px">
        <div class="flex-row">
          <div class="row-con">
            <span class="text">医务部负责人签名：</span>
            <span class="value"></span>
          </div>
          <div class="row-con">
            <span class="text">日期：</span>
            <span class="value"></span>
          </div>
        </div>
        <div class="flex-row">
          <div class="row-con">
            <span class="text">（医务章）</span>
            <span class="value"></span>
          </div>
        </div>
      </div>
    </section>
     <div>
        <div class="flex-row" style="padding: 5px">
          <div class="row-con">
            <span class="text">医务部联系方式： </span>
            <span class="value"></span>
          </div>
          <div class="row-con">
            <span class="text">联系人：</span>
            <span class="value"></span>
          </div>
          <div class="row-con">
            <span class="text">座机：</span>
            <span class="value"></span>
          </div>
          <div class="row-con">
            <span class="text">手机号码：</span>
            <span class="value"></span>
          </div>
        </div>
      </div>
  </div>
</template>

<script>
export default {
  props: ["applyConsultationInfo"],
};
</script>

<style scoped lang="less">
.medical-record-con {
  background-color: #ffffff;
  position: relative;
  box-sizing: border-box;
  display: flex;
  width: 970px;
  padding: 30px 30px 20px 30px;
  flex-direction: column;
  margin: 0 auto;
  section {
    margin-bottom: 0px;
  }
  .label-bold {
    font-weight: bold;
    font-family: "SimSun";
    font-size: 16px;
  }
  .patient-info {
    padding: 5px 0;
    border-top: 1px solid #333;
    margin: 25px 0 0 0;
    .label {
      font-family: "SimSun";
      height: 40px;
      line-height: 40px;
      font-size: 14px;
    }
    .Arial {
      font-family: "Arial";
    }
    .text {
      font-family: "SimSun";
      height: 40px;
      line-height: 40px;
      font-size: 14px;
    }
  }
  section {
    // margin-bottom: 5px;
  }
  .hos-name {
    text-align: center;
  }
  .hos-name {
     font-weight: bold;
    font-family: "SimSun";
    font-size: 20px;
    color: #2f2f2f;
    line-height: 30px;
    margin-bottom: 10px;
  }
  .border-con {
    border: 1px solid #333;
  }
  .info-content {
    font-family: "SimSun";
    font-size: 16px;
    text-align: left;
    color: #2f2f2f;
    line-height: 40px;
  }
  .border-con-bottom {
    border-bottom: 1px solid #333;
    padding: 5px;
    .title {
      font-family: "SimSun";
      font-size: 16px;
      text-align: left;
      color: #2f2f2f;
      line-height: 30px;
    }
  }
  .flex-row {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    span {
      display: inline-block;
      font-family: "SimSun";
      font-size: 16px;
      text-align: left;
      color: #2f2f2f;
      line-height: 25px;
    }
    .value {
      display: block;
      
    }
    .underscore {
      text-align: center;
      border-bottom: 1px solid #333;
      padding: 0 10px;
    }
    .con-inline {
      display: inline;
    }
    .row-con {
      flex: 1;
    }
  }
}
</style>
