diff --git a/src/components/case/index.vue b/src/components/case/index.vue index 15a7df1..2900678 100644 --- a/src/components/case/index.vue +++ b/src/components/case/index.vue @@ -410,6 +410,10 @@ export default { let params = { "projectId":this.projectId, } + let formList = [] + sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) + sessionStorage.setItem('accountVoucher', JSON.stringify(formList)) + sessionStorage.setItem('accountPasswordAll', '') sessionStorage.setItem('projectId', this.projectId) getProjectDetail(params).then((data)=>{ if(data.status == 200){ @@ -474,8 +478,8 @@ export default { let datas= data.data.retMap.scoreInfo; let formList = [] sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) - sessionStorage.setItem('formDataAccountVoucher', JSON.stringify(formList)) - sessionStorage.setItem('formDataAccountPassword', '') + sessionStorage.setItem('accountVoucher', JSON.stringify(formList)) + sessionStorage.setItem('accountPasswordAll', '') let list = this.requires this.grade = data.data.retMap.totalScore for (var j=0;j { + if (data.data.status == 200) { + var list = data.data.judgmentRuleReqs + for(var j=0;j{ + }) }else{ let dataList = JSON.parse(sessionStorage.getItem('dataList')); if (dataList){ @@ -363,7 +385,6 @@ export default { this.passwordForm.password = accountPasswordAll this.passwordForm.passwordAgain = accountPasswordAll } - // this.passwordForm.passwordAgain = accountPasswordAll } if(!this.showGoods) this.showGoods = this.$store.state.system.showPop if(!this.showGoods) this.checkList = [] @@ -421,6 +442,9 @@ export default { let ifElse = 0; for(var i=0;i { - if (data.data.status == 200) { - var list = data.data.judgmentRuleReqs - for(var j=0;j{ - }) }else if(type == '身份证扫描仪' || type == '验钞机' || type == '资料' || type == '重要空白凭证箱'){ this.goodsShelfTotalData = this.auditGoodsShelf let parentId = '' @@ -520,21 +526,6 @@ export default { let param= { parentId: parentId } - getOperation(param).then((data)=> { - if (data.data.status == 200) { - var list = data.data.judgmentRuleReqs - for(var j=0;j{ - }) }else if(type == '打印机' || type == '客户签字' || type == '印章盒'){ this.goodsShelfTotalData = this.printoutGoodsShelf let parentId = '' @@ -547,24 +538,6 @@ export default { if(type == '印章盒'){ parentId = '0,8' } - let param= { - parentId: parentId - } - getOperation(param).then((data)=> { - if (data.data.status == 200) { - var list = data.data.judgmentRuleReqs - for(var j=0;j{ - }) }else if(type == '钱箱'){ this.goodsShelfTotalData = this.cashboxGoodsShelf; let param= { @@ -684,41 +657,38 @@ export default { this.$store.commit('system/changeGoods',{push:arr}) clickList.length = 0 }else{ - if (this.id == '62,1'){ + if (this.$store.state.system.id == '62,1'){ + this.nbm = 62 this.goodsShelfTotalData = this.auditGoodsShelf - let accountVoucher = []; - let accountPassword = ''; - if (this.receptionList.length){ - accountVoucher = this.receptionList - sessionStorage.setItem('accountVoucher', JSON.stringify(accountVoucher)) + if (this.receptionList.length >0){ + sessionStorage.setItem('accountVoucher', JSON.stringify(this.receptionList)) } if (this.passwordForm.passwordAgain){ + let accountPassword = ''; accountPassword = this.passwordForm.passwordAgain sessionStorage.setItem('accountPassword', accountPassword) } } - if (this.id == '62,2'){ + if (this.$store.state.system.id == '62,2'){ + this.nbm = 62 this.goodsShelfTotalData = this.auditGoodsShelf - let accountVoucherTwo = [] - let accountPasswordTwo = '' - if (this.receptionList.length){ - accountVoucherTwo = this.receptionList - sessionStorage.setItem('accountVoucherTwo', JSON.stringify(accountVoucherTwo)) + if (this.receptionList.length >0){ + sessionStorage.setItem('accountVoucherTwo', JSON.stringify(this.receptionList)) } if (this.passwordForm.passwordAgain){ + let accountPasswordTwo = '' accountPasswordTwo = this.passwordForm.passwordAgain sessionStorage.setItem('accountPasswordTwo', accountPasswordTwo) } } - if (this.id == '62,3'){ + if (this.$store.state.system.id == '62,3'){ + this.nbm = 62 this.goodsShelfTotalData = this.auditGoodsShelf - let accountVoucherThree = [] - let accountPasswordThree = '' - if (this.receptionList.length){ - accountVoucherThree = this.receptionList - sessionStorage.setItem('accountVoucherThree', JSON.stringify(accountVoucherThree)) + if (this.receptionList.length >0){ + sessionStorage.setItem('accountVoucherThree', JSON.stringify(this.receptionList)) } if (this.passwordForm.passwordAgain){ + let accountPasswordThree = '' accountPasswordThree = this.passwordForm.passwordAgain sessionStorage.setItem('accountPasswordThree', accountPasswordThree) } diff --git a/src/pages/manage/list/personal/currentAccount/openAccount.vue b/src/pages/manage/list/personal/currentAccount/openAccount.vue index 60f8605..cf98806 100644 --- a/src/pages/manage/list/personal/currentAccount/openAccount.vue +++ b/src/pages/manage/list/personal/currentAccount/openAccount.vue @@ -341,6 +341,7 @@ export default { let startTime = sessionStorage.getItem('startTime') let accountVoucher = sessionStorage.getItem('accountVoucher') let formExternalDataList = JSON.parse(accountVoucher); + console.log(accountVoucher) if (formExternalDataList){ voucherNumber = formExternalDataList }else{ @@ -435,6 +436,8 @@ export default { }).catch((error)=>{ }) }else{ + console.log(voucherNumber) + console.log(paymentCode) this.$message.error('有必填项未填哦~'); } },