|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
<!-- 代收电费 --> |
|
|
|
|
<!-- 公司贷款详情 --> |
|
|
|
|
<template> |
|
|
|
|
<div class="wrap"> |
|
|
|
|
<MyTitle :titleArr="['公司贷款', '贷款详情']" /> |
|
|
|
@ -8,40 +8,33 @@ |
|
|
|
|
<h6 class="l-title">信用评估</h6> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="账号" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" disabled :value="form.customerName" |
|
|
|
|
@input="(val) => checkName(val, form, 'customerName')"></el-input> |
|
|
|
|
<el-form-item label="账号"> |
|
|
|
|
<el-input v-model="form.applicationNumber" disabled /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="证件类型" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" disabled :value="form.customerName" |
|
|
|
|
@input="(val) => checkName(val, form, 'customerName')"></el-input> |
|
|
|
|
<el-form-item label="证件类型"> |
|
|
|
|
<el-select v-model.trim="form.identificationType" placeholder="请选择" disabled> |
|
|
|
|
<el-option label="统一社会信用代码证" :value="82"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="注册地址" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" disabled :value="form.customerName" |
|
|
|
|
@input="(val) => checkName(val, form, 'customerName')"></el-input> |
|
|
|
|
<el-form-item label="注册地址"> |
|
|
|
|
<el-input v-model="form.companyRegisteredAddress" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="法人证件号码" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" disabled :value="form.customerName" |
|
|
|
|
@input="(val) => checkName(val, form, 'customerName')"></el-input> |
|
|
|
|
<el-form-item label="法人证件号码"> |
|
|
|
|
<el-input v-model="form.corporateIdNumber" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="客户名称" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" disabled :value="form.customerName" |
|
|
|
|
@input="(val) => checkName(val, form, 'customerName')"></el-input> |
|
|
|
|
<el-form-item label="客户名称"> |
|
|
|
|
<el-input v-model="form.customerName" disabled /> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="证件号码" required> |
|
|
|
|
<el-input :value="form.mailbox" @input="val => mailBoxListen(val, form, 'mailbox')" maxlength="30" |
|
|
|
|
ref="mailbox"></el-input> |
|
|
|
|
<el-form-item label="证件号码"> |
|
|
|
|
<el-input v-model="form.corporateIdNumber" disabled /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="法人姓名" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" disabled :value="form.customerName" |
|
|
|
|
@input="(val) => checkName(val, form, 'customerName')"></el-input> |
|
|
|
|
<el-form-item label="法人姓名"> |
|
|
|
|
<el-input v-model="form.corporateName" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="信用评级" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" disabled :value="form.customerName" |
|
|
|
|
@input="(val) => checkName(val, form, 'customerName')"></el-input> |
|
|
|
|
<el-form-item label="信用评级"> |
|
|
|
|
<el-input v-model="form.creditRating" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
@ -50,9 +43,8 @@ |
|
|
|
|
<h6 class="l-title">授信</h6> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="授信金额" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName" |
|
|
|
|
@input="(val) => checkName(val, form, 'customerName')"></el-input> |
|
|
|
|
<el-form-item label="授信金额"> |
|
|
|
|
<el-input v-model="form.creditAmount" disabled /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
@ -61,19 +53,25 @@ |
|
|
|
|
<h6 class="l-title">贷款申请</h6> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="授信年限" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="授信年限" required> |
|
|
|
|
<el-select v-model="form.creditTerm" placeholder="请选择"> |
|
|
|
|
<el-option v-for="(item, i) in opt1" :key="i" :label="item.name" :value="item.id"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="还款方式" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="还款方式" required> |
|
|
|
|
<el-select v-model.trim="form.repaymentMethod" placeholder="请选择"> |
|
|
|
|
<el-option v-for="(item, i) in opt2" :key="i" :label="item.name" :value="item.id"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="年化利率" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="年化利率"> |
|
|
|
|
<el-input value="3.2%" disabled /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="发放方式" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="发放方式" required> |
|
|
|
|
<el-select v-model.trim="form.distributionMethod" placeholder="请选择"> |
|
|
|
|
<el-option v-for="(item, i) in opt3" :key="i" :label="item.name" :value="item.id"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
@ -82,414 +80,153 @@ |
|
|
|
|
<h6 class="l-title">贷款合同录入</h6> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="贷款类型" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="贷款类型"> |
|
|
|
|
<el-select value="企业经营贷款" placeholder="请选择"> |
|
|
|
|
<el-option value="企业经营贷款"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="授信金额" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="授信金额"> |
|
|
|
|
<el-input v-model="form.creditAmount" disabled /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="起息日期" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="起息日期" prop="valueDate"> |
|
|
|
|
<el-date-picker v-model="form.valueDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" |
|
|
|
|
value-format="yyyy-MM-dd"></el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="计息方式" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="计息方式"> |
|
|
|
|
<el-input value="按LPR浮动计息" disabled /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="执行利率" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="执行利率" prop="executedInterestRate"> |
|
|
|
|
<el-input value="3.2%" disabled /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="担保方式" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="担保方式"> |
|
|
|
|
<el-select v-model="form.guaranteeMethod" placeholder="请选择"> |
|
|
|
|
<el-option v-for="(item, i) in loanTerms" :key="i" :label="item.name" :value="item.id"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="利息总额" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="利息总额"> |
|
|
|
|
<el-input v-model="form.totalInterestAmount" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="还款账号" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="还款账号"> |
|
|
|
|
<el-input v-model="form.repaymentAccount" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="合同编号" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="合同编号" prop="contractNo"> |
|
|
|
|
<el-input v-model="form.contractNo" disabled /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="授信期限" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="授信期限"> |
|
|
|
|
<el-select v-model="form.creditTerm" placeholder="请选择"> |
|
|
|
|
<el-option v-for="(item, i) in loanTerms" :key="i" :label="item.name" :value="item.id"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="到期日期" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="到期日期"> |
|
|
|
|
<el-date-picker v-model="form.expirationDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" |
|
|
|
|
value-format="yyyy-MM-dd" disabled></el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="基准利率" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="基准利率" prop="baseInterestRate"> |
|
|
|
|
<el-input value="3.20%" disabled /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="逾期利率" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="逾期利率" prop="overdueInterestRate"> |
|
|
|
|
<el-input value="10%" disabled /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="还款方式" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="还款方式" prop="repaymentMethod"> |
|
|
|
|
<el-select v-model="form.repaymentMethod" placeholder="请选择" disabled> |
|
|
|
|
<el-option label="等额本金" :value="1"></el-option> |
|
|
|
|
<el-option label="等额本息" :value="2"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="贷款申请金额" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName"></el-input> |
|
|
|
|
<el-form-item label="贷款金额"> |
|
|
|
|
<el-input v-model="form.loanAmount" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-form> |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" |
|
|
|
|
@submitIt="submitForm2" depositNumber='0816' /> |
|
|
|
|
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>下一步</el-button> |
|
|
|
|
<div class="text-center"> |
|
|
|
|
<el-button @click="showLoan" type="primary" class="submitBtn" v-throttle>放款</el-button> |
|
|
|
|
<el-button @click="$router.back()" type="primary" class="submitBtn" v-throttle>关闭</el-button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-dialog title="放款" :visible.sync="loanVisible" width="300px" z-index="6000" :append-to-body="true"> |
|
|
|
|
<el-date-picker v-model="loanDate" type="date" placeholder="请选择放款日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" |
|
|
|
|
style="width: 100%;"></el-date-picker> |
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
<el-button @click="loanVisible = false">取消</el-button> |
|
|
|
|
<el-button type="primary" @click="loanSubmit">确定</el-button> |
|
|
|
|
</span> |
|
|
|
|
</el-dialog> |
|
|
|
|
</div> |
|
|
|
|
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> --> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js'; |
|
|
|
|
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' |
|
|
|
|
|
|
|
|
|
const moduleName = 'usefulPhrases/openAccount' |
|
|
|
|
import { mapMutations, mapGetters } from 'vuex' |
|
|
|
|
import NeedBefore from '@/components/needBefore' |
|
|
|
|
import MyDialog from '@/components/dialog' |
|
|
|
|
import TipsBefore from '@/mixins/tipsBefore' |
|
|
|
|
import { loanDisbursement, companyLoanDetails } from '@/api/http' |
|
|
|
|
import MyTitle from '@/components/myTitle' |
|
|
|
|
export default { |
|
|
|
|
name: '', |
|
|
|
|
props: {}, |
|
|
|
|
components: { |
|
|
|
|
NeedBefore, |
|
|
|
|
MyTitle, |
|
|
|
|
MyDialog |
|
|
|
|
}, |
|
|
|
|
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 () { |
|
|
|
|
return { |
|
|
|
|
moduleName: 'usefulPhrases/openAccount', |
|
|
|
|
visible: false, |
|
|
|
|
cardNumberJudge: false, |
|
|
|
|
idNumberJudge: false, |
|
|
|
|
id: this.$route.query.id, |
|
|
|
|
form: { |
|
|
|
|
// 必填项 |
|
|
|
|
// identityCard: '', // 身份证 |
|
|
|
|
idNumber: '', |
|
|
|
|
customerName: '', // 客户姓名 |
|
|
|
|
currency: '', // 币种 |
|
|
|
|
goldLogo: '', // 钞汇标识 |
|
|
|
|
voucherType: '', // 凭证类型 |
|
|
|
|
monthDeposit: '', // 月存金额 |
|
|
|
|
depositTerm: '', // 存期 |
|
|
|
|
extendDepositTarget: '', // 续存标识 |
|
|
|
|
voucherNumber: '', // 凭证号码 |
|
|
|
|
drawPassword: '', // 支付密码 |
|
|
|
|
// 非必填项 |
|
|
|
|
clientNumber: '', // 客户号 |
|
|
|
|
certificateType: 83, // 证件类型 |
|
|
|
|
}, |
|
|
|
|
formName: { |
|
|
|
|
// 必填项 |
|
|
|
|
// identityCard: '', // 身份证 |
|
|
|
|
idNumber: '身份证', |
|
|
|
|
customerName: '客户姓名', // |
|
|
|
|
currency: '币种', // |
|
|
|
|
goldLogo: '钞汇标识', // |
|
|
|
|
voucherType: '凭证类型', // |
|
|
|
|
monthDeposit: '月存金额', // |
|
|
|
|
depositTerm: '存期', // |
|
|
|
|
extendDepositTarget: '续存标识', // |
|
|
|
|
voucherNumber: '凭证号码', // |
|
|
|
|
drawPassword: '支付密码', // |
|
|
|
|
// 非必填项 |
|
|
|
|
clientNumber: '客户号', // |
|
|
|
|
certificateType: '证件类型', // |
|
|
|
|
}, |
|
|
|
|
rules: { |
|
|
|
|
customerName: vercustomer, |
|
|
|
|
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, |
|
|
|
|
} |
|
|
|
|
applicationAccount: '', |
|
|
|
|
customerName: '', |
|
|
|
|
identificationType: '', |
|
|
|
|
identificationNumber: '', |
|
|
|
|
contactPhoneNumber: '', |
|
|
|
|
companyRegisteredAddress: '', |
|
|
|
|
corporateName: '', |
|
|
|
|
corporateIdNumber: '', |
|
|
|
|
contactPhoneNumber: '', |
|
|
|
|
currency: 12, |
|
|
|
|
accountType: 97, |
|
|
|
|
interestRate: 3.2, |
|
|
|
|
interestCalculationMethod: 83, |
|
|
|
|
withdrawalMethod: 114, |
|
|
|
|
numberOfEmployees: '', |
|
|
|
|
yearOfEstablishment: '', |
|
|
|
|
registrationType: '', |
|
|
|
|
mainBusinessScope: '', |
|
|
|
|
expirationDateOfBusinessLicense: '', |
|
|
|
|
financialReportSubmissionMethod: '', |
|
|
|
|
natureOfBorrower: '', |
|
|
|
|
}, |
|
|
|
|
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 |
|
|
|
|
loanDate: '', |
|
|
|
|
loanVisible: false, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted () { |
|
|
|
|
|
|
|
|
|
this.getDetail() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// userName, |
|
|
|
|
// peopleNumber, |
|
|
|
|
// idNumber, |
|
|
|
|
// currency:'CNY人民币', |
|
|
|
|
// goldLogo:'钞户', |
|
|
|
|
...mapMutations({ |
|
|
|
|
changeShowGoods: 'system/changeShowGoods', |
|
|
|
|
setDataFlow: 'system/setDataFlow', |
|
|
|
|
setNeedsModule: 'system/setNeedsModule', |
|
|
|
|
setPopId: 'system/setPopId', |
|
|
|
|
setTipsOperate: 'system/setTipsOperate' |
|
|
|
|
}), |
|
|
|
|
getDataBlur () { |
|
|
|
|
// console.log('???') |
|
|
|
|
}, |
|
|
|
|
popUp1 (text) { |
|
|
|
|
this.setTipsOperate('请刷身份证'); |
|
|
|
|
this.setPopId('1399') |
|
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
|
this.$router.push('/counter/list/') |
|
|
|
|
}, |
|
|
|
|
popUp2 (text) { |
|
|
|
|
this.setTipsOperate('请刷银行卡'); |
|
|
|
|
this.setPopId('166') |
|
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
|
this.$router.push('/counter/list/') |
|
|
|
|
}, |
|
|
|
|
popUp3 (text) { |
|
|
|
|
this.setTipsOperate('请在密码器输入密码'); |
|
|
|
|
this.setPopId('167') |
|
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
|
this.$router.push('/counter/list/') |
|
|
|
|
}, |
|
|
|
|
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') |
|
|
|
|
} |
|
|
|
|
// 查询详情 |
|
|
|
|
async getDetail () { |
|
|
|
|
if (this.id) { |
|
|
|
|
// 查看及展期 |
|
|
|
|
const { data } = await companyLoanDetails(this.id) |
|
|
|
|
this.form = data.bankCreditEvaluation |
|
|
|
|
} |
|
|
|
|
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)); |
|
|
|
|
// 展示放款弹框 |
|
|
|
|
showLoan () { |
|
|
|
|
this.loanVisible = true |
|
|
|
|
}, |
|
|
|
|
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 |
|
|
|
|
// 放款 |
|
|
|
|
async loanSubmit () { |
|
|
|
|
if (!this.loanDate) return this.$message.error('请选择放款日期!') |
|
|
|
|
const { data } = await loanDisbursement({ |
|
|
|
|
companyLoanId: this.form.contractId, |
|
|
|
|
loanDate: this.loanDate, |
|
|
|
|
}) |
|
|
|
|
this.$message[data.status === 200 ? 'success' : 'error'](data.message) |
|
|
|
|
setTimeout(this.$router.push('/counter/list/manage/personalLoans'), 1500) |
|
|
|
|
}, |
|
|
|
|
ismoney: ismoney, |
|
|
|
|
checkHanzi: checkHanzi, |
|
|
|
|
checkName: checkName, |
|
|
|
|
inputListen: inputListen |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
...mapGetters({ |
|
|
|
|
dataFlow: 'system/dataFlow', |
|
|
|
|
needsModule: 'system/needsModule', |
|
|
|
|
idCardNumber: 'system/idCardNumber', |
|
|
|
|
inMyWork: 'system/inMyWork', |
|
|
|
|
getSelectList: 'system/getSelectList' |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
<style lang='scss' scoped> |
|
|
|
|
.wrap { |
|
|
|
|
width: 100%; |
|
|
|
|
height: calc(90vh - 70px); |
|
|
|
|
height: calc(100vh - 118px); |
|
|
|
|
padding: 20px; |
|
|
|
|
overflow: auto; |
|
|
|
|
|
|
|
|
|