|
|
|
@ -5,7 +5,7 @@ |
|
|
|
|
<el-form ref="form" :model="form" label-width="120px" :rules="rules"> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="证件类型" prop="certificateType"> |
|
|
|
|
<el-select disabled v-model="form.certificateType" placeholder="请选择" ref="certificateType"> |
|
|
|
|
<el-select v-model="form.certificateType" placeholder="请选择" ref="certificateType"> |
|
|
|
|
<el-option label="身份证" value="身份证"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -43,15 +43,18 @@ |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="身份证" required> |
|
|
|
|
<div class="idCard" @click="popUp3('身份证扫描器')"> |
|
|
|
|
<div class="idCard" @click="popUp3('身份证扫描仪')" v-if='!idNumberJudge'> |
|
|
|
|
<p>请刷身份证</p> |
|
|
|
|
</div> |
|
|
|
|
<div v-else> |
|
|
|
|
<el-input :value="form.idNumber" ref="idNumber"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="客户姓名" prop="customerName"> |
|
|
|
|
<el-input ref="customerName" :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="钞汇标识" prop="currencyMark"> |
|
|
|
|
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark"> |
|
|
|
|
<el-select v-model="form.currencyMark" placeholder="请选择" ref="currencyMark"> |
|
|
|
|
<el-option label="钞户" value="钞户"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -59,7 +62,7 @@ |
|
|
|
|
<el-input :value="form.capital" @input="val => ismoney(val, form, 'capital')" ref="capital" ></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="存期" prop="depositTerm"> |
|
|
|
|
<el-select disabled v-model="form.depositTerm" placeholder="请选择" ref="depositTerm"> |
|
|
|
|
<el-select v-model="form.depositTerm" placeholder="请选择" ref="depositTerm"> |
|
|
|
|
<el-option label="1年" value="1年"> </el-option> |
|
|
|
|
<el-option label="3年" value="3年"> </el-option> |
|
|
|
|
<el-option label="5年" value="5年"> </el-option> |
|
|
|
@ -69,12 +72,15 @@ |
|
|
|
|
<el-input :value="form.totalMoney" @input="val => ismoney(val, form, 'totalMoney')" ref="totalMoney" ></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="支取密码" required> |
|
|
|
|
<div class="idCard" @click="popUp2('密码器')"> |
|
|
|
|
<p>请设置密码</p> |
|
|
|
|
<div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')"> |
|
|
|
|
<p>请输入密码</p> |
|
|
|
|
</div> |
|
|
|
|
<div v-else> |
|
|
|
|
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
<!-- <el-form-item label="续存标识" required> |
|
|
|
|
<el-select disabled v-model="form.identification" placeholder="请选择"> |
|
|
|
|
<el-select v-model="form.identification" placeholder="请选择"> |
|
|
|
|
<el-option label="不续存" value="不续存"> </el-option> |
|
|
|
|
<el-option label="续存1年" value="续存1年"> </el-option> |
|
|
|
|
<el-option label="续存3年" value="续存3年"> </el-option> |
|
|
|
@ -116,13 +122,16 @@ export default{ |
|
|
|
|
}, |
|
|
|
|
data(){ |
|
|
|
|
return{ |
|
|
|
|
idNumberJudge: false, |
|
|
|
|
cardNumberJudge: false, |
|
|
|
|
visible: false, |
|
|
|
|
needBefore: '', |
|
|
|
|
form:{ |
|
|
|
|
// 必填项 |
|
|
|
|
idNumber: '', // 身份证号码 |
|
|
|
|
currency: '', // 币种 |
|
|
|
|
voucherNumber: '', // 凭证号码 |
|
|
|
|
drawPassword: '', // 支取密码 |
|
|
|
|
// 非必填项 |
|
|
|
|
certificateType: '', // 证件类型 |
|
|
|
|
customerName: '', // 客户姓名 |
|
|
|
@ -137,8 +146,10 @@ export default{ |
|
|
|
|
}, |
|
|
|
|
formName:{ |
|
|
|
|
// 必填项 |
|
|
|
|
idNumber: '身份证号码', // |
|
|
|
|
currency: '币种', // |
|
|
|
|
voucherNumber: '凭证号码', // |
|
|
|
|
drawPassword: '支取密码', |
|
|
|
|
// 非必填项 |
|
|
|
|
certificateType: '证件类型', // |
|
|
|
|
customerName: '客户姓名', // |
|
|
|
@ -149,7 +160,7 @@ export default{ |
|
|
|
|
depositTerm: '存期', // |
|
|
|
|
interest: '利息', // |
|
|
|
|
totalMoney: '总金额', // |
|
|
|
|
signDate:'', // |
|
|
|
|
signDate:'起息日期', // |
|
|
|
|
}, |
|
|
|
|
rules: { |
|
|
|
|
customerName: vercustomer, |
|
|
|
@ -222,6 +233,20 @@ export default{ |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
myTable2: { |
|
|
|
|
180: { |
|
|
|
|
prop: 'idNumber', |
|
|
|
|
type: '3', |
|
|
|
|
// "subjectId": 44, |
|
|
|
|
}, |
|
|
|
|
181: { |
|
|
|
|
prop: 'voucherNumber', |
|
|
|
|
type: '3', |
|
|
|
|
// "subjectId": 44, |
|
|
|
|
}, |
|
|
|
|
192: { |
|
|
|
|
prop: 'drawPassword', |
|
|
|
|
type: '3', |
|
|
|
|
}, |
|
|
|
|
182: { |
|
|
|
|
prop: 'customerName',//客户姓名 |
|
|
|
|
type: '3', |
|
|
|
@ -237,6 +262,14 @@ export default{ |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
this.getFormData() |
|
|
|
|
|
|
|
|
|
if(this.form.idNumber) { |
|
|
|
|
this.idNumberJudge = true |
|
|
|
|
} |
|
|
|
|
if(this.form.voucherNumber) { |
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.$refs.customerName.focus() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -251,9 +284,9 @@ export default{ |
|
|
|
|
getFormData(){ |
|
|
|
|
const parentId = '285,287,5,26,59,157' |
|
|
|
|
const cards = { |
|
|
|
|
180: 'nomUsefulPhrasesClosed', |
|
|
|
|
181: 'nomUsefulPhrasesClosed2', |
|
|
|
|
192: 'nomUsefulPhrasesClosedPassword' |
|
|
|
|
// 180: 'nomUsefulPhrasesClosed', |
|
|
|
|
// 181: 'nomUsefulPhrasesClosed2', |
|
|
|
|
// 192: 'nomUsefulPhrasesClosedPassword' |
|
|
|
|
} |
|
|
|
|
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards) |
|
|
|
|
}, |
|
|
|
@ -278,17 +311,17 @@ export default{ |
|
|
|
|
const nomUsefulPhrasesClosed2 = sessionStorage.getItem('nomUsefulPhrasesClosed2') |
|
|
|
|
const nomUsefulPhrasesClosedPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword') |
|
|
|
|
const cards = [ |
|
|
|
|
{ |
|
|
|
|
180: nomUsefulPhrasesClosed |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
181: nomUsefulPhrasesClosed2, |
|
|
|
|
// { |
|
|
|
|
// 180: nomUsefulPhrasesClosed |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// 181: nomUsefulPhrasesClosed2, |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
192: nomUsefulPhrasesClosedPassword, |
|
|
|
|
"subjectId": 32, |
|
|
|
|
} |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// 192: nomUsefulPhrasesClosedPassword, |
|
|
|
|
// "subjectId": 32, |
|
|
|
|
// } |
|
|
|
|
] |
|
|
|
|
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) |
|
|
|
|
this.setNeedsModule(moduleName) |
|
|
|
@ -309,27 +342,36 @@ export default{ |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
dataFlowCard(newVal) { |
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.$refs.voucherNumber.focus() |
|
|
|
|
}) |
|
|
|
|
const { currency, userName, depositNumber, goldLogo, capital, interestRate, interest, totalMoney, signDate } = this.dataFlow |
|
|
|
|
dataFlowCard(newVal) { |
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
const { currency, userName, depositNumber, goldLogo, capital, interestRate, interest, totalMoney, signDate, voucherNumber } = this.dataFlow |
|
|
|
|
console.log(interestRate) |
|
|
|
|
this.form.currency = currency |
|
|
|
|
this.form.customerName = userName |
|
|
|
|
this.form.depositNumber = depositNumber |
|
|
|
|
this.form.currencyMark = goldLogo |
|
|
|
|
this.form.currencyMark = currencyMark |
|
|
|
|
this.form.capital = capital |
|
|
|
|
this.form.interestRate = interestRate |
|
|
|
|
this.form.interest = interest |
|
|
|
|
this.form.totalMoney = totalMoney |
|
|
|
|
this.form.signDate = signDate |
|
|
|
|
this.form.voucherNumber = voucherNumber |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.$refs.voucherNumber.focus() |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
dataFlowPassword(newVal) { |
|
|
|
|
this.form.drawPassword = '******' |
|
|
|
|
const nomUsefulPhrasesClosedPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword') |
|
|
|
|
console.log(nomUsefulPhrasesClosedPassword) |
|
|
|
|
this.form.drawPassword = nomUsefulPhrasesClosedPassword |
|
|
|
|
}, |
|
|
|
|
dataFlowId(newVal) { |
|
|
|
|
// |
|
|
|
|
this.idNumberJudge = true |
|
|
|
|
const { idNumber } = this.dataFlow |
|
|
|
|
this.form.idNumber = idNumber |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.$refs.idNumber.focus |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|