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