|
|
|
@ -13,51 +13,52 @@ |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="币种" prop="currencyType"> |
|
|
|
|
<el-select v-model="form.currencyType" placeholder="请选择" ref="currencyType"> |
|
|
|
|
<el-select v-model="form.currencyType" disabled placeholder="请选择" ref="currencyType"> |
|
|
|
|
<el-option value="CNY人民币">CNY人民币</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="定存编号" prop="depositNumber"> |
|
|
|
|
<el-input ref="depositNumber" :value="form.depositNumber" @input="(val) => checkHanzi(val, form, 'depositNumber')"></el-input> |
|
|
|
|
<el-input ref="depositNumber" disabled :value="form.depositNumber" @input="(val) => checkHanzi(val, form, 'depositNumber')"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="支取金额" prop="withdrawAmount"> |
|
|
|
|
<el-input :value="form.withdrawAmount" @input="val => ismoney(val, form, 'withdrawAmount')" ref="withdrawAmount"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="利息" prop="interest"> |
|
|
|
|
<el-input :value="form.interest" @input="(val) => rateListen(val, form, 'interest')" ref="interest"></el-input> |
|
|
|
|
<el-form-item label="支取方式" prop="withdrawWay"> |
|
|
|
|
<el-radio-group v-model="form.withdrawWay" ref="withdrawWay"> |
|
|
|
|
<el-radio label="部分支取">部分支取</el-radio> |
|
|
|
|
<el-radio label="全部支取并销户">全部支取并销户</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</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="withdrawType"> |
|
|
|
|
<el-select v-model="form.withdrawType" disabled placeholder="请选择" ref="withdrawType"> |
|
|
|
|
<el-option label="现金" value="现金"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="客户姓名" prop="customerName"> |
|
|
|
|
<el-input :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input> |
|
|
|
|
<el-input :value="form.customerName" disabled @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="钞汇标识" prop="currencyMark"> |
|
|
|
|
<el-select v-model="form.currencyMark" placeholder="请选择" ref="currencyMark"> |
|
|
|
|
<el-select v-model="form.currencyMark" disabled placeholder="请选择" ref="currencyMark"> |
|
|
|
|
<el-option label="钞户" value="钞户"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="本金" prop="capital"> |
|
|
|
|
<el-input :value="form.capital" @input="val => ismoney(val, form, 'capital')" ref="capital" ></el-input> |
|
|
|
|
<el-input :value="form.capital" disabled @input="val => ismoney(val, form, 'capital')" ref="capital" ></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="支取类别" prop="withdrawType"> |
|
|
|
|
<el-select v-model="form.withdrawType" placeholder="请选择" ref="withdrawType"> |
|
|
|
|
<el-option label="现金" value="现金"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
<el-form-item label="支取金额" prop="withdrawAmount"> |
|
|
|
|
<el-input :value="form.withdrawAmount" :disabled="capitalDisabled" @input="val => ismoney(val, form, 'withdrawAmount')" ref="withdrawAmount"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="支取方式" prop="withdrawWay"> |
|
|
|
|
<el-radio-group v-model="form.withdrawWay" ref="withdrawWay"> |
|
|
|
|
<el-radio label="部分支取">部分支取</el-radio> |
|
|
|
|
<el-radio label="全部支取">全部支取</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
</el-form> |
|
|
|
@ -85,9 +86,16 @@ export default{ |
|
|
|
|
created() { |
|
|
|
|
if(this.inMyWork(moduleName)) { |
|
|
|
|
if(this.needsModule(moduleName) === '') { |
|
|
|
|
const { withdrawWay } = this.dataFlow |
|
|
|
|
if(withdrawWay === '全部支取并销户') { |
|
|
|
|
this.form.interest = 5.75 |
|
|
|
|
this.rules.withdrawAmount[0].required = false |
|
|
|
|
}else { |
|
|
|
|
this.form.interest = 0.00 |
|
|
|
|
} |
|
|
|
|
if(sessionStorage.getItem('nomtimeDepositWithdrawal1')) { |
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, withdrawWay, voucherNumber } = this.dataFlow |
|
|
|
|
const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow |
|
|
|
|
console.log('voucherNumber') |
|
|
|
|
console.log(voucherNumber) |
|
|
|
|
this.form.voucherNumber = voucherNumber |
|
|
|
@ -98,11 +106,12 @@ export default{ |
|
|
|
|
this.form.depositNumber = depositNumber |
|
|
|
|
this.form.capital = capital |
|
|
|
|
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() |
|
|
|
@ -124,6 +133,7 @@ export default{ |
|
|
|
|
unNeed: false, |
|
|
|
|
isNeedBefore: '', |
|
|
|
|
needBefore: '', |
|
|
|
|
capitalDisabled: false, // 支取金额是否可以手动输入 |
|
|
|
|
cardNumberJudge: false, |
|
|
|
|
form:{ |
|
|
|
|
// 必填项 |
|
|
|
@ -178,7 +188,21 @@ export default{ |
|
|
|
|
pattern: ratePattern, |
|
|
|
|
message: '利息格式有误' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
], |
|
|
|
|
withdrawAmount: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
|
message: '请输入支取金额', |
|
|
|
|
trigger: 'blur' |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
withdrawWay: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
|
message: '请选择支取方式', |
|
|
|
|
trigger: 'blur' |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
myTable: { |
|
|
|
|
// voucherNumber |
|
|
|
@ -319,6 +343,23 @@ export default{ |
|
|
|
|
inMyWork: 'system/inMyWork', |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
'form.withdrawWay'(newVal) { |
|
|
|
|
// 这里的数据流withdrawWay纯粹用来判断,因为业务四和五就这个不一样 |
|
|
|
|
const { withdrawWay } = this.dataFlow |
|
|
|
|
if(withdrawWay === '全部支取并销户' && newVal === '全部支取并销户') { |
|
|
|
|
this.form.withdrawAmount = Number(this.form.interest) + Number(this.form.capital) |
|
|
|
|
this.capitalDisabled = true |
|
|
|
|
}else if(withdrawWay === '全部支取并销户' && newVal !== '全部支取并销户') { |
|
|
|
|
this.form.withdrawAmount = '' |
|
|
|
|
this.capitalDisabled = false |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.$refs.withdrawAmount.focus() |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
<style lang='scss' scoped> |
|
|
|
|