<template>
  <div class="app-container">
    <el-form
      :model="queryParams"
      ref="queryForm"
      size="small"
      :inline="true"
      v-show="showSearch"
      label-width="110px"
    >
      <el-row>
        <el-col :span="6">
          <el-form-item label="计划年月" prop="key1">
            <el-date-picker
              v-model="queryParams.key1"
              type="month"
            >
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item>
            <el-button type="primary" icon="el-icon-search" size="mini">
              搜索
            </el-button>
            <el-button icon="el-icon-refresh" size="mini">重置</el-button>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <right-toolbar :showSearch.sync="showSearch"></right-toolbar>
    </el-row>

    <el-table :data="listData" border>
      <el-table-column label="序号" type="index" align="center">
        <template slot-scope="scope">
          <span>{{ scope.$index + 1 }}</span>
        </template>
      </el-table-column>
      <el-table-column label="时间" align="center" prop="key1" />
      <el-table-column label="合同报支总额" align="center" prop="key2" />
      <el-table-column label="无合同报支总额" align="center" prop="key3" />
      <el-table-column label="财务系统费用" align="center" prop="key4" />
      <el-table-column label="采购系统费用" align="center" prop="key5" />
      <el-table-column label="科研费用" align="center" prop="key6" />
      <el-table-column label="直接费用" align="center" prop="key7" />
      <el-table-column label="间接费用" align="center" prop="key8" />
      <el-table-column label="总费用" align="center" prop="key9" />
    </el-table>

    <pagination
      v-show="total > 0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />
  </div>
</template>

<script>
export default {
  name: "ReserveProjectApply",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 表单参数
      form: {},
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
      },
      listData: [
        {
          key1: "2025-06",
          key2: "0.00",
          key3: "0.00",
          key4: "0.00",
          key5: "0.00",
          key6: "0.00",
        },
      ],
    };
  },
  methods: {
    handleQuery() {},
    getList() {},
    btnClick() {
      this.$message.warning("功能建设中...");
    },
    handleAddClick() {
      this.visible = true;
    },
    submitForm() {
      this.$message.warning("功能建设中...");
    },
    cancel() {
      this.visible = false;
    }
  },
};
</script>
