Commit 995fd287 authored by liwei's avatar liwei

修改了完成情况页面以及统计页面bug

parent da565b2c
......@@ -31,7 +31,7 @@ const biddingPlan: AppRouteModule = {
component: () => import('@/views/biddingManagement/index.vue'),
meta: {
auth: '/www/dist/index.html#/biddingManagement/index',
title: '招标情况',
title: '招标管理',
orderNo: 3,
},
},
......@@ -41,7 +41,7 @@ const biddingPlan: AppRouteModule = {
component: () => import('@/views/biddingManagement/statisticsBidding.vue'),
meta: {
auth: '/www/dist/index.html#/biddingManagement/index',
title: '招标情况统计',
title: '招标管理统计',
orderNo: 3,
},
},
......
......@@ -43,7 +43,7 @@
confirm: examine.bind(null, record, true),
},
ifShow: (_action) => {
return (record.reviewStatus === '0' || record.reviewStatus === null) && isExamine === true && record.isSubmit == '1';
return (record.reviewStatus === '0' || record.reviewStatus === null) && record.isSubmit == '1';
},
},
]"
......
......@@ -100,13 +100,21 @@ import {BasicForm, FormSchema, useForm} from '@/components/Form';
});
function handleSubmit() {
let data = getFieldsValue();
console.log('data:',data)
if (data.filingCycle === null){
data.filingCycle = ''
}
if (data.planType === undefined){
data.planType = ''
}
params.value = data;
console.log(params.value);
getStatisticList();
}
function setRowClassName(record) {
if (record.projectType === '总计') {
return 'rowcolor';
} if (record.company === '合计') {
return 'rowcolor';
} else {
return;
}
......
......@@ -30,7 +30,6 @@
const dataSource = ref([]);
const getTitle = ref('');
const params = ref({ companyId: '', projectType: '', filingCycle: '', planType: '' });
const [register, { closeModal }] = useModalInner(async (data) => {
getTitle.value = data.record.company;
params.value.companyId = data.record.companyId;
......
......@@ -52,8 +52,8 @@ export const searchForm: FormSchema[] = [
export function getBasicColumns(year: string, planType: string): BasicColumn[] {
return [
{
title: year + '年' + planType + '工程项目投资计划完成情况',
colSpan: 6,
title: year == '' ? planType + '工程项目投资计划完成情况' : year + '年' + planType + '工程项目投资计划完成情况',
colSpan: 8,
children: [
{
title: '公司名称',
......@@ -68,32 +68,42 @@ export function getBasicColumns(year: string, planType: string): BasicColumn[] {
title: '项目类型',
dataIndex: 'projectType',
fixed: 'left',
width: 300,
width: 250,
slots: { customRender: 'projectType' },
},
{
title: '项目个数',
dataIndex: 'proNum',
width: 200,
width: 150,
},
{
title: '合同总额',
dataIndex: 'contractAmount',
title: '总合同额(万元)',
dataIndex: 'totalInvestment',
className: planType === '承建' ? 'tableShow' : 'tableHiddle',
},
{
title: '投资总额(万元)',
dataIndex: 'outputValue',
className: planType != '承建' ? 'tableShow' : 'tableHiddle',
},
{
title: year + '年计划完成产值',
dataIndex: 'planCompleteOutputValue',
className: planType === '承建' ? 'tableShow' : 'tableHiddle',
},
{
title: year + '年计划完成投资额度',
dataIndex: 'planOutputValue',
title: year + '年计划实际完成产值',
dataIndex: 'actualOutputValue',
className: planType === '承建' ? 'tableShow' : 'tableHiddle',
},
{
title: '总投资额(万元)',
dataIndex: 'totalInvestment',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
},
{
title: year + '年计划投资额',
dataIndex: 'planCompleteOutputValue',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
},
{
title: year + '年实际完成投资额',
dataIndex: 'actualOutputValue',
className: planType != '承建' ? 'tableShow' : 'tableHiddle',
},
{
......@@ -101,167 +111,172 @@ export function getBasicColumns(year: string, planType: string): BasicColumn[] {
dataIndex: 'planFunds',
className: planType != '储备' ? 'tableShow' : 'tableHiddle',
},
{
title: year + '年实付资金',
dataIndex: 'actualPay',
className: planType != '储备' ? 'tableShow' : 'tableHiddle',
},
],
},
];
}
export function getDtailsBasicColumns(year: string, planType: string): BasicColumn[] {
return [
{
title: '序号',
dataIndex: 'index',
fixed: 'left',
width: 180,
slots: { customRender: 'index' },
},
{
title: '项目名称',
dataIndex: 'projectName',
fixed: 'left',
width: 180,
},
{
title: '建设地点',
dataIndex: 'constructionSite',
width: 180,
},
{
title: '项目概况',
dataIndex: 'projectOverview',
width: 200,
},
{
title: '建设规模',
dataIndex: 'constructionScale',
width: 150,
},
{
title: '建设目的及功能',
dataIndex: 'constructionPurpose',
width: 150,
},
{
title: '建设模式',
dataIndex: 'constructionMode',
width: 150,
},
{
title: '资金来源',
dataIndex: 'fundingSource',
width: 150,
},
{
title: '项目类型',
dataIndex: 'projectType',
width: 150,
},
{
title: '总投资',
dataIndex: 'totalInvestment',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
// width: planType === '承建' ? 0 : 150,
width: 150,
},
{
title: year + '年之前总投资额(不包含'+year+'年)',
dataIndex: 'outputValue',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年计划投资额',
dataIndex: 'matchingFunds',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年实际完成投资额',
dataIndex: 'actualOutputValue',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年计划资金',
dataIndex: 'planFunds',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年实付资金',
dataIndex: 'actualPay',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: '合同总额',
dataIndex: 'contractAmount',
className: planType === '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年之前完成总产值(不包含'+year+'年)',
dataIndex: 'matchingFunds',
className: planType === '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年计划产值',
dataIndex: 'outputValue',
className: planType === '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年实际产值',
dataIndex: 'actualOutputValue',
className: planType === '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: '建设性质',
dataIndex: 'attribute',
width: 150,
},
{
title: '开工时间',
dataIndex: 'beginTime',
width: 150,
},
{
title: '竣工时间',
dataIndex: 'endTime',
width: 150,
},
{
title: year + '年底形象季度',
dataIndex: 'schedule',
width: 150,
},
{
title: '实施主体',
dataIndex: 'implementingEntity',
width: 150,
},
{
title: '合同方式',
dataIndex: 'contract',
className: planType === '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: '项目主管部门',
dataIndex: 'competentDepartment',
className: planType != '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
// {
// title: '实施级别',
// dataIndex: 'implementationLevel',
// width: 150,
// },
{
title: '备注',
dataIndex: 'remarks',
width: 150,
},
{
title: '序号',
dataIndex: 'index',
fixed: 'left',
width: 180,
slots: {customRender: 'index'},
},
{
title: '项目名称',
dataIndex: 'projectName',
fixed: 'left',
width: 180,
},
{
title: '建设地点',
dataIndex: 'constructionSite',
width: 180,
},
{
title: '项目概况',
dataIndex: 'projectOverview',
width: 200,
},
{
title: '建设规模',
dataIndex: 'constructionScale',
width: 150,
},
{
title: '建设目的及项目功能',
dataIndex: 'constructionPurpose',
width: 150,
},
{
title: '建设模式',
dataIndex: 'constructionMode',
width: 150,
},
{
title: '资金来源',
dataIndex: 'fundingSource',
width: 150,
},
{
title: '项目类型',
dataIndex: 'projectType',
width: 150,
},
{
title: '总投资',
dataIndex: 'totalInvestment',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
// width: planType === '承建' ? 0 : 150,
width: 150,
},
{
title: year + '年之前总投资额(不包含' + year + '年)',
dataIndex: 'outputValue',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年计划投资额',
dataIndex: 'planOutputValue',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年实际完成投资额',
dataIndex: 'actualOutputValue',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年计划资金',
dataIndex: 'planFunds',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年实付资金',
dataIndex: 'actualPay',
className: planType !== '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: '合同总额',
dataIndex: 'contractAmount',
className: planType === '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年之前完成总产值(不包含' + year + '年)',
dataIndex: 'matchingFunds',
className: planType === '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年计划产值',
dataIndex: 'outputValue',
className: planType === '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: year + '年实际产值',
dataIndex: 'actualOutputValue',
className: planType === '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: '建设性质',
dataIndex: 'attribute',
width: 150,
},
{
title: '开工时间',
dataIndex: 'beginTime',
width: 150,
},
{
title: '竣工时间',
dataIndex: 'endTime',
width: 150,
},
{
title: year + '年底形象季度',
dataIndex: 'completionSchedule',
width: 150,
},
{
title: '实施主体',
dataIndex: 'implementingEntity',
width: 150,
},
{
title: '合同方式',
dataIndex: 'contract',
className: planType === '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
{
title: '项目主管部门',
dataIndex: 'competentDepartment',
className: planType != '承建' ? 'tableShow' : 'tableHiddle',
width: 150,
},
// {
// title: '实施级别',
// dataIndex: 'implementationLevel',
// width: 150,
// },
{
title: '备注',
dataIndex: 'completionRemarks',
width: 150,
},
];
}
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