<!--/*
|
* @Author: Pengjiantian
|
* @Date: 2020-04-17 10:29:00
|
* @Last Modified by: Pengjiantian
|
* @Last Modified time: 2020-04-17 10:29:00
|
*/ -->
|
<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.developer"></details-input>
|
<!-- 开发商社会信用代码 -->
|
<details-input :config="form.prosocialcreditcode"></details-input>
|
<!-- 开发商品牌 -->
|
<details-input :config="form.developbrand"></details-input>
|
<!-- 开发商类型 -->
|
<details-input :config="form.protype"></details-input>
|
</el-row>
|
|
<el-row>
|
<p class="title">项目信息</p>
|
<!-- 与开发商合作模式 -->
|
<details-input :config="form.cooperationmodel"></details-input>
|
<!-- 项目名称 -->
|
<details-input :config="form.productname"></details-input>
|
<!-- 项目编码 -->
|
<details-input :config="form.productnumber"></details-input>
|
<citys-input
|
:province="form.registerprovince"
|
:city="form.registercitys"
|
:county="form.registercounty"
|
></citys-input>
|
<!-- 项目所在省 -->
|
<!-- <details-input :config="form.registerprovince"></details-input> -->
|
<!-- 项目所在市 -->
|
<!-- <details-input :config="form.registercitys"></details-input> -->
|
<!-- 项目所在区 -->
|
<!-- <details-input :config="form.registercounty"></details-input> -->
|
<!-- 物业类型 -->
|
<details-input :config="form.property"></details-input>
|
<!-- 预售许可证楼栋号 -->
|
<!-- <details-input :config="form.presalelicensebuildnum"></details-input> -->
|
<details-input-one-line :config="form.presalelicensebuildnum"></details-input-one-line>
|
</el-row>
|
|
<el-row>
|
<p class="title">开发商合同</p>
|
<!-- 签约主体 -->
|
<details-input :config="form.signcontractentity"></details-input>
|
<!-- 合同名称 -->
|
<details-input :config="form.contractname"></details-input>
|
<!-- 合同编号 -->
|
<details-input :config="form.contractno"></details-input>
|
<!-- 合同执行生效日期 -->
|
<details-input :config="form.effectivedate"></details-input>
|
<!-- 合同执行失效日期 -->
|
<details-input :config="form.expirationdate"></details-input>
|
<!-- 成功销售条件 -->
|
<!-- <details-input :config="form.salesucconditions"></details-input> -->
|
<details-input-one-line :config="form.salesucconditions"></details-input-one-line>
|
<!-- 结算条件 -->
|
<!-- <details-input :config="form.settleconditions"></details-input> -->
|
<details-input-one-line :config="form.settleconditions"></details-input-one-line>
|
<!-- 佣金条件 -->
|
<!-- <details-input :config="form.commissionconditions"></details-input> -->
|
<details-input-one-line :config="form.commissionconditions"></details-input-one-line>
|
<!-- 期限单位 -->
|
<details-input :config="form.termunit"></details-input>
|
<!-- 佣金回款周期(天) -->
|
<details-input :config="form.rebateterm"></details-input>
|
</el-row>
|
</el-form>
|
</el-main>
|
</el-container>
|
</template>
|
|
<script>
|
import DetailsInput from './components/DetailsInput'
|
import DetailsInputOneLine from './components/DetailsInputOneLine'
|
import CitysInput from './components/CitysInput'
|
import { queryDeveloperProjectInformation } from '@/api/area'
|
import { mapState } from 'vuex'
|
export default {
|
components: { DetailsInput, CitysInput, DetailsInputOneLine },
|
props: ['nextChange'],
|
data: function() {
|
return {
|
loading: true,
|
labelPosition: 'right',
|
writeAble: false,
|
form: {
|
developer: '', // 开发商名称
|
prosocialcreditcode: '', // 开发商社会信用代码
|
developbrand: '', // 开发商品牌
|
protype: '', // 开发商类型
|
cooperationmodel: '', // 与开发商合作模式
|
productname: '', // 项目名称
|
productnumber: '', // 项目编码
|
registerprovince: '', // 项目所在省
|
registercitys: '', // 项目所在市
|
registercounty: '', // 项目所在区
|
property: '', // 物业类型
|
presalelicensebuildnum: '', // 预售许可证楼栋号
|
signcontractentity: '', // 签约主体
|
contractname: '', // 合同名称
|
contractno: '', // 合同编号
|
effectivedate: '', // 合同执行生效日期
|
expirationdate: '', // 合同执行失效日期
|
salesucconditions: '', // 成功销售条件
|
settleconditions: '', // 结算条件
|
commissionconditions: '', // 佣金条件
|
termunit: '', // 期限单位
|
rebateterm: '' // 佣金回款周期(天)
|
}
|
}
|
},
|
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
|
}
|
queryDeveloperProjectInformation(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>
|