|
|
|
@ -4,7 +4,7 @@ |
|
|
|
|
<el-row :gutter="20" style="margin: 0"> |
|
|
|
|
<el-form ref="form" :model="form" label-width="120px" :rules="rules"> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="凭证号码" required> |
|
|
|
|
<el-form-item label="凭证号码" prop="voucherNumber"> |
|
|
|
|
<!-- <div v-if='!cardNumberJudge' class="idCard" @click="popUp('刷卡器')"> |
|
|
|
|
<p>请刷卡</p> |
|
|
|
|
</div> |
|
|
|
@ -32,6 +32,14 @@ |
|
|
|
|
<el-option label="现金" :value="124"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="支取密码" required> |
|
|
|
|
<div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')"> |
|
|
|
|
<p>请输入密码</p> |
|
|
|
|
</div> |
|
|
|
|
<div v-else @click="popUp2('密码器')"> |
|
|
|
|
<el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="客户姓名" prop="customerName"> |
|
|
|
@ -51,13 +59,8 @@ |
|
|
|
|
<el-form-item label="利息" prop="interest"> |
|
|
|
|
<el-input :value="form.interest" disabled @input="(val) => rateListen(val, form, 'interest')" ref="interest"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="支取密码" required> |
|
|
|
|
<div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')"> |
|
|
|
|
<p>请输入密码</p> |
|
|
|
|
</div> |
|
|
|
|
<div v-else @click="popUp2('密码器')"> |
|
|
|
|
<el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input> |
|
|
|
|
</div> |
|
|
|
|
<el-form-item label="新凭证号码" prop="newVoucherNumber" v-show="form.withdrawWay===125"> |
|
|
|
|
<el-input :value="form.newVoucherNumber" @input="(val) => inputListen(val, form, 'newVoucherNumber')" ref="newVoucherNumber"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
</el-col> |
|
|
|
@ -87,18 +90,9 @@ export default{ |
|
|
|
|
MyDialog |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
if(sessionStorage.getItem('nomtimeDepositWithdrawalPassword2')) { |
|
|
|
|
this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword2') |
|
|
|
|
if(sessionStorage.getItem('nomtimeDepositWithdrawalPassword')) { |
|
|
|
|
this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword') |
|
|
|
|
} |
|
|
|
|
// if(this.isNeedBefore) { |
|
|
|
|
// if(sessionStorage.getItem('nomtimeDepositWithdrawal1')) { |
|
|
|
|
// this.cardNumberJudge = true |
|
|
|
|
// this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// return |
|
|
|
|
// } |
|
|
|
|
const { withdrawWay } = this.dataFlow |
|
|
|
|
console.log('withdrawWay---') |
|
|
|
|
console.log(withdrawWay) |
|
|
|
@ -113,7 +107,7 @@ export default{ |
|
|
|
|
this.form.customerName = userName |
|
|
|
|
this.form.currency = currency |
|
|
|
|
this.form.goldLogo = goldLogo |
|
|
|
|
this.form.interest = interest |
|
|
|
|
// this.form.interest = interest |
|
|
|
|
this.form.depositNumber = depositNumber |
|
|
|
|
this.form.capital = capital |
|
|
|
|
this.form.withdrawType = withdrawType |
|
|
|
@ -137,16 +131,7 @@ export default{ |
|
|
|
|
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() |
|
|
|
|
}, |
|
|
|
|
data(){ |
|
|
|
@ -170,6 +155,7 @@ export default{ |
|
|
|
|
customerName: '', // 客户姓名 |
|
|
|
|
depositNumber: '', // 定存编号 |
|
|
|
|
currency: '', // 币种 |
|
|
|
|
newVoucherNumber: '', // 新凭证号码 |
|
|
|
|
|
|
|
|
|
// userName, 这是vuex里的 |
|
|
|
|
// currency:'CNY人民币', |
|
|
|
@ -195,9 +181,24 @@ export default{ |
|
|
|
|
customerName: '客户姓名', // |
|
|
|
|
depositNumber: '定存编号', // |
|
|
|
|
currency: '币种', // |
|
|
|
|
newVoucherNumber: '新凭证号码', // |
|
|
|
|
}, |
|
|
|
|
rules: { |
|
|
|
|
customerName: vercustomer, |
|
|
|
|
voucherNumber: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
|
message: '请输入凭证号码', |
|
|
|
|
trigger: 'blur' |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
newVoucherNumber: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
|
message: '请输入新凭证号码', |
|
|
|
|
trigger: 'blur' |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
interest: [ |
|
|
|
|
// { |
|
|
|
|
// required: true, |
|
|
|
@ -306,7 +307,7 @@ export default{ |
|
|
|
|
this.form.customerName = userName |
|
|
|
|
this.form.currency = currency |
|
|
|
|
this.form.goldLogo = goldLogo |
|
|
|
|
this.form.interest = interest |
|
|
|
|
// this.form.interest = interest |
|
|
|
|
this.form.depositNumber = depositNumber |
|
|
|
|
this.form.capital = capital |
|
|
|
|
this.form.withdrawType = withdrawType |
|
|
|
@ -326,49 +327,58 @@ export default{ |
|
|
|
|
// this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword') |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
const { withdrawWay } = this.dataFlow |
|
|
|
|
if(withdrawWay === 126) { |
|
|
|
|
this.form.interest = 5.75 |
|
|
|
|
this.rules.withdrawAmount[0].required = false |
|
|
|
|
// const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow |
|
|
|
|
// this.form.voucherNumber = voucherNumber |
|
|
|
|
// this.form.customerName = userName |
|
|
|
|
// this.form.currency = currency |
|
|
|
|
// this.form.goldLogo = goldLogo |
|
|
|
|
// // this.form.interest = interest |
|
|
|
|
// this.form.depositNumber = depositNumber |
|
|
|
|
// this.form.capital = capital |
|
|
|
|
// this.form.withdrawType = withdrawType |
|
|
|
|
|
|
|
|
|
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.currency = currency |
|
|
|
|
this.form.goldLogo = goldLogo |
|
|
|
|
this.form.interest = interest |
|
|
|
|
this.form.depositNumber = depositNumber |
|
|
|
|
this.form.capital = capital |
|
|
|
|
this.form.withdrawType = withdrawType |
|
|
|
|
// this.form.withdrawWay = withdrawWay |
|
|
|
|
} |
|
|
|
|
// if(withdrawWay === 126) { |
|
|
|
|
// this.form.interest = 5.75 |
|
|
|
|
// this.rules.withdrawAmount[0].required = false |
|
|
|
|
|
|
|
|
|
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.currency = currency |
|
|
|
|
this.form.goldLogo = goldLogo |
|
|
|
|
this.form.interest = interest |
|
|
|
|
this.form.depositNumber = depositNumber |
|
|
|
|
this.form.capital = capital |
|
|
|
|
this.form.withdrawType = withdrawType |
|
|
|
|
// this.form.withdrawWay = withdrawWay |
|
|
|
|
} |
|
|
|
|
// 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.currency = currency |
|
|
|
|
// this.form.goldLogo = 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(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.currency = currency |
|
|
|
|
// this.form.goldLogo = 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') |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback) |
|
|
|
|
}, |
|
|
|
@ -400,17 +410,17 @@ export default{ |
|
|
|
|
}, |
|
|
|
|
popUp2(text) { |
|
|
|
|
// this.$store.commit('system/changePop',{show:true,text, id: '154'}) |
|
|
|
|
if(this.isNeedBefore) { |
|
|
|
|
this.setPopId('154') |
|
|
|
|
}else { |
|
|
|
|
const { withdrawWay } = this.dataFlow |
|
|
|
|
if(withdrawWay === 126) { |
|
|
|
|
this.setPopId('154,2') |
|
|
|
|
}else { |
|
|
|
|
this.setPopId('154') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// if(this.isNeedBefore) { |
|
|
|
|
// this.setPopId('154') |
|
|
|
|
// }else { |
|
|
|
|
// const { withdrawWay } = this.dataFlow |
|
|
|
|
// if(withdrawWay === 126) { |
|
|
|
|
// this.setPopId('154,2') |
|
|
|
|
// }else { |
|
|
|
|
// this.setPopId('154') |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
this.setPopId('154') |
|
|
|
|
this.setTipsOperate('请在密码器输入密码'); |
|
|
|
|
|
|
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
@ -462,20 +472,38 @@ export default{ |
|
|
|
|
}), |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
'form.withdrawWay'(newVal) { |
|
|
|
|
// 这里的数据流withdrawWay纯粹用来判断,因为业务四和五就这个不一样 |
|
|
|
|
const { withdrawWay } = this.dataFlow |
|
|
|
|
if(withdrawWay === 126 && newVal === 126) { |
|
|
|
|
this.form.withdrawAmount = Number(this.form.interest) + Number(this.form.capital) |
|
|
|
|
this.capitalDisabled = true |
|
|
|
|
}else if(withdrawWay === 126 && newVal !== 126) { |
|
|
|
|
this.form.withdrawAmount = '' |
|
|
|
|
this.capitalDisabled = false |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.$refs.withdrawAmount.focus() |
|
|
|
|
}) |
|
|
|
|
'form.withdrawWay': { |
|
|
|
|
handler(newVal) { |
|
|
|
|
// 这里的数据流withdrawWay纯粹用来判断,因为业务四和五就这个不一样 |
|
|
|
|
const { withdrawWay } = this.dataFlow |
|
|
|
|
if(withdrawWay === 126 && newVal === 126) { |
|
|
|
|
this.form.withdrawAmount = Number(this.form.interest) + Number(this.form.capital) |
|
|
|
|
this.capitalDisabled = true |
|
|
|
|
this.form.interest = 5.75 |
|
|
|
|
this.rules.newVoucherNumber = [] |
|
|
|
|
sessionStorage.setItem('newVoucherNumber', this.form.newVoucherNumber) |
|
|
|
|
this.form.newVoucherNumber = '' |
|
|
|
|
}else if(withdrawWay === 126 && newVal !== 126) { |
|
|
|
|
if(sessionStorage.getItem('newVoucherNumber')) { |
|
|
|
|
this.form.newVoucherNumber = sessionStorage.getItem('newVoucherNumber') |
|
|
|
|
} |
|
|
|
|
this.form.withdrawAmount = '' |
|
|
|
|
this.form.interest = '0.00' |
|
|
|
|
this.rules.newVoucherNumber = [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
|
message: '请输入新凭证号码', |
|
|
|
|
trigger: 'blur' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
this.capitalDisabled = false |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.$refs.withdrawAmount.focus() |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
immediate: true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|