<template>
  <div>
    <Modal v-model="showDetailModal" v-drag :width="700" title="收样信息" class="modal-footer-none">
      <div :style="{height}" style="overflow-y: auto">
        <table class="tableClass">
          <tbody>
          <tr>
            <th colspan="6" class="tableClass_back">收样信息</th>
          </tr>
          <tr>
            <th>接收人</th>
            <td>{{obj.receiver}}</td>
            <th>接收日期</th>
            <td>{{$dateformat(obj.receiveTime,'yyyy-mm-dd')}}</td>
          </tr>
          <tr>
            <th>项目名称</th>
            <td>{{obj.projectName}}</td>
            <th>项目负责人</th>
            <td>{{obj.projectLeader}}</td>
          </tr>
          <tr>
            <th>钻孔名称</th>
            <td>{{obj.boreholeName}}</td>
            <th>箱数</th>
            <td>{{obj.casesNum}}</td>
          </tr>
          <tr>
            <th>登记人</th>
            <td>{{obj.registrant}}</td>
            <th>登记日期</th>
            <td>{{$dateformat(obj.registTime,'yyyy-mm-dd')}}</td>
          </tr>

          <tr>
            <th>库房号</th>
            <td>{{obj.storehouse}}</td>
            <th>货架号</th>
            <td>{{obj.shelfCode}}</td>
          </tr>

          <tr>
            <th>入库人</th>
            <td>{{obj.inStocker}}</td>
            <th>入库时间</th>
            <td>{{$dateformat(obj.instockTime,'yyyy-mm-dd')}}</td>
          </tr>
          <tr>
            <th>留存有效期</th>
            <td>{{$dateformat(obj.keepLimitTime,'yyyy-mm-dd')}}</td>
          </tr>
          </tbody>
        </table>
      </div>
    </Modal>
  </div>
</template>
<script>
/**
 * 政府委托信息表详情
 */
export default {
  data() {
    return {
      obj: {
        firsted: 0,
        client: '',
        boreholeLocation: '',
        boreholeName: '',
        waterDepth: '',
        tabulater: '',
        testType: ''
      },
      showDetailModal: false,
      dispose: '',
      height: '',
      showMoney: false
    }
  },
  methods: {
    _open(obj, flag) {
      this.showDetailModal = true
      this.obj = obj
      if (flag === 'showMoney') {
        this.showMoney = true
      } else {
        this.showMoney = false
      }
      this.height = '390px'
    }
  }
}
</script>
