贷款业务

20240205
yujialong 5 months ago
parent ec9e3319a0
commit faccbdd5f7
  1. 8
      src/api/api.js
  2. 32
      src/api/http.js
  3. 5
      src/mixins/tipsBefore/index.js
  4. 32
      src/pages/manage/list/business/transfer.vue
  5. 51
      src/pages/manage/list/corporateLoans/application.vue
  6. 436
      src/pages/manage/list/corporateLoans/apply/creditEvaluation/basic.vue
  7. 78
      src/pages/manage/list/corporateLoans/apply/creditEvaluation/importReport.vue
  8. 4
      src/pages/manage/list/corporateLoans/apply/index.vue
  9. 3
      src/pages/manage/list/foreignExchange/puchasing.vue
  10. 575
      src/pages/manage/list/personalLoans/detail.vue
  11. 9
      src/store/modules/system.js

@ -10,14 +10,14 @@ if (dev) {
// 本地 // 本地
host = 'http://121.37.12.51/' // 中台测试服 host = 'http://121.37.12.51/' // 中台测试服
// host = 'https://www.occupationlab.com/' // 正式服 // host = 'https://www.occupationlab.com/' // 正式服
// host = 'http://192.168.31.151:9000/' // 榕 host = 'http://192.168.31.217:9000/'
// host = 'http://192.168.31.116:9000/' // 赓
} }
// 创建axios实例 // 创建axios实例
const service = axios.create({ const service = axios.create({
baseURL: host, // 测试 baseURL: host, // 测试
timeout: 30000 // 请求超时时间 timeout: 30000 // 请求超时时间
}) })
let logouted = 0;
// 添加request拦截器 // 添加request拦截器
service.interceptors.request.use(config => { service.interceptors.request.use(config => {
return config return config
@ -34,11 +34,13 @@ service.interceptors.response.use(
}, },
error => { error => {
if (error.response.status == 401) { if (error.response.status == 401) {
console.log("🚀 ~ error:", error.response.status, store.commit('user/logout')) if (!logouted) {
util.errorMsg('登录过期,请重新登录') util.errorMsg('登录过期,请重新登录')
setTimeout(() => { setTimeout(() => {
store.commit('user/logout') store.commit('user/logout')
}, 1500) }, 1500)
logouted = 1
}
} }
return Promise.reject(error.response) return Promise.reject(error.response)
} }

@ -1,8 +1,5 @@
// 引入封装好的axios
// ps:如果没有封装,正常引入axios即可
import { get, post, deletes, put } from './api.js' import { get, post, deletes, put } from './api.js'
// import axios from "./"; // import axios from "./";
// /api为配置跨域的路径变量
export const getProjectBySystemId = (params) => { export const getProjectBySystemId = (params) => {
return get('/occupationlab/occupationlab/projectManage/getProjectBySystemId', params) return get('/occupationlab/occupationlab/projectManage/getProjectBySystemId', params)
} }
@ -50,3 +47,32 @@ export const reportDetail = (reportId) => {
reportId reportId
}) })
} }
export const creditEvaluationInput = data => {
return post('/judgment/bankCreditEvaluation/creditEvaluationInput', data)
}
export const loanContractDel = data => {
return post('/judgment/bankLoanContractInfo/batchDeletion', data)
}
export const loanContractFind = id => {
return post('/judgment/bankLoanContractInfo/findById?id=' + id)
}
export const loanContractList = (data) => {
return post('/judgment/bankLoanContractInfo/pagingQuery', data)
}
export const loanContractSave = (data) => {
return post('/judgment/bankLoanContractInfo/saveOrUpdate', data)
}
export const personalBasicDel = data => {
return post('/judgment/bankPersonalBasicInfo/batchDeletion', data)
}
export const personalBasicFind = id => {
return post('/judgment/bankPersonalBasicInfo/findById?id=' + id)
}
export const personalBasicList = (data) => {
return post('/judgment/bankPersonalBasicInfo/pagingQuery', data)
}
export const personalBasicSave = (data) => {
return post('/judgment/bankPersonalBasicInfo/saveOrUpdate', data)
}

