<!--
  @description: 桌面-采购单组件
  @Modifier：wxy
  @routerPath:/procurement/procurementDesktop
  @date： 2020-09-01 13:13:00
-->
<template>
  <div>
    <p class="title p0-16">
      <i class="iconfonts iconfont icon-notice" />开标提醒
    </p>
    <calendar
      :res-date="bidOpeningCurrentMonthInfo"
      @childCertainMonth="getOpenTenderInfo"
    />
  </div>
</template>

<script>
import calendar from './procurementDesktopCalendar' // 日历组件
import { getOpenTenderInfo } from '@/api/procurement/commonDesk'
export default {
  components: {
    calendar
  },
  data() {
    return {
      bidOpeningCurrentMonthInfo: [] // 当前月份开标信息
    }
  },
  methods: {
    getOpenTenderInfo(Month) {
      getOpenTenderInfo({ currentDate: Month }).then(res => {
        this.bidOpeningCurrentMonthInfo = res.data
      }).catch(() => {
      })
    }
  }
}
</script>

<style lang='less' scoped>
@import '~@assets/style/common/public.less';
p{
   background: @hyacinthine;
   color: @white;
   text-align: center;
   .iconfonts{
     color: @white;
   }
}
</style>
