|
|
|
@ -10,7 +10,7 @@ |
|
|
|
|
<p>请刷卡</p> |
|
|
|
|
</div> |
|
|
|
|
<div v-else> |
|
|
|
|
<el-input ref="idCardNumber" disabled :value="form.idCardNumber" @input="(val) => inputListen(val, form, 'idCardNumber')"></el-input> |
|
|
|
|
<el-input ref="voucherNumber" disabled :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="币种" prop="currency"> |
|
|
|
@ -18,8 +18,8 @@ |
|
|
|
|
<el-option value="CNY人民币">CNY人民币</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="金额"> |
|
|
|
|
<el-input :value="form.money" disabled maxlength="15" @input="val => ismoney(val, form, 'money')" ref="money"></el-input> |
|
|
|
|
<el-form-item label="金额" prop="money"> |
|
|
|
|
<el-input :value="form.money" maxlength="15" @input="val => ismoney(val, form, 'money')" ref="money"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
@ -51,7 +51,7 @@ |
|
|
|
|
<script> // currentAccount/deposit |
|
|
|
|
import { mapMutations, mapGetters } from 'vuex' |
|
|
|
|
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' |
|
|
|
|
import { ismoney, myValidate, checkName, rateListen } from '@/utils/utilFunction.js' |
|
|
|
|
import { ismoney, myValidate, checkName, rateListen, messageCard } from '@/utils/utilFunction.js' |
|
|
|
|
import { addOperation, getOperation } from '@/api/http'; |
|
|
|
|
|
|
|
|
|
import NeedBefore from '@/components/needBefore' |
|
|
|
@ -78,7 +78,7 @@ export default{ |
|
|
|
|
goldLogo:'', |
|
|
|
|
annualInterest:'0.30%', |
|
|
|
|
remark:'', |
|
|
|
|
idCardNumber: '', // 银行卡号 |
|
|
|
|
voucherNumber: '', // 银行卡号 |
|
|
|
|
}, |
|
|
|
|
formName: { |
|
|
|
|
currency:'币种', // |
|
|
|
@ -87,7 +87,7 @@ export default{ |
|
|
|
|
goldLogo:'炒汇标识', // |
|
|
|
|
annualInterest:'年利率', // |
|
|
|
|
remark:'摘要', // |
|
|
|
|
idCardNumber: '银行卡号', // |
|
|
|
|
voucherNumber: '银行卡号', // |
|
|
|
|
}, |
|
|
|
|
rules: { |
|
|
|
|
userName: vercustomer , |
|
|
|
@ -98,6 +98,13 @@ export default{ |
|
|
|
|
trigger: 'blur' |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
money: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
|
message: '请填写金额', |
|
|
|
|
trigger: 'blur' |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
annualInterest: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
@ -119,7 +126,7 @@ export default{ |
|
|
|
|
this.form.userName = userName |
|
|
|
|
this.form.goldLogo = goldLogo // goldLogo // 13是什么鬼 |
|
|
|
|
this.form.currency = currency |
|
|
|
|
this.form.idCardNumber = voucherNumber |
|
|
|
|
this.form.voucherNumber = voucherNumber |
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
} |
|
|
|
|
this.getFormData() |
|
|
|
@ -144,7 +151,7 @@ export default{ |
|
|
|
|
for (var i = 0; i < list.length; i++) { |
|
|
|
|
// if (list[i].answerId == '78') {sessionStorage.setItem('nomBusinessDepositCard', list[i].emptyTwo)} //卡号 |
|
|
|
|
if (list[i].answerId == '78') { |
|
|
|
|
this.form.idCardNumber = list[i].emptyTwo |
|
|
|
|
this.form.voucherNumber = list[i].emptyTwo |
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
} //卡号 |
|
|
|
|
if (list[i].answerId == '79') {this.form.userName = list[i].emptyTwo} //客户姓名 |
|
|
|
@ -166,6 +173,11 @@ export default{ |
|
|
|
|
}), |
|
|
|
|
//提交表单 |
|
|
|
|
submitForm(){ |
|
|
|
|
|
|
|
|
|
if(!this.form.voucherNumber) { |
|
|
|
|
messageCard() |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
|
// 验证通过逻辑写在这 |
|
|
|
|
this.visible = true; |
|
|
|
@ -179,7 +191,7 @@ export default{ |
|
|
|
|
let nomBusinessDepositCards = nomBusinessDepositCard // JSON.parse(nomBusinessDepositCard); |
|
|
|
|
if (this.cardNumberJudge){ |
|
|
|
|
// formList.push({"answerId":78,"emptyOne": "", "emptyTwo": nomBusinessDepositCards, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,26,57,63,78","type": ""})// 卡号 |
|
|
|
|
formList.push({"answerId":78,"emptyOne": "", "emptyTwo": this.form.idCardNumber, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,26,57,63,78","type": ""}) |
|
|
|
|
formList.push({"answerId":78,"emptyOne": "", "emptyTwo": this.form.voucherNumber, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,26,57,63,78","type": ""}) |
|
|
|
|
if(this.form.currency){ |
|
|
|
|
formList.push({ "answerId":'80', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,26,57,63,80", "type": "1" })//币种 |
|
|
|
|
} |
|
|
|
@ -228,7 +240,6 @@ export default{ |
|
|
|
|
dataFlow: 'system/dataFlow', |
|
|
|
|
dataFlowPassword: 'system/dataFlowPassword', |
|
|
|
|
needsModule: 'system/needsModule', |
|
|
|
|
idCardNumber: 'system/idCardNumber', |
|
|
|
|
inMyWork: 'system/inMyWork' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|