Commit 4c9de1d0 authored by wangxl's avatar wangxl

33

parent f069db23
...@@ -923,6 +923,7 @@ export default { ...@@ -923,6 +923,7 @@ export default {
researchContent: null, technologyTarget: null, economyTarget: null, achievementTarget: null, technologyReportsTarget: null, otherTarget: null, researchContent: null, technologyTarget: null, economyTarget: null, achievementTarget: null, technologyReportsTarget: null, otherTarget: null,
fileId: null, downloadId: null, completeStatus: null, step: null fileId: null, downloadId: null, completeStatus: null, step: null
} }
this.formData.projectKPI.appUnitName = this.formData.appUnitName
break; break;
} }
case 1: case 1:
...@@ -989,11 +990,13 @@ export default { ...@@ -989,11 +990,13 @@ export default {
} }
}, },
budgetSave (e) { budgetSave (e) {
if (!!e && e.length == 2) { if (!!e && e.length == 3) {
this.formData.totalFunding = e[0] this.formData.totalFunding = e[0]
this.formData.govFunding = e[1] this.formData.govFunding = e[1]
this.formData.projectKPI.totalBudget = this.formData.totalFunding this.formData.projectKPI.totalBudget = this.formData.totalFunding
this.formData.projectKPI.applyFunds = this.formData.govFunding this.formData.projectKPI.applyFunds = this.formData.govFunding
this.formData.projectKPI.selfFunds = e[2]
} }
}, },
} }
......
...@@ -41,21 +41,21 @@ ...@@ -41,21 +41,21 @@
<tr> <tr>
<td rowspan="3" class="bg-title">项目资金(万元)</td> <td rowspan="3" class="bg-title">项目资金(万元)</td>
<td colspan="2" 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="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>
<tr> <tr>
<td colspan="2" class="bg-title">其中:财政拨款</td> <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="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>
<tr> <tr>
<td colspan="2" class="bg-title">其他资金</td> <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="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>
<tr> <tr>
<td rowspan="3" class="bg-title" style="width: 100px;">总体考核目标</td> <td rowspan="3" class="bg-title" style="width: 100px;">总体考核目标</td>
...@@ -204,7 +204,7 @@ export default { ...@@ -204,7 +204,7 @@ export default {
} }
}); });
}, },
TargetValueChange(index) { TargetValueChange (index) {
if (index == 1 || index == 2 || index == 3) { 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 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) { } else if (index == 5 || index == 6 || index == 7) {
...@@ -231,7 +231,7 @@ export default { ...@@ -231,7 +231,7 @@ export default {
this.projectKPI.threeLevel[66].targetValue = this.projectKPI.threeLevel[67].targetValue + this.projectKPI.threeLevel[68].targetValue 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) { 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 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) { } else if (index == 5 || index == 6 || index == 7) {
...@@ -258,7 +258,7 @@ export default { ...@@ -258,7 +258,7 @@ export default {
this.projectKPI.threeLevel[66].performanceStandard = this.projectKPI.threeLevel[67].performanceStandard + this.projectKPI.threeLevel[68].performanceStandard 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) { 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 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) { } else if (index == 5 || index == 6 || index == 7) {
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
this.projectKPI.threeLevel[66].yearValue1 = this.projectKPI.threeLevel[67].yearValue1 + this.projectKPI.threeLevel[68].yearValue1 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) { 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 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) { } else if (index == 5 || index == 6 || index == 7) {
...@@ -302,7 +302,7 @@ export default { ...@@ -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 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) { } else if (index == 48 || index == 49) {
this.projectKPI.threeLevel[47].yearValue2 = this.projectKPI.threeLevel[48].yearValue2 + this.projectKPI.threeLevel[49].yearValue2 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 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) { } 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 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 { ...@@ -312,7 +312,7 @@ export default {
this.projectKPI.threeLevel[66].yearValue2 = this.projectKPI.threeLevel[67].yearValue2 + this.projectKPI.threeLevel[68].yearValue2 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) { 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 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) { } else if (index == 5 || index == 6 || index == 7) {
......
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