<template>
  <div class="richTextWrap">
    <div class="hyb" v-if="titInfo.jyfx!=0">
      <h2>{{jyrq}}天津市地方政府储备（{{titInfo.lsxzbm == 2 ? '区级' : '市级'}}）竞价交易货源表</h2>
      <h3><span style="color:#ff0000;">*</span> 承储单位：{{hyTable && hyTable.length > 0 ? hyTable[0].dwmc : ""}}</h3>
      <table
        style="width:100%;"
        cellpadding="0"
        cellspacing="0"
        align="center"
        border="1"
      >
        <tbody>
          <tr>
            <th rowspan="2">标的</th>
            <th rowspan="2">仓号</th>
            <th rowspan="2">品种</th>
            <th rowspan="2">生产年份</th>
            <th rowspan="2">数量（吨）</th>
            <th colspan="4">质量指标</th>
            <th rowspan="2">完成时间</th>
            <th rowspan="2">出库能力（吨/天）</th>
          </tr>
          <tr>
            <th>水分%</th>
            <th>杂质%</th>
            <th>不完善粒%</th>
            <th>容重gL</th>
          </tr>
          <tr v-for="(item, index) in infoList.hyList">
            <td style="text-align:center;">{{item.bdh}}</td>
            <td style="text-align:center;">{{item.ccdd}}</td>
            <td style="text-align:center;">{{item.pzmc}}</td>
            <td style="text-align:center;">{{item.scnd}}</td>
            <td style="text-align:center;">{{item.sl}}</td>
  
            <td style="text-align:center;">{{item.sf}}</td>
            <td style="text-align:center;">{{item.zhaz}}</td>
            <td style="text-align:center;">{{item.bwsl}}</td>
            <td style="text-align:center;">{{item.rz}}</td>
  
  
  
            <td style="text-align:center;">{{item.wcsj}}</td>
            <td style="text-align:center;">{{item.cknl}}</td>
          </tr>
        </tbody>
      </table>
    </div>
    <br/>
    <div class="rkap">
      <div  v-for="apItem in infoList.apTable">
        <h2 style="text-align: center;">{{titInfo.jyrq}}天津市地方政府储备（{{titInfo.lsxzbm == 2 ? '区级' : '市级'}}）竞价交易入库安排</h2>
        <h3><span style="color:#ff0000;">*</span> 承储单位：{{apItem.dwmc}}</h3>
        <table
          style="width:100%;"
          cellpadding="0"
          cellspacing="0"
          align="center"
          border="1"
        >
          <tbody>
            <tr>
              <th>标的</th>
              <th>仓号</th>
              <th>品种</th>
              <th>生产年份</th>
              <th>数量（吨）</th>
              <th>完成时间</th>
              <th>入库能力（吨/天）</th>
            </tr>
            <tr v-for="(item, index) in apItem.detailList">
              <td style="text-align:center;">{{item.bdh}}</td>
              <td style="text-align:center;">{{item.ccdd}}</td>
              <td style="text-align:center;">{{item.pzmc}}</td>
              <td style="text-align:center;">{{item.scnd}}</td>
              <td style="text-align:center;">{{item.lssl}}</td>
              <td style="text-align:center;">{{item.wcsj}}</td>
              <td style="text-align:center;">{{item.rknl}}</td>
            </tr>
          </tbody>
        </table>
        <br/>
        <br/>
        <br/>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Hwggzwtable",
  data() {
    return {
      infoList: {
        hyList: [],
        apTable: [],
      },
      titInfo: {}
    };
  },
  methods: {
    getParentData(hyList, apTable, titInfo){
      this.infoList.hyList = hyList
      this.infoList.apTable = apTable
      this.titInfo = titInfo
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