@ -60,11 +60,7 @@ export default {
} }
}, },
beforeDestroy () { beforeDestroy () {
// clearInterval(this.myTipBefore)
// this.myTipBefore = null
// 这个业务是我们需要的,所以我们存数据 // 这个业务是我们需要的,所以我们存数据
let tmpForm = {} let tmpForm = {}
for (const key in this.form) { for (const key in this.form) {
if (this.form[key] !== '') { if (this.form[key] !== '') {
@ -74,7 +70,6 @@ export default {
// 系统录入当前页面关闭或离开的时候,保存当前模块的数据。回来的时候这些数据还在(业务需求)。 // 系统录入当前页面关闭或离开的时候,保存当前模块的数据。回来的时候这些数据还在(业务需求)。
sessionStorage.setItem(this.moduleName, JSON.stringify(tmpForm)) sessionStorage.setItem(this.moduleName, JSON.stringify(tmpForm))
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({

@ -8,27 +8,26 @@
<el-form ref="form" :model="form" label-width="120px" :rules="rules"> <el-form ref="form" :model="form" label-width="120px" :rules="rules">
<el-col :span="10" :offset="2"> <el-col :span="10" :offset="2">
<el-form-item label="转出账号" prop="transoutNum"> <el-form-item label="转出账号" prop="transoutNum">
<el-input :value="form.transoutNum" @blur="getBlurData" maxlength="20" @input="(val) => checkHanzi(val, form, 'transoutNum')" ref="transoutNum"></el-input> <el-input :value="form.transoutNum" @blur="getBlurData" maxlength="20"
@input="(val) => checkHanzi(val, form, 'transoutNum')" ref="transoutNum"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="凭证号码" prop="certificateNum"> <el-form-item label="凭证号码" prop="certificateNum">
<el-input :value="form.certificateNum" maxlength="20" @input="(val) => checkHanzi(val, form, 'certificateNum')" ref="certificateNum"></el-input> <el-input :value="form.certificateNum" maxlength="20"
@input="(val) => checkHanzi(val, form, 'certificateNum')" ref="certificateNum"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="签发日期" prop="signDate"> <el-form-item label="签发日期" prop="signDate">
<el-date-picker <el-date-picker v-model.trim="form.signDate" disabled type="date" placeholder="选择日期" ref="signDate">
v-model.trim="form.signDate"
disabled
type="date"
placeholder="选择日期"
ref="signDate">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="currencyMark"> <el-form-item label="钞汇标识" prop="currencyMark">
<el-select v-model.trim="form.currencyMark" disabled placeholder="请选择" ref="currencyMark"> <el-select v-model.trim="form.currencyMark" disabled placeholder="请选择" ref="currencyMark">
<el-option v-for="item in getSelectList.goldLogoSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> <el-option v-for="item in getSelectList.goldLogoSelectList" :label="item.options" :value="item.itemId"
:key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="转入账号" prop="transinNum"> <el-form-item label="转入账号" prop="transinNum">
<el-input :value="form.transinNum" maxlength="20" @input="(val) => checkHanzi(val, form, 'transinNum')" ref="transinNum"></el-input> <el-input :value="form.transinNum" maxlength="20" @input="(val) => checkHanzi(val, form, 'transinNum')"
ref="transinNum"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="金额" prop="money"> <el-form-item label="金额" prop="money">
<el-input :value="form.money" maxlength="15" @input="val => ismoney(val, form, 'money')"></el-input> <el-input :value="form.money" maxlength="15" @input="val => ismoney(val, form, 'money')"></el-input>
@ -37,7 +36,8 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input :value="form.customerName" maxlength="20" @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input> <el-input :value="form.customerName" maxlength="20" @input="(val) => checkName(val, form, 'customerName')"
ref="customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="凭证类型" prop="certificateType"> <el-form-item label="凭证类型" prop="certificateType">
<el-select v-model.trim="form.certificateType" placeholder="请选择" ref="certificateType"> <el-select v-model.trim="form.certificateType" placeholder="请选择" ref="certificateType">
@ -47,7 +47,8 @@
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currencyType"> <el-form-item label="币种" prop="currencyType">
<el-select v-model.trim="form.currencyType" disabled placeholder="请选择" ref="currencyType"> <el-select v-model.trim="form.currencyType" disabled placeholder="请选择" ref="currencyType">
<el-option v-for="item in getSelectList.currencySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> <el-option v-for="item in getSelectList.currencySelectList" :label="item.options" :value="item.itemId"
:key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="支取方式" prop="payWay"> <el-form-item label="支取方式" prop="payWay">
@ -56,7 +57,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="转入户名" prop="transinName"> <el-form-item label="转入户名" prop="transinName">
<el-input :value="form.transinName" maxlength="40" @input="(val) => checkName(val, form, 'transinName')"></el-input> <el-input :value="form.transinName" maxlength="40"
@input="(val) => checkName(val, form, 'transinName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="摘要" prop="abstract"> <el-form-item label="摘要" prop="abstract">
<el-input v-model.trim="form.abstract" maxlength="60"></el-input> <el-input v-model.trim="form.abstract" maxlength="60"></el-input>
@ -65,7 +67,8 @@
</el-form> </el-form>
</el-row> </el-row>
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> <el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button>
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" :needAuth="needAuth" /> <my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName"
@submitIt="submitForm2" :needAuth="needAuth" />
</div> </div>
</div> </div>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" class="wrap" /> --> <!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" class="wrap" /> -->
@ -320,6 +323,7 @@ export default {
flex-direction: column; flex-direction: column;
overflow: auto; overflow: auto;
padding: 24px 0 24px 24px; padding: 24px 0 24px 24px;
.body { .body {
margin-top: 50px; margin-top: 50px;
overflow-y: auto; overflow-y: auto;

@ -4,60 +4,36 @@
<my-title :titleArr="['公司贷款', '贷款申请']" /> <my-title :titleArr="['公司贷款', '贷款申请']" />
<div style="width: 300px;margin-bottom: 20px;"> <div style="width: 300px;margin-bottom: 20px;">
<el-input v-model="keyword" <el-input v-model="keyword" placeholder="请输入客户姓名" clearable />
placeholder="请输入客户姓名"
clearable />
</div> </div>
<el-button style="margin-bottom: 20px;" <el-button style="margin-bottom: 20px;" type="primary"
type="primary"
@click="$router.push('/counter/list/manage/corporateLoans-apply')">新建贷款申请</el-button> @click="$router.push('/counter/list/manage/corporateLoans-apply')">新建贷款申请</el-button>
<el-table max-height="350" <el-table max-height="350" ref="filterTable" :data="tableData" :header-cell-style="headerCellStyle"
ref="filterTable"
:data="tableData"
:header-cell-style="headerCellStyle"
:row-class-name="tableRowClassName"> :row-class-name="tableRowClassName">
<el-table-column prop="currency" <el-table-column prop="currency" label="客户姓名" align="center">
label="客户姓名"
align="center">
</el-table-column> </el-table-column>
<el-table-column prop="currency" <el-table-column prop="currency" label="申请编号" align="center">
label="申请编号"
align="center">
</el-table-column> </el-table-column>
<el-table-column prop="currency" <el-table-column prop="currency" label="申请日期" align="center">
label="申请日期"
align="center">
</el-table-column> </el-table-column>
<el-table-column prop="currency" <el-table-column prop="currency" label="申请类型" align="center">
label="申请类型"
align="center">
</el-table-column> </el-table-column>
<el-table-column prop="currency" <el-table-column prop="currency" label="申请金额" align="center">
label="申请金额"
align="center">
</el-table-column> </el-table-column>
<el-table-column prop="currency" <el-table-column prop="currency" label="办理状态" align="center">
label="办理状态"
align="center">
</el-table-column> </el-table-column>
<el-table-column label="操作" <el-table-column label="操作" align="center" width="150">
align="center"
width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="back(scope.row)" <el-button @click="back(scope.row)" size="small">详情</el-button>
size="small">详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="pagination"> <div class="pagination">
<el-pagination background <el-pagination background layout="total, prev, pager, next" :current-page="page"
layout="total, prev, pager, next" @current-change="handleCurrentChange" :total="total"></el-pagination>
:current-page="page"
@current-change="handleCurrentChange"
:total="total"></el-pagination>
</div> </div>
</div> </div>
</template> </template>
@ -105,6 +81,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss'; @import '@/assets/css/tablebg.scss';
.body { .body {
width: 100%; width: 100%;
padding: 24px; padding: 24px;

@ -7,77 +7,78 @@
<h6 class="l-title">客户信息</h6> <h6 class="l-title">客户信息</h6>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="账号" prop="customerName"> <el-form-item label="账号" prop="applicationAccount">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.applicationAccount" @input="val => inputListen(val, form, 'applicationAccount')"
@blur="accountBlur" />
</el-form-item> </el-form-item>
<el-form-item label="证件类型" prop="certificateType"> <el-form-item label="证件类型" prop="identificationType">
<el-select v-model.trim="form.certificateType" placeholder="请选择" ref="certificateType"> <el-select v-model.trim="form.identificationType" placeholder="请选择" disabled>
<el-option label="身份证" :value="83"> </el-option> <el-option label="统一社会信用代码证" :value="82"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="联系电话" prop="customerName"> <el-form-item label="联系电话" prop="contactPhoneNumber">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.contactPhoneNumber" />
</el-form-item> </el-form-item>
<el-form-item label="法人姓名" prop="customerName"> <el-form-item label="法人姓名" prop="corporateName">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.corporateName" />
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="customerName"> <el-form-item label="币种" prop="currency">
<el-select v-model.trim="form.certificateType" placeholder="请选择"> <el-select v-model.trim="form.currency" placeholder="请选择" disabled>
<el-option label="身份证" :value="83"> </el-option> <el-option label='CNY人民币' :value="12"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="利率(%)" prop="customerName"> <el-form-item label="利率(%)" prop="interestRate">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.interestRate" disabled />
</el-form-item> </el-form-item>
<el-form-item label="支取方式" prop="customerName"> <el-form-item label="支取方式" prop="withdrawalMethod">
<el-select v-model.trim="form.certificateType" placeholder="请选择"> <el-select v-model.trim="form.withdrawalMethod" placeholder="请选择" disabled>
<el-option label="身份证" :value="83"> </el-option> <el-option label="印鉴" :value="114"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="成立年份" prop="customerName"> <el-form-item label="成立年份" prop="yearOfEstablishment">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.yearOfEstablishment" />
</el-form-item> </el-form-item>
<el-form-item label="主营范围" prop="customerName"> <el-form-item label="主营范围" prop="mainBusinessScope">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.mainBusinessScope" />
</el-form-item> </el-form-item>
<el-form-item label="财报提交方式" prop="customerName"> <el-form-item label="财报提交方式" prop="financialReportSubmissionMethod">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.financialReportSubmissionMethod" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户名称" prop="customerName"> <el-form-item label="客户名称" prop="customerName">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.customerName" />
</el-form-item> </el-form-item>
<el-form-item label="证件号码" prop="customerName"> <el-form-item label="证件号码" prop="identificationNumber">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.identificationNumber" />
</el-form-item> </el-form-item>
<el-form-item label="注册地址" prop="customerName"> <el-form-item label="注册地址" prop="companyRegisteredAddress">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.companyRegisteredAddress" />
</el-form-item> </el-form-item>
<el-form-item label="法人证件号码" prop="customerName"> <el-form-item label="法人证件号码" prop="corporateIdNumber">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.corporateIdNumber" />
</el-form-item> </el-form-item>
<el-form-item label="账户类型" prop="customerName"> <el-form-item label="账户类型" prop="accountType">
<el-select v-model.trim="form.certificateType" placeholder="请选择"> <el-select v-model.trim="form.accountType" placeholder="请选择" disabled>
<el-option label="身份证" :value="83"> </el-option> <el-option label="结算户" :value="97"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="计息方式" prop="customerName"> <el-form-item label="计息方式" prop="interestCalculationMethod">
<el-select v-model.trim="form.certificateType" placeholder="请选择"> <el-select v-model.trim="form.interestCalculationMethod" placeholder="请选择" disabled>
<el-option label="身份证" :value="83"> </el-option> <el-option label="计息方式" :value="83"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="员工人数" prop="customerName"> <el-form-item label="员工人数" prop="numberOfEmployees">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.numberOfEmployees" />
</el-form-item> </el-form-item>
<el-form-item label="注册类型" prop="customerName"> <el-form-item label="注册类型" prop="registrationType">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.registrationType" />
</el-form-item> </el-form-item>
<el-form-item label="营业执照到期日" prop="customerName"> <el-form-item label="营业执照到期日" prop="expirationDateOfBusinessLicense">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.expirationDateOfBusinessLicense" />
</el-form-item> </el-form-item>
<el-form-item label="借款人性质" prop="customerName"> <el-form-item label="借款人性质" prop="natureOfBorrower">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.natureOfBorrower" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -89,305 +90,130 @@
<el-button @click="next" type="primary" class="submitBtn" v-throttle>下一步</el-button> <el-button @click="next" type="primary" class="submitBtn" v-throttle>下一步</el-button>
</div> </div>
</div> </div>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> -->
</template> </template>
<script> <script>
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js'; import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js';
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { addOperation, creditEvaluationInput } from '@/api/http'
const moduleName = 'usefulPhrases/openAccount' const moduleName = 'creditEva/basic'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog'
import TipsBefore from '@/mixins/tipsBefore' import TipsBefore from '@/mixins/tipsBefore'
import MyTitle from '@/components/myTitle'
export default { export default {
name: '',
props: {},
components: {
NeedBefore,
MyTitle,
MyDialog
},
mixins: [TipsBefore], mixins: [TipsBefore],
created () {
if (sessionStorage.getItem('nomUsefulPhrasesOpenPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword')
}
// if(sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) {
// this.idNumberJudge = true
// this.form.idNumber = this.dataFlow.idNumber || '441515199812064569'
// }
// if(sessionStorage.getItem('nomUsefulPhrasesOpenCard')) {
// this.cardNumberJudge = true
// this.form.voucherNumber = this.dataFlow.voucherNumber || '159753'
// }
if (sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) {
this.idNumberJudge = true
//
const { idNumber, userName, peopleNumber, currency, goldLogo } = this.dataFlow
this.form.clientNumber = peopleNumber
this.form.idNumber = idNumber
this.form.customerName = userName
this.form.currency = currency
this.form.goldLogo = goldLogo
this.form.voucherType = 127
}
if (sessionStorage.getItem('nomUsefulPhrasesOpenCard')) {
this.cardNumberJudge = true
const { voucherNumber } = this.dataFlow
this.form.voucherNumber = voucherNumber
}
this.getFormData()
},
data () { data () {
return { return {
moduleName: 'usefulPhrases/openAccount', moduleName,
visible: false,
cardNumberJudge: false,
idNumberJudge: false,
form: { form: {
// applicationAccount: '',
// identityCard: '', // customerName: '',
idNumber: '', identificationType: '',
customerName: '', // identificationNumber: '',
currency: '', // contactPhoneNumber: '',
goldLogo: '', // companyRegisteredAddress: '',
voucherType: '', // corporateName: '',
monthDeposit: '', // corporateIdNumber: '',
depositTerm: '', // contactPhoneNumber: '',
extendDepositTarget: '', // currency: 12,
voucherNumber: '', // accountType: 97,
drawPassword: '', // interestRate: 3.2,
// interestCalculationMethod: 83,
clientNumber: '', // withdrawalMethod: 114,
certificateType: 83, // numberOfEmployees: '',
yearOfEstablishment: '',
registrationType: '',
mainBusinessScope: '',
expirationDateOfBusinessLicense: '',
financialReportSubmissionMethod: '',
natureOfBorrower: '',
}, },
formName: { formName: {
// applicationAccount: '账号',
// identityCard: '', // customerName: '客户名称',
idNumber: '身份证', identificationType: '证件类型',
customerName: '客户姓名', // identificationNumber: '证件号码',
currency: '币种', // contactPhoneNumber: '联系电话',
goldLogo: '钞汇标识', // companyRegisteredAddress: '注册地址',
voucherType: '凭证类型', // corporateName: '法人姓名',
monthDeposit: '月存金额', // corporateIdNumber: '法人证件号码',
depositTerm: '存期', // currency: '币种',
extendDepositTarget: '续存标识', // accountType: '账户类型',
voucherNumber: '凭证号码', // interestRate: '利率',
drawPassword: '支付密码', // interestCalculationMethod: '计息方式',
// withdrawalMethod: '支取方式',
clientNumber: '客户号', // numberOfEmployees: '员工人数',
certificateType: '证件类型', // yearOfEstablishment: '成立年份',
registrationType: '注册类型',
mainBusinessScope: '主营范围',
expirationDateOfBusinessLicense: '营业执照到期日',
financialReportSubmissionMethod: '财报提交方式',
natureOfBorrower: '借款人性质',
}, },
rules: { rules: {
customerName: vercustomer, applicationAccount: [
currency: [
{
required: true,
message: '请选择币种',
trigger: 'blur'
}
],
goldLogo: [
{
required: true,
message: '请选择钞汇标识',
trigger: 'blur'
}
],
voucherType: [
{
required: true,
message: '请选择凭证类型',
trigger: 'blur'
}
],
monthDeposit: [
{
required: true,
message: '请输入月存金额',
trigger: 'blur'
}
],
depositTerm: [
{
required: true,
message: '请选择存期',
trigger: 'blur'
}
],
extendDepositTarget: [
{ {
required: true, required: true,
message: '请选择续存标识', message: '请输入账号',
trigger: 'blur' trigger: 'blur'
} }
], ],
}, },
myTable2: {
158: {
prop: 'certificateType',//
type: '1',
"subjectId": 19,
},
// 169: {
// prop: 'customerManage',//
// type: '3',
// "subjectId": 27,
// },
160: {
prop: 'clientNumber',//
type: '3',
"subjectId": 6,
}
},
myTable: {
159: {
prop: 'idNumber',//
type: '3',
},
161: {
prop: 'customerName',//
type: '3',
"subjectId": 7,
},
162: {
prop: 'currency',//
type: '1',
"subjectId": 8,
},
163: {
prop: 'goldLogo',//
type: '1',
"subjectId": 9,
},
164: {
prop: 'voucherType',//
type: '1',
"subjectId": 11,
},
166: {
prop: 'voucherNumber',//
type: '3',
"subjectId": 44,
},
167: {
prop: 'drawPassword',
type: '3',
"subjectId": 17,
},
168: {
prop: 'monthDeposit',//
type: '3',
"subjectId": 31,
},
170: {
prop: 'extendDepositTarget',//
type: '1',
"subjectId": 37,
},
},
submited: 0 submited: 0
} }
}, },
mounted () { mounted () {
// this.getFormData()
}, },
methods: { methods: {
// userName,
// peopleNumber,
// idNumber,
// currency:'CNY',
// goldLogo:'',
...mapMutations({ ...mapMutations({
changeShowGoods: 'system/changeShowGoods', changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow', setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule', setNeedsModule: 'system/setNeedsModule',
setPopId: 'system/setPopId', setPopId: 'system/setPopId',
setTipsOperate: 'system/setTipsOperate' setTipsOperate: 'system/setTipsOperate',
setCreditIds: 'system/setCreditIds',
}), }),
getDataBlur () { // blur
// console.log('???') accountBlur (val) {
}, this.form.customerName = '袋鼠互联网科技有限公司'
popUp1 (text) { this.form.identificationType = 82
this.setTipsOperate('请刷身份证'); this.form.identificationNumber = '913403005685450862'
this.setPopId('1399') this.form.contactPhoneNumber = '15890317718'
sessionStorage.setItem('computerPath', this.$route.fullPath) this.form.companyRegisteredAddress = '广东省深圳市南山区前海一号2020室'
this.$router.push('/counter/list/') this.form.corporateName = '丛小凤'
}, this.form.corporateIdNumber = '220602199202281229'
popUp2 (text) {
this.setTipsOperate('请刷银行卡'); this.form.numberOfEmployees = 50
this.setPopId('166') this.form.yearOfEstablishment = '2018-02-19'
sessionStorage.setItem('computerPath', this.$route.fullPath) this.form.registrationType = '有限公司'
this.$router.push('/counter/list/') this.form.mainBusinessScope = '信息技术'
}, this.form.expirationDateOfBusinessLicense = '2024-01-01'
popUp3 (text) { this.form.financialReportSubmissionMethod = '半年'
this.setTipsOperate('请在密码器输入密码'); this.form.natureOfBorrower = '企业法人'
this.setPopId('167')
sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/')
}, },
getFormData () { getFormData () {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,155'
const cards = {
// 1399: 'nomUsefulPhrasesOpenCard2',
// 166: 'nomUsefulPhrasesOpenCard',
// 167: 'nomUsefulPhrasesOpenPassword'
}
const callback = () => {
if (this.form.idNumber) {
this.idNumberJudge = true
}
if (this.form.voucherNumber) {
this.cardNumberJudge = true
}
if (sessionStorage.getItem('nomUsefulPhrasesOpenPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword')
}
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
},
next () {
this.$emit('updateStep', 1)
},
submitForm () {
}, },
submitForm2 () { //
// let nomUsefulPhrasesOpenCard = sessionStorage.getItem('nomUsefulPhrasesOpenCard') async next () {
// let nomUsefulPhrasesOpenCard2 = sessionStorage.getItem('nomUsefulPhrasesOpenCard2') const { form } = this
// let nomUsefulPhrasesOpenPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword') if (!form.applicationAccount) {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,155' messageCard('请填写账号')
const cards = [ return
{ }
key: '159,13' try {
} const res = creditEvaluationInput(form)
// id
// { this.setCredit({
// 1399: nomUsefulPhrasesOpenCard2 companyLoanId: res.companyLoanId, // tabid
// }, creditEvaluationId: res.creditEvaluationId, // id
// { })
// 166: nomUsefulPhrasesOpenCard this.$emit('updateStep', 1)
// }, } catch { (e) => { } }
// {
// 167: nomUsefulPhrasesOpenPassword,
// "subjectId": 17,
// }
]
this.setDataFlow(this.form)
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
this.submited = 1
}, },
ismoney: ismoney, ismoney,
checkHanzi: checkHanzi, checkHanzi,
checkName: checkName, checkName,
inputListen: inputListen inputListen,
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({

@ -34,35 +34,95 @@
<el-button @click="$emit('updateStep', 0)" type="primary" class="submitBtn" v-throttle>上一步</el-button> <el-button @click="$emit('updateStep', 0)" type="primary" class="submitBtn" v-throttle>上一步</el-button>
<el-button @click="next" type="primary" class="submitBtn" v-throttle>下一步</el-button> <el-button @click="next" type="primary" class="submitBtn" v-throttle>下一步</el-button>
</div> </div>
<div v-show="showPop" width="900px" class="data-dia z500 max-h-screen 2xl:-mt-20;" ref="dataDia" v-drag>
<div class="dia-header h-1/6">
<div class="data-title">{{ popText }}</div>
<div class="close-wrap">
<img class="close" v-lazy="lazyImg[28]" alt="" @click="closePop" />
</div>
</div>
<p class="tips">- 请从物品栏选中或拖拽所需材料 -</p>
<div class="list" ref="popUp">
<div class="img-wrap" :class="{ checked: commonChecked.includes(item.id), 'img-wrap': true }"
v-for="(item, index) in receptionList" :key="item.id" @click='dislodgeItem(index)'>
<!-- <img :src="item.src" class="file" alt="" /> -->
<el-image :src="item.src" class="file" :alt="item.name" :title="item.name" fit="scale-down"></el-image>
<p class="text">{{ item.name }}</p>
</div>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
import Upload from '@/components/upload'; import Upload from '@/components/upload';
import { addOperation, creditEvaluationInput } from '@/api/http'
const moduleName = 'usefulPhrases/openAccount'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog'
import TipsBefore from '@/mixins/tipsBefore' import TipsBefore from '@/mixins/tipsBefore'
import MyTitle from '@/components/myTitle'
const moduleName = 'creditEva/importReport'
export default { export default {
name: '',
props: {},
components: { components: {
Upload Upload
}, },
created () { computed: {
popText: function () {/* 文字 */
return this.$store.state.system.popText;
},
showGoods: function () {
return this.$store.state.system.showGoods
},
//
showPop: function () {
const dataDia = this.$refs.dataDia
//
if (dataDia) {
dataDia.style.top = '68px'
dataDia.style.left = '50%'
}
this.$refs.dataDia
this.receptionList = []
this.passwordForm.passwordAgain = ''
this.passwordForm.password2 = ''
if (!this.showGoods) this.checkList = []
return this.$store.state.system.showPop;
},
}, },
data () { data () {
return { return {
commonChecked: [],//
receptionList: [],
} }
}, },
mounted () { mounted () {
}, },
methods: { methods: {
...mapMutations({
changeShowGoods: 'system/changeShowGoods',
}),
showData (type, nbm) {/* 展示弹窗-type为弹窗标题文字 */
this.nbm = nbm
//
this.changeShowGoods(true)
if (type !== '系统') {
this.$store.commit('system/changePop', { show: true, text: type, id: this.id })
}
},
closePop () {//
// v-drag
document.onmousemove = null
document.onmouseup = null
this.receptionList = [];
this.changeShowGoods(false)
this.$store.commit('system/changePop', { show: false, text: '' })
},
uploadSuccess (file) { uploadSuccess (file) {
this.fileId = '' this.fileId = ''
this.fileType = file.format this.fileType = file.format

@ -51,7 +51,7 @@ export default {
CreditApplication, CreditApplication,
LoanApplication1, LoanApplication1,
LoanApplication2, LoanApplication2,
MyTitle MyTitle,
}, },
data () { data () {
return { return {
@ -74,7 +74,7 @@ export default {
}, },
methods: { methods: {
handleSelect (val) { handleSelect (val) {
this.curStep = 0 this.curStep = 1
this.text = this.textObj[val] this.text = this.textObj[val]
this.activeIndex = val this.activeIndex = val
this.cacheVal = val this.cacheVal = val

@ -68,9 +68,8 @@
</div> </div>
</template> </template>
<script> <script>
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { myValidate, ismoney, checkName, checkHanzi, messagePassword, messageCard, inputListen } from '@/utils/utilFunction.js' import { myValidate, ismoney, checkName, checkHanzi, messagePassword, messageCard, inputListen } from '@/utils/utilFunction.js'
import { addOperation, getOperation } from '@/api/http'; import { addOperation, getOperation } from '@/api/http'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import TipsBefore from '@/mixins/tipsBefore' import TipsBefore from '@/mixins/tipsBefore'

@ -2,85 +2,48 @@
<template> <template>
<div class="wrap"> <div class="wrap">
<MyTitle :titleArr="['个人贷款', '新增贷款申请']" /> <MyTitle :titleArr="['个人贷款', '新增贷款申请']" />
<el-row :gutter="20" <el-row :gutter="20" style="margin: 0">
style="margin: 0"> <el-form ref="form" :model="form" label-width="120px" :rules="rules">
<el-form ref="form"
:model="form"
label-width="120px"
:rules="rules">
<template v-if="curStep === 1 || isDetail"> <template v-if="curStep === 1 || isDetail">
<el-col :span="24"> <el-col :span="24">
<h6 class="l-title">基本信息</h6> <h6 class="l-title">基本信息</h6>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1"> <el-form-item label="证件类型" prop="idType">
<el-form-item label="证件类型" <el-select v-model.trim="form.idType" placeholder="请选择" disabled>
prop="certificateType"> <el-option label="身份证" :value="83"> </el-option>
<el-select v-model.trim="form.certificateType"
placeholder="请选择"
ref="certificateType"
disabled>
<el-option label="身份证"
:value="83"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" <el-form-item label="客户姓名" prop="customerName">
prop="customerName"> <el-input disabled v-model="form.customerName" @input="(val) => checkName(val, form, 'customerName')" />
<el-input ref="customerName" </el-form-item>
disabled <el-form-item label="出生日期" prop="birthDate">
v-model="form.customerName" <el-date-picker disabled v-model.trim="form.birthDate" type="date" placeholder="选择日期" format="yyyy-MM-dd"
@input="(val) => checkName(val, form, 'customerName')"></el-input>
</el-form-item>
<el-form-item label="出生日期"
prop="birthday">
<el-date-picker disabled
v-model.trim="form.birthday"
type="date"
placeholder="选择日期"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1"> <el-form-item label="证件号码" required>
<el-form-item label="证件号码" <div class="idCard" @click="popUp1('身份证扫描仪')" v-if='!idNumberJudge'>
required>
<div class="idCard"
@click="popUp1('身份证扫描仪')"
v-if='!idNumberJudge'>
<p>请刷身份证</p> <p>请刷身份证</p>
</div> </div>
<div v-else> <div v-else>
<el-input v-model="form.idNumber" <el-input v-model="form.idNumber" disabled ref="idNumber" />
disabled
ref="idNumber"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="性别" <el-form-item label="性别" prop="gender">
prop="sex"> <el-select v-model.trim="form.gender" disabled placeholder="请选择">
<el-select v-model.trim="form.sex" <el-option :key="1" label="男" :value="1">
disabled
placeholder="请选择"
ref='sex'>
<el-option :key="1"
label="男"
:value="1">
</el-option> </el-option>
<el-option :key="2" <el-option :key="2" label="女" :value="2">
label="女"
:value="2">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="联系电话" <el-form-item label="联系电话" prop="phoneNumber">
:rules="rules.phone" <el-input v-model="form.phoneNumber" @input="(val) => phoneListen(val, form, 'phoneNumber')"
prop="phone"> maxlength="11" />
<el-input v-model="form.phone"
@input="(val) => phoneListen(val, form, 'phone')"
maxlength="12"
ref='phone'></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -88,23 +51,20 @@
<div class="line"></div> <div class="line"></div>
<h6 class="l-title">收入信息</h6> <h6 class="l-title">收入信息</h6>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1">
<el-form-item label="岗位"> <el-form-item label="岗位">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.position" />
</el-form-item> </el-form-item>
<el-form-item label="当前单位工作年限" <el-form-item label="当前单位工作年限" label-width="150px">
label-width="150px"> <el-input v-model="form.currentWorkYears" />
<el-input v-model="form.customerName"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1">
<el-form-item label="薪酬"> <el-form-item label="薪酬">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.salary" />
</el-form-item> </el-form-item>
<el-form-item label="工龄"> <el-form-item label="工龄">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.totalWorkYears" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -112,34 +72,29 @@
<div class="line"></div> <div class="line"></div>
<h6 class="l-title">房产信息</h6> <h6 class="l-title">房产信息</h6>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1">
<el-form-item label="产权人"> <el-form-item label="产权人">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.propertyOwner" />
</el-form-item> </el-form-item>
<el-form-item label="共有情况"> <el-form-item label="共有情况">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.coOwnership" />
</el-form-item> </el-form-item>
<el-form-item label="权利类型"> <el-form-item label="权利性质">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.propertyRightNature" />
</el-form-item> </el-form-item>
<el-form-item label="面积"> <el-form-item label="使用期限">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.usagePeriodStart" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1">
<el-form-item label="房产证号"> <el-form-item label="房产证号">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.propertyCertificateNo" />
</el-form-item> </el-form-item>
<el-form-item label="坐落"> <el-form-item label="坐落">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.location" />
</el-form-item>
<el-form-item label="权利性质">
<el-input v-model="form.customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="使用期限"> <el-form-item label="面积">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.area" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</template> </template>
@ -149,100 +104,65 @@
<div class="line"></div> <div class="line"></div>
<h6 class="l-title">贷款合同</h6> <h6 class="l-title">贷款合同</h6>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1">
<el-form-item label="贷款类型"> <el-form-item label="贷款类型">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.customerName" />
</el-form-item> </el-form-item>
<el-form-item label="合同金额"> <el-form-item label="合同金额">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.customerName" />
</el-form-item> </el-form-item>
<el-form-item label="起息日期" <el-form-item label="起息日期" prop="customerName">
prop="customerName"> <el-input ref="customerName" v-model="form.customerName"></el-input>
<el-input ref="customerName" </el-form-item>
v-model="form.customerName"></el-input> <el-form-item label="计息方式" prop="customerName">
</el-form-item> <el-input ref="customerName" v-model="form.customerName"></el-input>
<el-form-item label="计息方式" </el-form-item>
prop="customerName"> <el-form-item label="浮动比例" prop="customerName">
<el-input ref="customerName" <el-input ref="customerName" v-model="form.customerName"></el-input>
v-model="form.customerName"></el-input> </el-form-item>
</el-form-item> <el-form-item label="逾期利率" prop="customerName">
<el-form-item label="浮动比例" <el-input ref="customerName" v-model="form.customerName"></el-input>
prop="customerName"> </el-form-item>
<el-input ref="customerName" <el-form-item label="还款方式" prop="customerName">
v-model="form.customerName"></el-input> <el-input ref="customerName" v-model="form.customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="逾期利率" <el-form-item label="还款账号" prop="customerName">
prop="customerName"> <el-input ref="customerName" v-model="form.customerName"></el-input>
<el-input ref="customerName"
v-model="form.customerName"></el-input>
</el-form-item>
<el-form-item label="还款方式"
prop="customerName">
<el-input ref="customerName"
v-model="form.customerName"></el-input>
</el-form-item>
<el-form-item label="还款账号"
prop="customerName">
<el-input ref="customerName"
v-model="form.customerName"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1"> <el-form-item label="合同编号" prop="customerName">
<el-form-item label="合同编号" <el-input ref="customerName" v-model="form.customerName"></el-input>
prop="customerName"> </el-form-item>
<el-input ref="customerName" <el-form-item label="贷款期限" prop="customerName">
v-model="form.customerName"></el-input> <el-input ref="customerName" v-model="form.customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="贷款期限" <el-form-item label="到期日期" prop="customerName">
prop="customerName"> <el-input ref="customerName" v-model="form.customerName"></el-input>
<el-input ref="customerName" </el-form-item>
v-model="form.customerName"></el-input> <el-form-item label="基准利率" prop="customerName">
</el-form-item> <el-input ref="customerName" v-model="form.customerName"></el-input>
<el-form-item label="到期日期" </el-form-item>
prop="customerName"> <el-form-item label="执行利率" prop="customerName">
<el-input ref="customerName" <el-input ref="customerName" v-model="form.customerName"></el-input>
v-model="form.customerName"></el-input> </el-form-item>
</el-form-item> <el-form-item label="担保方式" prop="customerName">
<el-form-item label="基准利率" <el-input ref="customerName" v-model="form.customerName"></el-input>
prop="customerName"> </el-form-item>
<el-input ref="customerName" <el-form-item label="利息总额" prop="customerName">
v-model="form.customerName"></el-input> <el-input ref="customerName" v-model="form.customerName"></el-input>
</el-form-item>
<el-form-item label="执行利率"
prop="customerName">
<el-input ref="customerName"
v-model="form.customerName"></el-input>
</el-form-item>
<el-form-item label="担保方式"
prop="customerName">
<el-input ref="customerName"
v-model="form.customerName"></el-input>
</el-form-item>
<el-form-item label="利息总额"
prop="customerName">
<el-input ref="customerName"
v-model="form.customerName"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</template> </template>
</el-form> </el-form>
</el-row> </el-row>
<my-dialog :moduleName="moduleName" <my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName"
v-if="visible" @submitIt="submitForm2" depositNumber='0816' />
:visible.sync="visible"
:showForm="form"
:formName="formName"
@submitIt="submitForm2"
depositNumber='0816' />
<div class="text-center"> <div class="text-center">
<el-button @click="next" <el-button @click="next" type="primary" class="submitBtn" v-throttle>{{ curStep === 1 ? '下一步' : '提交'
type="primary" }}</el-button>
class="submitBtn"
v-throttle>{{ curStep === 1 ? '下一步' : '提交' }}</el-button>
</div> </div>
</div> </div>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> --> <!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> -->
@ -250,6 +170,7 @@
<script> <script>
import { phoneListen, myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js'; import { phoneListen, myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js';
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { addOperation, personalBasicSave } from '@/api/http'
const moduleName = 'usefulPhrases/openAccount' const moduleName = 'usefulPhrases/openAccount'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
@ -277,42 +198,43 @@ export default {
cardNumberJudge: false, cardNumberJudge: false,
idNumberJudge: false, idNumberJudge: false,
form: { form: {
// idType: 83,
// identityCard: '', //
idNumber: '', idNumber: '',
customerName: '', // customerName: '',
currency: '', // gender: '',
goldLogo: '', // birthDate: '',
voucherType: '', // phoneNumber: '',
monthDeposit: '', // position: '',
depositTerm: '', // salary: '',
extendDepositTarget: '', // currentWorkYears: '',
voucherNumber: '', // totalWorkYears: '',
drawPassword: '', // propertyOwner: '',
// propertyCertificateNo: '',
clientNumber: '', // coOwnership: '',
certificateType: 83, // location: '',
phone: '',// propertyRightNature: '',
birthday: null,// area: '',
usagePeriodStart: '',
usagePeriodEnd: '',
}, },
formName: { formName: {
// idType: '证件类型',
// identityCard: '', // idNumber: '证件号码',
idNumber: '身份证', customerName: '证件号码',
customerName: '客户姓名', // gender: '性别',
currency: '币种', // birthDate: '出生日期',
goldLogo: '钞汇标识', // phoneNumber: '联系电话',
voucherType: '凭证类型', // position: '岗位',
monthDeposit: '月存金额', // salary: '薪酬',
depositTerm: '存期', // currentWorkYears: '当前单位工作年限',
extendDepositTarget: '续存标识', // totalWorkYears: '工龄',
voucherNumber: '凭证号码', // propertyOwner: '产权人',
drawPassword: '支付密码', // propertyCertificateNo: '房产证号',
// coOwnership: '共有情况',
clientNumber: '客户号', // location: '坐落',
certificateType: '证件类型', // propertyRightNature: '权利性质',
phone: '联系电话', area: '面积',
birthday: '出生日期', usagePeriodStart: '使用期限',
}, },
rules: { rules: {
customerName: vercustomer, customerName: vercustomer,
@ -323,122 +245,6 @@ export default {
trigger: 'blur' trigger: 'blur'
} }
], ],
phone: [
{
required: true,
message: '请输入联系电话',
trigger: 'blur'
},
{
pattern: mobPattern,
message: '联系电话格式有误'
}
],
currency: [
{
required: true,
message: '请选择币种',
trigger: 'blur'
}
],
goldLogo: [
{
required: true,
message: '请选择钞汇标识',
trigger: 'blur'
}
],
voucherType: [
{
required: true,
message: '请选择凭证类型',
trigger: 'blur'
}
],
monthDeposit: [
{
required: true,
message: '请输入月存金额',
trigger: 'blur'
}
],
depositTerm: [
{
required: true,
message: '请选择存期',
trigger: 'blur'
}
],
extendDepositTarget: [
{
required: true,
message: '请选择续存标识',
trigger: 'blur'
}
],
},
myTable2: {
158: {
prop: 'certificateType',//
type: '1',
"subjectId": 19,
},
// 169: {
// prop: 'customerManage',//
// type: '3',
// "subjectId": 27,
// },
160: {
prop: 'clientNumber',//
type: '3',
"subjectId": 6,
}
},
myTable: {
159: {
prop: 'idNumber',//
type: '3',
},
161: {
prop: 'customerName',//
type: '3',
"subjectId": 7,
},
162: {
prop: 'currency',//
type: '1',
"subjectId": 8,
},
163: {
prop: 'goldLogo',//
type: '1',
"subjectId": 9,
},
164: {
prop: 'voucherType',//
type: '1',
"subjectId": 11,
},
166: {
prop: 'voucherNumber',//
type: '3',
"subjectId": 44,
},
167: {
prop: 'drawPassword',
type: '3',
"subjectId": 17,
},
168: {
prop: 'monthDeposit',//
type: '3',
"subjectId": 31,
},
170: {
prop: 'extendDepositTarget',//
type: '1',
"subjectId": 37,
},
}, },
submited: 0, submited: 0,
curRoute: '', curRoute: '',
@ -451,31 +257,31 @@ export default {
mounted () { mounted () {
this.curRoute = this.$route.path this.curRoute = this.$route.path
if (sessionStorage.getItem('nomPersonalLoans')) { if (sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) {
this.idNumberJudge = true this.idNumberJudge = true
const { userName, sex, birthday, nationality, mailbox, idNumber } = this.dataFlow this.form = {
this.form.idNumber = idNumber idType: 83,
this.form.idType = 83 idNumber: '220602199202281229',
this.form.userName = userName customerName: '丛小风',
// let sexs = null gender: 2,
// if (sex == ''){ birthDate: '1992-02-28',
// sexs = 1 phoneNumber: '15890317718',
// }else{ position: '会计主管',
// sexs = 2 salary: '80',
// } currentWorkYears: '5年',
this.form.sex = sex totalWorkYears: '12年',
this.form.birthday = birthday propertyOwner: '丛小风',
// this.form.nationality = nationality propertyCertificateNo: '不动产权第012000号',
// this.form.mailbox = mailbox coOwnership: '单独所有',
location: '前海新区深圳湾一号1612',
propertyRightNature: '出让/商品房',
area: '建筑面积: 189平方米',
usagePeriodStart: '70年,2018.3.15 至 2088.3.14 止',
usagePeriodEnd: '',
}
} }
}, },
methods: { methods: {
// userName,
// peopleNumber,
// idNumber,
// currency:'CNY',
// goldLogo:'',
...mapMutations({ ...mapMutations({
changeShowGoods: 'system/changeShowGoods', changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow', setDataFlow: 'system/setDataFlow',
@ -489,107 +295,24 @@ export default {
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
next () { async next () {
if (this.curStep < 2) { if (this.curStep < 2) {
try {
const res = personalBasicSave(form)
this.curStep++ this.curStep++
} catch { (e) => { } }
} else { } else {
} }
}, },
getFormData () { getFormData () {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,155'
const cards = {
// 1399: 'nomUsefulPhrasesOpenCard2',
// 166: 'nomUsefulPhrasesOpenCard',
// 167: 'nomUsefulPhrasesOpenPassword'
}
const callback = () => {
if (this.form.idNumber) {
this.idNumberJudge = true
}
if (this.form.voucherNumber) {
this.cardNumberJudge = true
}
if (sessionStorage.getItem('nomUsefulPhrasesOpenPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword')
}
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
},
submitForm () {
if (this.submited) return this.$message.error('已提交!')
if (!this.form.idNumber) {
messageIdCard()
// let projectId = sessionStorage.getItem('projectId')
// let startTime = sessionStorage.getItem('startTime')
// let formList = [
// {
// "answerId":'159',
// "emptyOne": "",
// "emptyTwo": "",
// "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,26,59,155,159,13",
// "type": ""
// }
// ]
// let params= {
// parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,155,159',
// lcJudgmentRuleReq:formList,
// projectId:+projectId,
// startTime:startTime,
// }
// addOperation(params).then((data)=>{
// this.$message({
// message: '',
// type: 'success'
// });
// }).catch((error)=>{
// })
return
}
if (!this.form.voucherNumber) {
messageCard('请填写凭证号码')
return
}
if (!this.form.drawPassword) {
messagePassword()
return
}
this.$refs.form.validate(myValidate(() => {
//
this.visible = true;
}, this.$refs));
}, },
submitForm2 () { submitForm2 () {
// let nomUsefulPhrasesOpenCard = sessionStorage.getItem('nomUsefulPhrasesOpenCard')
// let nomUsefulPhrasesOpenCard2 = sessionStorage.getItem('nomUsefulPhrasesOpenCard2')
// let nomUsefulPhrasesOpenPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword')
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,155'
const cards = [
{
key: '159,13'
}
// {
// 1399: nomUsefulPhrasesOpenCard2
// },
// {
// 166: nomUsefulPhrasesOpenCard
// },
// {
// 167: nomUsefulPhrasesOpenPassword,
// "subjectId": 17,
// }
]
this.setDataFlow(this.form)
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
this.submited = 1
}, },
phoneListen, phoneListen,
ismoney: ismoney, checkName,
checkHanzi: checkHanzi,
checkName: checkName,
inputListen: inputListen
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({
@ -608,11 +331,13 @@ export default {
height: calc(90vh - 27px); height: calc(90vh - 27px);
padding: 20px; padding: 20px;
overflow: auto; overflow: auto;
.l-title { .l-title {
margin-bottom: 15px; margin-bottom: 15px;
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
} }
.line { .line {
margin: 20px 0; margin: 20px 0;
border-bottom: 1px dashed #d7d7d7; border-bottom: 1px dashed #d7d7d7;

@ -1,7 +1,3 @@
/* 银行系统 */
/* 所有物品名字 这里能将东西查找出来并渲染上物品栏 */ /* 所有物品名字 这里能将东西查找出来并渲染上物品栏 */
const allGoods = { const allGoods = {
469: { name: '预留印鉴卡(一)', src: require('@/assets/img/goods/预留印鉴卡.png'), id: 469 }, 469: { name: '预留印鉴卡(一)', src: require('@/assets/img/goods/预留印鉴卡.png'), id: 469 },
@ -2735,6 +2731,7 @@ export default {
// 初始化公共数据 // 初始化公共数据
allDataFlow: { ...allDataFlow }, allDataFlow: { ...allDataFlow },
isCredit: false, isCredit: false,
creditIds: {},
}, },
mutations: { mutations: {
// 设置tipDialog组件提示的信息。这个组件是根据UI设计的。 // 设置tipDialog组件提示的信息。这个组件是根据UI设计的。
@ -3193,6 +3190,10 @@ export default {
setCredit (state, val) { setCredit (state, val) {
state.isCredit = val state.isCredit = val
}, },
// 缓存信用评估id
setCreditIds (state, val) {
state.creditIds = val
},
}, },
actions: { actions: {
}, },

Loading…
Cancel
Save