|
|
|
@ -59,12 +59,12 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="凭证号码" required> |
|
|
|
|
<div v-if='!form.cardNumber' class="idCard" @click="popUp('刷卡器')"> |
|
|
|
|
<p>请刷卡</p> |
|
|
|
|
</div> |
|
|
|
|
<div v-else> |
|
|
|
|
<el-input :value="form.cardNumber" disabled ref="cardNumber"></el-input> |
|
|
|
|
</div> |
|
|
|
|
<div v-if='!cardNumberJudge' class="idCard" @click="popUp('刷卡器')"> |
|
|
|
|
<p>请刷卡</p> |
|
|
|
|
</div> |
|
|
|
|
<div v-else> |
|
|
|
|
<el-input ref="cardNumber" :value="form.cardNumber" @input="(val) => inputListen(val, form, 'cardNumber')"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="支取密码" required> |
|
|
|
|
<div v-if='!form.drawPassword' class="idCard" @click="popUps('密码器')"> |
|
|
|
@ -166,7 +166,7 @@ |
|
|
|
|
|
|
|
|
|
<el-button @click="formSubmit" type="primary" class="submitBtn">提交</el-button> |
|
|
|
|
</div> |
|
|
|
|
<my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="popSure" /> |
|
|
|
|
<my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="popSure" :needAuth="false" /> |
|
|
|
|
<!-- <el-dialog |
|
|
|
|
style="margin-top:10vh" |
|
|
|
|
:visible.sync="visible" |
|
|
|
@ -198,7 +198,7 @@ |
|
|
|
|
import {getSubjectInfo,addOperation,getOperation} from "@/api/http.js"; |
|
|
|
|
import { mapMutations, mapGetters, mapState } from 'vuex' |
|
|
|
|
import { vercustomer } from '@/utils/verify.js' |
|
|
|
|
import { myValidate, checkName, checkHanzi } from '@/utils/utilFunction.js' |
|
|
|
|
import { myValidate, checkName, checkHanzi, inputListen } from '@/utils/utilFunction.js' |
|
|
|
|
import NeedBefore from '@/components/needBefore' |
|
|
|
|
import MyDialog from '@/components/dialog' |
|
|
|
|
const moduleName = 'currentAccount/openAccount' |
|
|
|
@ -206,6 +206,7 @@ export default { |
|
|
|
|
data(){ |
|
|
|
|
return{ |
|
|
|
|
needBefore: '', |
|
|
|
|
cardNumberJudge: false, |
|
|
|
|
form:{ |
|
|
|
|
cardNumber: '', // 卡号 |
|
|
|
|
drawPassword: '', // 支取密码 |
|
|
|
@ -338,6 +339,8 @@ export default { |
|
|
|
|
parentId: '285,287,5,26,57,62' |
|
|
|
|
} |
|
|
|
|
getOperation(param).then((data)=>{ |
|
|
|
|
console.log('need') |
|
|
|
|
connsole.log(data) |
|
|
|
|
if(data.status.status == 200) { |
|
|
|
|
var list = data.data.judgmentRuleReqs |
|
|
|
|
for (var i = 0; i < list.length; i++) { |
|
|
|
@ -348,8 +351,15 @@ export default { |
|
|
|
|
if (list[i].answerId == '72') {this.form.accountQuality = +list[i].emptyTwo} |
|
|
|
|
if (list[i].answerId == '73') {this.form.voucherType = +list[i].emptyTwo} |
|
|
|
|
if (list[i].answerId == '74') {this.form.accountType = +list[i].emptyTwo} |
|
|
|
|
if (list[i].answerId == '75') { |
|
|
|
|
this.form.cardNumber = list[i].emptyTwo |
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
} |
|
|
|
|
if (list[i].answerId == '76') {this.form.drawWay = +list[i].emptyTwo} |
|
|
|
|
if (list[i].answerId == '77') {sessionStorage.setItem('accountPasswordAll', list[i].emptyTwo)} |
|
|
|
|
// if (list[i].answerId == '77') {sessionStorage.setItem('accountPasswordAll', list[i].emptyTwo)} |
|
|
|
|
if (list[i].answerId == '77') { |
|
|
|
|
this.form.drawPassword = list[i].emptyTwo |
|
|
|
|
} |
|
|
|
|
if (list[i].answerId == '270') {this.form.accountQualitysTwo = +list[i].emptyTwo} |
|
|
|
|
if (list[i].answerId == '271') {this.form.voucherTypesTwo = +list[i].emptyTwo} |
|
|
|
|
if (list[i].answerId == '272') {this.form.accountTypesTwo = +list[i].emptyTwo} |
|
|
|
@ -358,6 +368,7 @@ export default { |
|
|
|
|
if (list[i].answerId == '277') {this.form.voucherTypesThree = +list[i].emptyTwo} |
|
|
|
|
if (list[i].answerId == '278') {this.form.accountTypesThree = +list[i].emptyTwo} |
|
|
|
|
if (list[i].answerId == '280') {this.form.drawWaysThree = +list[i].emptyTwo} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
this.getFormData() |
|
|
|
@ -370,10 +381,16 @@ export default { |
|
|
|
|
parentId: '285,287,5,25,33' |
|
|
|
|
} |
|
|
|
|
getOperation(param).then((data)=>{ |
|
|
|
|
console.log(data) |
|
|
|
|
if(data.status == 200) { |
|
|
|
|
var list = data.data.judgmentRuleReqs |
|
|
|
|
for (var i = 0; i < list.length; i++) { |
|
|
|
|
if (list[i].answerId == '42') {this.form.userName = list[i].emptyTwo} |
|
|
|
|
else if (list[i].answerId == '75') { |
|
|
|
|
console.log(list[i].emptyTwo) |
|
|
|
|
this.form.cardNumber = list[i].emptyTwo |
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{ |
|
|
|
@ -388,6 +405,8 @@ export default { |
|
|
|
|
} |
|
|
|
|
let dataList = []; |
|
|
|
|
getOperation(param).then((data)=>{ |
|
|
|
|
console.log('what>') |
|
|
|
|
console.log(data) |
|
|
|
|
if(data.status == 200){ |
|
|
|
|
let list = data.data.judgmentRuleReqs; |
|
|
|
|
for(var i=0;i<list.length;i++){ |
|
|
|
@ -519,10 +538,11 @@ export default { |
|
|
|
|
let paymentCodeTwo = accountPasswordTwo; |
|
|
|
|
let paymentCodeThree = accountPasswordThree; |
|
|
|
|
if(this.form.userName && this.form.currency && this.form.goldLogo && this.form.accountType && this.form.drawWay && this.form.voucherType && voucherNumber.length && paymentCode){ |
|
|
|
|
for (var i=0;i<voucherNumber.length;i++){ |
|
|
|
|
// for (var i=0;i<voucherNumber.length;i++){ |
|
|
|
|
|
|
|
|
|
formLists.push({"answerId":voucherNumber[i].id,"emptyOne": "", "emptyTwo": "", "operationIds": "285,287,5,26,57,62,75,"+voucherNumber[i].id,"type": ""}) |
|
|
|
|
} |
|
|
|
|
// formLists.push({"answerId":voucherNumber[i].id,"emptyOne": "", "emptyTwo": "", "operationIds": "285,287,5,26,57,62,75,"+voucherNumber[i].id,"type": ""}) |
|
|
|
|
// } |
|
|
|
|
formLists.push({"answerId":75,"emptyOne": "", "emptyTwo": this.form.cardNumber, "operationIds": "285,287,5,26,57,62,75","type": "3"}) |
|
|
|
|
let param= { |
|
|
|
|
parentId: '285,287,5,26,57,62,75', |
|
|
|
|
lcJudgmentRuleReq: formLists, |
|
|
|
@ -572,7 +592,8 @@ export default { |
|
|
|
|
{"answerId":'71',"emptyOne": "9", "emptyTwo": this.form.goldLogo, "operationIds": "285,287,5,26,57,62,71","type": "1"},//钞汇标识 |
|
|
|
|
{"answerId":'74',"emptyOne": "12", "emptyTwo": this.form.accountType, "operationIds": "285,287,5,26,57,62,74","type": "1"}, //账户类型 |
|
|
|
|
{"answerId":'76',"emptyOne": "13", "emptyTwo": this.form.drawWay, "operationIds": "285,287,5,26,57,62,76", "type": "1"}, //支取方式 |
|
|
|
|
{"answerId":'73',"emptyOne": "11", "emptyTwo": this.form.voucherType, "operationIds": "285,287,5,26,57,62,73", "type": "1"} //凭证类型 |
|
|
|
|
{"answerId":'73',"emptyOne": "11", "emptyTwo": this.form.voucherType, "operationIds": "285,287,5,26,57,62,73", "type": "1"}, //凭证类型 |
|
|
|
|
// {"answerId":'75',"emptyOne": "12", "emptyTwo": this.form.cardNumber, "operationIds": "285,287,5,26,57,62,75","type": "3"}, |
|
|
|
|
) |
|
|
|
|
let params= { |
|
|
|
|
parentId:'285,287,5,26,57,62', |
|
|
|
@ -632,7 +653,8 @@ export default { |
|
|
|
|
this.$store.commit('system/changePop',{show:true,text:'密码器',id:'62,3'}) |
|
|
|
|
}, |
|
|
|
|
checkName: checkName, |
|
|
|
|
checkHanzi: checkHanzi |
|
|
|
|
checkHanzi: checkHanzi, |
|
|
|
|
inputListen: inputListen |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
...mapGetters({ |
|
|
|
@ -646,10 +668,14 @@ export default { |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
dataFlowCard(newVal) { |
|
|
|
|
this.form.cardNumber = this.idCardNumber |
|
|
|
|
const { voucherNumber } = this.dataFlow |
|
|
|
|
this.form.cardNumber = voucherNumber |
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
}, |
|
|
|
|
dataFlowPassword(newVal) { |
|
|
|
|
this.form.drawPassword = '******' |
|
|
|
|
|
|
|
|
|
const accountPassword = sessionStorage.getItem('accountPassword') |
|
|
|
|
this.form.drawPassword = accountPassword |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|