20240205
luoJunYong.123 3 years ago
parent b2c94e2cd0
commit 43d080331f
  1. 16
      src/components/dialog/index.vue
  2. 3
      src/components/needBefore/index.vue
  3. 112
      src/pages/manage/list/client/consumerClient.vue
  4. 166
      src/pages/manage/list/personal/currentAccount/accountCancellation.vue
  5. 22
      src/pages/manage/list/personal/currentAccount/deposit.vue
  6. 58
      src/pages/manage/list/personal/currentAccount/openAccount.vue
  7. 79
      src/pages/manage/list/personal/currentAccount/settle.vue
  8. 67
      src/pages/manage/list/personal/currentAccount/transferAccounts.vue
  9. 30
      src/pages/manage/list/personal/currentAccount/withdrawal.vue
  10. 11
      src/pages/manage/list/personal/timeDeposit/deposit.vue
  11. 10
      src/pages/manage/list/personal/timeDeposit/openAccount.vue
  12. 2
      src/pages/manage/list/personal/timeDeposit/withdrawal.vue
  13. 11
      src/pages/manage/list/personal/usefulPhrases/accountClosed.vue
  14. 32
      src/pages/manage/list/personal/usefulPhrases/continueDeposit.vue
  15. 2
      src/pages/manage/list/personal/usefulPhrases/openAccount.vue
  16. 26
      src/store/modules/system.js

