<!--/*
|
* @Author: Pengjiantian
|
* @Date: 2020-04-21 17:46:55
|
* @Last Modified by: Pengjiantian
|
* @Last Modified time: 2020-04-21 17:46:55
|
*/-->
|
|
<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.node"></details-input>
|
<!-- 预估垫佣规模(万元) -->
|
<details-input :config="form.estimatescale"></details-input>
|
<!-- 佣金垫付比例(%) -->
|
<details-input :config="form.commissionrate"></details-input>
|
<!-- 项目垫佣期限(天) -->
|
<details-input :config="form.term"></details-input>
|
<!-- 历史合作关系 -->
|
<!-- <details-input :config="form.hispartnership"></details-input> -->
|
<details-input-one-line :config="form.hispartnership"></details-input-one-line>
|
</el-row>
|
|
<el-row>
|
<p class="title">项目授信</p>
|
<!-- 保理模式 -->
|
<details-input :config="form.factromodel"></details-input>
|
<!-- 项目授信金额(元) -->
|
<details-input :config="form.position"></details-input>
|
</el-row>
|
</el-form>
|
</el-main>
|
</el-container>
|
</template>
|
|
<script>
|
import { queryProjectCreditInformation } from '@/api/area'
|
import DetailsInputOneLine from './components/DetailsInputOneLine'
|
import DetailsInput from './components/DetailsInput'
|
import { mapState } from 'vuex'
|
export default {
|
components: { DetailsInput, DetailsInputOneLine },
|
data: function() {
|
return {
|
loading: true,
|
labelPosition: 'right',
|
form: {
|
node: '', // 垫佣节点
|
estimatescale: '', // 预估垫佣规模(万元)
|
commissionrate: '', // 佣金垫付比例(%)
|
protype: '', // 开发商类型
|
term: '', // 项目垫佣期限(天)
|
hispartnership: '', // 历史合作关系
|
factromodel: '', // 保理模式
|
position: '' // 项目授信金额(元)
|
}
|
}
|
},
|
computed: {
|
...mapState({
|
detailsParams: state => state.risk.detailsParams
|
}),
|
badMsgTitle() {
|
if (
|
this.config.balanceblacklist.visible ||
|
this.config.cashflow.visible ||
|
this.config.courtinvolved.visible ||
|
this.config.cashflowexplain.visible ||
|
this.config.courtinvolvedexplain.visible
|
) {
|
return true
|
} else {
|
return false
|
}
|
}
|
},
|
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
|
}
|
queryProjectCreditInformation(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>
|