Commit a4a8a208 authored by wangxl's avatar wangxl

333

parent bab4a7eb
...@@ -120,6 +120,7 @@ export default { ...@@ -120,6 +120,7 @@ export default {
//一、资金来源合计 //一、资金来源合计
calTotalFund () { calTotalFund () {
this.budget[0].totalBudget = this.budget[0].applyFunds + this.budget[0].selfFunds this.budget[0].totalBudget = this.budget[0].applyFunds + this.budget[0].selfFunds
this.$emit('save', [this.budget[0].totalBudget, this.budget[0].applyFunds])
}, },
//(一)财政资金 //(一)财政资金
calFundFrom () { calFundFrom () {
......
...@@ -357,7 +357,8 @@ ...@@ -357,7 +357,8 @@
</a-col> </a-col>
<a-col :span="20"> <a-col :span="20">
<a-form-model-item prop="govFunding"> <a-form-model-item prop="govFunding">
<a-input-number v-model="formData.govFunding" @change="govFundingChange" :min="0" :step="0.01" style="width: 100px" /> <!-- <a-input-number v-model="formData.govFunding" @change="govFundingChange" :min="0" :step="0.01" style="width: 100px" /> -->
{{ formData.govFunding }}
<span> 单位:万元</span> <span> 单位:万元</span>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
...@@ -531,7 +532,7 @@ ...@@ -531,7 +532,7 @@
</a-row> </a-row>
<!-- 经费预算 --> <!-- 经费预算 -->
<budget-edit :budget.sync="formData.budget" /> <budget-edit :budget.sync="formData.budget" @save="budgetSave" />
<a-row type="flex"> <a-row type="flex">
<a-col :span="24" style="text-align: center;"> <a-col :span="24" style="text-align: center;">
<div class="special-middle"> <div class="special-middle">
...@@ -886,12 +887,6 @@ export default { ...@@ -886,12 +887,6 @@ export default {
this.formData.projectKPI.projDeadline = projDeadline this.formData.projectKPI.projDeadline = projDeadline
} }
}, },
totalFundingChange () {
this.formData.projectKPI.totalBudget = this.formData.totalFunding
},
govFundingChange () {
this.formData.projectKPI.applyFunds = this.formData.govFunding
},
planSave (e) { planSave (e) {
if (!!e && e.length == 3) { if (!!e && e.length == 3) {
this.formData.projectKPI.yearTotal = e[0] this.formData.projectKPI.yearTotal = e[0]
...@@ -899,6 +894,14 @@ export default { ...@@ -899,6 +894,14 @@ export default {
this.formData.projectKPI.yearSelf = e[2] this.formData.projectKPI.yearSelf = e[2]
} }
}, },
budgetSave (e) {
if (!!e && e.length == 2) {
this.formData.totalFunding = e[0]
this.formData.govFunding = e[1]
this.formData.projectKPI.totalBudget = this.formData.totalFunding
this.formData.projectKPI.applyFunds = this.formData.govFunding
}
},
} }
} }
</script> </script>
......
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