20240205
luoJunYong.123 3 years ago
parent 01a1f61790
commit 5066d14e03
  1. 11
      src/components/case/index.vue
  2. 24
      src/pages/counter/list/index.vue
  3. 16
      src/pages/manage/list/personal/currentAccount/accountCancellation.vue
  4. 31
      src/pages/manage/list/personal/currentAccount/deposit.vue
  5. 38
      src/pages/manage/list/personal/currentAccount/openAccount.vue
  6. 18
      src/pages/manage/list/personal/currentAccount/settle.vue
  7. 16
      src/pages/manage/list/personal/currentAccount/transferAccounts.vue
  8. 32
      src/pages/manage/list/personal/currentAccount/withdrawal.vue
  9. 35
      src/pages/manage/list/personal/timeDeposit/openAccount.vue
  10. 18
      src/utils/utilFunction.js

@ -543,6 +543,17 @@ export default {
this.loading = true; this.loading = true;
submit(params).then((data)=>{ submit(params).then((data)=>{
if(data.status == 200){ if(data.status == 200){
//
let token = sessionStorage.getItem('token')
let cid = sessionStorage.getItem('cid')
let systemId = sessionStorage.getItem('systemId')
let projectId = sessionStorage.getItem('projectId')
sessionStorage.clear()
sessionStorage.setItem('token', token)
sessionStorage.setItem('cid', cid)
sessionStorage.setItem('systemId', systemId)
sessionStorage.setItem('projectId', projectId)
// vuexstate // vuexstate
this.initState(); this.initState();
let datas= data.data.retMap.scoreInfo; let datas= data.data.retMap.scoreInfo;

@ -124,10 +124,10 @@
<div v-if="popText==='密码器'" style="width:800px;padding-right:150px;padding-top:80px"> <div v-if="popText==='密码器'" style="width:800px;padding-right:150px;padding-top:80px">
<el-form :model="passwordForm" :rules="passwordRules" ref="form" label-width="180px"> <el-form :model="passwordForm" :rules="passwordRules" ref="form" label-width="180px">
<el-form-item label="密码" prop="password"> <el-form-item label="密码" prop="password">
<el-input v-focus show-password v-model="passwordForm.password" maxlength="6" onkeyup="{this.value=this.value.replace(/\D/g,'')}" autocomplete="off"></el-input> <el-input v-focus show-password v-model="passwordForm.passwordAgain" maxlength="6" onkeyup="{this.value=this.value.replace(/\D/g,'')}" autocomplete="off"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="确认密码" prop="passwordAgain" v-if="systemId == '62,1' || systemId == '62,2' || systemId == '62,3'"> <el-form-item label="确认密码" prop="passwordAgain" v-if="systemId == '62,1' || systemId == '62,2' || systemId == '62,3'">
<el-input show-password v-model="passwordForm.passwordAgain" maxlength="6" onkeyup="this.value=this.value.replace(/\D/g,'')" autocomplete="off"></el-input> <el-input show-password v-model="passwordForm.password" maxlength="6" onkeyup="this.value=this.value.replace(/\D/g,'')" autocomplete="off"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -1005,16 +1005,16 @@ export default {
console.log('新的id值') console.log('新的id值')
console.log(newVal) console.log(newVal)
}, },
'passwordForm.password'(newVal) { // 'passwordForm.password'(newVal) {
// passwordForm:{ // // passwordForm:{
// password:'', // // password:'',
// passwordAgain: '' // // passwordAgain: ''
// }, // // },
this.passwordForm.passwordAgain = newVal // this.passwordForm.passwordAgain = newVal
console.log('???xxxxxxxxxx') // console.log('???xxxxxxxxxx')
console.log(this.passwordForm.passwordAgain) // console.log(this.passwordForm.passwordAgain)
} // }
}, },
created() { created() {
let arr = this.$route.path.split('/').slice(-2); let arr = this.$route.path.split('/').slice(-2);

@ -43,7 +43,7 @@
</template> </template>
<script> <script>
import { vercustomer } from '@/utils/verify.js' import { vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi, checkName, autoPlay, autoPlay2, inputListen } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, autoPlay, autoPlay2, inputListen, messageIdCard, messagePassword } from '@/utils/utilFunction.js'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore' import NeedBefore from '@/components/needBefore'
@ -116,7 +116,6 @@ export default{
if(this.inMyWork(moduleName)) { if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') { if(this.needsModule(moduleName) === '') {
console.log(sessionStorage.getItem('nomCurrentCancellCard1'))
const { voucherNumber, userName } = this.dataFlow const { voucherNumber, userName } = this.dataFlow
this.form.cardNumber = voucherNumber this.form.cardNumber = voucherNumber
this.form.userName = userName this.form.userName = userName
@ -125,6 +124,7 @@ export default{
const { idNumber } = this.dataFlow const { idNumber } = this.dataFlow
this.form.idNumber = idNumber this.form.idNumber = idNumber
} }
if(sessionStorage.getItem('nomCurrentCancellPassword')) { if(sessionStorage.getItem('nomCurrentCancellPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomCurrentCancellPassword') this.form.drawPassword = sessionStorage.getItem('nomCurrentCancellPassword')
} }
@ -140,8 +140,8 @@ export default{
if(this.form.idNumber) { if(this.form.idNumber) {
this.idNumberJudge = true this.idNumberJudge = true
} }
if(this.form.drawPassword) { if(sessionStorage.getItem('nomCurrentCancellPassword')) {
sessionStorage.setItem('nomCurrentCancellPassword', this.form.drawPassword) this.form.drawPassword = sessionStorage.getItem('nomCurrentCancellPassword')
} }
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr, callback) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr, callback)
@ -166,6 +166,14 @@ export default{
setPopId: 'system/setPopId' setPopId: 'system/setPopId'
}), }),
submitForm(){ submitForm(){
if(!this.form.drawPassword) {
messagePassword()
return
}
if(!this.form.idNumber) {
messageIdCard()
return
}
this.visible = true this.visible = true
}, },
submitForm2() { submitForm2() {

@ -10,7 +10,7 @@
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input ref="idCardNumber" disabled :value="form.idCardNumber" @input="(val) => inputListen(val, form, 'idCardNumber')"></el-input> <el-input 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">
@ -18,8 +18,8 @@
<el-option value="CNY人民币">CNY人民币</el-option> <el-option value="CNY人民币">CNY人民币</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="金额"> <el-form-item label="金额" prop="money">
<el-input :value="form.money" disabled maxlength="15" @input="val => ismoney(val, form, 'money')" ref="money"></el-input> <el-input :value="form.money" maxlength="15" @input="val => ismoney(val, form, 'money')" ref="money"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
@ -51,7 +51,7 @@
<script> // currentAccount/deposit <script> // currentAccount/deposit
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { ismoney, myValidate, checkName, rateListen } from '@/utils/utilFunction.js' import { ismoney, myValidate, checkName, rateListen, messageCard } from '@/utils/utilFunction.js'
import { addOperation, getOperation } from '@/api/http'; import { addOperation, getOperation } from '@/api/http';
import NeedBefore from '@/components/needBefore' import NeedBefore from '@/components/needBefore'
@ -78,7 +78,7 @@ export default{
goldLogo:'', goldLogo:'',
annualInterest:'0.30%', annualInterest:'0.30%',
remark:'', remark:'',
idCardNumber: '', // voucherNumber: '', //
}, },
formName: { formName: {
currency:'币种', // currency:'币种', //
@ -87,7 +87,7 @@ export default{
goldLogo:'炒汇标识', // goldLogo:'炒汇标识', //
annualInterest:'年利率', // annualInterest:'年利率', //
remark:'摘要', // remark:'摘要', //
idCardNumber: '银行卡号', // voucherNumber: '银行卡号', //
}, },
rules: { rules: {
userName: vercustomer , userName: vercustomer ,
@ -98,6 +98,13 @@ export default{
trigger: 'blur' trigger: 'blur'
} }
], ],
money: [
{
required: true,
message: '请填写金额',
trigger: 'blur'
}
],
annualInterest: [ annualInterest: [
{ {
required: true, required: true,
@ -119,7 +126,7 @@ export default{
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 = voucherNumber this.form.voucherNumber = voucherNumber
this.cardNumberJudge = true this.cardNumberJudge = true
} }
this.getFormData() this.getFormData()
@ -144,7 +151,7 @@ export default{
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') { if (list[i].answerId == '78') {
this.form.idCardNumber = list[i].emptyTwo this.form.voucherNumber = list[i].emptyTwo
this.cardNumberJudge = true 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} //
@ -166,6 +173,11 @@ export default{
}), }),
// //
submitForm(){ submitForm(){
if(!this.form.voucherNumber) {
messageCard()
return
}
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
this.visible = true; this.visible = true;
@ -179,7 +191,7 @@ export default{
let nomBusinessDepositCards = nomBusinessDepositCard // JSON.parse(nomBusinessDepositCard); let nomBusinessDepositCards = nomBusinessDepositCard // JSON.parse(nomBusinessDepositCard);
if (this.cardNumberJudge){ if (this.cardNumberJudge){
// formList.push({"answerId":78,"emptyOne": "", "emptyTwo": nomBusinessDepositCards, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,26,57,63,78","type": ""})// // formList.push({"answerId":78,"emptyOne": "", "emptyTwo": nomBusinessDepositCards, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,26,57,63,78","type": ""})//
formList.push({"answerId":78,"emptyOne": "", "emptyTwo": this.form.idCardNumber, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,26,57,63,78","type": ""}) formList.push({"answerId":78,"emptyOne": "", "emptyTwo": this.form.voucherNumber, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "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": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,26,57,63,80", "type": "1" })// formList.push({ "answerId":'80', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,26,57,63,80", "type": "1" })//
} }
@ -228,7 +240,6 @@ export default{
dataFlow: 'system/dataFlow', dataFlow: 'system/dataFlow',
dataFlowPassword: 'system/dataFlowPassword', dataFlowPassword: 'system/dataFlowPassword',
needsModule: 'system/needsModule', needsModule: 'system/needsModule',
idCardNumber: 'system/idCardNumber',
inMyWork: 'system/inMyWork' inMyWork: 'system/inMyWork'
}) })
}, },

@ -360,9 +360,11 @@ export default {
this.cardNumberJudge3 = true this.cardNumberJudge3 = true
} }
// 使 //
if(sessionStorage.getItem('accountPassword')) { if(sessionStorage.getItem('accountPassword')) {
this.form.drawPassword = sessionStorage.getItem('accountPassword') this.form.drawPassword = sessionStorage.getItem('accountPassword')
console.log('drawPassword')
console.log(this.form.drawPassword)
} }
if(sessionStorage.getItem('accountPasswordTwo')) { if(sessionStorage.getItem('accountPasswordTwo')) {
this.form.drawPassword2 = sessionStorage.getItem('accountPasswordTwo') this.form.drawPassword2 = sessionStorage.getItem('accountPasswordTwo')
@ -403,7 +405,7 @@ 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++) {
console.log(list[i].emptyTwo) console.log('kao?' + i)
if (list[i].answerId == '68') {this.form.userNumber = list[i].emptyTwo} if (list[i].answerId == '68') {this.form.userNumber = list[i].emptyTwo}
else if (list[i].answerId == '69') {this.form.userName = list[i].emptyTwo} else if (list[i].answerId == '69') {this.form.userName = list[i].emptyTwo}
else if (list[i].answerId == '70') {this.form.currency = list[i].emptyTwo} else if (list[i].answerId == '70') {this.form.currency = list[i].emptyTwo}
@ -420,8 +422,6 @@ export default {
// else if (list[i].answerId == '77') {sessionStorage.setItem('accountPasswordAll', list[i].emptyTwo)} // else if (list[i].answerId == '77') {sessionStorage.setItem('accountPasswordAll', list[i].emptyTwo)}
else if (list[i].answerId == '77') { else if (list[i].answerId == '77') {
this.form.drawPassword = list[i].emptyTwo this.form.drawPassword = list[i].emptyTwo
sessionStorage.setItem('accountPassword', list[i].emptyTwo)
console.log(sessionStorage.getItem('accountPassword'))
} }
else if (list[i].answerId == '270') {this.form.accountQualitysTwo = list[i].emptyTwo} else if (list[i].answerId == '270') {this.form.accountQualitysTwo = list[i].emptyTwo}
else if (list[i].answerId == '271') {this.form.voucherTypesTwo = list[i].emptyTwo} else if (list[i].answerId == '271') {this.form.voucherTypesTwo = list[i].emptyTwo}
@ -431,11 +431,25 @@ export default {
else if (list[i].answerId == '277') {this.form.voucherTypesThree = list[i].emptyTwo} else if (list[i].answerId == '277') {this.form.voucherTypesThree = list[i].emptyTwo}
else if (list[i].answerId == '278') {this.form.accountTypesThree = list[i].emptyTwo} else if (list[i].answerId == '278') {this.form.accountTypesThree = list[i].emptyTwo}
else if (list[i].answerId == '280') {this.form.drawWaysThree = list[i].emptyTwo} else if (list[i].answerId == '280') {this.form.drawWaysThree = list[i].emptyTwo}
}
console.log('kao?')
if(sessionStorage.getItem('accountPassword')) {
this.form.drawPassword = sessionStorage.getItem('accountPassword')
console.log('drawPassword')
console.log(this.form.drawPassword)
}
if(sessionStorage.getItem('accountPasswordTwo')) {
this.form.drawPassword2 = sessionStorage.getItem('accountPasswordTwo')
}
if(sessionStorage.getItem('accountPasswordThree')) {
this.form.drawPassword3 = sessionStorage.getItem('accountPasswordThree')
} }
}else{ }else{
this.getFormData() this.getFormData()
} }
// 使
}).catch((error)=>{ }).catch((error)=>{
}) })
}, },
@ -453,6 +467,18 @@ export default {
this.cardNumberJudge = true this.cardNumberJudge = true
} }
} }
if(sessionStorage.getItem('accountPassword')) {
this.form.drawPassword = sessionStorage.getItem('accountPassword')
console.log('drawPassword')
console.log(this.form.drawPassword)
}
if(sessionStorage.getItem('accountPasswordTwo')) {
this.form.drawPassword2 = sessionStorage.getItem('accountPasswordTwo')
}
if(sessionStorage.getItem('accountPasswordThree')) {
this.form.drawPassword3 = sessionStorage.getItem('accountPasswordThree')
}
} }
}).catch((error)=>{ }).catch((error)=>{
}) })
@ -558,6 +584,8 @@ export default {
// return; // return;
// } // }
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
// this.formTwo == true && (this.form.accountTypesTwo && this.form.drawWaysTwo && this.form.voucherTypesTwo) // this.formTwo == true && (this.form.accountTypesTwo && this.form.drawWaysTwo && this.form.voucherTypesTwo)
// this.formThree == true && (this.form.accountTypesThree && this.form.drawWaysThree && this.form.voucherTypesThree) // this.formThree == true && (this.form.accountTypesThree && this.form.drawWaysThree && this.form.voucherTypesThree)

@ -64,7 +64,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, inputListen } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageCard, messagePassword } from '@/utils/utilFunction.js'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore' import NeedBefore from '@/components/needBefore'
@ -188,10 +188,12 @@ export default{
this.form.balance = balance this.form.balance = balance
this.form.totalMoney = totalMoney this.form.totalMoney = totalMoney
} }
if(sessionStorage.getItem('nomCurrentSettlePassword')) { if(sessionStorage.getItem('nomCurrentSettlePassword')) {
this.form.drawPassword = sessionStorage.getItem('nomCurrentSettlePassword') this.form.drawPassword = sessionStorage.getItem('nomCurrentSettlePassword')
} }
const parentId = this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + '285,287,5,26,57,66' const parentId = this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + '285,287,5,26,57,66'
const cardArr = { const cardArr = {
// 103: 'nomCurrentSettleCard', // 103: 'nomCurrentSettleCard',
@ -205,8 +207,8 @@ export default{
if(this.form.userName) { if(this.form.userName) {
this.setDataFlow({ userName: this.form.userName }) this.setDataFlow({ userName: this.form.userName })
} }
if(this.form.drawPassword) { if(sessionStorage.getItem('nomCurrentSettlePassword')) {
sessionStorage.setItem('nomCurrentSettlePassword', this.form.drawPassword) this.form.drawPassword = sessionStorage.getItem('nomCurrentSettlePassword')
} }
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr, callback) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr, callback)
@ -232,6 +234,16 @@ export default{
}), }),
// //
submitForm(){ submitForm(){
if(!this.form.cardNumber) {
messageCard()
return
}
if(!this.form.drawPassword) {
messagePassword()
return
}
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
this.visible = true this.visible = true

@ -59,7 +59,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, ismoney, checkName, autoPlay, autoPlay2 } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, ismoney, checkName, autoPlay, autoPlay2, messageCard, messagePassword } from '@/utils/utilFunction.js'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
const moduleName = 'currentAccount/transferAccounts' const moduleName = 'currentAccount/transferAccounts'
@ -208,7 +208,6 @@ export default{
this.form.drawPassword = sessionStorage.getItem('nomCurrentTransferPassword') this.form.drawPassword = sessionStorage.getItem('nomCurrentTransferPassword')
} }
const parentId = this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + '285,287,5,26,57,65' const parentId = this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + '285,287,5,26,57,65'
const cardArr = { const cardArr = {
// 94: 'nomCurrentTransferCard', // 94: 'nomCurrentTransferCard',
@ -218,8 +217,8 @@ export default{
if(this.form.cardNumber) { if(this.form.cardNumber) {
this.cardNumberJudge = true this.cardNumberJudge = true
} }
if(this.form.drawPassword) { if(sessionStorage.getItem('nomCurrentTransferPassword')) {
sessionStorage.setItem('nomCurrentTransferPassword', this.form.drawPassword) this.form.drawPassword = sessionStorage.getItem('nomCurrentTransferPassword')
} }
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr, callback) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr, callback)
@ -245,7 +244,14 @@ export default{
}), }),
// //
submitForm(){ submitForm(){
if(!this.form.cardNumber) {
messageCard()
return
}
if(!this.form.drawPassword) {
messagePassword()
return
}
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //

@ -64,7 +64,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, ismoney, checkName, checkHanzi } from '@/utils/utilFunction.js' import { myValidate, ismoney, checkName, checkHanzi, messagePassword } from '@/utils/utilFunction.js'
import { addOperation, getOperation } from '@/api/http'; import { addOperation, getOperation } from '@/api/http';
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
@ -83,8 +83,6 @@ export default{
created() { created() {
if(this.inMyWork(moduleName)) { if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') { if(this.needsModule(moduleName) === '') {
console.log('what?>>>>>>>>>>>>>>>>>>>>>>>>')
console.log(sessionStorage.getItem('nomCurrentWithdrawalPassword'))
if(sessionStorage.getItem('nomCurrentWithdrawalCard')) { if(sessionStorage.getItem('nomCurrentWithdrawalCard')) {
this.cardNumberJudge = true this.cardNumberJudge = true
const { currency, userName, goldLogo, serviceCharge, chargeWay, voucherNumber } = this.dataFlow const { currency, userName, goldLogo, serviceCharge, chargeWay, voucherNumber } = this.dataFlow
@ -96,6 +94,10 @@ export default{
this.form.cardNumber = voucherNumber this.form.cardNumber = voucherNumber
} }
if(sessionStorage.getItem('nomCurrentWithdrawalPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomCurrentWithdrawalPassword')
}
this.getFormData() this.getFormData()
@ -185,6 +187,7 @@ export default{
parentId: this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + '285,287,5,26,57,64' parentId: this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + '285,287,5,26,57,64'
} }
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++) {
@ -192,7 +195,6 @@ export default{
// sessionStorage.setItem('nomCurrentWithdrawalCard', list[i].emptyTwo) // sessionStorage.setItem('nomCurrentWithdrawalCard', list[i].emptyTwo)
this.form.cardNumber = list[i].emptyTwo this.form.cardNumber = list[i].emptyTwo
this.cardNumberJudge = true this.cardNumberJudge = true
// console.log(list[i].emptyTwo)
} // } //
else if (list[i].answerId == '86') {this.form.userName = list[i].emptyTwo} // else if (list[i].answerId == '86') {this.form.userName = list[i].emptyTwo} //
else if (list[i].answerId == '87') {this.form.currency = list[i].emptyTwo} // else if (list[i].answerId == '87') {this.form.currency = list[i].emptyTwo} //
@ -200,24 +202,30 @@ export default{
else if (list[i].answerId == '89') {this.form.money = list[i].emptyTwo} // else if (list[i].answerId == '89') {this.form.money = list[i].emptyTwo} //
else if (list[i].answerId == '90') {this.form.chargeWay = list[i].emptyTwo} // else 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)} //
else if (list[i].answerId == '91' && !sessionStorage.getItem('nomCurrentWithdrawalPassword')) { else if (list[i].answerId == '91') {
this.form.drawPassword = list[i].emptyTwo console.log(91)
sessionStorage.setItem('nomCurrentWithdrawalPassword', list[i].emptyTwo) if(sessionStorage.getItem('nomCurrentWithdrawalPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomCurrentWithdrawalPassword')
}else {
this.form.drawPassword = list[i].emptyTwo
}
} }
else if (list[i].answerId == '92') {this.form.serviceCharge = list[i].emptyTwo} // else if (list[i].answerId == '92') {this.form.serviceCharge = list[i].emptyTwo} //
else if (list[i].answerId == '93') {this.form.remark = list[i].emptyTwo} // else if (list[i].answerId == '93') {this.form.remark = list[i].emptyTwo} //
} }
} }
if(sessionStorage.getItem('nomCurrentWithdrawalPassword')) { console.log('fffs')
this.form.drawPassword = sessionStorage.getItem('nomCurrentWithdrawalPassword')
}
console.log('issue') console.log('issue')
console.log(sessionStorage.getItem('nomCurrentWithdrawalPassword')) console.log(sessionStorage.getItem('nomCurrentWithdrawalPassword'))
}).catch((error)=>{ }).catch((error)=>{
}) })
}, },
submitForm(){ submitForm(){
console.log(this.form.money) if(!this.form.drawPassword) {
messagePassword()
return
}
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
this.visible = true; this.visible = true;
}, this.$refs)); }, this.$refs));
@ -273,7 +281,7 @@ export default{
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
popUp2(text) { popUp2(text) {
this.$message.warning('请输入密码'); this.$message.warning('请在密码器输入密码');
this.setPopId('64,2') this.setPopId('64,2')
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')

@ -45,7 +45,7 @@
<el-option label="钞户" value="钞户"> </el-option> <el-option label="钞户" value="钞户"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="凭证号码"> <el-form-item label="凭证号码" required>
<div v-if='!cardNumberJudge' class="idCard" @click="popUp2('刷卡器')"> <div v-if='!cardNumberJudge' class="idCard" @click="popUp2('刷卡器')">
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
@ -74,7 +74,7 @@
<need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> <need-before v-else :moduleName='needBefore' :unNeed="unNeed" />
</template> </template>
<script> <script>
import { myValidate, checkHanzi, checkName, autoPlay, autoPlay2, inputListen } from '@/utils/utilFunction.js'; import { myValidate, checkHanzi, checkName, autoPlay, autoPlay2, inputListen, messageIdCard,messageCard, messagePassword } from '@/utils/utilFunction.js';
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
@ -233,17 +233,9 @@ export default{
if(sessionStorage.getItem('nomtimeOpenAccount2')) { if(sessionStorage.getItem('nomtimeOpenAccount2')) {
const { voucherNumber } = this.dataFlow const { voucherNumber } = this.dataFlow
console.log('xs')
console.log(voucherNumber)
this.cardNumberJudge = true this.cardNumberJudge = true
this.form.voucherNumber = voucherNumber this.form.voucherNumber = voucherNumber
console.log(this.form.voucherNumber)
} }
if(sessionStorage.getItem('nomtimeOpenAccountPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomtimeOpenAccountPassword')
}
this.getFormData() this.getFormData()
}else { }else {
this.isNeedBefore = true this.isNeedBefore = true
@ -281,8 +273,14 @@ export default{
if(this.form.voucherNumber) { if(this.form.voucherNumber) {
this.cardNumberJudge = true this.cardNumberJudge = true
} }
if(this.form.drawPassword) { //
sessionStorage.setItem('nomtimeOpenAccountPassword', this.form.drawPassword) if(sessionStorage.getItem('nomtimeOpenAccount2')) {
const { voucherNumber } = this.dataFlow
this.cardNumberJudge = true
this.form.voucherNumber = voucherNumber
}
if(sessionStorage.getItem('nomtimeOpenAccountPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomtimeOpenAccountPassword')
} }
} }
@ -313,8 +311,21 @@ export default{
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
submitForm() { submitForm() {
if(!this.form.voucherNumber) {
messageCard()
return
}
if(!this.form.idNumber) {
messageIdCard()
return
}
if(!this.form.drawPassword) {
messagePassword()
return
}
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
this.visible = true; this.visible = true;
}, this.$refs)); }, this.$refs));

@ -247,17 +247,24 @@ const getNowDate = () => {
return y + '-' + m + '-' + d; return y + '-' + m + '-' + d;
} }
const messageIdCard = () => { const messageIdCard = (message='请刷身份证') => {
Message.warning({ Message.warning({
center: true, center: true,
message: '请刷身份证', message,
}) })
} }
const messageCard = () => { const messageCard = (message='请填写卡号') => {
Message.warning({ Message.warning({
center: true, center: true,
message: '请刷银行卡', message
})
}
const messagePassword = (message='请填写支取密码') => {
Message.warning({
center: true,
message,
}) })
} }
@ -290,5 +297,6 @@ const randomPeopleNumber = () => {
getNowDate, getNowDate,
inputListen2, inputListen2,
messageIdCard, messageIdCard,
messageCard messageCard,
messagePassword
} }
Loading…
Cancel
Save