<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="图片" >
            <el-image
                    style="width: 100px"
                    :src="item.imgUrl"
                    :preview-src-list="[item.imgUrl]">
            </el-image>
          </el-descriptions-item>
          <el-descriptions-item label="请输入筋络穴位名称"><span v-if="item!=null">{{item.vesselName}}</span></el-descriptions-item>
          <el-descriptions-item label="排序"><span v-if="item!=null">{{item.sort}}</span></el-descriptions-item>
           <el-descriptions-item label="经络"><span v-if="item!=null">{{item.vessel}}</span></el-descriptions-item>
          <el-descriptions-item label="部位"><span v-if="item!=null">{{item.region}}</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  v-if="item!=null" v-html="item.descs" ></span></el-descriptions-item>
        </el-descriptions>
    </div>


    </div>
</template>

<script>
import { listVessel, getVessel, delVessel, addVessel, updateVessel, exportVessel } from "@/api/hisStore/vessel";
  export default {
    name: "getVessel",
    data() {
      return {
        item:null,
        // 状态字典
        statusOptions: [],
      }
    },
    created() {
      this.getDicts("sys_company_status").then(response => {
        this.statusOptions = response.data;
      });
    },
    methods: {
      getDetails(orderId) {
        this.item=null;
        getVessel(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>
