Commit 5be7ae9b authored by wangxl's avatar wangxl

33

parent 6452bfe0
...@@ -893,6 +893,13 @@ export default { ...@@ -893,6 +893,13 @@ export default {
this.formData.fileList = [] this.formData.fileList = []
} }
}, },
processKpiFunds () {
if (!!this.formData.budget && this.formData.budget.length > 0) {
this.formData.projectKPI.yearTotal = this.formData.budget[0].totalBudget
this.formData.projectKPI.yearApply = this.formData.budget[0].applyFunds
this.formData.projectKPI.yearSelf = this.formData.budget[0].selfFunds
}
},
processProjectYearTarget () { processProjectYearTarget () {
this.formData.yearTarget = this.formData.projectKPI.yearTarget this.formData.yearTarget = this.formData.projectKPI.yearTarget
this.formData.year1Goal = this.formData.projectKPI.year1Goal this.formData.year1Goal = this.formData.projectKPI.year1Goal
...@@ -923,6 +930,7 @@ export default { ...@@ -923,6 +930,7 @@ export default {
obj = { id: null, members: [], participateUnits: [], completeStatus: null, step: null } obj = { id: null, members: [], participateUnits: [], completeStatus: null, step: null }
break; break;
case 2: case 2:
this.processKpiFunds()
obj = { id: null, totalFunding: null, govFunding: null, unitFunding: null, selfFunding: null, budget: [], fundPlan: [], deviceList: [], manufactureList: [], unitPayment: [], completeStatus: null, step: null } obj = { id: null, totalFunding: null, govFunding: null, unitFunding: null, selfFunding: null, budget: [], fundPlan: [], deviceList: [], manufactureList: [], unitPayment: [], completeStatus: null, step: null }
break; break;
case 3: case 3:
...@@ -968,7 +976,7 @@ export default { ...@@ -968,7 +976,7 @@ export default {
return true return true
} }
}, },
determineProjKPIDetail() { determineProjKPIDetail () {
let flag = false let flag = false
for (let e of this.formData.projectKPI.threeLevel) { for (let e of this.formData.projectKPI.threeLevel) {
if (e.performanceStandard && e.performanceStandard > 0) { if (e.performanceStandard && e.performanceStandard > 0) {
......
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