diff --git a/src/components/dialog/index.vue b/src/components/dialog/index.vue index cb2fad4..85616aa 100644 --- a/src/components/dialog/index.vue +++ b/src/components/dialog/index.vue @@ -63,14 +63,8 @@ export default { } }, created() { - console.log('this.showForm') - console.log(this.showForm) - console.log('kao?') let num = 0; for(const key in this.showForm) { - // if(key === 'birthday') { - // console.log(Date.format(this.showForm[key])) - // } if(num%2 === 0) { this.leftObj[this.formName[key]] = this.showForm[key] }else { @@ -101,7 +95,6 @@ export default { this.visible = false; }, sureIt() { - console.log(this.flow) if(this.flow === 1) { this.flow = 2 }else if(this.flow === 2) { diff --git a/src/components/needBefore/index.vue b/src/components/needBefore/index.vue index 6d24b03..85d570b 100644 --- a/src/components/needBefore/index.vue +++ b/src/components/needBefore/index.vue @@ -13,7 +13,10 @@ const obj = { // 'currentAccount/deposit': '/counter/list/manage/currentAccount' 'consumerClient': '客户信息 -> 个人客户信息建立', 'currentAccount/openAccount': '活期业务 -> 开户', - 'currentAccount/deposit': '活期业务 -> 存款' + 'currentAccount/deposit': '活期业务 -> 存款', + 'currentAccount/withdrawal': '活期业务 -> 取款', + 'currentAccount/transferAccounts': '活期业务 -> 转账', + 'currentAccount/settle': '活期业务 -> 销户', } import {mapGetters} from 'vuex' diff --git a/src/pages/manage/list/client/consumerClient.vue b/src/pages/manage/list/client/consumerClient.vue index fbc470a..2d5c10e 100644 --- a/src/pages/manage/list/client/consumerClient.vue +++ b/src/pages/manage/list/client/consumerClient.vue @@ -114,7 +114,7 @@ import MyTitle from '@/components/myTitle' import MyDialog from '@/components/dialog' // goodState: 'system/goodState', -const moduleNmae = 'consumerClient' +const moduleName = 'consumerClient' export default { name: 'index', data() { @@ -240,7 +240,7 @@ export default { MyDialog }, created() { - console.log(moduleNmae) + console.log(moduleName) this.dataFlowId2 = this.dataFlowId }, @@ -353,7 +353,7 @@ export default { message: '提交成功', type: 'success' }); - this.setNeedsModule(moduleNmae) + this.setNeedsModule(moduleName) this.setDataFlow({ ...this.form }) }).catch((error)=>{ }) diff --git a/src/pages/manage/list/personal/currentAccount/deposit.vue b/src/pages/manage/list/personal/currentAccount/deposit.vue index 5fd7df7..a644379 100644 --- a/src/pages/manage/list/personal/currentAccount/deposit.vue +++ b/src/pages/manage/list/personal/currentAccount/deposit.vue @@ -116,10 +116,13 @@ export default{ }, created() { - if(this.needsModule(moduleName) === '') { - }else { - this.needBefore = this.needsModule(moduleName) + if(this.inMyWork(moduleName)) { + if(this.needsModule(moduleName) === '') { + }else { + this.needBefore = this.needsModule(moduleName) + } } + }, methods: { getFormData(){ @@ -206,7 +209,8 @@ export default{ dataFlowCard: 'system/dataFlowCard', dataFlowPassword: 'system/dataFlowPassword', needsModule: 'system/needsModule', - idCardNumber: 'system/idCardNumber' + idCardNumber: 'system/idCardNumber', + inMyWork: 'system/inMyWork' }) }, watch: { diff --git a/src/pages/manage/list/personal/currentAccount/openAccount.vue b/src/pages/manage/list/personal/currentAccount/openAccount.vue index b8bc32c..409b619 100644 --- a/src/pages/manage/list/personal/currentAccount/openAccount.vue +++ b/src/pages/manage/list/personal/currentAccount/openAccount.vue @@ -306,13 +306,14 @@ export default { MyDialog }, created() { - if(this.needsModule(moduleName) === '') { - this.form.userNumber = this.dataFlow.peopleNumber - this.form.userName = this.dataFlow.userName - }else { - this.needBefore = this.needsModule(moduleName) + if(this.inMyWork(moduleName)) { + if(this.needsModule(moduleName) === '') { + this.form.userNumber = this.dataFlow.peopleNumber + this.form.userName = this.dataFlow.userName + }else { + this.needBefore = this.needsModule(moduleName) + } } - }, mounted(){ if(!this.needBefore) { @@ -639,7 +640,8 @@ export default { dataFlowCard: 'system/dataFlowCard', dataFlowPassword: 'system/dataFlowPassword', needsModule: 'system/needsModule', - idCardNumber: 'system/idCardNumber' + idCardNumber: 'system/idCardNumber', + inMyWork: 'system/inMyWork' }) }, watch: { diff --git a/src/pages/manage/list/personal/currentAccount/settle.vue b/src/pages/manage/list/personal/currentAccount/settle.vue index 3750c32..2c38099 100644 --- a/src/pages/manage/list/personal/currentAccount/settle.vue +++ b/src/pages/manage/list/personal/currentAccount/settle.vue @@ -1,13 +1,16 @@ /* 个人业务>活期业务>结清 */