|
|
|
@ -69,7 +69,7 @@ |
|
|
|
|
<need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> |
|
|
|
|
</template> |
|
|
|
|
<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' |
|
|
|
|
|
|
|
|
|
const moduleName = 'timeDeposit/withdrawal' |
|
|
|
@ -90,14 +90,30 @@ export default{ |
|
|
|
|
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 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
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 |
|
|
|
@ -113,6 +129,10 @@ export default{ |
|
|
|
|
this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword') |
|
|
|
|
console.log(this.form.drawPassword) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getFormData() |
|
|
|
|
// this.$nextTick(() => { |
|
|
|
@ -284,30 +304,96 @@ export default{ |
|
|
|
|
// 154: 'nomtimeDepositWithdrawalPassword' |
|
|
|
|
} |
|
|
|
|
const callback = () => { |
|
|
|
|
if(this.form.voucherNumber) { |
|
|
|
|
// if(this.form.voucherNumber) { |
|
|
|
|
// 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) |
|
|
|
|
}, |
|
|
|
|
popUp(text) { |
|
|
|
|
// this.$store.commit('system/changePop',{show:true,text, id: '144,1'}) |
|
|
|
|
|
|
|
|
|
this.$message.warning('请刷银行卡'); |
|
|
|
|
const { withdrawWay } = this.dataFlow |
|
|
|
|
if(withdrawWay === '全部支取并销户') { |
|
|
|
|
this.setPopId('144,2') |
|
|
|
|
}else { |
|
|
|
|
this.setPopId('144,1') |
|
|
|
|
} |
|
|
|
|
this.$message.warning('请刷银行卡'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
|
this.$router.push('/counter/list/') |
|
|
|
|
}, |
|
|
|
|
popUp2(text) { |
|
|
|
|
// this.$store.commit('system/changePop',{show:true,text, id: '154'}) |
|
|
|
|
|
|
|
|
|
this.$message.warning('请在密码器输入密码'); |
|
|
|
|
const { withdrawWay } = this.dataFlow |
|
|
|
|
if(withdrawWay === '全部支取并销户') { |
|
|
|
|
this.setPopId('154,2') |
|
|
|
|
}else { |
|
|
|
|
this.setPopId('154') |
|
|
|
|
} |
|
|
|
|
this.$message.warning('请在密码器输入密码'); |
|
|
|
|
|
|
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
|
this.$router.push('/counter/list/') |
|
|
|
|
}, |
|
|
|
|
submitIt() { |
|
|
|
|
if(!this.form.voucherNumber) { |
|
|
|
|
messageCard() |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if(!this.form.drawPassword) { |
|
|
|
|
messagePassword() |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
|
// 验证通过逻辑写在这 |
|
|
|
|
this.visible = true; |
|
|
|
@ -341,7 +427,7 @@ export default{ |
|
|
|
|
needsModule: 'system/needsModule', |
|
|
|
|
idCardNumber: 'system/idCardNumber', |
|
|
|
|
inMyWork: 'system/inMyWork', |
|
|
|
|
}) |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
'form.withdrawWay'(newVal) { |
|
|
|
|