|
|
@@ -35,13 +35,21 @@
|
|
|
<el-form-item class="full-width flex-child-average">
|
|
|
<div class="flex flex-center full-width item">
|
|
|
<span class="title">中央预算内投资:</span>
|
|
|
- <el-input class="input" placeholder="中央预算内投资"></el-input>
|
|
|
+ <el-input
|
|
|
+ class="input"
|
|
|
+ placeholder="中央预算内投资"
|
|
|
+ v-model="this.data.investmentOfCentralBudget"
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item class="full-width flex-child-average">
|
|
|
<div class="flex flex-center full-width item">
|
|
|
<span class="title">银行贷款:</span>
|
|
|
- <el-input class="input" placeholder="银行贷款"></el-input>
|
|
|
+ <el-input
|
|
|
+ class="input"
|
|
|
+ placeholder="银行贷款"
|
|
|
+ v-model="this.data.bankLoans"
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
@@ -49,13 +57,21 @@
|
|
|
<el-form-item class="full-width flex-child-average">
|
|
|
<div class="flex flex-center full-width item">
|
|
|
<span class="title">专项债券资金:</span>
|
|
|
- <el-input class="input" placeholder="专项债券资金"></el-input>
|
|
|
+ <el-input
|
|
|
+ class="input"
|
|
|
+ placeholder="专项债券资金"
|
|
|
+ v-model="this.data.specialBondFunds"
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item class="full-width flex-child-average">
|
|
|
<div class="flex flex-center full-width item">
|
|
|
<span class="title">抗疫特别国债资金:</span>
|
|
|
- <el-input class="input" placeholder="抗疫特别国债资金"></el-input>
|
|
|
+ <el-input
|
|
|
+ class="input"
|
|
|
+ placeholder="抗疫特别国债资金"
|
|
|
+ v-model="this.data.antiEpidemicSpecialTreasuryBondFund"
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
@@ -66,6 +82,7 @@
|
|
|
<el-input
|
|
|
class="input"
|
|
|
placeholder="其他地方财政性建设资金"
|
|
|
+ v-model="this.data.otherLocalFiscalConstructionFunds"
|
|
|
></el-input>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
@@ -75,6 +92,7 @@
|
|
|
<el-input
|
|
|
class="input"
|
|
|
placeholder="政策性开发性金融工具(基金)投资"
|
|
|
+ v-model="this.data.policyBasedDevelopmentFinancialInvestment"
|
|
|
></el-input>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
@@ -84,13 +102,21 @@
|
|
|
<el-form-item class="full-width flex-child-average">
|
|
|
<div class="flex flex-center full-width item">
|
|
|
<span class="title">省级预算内投资:</span>
|
|
|
- <el-input class="input" placeholder="省级预算内投资"></el-input>
|
|
|
+ <el-input
|
|
|
+ class="input"
|
|
|
+ placeholder="省级预算内投资"
|
|
|
+ v-model="this.data.investmentWithinProvincialBudget"
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item class="full-width flex-child-average">
|
|
|
<div class="flex flex-center full-width item">
|
|
|
<span class="title">市级预算内投资:</span>
|
|
|
- <el-input class="input" placeholder="市级预算内投资"></el-input>
|
|
|
+ <el-input
|
|
|
+ class="input"
|
|
|
+ placeholder="市级预算内投资"
|
|
|
+ v-model="this.data.investmentWithinMunicipalBudget"
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
@@ -98,7 +124,11 @@
|
|
|
<el-form-item class="full-width flex-child-average">
|
|
|
<div class="flex flex-center full-width item">
|
|
|
<span class="title">县级预算内投资:</span>
|
|
|
- <el-input class="input" placeholder="县级预算内投资"></el-input>
|
|
|
+ <el-input
|
|
|
+ class="input"
|
|
|
+ placeholder="县级预算内投资"
|
|
|
+ v-model="this.data.investmentWithinCountyLevelBudget"
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item class="full-width flex-child-average">
|
|
|
@@ -140,7 +170,16 @@ export default {
|
|
|
},
|
|
|
type: 1,
|
|
|
disabled: true,
|
|
|
- data: {}
|
|
|
+ data: {},
|
|
|
+ t1: 0,
|
|
|
+ t2: 0,
|
|
|
+ t3: 0,
|
|
|
+ t4: 0,
|
|
|
+ t5: 0,
|
|
|
+ t6: 0,
|
|
|
+ t7: 0,
|
|
|
+ t8: 0,
|
|
|
+ t9: 0
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -156,46 +195,36 @@ export default {
|
|
|
.then(res => {
|
|
|
if (res.code === 200) {
|
|
|
if (type === 1) {
|
|
|
- // TODO 计算到位合计
|
|
|
- var t1,
|
|
|
- t2,
|
|
|
- t3,
|
|
|
- t4,
|
|
|
- t5,
|
|
|
- t6,
|
|
|
- t7,
|
|
|
- t8,
|
|
|
- t9 = 0
|
|
|
- res.data().forEach(item => {
|
|
|
- t1 = t1 + item.total
|
|
|
- t2 = t2 + item.total
|
|
|
- t3 = t3 + item.total
|
|
|
- t4 = t4 + item.total
|
|
|
- t5 = t5 + item.total
|
|
|
- t6 = t6 + item.total
|
|
|
- t6 = t6 + item.total
|
|
|
- t7 = t7 + item.total
|
|
|
- t8 = t8 + item.total
|
|
|
- t9 = t9 + item.total
|
|
|
+ res.data.forEach(item => {
|
|
|
+ this.t1 = this.t1 + item.investmentOfCentralBudget
|
|
|
+ this.t2 = this.t2 + item.bankLoans
|
|
|
+ this.t3 = this.t3 + item.specialBondFunds
|
|
|
+ this.t4 = this.t4 + item.antiEpidemicSpecialTreasuryBondFund
|
|
|
+ this.t5 = this.t5 + item.otherLocalFiscalConstructionFunds
|
|
|
+ this.t6 =
|
|
|
+ this.t6 + item.policyBasedDevelopmentFinancialInvestment
|
|
|
+ this.t7 = this.t7 + item.investmentWithinProvincialBudget
|
|
|
+ this.t8 = this.t8 + item.investmentWithinMunicipalBudget
|
|
|
+ this.t9 = this.t9 + item.investmentWithinCountyLevelBudget
|
|
|
})
|
|
|
- this.data.t1 = t1
|
|
|
- this.data.t2 = t2
|
|
|
- this.data.t3 = t3
|
|
|
- this.data.t4 = t4
|
|
|
- this.data.t5 = t5
|
|
|
- this.data.t6 = t6
|
|
|
- this.data.t7 = t7
|
|
|
- this.data.t8 = t8
|
|
|
- this.data.t9 = t9
|
|
|
+ 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
|
|
|
} else {
|
|
|
- // this.data = res.data.get(0)
|
|
|
+ this.data = res.data[0]
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
save() {
|
|
|
- if (this.type == 1) {
|
|
|
- this.$api.project.proUpdate(this.form).then(res => {
|
|
|
+ if (this.type == 2) {
|
|
|
+ this.$api.funds.fundsSaveOrUpdate(this.data).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.$message.success(res.msg)
|
|
|
} else {
|