<template>
  <div>
    <el-form :model="data.form" label-width="80px">
      <el-row>
        <el-col :span="4">
          <el-form-item label="企业名称:" prop="KEYWORDS">
            <span style="color: white">{{ CORP_NAME }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="4">
          <el-form-item label="年份:" prop="YEAR">
            <el-date-picker
              v-model="data.form.year"
              value-format="YYYY"
              format="YYYY"
              type="year"
              clearable
              placeholder="请选择年份"
            />
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <catalogue source="corp" :year="data.form.year" />
  </div>
</template>
<script setup>
import { reactive } from "vue";
import { useUserStore } from "@/pinia/user.js";
import Catalogue from "@/views/archives/corp/catalogue.vue";

const userStore = useUserStore();
const CORP_NAME = userStore.getUserInfo.CORP_NAME;

const data = reactive({
  form: {
    year: String(new Date().getFullYear()),
  },
});
</script>

<style scoped lang="scss"></style>
