|
|
@ -69,7 +69,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, ismoney, autoPlay, autoPlay2, rateListen, inputListen } from '@/utils/utilFunction.js'; |
|
|
|
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, rateListen, inputListen,messageCard, messagePassword} from '@/utils/utilFunction.js'; |
|
|
|
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' |
|
|
|
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' |
|
|
|
|
|
|
|
|
|
|
|
const moduleName = 'timeDeposit/withdrawal' |
|
|
|
const moduleName = 'timeDeposit/withdrawal' |
|
|
@ -90,30 +90,50 @@ export default{ |
|
|
|
if(withdrawWay === '全部支取并销户') { |
|
|
|
if(withdrawWay === '全部支取并销户') { |
|
|
|
this.form.interest = 5.75 |
|
|
|
this.form.interest = 5.75 |
|
|
|
this.rules.withdrawAmount[0].required = false |
|
|
|
this.rules.withdrawAmount[0].required = false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(sessionStorage.getItem('nomtimeDepositWithdrawal2')) { |
|
|
|
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
|
|
|
const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow |
|
|
|
|
|
|
|
this.form.voucherNumber = voucherNumber |
|
|
|
|
|
|
|
this.form.customerName = userName |
|
|
|
|
|
|
|
this.form.currencyType = currency |
|
|
|
|
|
|
|
this.form.currencyMark = goldLogo |
|
|
|
|
|
|
|
this.form.interest = interest |
|
|
|
|
|
|
|
this.form.depositNumber = depositNumber |
|
|
|
|
|
|
|
this.form.capital = capital |
|
|
|
|
|
|
|
this.form.withdrawType = withdrawType |
|
|
|
|
|
|
|
// this.form.withdrawWay = withdrawWay |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(sessionStorage.getItem('nomtimeDepositWithdrawalPassword2')) { |
|
|
|
|
|
|
|
this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword2') |
|
|
|
|
|
|
|
} |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
this.form.interest = 0.00 |
|
|
|
this.form.interest = 0.00 |
|
|
|
} |
|
|
|
|
|
|
|
if(sessionStorage.getItem('nomtimeDepositWithdrawal1')) { |
|
|
|
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
|
|
|
const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow |
|
|
|
|
|
|
|
console.log('voucherNumber') |
|
|
|
|
|
|
|
console.log(voucherNumber) |
|
|
|
|
|
|
|
this.form.voucherNumber = voucherNumber |
|
|
|
|
|
|
|
this.form.customerName = userName |
|
|
|
|
|
|
|
this.form.currencyType = currency |
|
|
|
|
|
|
|
this.form.currencyMark = goldLogo |
|
|
|
|
|
|
|
this.form.interest = interest |
|
|
|
|
|
|
|
this.form.depositNumber = depositNumber |
|
|
|
|
|
|
|
this.form.capital = capital |
|
|
|
|
|
|
|
this.form.withdrawType = withdrawType |
|
|
|
|
|
|
|
// this.form.withdrawWay = withdrawWay |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(sessionStorage.getItem('nomtimeDepositWithdrawalPassword')) { |
|
|
|
if(sessionStorage.getItem('nomtimeDepositWithdrawal1')) { |
|
|
|
this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword') |
|
|
|
this.cardNumberJudge = true |
|
|
|
console.log(this.form.drawPassword) |
|
|
|
const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow |
|
|
|
|
|
|
|
this.form.voucherNumber = voucherNumber |
|
|
|
|
|
|
|
this.form.customerName = userName |
|
|
|
|
|
|
|
this.form.currencyType = currency |
|
|
|
|
|
|
|
this.form.currencyMark = goldLogo |
|
|
|
|
|
|
|
this.form.interest = interest |
|
|
|
|
|
|
|
this.form.depositNumber = depositNumber |
|
|
|
|
|
|
|
this.form.capital = capital |
|
|
|
|
|
|
|
this.form.withdrawType = withdrawType |
|
|
|
|
|
|
|
// this.form.withdrawWay = withdrawWay |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(sessionStorage.getItem('nomtimeDepositWithdrawalPassword')) { |
|
|
|
|
|
|
|
this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword') |
|
|
|
|
|
|
|
console.log(this.form.drawPassword) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getFormData() |
|
|
|
this.getFormData() |
|
|
|
// this.$nextTick(() => { |
|
|
|
// this.$nextTick(() => { |
|
|
|
// this.$refs.depositNumber.focus() |
|
|
|
// this.$refs.depositNumber.focus() |
|
|
@ -284,30 +304,96 @@ export default{ |
|
|
|
// 154: 'nomtimeDepositWithdrawalPassword' |
|
|
|
// 154: 'nomtimeDepositWithdrawalPassword' |
|
|
|
} |
|
|
|
} |
|
|
|
const callback = () => { |
|
|
|
const callback = () => { |
|
|
|
if(this.form.voucherNumber) { |
|
|
|
// if(this.form.voucherNumber) { |
|
|
|
this.cardNumberJudge = true |
|
|
|
// this.cardNumberJudge = true |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// 因为业务四和业务五是一样的页面,不让缓存刷卡和密码 |
|
|
|
|
|
|
|
// if(sessionStorage.getItem('nomtimeDepositWithdrawalPassword')) { |
|
|
|
|
|
|
|
// this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword') |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { withdrawWay } = this.dataFlow |
|
|
|
|
|
|
|
if(withdrawWay === '全部支取并销户') { |
|
|
|
|
|
|
|
this.form.interest = 5.75 |
|
|
|
|
|
|
|
this.rules.withdrawAmount[0].required = false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(sessionStorage.getItem('nomtimeDepositWithdrawal2')) { |
|
|
|
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
|
|
|
const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow |
|
|
|
|
|
|
|
this.form.voucherNumber = voucherNumber |
|
|
|
|
|
|
|
this.form.customerName = userName |
|
|
|
|
|
|
|
this.form.currencyType = currency |
|
|
|
|
|
|
|
this.form.currencyMark = goldLogo |
|
|
|
|
|
|
|
this.form.interest = interest |
|
|
|
|
|
|
|
this.form.depositNumber = depositNumber |
|
|
|
|
|
|
|
this.form.capital = capital |
|
|
|
|
|
|
|
this.form.withdrawType = withdrawType |
|
|
|
|
|
|
|
// this.form.withdrawWay = withdrawWay |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(sessionStorage.getItem('nomtimeDepositWithdrawalPassword2')) { |
|
|
|
|
|
|
|
this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword2') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.form.interest = 0.00 |
|
|
|
|
|
|
|
// nomtimeDepositWithdrawalPassword2 |
|
|
|
|
|
|
|
if(sessionStorage.getItem('nomtimeDepositWithdrawal1')) { |
|
|
|
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
|
|
|
const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow |
|
|
|
|
|
|
|
this.form.voucherNumber = voucherNumber |
|
|
|
|
|
|
|
this.form.customerName = userName |
|
|
|
|
|
|
|
this.form.currencyType = currency |
|
|
|
|
|
|
|
this.form.currencyMark = goldLogo |
|
|
|
|
|
|
|
this.form.interest = interest |
|
|
|
|
|
|
|
this.form.depositNumber = depositNumber |
|
|
|
|
|
|
|
this.form.capital = capital |
|
|
|
|
|
|
|
this.form.withdrawType = withdrawType |
|
|
|
|
|
|
|
// this.form.withdrawWay = withdrawWay |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(sessionStorage.getItem('nomtimeDepositWithdrawalPassword')) { |
|
|
|
|
|
|
|
this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword') |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// if(this.form.drawPassword) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback) |
|
|
|
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback) |
|
|
|
}, |
|
|
|
}, |
|
|
|
popUp(text) { |
|
|
|
popUp(text) { |
|
|
|
// this.$store.commit('system/changePop',{show:true,text, id: '144,1'}) |
|
|
|
// this.$store.commit('system/changePop',{show:true,text, id: '144,1'}) |
|
|
|
|
|
|
|
const { withdrawWay } = this.dataFlow |
|
|
|
|
|
|
|
if(withdrawWay === '全部支取并销户') { |
|
|
|
|
|
|
|
this.setPopId('144,2') |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.setPopId('144,1') |
|
|
|
|
|
|
|
} |
|
|
|
this.$message.warning('请刷银行卡'); |
|
|
|
this.$message.warning('请刷银行卡'); |
|
|
|
this.setPopId('144,1') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
this.$router.push('/counter/list/') |
|
|
|
this.$router.push('/counter/list/') |
|
|
|
}, |
|
|
|
}, |
|
|
|
popUp2(text) { |
|
|
|
popUp2(text) { |
|
|
|
// this.$store.commit('system/changePop',{show:true,text, id: '154'}) |
|
|
|
// this.$store.commit('system/changePop',{show:true,text, id: '154'}) |
|
|
|
|
|
|
|
const { withdrawWay } = this.dataFlow |
|
|
|
|
|
|
|
if(withdrawWay === '全部支取并销户') { |
|
|
|
|
|
|
|
this.setPopId('154,2') |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.setPopId('154') |
|
|
|
|
|
|
|
} |
|
|
|
this.$message.warning('请在密码器输入密码'); |
|
|
|
this.$message.warning('请在密码器输入密码'); |
|
|
|
this.setPopId('154') |
|
|
|
|
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
this.$router.push('/counter/list/') |
|
|
|
this.$router.push('/counter/list/') |
|
|
|
}, |
|
|
|
}, |
|
|
|
submitIt() { |
|
|
|
submitIt() { |
|
|
|
|
|
|
|
if(!this.form.voucherNumber) { |
|
|
|
|
|
|
|
messageCard() |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(!this.form.drawPassword) { |
|
|
|
|
|
|
|
messagePassword() |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
// 验证通过逻辑写在这 |
|
|
|
// 验证通过逻辑写在这 |
|
|
|
this.visible = true; |
|
|
|
this.visible = true; |
|
|
@ -341,7 +427,7 @@ export default{ |
|
|
|
needsModule: 'system/needsModule', |
|
|
|
needsModule: 'system/needsModule', |
|
|
|
idCardNumber: 'system/idCardNumber', |
|
|
|
idCardNumber: 'system/idCardNumber', |
|
|
|
inMyWork: 'system/inMyWork', |
|
|
|
inMyWork: 'system/inMyWork', |
|
|
|
}) |
|
|
|
}), |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
'form.withdrawWay'(newVal) { |
|
|
|
'form.withdrawWay'(newVal) { |
|
|
|