<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>
          </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
      console.log('obj', obj)
      if (flag === 'showMoney') {
        this.showMoney = true
      } else {
        this.showMoney = false
      }
      this.height = '220px'
    }
  }
}
</script>
