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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
<template>
  <div class="dataBack" v-loading="loading">
    <el-container v-show="!loading">
      <el-main style="padding-bottom: 100px;">
        <el-form :label-position="labelPosition" :model="form">
          <el-row>
            <p class="title">基本信息</p>
            <!-- 自营-代理形式  社会化-销售方 -->
            <details-input :config="form.deputizetype"></details-input>
            <details-input :config="form.proxyform"></details-input>
            <!-- 项目经理 -->
            <details-input :config="form.productlead"></details-input>
            <!-- 代理公司全国排名-->
            <details-input :config="form.deputizecountryrank"></details-input>
            <!-- 代理公司当地排名 -->
            <details-input :config="form.deputizelocalrank"></details-input>
            <!-- 有无我方项目负责人 -->
            <details-input :config="form.nospecificperson"></details-input>
            <!-- 团队本地化能力 -->
            <details-input :config="form.teamlocal"></details-input>
            <!-- 是否有我司员工驻点 -->
            <details-input :config="form.arrestPointFlag"></details-input>
            <!-- 购房真实性核实办法 -->
            <details-input :config="form.truthCheckMethod"></details-input>
            <!-- 购房真实性核实办法说明 -->
            <details-input-one-line :config="form.truthCheckMethodRmk"></details-input-one-line>
 
            <!-- <details-input :config="form.serviceline"></details-input>
          <details-input :config="form.salenature"></details-input>
          <details-input :config="form.theatreproperties"></details-input>
          <details-input :config="form.proxyform"></details-input>
          <details-input :config="form.producttype"></details-input>
          <details-input :config="form.mainpolicy"></details-input>
          <details-input :config="form.proxyapproachtime"></details-input>
          <details-input :config="form.managerapproachtime"></details-input>
          <details-input :config="form.managerage"></details-input>
            <details-input :config="form.shilianproxysale"></details-input>-->
          </el-row>
 
          <el-row>
            <p class="title" v-if="record">对账管理</p>
            <!-- 有无开发商财务对接人 -->
            <details-input :config="form.isfinance"></details-input>
            <!-- 开发商财务对接人姓名 -->
            <details-input :config="form.developfinancename"></details-input>
            <!-- 开发商财务联系方式 -->
            <details-input :config="form.developfinancephone"></details-input>
            <!-- 对账机制 -->
            <details-input :config="form.accountnumber"></details-input>
            <details-input :config="form.accountmechanism"></details-input>
            <!-- 对账机制情况说明 -->
            <details-input-one-line :config="form.otherbalanceremark"></details-input-one-line>
            <!--<details-input :config="form.acctloan"></details-input>
          <details-input :config="form.erpsystemintoman"></details-input>
          <details-input :config="form.otherbalanceremark"></details-input>
          <details-input :config="form.tradingagencies"></details-input>
          <details-input :config="form.developfinancework"></details-input>
            <details-input :config="form.shilianaccountpeople"></details-input>-->
          </el-row>
 
          <el-row v-if="detailsParams.projectType == '2' || detailsParams.projectType === '社会化' ">
            <p class="title">项目拓展人信息</p>
            <ProjectDevInfoTable></ProjectDevInfoTable>
          </el-row>
 
          <el-row v-if="detailsParams.projectType == '2' || detailsParams.projectType === '社会化'">
            <p class="title">驻点员工信息</p>
            <StaffInformationTable></StaffInformationTable>
          </el-row>
 
          <el-row>
            <p class="title">项目人员信息</p>
            <project-protection-table></project-protection-table>
          </el-row>
 
          <el-row v-if="false">
            <p
              class="title"
              v-if="customerManagement"
            >非鹏友代理客户管理(联带开放项目/营销顾问/社会化项目,同时有我方报单专员和我方项目负责人)</p>
            <details-input :config="form.specifiedpolicy"></details-input>
            <details-input :config="form.joba"></details-input>
            <details-input :config="form.singlepersonmanage"></details-input>
            <details-input :config="form.jobb"></details-input>
            <details-input :config="form.cloudloanratio"></details-input>
          </el-row>
 
          <el-row v-if="false">
            <p class="title" v-if="detailsParams.projectType!=='1'">代理商资质及能力</p>
            <details-input :config="form.salecomapnyname"></details-input>
            <details-input :config="form.salecomapnynmuber"></details-input>
            <details-input :config="form.complianceaptitude"></details-input>
            <details-input :config="form.employmenttime"></details-input>
            <details-input :config="form.istworolefield"></details-input>
            <details-input :config="form.manageschemes"></details-input>
            <details-input :config="form.specialpolicy"></details-input>
            <details-input :config="form.projectmanage"></details-input>
            <details-input :config="form.motion"></details-input>
          </el-row>
 
          <el-row v-if="false">
            <p class="title" v-if="projectSale">项目约束与折扣</p>
            <details-input :config="form.signfirsttime"></details-input>
            <details-input :config="form.allfirstterm"></details-input>
            <details-input :config="form.delaysign"></details-input>
            <details-input :config="form.firstlongdelay"></details-input>
            <details-input :config="form.signtimerebate"></details-input>
            <details-input :config="form.wagesloanrebate"></details-input>
            <details-input :config="form.businessloanrebate"></details-input>
            <details-input :config="form.grouploanrebate"></details-input>
            <details-input :config="form.disposableloanrebate"></details-input>
            <details-input :config="form.otherloanrebate"></details-input>
          </el-row>
 
          <el-row v-if="false">
            <p class="title" v-if="homePage">购房及缴款凭证备案</p>
            <details-input :config="form.posnumber"></details-input>
            <details-input :config="form.posbank"></details-input>
            <details-input :config="form.loannumber"></details-input>
            <details-input :config="form.loanoperator"></details-input>
            <details-input :config="form.loanseal"></details-input>
          </el-row>
        </el-form>
      </el-main>
    </el-container>
  </div>
