|
|
|
@ -1,69 +1,75 @@ |
|
|
|
|
/* 个人业务>活期业务>结清 */ |
|
|
|
|
<template> |
|
|
|
|
<div class="body" > |
|
|
|
|
<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> |
|
|
|
|
<div v-if='!cardNumberJudge' class="idCard" @click="popUp('刷卡器')"> |
|
|
|
|
<p>请刷卡</p> |
|
|
|
|
</div> |
|
|
|
|
<div v-else> |
|
|
|
|
<el-input ref="cardNumber" disabled v-model.trim="form.cardNumber" @input="(val) => inputListen(val, form, 'cardNumber')"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="币种" prop="currency"> |
|
|
|
|
<el-select v-model.trim="form.currency" placeholder="请选择" ref="currency"> |
|
|
|
|
<el-option v-for="item in getSelectList.currencySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="余额"> |
|
|
|
|
<el-input :value="form.balance" maxlength="20" @input="val => ismoney(val, form, 'balance')"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="总金额"> |
|
|
|
|
<el-input v-model.trim="form.totalMoney" disabled maxlength="20" placeholder="显示余额加利息总额"></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-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="客户姓名" prop="userName" :rules="rules.userName"> |
|
|
|
|
<el-input :value="form.userName" disabled maxlength="20" @input="(val) => checkName(val, form, 'userName')" ref="userName"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="钞汇标识"> |
|
|
|
|
<el-select v-model.trim="form.goldLogo" placeholder="请选择"> |
|
|
|
|
<el-option v-for="item in getSelectList.goldLogoSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="利息"> |
|
|
|
|
<el-input :value="form.interest" @input="val => ismoney(val, form, 'interest')" maxlength="20"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="支取方式" prop="drawWay"> |
|
|
|
|
<el-select v-model.trim="form.drawWay" placeholder="请选择" ref="drawWay"> |
|
|
|
|
<el-option label="现金" :value="93"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="21" :offset="1"> |
|
|
|
|
<el-form-item label="摘要"> |
|
|
|
|
<el-input type="textarea" maxlength="60" :rows="3" placeholder="请输入内容" v-model.trim="form.remark"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-form> |
|
|
|
|
</el-row> |
|
|
|
|
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> |
|
|
|
|
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" :needAuth="needAuth" @submitIt="submitForm2" /> |
|
|
|
|
</div> |
|
|
|
|
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> --> |
|
|
|
|
<div class="body"> |
|
|
|
|
<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> |
|
|
|
|
<div v-if='!cardNumberJudge' class="idCard" @click="popUp('刷卡器')"> |
|
|
|
|
<p>请刷卡</p> |
|
|
|
|
</div> |
|
|
|
|
<div v-else> |
|
|
|
|
<el-input ref="cardNumber" disabled v-model.trim="form.cardNumber" |
|
|
|
|
@input="(val) => inputListen(val, form, 'cardNumber')"></el-input> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="币种" prop="currency"> |
|
|
|
|
<el-select v-model.trim="form.currency" placeholder="请选择" ref="currency"> |
|
|
|
|
<el-option v-for="item in getSelectList.currencySelectList" :label="item.options" :value="item.itemId" |
|
|
|
|
:key="item.itemId"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="余额"> |
|
|
|
|
<el-input :value="form.balance" maxlength="20" @input="val => ismoney(val, form, 'balance')"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="总金额"> |
|
|
|
|
<el-input v-model.trim="form.totalMoney" disabled maxlength="20" placeholder="显示余额加利息总额"></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-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="客户姓名" prop="userName" :rules="rules.userName"> |
|
|
|
|
<el-input :value="form.userName" disabled maxlength="20" @input="(val) => checkName(val, form, 'userName')" |
|
|
|
|
ref="userName"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="钞汇标识"> |
|
|
|
|
<el-select v-model.trim="form.goldLogo" placeholder="请选择"> |
|
|
|
|
<el-option v-for="item in getSelectList.goldLogoSelectList" :label="item.options" :value="item.itemId" |
|
|
|
|
:key="item.itemId"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="利息"> |
|
|
|
|
<el-input :value="form.interest" @input="val => ismoney(val, form, 'interest')" maxlength="20"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="支取方式" prop="drawWay"> |
|
|
|
|
<el-select v-model.trim="form.drawWay" placeholder="请选择" ref="drawWay"> |
|
|
|
|
<el-option label="现金" :value="93"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="21" :offset="1"> |
|
|
|
|
<el-form-item label="摘要"> |
|
|
|
|
<el-input type="textarea" maxlength="60" :rows="3" placeholder="请输入内容" |
|
|
|
|
v-model.trim="form.remark"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-form> |
|
|
|
|
</el-row> |
|
|
|
|
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> |
|
|
|
|
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" |
|
|
|
|
:needAuth="needAuth" @submitIt="submitForm2" /> |
|
|
|
|
</div> |
|
|
|
|
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> --> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' |
|
|
|
|
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' |
|
|
|
|
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageCard, messagePassword } from '@/utils/utilFunction.js' |
|
|
|
|
|
|
|
|
|
import { mapMutations, mapGetters } from 'vuex' |
|
|
|
@ -71,251 +77,247 @@ import NeedBefore from '@/components/needBefore' |
|
|
|
|
import MyDialog from '@/components/dialog' |
|
|
|
|
import TipsBefore from '@/mixins/tipsBefore' |
|
|
|
|
const moduleName = 'currentAccount/settle' |
|
|
|
|
export default{ |
|
|
|
|
name:'', |
|
|
|
|
props:{}, |
|
|
|
|
mixins: [ TipsBefore ], |
|
|
|
|
components: { |
|
|
|
|
NeedBefore, |
|
|
|
|
MyDialog |
|
|
|
|
}, |
|
|
|
|
data(){ |
|
|
|
|
return{ |
|
|
|
|
moduleName: 'currentAccount/settle', |
|
|
|
|
visible: false, |
|
|
|
|
cardNumberJudge: false, |
|
|
|
|
form:{ |
|
|
|
|
cardNumber: '', |
|
|
|
|
drawPassword: '', |
|
|
|
|
currency:'', |
|
|
|
|
balance:'', |
|
|
|
|
totalMoney:'', |
|
|
|
|
userName:'', |
|
|
|
|
goldLogo:'', |
|
|
|
|
interest:'', |
|
|
|
|
drawWay:'', |
|
|
|
|
remark:'', |
|
|
|
|
}, |
|
|
|
|
formName:{ |
|
|
|
|
cardNumber: '卡号', |
|
|
|
|
drawPassword: '支取密码', |
|
|
|
|
currency:'币种', |
|
|
|
|
balance:'余额', |
|
|
|
|
totalMoney:'总金额', |
|
|
|
|
userName:'客户姓名', // |
|
|
|
|
goldLogo:'钞汇标识', |
|
|
|
|
interest:'利息', |
|
|
|
|
drawWay:'支取方式', |
|
|
|
|
remark:'摘要', |
|
|
|
|
}, |
|
|
|
|
rules: { |
|
|
|
|
userName: vercustomer , |
|
|
|
|
drawWay: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
|
message: '请选择支取方式', |
|
|
|
|
trigger: 'blur' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
myTable2: { |
|
|
|
|
103: { |
|
|
|
|
prop: 'cardNumber', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 44, |
|
|
|
|
}, |
|
|
|
|
105: { |
|
|
|
|
prop: 'currency', |
|
|
|
|
type: '1', |
|
|
|
|
"subjectId": 8, |
|
|
|
|
}, |
|
|
|
|
106: { |
|
|
|
|
prop: 'goldLogo', |
|
|
|
|
type: '1', |
|
|
|
|
"subjectId": 9, |
|
|
|
|
}, |
|
|
|
|
107: { |
|
|
|
|
prop: 'balance', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 14, |
|
|
|
|
}, |
|
|
|
|
108: { |
|
|
|
|
prop: 'interest', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 26, |
|
|
|
|
}, |
|
|
|
|
109: { |
|
|
|
|
prop: 'totalMoney', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 45, |
|
|
|
|
}, |
|
|
|
|
111: { |
|
|
|
|
prop: 'drawPassword', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 17, |
|
|
|
|
}, |
|
|
|
|
112: { |
|
|
|
|
prop: 'remark', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 16, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
myTable: { |
|
|
|
|
104: { |
|
|
|
|
prop: 'userName', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 7, |
|
|
|
|
}, |
|
|
|
|
110: { |
|
|
|
|
prop: 'drawWay', |
|
|
|
|
type: '1', |
|
|
|
|
"subjectId": 13, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
submited: 0 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
if(sessionStorage.getItem('nomCurrentSettlePassword')) { |
|
|
|
|
this.form.drawPassword = sessionStorage.getItem('nomCurrentSettlePassword') |
|
|
|
|
} |
|
|
|
|
// if(this.isNeedBefore) { |
|
|
|
|
// if(sessionStorage.getItem('nomCurrentSettleCard')) { |
|
|
|
|
// this.cardNumberJudge = true |
|
|
|
|
// const tmpCardNumber = this.dataFlow.voucherNumber || '159753' |
|
|
|
|
// this.form.cardNumber = tmpCardNumber |
|
|
|
|
// } |
|
|
|
|
// return |
|
|
|
|
// } |
|
|
|
|
if(sessionStorage.getItem('nomCurrentSettleCard')) { |
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
const { currency, userName, goldLogo, interest, voucherNumber, balance, totalMoney } = this.dataFlow |
|
|
|
|
this.form.cardNumber = voucherNumber |
|
|
|
|
this.form.currency = currency |
|
|
|
|
this.form.userName = userName |
|
|
|
|
this.form.goldLogo = goldLogo |
|
|
|
|
this.form.drawWay = 93 // 现金 数据流不行的 |
|
|
|
|
this.form.interest = interest |
|
|
|
|
this.form.balance = balance |
|
|
|
|
// this.form.totalMoney = totalMoney |
|
|
|
|
export default { |
|
|
|
|
name: '', |
|
|
|
|
props: {}, |
|
|
|
|
mixins: [TipsBefore], |
|
|
|
|
components: { |
|
|
|
|
NeedBefore, |
|
|
|
|
MyDialog |
|
|
|
|
}, |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
moduleName: 'currentAccount/settle', |
|
|
|
|
visible: false, |
|
|
|
|
cardNumberJudge: false, |
|
|
|
|
form: { |
|
|
|
|
cardNumber: '', |
|
|
|
|
drawPassword: '', |
|
|
|
|
currency: '', |
|
|
|
|
balance: '', |
|
|
|
|
totalMoney: '', |
|
|
|
|
userName: '', |
|
|
|
|
goldLogo: '', |
|
|
|
|
interest: '', |
|
|
|
|
drawWay: '', |
|
|
|
|
remark: '', |
|
|
|
|
}, |
|
|
|
|
formName: { |
|
|
|
|
cardNumber: '卡号', |
|
|
|
|
drawPassword: '支取密码', |
|
|
|
|
currency: '币种', |
|
|
|
|
balance: '余额', |
|
|
|
|
totalMoney: '总金额', |
|
|
|
|
userName: '客户姓名', // |
|
|
|
|
goldLogo: '钞汇标识', |
|
|
|
|
interest: '利息', |
|
|
|
|
drawWay: '支取方式', |
|
|
|
|
remark: '摘要', |
|
|
|
|
}, |
|
|
|
|
rules: { |
|
|
|
|
userName: vercustomer, |
|
|
|
|
drawWay: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
|
message: '请选择支取方式', |
|
|
|
|
trigger: 'blur' |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
myTable2: { |
|
|
|
|
103: { |
|
|
|
|
prop: 'cardNumber', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 44, |
|
|
|
|
}, |
|
|
|
|
105: { |
|
|
|
|
prop: 'currency', |
|
|
|
|
type: '1', |
|
|
|
|
"subjectId": 8, |
|
|
|
|
}, |
|
|
|
|
106: { |
|
|
|
|
prop: 'goldLogo', |
|
|
|
|
type: '1', |
|
|
|
|
"subjectId": 9, |
|
|
|
|
}, |
|
|
|
|
107: { |
|
|
|
|
prop: 'balance', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 14, |
|
|
|
|
}, |
|
|
|
|
108: { |
|
|
|
|
prop: 'interest', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 26, |
|
|
|
|
}, |
|
|
|
|
109: { |
|
|
|
|
prop: 'totalMoney', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 45, |
|
|
|
|
}, |
|
|
|
|
111: { |
|
|
|
|
prop: 'drawPassword', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 17, |
|
|
|
|
}, |
|
|
|
|
112: { |
|
|
|
|
prop: 'remark', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 16, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
myTable: { |
|
|
|
|
104: { |
|
|
|
|
prop: 'userName', |
|
|
|
|
type: '3', |
|
|
|
|
"subjectId": 7, |
|
|
|
|
}, |
|
|
|
|
110: { |
|
|
|
|
prop: 'drawWay', |
|
|
|
|
type: '1', |
|
|
|
|
"subjectId": 13, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,57,66' |
|
|
|
|
const cardArr = { |
|
|
|
|
// 103: 'nomCurrentSettleCard', |
|
|
|
|
// 111: 'nomCurrentSettlePassword' |
|
|
|
|
} |
|
|
|
|
const callback = () => { |
|
|
|
|
if(this.form.cardNumber) { |
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
this.setDataFlow({ voucherNumber: this.form.cardNumber }) |
|
|
|
|
} |
|
|
|
|
if(this.form.userName) { |
|
|
|
|
this.setDataFlow({ userName: this.form.userName }) |
|
|
|
|
} |
|
|
|
|
if(sessionStorage.getItem('nomCurrentSettlePassword')) { |
|
|
|
|
this.form.drawPassword = sessionStorage.getItem('nomCurrentSettlePassword') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
submited: 0 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created () { |
|
|
|
|
if (sessionStorage.getItem('nomCurrentSettlePassword')) { |
|
|
|
|
this.form.drawPassword = sessionStorage.getItem('nomCurrentSettlePassword') |
|
|
|
|
} |
|
|
|
|
// if(this.isNeedBefore) { |
|
|
|
|
// if(sessionStorage.getItem('nomCurrentSettleCard')) { |
|
|
|
|
// this.cardNumberJudge = true |
|
|
|
|
// const tmpCardNumber = this.dataFlow.voucherNumber || '159753' |
|
|
|
|
// this.form.cardNumber = tmpCardNumber |
|
|
|
|
// } |
|
|
|
|
// return |
|
|
|
|
// } |
|
|
|
|
if (sessionStorage.getItem('nomCurrentSettleCard')) { |
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
const { currency, userName, goldLogo, interest, voucherNumber, balance, totalMoney } = this.dataFlow |
|
|
|
|
this.form.cardNumber = voucherNumber |
|
|
|
|
this.form.currency = currency |
|
|
|
|
this.form.userName = userName |
|
|
|
|
this.form.goldLogo = goldLogo |
|
|
|
|
this.form.drawWay = 93 // 现金 数据流不行的 |
|
|
|
|
this.form.interest = interest |
|
|
|
|
this.form.balance = balance |
|
|
|
|
// this.form.totalMoney = totalMoney |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr, callback) |
|
|
|
|
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,57,66' |
|
|
|
|
const cardArr = { |
|
|
|
|
// 103: 'nomCurrentSettleCard', |
|
|
|
|
// 111: 'nomCurrentSettlePassword' |
|
|
|
|
} |
|
|
|
|
const callback = () => { |
|
|
|
|
if (this.form.cardNumber) { |
|
|
|
|
this.cardNumberJudge = true |
|
|
|
|
this.setDataFlow({ voucherNumber: this.form.cardNumber }) |
|
|
|
|
} |
|
|
|
|
if (this.form.userName) { |
|
|
|
|
this.setDataFlow({ userName: this.form.userName }) |
|
|
|
|
} |
|
|
|
|
if (sessionStorage.getItem('nomCurrentSettlePassword')) { |
|
|
|
|
this.form.drawPassword = sessionStorage.getItem('nomCurrentSettlePassword') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr, callback) |
|
|
|
|
}, |
|
|
|
|
mounted () { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
...mapMutations({ |
|
|
|
|
changeShowGoods: 'system/changeShowGoods', |
|
|
|
|
setDataFlow: 'system/setDataFlow', |
|
|
|
|
setNeedsModule: 'system/setNeedsModule', |
|
|
|
|
setPopId: 'system/setPopId', |
|
|
|
|
setTipsOperate: 'system/setTipsOperate' |
|
|
|
|
}), |
|
|
|
|
//提交表单 |
|
|
|
|
submitForm () { |
|
|
|
|
if (this.submited) return this.$message.error('已提交!') |
|
|
|
|
if (!this.form.cardNumber) { |
|
|
|
|
messageCard() |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!this.form.drawPassword) { |
|
|
|
|
messagePassword() |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
|
// 验证通过逻辑写在这 |
|
|
|
|
this.visible = true |
|
|
|
|
}, this.$refs)); |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
submitForm2 () { |
|
|
|
|
const cards = [ |
|
|
|
|
// { |
|
|
|
|
// 103: nomCurrentSettleCard |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// 111: nomCurrentSettlePassword, |
|
|
|
|
// "subjectId": 17, |
|
|
|
|
// } |
|
|
|
|
] |
|
|
|
|
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,57,66' |
|
|
|
|
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) |
|
|
|
|
this.setDataFlow({ isSettle: true }) |
|
|
|
|
this.submited = 1 |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
...mapMutations({ |
|
|
|
|
changeShowGoods: 'system/changeShowGoods', |
|
|
|
|
setDataFlow: 'system/setDataFlow', |
|
|
|
|
setNeedsModule: 'system/setNeedsModule', |
|
|
|
|
setPopId: 'system/setPopId', |
|
|
|
|
setTipsOperate: 'system/setTipsOperate' |
|
|
|
|
}), |
|
|
|
|
//提交表单 |
|
|
|
|
submitForm(){ |
|
|
|
|
if (this.submited) return this.$message.error('已提交!') |
|
|
|
|
if(!this.form.cardNumber) { |
|
|
|
|
messageCard() |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!this.form.drawPassword) { |
|
|
|
|
messagePassword() |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
|
// 验证通过逻辑写在这 |
|
|
|
|
this.visible = true |
|
|
|
|
}, this.$refs)); |
|
|
|
|
}, |
|
|
|
|
submitForm2() { |
|
|
|
|
let nomCurrentSettleCard = sessionStorage.getItem('nomCurrentSettleCard') |
|
|
|
|
let nomCurrentSettleCards = JSON.parse(nomCurrentSettleCard); |
|
|
|
|
let nomCurrentSettlePassword = sessionStorage.getItem('nomCurrentSettlePassword') |
|
|
|
|
let nomCurrentSettlePasswords = JSON.parse(nomCurrentSettlePassword); |
|
|
|
|
const cards = [ |
|
|
|
|
// { |
|
|
|
|
// 103: nomCurrentSettleCard |
|
|
|
|
// }, |
|
|
|
|
// { |
|
|
|
|
// 111: nomCurrentSettlePassword, |
|
|
|
|
// "subjectId": 17, |
|
|
|
|
// } |
|
|
|
|
] |
|
|
|
|
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,57,66' |
|
|
|
|
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) |
|
|
|
|
this.setDataFlow({ isSettle: true }) |
|
|
|
|
this.submited = 1 |
|
|
|
|
}, |
|
|
|
|
popUp(text) { |
|
|
|
|
// this.$store.commit('system/changePop',{show:true,text, id: 66}) |
|
|
|
|
popUp (text) { |
|
|
|
|
// this.$store.commit('system/changePop',{show:true,text, id: 66}) |
|
|
|
|
|
|
|
|
|
this.setTipsOperate('请刷银行卡'); |
|
|
|
|
this.setPopId('66') |
|
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
|
this.$router.push('/counter/list/') |
|
|
|
|
}, |
|
|
|
|
popUp2(text) { |
|
|
|
|
this.setTipsOperate('请在密码器输入密码'); |
|
|
|
|
this.setPopId('66,2') |
|
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
|
this.$router.push('/counter/list/') |
|
|
|
|
}, |
|
|
|
|
ismoney: ismoney, |
|
|
|
|
checkHanzi: checkHanzi, |
|
|
|
|
checkName: checkName, |
|
|
|
|
inputListen: inputListen |
|
|
|
|
this.setTipsOperate('请刷银行卡'); |
|
|
|
|
this.setPopId('66') |
|
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
|
this.$router.push('/counter/list/') |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
...mapGetters({ |
|
|
|
|
dataFlow: 'system/dataFlow', |
|
|
|
|
needsModule: 'system/needsModule', |
|
|
|
|
idCardNumber: 'system/idCardNumber', |
|
|
|
|
inMyWork: 'system/inMyWork', |
|
|
|
|
getSelectList: 'system/getSelectList' |
|
|
|
|
}), |
|
|
|
|
needAuth() { |
|
|
|
|
return this.form.balance >= 50000 || this.totalMoney >= 50000 |
|
|
|
|
} |
|
|
|
|
popUp2 (text) { |
|
|
|
|
this.setTipsOperate('请在密码器输入密码'); |
|
|
|
|
this.setPopId('66,2') |
|
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
|
this.$router.push('/counter/list/') |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
'form.balance': { |
|
|
|
|
handler(val) { |
|
|
|
|
this.form.totalMoney = (Number(this.form.interest) + Number(val)).toFixed(2) |
|
|
|
|
}, |
|
|
|
|
immediate: true |
|
|
|
|
}, |
|
|
|
|
'form.interest': { |
|
|
|
|
handler(val) { |
|
|
|
|
this.form.totalMoney = (Number(this.form.balance) + Number(val)).toFixed(2) |
|
|
|
|
}, |
|
|
|
|
immediate: true |
|
|
|
|
} |
|
|
|
|
ismoney: ismoney, |
|
|
|
|
checkHanzi: checkHanzi, |
|
|
|
|
checkName: checkName, |
|
|
|
|
inputListen: inputListen |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
...mapGetters({ |
|
|
|
|
dataFlow: 'system/dataFlow', |
|
|
|
|
needsModule: 'system/needsModule', |
|
|
|
|
idCardNumber: 'system/idCardNumber', |
|
|
|
|
inMyWork: 'system/inMyWork', |
|
|
|
|
getSelectList: 'system/getSelectList' |
|
|
|
|
}), |
|
|
|
|
needAuth () { |
|
|
|
|
return this.form.balance >= 50000 || this.totalMoney >= 50000 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
'form.balance': { |
|
|
|
|
handler (val) { |
|
|
|
|
this.form.totalMoney = (Number(this.form.interest) + Number(val)).toFixed(2) |
|
|
|
|
}, |
|
|
|
|
immediate: true |
|
|
|
|
}, |
|
|
|
|
'form.interest': { |
|
|
|
|
handler (val) { |
|
|
|
|
this.form.totalMoney = (Number(this.form.balance) + Number(val)).toFixed(2) |
|
|
|
|
}, |
|
|
|
|
immediate: true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
<style lang='scss' scoped> |
|
|
|
@ -343,5 +345,4 @@ export default{ |
|
|
|
|
// // left: 50%; |
|
|
|
|
// // transform: translate(-50%,-20%); |
|
|
|
|
// // } |
|
|
|
|
// } |
|
|
|
|
</style> |
|
|
|
|
// }</style> |