<style>

</style>
<template>
  <div class="commonPriceHotelInfo">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="singeRowTable" v-loading="loading">
      <tr>
        <th width="100">{{$t('sm.Date')}}</th>
        <th width="135">{{$t('salesModule.UseRoomTime')}}</th>
        <th width="120">{{$t('fnc.tuanqi')}}</th>
        <th width="80">{{$t('objFill.zongkc')}}</th>
        <th width="80">{{$t('objFill.shiyongkc')}}</th>
        <th width="80">{{$t('admin.admin_status')}}</th>
      </tr>
      <template v-if="HotelPriceList.length>0">
        <tr v-for="(item,index) in  HotelPriceList">
          <td>
            {{item.UseTimeStr}}
          </td>
          <td>
            {{item.CreateTimeStr}}
          </td>
          <td>
            {{item.TCNUM}}
          </td>
          <td>
            {{item.Inventory}}
          </td>
          <td>
            {{item.LastUseNum}}
          </td>
          <td>
            <template v-if="item.Status==1"><span style="color:green;">OK</span></template>
            <template v-else><span style="color:red;">{{$t('visa.v_zanding')}}</span></template>
          </td>
        </tr>
      </template>
      <template v-else>
        <tr>
          <td colspan="6">
            <span style="color:red;">{{$t('objFill.zhanwukcsyjl')}}</span>
          </td>
        </tr>
      </template>
    </table>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        loading: false,
        HotelPriceList: [],
        queryMsg: {
          HotelId: 0,
          UseTime: "",
        }
      };
    },
    methods: {
      //获取日志
      getHotelPriceList(HotelId, timeStr) {
        this.HotelPriceList = [];
        this.loading = true;
        if (HotelId) {
          this.queryMsg.HotelId = HotelId;
        }
        if (timeStr) {
          this.queryMsg.UseTime = timeStr;
        }

        this.apipost('travel_get_GetHotelUsePriceListService', this.queryMsg, res => {
          this.loading = false;
          if (res.data.resultCode == 1) {
            this.HotelPriceList = res.data.data;
          }
        }, err => {})
      },
    },
    mounted() {}
  };

</script>
