<!--/*
|
* @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>
|