From 971bbffbee7f6e120d118d988cf641da87b2e449 Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Mon, 28 Mar 2022 15:41:29 +0800 Subject: [PATCH] update --- .../personal/callDeposits/accountClosed.vue | 22 +-- .../personal/callDeposits/openAccount.vue | 22 +-- .../list/personal/currentAccount/deposit.vue | 16 +-- .../list/personal/currentAccount/settle.vue | 16 +-- .../list/personal/timeDeposit/deposit.vue | 14 +- .../list/personal/timeDeposit/openAccount.vue | 22 +-- .../list/personal/timeDeposit/withdrawal.vue | 39 +++-- .../personal/usefulPhrases/accountClosed.vue | 22 +-- .../usefulPhrases/continueDeposit.vue | 14 +- .../personal/usefulPhrases/openAccount.vue | 23 +-- .../list/servicesAccount/passwordChange.vue | 22 +-- .../list/servicesAccount/passwordLost.vue | 22 +-- .../list/servicesAccount/relieveLost.vue | 22 +-- src/store/modules/system.js | 136 +++++++++++++++++- test.js | 115 +++++++++++++++ 15 files changed, 392 insertions(+), 135 deletions(-) diff --git a/src/pages/manage/list/personal/callDeposits/accountClosed.vue b/src/pages/manage/list/personal/callDeposits/accountClosed.vue index dac760a..758b58d 100644 --- a/src/pages/manage/list/personal/callDeposits/accountClosed.vue +++ b/src/pages/manage/list/personal/callDeposits/accountClosed.vue @@ -284,17 +284,17 @@ export default{ this.form.drawPassword = sessionStorage.getItem('nomCallDepositClosedPassword') } - if(this.isNeedBefore) { - if(sessionStorage.getItem('nomCallDepositClosedCard')) { - this.cardNumberJudge = true - this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' - } - if(sessionStorage.getItem('nomCallDepositClosedCard2')) { - this.idNumberJudge = true - this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' - } - return - } + // if(this.isNeedBefore) { + // if(sessionStorage.getItem('nomCallDepositClosedCard')) { + // this.cardNumberJudge = true + // this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' + // } + // if(sessionStorage.getItem('nomCallDepositClosedCard2')) { + // this.idNumberJudge = true + // this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' + // } + // return + // } if(sessionStorage.getItem('nomCallDepositClosedCard')) { this.cardNumberJudge = true const { noticeType, depositNumber, capital, interest, totalMoney, idNumber, diff --git a/src/pages/manage/list/personal/callDeposits/openAccount.vue b/src/pages/manage/list/personal/callDeposits/openAccount.vue index 8749b27..b49f110 100644 --- a/src/pages/manage/list/personal/callDeposits/openAccount.vue +++ b/src/pages/manage/list/personal/callDeposits/openAccount.vue @@ -272,17 +272,17 @@ export default{ this.form.drawPassword = sessionStorage.getItem('nomCallDepositOpenPassword') } - if(this.isNeedBefore) { - if(sessionStorage.getItem('nomCallDepositOpen2')) { - this.idNumberJudge = true - this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' - } - if(sessionStorage.getItem('nomCallDepositOpen3')) { - this.cardNumberJudge = true - this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' - } - return - } + // if(this.isNeedBefore) { + // if(sessionStorage.getItem('nomCallDepositOpen2')) { + // this.idNumberJudge = true + // this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' + // } + // if(sessionStorage.getItem('nomCallDepositOpen3')) { + // this.cardNumberJudge = true + // this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' + // } + // return + // } if(sessionStorage.getItem('nomCallDepositOpen2')) { this.idNumberJudge = true const { idNumber, peopleNumber, userName, currency, goldLogo, depositType } = this.dataFlow diff --git a/src/pages/manage/list/personal/currentAccount/deposit.vue b/src/pages/manage/list/personal/currentAccount/deposit.vue index 316c692..5dbaeaa 100644 --- a/src/pages/manage/list/personal/currentAccount/deposit.vue +++ b/src/pages/manage/list/personal/currentAccount/deposit.vue @@ -122,14 +122,14 @@ export default{ }, created() { - if(this.isNeedBefore) { - if(sessionStorage.getItem('nomBusinessDepositCard')) { - this.cardNumberJudge = true - const tmpVoucher = this.dataFlow.voucherNumber || '159753' - this.form.voucherNumber = tmpVoucher - } - return - } + // if(this.isNeedBefore) { + // if(sessionStorage.getItem('nomBusinessDepositCard')) { + // this.cardNumberJudge = true + // const tmpVoucher = this.dataFlow.voucherNumber || '159753' + // this.form.voucherNumber = tmpVoucher + // } + // return + // } if(sessionStorage.getItem('nomBusinessDepositCard')) { const { userName, goldLogo, currency, voucherNumber } = this.dataFlow diff --git a/src/pages/manage/list/personal/currentAccount/settle.vue b/src/pages/manage/list/personal/currentAccount/settle.vue index 7e60430..74a3b2a 100644 --- a/src/pages/manage/list/personal/currentAccount/settle.vue +++ b/src/pages/manage/list/personal/currentAccount/settle.vue @@ -180,14 +180,14 @@ export default{ if(sessionStorage.getItem('nomCurrentSettlePassword')) { this.form.drawPassword = sessionStorage.getItem('nomCurrentSettlePassword') } - if(this.isNeedBefore) { - if(sessionStorage.getItem('nomCurrentSettleCard')) { - this.cardNumberJudge = true - const tmpCardNumber = this.dataFlow.voucherNumber || '159753' - this.form.cardNumber = tmpCardNumber - } - return - } + // if(this.isNeedBefore) { + // if(sessionStorage.getItem('nomCurrentSettleCard')) { + // this.cardNumberJudge = true + // const tmpCardNumber = this.dataFlow.voucherNumber || '159753' + // this.form.cardNumber = tmpCardNumber + // } + // return + // } if(sessionStorage.getItem('nomCurrentSettleCard')) { this.cardNumberJudge = true const { currency, userName, goldLogo, interest, voucherNumber, balance, totalMoney } = this.dataFlow diff --git a/src/pages/manage/list/personal/timeDeposit/deposit.vue b/src/pages/manage/list/personal/timeDeposit/deposit.vue index 253ef1f..0c54ea1 100644 --- a/src/pages/manage/list/personal/timeDeposit/deposit.vue +++ b/src/pages/manage/list/personal/timeDeposit/deposit.vue @@ -273,14 +273,14 @@ export default{ if(sessionStorage.getItem('nomtimeDepositlPassword')) { this.form.drawPassword = sessionStorage.getItem('nomtimeDepositlPassword') } - if(this.isNeedBefore) { - if(sessionStorage.getItem('nomtimeDeposit1')) { - this.cardNumberJudge = true - this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' - } + // if(this.isNeedBefore) { + // if(sessionStorage.getItem('nomtimeDeposit1')) { + // this.cardNumberJudge = true + // this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' + // } - return - } + // return + // } if(sessionStorage.getItem('nomtimeDeposit1')) { this.cardNumberJudge = true const { userName, currency, goldLogo, voucherNumber } = this.dataFlow diff --git a/src/pages/manage/list/personal/timeDeposit/openAccount.vue b/src/pages/manage/list/personal/timeDeposit/openAccount.vue index cf36999..7f37215 100644 --- a/src/pages/manage/list/personal/timeDeposit/openAccount.vue +++ b/src/pages/manage/list/personal/timeDeposit/openAccount.vue @@ -226,18 +226,18 @@ export default{ this.form.drawPassword = sessionStorage.getItem('nomtimeOpenAccountPassword') } - if(this.isNeedBefore) { - if(sessionStorage.getItem('nomtimeOpenAccount1')) { - this.idNumberJudge = true - this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' - } - // if(sessionStorage.getItem('nomtimeOpenAccount2')) { - // this.cardNumberJudge = true - // this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' - // } + // if(this.isNeedBefore) { + // if(sessionStorage.getItem('nomtimeOpenAccount1')) { + // this.idNumberJudge = true + // this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' + // } + // // if(sessionStorage.getItem('nomtimeOpenAccount2')) { + // // this.cardNumberJudge = true + // // this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' + // // } - return - } + // return + // } this.form.clientNumber = this.dataFlow.peopleNumber if(sessionStorage.getItem('nomtimeOpenAccount1')) { diff --git a/src/pages/manage/list/personal/timeDeposit/withdrawal.vue b/src/pages/manage/list/personal/timeDeposit/withdrawal.vue index 61cd200..02d5e6d 100644 --- a/src/pages/manage/list/personal/timeDeposit/withdrawal.vue +++ b/src/pages/manage/list/personal/timeDeposit/withdrawal.vue @@ -89,16 +89,18 @@ export default{ if(sessionStorage.getItem('nomtimeDepositWithdrawalPassword2')) { this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword2') } - if(this.isNeedBefore) { - if(sessionStorage.getItem('nomtimeDepositWithdrawal1')) { - this.cardNumberJudge = true - this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' - } + // if(this.isNeedBefore) { + // if(sessionStorage.getItem('nomtimeDepositWithdrawal1')) { + // this.cardNumberJudge = true + // this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' + // } - return - } + // return + // } const { withdrawWay } = this.dataFlow + console.log('withdrawWay---') + console.log(withdrawWay) if(withdrawWay === 126) { this.form.interest = 5.75 this.rules.withdrawAmount[0].required = false @@ -360,15 +362,22 @@ export default{ }, popUp(text) { // this.$store.commit('system/changePop',{show:true,text, id: '144,1'}) - if(this.isNeedBefore) { - this.setPopId('144,1') + // if(this.isNeedBefore) { + // this.setPopId('144,1') + // }else { + // const { withdrawWay } = this.dataFlow + // if(withdrawWay === 126) { + // this.setPopId('144,2') + // }else { + // this.setPopId('144,1') + // } + // } + + const { withdrawWay } = this.dataFlow + if(withdrawWay === 126) { + this.setPopId('144,2') }else { - const { withdrawWay } = this.dataFlow - if(withdrawWay === 126) { - this.setPopId('144,2') - }else { - this.setPopId('144,1') - } + this.setPopId('144,1') } this.setTipsOperate('请刷银行卡'); diff --git a/src/pages/manage/list/personal/usefulPhrases/accountClosed.vue b/src/pages/manage/list/personal/usefulPhrases/accountClosed.vue index b8291c9..231bea4 100644 --- a/src/pages/manage/list/personal/usefulPhrases/accountClosed.vue +++ b/src/pages/manage/list/personal/usefulPhrases/accountClosed.vue @@ -120,17 +120,17 @@ export default{ if(sessionStorage.getItem('nomUsefulPhrasesClosedPassword')) { this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword') } - if(this.isNeedBefore) { - if(sessionStorage.getItem('nomUsefulPhrasesClosed')) { - this.idNumberJudge = true - this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' - } - if(sessionStorage.getItem('nomUsefulPhrasesClosed2')) { - this.cardNumberJudge = true - this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' - } - return - } + // if(this.isNeedBefore) { + // if(sessionStorage.getItem('nomUsefulPhrasesClosed')) { + // this.idNumberJudge = true + // this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' + // } + // if(sessionStorage.getItem('nomUsefulPhrasesClosed2')) { + // this.cardNumberJudge = true + // this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' + // } + // return + // } if(sessionStorage.getItem('nomUsefulPhrasesClosed')) { this.idNumberJudge = true const { idNumber } = this.dataFlow diff --git a/src/pages/manage/list/personal/usefulPhrases/continueDeposit.vue b/src/pages/manage/list/personal/usefulPhrases/continueDeposit.vue index 5ef6869..3b5ebae 100644 --- a/src/pages/manage/list/personal/usefulPhrases/continueDeposit.vue +++ b/src/pages/manage/list/personal/usefulPhrases/continueDeposit.vue @@ -77,13 +77,13 @@ export default{ if(sessionStorage.getItem('nomUsefulPhrasesContinuePassword')) { this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesContinuePassword') } - if(this.isNeedBefore) { - if(sessionStorage.getItem('nomUsefulPhrasesContinueCard')) { - this.cardNumberJudge = true - this.form.voucherNumber = this.dataFlow.voucherNumber - } - return - } + // if(this.isNeedBefore) { + // if(sessionStorage.getItem('nomUsefulPhrasesContinueCard')) { + // this.cardNumberJudge = true + // this.form.voucherNumber = this.dataFlow.voucherNumber + // } + // return + // } if(sessionStorage.getItem('nomUsefulPhrasesContinueCard')) { this.cardNumberJudge = true const { voucherNumber, userName, depositNumber, currency, goldLogo, depositTerm, monthDeposit } = this.dataFlow diff --git a/src/pages/manage/list/personal/usefulPhrases/openAccount.vue b/src/pages/manage/list/personal/usefulPhrases/openAccount.vue index 828d697..735967c 100644 --- a/src/pages/manage/list/personal/usefulPhrases/openAccount.vue +++ b/src/pages/manage/list/personal/usefulPhrases/openAccount.vue @@ -108,17 +108,18 @@ export default{ this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword') } - if(this.isNeedBefore) { - if(sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) { - this.idNumberJudge = true - this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' - } - if(sessionStorage.getItem('nomUsefulPhrasesOpenCard')) { - this.cardNumberJudge = true - this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' - } - return - } + // if(this.isNeedBefore) { + // if(sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) { + // this.idNumberJudge = true + // this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' + // } + // if(sessionStorage.getItem('nomUsefulPhrasesOpenCard')) { + // this.cardNumberJudge = true + // this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' + // } + // return + // } + if(sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) { this.idNumberJudge = true // 身份证号码、客户姓名、币种(人民币)、钞汇标识(钞户) diff --git a/src/pages/manage/list/servicesAccount/passwordChange.vue b/src/pages/manage/list/servicesAccount/passwordChange.vue index 0f44776..f51e324 100644 --- a/src/pages/manage/list/servicesAccount/passwordChange.vue +++ b/src/pages/manage/list/servicesAccount/passwordChange.vue @@ -168,18 +168,18 @@ export default{ if(sessionStorage.getItem('servicesPasswordChange4')) { this.form.newPayPassword = sessionStorage.getItem('servicesPasswordChange4') } - if(this.isNeedBefore) { - if(sessionStorage.getItem('servicesPasswordChange')) { - this.idNumberJudge = true - this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' - } - if(sessionStorage.getItem('servicesPasswordChange2')) { - this.cardNumberJudge = true - this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' - } + // if(this.isNeedBefore) { + // if(sessionStorage.getItem('servicesPasswordChange')) { + // this.idNumberJudge = true + // this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' + // } + // if(sessionStorage.getItem('servicesPasswordChange2')) { + // this.cardNumberJudge = true + // this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' + // } - return - } + // return + // } if(sessionStorage.getItem('servicesPasswordChange')) { this.idNumberJudge = true const { idNumber } = this.dataFlow diff --git a/src/pages/manage/list/servicesAccount/passwordLost.vue b/src/pages/manage/list/servicesAccount/passwordLost.vue index d6a3f1c..41e9522 100644 --- a/src/pages/manage/list/servicesAccount/passwordLost.vue +++ b/src/pages/manage/list/servicesAccount/passwordLost.vue @@ -113,17 +113,17 @@ export default{ } }, created() { - if(this.isNeedBefore) { - if(sessionStorage.getItem('servicesPasswordLost')) { - this.cardNumberJudge = true - this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' - } - if(sessionStorage.getItem('servicesPasswordLost2')) { - this.idNumberJudge = true - this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' - } - return - } + // if(this.isNeedBefore) { + // if(sessionStorage.getItem('servicesPasswordLost')) { + // this.cardNumberJudge = true + // this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' + // } + // if(sessionStorage.getItem('servicesPasswordLost2')) { + // this.idNumberJudge = true + // this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' + // } + // return + // } if(sessionStorage.getItem('servicesPasswordLost')) { this.cardNumberJudge = true const { voucherNumber, userName } = this.dataFlow diff --git a/src/pages/manage/list/servicesAccount/relieveLost.vue b/src/pages/manage/list/servicesAccount/relieveLost.vue index 8d85ac1..76b251e 100644 --- a/src/pages/manage/list/servicesAccount/relieveLost.vue +++ b/src/pages/manage/list/servicesAccount/relieveLost.vue @@ -209,17 +209,17 @@ export default{ if(sessionStorage.getItem('servicesPasswordRelievePassword')) { this.form.payPassword = sessionStorage.getItem('servicesPasswordRelievePassword') } - if(this.isNeedBefore) { - if(sessionStorage.getItem('servicesPasswordRelieveLost')) { - this.idNumberJudge = true - this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' - } - if(sessionStorage.getItem('servicesPasswordRelieveLost2')) { - this.cardNumberJudge = true - this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' - } - return - } + // if(this.isNeedBefore) { + // if(sessionStorage.getItem('servicesPasswordRelieveLost')) { + // this.idNumberJudge = true + // this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' + // } + // if(sessionStorage.getItem('servicesPasswordRelieveLost2')) { + // this.cardNumberJudge = true + // this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' + // } + // return + // } if(sessionStorage.getItem('servicesPasswordRelieveLost')) { this.idNumberJudge = true const { idNumber, userName } = this.dataFlow diff --git a/src/store/modules/system.js b/src/store/modules/system.js index 62985f0..94522b6 100644 --- a/src/store/modules/system.js +++ b/src/store/modules/system.js @@ -86,6 +86,7 @@ const allGoods = { // 472: {name:472,src:require('@/assets/img/goods/xjzp.png'),id:472}, } + const idNumber = '441356199611035698' const birthday = '1996-11-03' const userName = '小白' @@ -100,8 +101,6 @@ const voucherNumber = (() => { } return '6227' + str; })() -// const voucherNumber = '622766985213' -console.log(voucherNumber) const sex = 1 // 1为男,2为女。 /* @@ -109,6 +108,39 @@ const sex = 1 // 1为男,2为女。 通过不同的键值对表示不同的业务。其实更优秀的做法是将业务抽离成一个对象class,业务选择对象也抽离成一个class当成全局游戏对象。因为一开始没这样写后面改着麻烦所以就没改了。 */ +const allDataFlow = { + peopleNumber, + userName, + idType: 83, + idNumber,//证件号码 + sex,//性别 1为男, + birthday,//出生日期 + // nationality:'汉',//民族 + mailbox:'广东省深圳市阳光村',//通讯地址 + voucherNumber, + currency:12, + goldLogo:13, + serviceCharge:'0.00', + drawWay:18, + interest: '0.1', + balance: 666, + depositNumber: '0912', + capital, // 不知道是多少 + withdrawType: 124, // 支取类别 + withdrawWay: 125, // 支取方式 + withdrawType: 124, // 支取类别 + withdrawWay: 126, // 支取方式 + depositTerm: 86, + monthDeposit: 100, + signDate: '2001-03-01', + depositType: 92, + voucherType: 123, + noticeType: 95, + payType: 13, + payMoney: 102.8, + 'corporateClient': false, +} + const myInitState = { '': { data: [], @@ -147,6 +179,7 @@ const myInitState = { }, // dataFlowGo: 0, dataFlow: { + ...allDataFlow, peopleNumber, userName,//用户名字 idType: '身份证', @@ -195,6 +228,7 @@ const myInitState = { }, // dataFlowGo: 0, dataFlow: { + ...allDataFlow, peopleNumber, userName,//用户名字 idType: 83, @@ -246,6 +280,7 @@ const myInitState = { 'timeDeposit/deposit': false }, dataFlow: { + ...allDataFlow, idNumber, userName, currency:12, @@ -287,6 +322,7 @@ const myInitState = { 'timeDeposit/withdrawal': false }, dataFlow: { + ...allDataFlow, // 客户姓名、币种、钞汇标识、定存编号(0912)、本金(开户时存的业务中的金额)、支取类别(现金)、支取方式(密码) voucherNumber, userName, @@ -330,6 +366,7 @@ const myInitState = { 'timeDeposit/withdrawal': false }, dataFlow: { + ...allDataFlow, // 客户姓名、币种、钞汇标识、定存编号(0912)、本金(开户时存的业务中的金额)、支取类别(现金)、支取方式(密码) userName, voucherNumber, @@ -373,6 +410,7 @@ const myInitState = { 'usefulPhrases/openAccount': false }, dataFlow: { + ...allDataFlow, // 身份证号码、客户号、客户姓名、币种(人民币)、钞汇标识(钞户) currency:12, goldLogo:13, @@ -411,6 +449,7 @@ const myInitState = { 'usefulPhrases/continueDeposit': false }, dataFlow: { + ...allDataFlow, // 客户姓名、定存编号(0816)、币种、钞汇标识、存期(显示上一业务选中的存期)、月存金额 userName, depositNumber: '0816', @@ -450,6 +489,7 @@ const myInitState = { 'usefulPhrases/accoumtClosed': false }, dataFlow: { + ...allDataFlow, idNumber, userName, depositNumber: '0816', @@ -494,6 +534,7 @@ const myInitState = { 'callDeposits/openAccount': false }, dataFlow: { + ...allDataFlow, // 身份证号码、客户号(根据案例展示)、客户姓名、币种(人民币)、钞汇标识(钞户) idNumber, peopleNumber, @@ -542,6 +583,7 @@ const myInitState = { 'callDeposits/accountClosed': false }, dataFlow: { + ...allDataFlow, // 凭证类型(存单)、客户号(根据案例展示)、客户姓名、币种(CNY人民币)、钞汇标识(钞户)、通知类型(根据案例展示)、定存编号(根据开户时的定存编号展示)、本金(开户时存的金额)、利息(2.8)、、总金额(利息+本金)、支取类别(现金)、支取金额(等于总金额)证件类型(身份证) // 身份证号码、客户号(根据案例展示)、客户姓名、币种(人民币)、钞汇标识(钞户) voucherType: 123, @@ -599,6 +641,7 @@ const myInitState = { 'business/openAccount': false }, dataFlow: { + ...allDataFlow, idNumber, userName, peopleNumber, @@ -646,6 +689,7 @@ const myInitState = { 'business/deposit': false }, dataFlow: { + ...allDataFlow, idNumber, userName, peopleNumber @@ -679,6 +723,7 @@ const myInitState = { }, dataFlow: { + ...allDataFlow, // idNumber, // userName, // peopleNumber, @@ -713,6 +758,7 @@ const myInitState = { 'business/transfer': false }, dataFlow: { + ...allDataFlow, idNumber, voucherNumber } @@ -744,6 +790,7 @@ const myInitState = { 'servicesAccount/passwordChange': false }, dataFlow: { + ...allDataFlow, idNumber, voucherNumber, userName @@ -775,6 +822,7 @@ const myInitState = { 'servicesAccount/passwordLost': false }, dataFlow: { + ...allDataFlow, voucherNumber, userName, idNumber @@ -808,6 +856,7 @@ const myInitState = { 'servicesAccount/relieveLost': false }, dataFlow: { + ...allDataFlow, voucherNumber, idNumber, userName @@ -868,6 +917,9 @@ const myInitState = { needsModule: { 'controlCash/cashRecipients': false }, + dataFlow: { + ...allDataFlow, + } }, '业务十九': { // 现金上缴 id: 509, @@ -896,6 +948,9 @@ const myInitState = { 'controlCash/cashTransferInto': false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十': { // 现金调入 id: 548, @@ -923,6 +978,9 @@ const myInitState = { needsModule: { 'controlCash/cashPaid': false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十一': { // 现金调出 id: 549, @@ -950,6 +1008,9 @@ const myInitState = { needsModule: { 'controlCash/cashOut': false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十二': { // 凭证领用 id: 510, @@ -977,6 +1038,9 @@ const myInitState = { needsModule: { 'controlCash2/cashRecipients' : false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十三': { // 凭证上缴 id: 514, @@ -1003,6 +1067,9 @@ const myInitState = { needsModule: { 'controlCash2/cashTransferInto' : false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十四': { // 凭证调入 id: 512, @@ -1030,6 +1097,9 @@ const myInitState = { needsModule: { 'controlCash2/cashPaid' : false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十五': { // 凭证调出 id: 513, @@ -1056,6 +1126,9 @@ const myInitState = { needsModule: { 'controlCash2/cashOut' : false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十六': { // 支票出售 id: 507, @@ -1084,6 +1157,9 @@ const myInitState = { needsModule: { 'controlCash3/index': false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十七': { // 柜员日终扎帐 id: 516, @@ -1107,6 +1183,9 @@ const myInitState = { importanceArr: [], // 重要空白凭证箱 commonArr: [], // 普通凭证箱 + dataFlow: { + ...allDataFlow, + } }, '业务二十八': { // 网点日中扎帐 id: 517, @@ -1130,6 +1209,9 @@ const myInitState = { importanceArr: [], // 重要空白凭证箱 commonArr: [], // 普通凭证箱 + dataFlow: { + ...allDataFlow, + } }, } @@ -1206,6 +1288,7 @@ export default { }, // dataFlowGo: 0, dataFlow: { + ...allDataFlow, peopleNumber, userName,//用户名字 idType: '身份证', @@ -1254,6 +1337,7 @@ export default { }, // dataFlowGo: 0, dataFlow: { + ...allDataFlow, peopleNumber, userName,//用户名字 idType: 83, @@ -1305,6 +1389,7 @@ export default { 'timeDeposit/deposit': false }, dataFlow: { + ...allDataFlow, idNumber, userName, currency:12, @@ -1346,6 +1431,7 @@ export default { 'timeDeposit/withdrawal': false }, dataFlow: { + ...allDataFlow, // 客户姓名、币种、钞汇标识、定存编号(0912)、本金(开户时存的业务中的金额)、支取类别(现金)、支取方式(密码) voucherNumber, userName, @@ -1389,6 +1475,7 @@ export default { 'timeDeposit/withdrawal': false }, dataFlow: { + ...allDataFlow, // 客户姓名、币种、钞汇标识、定存编号(0912)、本金(开户时存的业务中的金额)、支取类别(现金)、支取方式(密码) userName, voucherNumber, @@ -1432,6 +1519,7 @@ export default { 'usefulPhrases/openAccount': false }, dataFlow: { + ...allDataFlow, // 身份证号码、客户号、客户姓名、币种(人民币)、钞汇标识(钞户) currency:12, goldLogo:13, @@ -1470,6 +1558,7 @@ export default { 'usefulPhrases/continueDeposit': false }, dataFlow: { + ...allDataFlow, // 客户姓名、定存编号(0816)、币种、钞汇标识、存期(显示上一业务选中的存期)、月存金额 userName, depositNumber: '0816', @@ -1509,6 +1598,7 @@ export default { 'usefulPhrases/accoumtClosed': false }, dataFlow: { + ...allDataFlow, idNumber, userName, depositNumber: '0816', @@ -1553,6 +1643,7 @@ export default { 'callDeposits/openAccount': false }, dataFlow: { + ...allDataFlow, // 身份证号码、客户号(根据案例展示)、客户姓名、币种(人民币)、钞汇标识(钞户) idNumber, peopleNumber, @@ -1601,6 +1692,7 @@ export default { 'callDeposits/accountClosed': false }, dataFlow: { + ...allDataFlow, // 凭证类型(存单)、客户号(根据案例展示)、客户姓名、币种(CNY人民币)、钞汇标识(钞户)、通知类型(根据案例展示)、定存编号(根据开户时的定存编号展示)、本金(开户时存的金额)、利息(2.8)、、总金额(利息+本金)、支取类别(现金)、支取金额(等于总金额)证件类型(身份证) // 身份证号码、客户号(根据案例展示)、客户姓名、币种(人民币)、钞汇标识(钞户) voucherType: 123, @@ -1658,6 +1750,7 @@ export default { 'business/openAccount': false }, dataFlow: { + ...allDataFlow, idNumber, userName, peopleNumber, @@ -1705,6 +1798,7 @@ export default { 'business/deposit': false }, dataFlow: { + ...allDataFlow, idNumber, userName, peopleNumber @@ -1738,6 +1832,7 @@ export default { }, dataFlow: { + ...allDataFlow, // idNumber, // userName, // peopleNumber, @@ -1772,6 +1867,7 @@ export default { 'business/transfer': false }, dataFlow: { + ...allDataFlow, idNumber, voucherNumber } @@ -1803,6 +1899,7 @@ export default { 'servicesAccount/passwordChange': false }, dataFlow: { + ...allDataFlow, idNumber, voucherNumber, userName @@ -1834,6 +1931,7 @@ export default { 'servicesAccount/passwordLost': false }, dataFlow: { + ...allDataFlow, voucherNumber, userName, idNumber @@ -1867,6 +1965,7 @@ export default { 'servicesAccount/relieveLost': false }, dataFlow: { + ...allDataFlow, voucherNumber, idNumber, userName @@ -1927,6 +2026,9 @@ export default { needsModule: { 'controlCash/cashRecipients': false }, + dataFlow: { + ...allDataFlow, + } }, '业务十九': { // 现金上缴 id: 509, @@ -1955,6 +2057,9 @@ export default { 'controlCash/cashTransferInto': false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十': { // 现金调入 id: 548, @@ -1982,6 +2087,9 @@ export default { needsModule: { 'controlCash/cashPaid': false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十一': { // 现金调出 id: 549, @@ -2009,6 +2117,9 @@ export default { needsModule: { 'controlCash/cashOut': false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十二': { // 凭证领用 id: 510, @@ -2036,6 +2147,9 @@ export default { needsModule: { 'controlCash2/cashRecipients' : false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十三': { // 凭证上缴 id: 514, @@ -2062,6 +2176,9 @@ export default { needsModule: { 'controlCash2/cashTransferInto' : false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十四': { // 凭证调入 id: 512, @@ -2089,6 +2206,9 @@ export default { needsModule: { 'controlCash2/cashPaid' : false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十五': { // 凭证调出 id: 513, @@ -2115,6 +2235,9 @@ export default { needsModule: { 'controlCash2/cashOut' : false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十六': { // 支票出售 id: 507, @@ -2143,6 +2266,9 @@ export default { needsModule: { 'controlCash3/index': false }, + dataFlow: { + ...allDataFlow, + } }, '业务二十七': { // 柜员日终扎帐 id: 516, @@ -2166,6 +2292,9 @@ export default { importanceArr: [], // 重要空白凭证箱 commonArr: [], // 普通凭证箱 + dataFlow: { + ...allDataFlow, + } }, '业务二十八': { // 网点日中扎帐 id: 517, @@ -2189,6 +2318,9 @@ export default { importanceArr: [], // 重要空白凭证箱 commonArr: [], // 普通凭证箱 + dataFlow: { + ...allDataFlow, + } }, }, goods:[// 物品栏的物品 diff --git a/test.js b/test.js index e69de29..4687f4d 100644 --- a/test.js +++ b/test.js @@ -0,0 +1,115 @@ +const idNumber = '441356199611035698' +const birthday = '1996-11-03' +const userName = '小白' +const capital = 100 +const peopleNumber = '111222' +const voucherNumber = (() => { + const $chars = '1234567890'; + const maxPos = $chars.length; + let str = ''; + for (let i = 0; i < 8; i++) { + str += $chars.charAt(Math.floor(Math.random() * maxPos)); + } + return '6227' + str; +})() +const sex = 1 // 1为男,2为女。 + +{ + peopleNumber, + userName, + idType: 83, + idNumber,//证件号码 + sex,//性别 1为男, + birthday,//出生日期 + // nationality:'汉',//民族 + mailbox:'广东省深圳市阳光村',//通讯地址 + + voucherNumber + idType: 83, + idNumber,//证件号码 + sex,//性别 + birthday,//出生日期 + // nationality:'汉',//民族 + mailbox:'广东省深圳市阳光村',//通讯地址 + phone:'13222223122',//联系电话 + + // cardNumber: '', // 卡号 + voucherNumber, + currency:12, + goldLogo:13, + serviceCharge:'0.00', + drawWay:18, + interest: '0.1', + balance: 666, + totalMoney: '', +idNumber, + currency:12, + goldLogo:13, + voucherNumber, +voucherNumber, + currency:12, + goldLogo:13, + interest: '0.00', + depositNumber: '0912', + capital, // 不知道是多少 + withdrawType: 124, // 支取类别 + withdrawWay: 125, // 支取方式 + voucherNumber, + currency:12, + goldLogo:13, + interest: '5.75', + depositNumber: '0912', + capital, // 不知道是多少 + withdrawType: 124, // 支取类别 + withdrawWay: 126, // 支取方式 +currency:12, + goldLogo:13, + idNumber, + voucherNumber, + depositNumber: '0816', + currency:12, + goldLogo:13, + depositTerm: 86, + monthDeposit: 100, + voucherNumber, +idNumber, + depositNumber: '0816', + currency:12, + goldLogo:13, + capital: 100, + interestRate: 1.85, + depositTerm: 86, + interest: 1.6, + totalMoney: 101.6, + signDate: '2001-03-01', + voucherNumber, +idNumber, + currency:12, + goldLogo:13, + voucherNumber, + depositType: 92, + voucherType: 123, + noticeType: 95, + depositNumber: '0816', + capital: 100, + interest: 2.8, + totalMoney: 102.8, + payType: 13, + payMoney: 102.8, + idNumber, + currency:12, + goldLogo:13, + voucherNumber, + idNumber, + 'corporateClient': false, + idNumber, + idNumber, + voucherNumber, + idNumber, + voucherNumber, + voucherNumber, + idNumber, + voucherNumber, + idNumber, + +} \ No newline at end of file