<template>
    <div>
        <el-card class="!border-none mb-4" shadow="never">
            <el-form class="mb-[-16px]" :model="queryParams" inline>
                <el-form-item label="单位名称" prop="aunit">
                    <el-input class="w-[280px]" v-model="queryParams.aunit" clearable placeholder="请输入单位名称" />
                </el-form-item>
                <el-form-item label="项目名称" prop="project">
                    <el-input class="w-[280px]" v-model="queryParams.project_name" clearable placeholder="请输入项目名称" />
                </el-form-item>

                <el-form-item>
                    <el-button type="primary" @click="resetPage">查询</el-button>
                    <el-button @click="resetParams">重置</el-button>
                    <export-data class="ml-2.5" :fetch-fun="apiproject_invoice_receipt" :params="queryParams"
                        :page-size="pager.size" />
                </el-form-item>
            </el-form>
        </el-card>
        <el-card class="!border-none" v-loading="pager.loading" shadow="never">
            <div class="mt-4">
                <el-table :data="pager.lists">
                    <el-table-column type="selection" width="55" />
                    <el-table-column label="项目编号" prop="project_num" show-overflow-tooltip />
                    <el-table-column label="项目名称" prop="project_name" show-overflow-tooltip />
                    <el-table-column label="合同名称" prop="cost_project_contract" show-overflow-tooltip />
                    <el-table-column label="所属部门" prop="depar" show-overflow-tooltip />
                    <el-table-column label="项目负责人" prop="" show-overflow-tooltip />
                    <el-table-column label="开票金额" prop="has_invoice_amount" show-overflow-tooltip />
                    <el-table-column label="收款金额" prop="amount_Collected" show-overflow-tooltip />
                </el-table>
            </div>
            <div class="flex justify-end mt-4">
                <pagination v-model="pager" @change="getLists" />
            </div>
        </el-card>
    </div>
</template>

<script lang="ts" setup name="jianliProjectProgressReportLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
// import { apiJianliProjectProgressReportLists, apiJianliProjectProgressReportDelete, apiJianliProjectProgressReportDetail } from '@/api/jianli_project_progress_report'
import { apiproject_invoice_receipt } from '@/api/data_report'

// 是否显示编辑框


// 查询条件
const queryParams = reactive({
    project_name: '',
    aunit: '',
})

// 选中数据


// 获取字典数据
const { dictData } = useDictData('')

// 分页相关
const { pager, getLists, resetParams, resetPage } = usePaging({
    fetchFun: apiproject_invoice_receipt,
    params: queryParams
})




getLists()
</script>
