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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!--/*
 * @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>