Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
紫光云
web-project
Commits
cb0de7ff
Commit
cb0de7ff
authored
Oct 28, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(资金投资): 列表显示优化
parent
442b90ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
203 additions
and
166 deletions
+203
-166
statisticData.ts
.../engineeringProject/statisticEngineering/statisticData.ts
+29
-7
statisticData.ts
src/views/performance/statisticPerformance/statisticData.ts
+174
-159
No files found.
src/views/engineeringProject/statisticEngineering/statisticData.ts
View file @
cb0de7ff
...
...
@@ -106,12 +106,13 @@ export function getBasicColumns(year: string, planType: string): BasicColumn[] {
];
}
export
function
getDtailsBasicColumns
(
year
:
string
,
planType
:
string
):
BasicColumn
[]
{
return
[
const
column
:
BasicColumn
[]
=
[
{
title
:
'序号'
,
dataIndex
:
'index'
,
fixed
:
'left'
,
width
:
180
,
ifShow
:
true
,
slots
:
{
customRender
:
'index'
},
},
{
...
...
@@ -119,56 +120,65 @@ export function getDtailsBasicColumns(year: string, planType: string): BasicColu
dataIndex
:
'projectName'
,
fixed
:
'left'
,
width
:
180
,
ifShow
:
true
,
},
{
title
:
'建设地点'
,
dataIndex
:
'constructionSite'
,
width
:
180
,
ifShow
:
true
,
},
{
title
:
'项目概况'
,
dataIndex
:
'projectOverview'
,
width
:
200
,
ifShow
:
true
,
},
{
title
:
'建设规模'
,
dataIndex
:
'constructionScale'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'建设目的及功能'
,
dataIndex
:
'constructionPurpose'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'建设模式'
,
dataIndex
:
'constructionMode'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'资金来源'
,
dataIndex
:
'fundingSource'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'项目类型'
,
dataIndex
:
'projectType'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'总投资'
,
dataIndex
:
'totalInvestment'
,
className
:
planType
===
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
===
'承建
'
,
width
:
150
,
},
{
title
:
'合同总额'
,
dataIndex
:
'contractAmount'
,
className
:
planType
!=
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
!=
'承建
'
,
width
:
150
,
},
{
title
:
'三年滚动投资计划'
,
ifShow
:
true
,
children
:
[
{
title
:
'合计'
,
...
...
@@ -195,66 +205,78 @@ export function getDtailsBasicColumns(year: string, planType: string): BasicColu
{
title
:
year
+
'年财政预预算匹配资金'
,
dataIndex
:
'matchingFunds'
,
className
:
planType
===
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
===
'承建
'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'其中专项债项目'
+
year
+
'预计使用专项债资金'
,
dataIndex
:
'specialBondFunds'
,
className
:
planType
===
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
===
'承建
'
,
width
:
150
,
},
{
title
:
year
+
'年计划资金'
,
dataIndex
:
'planFunds'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'建设性质'
,
dataIndex
:
'attribute'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'开工时间'
,
dataIndex
:
'beginTime'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'竣工时间'
,
dataIndex
:
'endTime'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
year
+
'年底预计形象季度'
,
dataIndex
:
'schedule'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'实施主体'
,
dataIndex
:
'implementingEntity'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'合同方式'
,
dataIndex
:
'contract'
,
className
:
planType
===
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
===
'承建
'
,
width
:
150
,
},
{
title
:
'项目主管部门'
,
dataIndex
:
'competentDepartment'
,
className
:
planType
!=
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
!=
'承建
'
,
width
:
150
,
},
{
title
:
'实施级别'
,
dataIndex
:
'implementationLevel'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'备注'
,
dataIndex
:
'remarks'
,
width
:
150
,
ifShow
:
true
,
},
];
const
filterColum
=
column
.
filter
((
item
)
=>
item
.
ifShow
);
return
filterColum
;
}
src/views/performance/statisticPerformance/statisticData.ts
View file @
cb0de7ff
import
{
FormSchema
}
from
'@/components/Form'
;
import
{
useUserStore
}
from
'@/store/modules/user'
;
import
{
BasicColumn
}
from
'@/components/Table'
;
import
moment
from
"moment"
;
import
moment
from
'moment'
;
const
deptId
=
useUserStore
().
userInfo
.
deptParentId
;
export
const
searchForm
:
FormSchema
[]
=
[
...
...
@@ -52,7 +52,10 @@ export const searchForm: FormSchema[] = [
export
function
getBasicColumns
(
year
:
string
,
planType
:
string
):
BasicColumn
[]
{
return
[
{
title
:
year
==
''
?
planType
+
'工程项目投资计划完成情况'
:
year
+
'年'
+
planType
+
'工程项目投资计划完成情况'
,
title
:
year
==
''
?
planType
+
'工程项目投资计划完成情况'
:
year
+
'年'
+
planType
+
'工程项目投资计划完成情况'
,
colSpan
:
8
,
children
:
[
{
...
...
@@ -121,162 +124,174 @@ export function getBasicColumns(year: string, planType: string): BasicColumn[] {
];
}
export
function
getDtailsBasicColumns
(
year
:
string
,
planType
:
string
):
BasicColumn
[]
{
return
[
const
column
:
BasicColumn
[]
=
[
{
title
:
'序号'
,
dataIndex
:
'index'
,
fixed
:
'left'
,
width
:
180
,
slots
:
{
customRender
:
'index'
},
slots
:
{
customRender
:
'index'
},
ifShow
:
true
,
},
{
title
:
'项目名称'
,
dataIndex
:
'projectName'
,
fixed
:
'left'
,
width
:
180
,
ifShow
:
true
,
},
{
title
:
'建设地点'
,
dataIndex
:
'constructionSite'
,
width
:
180
,
ifShow
:
true
,
},
{
title
:
'项目概况'
,
dataIndex
:
'projectOverview'
,
width
:
200
,
ifShow
:
true
,
},
{
title
:
'建设规模'
,
dataIndex
:
'constructionScale'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'建设目的及项目功能'
,
dataIndex
:
'constructionPurpose'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'建设模式'
,
dataIndex
:
'constructionMode'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'资金来源'
,
dataIndex
:
'fundingSource'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'项目类型'
,
dataIndex
:
'projectType'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'总投资'
,
dataIndex
:
'totalInvestment'
,
className
:
planType
!==
'承建'
?
'tableShow'
:
'tableHiddle'
,
// width: planType === '承建' ? 0 : 150,
ifShow
:
planType
!==
'承建'
,
width
:
150
,
},
{
title
:
year
+
'年之前总投资额(不包含'
+
year
+
'年)'
,
dataIndex
:
'outputValue'
,
className
:
planType
!==
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
!==
'承建
'
,
width
:
150
,
},
{
title
:
year
+
'年计划投资额'
,
dataIndex
:
'planOutputValue'
,
className
:
planType
!==
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
!==
'承建
'
,
width
:
150
,
},
{
title
:
year
+
'年实际完成投资额'
,
dataIndex
:
'actualOutputValue'
,
className
:
planType
!==
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
!==
'承建
'
,
width
:
150
,
},
{
title
:
year
+
'年计划资金'
,
dataIndex
:
'planFunds'
,
className
:
planType
!==
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
!==
'承建
'
,
width
:
150
,
},
{
title
:
year
+
'年实付资金'
,
dataIndex
:
'actualPay'
,
className
:
planType
!==
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
!==
'承建
'
,
width
:
150
,
},
{
title
:
'合同总额'
,
dataIndex
:
'contractAmount'
,
className
:
planType
===
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
===
'承建
'
,
width
:
150
,
},
{
title
:
year
+
'年之前完成总产值(不包含'
+
year
+
'年)'
,
dataIndex
:
'matchingFunds'
,
className
:
planType
===
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
===
'承建
'
,
width
:
150
,
},
{
title
:
year
+
'年计划产值'
,
dataIndex
:
'outputValue'
,
className
:
planType
===
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
===
'承建
'
,
width
:
150
,
},
{
title
:
year
+
'年实际产值'
,
dataIndex
:
'actualOutputValue'
,
className
:
planType
===
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
===
'承建
'
,
width
:
150
,
},
{
title
:
'建设性质'
,
dataIndex
:
'attribute'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'开工时间'
,
dataIndex
:
'beginTime'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'竣工时间'
,
dataIndex
:
'endTime'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
year
+
'年底形象季度'
,
dataIndex
:
'completionSchedule'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'实施主体'
,
dataIndex
:
'implementingEntity'
,
width
:
150
,
ifShow
:
true
,
},
{
title
:
'合同方式'
,
dataIndex
:
'contract'
,
className
:
planType
===
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
===
'承建
'
,
width
:
150
,
},
{
title
:
'项目主管部门'
,
dataIndex
:
'competentDepartment'
,
className
:
planType
!=
'承建'
?
'tableShow'
:
'tableHiddle
'
,
ifShow
:
planType
!=
'承建
'
,
width
:
150
,
},
// {
// title: '实施级别',
// dataIndex: 'implementationLevel',
// width: 150,
// },
{
title
:
'备注'
,
dataIndex
:
'completionRemarks'
,
width
:
150
,
ifShow
:
true
,
},
];
const
filterColum
=
column
.
filter
((
item
)
=>
item
.
ifShow
);
return
filterColum
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment