소스 검색

2023-08-24 新增

weirenchun 2 년 전
부모
커밋
e092683a6d
3개의 변경된 파일106개의 추가작업 그리고 7개의 파일을 삭제
  1. 6 6
      src/views/project/componens/info4.vue
  2. 96 0
      src/views/project/componens/info7.vue
  3. 4 1
      src/views/project/index.vue

+ 6 - 6
src/views/project/componens/info4.vue

@@ -14,7 +14,7 @@
             <el-input
               class="input"
               placeholder="中央预算内投资"
-              v-model="form.zy_budget_investment"
+              v-model="form.investment_invest"
             ></el-input>
           </div>
         </el-form-item>
@@ -24,7 +24,7 @@
             <el-input
               class="input"
               placeholder="地方预算内投资"
-              v-model="form.df_budget_investment"
+              v-model="form.region_invest"
             ></el-input>
           </div>
         </el-form-item>
@@ -36,7 +36,7 @@
             <el-input
               class="input"
               placeholder="专项债券资金"
-              v-model="form.debts_as_capital"
+              v-model="form.special_funds"
             ></el-input>
           </div>
         </el-form-item>
@@ -46,7 +46,7 @@
             <el-input
               class="input"
               placeholder="抗疫特别国债资金"
-              v-model="form.treasury_funds"
+              v-model="form.epidemic_funds"
             ></el-input>
           </div>
         </el-form-item>
@@ -58,7 +58,7 @@
             <el-input
               class="input"
               placeholder="其他地方财政性建设资金"
-              v-model="form.other_construction_funds"
+              v-model="form.other_funds"
             ></el-input>
           </div>
         </el-form-item>
@@ -68,7 +68,7 @@
             <el-input
               class="input"
               placeholder="政策性开发性金融工具(基金)投资"
-              v-model="form.financial_investment"
+              v-model="form.policy_finance_funds"
             ></el-input>
           </div>
         </el-form-item>

+ 96 - 0
src/views/project/componens/info7.vue

@@ -0,0 +1,96 @@
+<template>
+  <wt-card
+    title="建成投产后效益测算"
+    class="mt-10"
+    :edit-btn="true"
+    @change="change"
+    @save="save"
+  >
+    <el-form class="mt-20" :disabled="disabled">
+      <div class="flex flex-justify-center">
+        <el-form-item class="full-width flex-child-average">
+          <div class="flex flex-center full-width item">
+            <span class="title">年产值:</span>
+            <el-input v-model="form.benefit_annual_output"></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 v-model="form.benefit_annual_tax"></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 v-model="form.benefit_new_employment"></el-input>
+          </div>
+        </el-form-item>
+      </div>
+    </el-form>
+  </wt-card>
+</template>
+
+<script>
+import wtCard from '@/components/wt-card/index.vue'
+
+export default {
+  components: {
+    wtCard
+  },
+  props: {
+    info: {
+      type: Object,
+      default: () => {
+        return {}
+      }
+    }
+  },
+  watch: {
+    info: {
+      handler(val) {
+        this.form = val
+      },
+      immediate: true
+    }
+  },
+  data() {
+    return {
+      disabled: true,
+      form: {}
+    }
+  },
+  methods: {
+    save() {
+      console.log('save')
+      this.$api.project.proUpdate(this.form).then(res => {
+        if (res.code === 200) {
+          this.$message.success(res.msg)
+        } else {
+          this.$message.error(res.msg)
+        }
+      })
+    },
+    change(res) {
+      this.disabled = res
+    }
+  }
+}
+</script>
+
+<style lang="scss" scoped>
+.title {
+  width: 120px;
+  padding-right: 10px;
+  text-align: right;
+}
+
+.title-textarea {
+  width: 85px;
+  text-align: left;
+}
+
+.item {
+  width: 90%;
+}
+</style>

+ 4 - 1
src/views/project/index.vue

@@ -17,6 +17,7 @@
       <info3 :project-id="projectId" :stage-id="stageId" />
       <info4 :info="detail" />
       <info5 :info="detail" />
+      <info7 :info="detail" />
     </div>
     <!--    buttom-->
     <div class="bottom flex flex-center flex-justify-end">
@@ -46,9 +47,10 @@ import Info2 from '@/views/project/componens/info2.vue'
 import info3 from '@/views/project/componens/info3.vue'
 import Info4 from '@/views/project/componens/info4.vue'
 import Info5 from '@/views/project/componens/info5.vue'
+import Info7 from '@/views/project/componens/info7.vue'
 
 export default {
-  components: { Info2, Info1, Info4, Info5, tipsCustom, top, info3 },
+  components: { Info2, Info1, Info4, Info5, Info7, tipsCustom, top, info3 },
   data() {
     return {
       projectId: '',
@@ -65,6 +67,7 @@ export default {
       this.$api.project.projectMapInfo(this.projectId).then(res => {
         if (res.code === 200) {
           this.detail = res.data
+          delete this.detail._id
           this.stageId = res.data.stageId
           this.detail.tagsName =
             this.detail.tags === 1 ? '政府投资项目' : '企业投资项目'