</template>
 
<script>
import { queryProjectProtection } from '@/api/area'
import { mapState } from 'vuex'
import DetailsInput from './components/DetailsInput'
import DetailsInputOneLine from './components/DetailsInputOneLine'
import ProjectDevInfoTable from './components/ProjectDevInfoTable'
import StaffInformationTable from './components/StaffInformationTable'
import ProjectProtectionTable from './components/ProjectProtectionTable'
export default {
  components: {
    DetailsInputOneLine,
    StaffInformationTable,
    ProjectDevInfoTable,
    ProjectProtectionTable,
    DetailsInput
  },
  data: function() {
    return {
      loading: false,
      labelPosition: 'right',
      form: {
        arrestPointFlag: '', // 是否有我司员工驻点
        truthCheckMethod: '', // 购房真实性核实办法
        truthCheckMethodRmk: '', // 购房真实性核实办法说明
        serviceline: '',
        salenature: '',
        theatreproperties: '',
        proxyform: '',
        deputizetype: '',
        producttype: '',
        productlead: '',
        mainpolicy: '',
        proxyapproachtime: '',
        managerapproachtime: '',
        managerage: '',
        shilianproxysale: '',
        teamlocal: '',
        nospecificperson: '',
        specifiedpolicy: '',
        joba: '',
        singlepersonmanage: '',
        jobb: '',
        cloudloanratio: '',
        salecomapnyname: '',
        salecomapnynmuber: '',
        deputizecountryrank: '',
        deputizelocalrank: '',
        complianceaptitude: '',
        employmenttime: '',
        istworolefield: '',
        manageschemes: '',
        specialpolicy: '',
        projectmanage: '',
        motion: '',
        signfirsttime: '',
        allfirstterm: '',
        delaysign: '',
        firstlongdelay: '',
        signtimerebate: '',
        wagesloanrebate: '',
        businessloanrebate: '',
        grouploanrebate: '',
        disposableloanrebate: '',
        otherloanrebate: '',
        posnumber: '',
        posbank: '',
        loannumber: '',
        loanoperator: '',
        loanseal: '',
        accountmechanism: '',
        accountnumber: '',
        acctloan: '',
        erpsystemintoman: '',
        otherbalanceremark: '',
        tradingagencies: '',
        isfinance: '',
        developfinancework: '',
        developfinancename: '',
        developfinancephone: '',
        shilianaccountpeople: ''
      }
    }
  },
  computed: {
    ...mapState({
      detailsParams: state => state.risk.detailsParams
    }),
    // 客户管理
    customerManagement() {
      if (
        this.form.nospecificperson.visible ||
        this.form.specifiedpolicy.visible ||
        this.form.joba.visible ||
        this.form.singlepersonmanage.visible ||
        this.form.jobb.visible ||
        this.form.cloudloanratio.visible
      ) {
        return true
      } else {
        return false
      }
    },
    // 项目约束与折扣
    projectSale() {
      if (
        this.form.signfirsttime.visible ||
        this.form.allfirstterm.visible ||
        this.form.delaysign.visible ||
        this.form.firstlongdelay.visible ||
        this.form.signtimerebate.visible ||
        this.form.wagesloanrebate.visible ||
        this.form.businessloanrebate.visible ||
        this.form.grouploanrebate.visible ||
        this.form.disposableloanrebate.visible ||
        this.form.otherloanrebate.visible
      ) {
        return true
      } else {
        return false
      }
    },
    // 对账管理
    record() {
      if (
        this.form.accountmechanism.visible ||
        this.form.accountnumber.visible ||
        this.form.acctloan.visible ||
        this.form.erpsystemintoman.visible ||
        this.form.otherbalanceremark.visible ||
        this.form.tradingagencies.visible ||
        this.form.isfinance.visible ||
        this.form.developfinancework.visible ||
        this.form.developfinancename.visible ||
        this.form.developfinancephone.visible ||
        this.form.shilianaccountpeople.visible
      ) {
        return true
      } else {
        return false
      }
    },
    // 购房及缴款凭证备案
    homePage() {
      const {
        posnumber,
        posbank,
        loannumber,
        loanoperator,
        loanseal
      } = this.form
      if (
        posnumber.visible ||
        posbank.visible ||
        loannumber.visible ||
        loanoperator.visible ||
        loanseal.visible
      ) {
        return true
      } else {
        return false
      }
    }
  },
  watch: {
    'form.deputizetype': function(newVal) {
      const { detailsParams } = this
      const { projectType } = detailsParams
      if (projectType === '2') {
        if (newVal.value === '03') {
          this.form.deputizelocalrank.visible = true
          this.form.deputizecountryrank.visible = true
        } else {
          this.form.deputizelocalrank.visible = false
          this.form.deputizecountryrank.visible = false
        }
      }
    }
  },
  created() {
    this.getForm()
  },
  methods: {
    getForm() {
      this.loading = true
      let params = {
        objectType: this.detailsParams.objectType,
        dataType: this.detailsParams.dataType,
        projectFlag: this.detailsParams.projectFlag,
        projectType: this.detailsParams.projectType,
        serialno: this.detailsParams.objectNo
      }
      Object.keys(this.form).forEach(key => {
        this.form[key] = { visible: false }
      })
      queryProjectProtection(params).then(res => {
        this.form = this._.merge({}, this.form, res.result)
        this.config = this._.merge({}, this.form, res.result)
        this.loading = false
      })
    }
  }
}
</script>
 
<style scoped>
</style>