|
|
@ -224,10 +224,19 @@ export default { |
|
|
|
NeedBefore |
|
|
|
NeedBefore |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
created() { |
|
|
|
console.log(this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id) |
|
|
|
|
|
|
|
// console.log(moduleName) |
|
|
|
|
|
|
|
if(this.inMyWork(moduleName)) { |
|
|
|
if(this.inMyWork(moduleName)) { |
|
|
|
if(this.needsModule(moduleName) === '') { |
|
|
|
if(this.needsModule(moduleName) === '') { |
|
|
|
|
|
|
|
if(sessionStorage.getItem('nomClientIdentity')) { |
|
|
|
|
|
|
|
this.idNumberJudge = true |
|
|
|
|
|
|
|
const { idType, userName, sex, birthday, nationality, mailbox, idNumber } = this.dataFlow |
|
|
|
|
|
|
|
this.form.idNumber = idNumber |
|
|
|
|
|
|
|
this.form.idType = idType |
|
|
|
|
|
|
|
this.form.userName = userName |
|
|
|
|
|
|
|
this.form.sex = sex |
|
|
|
|
|
|
|
this.form.birthday = birthday |
|
|
|
|
|
|
|
this.form.nationality = nationality |
|
|
|
|
|
|
|
this.form.mailbox = mailbox |
|
|
|
|
|
|
|
} |
|
|
|
this.getFormData() |
|
|
|
this.getFormData() |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
this.isNeedBefore = true |
|
|
|
this.isNeedBefore = true |
|
|
@ -260,8 +269,8 @@ export default { |
|
|
|
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') { |
|
|
|
if (list[i].answerId == '41') { |
|
|
|
this.form.idNumber = list[i].emptyTwo |
|
|
|
|
|
|
|
this.idNumberJudge = true |
|
|
|
this.idNumberJudge = true |
|
|
|
|
|
|
|
this.form.idNumber = list[i].emptyTwo |
|
|
|
} |
|
|
|
} |
|
|
|
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} |
|
|
@ -279,11 +288,16 @@ export default { |
|
|
|
...mapMutations({ |
|
|
|
...mapMutations({ |
|
|
|
changeShowGoods: 'system/changeShowGoods', |
|
|
|
changeShowGoods: 'system/changeShowGoods', |
|
|
|
setDataFlow: 'system/setDataFlow', |
|
|
|
setDataFlow: 'system/setDataFlow', |
|
|
|
setNeedsModule: 'system/setNeedsModule' |
|
|
|
setNeedsModule: 'system/setNeedsModule', |
|
|
|
|
|
|
|
setPopId: 'system/setPopId' |
|
|
|
}), |
|
|
|
}), |
|
|
|
popUp(){// 唤起弹窗 |
|
|
|
popUp(){// 唤起弹窗 |
|
|
|
this.$store.commit('system/changePop',{show:true,text:'身份证扫描仪',id:'33'}) |
|
|
|
// this.$store.commit('system/changePop',{show:true,text:'身份证扫描仪',id:'33'}) |
|
|
|
this.changeShowGoods(true) |
|
|
|
// this.changeShowGoods(true) |
|
|
|
|
|
|
|
this.$message.info('请刷身份证'); |
|
|
|
|
|
|
|
// this.$store.commit('system/changePop',{show: false, text: '', id:'33'}) |
|
|
|
|
|
|
|
this.setPopId('33') |
|
|
|
|
|
|
|
this.$router.push('/counter/list/') |
|
|
|
}, |
|
|
|
}, |
|
|
|
//提交个人用户信息 |
|
|
|
//提交个人用户信息 |
|
|
|
submitForm(){ |
|
|
|
submitForm(){ |
|
|
@ -291,6 +305,7 @@ 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(() => { |
|
|
|
|
|
|
|
this.form.birthday = this.form.birthday.slice(0, 10) |
|
|
|
this.visible = true; |
|
|
|
this.visible = true; |
|
|
|
// if (nomClientIdentitys && nomClientIdentitys.length > 0){ |
|
|
|
// if (nomClientIdentitys && nomClientIdentitys.length > 0){ |
|
|
|
// this.visible = true; |
|
|
|
// this.visible = true; |
|
|
@ -388,20 +403,14 @@ export default { |
|
|
|
dataFlowId: 'system/dataFlowId', |
|
|
|
dataFlowId: 'system/dataFlowId', |
|
|
|
inMyWork: 'system/inMyWork', |
|
|
|
inMyWork: 'system/inMyWork', |
|
|
|
needsModule: 'system/needsModule', |
|
|
|
needsModule: 'system/needsModule', |
|
|
|
|
|
|
|
popId: 'system/popId' |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
dataFlowId(newVal) { |
|
|
|
dataFlowId(newVal) { |
|
|
|
this.idNumberJudge = true |
|
|
|
this.idNumberJudge = true |
|
|
|
const { idType, userName, sex, birthday, nationality, mailbox, idNumber } = this.dataFlow |
|
|
|
|
|
|
|
this.form.idNumber = idNumber |
|
|
|
|
|
|
|
this.form.idType = idType |
|
|
|
|
|
|
|
this.form.userName = userName |
|
|
|
|
|
|
|
this.form.sex = sex |
|
|
|
|
|
|
|
this.form.birthday = birthday |
|
|
|
|
|
|
|
this.form.nationality = nationality |
|
|
|
|
|
|
|
this.form.mailbox = mailbox |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|