<template>
  <!-- 计量报表 》》 成品车间日填报表 -->
  <div style="height: 100%" v-if="userId !== ''">
    <iframe
      style="padding-bottom: 20px"
      frameborder="0"
      height="100%"
      width="100%;"
      :src="'/webroot/decision/view/report?viewlet=/lims/jl/product/成品车间日填报.cpt&op=write&userId=' + this.userId + '&userName=' + this.userName"
    ></iframe>
  </div>
</template>

<script>
import { formatDate, getCookie } from '@/utils/util.js';
import { cookieUserId, cookieUserName } from '@/config/config.js';

export default {
  created () {
    this.userId = getCookie(cookieUserId)
    this.userName = getCookie(cookieUserName)
    if (this.userId === '' || this.userName === '') {
      return this.$message.error('请先进行登录，才能进行日填报')
    }
  },
  data () {
    return {
      userId: '',
      userName: ''
    }
  }
}
</script>

<style>
</style>