<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.billId}}</span>
            </el-descriptions-item>
            <el-descriptions-item label="医生ID" >
                <span v-if="item!=null">{{item.doctorId}}</span>
            </el-descriptions-item>
            <el-descriptions-item label="医生名称" >
                <span v-if="item!=null">{{name}}</span>
            </el-descriptions-item>
            <el-descriptions-item label="标题" >
                <span v-if="item!=null">{{item.title}}</span>
            </el-descriptions-item>
            <el-descriptions-item label="金额" >
                <span v-if="item!=null">{{item.money}}</span>
            </el-descriptions-item>
            <el-descriptions-item label="余额" >
                <span v-if="item!=null">{{item.balance}}</span>
            </el-descriptions-item>
            <el-descriptions-item label="类型" >
             <span v-if="item!=null">
                   <dict-tag :options="billTypeOptions" :value="item.billType"/>
             </span>
            </el-descriptions-item>
            <el-descriptions-item label="创建时间" >
                <span v-if="item!=null">{{item.createTime}}</span>
            </el-descriptions-item>

            <el-descriptions-item label="更新时间" >
                <span v-if="item!=null">{{item.updateTime}}</span>
            </el-descriptions-item>



        </el-descriptions>
</div>
    </div>
</template>

<script>
import { listDoctorbill, getDoctorbill, delDoctorbill, addDoctorbill, updateDoctorbill, exportDoctorbill } from "@/api/his/doctorBill";
  export default {
    name: "storedet",
    props:["data"],
    data() {
      return {
        name:null,
        billTypeOptions: [],
        item:null,
        form: {
          sreason: '',
        }
      }
    },
    created() {
     this.getDicts("sys_company_status").then(response => {
       this.billTypeOptions = response.data;
     });

    },
    methods: {
      getDetails(orderId,name) {
        this.item=null;
          getDoctorbill(orderId).then(response => {
              this.item = response.data;
              this.name=name;
          });
      },
    }
  }
</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>
