Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-science-front
Project
Project
Details
Activity
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
徐俊
yn-science-front
Commits
4c9de1d0
Commit
4c9de1d0
authored
Dec 17, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
33
parent
f069db23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
projectEdit.vue
src/views/report/project/components/edit/projectEdit.vue
+4
-1
projectKpiEdit.vue
src/views/report/project/components/projectKpiEdit.vue
+12
-12
No files found.
src/views/report/project/components/edit/projectEdit.vue
View file @
4c9de1d0
...
...
@@ -923,6 +923,7 @@ export default {
researchContent
:
null
,
technologyTarget
:
null
,
economyTarget
:
null
,
achievementTarget
:
null
,
technologyReportsTarget
:
null
,
otherTarget
:
null
,
fileId
:
null
,
downloadId
:
null
,
completeStatus
:
null
,
step
:
null
}
this
.
formData
.
projectKPI
.
appUnitName
=
this
.
formData
.
appUnitName
break
;
}
case
1
:
...
...
@@ -989,11 +990,13 @@ export default {
}
},
budgetSave
(
e
)
{
if
(
!!
e
&&
e
.
length
==
2
)
{
if
(
!!
e
&&
e
.
length
==
3
)
{
this
.
formData
.
totalFunding
=
e
[
0
]
this
.
formData
.
govFunding
=
e
[
1
]
this
.
formData
.
projectKPI
.
totalBudget
=
this
.
formData
.
totalFunding
this
.
formData
.
projectKPI
.
applyFunds
=
this
.
formData
.
govFunding
this
.
formData
.
projectKPI
.
selfFunds
=
e
[
2
]
}
},
}
...
...
src/views/report/project/components/projectKpiEdit.vue
View file @
4c9de1d0
...
...
@@ -41,21 +41,21 @@
<tr>
<td
rowspan=
"3"
class=
"bg-title"
>
项目资金(万元)
</td>
<td
colspan=
"2"
class=
"bg-title"
>
总体资金总额:
</td>
<td
colspan=
"8"
>
{{
parseFloat
(
projectKPI
.
totalBudget
).
toFixed
(
2
)
}}
</td>
<td
colspan=
"8"
>
{{
!!!
projectKPI
.
totalBudget
?
0.00
:
parseFloat
(
projectKPI
.
totalBudget
).
toFixed
(
2
)
}}
</td>
<td
colspan=
"2"
class=
"bg-title"
>
年度资金总额:
</td>
<td
colspan=
"7"
>
{{
parseFloat
(
projectKPI
.
yearTotal
).
toFixed
(
2
)
}}
</td>
<td
colspan=
"7"
>
{{
!!!
projectKPI
.
yearTotal
?
0.00
:
parseFloat
(
projectKPI
.
yearTotal
).
toFixed
(
2
)
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
class=
"bg-title"
>
其中:财政拨款
</td>
<td
colspan=
"8"
>
{{
parseFloat
(
projectKPI
.
applyFunds
).
toFixed
(
2
)
}}
</td>
<td
colspan=
"8"
>
{{
!!!
projectKPI
.
applyFunds
?
0.00
:
parseFloat
(
projectKPI
.
applyFunds
).
toFixed
(
2
)
}}
</td>
<td
colspan=
"2"
class=
"bg-title"
>
其中:财政拨款
</td>
<td
colspan=
"7"
>
{{
parseFloat
(
projectKPI
.
yearApply
).
toFixed
(
2
)
}}
</td>
<td
colspan=
"7"
>
{{
!!!
projectKPI
.
yearApply
?
0.00
:
parseFloat
(
projectKPI
.
yearApply
).
toFixed
(
2
)
}}
</td>
</tr>
<tr>
<td
colspan=
"2"
class=
"bg-title"
>
其他资金
</td>
<td
colspan=
"8"
>
{{
parseFloat
(
projectKPI
.
selfFunds
).
toFixed
(
2
)
}}
</td>
<td
colspan=
"8"
>
{{
!!!
projectKPI
.
selfFunds
?
0.00
:
parseFloat
(
projectKPI
.
selfFunds
).
toFixed
(
2
)
}}
</td>
<td
colspan=
"2"
class=
"bg-title"
>
其他资金
</td>
<td
colspan=
"7"
>
{{
parseFloat
(
projectKPI
.
yearSelf
).
toFixed
(
2
)
}}
</td>
<td
colspan=
"7"
>
{{
!!!
projectKPI
.
yearSelf
?
0.00
:
parseFloat
(
projectKPI
.
yearSelf
).
toFixed
(
2
)
}}
</td>
</tr>
<tr>
<td
rowspan=
"3"
class=
"bg-title"
style=
"width: 100px;"
>
总体考核目标
</td>
...
...
@@ -204,7 +204,7 @@ export default {
}
});
},
TargetValueChange
(
index
)
{
TargetValueChange
(
index
)
{
if
(
index
==
1
||
index
==
2
||
index
==
3
)
{
this
.
projectKPI
.
threeLevel
[
0
].
targetValue
=
this
.
projectKPI
.
threeLevel
[
1
].
targetValue
+
this
.
projectKPI
.
threeLevel
[
2
].
targetValue
+
this
.
projectKPI
.
threeLevel
[
3
].
targetValue
}
else
if
(
index
==
5
||
index
==
6
||
index
==
7
)
{
...
...
@@ -231,7 +231,7 @@ export default {
this
.
projectKPI
.
threeLevel
[
66
].
targetValue
=
this
.
projectKPI
.
threeLevel
[
67
].
targetValue
+
this
.
projectKPI
.
threeLevel
[
68
].
targetValue
}
},
PerformanceStandardChange
(
index
)
{
PerformanceStandardChange
(
index
)
{
if
(
index
==
1
||
index
==
2
||
index
==
3
)
{
this
.
projectKPI
.
threeLevel
[
0
].
performanceStandard
=
this
.
projectKPI
.
threeLevel
[
1
].
performanceStandard
+
this
.
projectKPI
.
threeLevel
[
2
].
performanceStandard
+
this
.
projectKPI
.
threeLevel
[
3
].
performanceStandard
}
else
if
(
index
==
5
||
index
==
6
||
index
==
7
)
{
...
...
@@ -258,7 +258,7 @@ export default {
this
.
projectKPI
.
threeLevel
[
66
].
performanceStandard
=
this
.
projectKPI
.
threeLevel
[
67
].
performanceStandard
+
this
.
projectKPI
.
threeLevel
[
68
].
performanceStandard
}
},
YearValue1Change
(
index
)
{
YearValue1Change
(
index
)
{
if
(
index
==
1
||
index
==
2
||
index
==
3
)
{
this
.
projectKPI
.
threeLevel
[
0
].
yearValue1
=
this
.
projectKPI
.
threeLevel
[
1
].
yearValue1
+
this
.
projectKPI
.
threeLevel
[
2
].
yearValue1
+
this
.
projectKPI
.
threeLevel
[
3
].
yearValue1
}
else
if
(
index
==
5
||
index
==
6
||
index
==
7
)
{
...
...
@@ -285,7 +285,7 @@ export default {
this
.
projectKPI
.
threeLevel
[
66
].
yearValue1
=
this
.
projectKPI
.
threeLevel
[
67
].
yearValue1
+
this
.
projectKPI
.
threeLevel
[
68
].
yearValue1
}
},
YearValue2Change
(
index
)
{
YearValue2Change
(
index
)
{
if
(
index
==
1
||
index
==
2
||
index
==
3
)
{
this
.
projectKPI
.
threeLevel
[
0
].
yearValue2
=
this
.
projectKPI
.
threeLevel
[
1
].
yearValue2
+
this
.
projectKPI
.
threeLevel
[
2
].
yearValue2
+
this
.
projectKPI
.
threeLevel
[
3
].
yearValue2
}
else
if
(
index
==
5
||
index
==
6
||
index
==
7
)
{
...
...
@@ -302,7 +302,7 @@ export default {
this
.
projectKPI
.
threeLevel
[
43
].
yearValue2
=
this
.
projectKPI
.
threeLevel
[
44
].
yearValue2
+
this
.
projectKPI
.
threeLevel
[
45
].
yearValue2
+
this
.
projectKPI
.
threeLevel
[
46
].
yearValue2
}
else
if
(
index
==
48
||
index
==
49
)
{
this
.
projectKPI
.
threeLevel
[
47
].
yearValue2
=
this
.
projectKPI
.
threeLevel
[
48
].
yearValue2
+
this
.
projectKPI
.
threeLevel
[
49
].
yearValue2
}
else
if
(
index
==
52
||
index
==
53
||
index
==
54
)
{
}
else
if
(
index
==
52
||
index
==
53
||
index
==
54
)
{
this
.
projectKPI
.
threeLevel
[
51
].
yearValue2
=
this
.
projectKPI
.
threeLevel
[
52
].
yearValue2
+
this
.
projectKPI
.
threeLevel
[
53
].
yearValue2
+
this
.
projectKPI
.
threeLevel
[
54
].
yearValue2
}
else
if
(
index
==
56
||
index
==
57
||
index
==
58
||
index
==
59
||
index
==
60
)
{
this
.
projectKPI
.
threeLevel
[
55
].
yearValue2
=
this
.
projectKPI
.
threeLevel
[
56
].
yearValue2
+
this
.
projectKPI
.
threeLevel
[
57
].
yearValue2
+
this
.
projectKPI
.
threeLevel
[
58
].
yearValue2
+
this
.
projectKPI
.
threeLevel
[
59
].
yearValue2
+
this
.
projectKPI
.
threeLevel
[
60
].
yearValue2
...
...
@@ -312,7 +312,7 @@ export default {
this
.
projectKPI
.
threeLevel
[
66
].
yearValue2
=
this
.
projectKPI
.
threeLevel
[
67
].
yearValue2
+
this
.
projectKPI
.
threeLevel
[
68
].
yearValue2
}
},
YearValue3Change
(
index
)
{
YearValue3Change
(
index
)
{
if
(
index
==
1
||
index
==
2
||
index
==
3
)
{
this
.
projectKPI
.
threeLevel
[
0
].
yearValue3
=
this
.
projectKPI
.
threeLevel
[
1
].
yearValue3
+
this
.
projectKPI
.
threeLevel
[
2
].
yearValue3
+
this
.
projectKPI
.
threeLevel
[
3
].
yearValue3
}
else
if
(
index
==
5
||
index
==
6
||
index
==
7
)
{
...
...
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