Commit e8e5e8d8 authored by mengzixuan's avatar mengzixuan

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

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