@ -3,7 +3,7 @@
style="margin-top:10vh" style="margin-top:10vh"
:visible="visible" :visible="visible"
:modal="false" :modal="false"
width="50%" width="55%"
:close-on-click-modal="false" :close-on-click-modal="false"
:show-close="false" :show-close="false"
custom-class="data-dia"> custom-class="data-dia">
@ -82,7 +82,16 @@ export default {
this.leftObj['流水号'] = '2333333333333' this.leftObj['流水号'] = '2333333333333'
this.leftObj['经办机构'] = '国税支行营业部' this.leftObj['经办机构'] = '国税支行营业部'
this.rightObj['经办柜员'] = '002110' this.rightObj['经办柜员'] = '002110'
this.rightObj['会计时间'] = new Date() const tmpFunc = () => {
const date = new Date()
var y = date.getFullYear();
var m = date.getMonth() + 1;
m = m < 10 ? '0' + m : m;
var d = date.getDate();
d = d < 10 ? ('0' + d) : d;
return y + '-' + m + '-' + d;
}
this.rightObj['会计时间'] = tmpFunc()
// 002110 // 002110
}, },
data() { data() {
@ -131,4 +140,7 @@ export default {
/deep/ .el-row { /deep/ .el-row {
width: 100%; width: 100%;
} }
/deep/.popbody {
width: 100vw!important;
}
</style> </style>

@ -16,7 +16,8 @@ const obj = {
'currentAccount/deposit': '活期业务 -> 存款', 'currentAccount/deposit': '活期业务 -> 存款',
'currentAccount/withdrawal': '活期业务 -> 取款', 'currentAccount/withdrawal': '活期业务 -> 取款',
'currentAccount/transferAccounts': '活期业务 -> 转账', 'currentAccount/transferAccounts': '活期业务 -> 转账',
'currentAccount/settle': '活期业务 -> 销户', 'currentAccount/settle': '活期业务 -> 结清',
'currentAccount/Cancell': '活期业务 -> 销户',
'timeDeposit/openAccount': '整存整取 -> 开户', 'timeDeposit/openAccount': '整存整取 -> 开户',
'timeDeposit/deposit': '整存整取 -> 存款', 'timeDeposit/deposit': '整存整取 -> 存款',
'timeDeposit/withdrawal': '整存整取 -> 取款', 'timeDeposit/withdrawal': '整存整取 -> 取款',

@ -7,13 +7,19 @@
<el-form ref="form" :model="form" label-width="140px" :rules="rules"> <el-form ref="form" :model="form" label-width="140px" :rules="rules">
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="证件类型"> <el-form-item label="证件类型">
<el-select v-model="form.idType" placeholder="请选择" ref="idType"> <!-- <el-select v-model="form.idType" placeholder="请选择" ref="idType">
<el-option <el-option
v-for="(item,index) in papers" v-for="(item,index) in papers"
:key="index" :key="index"
:label="item.name" :label="item.name"
:value="item.id"> :value="item.id">
</el-option> </el-option>
</el-select> -->
<el-select v-model="form.idType" placeholder="请选择" ref="idType">
<el-option
label="身份证"
value="身份证">
</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" prop="userName"> <el-form-item label="客户姓名" prop="userName">
@ -33,9 +39,12 @@
</el-col> </el-col>
<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 class="idCard" @click="popUp('身份证扫描仪')" 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="性别" prop="sex"> <el-form-item label="性别" prop="sex">
<el-select v-model="form.sex" placeholder="请选择" ref='sex'> <el-select v-model="form.sex" placeholder="请选择" ref='sex'>
@ -69,38 +78,6 @@
</div> </div>
<my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2()" /> <my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2()" />
<!-- <el-dialog
style="margin-top:10vh"
:visible.sync="visible"
:modal="false"
width="40%"
:close-on-click-modal="false"
:show-close="false"
custom-class="data-dia">
<div slot="title" class="dia-header">
<div class="data-title">提交</div>
</div>
<div class="popBody" v-if="!authorization&&!success">
<h2>本业务需要授权</h2>
</div>
<div class="popBody" v-if="authorization&&!success">
<el-form ref="form2" :model="disForm" label-width="80px">
<el-form-item label="授权柜员">
<el-input disabled v-model="disForm.name"></el-input>
</el-form-item>
<el-form-item label="授权柜员">
<el-input type="password" disabled v-model="disForm.pass"></el-input>
</el-form-item>
</el-form>
</div>
<div class="popBody" v-if="success">
<h2>完成表单form</h2>
</div>
<div class="popBtns">
<el-button class="close btn" @click="[visible = false,authorization=false,success=false]"> </el-button>
<el-button class="sure btn" type="primary" @click="popSure"> </el-button>
</div>
</el-dialog> -->
</div> </div>
</template> </template>
@ -112,17 +89,17 @@ import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/veri
import { phoneListen, mailBoxListen, checkRequired, myValidate, checkName } from '@/utils/utilFunction.js' import { phoneListen, mailBoxListen, checkRequired, myValidate, checkName } from '@/utils/utilFunction.js'
import MyTitle from '@/components/myTitle' import MyTitle from '@/components/myTitle'
import MyDialog from '@/components/dialog' import MyDialog from '@/components/dialog'
// goodState: 'system/goodState',
const moduleName = 'consumerClient' const moduleName = 'consumerClient'
export default { export default {
name: 'index', name: 'consumerClient',
data() { data() {
return { return {
dataFlowId2: 0, // idNumberJudge: false,
visible:false,//
form:{ form:{
idType:1,// idType:'身份证',//
// idNumber:'',// idNumber:'',//
userName:'',// userName:'',//
sex:'',// sex:'',//
birthday:'',// birthday:'',//
@ -162,8 +139,7 @@ export default {
], ],
}, },
disForm:{name:'002009' ,pass:'123456'},
visible:false,//
authorization:false,// authorization:false,//
success:false,// success:false,//
papers:[ papers:[
@ -241,8 +217,6 @@ export default {
}, },
created() { created() {
console.log(moduleName) console.log(moduleName)
this.dataFlowId2 = this.dataFlowId
}, },
mounted() { mounted() {
this.getFormData() this.getFormData()
@ -262,19 +236,26 @@ export default {
getOperation(param).then((data)=>{ getOperation(param).then((data)=>{
if(data.status == 200) { if(data.status == 200) {
var list = data.data.judgmentRuleReqs var list = data.data.judgmentRuleReqs
console.log(list)
for (var i = 0; i < list.length; i++) { for (var i = 0; i < list.length; i++) {
if (list[i].answerId == '40') {this.form.idType = +list[i].emptyTwo} if (list[i].answerId == '40') {this.form.idType = list[i].emptyTwo}
if (list[i].answerId == '41') {sessionStorage.setItem('nomClientIdentity', list[i].emptyTwo)} // if (list[i].answerId == '41') {sessionStorage.setItem('nomClientIdentity', list[i].emptyTwo)}
if (list[i].answerId == '41') {
this.form.idNumber = list[i].emptyTwo
this.idNumberJudge = true
}
if (list[i].answerId == '42') {this.form.userName = list[i].emptyTwo} if (list[i].answerId == '42') {this.form.userName = list[i].emptyTwo}
if (list[i].answerId == '43') {this.form.sex = +list[i].emptyTwo} if (list[i].answerId == '43') {this.form.sex = list[i].emptyTwo}
if (list[i].answerId == '44') {this.form.birthday = list[i].emptyTwo} if (list[i].answerId == '44') {this.form.birthday = list[i].emptyTwo}
if (list[i].answerId == '45') {this.form.nationality = +list[i].emptyTwo} if (list[i].answerId == '45') {this.form.nationality = list[i].emptyTwo}
if (list[i].answerId == '46') {this.form.mailbox = list[i].emptyTwo} if (list[i].answerId == '46') {this.form.mailbox = list[i].emptyTwo}
if (list[i].answerId == '47') {this.form.phone = list[i].emptyTwo} if (list[i].answerId == '47') {this.form.phone = list[i].emptyTwo}
} }
} }
}).catch((error)=>{ }).catch((error)=>{
}) })
console.log(this.form.idNumber)
}, },
...mapMutations({ ...mapMutations({
changeShowGoods: 'system/changeShowGoods', changeShowGoods: 'system/changeShowGoods',
@ -291,11 +272,12 @@ export default {
let consumerClientDragList = JSON.parse(nomClientIdentity); let consumerClientDragList = JSON.parse(nomClientIdentity);
let nomClientIdentitys = JSON.parse(nomClientIdentity); let nomClientIdentitys = JSON.parse(nomClientIdentity);
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
if (nomClientIdentitys && nomClientIdentitys.length > 0){ this.visible = true;
this.visible = true; // if (nomClientIdentitys && nomClientIdentitys.length > 0){
}else{ // this.visible = true;
this.$message.error('请刷身份证'); // }else{
} // this.$message.error('');
// }
} , this.$refs)); } , this.$refs));
}, },
@ -308,7 +290,7 @@ export default {
let formList = []; let formList = [];
formList.push({"answerId":'41',"emptyOne": "", "emptyTwo": nomClientIdentity, "operationIds": "285,287,5,25,33,41","type": ""}) formList.push({"answerId":'41',"emptyOne": "", "emptyTwo": this.form.idNumber, "operationIds": "285,287,5,25,33,41","type": ""})
if(this.form.sex){ if(this.form.sex){
formList.push({ formList.push({
"answerId":'43', "answerId":'43',
@ -390,16 +372,16 @@ export default {
watch: { watch: {
dataFlowId(newVal) { dataFlowId(newVal) {
console.log('---newVal') this.idNumberJudge = true
console.log(newVal) const { idType, userName, sex, birthday, nationality, mailbox, phone, idNumber } = this.dataFlow
if(this.dataFlowId2 !== newVal) { this.form.idNumber = idNumber
this.dataFlowId2 = newVal this.form.idType = idType
for(let key in this.form) { this.form.userName = userName
if(this.dataFlow[key]) { this.form.sex = sex
this.form[key] = this.dataFlow[key] this.form.birthday = birthday
} this.form.nationality = nationality
} this.form.mailbox = mailbox
} this.form.phone = phone
} }
} }
}; };

@ -1,13 +1,11 @@
/* 个人业务>活期业务>销户 */ /* 个人业务>活期业务>销户 */
<template> <template>
<div class="body"> <div class="body" v-if="!needBefore">
<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="popUp1('刷卡器')"> <el-input ref="cardNumber" disabled :value="form.cardNumber" @input="(val) => inputListen(val, form, 'cardNumber')"></el-input>
<p>请刷卡</p>
</div>
</el-form-item> </el-form-item>
<el-form-item label="证件类型"> <el-form-item label="证件类型">
<el-select v-model="form.idType" placeholder="请选择"> <el-select v-model="form.idType" placeholder="请选择">
@ -15,37 +13,70 @@
</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>
<div v-else @click="popUp3('密码器')">
<el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div>
</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="userName"> <el-form-item label="客户姓名" prop="userName">
<el-input ref="userName" :value="form.userName" @input="(val) => checkName(val, form, 'userName')"></el-input> <el-input ref="userName" disabled :value="form.userName" @input="(val) => checkName(val, form, 'userName')"></el-input>
</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 v-model="form.idNumber" ref="idNumber"></el-input>
</div>
</el-form-item> </el-form-item>
</el-col> </el-col>
</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'>
</need-before>
</template> </template>
<script> <script>
import { vercustomer } from '@/utils/verify.js' import { vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi, checkName, autoPlay, autoPlay2 } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, autoPlay, autoPlay2, inputListen } from '@/utils/utilFunction.js'
import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog'
const moduleName = 'currentAccount/Cancell' // 怀
export default{ export default{
name:'', name:'',
props:{}, props:{},
components: {
NeedBefore,
MyDialog
},
data(){ data(){
return{ return{
visible: false,
needBefore: false,
idNumberJudge: false,
cardNumberJudge: false,
form:{ form:{
idType:'', idType:'身份证',
userName:'', userName:'',
cardNumber: '', //
drawPassword: '',
idNumber: '', //
},
formName: {
idType:'身份证',
userName:'客户姓名',
cardNumber: '卡号', //
drawPassword: '支取密码',
idNumber: '证件号码', //
}, },
rules: { rules: {
userName: vercustomer userName: vercustomer
@ -58,56 +89,90 @@ export default{
} }
}, },
myTable: { myTable: {
113: {
prop: 'cardNumber',
type: '3',
},
114: { 114: {
prop: 'userName', prop: 'userName',
type: '3', type: '3',
"subjectId": 7, "subjectId": 7,
} },
116: {
prop: 'idNumber',
type: '3',
},
117: {
prop: 'drawPassword',
type: '3',
},
// cardNumber
} }
} }
}, },
created() { created() {
//
if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') {
const { voucherNumber, userName } = this.dataFlow
this.form.cardNumber = voucherNumber
this.form.userName = userName
}else {
this.needBefore = this.needsModule(moduleName)
}
}
}, },
mounted() { mounted() {
this.$refs.userName.focus()
const parentId = '285,287,5,26,57,67' const parentId = '285,287,5,26,57,67'
const cardArr = { const cardArr = {
113: 'nomCurrentCancellCard1', // 113: 'nomCurrentCancellCard1',
116: 'nomCurrentCancellCard2', // 116: 'nomCurrentCancellCard2',
117: 'nomCurrentCancellPassword' // 117: 'nomCurrentCancellPassword'
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr) const callback = () => {
if(this.form.idNumber) {
this.idNumberJudge = true
}
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr, callback)
}, },
methods: { methods: {
// //
...mapMutations({
changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule'
}),
submitForm(){ submitForm(){
let nomCurrentCancellCard1 = sessionStorage.getItem('nomCurrentCancellCard1') this.visible = true
console.log(nomCurrentCancellCard1) },
let nomCurrentCancellCard1s = JSON.parse(nomCurrentCancellCard1); submitForm2() {
let nomCurrentCancellCard2 = sessionStorage.getItem('nomCurrentCancellCard2') // let nomCurrentCancellCard1 = sessionStorage.getItem('nomCurrentCancellCard1')
let nomCurrentCancellCard2s = JSON.parse(nomCurrentCancellCard2); // let nomCurrentCancellCard1s = JSON.parse(nomCurrentCancellCard1);
let nomCurrentCancellPassword = sessionStorage.getItem('nomCurrentCancellPassword') // let nomCurrentCancellCard2 = sessionStorage.getItem('nomCurrentCancellCard2')
let nomCurrentCancellPasswords = JSON.parse(nomCurrentCancellPassword); // let nomCurrentCancellCard2s = JSON.parse(nomCurrentCancellCard2);
// let nomCurrentCancellPassword = sessionStorage.getItem('nomCurrentCancellPassword')
// let nomCurrentCancellPasswords = JSON.parse(nomCurrentCancellPassword);
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
const cards = [ const cards = [
{ // {
113: nomCurrentCancellCard1 // 113: nomCurrentCancellCard1
}, // },
{ // {
116: nomCurrentCancellCard2 // 116: nomCurrentCancellCard2
}, // },
{ // {
117: nomCurrentCancellPassword, // 117: nomCurrentCancellPassword,
"subjectId": 17, // "subjectId": 17,
} // }
] ]
// const passwords = [ // const passwords = [
// { 117: nomCurrentCancellPasswords } // { 117: nomCurrentCancellPasswords }
// ] // ]
const parentId = '285,287,5,26,57,67' const parentId = '285,287,5,26,57,67'
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
this.setNeedsModule(moduleName)
}, this.$refs)); }, this.$refs));
}, },
popUp1(text) { popUp1(text) {
@ -121,8 +186,41 @@ export default{
this.$store.commit('system/changePop',{show:true,text, id: '117'}) this.$store.commit('system/changePop',{show:true,text, id: '117'})
}, },
checkHanzi: checkHanzi, checkHanzi: checkHanzi,
checkName: checkName checkName: checkName,
inputListen: inputListen
}, },
computed: {
...mapGetters({
dataFlow: 'system/dataFlow',
dataFlowCard: 'system/dataFlowCard',
dataFlowId: 'system/dataFlowId',
dataFlowPassword: 'system/dataFlowPassword',
needsModule: 'system/needsModule',
idCardNumber: 'system/idCardNumber',
inMyWork: 'system/inMyWork',
})
},
watch: {
dataFlowCard(newVal) {
this.cardNumberJudge = true
console.log('这里不用你刷的')
this.$nextTick(() => {
this.$refs.voucherNumber.focus()
})
},
dataFlowPassword(newVal) {
const nomCurrentCancellPassword = sessionStorage.getItem('nomCurrentCancellPassword')
this.form.drawPassword = nomCurrentCancellPassword
},
dataFlowId(newVal) {
this.idNumberJudge = true
const { idNumber } = this.dataFlow
this.form.idNumber = idNumber
this.$nextTick(() => {
this.$refs.idNumber.focus
})
}
}
} }
</script> </script>
<style lang='scss' scoped> <style lang='scss' scoped>

@ -5,11 +5,12 @@
<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="卡号"> <el-form-item label="卡号">
<div class="idCard" @click="popUp('刷卡器')" v-if="!form.idCardNumber">
<div v-if='!cardNumberJudge' class="idCard" @click="popUp('刷卡器')">
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input ref="idCardNumber" :value="form.idCardNumber" disabled></el-input> <el-input ref="idCardNumber" disabled :value="form.idCardNumber" @input="(val) => inputListen(val, form, 'idCardNumber')"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
@ -42,7 +43,7 @@
</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" /> <my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" :needAuth="false" />
</div> </div>
<need-before v-else :moduleName='needBefore'> <need-before v-else :moduleName='needBefore'>
</need-before> </need-before>
@ -68,6 +69,7 @@ export default{
return{ return{
visible: false, visible: false,
needBefore: '', needBefore: '',
cardNumberJudge: false,
form:{ form:{
currency:'', currency:'',
money:'', money:'',
@ -133,7 +135,11 @@ export default{
if(data.status == 200) { if(data.status == 200) {
var list = data.data.judgmentRuleReqs var list = data.data.judgmentRuleReqs
for (var i = 0; i < list.length; i++) { for (var i = 0; i < list.length; i++) {
if (list[i].answerId == '78') {sessionStorage.setItem('nomBusinessDepositCard', list[i].emptyTwo)} // // if (list[i].answerId == '78') {sessionStorage.setItem('nomBusinessDepositCard', list[i].emptyTwo)} //
if (list[i].answerId == '78') {
this.form.idCardNumber = list[i].emptyTwo
this.cardNumberJudge = true
} //
if (list[i].answerId == '79') {this.form.userName = list[i].emptyTwo} // if (list[i].answerId == '79') {this.form.userName = list[i].emptyTwo} //
if (list[i].answerId == '80') {this.form.currency = list[i].emptyTwo} // if (list[i].answerId == '80') {this.form.currency = list[i].emptyTwo} //
if (list[i].answerId == '81') {this.form.goldLogo = list[i].emptyTwo} // if (list[i].answerId == '81') {this.form.goldLogo = list[i].emptyTwo} //
@ -164,7 +170,8 @@ export default{
let nomBusinessDepositCard = sessionStorage.getItem('nomBusinessDepositCard') let nomBusinessDepositCard = sessionStorage.getItem('nomBusinessDepositCard')
let nomBusinessDepositCards = nomBusinessDepositCard // JSON.parse(nomBusinessDepositCard); let nomBusinessDepositCards = nomBusinessDepositCard // JSON.parse(nomBusinessDepositCard);
if (nomBusinessDepositCards && nomBusinessDepositCards.length > 0){ if (nomBusinessDepositCards && nomBusinessDepositCards.length > 0){
formList.push({"answerId":78,"emptyOne": "", "emptyTwo": nomBusinessDepositCards, "operationIds": "285,287,5,26,57,63,78","type": ""})// // formList.push({"answerId":78,"emptyOne": "", "emptyTwo": nomBusinessDepositCards, "operationIds": "285,287,5,26,57,63,78","type": ""})//
formList.push({"answerId":78,"emptyOne": "", "emptyTwo": this.form.idCardNumber, "operationIds": "285,287,5,26,57,63,78","type": ""})
if(this.form.currency){ if(this.form.currency){
formList.push({ "answerId":'80', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "285,287,5,26,57,63,80", "type": "1" })// formList.push({ "answerId":'80', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "285,287,5,26,57,63,80", "type": "1" })//
} }
@ -215,11 +222,12 @@ export default{
}, },
watch: { watch: {
dataFlowCard(val) { dataFlowCard(val) {
const { userName, goldLogo, currency } = this.dataFlow const { userName, goldLogo, currency, voucherNumber } = this.dataFlow
this.form.userName = userName this.form.userName = userName
this.form.goldLogo = goldLogo // goldLogo // 13是什么鬼 this.form.goldLogo = goldLogo // goldLogo // 13是什么鬼
this.form.currency = currency this.form.currency = currency
this.form.idCardNumber = this.idCardNumber this.form.idCardNumber = voucherNumber
this.cardNumberJudge = true
} }
} }
} }

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

@ -5,11 +5,11 @@
<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 v-if='!form.cardNumber' class="idCard" @click="popUp('刷卡器')"> <div v-if='!cardNumberJudge' class="idCard" @click="popUp('刷卡器')">
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input :value="form.cardNumber" disabled ref="cardNumber"></el-input> <el-input @blur="getDataBlur" ref="cardNumber" disabled v-model="form.cardNumber" @input="(val) => inputListen(val, form, 'cardNumber')"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
@ -18,17 +18,17 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="金额"> <el-form-item label="金额">
<el-input disabled :value="form.money" @input="val => ismoney(val, form, 'money')"></el-input> <el-input :value="form.money" @input="val => ismoney(val, form, 'money')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="总金额"> <el-form-item label="总金额">
<el-input disabled v-model="form.totalMoney" placeholder="显示余额加利息总额"></el-input> <el-input v-model="form.totalMoney" placeholder="显示余额加利息总额"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="支取密码" required> <el-form-item label="支取密码" required>
<div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else> <div v-else @click="popUp('密码器')">
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input> <el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -42,7 +42,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="利息"> <el-form-item label="利息">
<el-input v-model="form.interest" disabled></el-input> <el-input v-model="form.interest"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="支取方式" prop="chargeWay"> <el-form-item label="支取方式" prop="chargeWay">
<el-select v-model="form.chargeWay" placeholder="请选择" ref="chargeWay"> <el-select v-model="form.chargeWay" placeholder="请选择" ref="chargeWay">
@ -65,7 +65,7 @@
</template> </template>
<script> <script>
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2 } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen } from '@/utils/utilFunction.js'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore' import NeedBefore from '@/components/needBefore'
@ -82,6 +82,7 @@ export default{
return{ return{
visible: false, visible: false,
needBefore: '', needBefore: '',
cardNumberJudge: false,
form:{ form:{
cardNumber: '', cardNumber: '',
drawPassword: '', drawPassword: '',
@ -100,7 +101,7 @@ export default{
currency:'币种', currency:'币种',
money:'金额', money:'金额',
totalMoney:'总金额', totalMoney:'总金额',
userName:'客户姓名', userName:'客户姓名', //
goldLogo:'钞汇标识', goldLogo:'钞汇标识',
interest:'利息', interest:'利息',
chargeWay:'支取方式', chargeWay:'支取方式',
@ -117,6 +118,10 @@ export default{
] ]
}, },
myTable2: { myTable2: {
103: {
prop: 'cardNumber',
type: '3',
},
105: { 105: {
prop: 'currency', prop: 'currency',
type: '1', type: '1',
@ -142,6 +147,10 @@ export default{
type: '3', type: '3',
"subjectId": 45, "subjectId": 45,
}, },
111: {
prop: 'drawPassword',
type: '3'
},
112: { 112: {
prop: 'remark', prop: 'remark',
type: '3', type: '3',
@ -172,13 +181,22 @@ export default{
} }
}, },
mounted() { mounted() {
this.$refs.userName.focus()
const parentId = '285,287,5,26,57,66' const parentId = '285,287,5,26,57,66'
const cardArr = { const cardArr = {
103: 'nomCurrentSettleCard', // 103: 'nomCurrentSettleCard',
111: 'nomCurrentSettlePassword' // 111: 'nomCurrentSettlePassword'
}
const callback = () => {
if(this.form.cardNumber) {
this.cardNumberJudge = true
this.setDataFlow({ voucherNumber: this.form.cardNumber })
}
if(this.form.userName) {
this.setDataFlow({ userName: this.form.userName })
}
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr, callback)
}, },
methods: { methods: {
...mapMutations({ ...mapMutations({
@ -187,6 +205,9 @@ export default{
setNeedsModule: 'system/setNeedsModule' setNeedsModule: 'system/setNeedsModule'
}), }),
// //
getDataBlur() {
},
submitForm(){ submitForm(){
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
@ -199,23 +220,27 @@ export default{
let nomCurrentSettlePassword = sessionStorage.getItem('nomCurrentSettlePassword') let nomCurrentSettlePassword = sessionStorage.getItem('nomCurrentSettlePassword')
let nomCurrentSettlePasswords = JSON.parse(nomCurrentSettlePassword); let nomCurrentSettlePasswords = JSON.parse(nomCurrentSettlePassword);
const cards = [ const cards = [
{ // {
103: nomCurrentSettleCard // 103: nomCurrentSettleCard
}, // },
{ // {
111: nomCurrentSettlePassword, // 111: nomCurrentSettlePassword,
"subjectId": 17, // "subjectId": 17,
} // }
] ]
const parentId = '285,287,5,26,57,66' const parentId = '285,287,5,26,57,66'
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
this.setNeedsModule(moduleName)
const { cardNumber, userName } = this.form
this.setDataFlow({ voucherNumber: cardNumber, userName })
}, },
popUp(text) { popUp(text) {
this.$store.commit('system/changePop',{show:true,text, id: 66}) this.$store.commit('system/changePop',{show:true,text, id: 66})
}, },
ismoney: ismoney, ismoney: ismoney,
checkHanzi: checkHanzi, checkHanzi: checkHanzi,
checkName: checkName checkName: checkName,
inputListen: inputListen
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({
@ -229,7 +254,14 @@ export default{
}, },
watch: { watch: {
dataFlowCard(newVal) { dataFlowCard(newVal) {
this.form.cardNumber = this.idCardNumber this.cardNumberJudge = true
this.$nextTick(() => {
this.$refs.cardNumber.focus()
})
// this.form.cardNumber = this.idCardNumber
const { currency, userName, goldLogo, serviceCharge, chargeWay, interest } = this.dataFlow const { currency, userName, goldLogo, serviceCharge, chargeWay, interest } = this.dataFlow
this.form.currency = currency this.form.currency = currency
this.form.userName = userName this.form.userName = userName
@ -239,7 +271,8 @@ export default{
this.form.interest = interest this.form.interest = interest
}, },
dataFlowPassword(newVal) { dataFlowPassword(newVal) {
this.form.drawPassword = '******' const nomCurrentSettlePassword = sessionStorage.getItem('nomCurrentSettlePassword')
this.form.drawPassword = nomCurrentSettlePassword
} }
} }
} }

@ -5,7 +5,7 @@
<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 v-if='!form.cardNumber' class="idCard" @click="popUp('刷卡器')"> <div v-if='!cardNumberJudge' class="idCard" @click="popUp('刷卡器')">
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
@ -26,7 +26,7 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="username"> <el-form-item label="客户姓名" prop="username">
<el-input :value="form.userName" @input="(val) => checkName(val, form, 'userName')" disabled></el-input> <el-input :value="form.userName" @input="(val) => checkName(val, form, 'userName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="goldLogo"> <el-form-item label="钞汇标识" prop="goldLogo">
<el-select v-model="form.goldLogo" placeholder="请选择" ref="goldLogo"> <el-select v-model="form.goldLogo" placeholder="请选择" ref="goldLogo">
@ -37,8 +37,8 @@
<div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else> <div v-else @click="popUp('密码器')">
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input> <el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="收款人名称" prop="payeeName" > <el-form-item label="收款人名称" prop="payeeName" >
@ -77,6 +77,7 @@ export default{
return{ return{
visible: false, visible: false,
needBefore: '', needBefore: '',
cardNumberJudge: false,
form:{ form:{
cardNumber: '', cardNumber: '',
drawPassword: '', drawPassword: '',
@ -89,8 +90,10 @@ export default{
remark:'', remark:'',
}, },
formName: { formName: {
cardNumber: '卡号',
currency:'币种', currency:'币种',
money:'金额', money:'金额',
drawPassword: '支取密码',
shroffAccount:'收款卡号', shroffAccount:'收款卡号',
userName:'客户姓名', userName:'客户姓名',
goldLogo:'钞汇标识', goldLogo:'钞汇标识',
@ -126,11 +129,19 @@ export default{
], ],
}, },
myTable2: { myTable2: {
94: {
prop: 'cardNumber',
type: '3'
},
96: { 96: {
prop: 'currency', prop: 'currency',
type: '1', type: '1',
"subjectId": 8, "subjectId": 8,
}, },
99: {
prop: 'drawPassword',
type: '3',
},
100: { 100: {
prop: 'shroffAccount', prop: 'shroffAccount',
type: '3', type: '3',
@ -170,19 +181,28 @@ export default{
created() { created() {
if(this.inMyWork(moduleName)) { if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') { if(this.needsModule(moduleName) === '') {
const parentId = '285,287,5,26,57,65'
const cardArr = {
// 94: 'nomCurrentTransferCard',
// 99: 'nomCurrentTransferPassword'
}
const callback = () => {
if(this.form.cardNumber) {
this.cardNumberJudge = true
}
if(this.form.drawPassword) {
sessionStorage.setItem('nomCurrentTransferPassword', this.form.drawPassword)
}
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr, callback)
}else { }else {
this.needBefore = this.needsModule(moduleName) this.needBefore = this.needsModule(moduleName)
} }
} }
}, },
mounted() { mounted() {
this.$refs.money.focus() // this.$refs.money.focus()
const parentId = '285,287,5,26,57,65'
const cardArr = {
94: 'nomCurrentTransferCard',
99: 'nomCurrentTransferPassword'
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr)
}, },
methods: { methods: {
...mapMutations({ ...mapMutations({
@ -205,13 +225,13 @@ export default{
let nomCurrentTransferPassword = sessionStorage.getItem('nomCurrentTransferPassword') let nomCurrentTransferPassword = sessionStorage.getItem('nomCurrentTransferPassword')
let nomCurrentTransferPasswords = JSON.parse(nomCurrentTransferPassword); let nomCurrentTransferPasswords = JSON.parse(nomCurrentTransferPassword);
const cards = [ const cards = [
{ // {
94: nomCurrentTransferCard // 94: nomCurrentTransferCard
}, // },
{ // {
99: nomCurrentTransferPassword, // 99: nomCurrentTransferPassword,
"subjectId": 17, // "subjectId": 17,
} // }
] ]
const parentId = '285,287,5,26,57,65' const parentId = '285,287,5,26,57,65'
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
@ -240,8 +260,10 @@ export default{
}, },
watch: { watch: {
dataFlowCard(newVal) { dataFlowCard(newVal) {
this.form.cardNumber = this.idCardNumber // 0.0020
const { currency, userName, goldLogo, serviceCharge, chargeWay } = this.dataFlow this.cardNumberJudge = true
const { currency, userName, goldLogo, serviceCharge, chargeWay, voucherNumber } = this.dataFlow
this.form.cardNumber = voucherNumber
this.form.currency = currency this.form.currency = currency
this.form.userName = userName this.form.userName = userName
this.form.goldLogo = goldLogo this.form.goldLogo = goldLogo
@ -249,8 +271,9 @@ export default{
this.form.chargeWay = chargeWay this.form.chargeWay = chargeWay
}, },
dataFlowPassword(newVal) { dataFlowPassword(newVal) {
this.form.drawPassword = '******' const nomCurrentTransferPassword = sessionStorage.getItem('nomCurrentTransferPassword')
} this.form.drawPassword = nomCurrentTransferPassword
},
} }
} }
</script> </script>

@ -5,11 +5,11 @@
<el-form ref="form" :rules="rules" :model="form" label-width="120px"> <el-form ref="form" :rules="rules" :model="form" label-width="120px">
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="卡号" required> <el-form-item label="卡号" required>
<div v-if='!form.cardNumber' class="idCard" @click="popUp('刷卡器')"> <div v-if='!cardNumberJudge' class="idCard" @click="popUp('刷卡器')">
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input :value="form.cardNumber" disabled ref="cardNumber"></el-input> <el-input ref="cardNumber" disabled :value="form.cardNumber" @input="(val) => inputListen(val, form, 'cardNumber')"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
@ -24,8 +24,8 @@
<div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else> <div v-else @click="popUp('密码器')">
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input> <el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -94,6 +94,7 @@ export default{
return{ return{
visible: false, visible: false,
needBefore: '', needBefore: '',
cardNumberJudge: false,
form:{ form:{
cardNumber: '', cardNumber: '',
drawPassword: '', drawPassword: '',
@ -163,7 +164,9 @@ export default{
var list = data.data.judgmentRuleReqs var list = data.data.judgmentRuleReqs
for (var i = 0; i < list.length; i++) { for (var i = 0; i < list.length; i++) {
if (list[i].answerId == '85') { if (list[i].answerId == '85') {
sessionStorage.setItem('nomCurrentWithdrawalCard', list[i].emptyTwo) // sessionStorage.setItem('nomCurrentWithdrawalCard', list[i].emptyTwo)
this.form.cardNumber = list[i].emptyTwo
this.cardNumberJudge = true
// console.log(list[i].emptyTwo) // console.log(list[i].emptyTwo)
} // } //
if (list[i].answerId == '86') {this.form.userName = list[i].emptyTwo} // if (list[i].answerId == '86') {this.form.userName = list[i].emptyTwo} //
@ -171,7 +174,10 @@ export default{
if (list[i].answerId == '88') {this.form.goldLogo = list[i].emptyTwo} // if (list[i].answerId == '88') {this.form.goldLogo = list[i].emptyTwo} //
if (list[i].answerId == '89') {this.form.money = list[i].emptyTwo} // if (list[i].answerId == '89') {this.form.money = list[i].emptyTwo} //
if (list[i].answerId == '90') {this.form.chargeWay = list[i].emptyTwo} // if (list[i].answerId == '90') {this.form.chargeWay = list[i].emptyTwo} //
if (list[i].answerId == '91') {sessionStorage.setItem('nomCurrentWithdrawalPassword', list[i].emptyTwo)} // // if (list[i].answerId == '91') {sessionStorage.setItem('nomCurrentWithdrawalPassword', list[i].emptyTwo)} //
if (list[i].answerId == '91') {
this.form.drawPassword = list[i].emptyTwo
}
if (list[i].answerId == '92') {this.form.serviceCharge = list[i].emptyTwo} // if (list[i].answerId == '92') {this.form.serviceCharge = list[i].emptyTwo} //
if (list[i].answerId == '93') {this.form.remark = list[i].emptyTwo} // if (list[i].answerId == '93') {this.form.remark = list[i].emptyTwo} //
} }
@ -193,9 +199,12 @@ export default{
let nomCurrentWithdrawalPasswords = nomCurrentWithdrawalPassword // JSON.parse(nomCurrentWithdrawalPassword); let nomCurrentWithdrawalPasswords = nomCurrentWithdrawalPassword // JSON.parse(nomCurrentWithdrawalPassword);
let formList = []; let formList = [];
// //
if (nomCurrentWithdrawalCards && nomCurrentWithdrawalCards.length > 0 && nomCurrentWithdrawalPasswords){ // if (nomCurrentWithdrawalCards && nomCurrentWithdrawalCards.length > 0 && nomCurrentWithdrawalPasswords){
formList.push({"answerId":85,"emptyOne": "", "emptyTwo": nomCurrentWithdrawalCards, "operationIds": "285,287,5,26,57,64,85","type": ""})// if (this.form.drawPassword && this.form.cardNumber){
formList.push({"answerId":91,"emptyOne": "", "emptyTwo": nomCurrentWithdrawalPassword, "operationIds": "285,287,5,26,57,64,91","type": ""}) // formList.push({"answerId":85,"emptyOne": "", "emptyTwo": nomCurrentWithdrawalCards, "operationIds": "285,287,5,26,57,64,85","type": ""})//
formList.push({"answerId":85,"emptyOne": "", "emptyTwo": this.form.cardNumber, "operationIds": "285,287,5,26,57,64,85","type": ""})
// formList.push({"answerId":91,"emptyOne": "", "emptyTwo": nomCurrentWithdrawalPassword, "operationIds": "285,287,5,26,57,64,91","type": ""})
formList.push({"answerId":91,"emptyOne": "", "emptyTwo": this.form.drawPassword, "operationIds": "285,287,5,26,57,64,91","type": "3"})
if (this.form.currency){formList.push({"answerId":'87', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "285,287,5,26,57,64,87","type": "1"})}// if (this.form.currency){formList.push({"answerId":'87', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "285,287,5,26,57,64,87","type": "1"})}//
if (this.form.money){formList.push({"answerId":'89', "emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "285,287,5,26,57,64,89", "type": "3"})}// if (this.form.money){formList.push({"answerId":'89', "emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "285,287,5,26,57,64,89", "type": "3"})}//
if (this.form.remark){formList.push({"answerId":'93', "emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "285,287,5,26,57,64,93", "type": "3"})}// if (this.form.remark){formList.push({"answerId":'93', "emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "285,287,5,26,57,64,93", "type": "3"})}//
@ -253,7 +262,8 @@ export default{
this.form.chargeWay = chargeWay this.form.chargeWay = chargeWay
}, },
dataFlowPassword(newVal) { dataFlowPassword(newVal) {
this.form.drawPassword = '******' const nomCurrentWithdrawalPassword = sessionStorage.getItem('nomCurrentWithdrawalPassword')
this.form.drawPassword = nomCurrentWithdrawalPassword
} }
} }
} }

@ -9,7 +9,7 @@
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input @blur="getDataBlur" ref="voucherNumber" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> <el-input @blur="getDataBlur" ref="voucherNumber" disabled :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
@ -63,7 +63,7 @@
<div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else> <div v-else @click="popUp('密码器')">
<el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input> <el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
@ -303,6 +303,9 @@ export default{
if(this.form.voucherNumber) { if(this.form.voucherNumber) {
this.cardNumberJudge = true this.cardNumberJudge = true
} }
if(this.form.drawPassword) {
sessionStorage.setItem('nomtimeDepositlPassword', this.form.drawPassword)
}
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
@ -320,8 +323,8 @@ export default{
}, },
submitForm2() { submitForm2() {
let nomtimeDeposit1 = sessionStorage.getItem('nomtimeDeposit1') // let nomtimeDeposit1 = sessionStorage.getItem('nomtimeDeposit1')
let nomtimeDepositlPassword = sessionStorage.getItem('nomtimeDepositlPassword') // let nomtimeDepositlPassword = sessionStorage.getItem('nomtimeDepositlPassword')
const parentId = '285,287,5,26,58,119' const parentId = '285,287,5,26,58,119'
const cards = [ const cards = [
// { // {

@ -50,14 +50,14 @@
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input @blur="getDataBlur" ref="voucherNumber" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> <el-input @blur="getDataBlur" ref="voucherNumber" disabled :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="支取密码" required> <el-form-item label="支取密码" required>
<div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else> <div v-else @click="popUp('密码器')">
<el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input> <el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
@ -217,14 +217,15 @@ export default{
created() { created() {
if(this.inMyWork(moduleName)) { if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') { if(this.needsModule(moduleName) === '') {
this.form.clientNumber = this.dataFlow.peopleNumber
this.getFormData()
}else { }else {
this.needBefore = this.needsModule(moduleName) this.needBefore = this.needsModule(moduleName)
} }
} }
}, },
mounted() { mounted() {
this.getFormData()
this.$refs.clientNumber.focus()
}, },
methods: { methods: {
...mapMutations({ ...mapMutations({
@ -249,6 +250,7 @@ export default{
if(this.form.voucherNumber) { if(this.form.voucherNumber) {
this.cardNumberJudge = true this.cardNumberJudge = true
} }
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },

@ -9,7 +9,7 @@
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input @blur="getDataBlur" ref="voucherNumber" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> <el-input @blur="getDataBlur" ref="voucherNumber" disabled :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currencyType"> <el-form-item label="币种" prop="currencyType">

@ -14,7 +14,7 @@
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input @blur="getDataBlur" ref="voucherNumber" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> <el-input disabled ref="voucherNumber" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
@ -47,7 +47,7 @@
<p>请刷身份证</p> <p>请刷身份证</p>
</div> </div>
<div v-else> <div v-else>
<el-input :value="form.idNumber" ref="idNumber"></el-input> <el-input :value="form.idNumber" disabled ref="idNumber"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
@ -75,7 +75,7 @@
<div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else> <div v-else @click="popUp2('密码器')">
<el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input> <el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
@ -115,6 +115,7 @@ export default{
created() { created() {
if(this.inMyWork(moduleName)) { if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') { if(this.needsModule(moduleName) === '') {
this.getFormData()
}else { }else {
this.needBefore = this.needsModule(moduleName) this.needBefore = this.needsModule(moduleName)
} }
@ -261,9 +262,7 @@ export default{
} }
}, },
mounted() { mounted() {
this.getFormData()
this.$refs.customerName.focus()
}, },
methods: { methods: {
...mapMutations({ ...mapMutations({
@ -271,8 +270,6 @@ export default{
setDataFlow: 'system/setDataFlow', setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule' setNeedsModule: 'system/setNeedsModule'
}), }),
getDataBlur() {
},
getFormData(){ getFormData(){
const parentId = '285,287,5,26,59,157' const parentId = '285,287,5,26,59,157'
const cards = { const cards = {

@ -9,7 +9,7 @@
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input @blur="getDataBlur" ref="voucherNumber" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> <el-input @blur="getDataBlur" disabled ref="voucherNumber" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="定存编号" prop="depositNumber"> <el-form-item label="定存编号" prop="depositNumber">
@ -44,8 +44,8 @@
<div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else> <div v-else @click="popUp2('密码器')">
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input> <el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -185,15 +185,7 @@ export default{
setNeedsModule: 'system/setNeedsModule' setNeedsModule: 'system/setNeedsModule'
}), }),
getDataBlur() { getDataBlur() {
if(this.form.voucherNumber) {
const { userName, depositNumber, currency, goldLogo, depositTerm, monthDeposit } = this.dataFlow
this.form.customerName = userName
this.form.currency = currency
this.form.depositTerm = depositTerm
this.form.depositNumber = depositNumber
this.form.moneyTarget = goldLogo
this.form.monthDeposit = monthDeposit
}
}, },
getFormData(){ getFormData(){
const parentId = '285,287,5,26,59,156' const parentId = '285,287,5,26,59,156'
@ -205,6 +197,7 @@ export default{
if(this.form.voucherNumber) { if(this.form.voucherNumber) {
this.cardNumberJudge = true this.cardNumberJudge = true
} }
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
@ -256,12 +249,15 @@ export default{
watch: { watch: {
dataFlowCard(newVal) { dataFlowCard(newVal) {
// this.form.cardNumber = this.idCardNumber // this.form.cardNumber = this.idCardNumber
this.cardNumberJudge = true this.cardNumberJudge = true
const { voucherNumber } = this.dataFlow const { voucherNumber, userName, depositNumber, currency, goldLogo, depositTerm, monthDeposit } = this.dataFlow
this.form.voucherNumber = voucherNumber this.form.voucherNumber = voucherNumber
this.$nextTick(() => { this.form.customerName = userName
this.$refs.voucherNumber.focus() this.form.currency = currency
}) this.form.depositTerm = depositTerm
this.form.depositNumber = depositNumber
this.form.moneyTarget = goldLogo
this.form.monthDeposit = monthDeposit
}, },
dataFlowPassword(newVal) { dataFlowPassword(newVal) {
let nomUsefulPhrasesContinuePassword = sessionStorage.getItem('nomUsefulPhrasesContinuePassword') let nomUsefulPhrasesContinuePassword = sessionStorage.getItem('nomUsefulPhrasesContinuePassword')

@ -45,7 +45,7 @@
<p>请刷身份证</p> <p>请刷身份证</p>
</div> </div>
<div v-else> <div v-else>
<el-input :value="form.idNumber" ref="idNumber"></el-input> <el-input :value="form.idNumber" disabled ref="idNumber"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">

@ -729,6 +729,8 @@ export default {
mailbox:'广东省深圳市阳光村',//通讯地址 mailbox:'广东省深圳市阳光村',//通讯地址
phone:'13222223122',//联系电话 phone:'13222223122',//联系电话
voucherNumber
} }
}, },
'项目二': { '项目二': {
@ -759,21 +761,26 @@ export default {
'currentAccount/withdrawal': false, 'currentAccount/withdrawal': false,
'currentAccount/transferAccounts': false, 'currentAccount/transferAccounts': false,
'currentAccount/settle': false, 'currentAccount/settle': false,
'currentAccount/Cancell': false
}, },
// dataFlowGo: 0, // dataFlowGo: 0,
dataFlowCard: 0, dataFlowCard: 0,
dataFlowId: 0, dataFlowId: 0,
dataFlowPassword: 0, dataFlowPassword: 0,
dataFlow: { dataFlow: {
// peopleNumber, peopleNumber,
// userName:'肥仔',//用户名字 userName,//用户名字
// idType: '身份证', idType: '身份证',
// idNumber,//证件号码 idNumber,//证件号码
// sex:'男',//性别 sex:'男',//性别
// birthday:'2008',//出生日期 birthday:'2008',//出生日期
// // nationality:'汉',//民族 // nationality:'汉',//民族
// mailbox:'肥仔无处不在',//通讯地址 mailbox:'广东省深圳市阳光村',//通讯地址
// phone:'13222223122',//联系电话 phone:'13222223122',//联系电话
// cardNumber: '', // 卡号
voucherNumber,
idNumber,
currency:'CNY人民币', currency:'CNY人民币',
userName, userName,
goldLogo:'钞户', goldLogo:'钞户',
@ -816,6 +823,7 @@ export default {
userName, userName,
currency:'CNY人民币', currency:'CNY人民币',
goldLogo:'钞户', goldLogo:'钞户',
peopleNumber
} }
}, },
'项目四': { '项目四': {

Loading…
Cancel
Save