|
|
@@ -234,18 +234,36 @@ export default {
|
|
|
this.t1 + this.t2 + this.t3 + this.t4 + this.t5 + this.t6
|
|
|
this.totalDF = this.t7 + this.t8 + this.t9
|
|
|
} else {
|
|
|
- this.data = res.data[0]
|
|
|
+ if (res.data.length > 0) {
|
|
|
+ this.data = res.data[0]
|
|
|
+ } else {
|
|
|
+ //默认初始化
|
|
|
+ this.data.type = this.type
|
|
|
+ this.data.projectId = this.projectId
|
|
|
+ this.data.investmentOfCentralBudget = this.t1
|
|
|
+ this.data.bankLoans = this.t2
|
|
|
+ this.data.specialBondFunds = this.t3
|
|
|
+ this.data.antiEpidemicSpecialTreasuryBondFund = this.t4
|
|
|
+ this.data.otherLocalFiscalConstructionFunds = this.t5
|
|
|
+ this.data.policyBasedDevelopmentFinancialInvestment = this.t6
|
|
|
+ this.data.investmentWithinProvincialBudget = this.t7
|
|
|
+ this.data.investmentWithinMunicipalBudget = this.t8
|
|
|
+ this.data.investmentWithinCountyLevelBudget = this.t9
|
|
|
+ }
|
|
|
+
|
|
|
this.totalZC =
|
|
|
- this.data.investmentOfCentralBudget +
|
|
|
- this.data.bankLoans +
|
|
|
- this.data.specialBondFunds +
|
|
|
- this.data.antiEpidemicSpecialTreasuryBondFund +
|
|
|
- this.data.otherLocalFiscalConstructionFunds +
|
|
|
- this.data.policyBasedDevelopmentFinancialInvestment
|
|
|
+ this.data.investmentOfCentralBudget -
|
|
|
+ 0 +
|
|
|
+ (this.data.bankLoans - 0) +
|
|
|
+ (this.data.specialBondFunds - 0) +
|
|
|
+ (this.data.antiEpidemicSpecialTreasuryBondFund - 0) +
|
|
|
+ (this.data.otherLocalFiscalConstructionFunds - 0) +
|
|
|
+ (this.data.policyBasedDevelopmentFinancialInvestment - 0)
|
|
|
this.totalDF =
|
|
|
- this.data.investmentWithinProvincialBudget +
|
|
|
- this.data.investmentWithinMunicipalBudget +
|
|
|
- this.data.investmentWithinCountyLevelBudget
|
|
|
+ this.data.investmentWithinProvincialBudget -
|
|
|
+ 0 +
|
|
|
+ (this.data.investmentWithinMunicipalBudget - 0) +
|
|
|
+ (this.data.investmentWithinCountyLevelBudget - 0)
|
|
|
}
|
|
|
}
|
|
|
})
|