2024-03-11 15:48:12 +08:00

90 lines
4.4 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="单据编号" prop="num">
<el-input class="w-[280px]" v-model="queryParams.num" clearable placeholder="请输入单据编号" />
</el-form-item>
<el-form-item label="项目名称" prop="project">
<el-input class="w-[280px]" v-model="queryParams.project" clearable placeholder="请输入项目名称" />
</el-form-item>
<el-form-item label="项目编号" prop="project_num">
<el-input class="w-[280px]" v-model="queryParams.project_num" 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="apiJianliProjectProgressReportLists" :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="num" show-overflow-tooltip />
<el-table-column label="项目名称" prop="projectInfo.project_name" show-overflow-tooltip />
<el-table-column label="关联合同" prop="projectInfo.project_num" show-overflow-tooltip />
<el-table-column label="咨询类型" prop="bm_master" show-overflow-tooltip />
<el-table-column label="行业" prop="wt_unit" show-overflow-tooltip />
<el-table-column label="项目负责人" prop="xm_master" show-overflow-tooltip />
<el-table-column label="委托单位" prop="start_date" show-overflow-tooltip />
<el-table-column label="所在省份" prop="end_date" show-overflow-tooltip />
<el-table-column label="所在市区" prop="duration" show-overflow-tooltip />
<el-table-column label="进度状态" prop="working_hours" show-overflow-tooltip />
<el-table-column label="计划进度" prop="working_hours" show-overflow-tooltip>
<el-table-column label="计划开始日期" prop="done_progress" show-overflow-tooltip />
<el-table-column label="计划结束日期" prop="bjd_progress" show-overflow-tooltip />
<el-table-column label="计划工期(天)" prop="djr" show-overflow-tooltip />
</el-table-column>
<el-table-column label="实际进度" prop="working_hours" show-overflow-tooltip>
<el-table-column label="实际开始日期" prop="done_progress" show-overflow-tooltip />
<el-table-column label="实际结束日期" prop="bjd_progress" show-overflow-tooltip />
<el-table-column label="实际工期(天)" prop="djr" show-overflow-tooltip />
<el-table-column label="已完成进度(%" prop="djr" show-overflow-tooltip />
</el-table-column>
</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'
// 是否显示编辑框
// 查询条件
const queryParams = reactive({
num: '',
project: '',
project_num: '',
datas: '',
})
// 选中数据
// 获取字典数据
const { dictData } = useDictData('')
// 分页相关
const { pager, getLists, resetParams, resetPage } = usePaging({
fetchFun: apiJianliProjectProgressReportLists,
params: queryParams
})
getLists()
</script>