<template>
  <div style="background-color: #f0f2f5; padding-bottom: 20px; min-height: 100%; " >
    <div style="padding: 20px; background-color: #fff;">
      疾病详情
    </div>
<div class="contentx" v-if="item!=null">
      <div class="desct">
        疾病信息
      </div>
        <el-descriptions title="" :column="3" border>
            <el-descriptions-item label="疾病id"  >
                <span v-if="item!=null">{{item.diseaseId}}</span>
            </el-descriptions-item>
            <el-descriptions-item label="疾病名称" >
                <span v-if="item!=null">{{item.diseaseName}}</span>
            </el-descriptions-item>
            <el-descriptions-item label="疾病编号" >
                <span v-if="item!=null">{{item.diseaseCode}}</span>
            </el-descriptions-item>
            <el-descriptions-item label="所属科室" >
                <span v-if="item!=null">{{item.deptName}}</span>
            </el-descriptions-item>


            <el-descriptions-item label="状态" >
             <span v-if="item!=null">
                   <dict-tag :options="statusOptions" :value="item.status"/>
             </span>
            </el-descriptions-item>
            <el-descriptions-item label="创建时间" >
                <span v-if="item!=null">{{item.createTime}}</span>
            </el-descriptions-item>
            <el-descriptions-item label="简介" span="6">
                <span v-if="item!=null">{{item.introduction}}</span>
            </el-descriptions-item>

            <el-descriptions-item label="诊断" span="6">
                <span v-if="item!=null">{{item.diagnose}}</span>
            </el-descriptions-item>
            <el-descriptions-item label="症状" span="6">
                      <span v-html="item.symptom"></span>

            </el-descriptions-item>
            <el-descriptions-item label="检验" span="6">
                      <span v-html="item.inspect"></span>
            </el-descriptions-item>
        </el-descriptions>
    </div>
    </div>
</template>

<script>
  import {getDisease} from '../../../api/his/disease.js';
  export default {
    name: "desdetails",
    props:["data"],
    data() {
      return {
        statusOptions: [],
        item:null,
        form: {
          sreason: '',
        }
      }
    },
    created() {
      this.getDicts("sys_company_status").then(response => {
        this.statusOptions = response.data;
      });

    },
    methods: {
      getDetails(orderId) {
          this.item=null;
          getDisease(orderId).then(response => {
              this.item = response.data;
          });
      },
    }
  }
</script>
<style>

 .contentx{
      height: 100%;
      background-color: #fff;
      padding: 0px 20px 20px;
      margin: 20px;
  }
  .el-descriptions-item__label.is-bordered-label{
    font-weight: normal;
  }
  .el-descriptions-item__content {
    max-width: 150px;
    min-width: 100px;
  }
  .desct{
      padding-top: 20px;
      padding-bottom: 20px;
      color: #524b4a;
      font-weight: bold;
    }
</style>
