Commit e8e5e8d8 authored by mengzixuan's avatar mengzixuan

feat: 工程项目投资计划、年度工程资金计划分页查询接口对接

parent 727c417e
......@@ -2,7 +2,7 @@ import { ProjectParams, ProjectListGetResultModel, ProjectModel } from './model/
import { defHttp } from '@/utils/http/axios';
enum Api {
GetList = '/statement/list/page',
GetList = '/pro/fundPlanYear/page',
}
export const getAnnualPlanList = (params?: ProjectParams) =>
defHttp.post<ProjectModel>({ url: Api.GetList, data: params });
defHttp.post<ProjectModel>({ url: Api.GetList, data: params });
......@@ -2,7 +2,7 @@ import { ProjectParams, ProjectListGetResultModel, ProjectModel } from './model/
import { defHttp } from '@/utils/http/axios';
enum Api {
GetList = '/statement/list/page',
GetList = '/pro/investmentPlan/getPlanList',
}
export const getEngineeringList = (params?: ProjectParams) =>
defHttp.post<ProjectModel>({ url: Api.GetList, data: params });
......@@ -23,57 +23,57 @@ export const columns: (
},
{
title: '年度',
dataIndex: 'projectName',
dataIndex: 'year',
width: 200,
},
{
title: '类型',
dataIndex: 'implementingEntity',
dataIndex: 'type',
width: 180,
},
{
title: '年计划投资',
dataIndex: 'constructionMode',
dataIndex: 'planInvestment',
width: 180,
},
{
title: '年资金计划额合计',
dataIndex: 'projectType',
dataIndex: 'totalPlan',
width: 180,
},
{
title: '年资金缺口合计',
dataIndex: 'fundingSource',
dataIndex: 'gapTotal',
width: 180,
},
{
title: '公司名称',
dataIndex: '国constructionScale',
dataIndex: 'companyName',
width: 180,
},
{
title: '最新更新人',
dataIndex: '国constructionScale',
dataIndex: 'updateBy',
width: 180,
},
{
title: '最新更新时间',
dataIndex: '国constructionScale',
dataIndex: 'updateTime',
width: 180,
},
{
title: '审核状态',
dataIndex: '国constructionScale',
dataIndex: 'reviewStatus',
width: 180,
},
{
title: '审核人',
dataIndex: '国constructionScale',
dataIndex: 'revieweUser',
width: 180,
},
{
title: '审核时间',
dataIndex: '国constructionScale',
dataIndex: 'reviewTime',
width: 180,
},
];
......
......@@ -49,7 +49,7 @@ defineOptions({ name: 'Performance' });
const [registerDrawer, { openDrawer }] = useDrawer();
const [registerTable, { reload }] = useTable({
api: getListByPage,
api: getAnnualPlanList,
title: '123',
columns,
formConfig: {
......
......@@ -22,62 +22,62 @@ export const columns: (
},
{
title: '填报周期',
dataIndex: 'projectName',
dataIndex: 'filingCycle',
width: 200,
},
{
title: '类型',
dataIndex: 'implementingEntity',
dataIndex: 'planType',
width: 180,
},
{
title: '项目数量',
dataIndex: 'constructionMode',
dataIndex: 'totalProject',
width: 180,
},
{
title: '总投资',
dataIndex: 'projectType',
dataIndex: 'totalInvestment',
width: 180,
},
{
title: '合同总额合计',
dataIndex: 'fundingSource',
dataIndex: 'totalContract',
width: 180,
},
{
title: '三年滚动投资计划合计',
dataIndex: 'constructionPurpose',
dataIndex: 'totalRollingInvestment',
width: 180,
},
{
title: '公司名称',
dataIndex: '国constructionScale',
dataIndex: 'company',
width: 180,
},
{
title: '最新更新人',
dataIndex: '国constructionScale',
dataIndex: 'updateBy',
width: 180,
},
{
title: '最新更新时间',
dataIndex: '国constructionScale',
dataIndex: 'updateTime',
width: 180,
},
{
title: '审核状态',
dataIndex: '国constructionScale',
dataIndex: 'planResult',
width: 180,
},
{
title: '审核人',
dataIndex: '国constructionScale',
dataIndex: 'auditingBy',
width: 180,
},
{
title: '审核时间',
dataIndex: '国constructionScale',
dataIndex: 'auditingTime',
width: 180,
},
];
......
......@@ -7,16 +7,14 @@
<a-button type="primary" @click="Import"> 新建计划(储备) </a-button>
</template>
<template #bodyCell="{ column, text, record, index }">
<!-- 当前列是序号列时,显示序号 -->
<span v-if="column.dataIndex === 'serialNumber'">{{ index + 1 }}</span>
<!-- 其他列正常显示 -->
<span v-else>{{ text }}</span>
<template v-if="column.key === 'action'">
<TableAction
:actions="[
:actions="[
{
icon: 'clarity:note-edit-line',
onClick: handleEdit.bind(null, record),
......@@ -39,89 +37,88 @@
</div>
</template>
<script lang="ts" setup>
import { BasicTable, useTable, TableAction } from '@/components/Table';
import yearModal from '@/components/yearModal.vue';
import { useModal } from '@/components/Modal';
import { getEngineeringList } from '@/api/project/engineeringProject';
import { getListByPage } from '@/api/project/biddingPlan';
import { useDrawer } from '@/components/Drawer';
import { columns, searchFormSchema } from './data';
import {router} from "@/router";
defineOptions({ name: 'EngineeringProject' });
const [registerDrawer, { openDrawer }] = useDrawer();
const [register, { openModal: openModal }] = useModal();
const [registerTable, { reload }] = useTable({
api: getEngineeringList,
title: '123',
columns,
formConfig: {
labelWidth: 120,
schemas: searchFormSchema,
},
useSearchForm: true,
showTableSetting: false,
bordered: true,
showIndexColumn: false,
actionColumn: {
width: 80,
title: '操作',
dataIndex: 'action',
// slots: { customRender: 'action' },
fixed: undefined,
},
});
function handleEdit(record: Recordable) {
openDrawer(true, {
record,
isUpdate: true,
});
}
function handleDelete(record: Recordable) {
console.log(record);
}
function handleSuccess() {
reload();
}
const Import = () => {
console.log('导入数据');
};
const addEngineering = () => {
// openModal(true, {
// data: 'content',
// info: 'Info',
// });
openModal(true, {
data: ['year'],
import { BasicTable, useTable, TableAction } from '@/components/Table';
import yearModal from '@/components/yearModal.vue';
import { useModal } from '@/components/Modal';
import { getEngineeringList } from '@/api/project/engineeringProject';
import { getListByPage } from '@/api/project/biddingPlan';
import { useDrawer } from '@/components/Drawer';
import { columns, searchFormSchema } from './data';
import { router } from '@/router';
defineOptions({ name: 'EngineeringProject' });
const [registerDrawer, { openDrawer }] = useDrawer();
const [register, { openModal: openModal }] = useModal();
const [registerTable, { reload }] = useTable({
api: getEngineeringList,
title: '123',
columns,
formConfig: {
labelWidth: 120,
schemas: searchFormSchema,
},
useSearchForm: true,
showTableSetting: false,
bordered: true,
showIndexColumn: false,
actionColumn: {
width: 80,
title: '操作',
dataIndex: 'action',
// slots: { customRender: 'action' },
fixed: undefined,
},
});
};
const handleNew = (e) => {
console.log(e);
router.push({
path: '/engineeringProject/edit',
query: e,
});;
};
const change = (key: string) => {
reload();
};
function handleEdit(record: Recordable) {
openDrawer(true, {
record,
isUpdate: true,
});
}
function handleDelete(record: Recordable) {
console.log(record);
}
function handleSuccess() {
reload();
}
const Import = () => {
console.log('导入数据');
};
const addEngineering = () => {
// openModal(true, {
// data: 'content',
// info: 'Info',
// });
openModal(true, {
data: ['year'],
});
};
const handleNew = (e) => {
console.log(e);
router.push({
path: '/engineeringProject/edit',
query: e,
});
};
const change = (key: string) => {
reload();
};
</script>
<style scoped>
.btn {
margin-right: 10px;
}
.btn {
margin-right: 10px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment