|
|
@ -1,16 +1,16 @@ |
|
|
|
// 销户 |
|
|
|
// 销户 |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="body"> |
|
|
|
<div class="body" v-if="!isNeedBefore"> |
|
|
|
<el-row :gutter="20" style="margin: 0"> |
|
|
|
<el-row :gutter="20" 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"> |
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
<el-form-item label="凭证号码" required=""> |
|
|
|
<el-form-item label="凭证号码" required=""> |
|
|
|
<div class="idCard" @click="popUp('银行卡扫描器')"> |
|
|
|
<div v-if='!cardNumberJudge' class="idCard" @click="popUp('刷卡器')"> |
|
|
|
<p>请填凭证号</p> |
|
|
|
<p>请刷卡</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-else> |
|
|
|
|
|
|
|
<el-input ref="voucherNumber" disabled :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- <el-select v-model="form.voucherNumber" placeholder="请选择" ref="voucherNumber"> |
|
|
|
|
|
|
|
<el-option label="存单" value="存单"> </el-option> |
|
|
|
|
|
|
|
</el-select> --> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="客户号" prop="customerNumber"> |
|
|
|
<el-form-item label="客户号" prop="customerNumber"> |
|
|
|
<el-input v-model="form.customerNumber"></el-input> |
|
|
|
<el-input v-model="form.customerNumber"></el-input> |
|
|
@ -26,7 +26,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="起息日期" prop="breathDate"> |
|
|
|
<el-form-item label="起息日期" prop="breathDate"> |
|
|
|
<el-input v-model="breathDate"></el-input> |
|
|
|
<el-input v-model="form.breathDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="利息" prop="interest"> |
|
|
|
<el-form-item label="利息" prop="interest"> |
|
|
|
<el-input :value="form.interest" @input="val => ismoney(val, form, 'interest')" ref="interest"></el-input> |
|
|
|
<el-input :value="form.interest" @input="val => ismoney(val, form, 'interest')" ref="interest"></el-input> |
|
|
@ -42,22 +42,14 @@ |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="支取密码" required> |
|
|
|
<el-form-item label="支取密码" required> |
|
|
|
<div class="idCard" @click="popUp3('密码器')"> |
|
|
|
<div v-if='!form.drawPassword' class="idCard" @click="popUp3('密码器')"> |
|
|
|
<p>请输入密码</p> |
|
|
|
<p>请输入密码</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
<div v-else> |
|
|
|
|
|
|
|
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-form-item label="利率(%)" prop="interestRate"> |
|
|
|
|
|
|
|
<el-input :value="form.interestRate" @input="(val) => checkHanzi(val, form, 'interestRate')" ref="interestRate"></el-input> |
|
|
|
|
|
|
|
</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="depositDate"> |
|
|
|
<el-form-item label="凭证类型" prop="depositDate"> |
|
|
@ -94,9 +86,12 @@ |
|
|
|
</el-form-item> --> |
|
|
|
</el-form-item> --> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="身份证" required> |
|
|
|
<el-form-item label="身份证" required> |
|
|
|
<div class="idCard" @click="popUp2('身份证扫描器')"> |
|
|
|
<div class="idCard" @click="popUp2('身份证扫描仪')" v-if='!idNumberJudge'> |
|
|
|
<p>请刷身份证</p> |
|
|
|
<p>请刷身份证</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-else> |
|
|
|
|
|
|
|
<el-input :value="form.idNumber" disabled ref="idNumber"></el-input> |
|
|
|
|
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<!-- <el-form-item label="续存标识" required> |
|
|
|
<!-- <el-form-item label="续存标识" required> |
|
|
|
<el-select disabled v-model="form.identification" placeholder="请选择"> |
|
|
|
<el-select disabled v-model="form.identification" placeholder="请选择"> |
|
|
@ -111,19 +106,39 @@ |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
<el-button @click="submitForm" type="primary" class="submitBtn">提交</el-button> |
|
|
|
<el-button @click="submitForm" type="primary" class="submitBtn">提交</el-button> |
|
|
|
|
|
|
|
<my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { ratePattern, vercustomer } from '@/utils/verify.js' |
|
|
|
import { ratePattern, vercustomer } from '@/utils/verify.js' |
|
|
|
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2 } from '@/utils/utilFunction.js' |
|
|
|
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2 } from '@/utils/utilFunction.js' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { mapMutations, mapGetters } from 'vuex' |
|
|
|
|
|
|
|
import NeedBefore from '@/components/needBefore' |
|
|
|
|
|
|
|
import MyDialog from '@/components/dialog' |
|
|
|
|
|
|
|
const moduleName = 'callDeposits/accountClosed' |
|
|
|
export default{ |
|
|
|
export default{ |
|
|
|
name:'', |
|
|
|
name:'', |
|
|
|
props:{}, |
|
|
|
props:{}, |
|
|
|
|
|
|
|
components: { |
|
|
|
|
|
|
|
NeedBefore, |
|
|
|
|
|
|
|
MyDialog |
|
|
|
|
|
|
|
}, |
|
|
|
data(){ |
|
|
|
data(){ |
|
|
|
return{ |
|
|
|
return{ |
|
|
|
|
|
|
|
idNumberJudge: false, |
|
|
|
|
|
|
|
cardNumberJudge: false, |
|
|
|
|
|
|
|
visible: false, |
|
|
|
|
|
|
|
unNeed: false, |
|
|
|
|
|
|
|
isNeedBefore: '', |
|
|
|
|
|
|
|
needBefore: '', |
|
|
|
form:{ |
|
|
|
form:{ |
|
|
|
// 必填项 |
|
|
|
// 必填项 |
|
|
|
payMoney: '', // 支取金额(未对标) |
|
|
|
payMoney: '', // 支取金额(未对标) |
|
|
|
|
|
|
|
idNumber: '', // 身份证号码 |
|
|
|
|
|
|
|
voucherNumber: '', // 凭证号码 |
|
|
|
|
|
|
|
drawPassword: '', // 支付密码 |
|
|
|
// 非必填项 |
|
|
|
// 非必填项 |
|
|
|
// voucherNumber: '', // 凭证号码 |
|
|
|
// voucherNumber: '', // 凭证号码 |
|
|
|
currency: 'CNY人民币', // 币种 |
|
|
|
currency: 'CNY人民币', // 币种 |
|
|
@ -140,10 +155,31 @@ export default{ |
|
|
|
customerNumber: '', // 客户号(未对标) |
|
|
|
customerNumber: '', // 客户号(未对标) |
|
|
|
noticeType: '', // 通知类型(未对标) |
|
|
|
noticeType: '', // 通知类型(未对标) |
|
|
|
payType: '', // 支取类别(未对标) |
|
|
|
payType: '', // 支取类别(未对标) |
|
|
|
|
|
|
|
|
|
|
|
voucherType: '', // 凭证类型(未对标) |
|
|
|
voucherType: '', // 凭证类型(未对标) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
formName:{ |
|
|
|
|
|
|
|
// 必填项 |
|
|
|
|
|
|
|
payMoney: '支取金额', // (未对标) |
|
|
|
|
|
|
|
idNumber: '身份证号码', // |
|
|
|
|
|
|
|
voucherNumber: '凭证号码', // |
|
|
|
|
|
|
|
drawPassword: '支付密码', // |
|
|
|
|
|
|
|
// 非必填项 |
|
|
|
|
|
|
|
// voucherNumber: '', // 凭证号码 |
|
|
|
|
|
|
|
currency: '币种', // |
|
|
|
|
|
|
|
clientName: '客户姓名', // |
|
|
|
|
|
|
|
currencyMark: '钞汇标识', // |
|
|
|
|
|
|
|
depositNumber: '定存编号', // |
|
|
|
|
|
|
|
capital: '本金', // |
|
|
|
|
|
|
|
interestRate: '利率', // |
|
|
|
|
|
|
|
depositDate: '存期', // |
|
|
|
|
|
|
|
interest: '利息', // |
|
|
|
|
|
|
|
totalMoney: '总金额', // |
|
|
|
|
|
|
|
certificateType: '证件类型', // |
|
|
|
|
|
|
|
breathDate: '起息日期', // |
|
|
|
|
|
|
|
customerNumber: '客户号', // (未对标) |
|
|
|
|
|
|
|
noticeType: '通知类型', // (未对标) |
|
|
|
|
|
|
|
payType: '支取类别', // (未对标) |
|
|
|
|
|
|
|
voucherType: '凭证类型', // (未对标) |
|
|
|
}, |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
rules: { |
|
|
|
clientName: { |
|
|
|
clientName: { |
|
|
@ -255,25 +291,105 @@ export default{ |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
created() { |
|
|
|
this.$refs.clientName.focus() |
|
|
|
if(this.inMyWork(moduleName)) { |
|
|
|
const parentId = this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + '285,287,5,26,38,289' |
|
|
|
if(this.needsModule(moduleName) === '') { |
|
|
|
const cards = { |
|
|
|
// idNumber: '', // 身份证号码 |
|
|
|
302: 'nomCallDepositCard', |
|
|
|
// voucherNumber: '', // 凭证号码 |
|
|
|
392: 'nomCallDepositCard2', |
|
|
|
// drawPassword: '', // 支付密码 |
|
|
|
394: 'nomCallDepositClosedPassword' |
|
|
|
|
|
|
|
} |
|
|
|
// depositDate: '存单', |
|
|
|
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards) |
|
|
|
// noticeType: '1天', |
|
|
|
|
|
|
|
// depositNumber: '0816', |
|
|
|
|
|
|
|
// capital: 100, |
|
|
|
|
|
|
|
// interest: 2.8, |
|
|
|
|
|
|
|
// totalMoney: 102.8, |
|
|
|
|
|
|
|
// payType: '现金', |
|
|
|
|
|
|
|
// payMoney: 102.8, |
|
|
|
|
|
|
|
// idNumber, |
|
|
|
|
|
|
|
// peopleNumber, |
|
|
|
|
|
|
|
// userName, |
|
|
|
|
|
|
|
// currency:'CNY人民币', |
|
|
|
|
|
|
|
// goldLogo:'钞户', |
|
|
|
|
|
|
|
// voucherNumber |
|
|
|
|
|
|
|
console.log('nomCallDepositClosedCard --------------') |
|
|
|
|
|
|
|
console.log(sessionStorage.getItem('nomCallDepositClosedCard')) |
|
|
|
|
|
|
|
if(sessionStorage.getItem('nomCallDepositClosedCard')) { |
|
|
|
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
|
|
|
const { depositDate, noticeType, depositNumber, capital, interest, totalMoney, payType, idNumber, |
|
|
|
|
|
|
|
peopleNumber, userName, currency, goldLogo, voucherNumber, payMoney, voucherType } = this.dataFlow |
|
|
|
|
|
|
|
this.form.depositDate = depositDate |
|
|
|
|
|
|
|
this.form.noticeType = noticeType |
|
|
|
|
|
|
|
this.form.depositNumber = depositNumber |
|
|
|
|
|
|
|
this.form.capital = capital |
|
|
|
|
|
|
|
this.form.interest = interest |
|
|
|
|
|
|
|
this.form.totalMoney = totalMoney |
|
|
|
|
|
|
|
this.form.payType = payType |
|
|
|
|
|
|
|
this.form.idNumber = idNumber |
|
|
|
|
|
|
|
this.form.clientNumber = peopleNumber |
|
|
|
|
|
|
|
this.form.clientName = userName |
|
|
|
|
|
|
|
this.form.customerNumber = peopleNumber |
|
|
|
|
|
|
|
this.form.currency = currency |
|
|
|
|
|
|
|
this.form.currencyMark = goldLogo |
|
|
|
|
|
|
|
this.form.voucherNumber = voucherNumber |
|
|
|
|
|
|
|
this.form.payMoney = payMoney |
|
|
|
|
|
|
|
this.form.voucherType = voucherType |
|
|
|
|
|
|
|
// this.form.idNumber = |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(sessionStorage.getItem('nomCallDepositClosedCard2')) { |
|
|
|
|
|
|
|
this.idNumberJudge = true |
|
|
|
|
|
|
|
const { idNumber } = this.dataFlow |
|
|
|
|
|
|
|
this.form.idNumber = idNumber |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(sessionStorage.getItem('nomCallDepositClosedPassword')) { |
|
|
|
|
|
|
|
this.form.drawPassword = sessionStorage.getItem('nomCallDepositClosedPassword') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const parentId = this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + '285,287,5,26,38,289' |
|
|
|
|
|
|
|
const cards = { |
|
|
|
|
|
|
|
// 302: 'nomCallDepositClosedCard', |
|
|
|
|
|
|
|
// 392: 'nomCallDepositClosedCard2', |
|
|
|
|
|
|
|
// 394: 'nomCallDepositClosedPassword' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards) |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.isNeedBefore = true |
|
|
|
|
|
|
|
this.needBefore = this.needsModule(moduleName) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.isNeedBefore = true |
|
|
|
|
|
|
|
this.unNeed = true |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
...mapMutations({ |
|
|
|
|
|
|
|
changeShowGoods: 'system/changeShowGoods', |
|
|
|
|
|
|
|
setDataFlow: 'system/setDataFlow', |
|
|
|
|
|
|
|
setNeedsModule: 'system/setNeedsModule', |
|
|
|
|
|
|
|
setPopId: 'system/setPopId' |
|
|
|
|
|
|
|
}), |
|
|
|
popUp(text) { |
|
|
|
popUp(text) { |
|
|
|
this.$store.commit('system/changePop',{show:true,text, id: '302'}) |
|
|
|
// this.$store.commit('system/changePop',{show:true,text, id: '302'}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$message.warning('请刷银行卡'); |
|
|
|
|
|
|
|
this.setPopId('302') |
|
|
|
|
|
|
|
this.$router.push('/counter/list/') |
|
|
|
}, |
|
|
|
}, |
|
|
|
popUp2(text) { |
|
|
|
popUp2(text) { |
|
|
|
this.$store.commit('system/changePop',{show:true,text, id: '392'}) |
|
|
|
// this.$store.commit('system/changePop',{show:true,text, id: '392'}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$message.warning('请刷身份证'); |
|
|
|
|
|
|
|
this.setPopId('392') |
|
|
|
|
|
|
|
this.$router.push('/counter/list/') |
|
|
|
}, |
|
|
|
}, |
|
|
|
popUp3(text) { |
|
|
|
popUp3(text) { |
|
|
|
this.$store.commit('system/changePop',{show:true,text, id: '394'}) |
|
|
|
// this.$store.commit('system/changePop',{show:true,text, id: '394'}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$message.warning('请在密码器输入密码'); |
|
|
|
|
|
|
|
this.setPopId('394') |
|
|
|
|
|
|
|
this.$router.push('/counter/list/') |
|
|
|
}, |
|
|
|
}, |
|
|
|
submitForm() { |
|
|
|
submitForm() { |
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
@ -284,16 +400,16 @@ export default{ |
|
|
|
const nomCallDepositCard2 = sessionStorage.getItem('nomCallDepositCard2') |
|
|
|
const nomCallDepositCard2 = sessionStorage.getItem('nomCallDepositCard2') |
|
|
|
const nomCallDepositClosedPassword = sessionStorage.getItem('nomCallDepositClosedPassword') |
|
|
|
const nomCallDepositClosedPassword = sessionStorage.getItem('nomCallDepositClosedPassword') |
|
|
|
const cards = [ |
|
|
|
const cards = [ |
|
|
|
{ |
|
|
|
// { |
|
|
|
302: nomCallDepositCard |
|
|
|
// 302: nomCallDepositCard |
|
|
|
}, |
|
|
|
// }, |
|
|
|
{ |
|
|
|
// { |
|
|
|
392: nomCallDepositCard2 |
|
|
|
// 392: nomCallDepositCard2 |
|
|
|
}, |
|
|
|
// }, |
|
|
|
{ |
|
|
|
// { |
|
|
|
394: nomCallDepositClosedPassword, |
|
|
|
// 394: nomCallDepositClosedPassword, |
|
|
|
"subjectId": 17, |
|
|
|
// "subjectId": 17, |
|
|
|
} |
|
|
|
// } |
|
|
|
] |
|
|
|
] |
|
|
|
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) |
|
|
|
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) |
|
|
|
}, this.$refs)); |
|
|
|
}, this.$refs)); |
|
|
@ -301,6 +417,14 @@ export default{ |
|
|
|
ismoney: ismoney, |
|
|
|
ismoney: ismoney, |
|
|
|
checkHanzi: checkHanzi, |
|
|
|
checkHanzi: checkHanzi, |
|
|
|
checkName: checkName |
|
|
|
checkName: checkName |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
|
|
|
|
...mapGetters({ |
|
|
|
|
|
|
|
dataFlow: 'system/dataFlow', |
|
|
|
|
|
|
|
needsModule: 'system/needsModule', |
|
|
|
|
|
|
|
idCardNumber: 'system/idCardNumber', |
|
|
|
|
|
|
|
inMyWork: 'system/inMyWork', |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|