Browse Source

2023-08-29

weirenchun 2 years ago
parent
commit
7395325ada
2 changed files with 29 additions and 3 deletions
  1. 29 2
      src/views/project/componens/info4.vue
  2. 0 1
      src/views/project/componens/info5.vue

+ 29 - 2
src/views/project/componens/info4.vue

@@ -30,7 +30,7 @@
         </div>
       </div>
 
-      <div class="body_title">政策投资: 500万元</div>
+      <div class="body_title">政策投资: {{ totalZC }}万元</div>
       <div class="flex flex-justify-center">
         <el-form-item class="full-width flex-child-average">
           <div class="flex flex-center full-width item">
@@ -97,7 +97,7 @@
           </div>
         </el-form-item>
       </div>
-      <div class="body_title">地方预算内投资: 500万元</div>
+      <div class="body_title">地方预算内投资: {{ totalDF }}万元</div>
       <div class="flex flex-justify-center">
         <el-form-item class="full-width flex-child-average">
           <div class="flex flex-center full-width item">
@@ -171,6 +171,8 @@ export default {
       type: 1,
       disabled: true,
       data: {},
+      totalZC: 0,
+      totalDF: 0,
       t1: 0,
       t2: 0,
       t3: 0,
@@ -185,6 +187,17 @@ export default {
   methods: {
     getFundsList(type) {
       this.type = type
+      this.totalDF = 0
+      this.totalZC = 0
+      this.t1 = 0
+      this.t2 = 0
+      this.t3 = 0
+      this.t4 = 0
+      this.t5 = 0
+      this.t6 = 0
+      this.t7 = 0
+      this.t8 = 0
+      this.t9 = 0
       if (type === 2) {
         this.styleObject.visibility = 'hidden'
       } else {
@@ -217,8 +230,22 @@ export default {
               this.data.investmentWithinProvincialBudget = this.t7
               this.data.investmentWithinMunicipalBudget = this.t8
               this.data.investmentWithinCountyLevelBudget = this.t9
+              this.totalZC =
+                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]
+              this.totalZC =
+                this.data.investmentOfCentralBudget +
+                this.data.bankLoans +
+                this.data.specialBondFunds +
+                this.data.antiEpidemicSpecialTreasuryBondFund +
+                this.data.otherLocalFiscalConstructionFunds +
+                this.data.policyBasedDevelopmentFinancialInvestment
+              this.totalDF =
+                this.data.investmentWithinProvincialBudget +
+                this.data.investmentWithinMunicipalBudget +
+                this.data.investmentWithinCountyLevelBudget
             }
           }
         })

+ 0 - 1
src/views/project/componens/info5.vue

@@ -62,7 +62,6 @@ export default {
   },
   methods: {
     save() {
-      console.log('save')
       this.$api.project.proUpdate(this.form).then(res => {
         if (res.code === 200) {
           this.$message.success(res.msg)