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