zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!--/*
 * @Author: Pengjiantian 
 * @Date: 2020-04-21 17:51:59 
 * @Last Modified by:   Pengjiantian 
 * @Last Modified time: 2020-04-21 17:51:59 
 */-->
<template>
  <el-container class="dataBack" v-loading="loading">
    <el-main v-show="!loading">
      <el-form
        :label-position="labelPosition"
        :model="form"
      >
        <el-row>
          <p class="title">融资主体</p>
          <!-- 融资主体名称 -->
          <details-input :config="form.name"></details-input>
          <!-- 融资主体法人代表 -->
          <details-input :config="form.legaldelegate"></details-input>
          <!-- 统一社会信用代码 -->
          <details-input :config="form.socialcreditcode"></details-input>
          <!-- 账户名称 -->
          <details-input :config="form.accountname"></details-input>
          <!-- 银行账号 -->
          <details-input :config="form.bankno"></details-input>
          <!-- 银行名称 -->
          <details-input :config="form.bankname"></details-input>
          <citys-input
            :province="form.bankprovince"
            :city="form.bankcity"
            :county="{}"
          ></citys-input>
          <!-- 开户行所在省 -->
          <!-- <details-input :config="form.bankprovince"></details-input> -->
          <!-- 开户行所在市 -->
          <!-- <details-input :config="form.bankcity"></details-input> -->
          <!-- 银行分支行名称 -->
          <details-input :config="form.bankbranch"></details-input>
        </el-row>
      </el-form>
    </el-main>
  </el-container>
</template>
 
<script>
import DetailsInput from './components/DetailsInput'
import CitysInput from './components/CitysInput'
import {
  queryProjectFinancingInformation,
} from '@/api/area'
import { mapState } from 'vuex'
export default {
  components: { DetailsInput,CitysInput },
  data: function() {
    return {
      loading: true,
      labelPosition: 'right',
      form: {
        name: '', // 融资主体名称
        legaldelegate: '', // 融资主体法人代表
        socialcreditcode: '', // 统一社会信用代码
        accountname: '', // 账户名称
        bankno: '', // 银行账号
        bankname: '', // 银行名称
        bankprovince: '', // 开户行所在省
        bankcity: '', // 开户行所在市
        bankbranch: '' // 银行分支行名称
      }
    }
  },
  computed: {
    ...mapState({
      detailsParams: state => state.risk.detailsParams
    })
  },
  created() {
    this.getForm()
  },
  methods: {
    getForm() {
      this.loading = true
      Object.keys(this.form).forEach((key) => {
        this.form[key] = { 'visible': false }
      })
      let params = {
        objectType: this.detailsParams.objectType,
        dataType: this.detailsParams.dataType,
        projectFlag: this.detailsParams.projectFlag,
        projectType: this.detailsParams.projectType,
        serialno: this.detailsParams.objectNo
      }
      queryProjectFinancingInformation(params).then(res => {
        let merge = this._.merge({}, this.form, res.result)
        this.form = merge
        this.loading = false
      })
    }
  }
}
</script>
 
<style lang="stylus" scoped>
#el-form-textarea {
  >>> .el-form-item__label {
    margin-bottom: 48px;
  }
}
</style>