20240205
luoJunYong.123 3 years ago
parent 5066d14e03
commit 881e9a51fd
  1. 2
      src/components/dialog/index.vue
  2. 13
      src/pages/counter/list/myConfig.js
  3. 19
      src/pages/manage/list/personal/timeDeposit/deposit.vue
  4. 13
      src/pages/manage/list/personal/timeDeposit/openAccount.vue
  5. 142
      src/pages/manage/list/personal/timeDeposit/withdrawal.vue
  6. 46
      src/pages/manage/list/personal/usefulPhrases/accountClosed.vue
  7. 28
      src/pages/manage/list/personal/usefulPhrases/continueDeposit.vue
  8. 72
      src/pages/manage/list/personal/usefulPhrases/openAccount.vue
  9. 1
      src/store/modules/system.js

@ -121,7 +121,7 @@ export default {
return { return {
flow: 1, flow: 1,
disForm:{ disForm:{
name:'002009', name:'002288',
pass:'123456' pass:'123456'
}, },
leftObj: {}, leftObj: {},

@ -50,6 +50,12 @@ const myConfig = {
parentId: '285,287,5,26,58,120', parentId: '285,287,5,26,58,120',
isPassword: true isPassword: true
}, },
'154,2': {
nbm: 154,
name: 'nomtimeDepositWithdrawalPassword2',
parentId: '285,287,5,26,58,120',
isPassword: true
},
'144,1': { '144,1': {
nbm: 144, nbm: 144,
name: 'nomtimeDepositWithdrawal1', name: 'nomtimeDepositWithdrawal1',
@ -57,6 +63,13 @@ const myConfig = {
isPassword: false, isPassword: false,
machine: '刷卡器' machine: '刷卡器'
}, },
'144,2': {
nbm: 144,
name: 'nomtimeDepositWithdrawal2',
parentId: '285,287,5,26,58,120',
isPassword: false,
machine: '刷卡器'
},
'156': { '156': {
nbm: 156, nbm: 156,
name: 'nomtimeDepositContinue', name: 'nomtimeDepositContinue',

@ -84,7 +84,7 @@
<need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> <need-before v-else :moduleName='needBefore' :unNeed="unNeed" />
</template> </template>
<script> <script>
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen } from '@/utils/utilFunction.js'; import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen,messageCard, messagePassword } from '@/utils/utilFunction.js';
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
const moduleName = 'timeDeposit/deposit' const moduleName = 'timeDeposit/deposit'
@ -279,10 +279,8 @@ export default{
this.form.currencyMark = goldLogo this.form.currencyMark = goldLogo
this.form.voucherNumber = voucherNumber this.form.voucherNumber = voucherNumber
} }
console.log('mxxx')
console.log(sessionStorage.getItem('nomtimeDepositlPassword'))
if(sessionStorage.getItem('nomtimeDepositlPassword')) { if(sessionStorage.getItem('nomtimeDepositlPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomtimeDepositlPassword') this.form.drawPassword = sessionStorage.getItem('nomtimeDepositlPassword')
} }
@ -326,8 +324,8 @@ export default{
if(this.form.voucherNumber) { if(this.form.voucherNumber) {
this.cardNumberJudge = true this.cardNumberJudge = true
} }
if(this.form.drawPassword) { if(sessionStorage.getItem('nomtimeDepositlPassword')) {
sessionStorage.setItem('nomtimeDepositlPassword', this.form.drawPassword) this.form.drawPassword = sessionStorage.getItem('nomtimeDepositlPassword')
} }
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
@ -349,6 +347,15 @@ export default{
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
submitForm() { submitForm() {
if(!this.form.voucherNumber) {
messageCard('请填写凭证号码')
return
}
if(!this.form.drawPassword) {
messagePassword()
return
}
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
this.visible = true; this.visible = true;

@ -236,6 +236,10 @@ export default{
this.cardNumberJudge = true this.cardNumberJudge = true
this.form.voucherNumber = voucherNumber this.form.voucherNumber = voucherNumber
} }
if(sessionStorage.getItem('nomtimeOpenAccountPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomtimeOpenAccountPassword')
}
this.getFormData() this.getFormData()
}else { }else {
this.isNeedBefore = true this.isNeedBefore = true
@ -311,14 +315,15 @@ export default{
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
submitForm() { submitForm() {
if(!this.form.voucherNumber) {
messageCard()
return
}
if(!this.form.idNumber) { if(!this.form.idNumber) {
messageIdCard() messageIdCard()
return return
} }
if(!this.form.voucherNumber) {
messageCard()
return
}
if(!this.form.drawPassword) { if(!this.form.drawPassword) {
messagePassword() messagePassword()
return return

@ -69,7 +69,7 @@
<need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> <need-before v-else :moduleName='needBefore' :unNeed="unNeed" />
</template> </template>
<script> <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' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
const moduleName = 'timeDeposit/withdrawal' const moduleName = 'timeDeposit/withdrawal'
@ -90,29 +90,49 @@ export default{
if(withdrawWay === '全部支取并销户') { if(withdrawWay === '全部支取并销户') {
this.form.interest = 5.75 this.form.interest = 5.75
this.rules.withdrawAmount[0].required = false 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 { }else {
this.form.interest = 0.00 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
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')) { if(sessionStorage.getItem('nomtimeDepositWithdrawal1')) {
this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword') this.cardNumberJudge = true
console.log(this.form.drawPassword) 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')
console.log(this.form.drawPassword)
}
} }
this.getFormData() this.getFormData()
// this.$nextTick(() => { // this.$nextTick(() => {
@ -284,30 +304,96 @@ export default{
// 154: 'nomtimeDepositWithdrawalPassword' // 154: 'nomtimeDepositWithdrawalPassword'
} }
const callback = () => { const callback = () => {
if(this.form.voucherNumber) { // if(this.form.voucherNumber) {
this.cardNumberJudge = true // 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) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
popUp(text) { popUp(text) {
// this.$store.commit('system/changePop',{show:true,text, id: '144,1'}) // this.$store.commit('system/changePop',{show:true,text, id: '144,1'})
const { withdrawWay } = this.dataFlow
if(withdrawWay === '全部支取并销户') {
this.setPopId('144,2')
}else {
this.setPopId('144,1')
}
this.$message.warning('请刷银行卡'); this.$message.warning('请刷银行卡');
this.setPopId('144,1')
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
popUp2(text) { popUp2(text) {
// this.$store.commit('system/changePop',{show:true,text, id: '154'}) // this.$store.commit('system/changePop',{show:true,text, id: '154'})
const { withdrawWay } = this.dataFlow
if(withdrawWay === '全部支取并销户') {
this.setPopId('154,2')
}else {
this.setPopId('154')
}
this.$message.warning('请在密码器输入密码'); this.$message.warning('请在密码器输入密码');
this.setPopId('154')
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
submitIt() { submitIt() {
if(!this.form.voucherNumber) {
messageCard()
return
}
if(!this.form.drawPassword) {
messagePassword()
return
}
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
this.visible = true; this.visible = true;
@ -341,7 +427,7 @@ export default{
needsModule: 'system/needsModule', needsModule: 'system/needsModule',
idCardNumber: 'system/idCardNumber', idCardNumber: 'system/idCardNumber',
inMyWork: 'system/inMyWork', inMyWork: 'system/inMyWork',
}) }),
}, },
watch: { watch: {
'form.withdrawWay'(newVal) { 'form.withdrawWay'(newVal) {

@ -18,24 +18,27 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
<el-select v-model="form.currency" placeholder="请选择" ref="currency"> <el-select v-model="form.currency" disabled placeholder="请选择" ref="currency">
<el-option value="CNY人民币">CNY人民币</el-option> <el-option value="CNY人民币">CNY人民币</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="定存编号" prop="depositNumber"> <el-form-item label="定存编号" prop="depositNumber">
<el-input :value="form.depositNumber" @input="(val) => checkHanzi(val, form, 'depositNumber')" ref="depositNumber"></el-input> <el-input :value="form.depositNumber" disabled @input="(val) => checkHanzi(val, form, 'depositNumber')" ref="depositNumber"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="利率" prop="interestRate"> <el-form-item label="利率" prop="interestRate">
<el-input :value="form.interestRate" @input="(val) => checkHanzi(val, form, 'interestRate')" ref="interestRate"></el-input> <el-input :value="form.interestRate" disabled @input="(val) => checkHanzi(val, form, 'interestRate')" ref="interestRate"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="利息" prop="interest"> <el-form-item label="利息" prop="interest">
<el-input :value="form.interest" @input="(val) => checkHanzi(val, form, 'interest')" ref="interest"></el-input> <el-input :value="form.interest" disabled @input="(val) => checkHanzi(val, form, 'interest')" ref="interest"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="起息日期" required> <el-form-item label="起息日期" required>
<el-date-picker <el-date-picker
disabled
v-model="form.signDate" v-model="form.signDate"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
ref="signDate"> ref="signDate">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
@ -51,25 +54,25 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input ref="customerName" :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input> <el-input ref="customerName" disabled :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="currencyMark"> <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-option label="钞户" value="钞户"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="本金" prop="capital"> <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>
<el-form-item label="存期" prop="depositTerm"> <el-form-item label="存期" prop="depositTerm">
<el-select v-model="form.depositTerm" placeholder="请选择" ref="depositTerm"> <el-select v-model="form.depositTerm" disabled placeholder="请选择" ref="depositTerm">
<el-option label="1年" value="1年"> </el-option> <el-option label="1年" value="1年"> </el-option>
<el-option label="3年" value="3年"> </el-option> <el-option label="3年" value="3年"> </el-option>
<el-option label="5年" value="5年"> </el-option> <el-option label="5年" value="5年"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="总金额" prop="totalMoney"> <el-form-item label="总金额" prop="totalMoney">
<el-input :value="form.totalMoney" @input="val => ismoney(val, form, 'totalMoney')" ref="totalMoney" ></el-input> <el-input :value="form.totalMoney" disabled @input="val => ismoney(val, form, 'totalMoney')" ref="totalMoney" ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="支取密码" required> <el-form-item label="支取密码" required>
<div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')">
@ -92,13 +95,13 @@
</el-form> </el-form>
</el-row> </el-row>
<el-button @click="submitForm" type="primary" class="submitBtn">提交</el-button> <el-button @click="submitForm" type="primary" class="submitBtn">提交</el-button>
<my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" :needAuth="false" /> <my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" />
</div> </div>
<need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> <need-before v-else :moduleName='needBefore' :unNeed="unNeed" />
</template> </template>
<script> <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 } from '@/utils/utilFunction.js'; import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, messageIdCard,messageCard, messagePassword } from '@/utils/utilFunction.js';
const moduleName = 'usefulPhrases/accoumtClosed' const moduleName = 'usefulPhrases/accoumtClosed'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
@ -125,7 +128,7 @@ export default{
} }
if(sessionStorage.getItem('nomUsefulPhrasesClosed2')) { if(sessionStorage.getItem('nomUsefulPhrasesClosed2')) {
this.cardNumberJudge = true this.cardNumberJudge = true
const { currency, userName, depositNumber, goldLogo, capital, interestRate, interest, totalMoney, signDate, voucherNumber } = this.dataFlow const { currency, userName, depositNumber, goldLogo, capital, interestRate, interest, totalMoney, signDate, voucherNumber, depositTerm } = this.dataFlow
this.form.currency = currency this.form.currency = currency
this.form.customerName = userName this.form.customerName = userName
this.form.depositNumber = depositNumber this.form.depositNumber = depositNumber
@ -136,6 +139,8 @@ export default{
this.form.totalMoney = totalMoney this.form.totalMoney = totalMoney
this.form.signDate = signDate this.form.signDate = signDate
this.form.voucherNumber = voucherNumber this.form.voucherNumber = voucherNumber
this.form.depositTerm = depositTerm
console.log(depositTerm)
} }
if(sessionStorage.getItem('nomUsefulPhrasesClosedPassword')) { if(sessionStorage.getItem('nomUsefulPhrasesClosedPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword') this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword')
@ -317,6 +322,9 @@ export default{
if(this.form.voucherNumber) { if(this.form.voucherNumber) {
this.cardNumberJudge = true this.cardNumberJudge = true
} }
if(sessionStorage.getItem('nomUsefulPhrasesClosedPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword')
}
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
@ -345,9 +353,21 @@ export default{
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
submitForm() { submitForm() {
if(!this.form.idNumber) {
messageIdCard()
return
}
if(!this.form.voucherNumber) {
messageCard('请填写凭证号码')
return
}
if(!this.form.drawPassword) {
messagePassword()
return
}
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
this.form.signDate = this.form.signDate.slice(0, 10)
this.visible = true; this.visible = true;
}, this.$refs)); }, this.$refs));
}, },

@ -13,28 +13,28 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="定存编号" prop="depositNumber"> <el-form-item label="定存编号" prop="depositNumber">
<el-input :value="form.depositNumber" @input="(val) => checkHanzi(val, form, 'depositNumber')"></el-input> <el-input :value="form.depositNumber" disabled @input="(val) => checkHanzi(val, form, 'depositNumber')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="moneyTarget"> <el-form-item label="钞汇标识" prop="moneyTarget">
<el-select v-model="form.moneyTarget" placeholder="请选择"> <el-select v-model="form.moneyTarget" disabled placeholder="请选择">
<el-option label="钞户" value="钞户"> </el-option> <el-option label="钞户" value="钞户"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="月存金额" prop="monthDeposit"> <el-form-item label="月存金额" prop="monthDeposit">
<el-input :value="form.monthDeposit" @input="val => ismoney(val, form, 'monthDeposit')"></el-input> <el-input :value="form.monthDeposit" disabled @input="val => ismoney(val, form, 'monthDeposit')"></el-input>
</el-form-item> </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">
<el-input ref="customerName" :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input> <el-input ref="customerName" disabled :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
<el-select v-model="form.currency" placeholder="请选择" ref="currency"> <el-select v-model="form.currency" disabled placeholder="请选择" ref="currency">
<el-option value="CNY人民币">CNY人民币</el-option> <el-option value="CNY人民币">CNY人民币</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="存期" prop="depositTerm"> <el-form-item label="存期" prop="depositTerm">
<el-select v-model="form.depositTerm" placeholder="请选择" ref="depositTerm"> <el-select v-model="form.depositTerm" disabled placeholder="请选择" ref="depositTerm">
<el-option label="1年" value="1年"> </el-option> <el-option label="1年" value="1年"> </el-option>
<el-option label="3年" value="3年"> </el-option> <el-option label="3年" value="3年"> </el-option>
<el-option label="5年" value="5年"> </el-option> <el-option label="5年" value="5年"> </el-option>
@ -58,7 +58,7 @@
</template> </template>
<script> <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 } from '@/utils/utilFunction.js'; import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageCard, messagePassword } from '@/utils/utilFunction.js';
const moduleName = 'usefulPhrases/continueDeposit' const moduleName = 'usefulPhrases/continueDeposit'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
@ -217,7 +217,9 @@ export default{
if(this.form.voucherNumber) { if(this.form.voucherNumber) {
this.cardNumberJudge = true this.cardNumberJudge = true
} }
if(sessionStorage.getItem('nomUsefulPhrasesContinuePassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesContinuePassword')
}
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
@ -237,6 +239,16 @@ export default{
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
submitForm() { submitForm() {
if(!this.form.voucherNumber) {
messageCard('请填写凭证号码')
return
}
if(!this.form.drawPassword) {
messagePassword()
return
}
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //

@ -10,10 +10,10 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="客户号" prop="clientNumber"> <el-form-item label="客户号" prop="clientNumber">
<el-input ref="clientNumber" :value="form.clientNumber" @input="(val) => checkHanzi(val, form, 'clientNumber')" ></el-input> <el-input ref="clientNumber" disabled :value="form.clientNumber" @input="(val) => checkHanzi(val, form, 'clientNumber')" ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
<el-select v-model="form.currency" placeholder="请选择" ref="currency"> <el-select v-model="form.currency" disabled placeholder="请选择" ref="currency">
<el-option value="CNY人民币">CNY人民币</el-option> <el-option value="CNY人民币">CNY人民币</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -30,12 +30,11 @@
<el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input> <el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="续存标识" prop="extendDepositTarget"> <el-form-item label="存期" prop="depositTerm">
<el-select v-model="form.extendDepositTarget" placeholder="请选择" ref="extendDepositTarget"> <el-select v-model="form.depositTerm" placeholder="请选择" ref="depositTerm">
<el-option label="不续存" value="不续存"> </el-option> <el-option label="1年" value="1年"> </el-option>
<el-option label="续存1年" value="续存1年"> </el-option> <el-option label="3年" value="3年"> </el-option>
<el-option label="续存3年" value="续存3年"> </el-option> <el-option label="5年" value="5年"> </el-option>
<el-option label="续存5年" value="续存5年"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -49,10 +48,10 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input ref="customerName" :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input> <el-input ref="customerName" disabled :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="currencyMark"> <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-option label="钞户" value="钞户"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -61,16 +60,24 @@
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input @blur="getDataBlur" ref="voucherNumber" disabled :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> <el-input @blur="getDataBlur" maxlength="20" ref="voucherNumber" disabled :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="月存金额" prop="monthDeposit"> <el-form-item label="月存金额" prop="monthDeposit">
<!-- :value="form.monthDeposit" --> <!-- :value="form.monthDeposit" -->
<el-input :value="form.monthDeposit" @input="val => ismoney(val, form, 'monthDeposit')" ref="monthDeposit" ></el-input> <el-input :value="form.monthDeposit" maxlength="15" @input="val => ismoney(val, form, 'monthDeposit')" ref="monthDeposit" ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="客户经理" prop="customerManage"> <el-form-item label="续存标识" prop="extendDepositTarget">
<el-input :value="form.customerManage" @input="val => checkHanzi(val, form, 'customerManage')" ref="customerManage" ></el-input> <el-select v-model="form.extendDepositTarget" placeholder="请选择" ref="extendDepositTarget">
<el-option label="不续存" value="不续存"> </el-option>
<el-option label="续存1年" value="续存1年"> </el-option>
<el-option label="续存3年" value="续存3年"> </el-option>
<el-option label="续存5年" value="续存5年"> </el-option>
</el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="客户经理" prop="customerManage">
<el-input :value="form.customerManage" @input="val => checkHanzi(val, form, 'customerManage')" ref="customerManage" ></el-input>
</el-form-item> -->
</el-col> </el-col>
<my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" /> <my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" />
</el-form> </el-form>
@ -80,7 +87,7 @@
<need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> <need-before v-else :moduleName='needBefore' :unNeed="unNeed" />
</template> </template>
<script> <script>
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen } from '@/utils/utilFunction.js'; import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard,messageCard, messagePassword } from '@/utils/utilFunction.js';
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
const moduleName = 'usefulPhrases/openAccount' const moduleName = 'usefulPhrases/openAccount'
@ -156,7 +163,6 @@ export default{
// //
clientNumber: '', // clientNumber: '', //
certificateType: '身份证', // certificateType: '身份证', //
customerManage: '', //
}, },
formName:{ formName:{
// //
@ -171,10 +177,10 @@ export default{
extendDepositTarget: '续存标识', // extendDepositTarget: '续存标识', //
voucherNumber: '凭证号码', // voucherNumber: '凭证号码', //
drawPassword: '支付密码', // drawPassword: '支付密码', //
depositTerm: '续存标识',
// //
clientNumber: '客户号', // clientNumber: '客户号', //
certificateType: '证件类型', // certificateType: '证件类型', //
customerManage: '客户经理', //
}, },
rules: { rules: {
customerName: vercustomer, customerName: vercustomer,
@ -227,11 +233,11 @@ export default{
type: '1', type: '1',
"subjectId": 19, "subjectId": 19,
}, },
169: { // 169: {
prop: 'customerManage',// // prop: 'customerManage',//
type: '3', // type: '3',
"subjectId": 27, // "subjectId": 27,
}, // },
160: { 160: {
prop: 'clientNumber',// prop: 'clientNumber',//
type: '3', type: '3',
@ -278,7 +284,7 @@ export default{
"subjectId": 31, "subjectId": 31,
}, },
170: { 170: {
prop: 'customerManage',// prop: 'depositTerm',//
type: '1', type: '1',
"subjectId": 37, "subjectId": 37,
}, },
@ -329,22 +335,32 @@ export default{
// 167: 'nomUsefulPhrasesOpenPassword' // 167: 'nomUsefulPhrasesOpenPassword'
} }
const callback = () => { const callback = () => {
console.log('callback')
console.log(this.form)
if(this.form.idNumber) { if(this.form.idNumber) {
this.idNumberJudge = true this.idNumberJudge = true
} }
if(this.form.voucherNumber) { if(this.form.voucherNumber) {
this.cardNumberJudge = true this.cardNumberJudge = true
} }
if(this.form.drawPassword) { if(sessionStorage.getItem('nomUsefulPhrasesOpenPassword')) {
console.log(this.form.drawPassword) this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword')
} }
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
submitForm() { submitForm() {
if(!this.form.idNumber) {
messageIdCard()
return
}
if(!this.form.voucherNumber) {
messageCard('请填写凭证号码')
return
}
if(!this.form.drawPassword) {
messagePassword()
return
}
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
this.visible = true; this.visible = true;

@ -1021,6 +1021,7 @@ export default {
interest: 1.6, interest: 1.6,
totalMoney: 101.6, totalMoney: 101.6,
signDate: '2001-03-01', signDate: '2001-03-01',
depositTerm: '5年',
voucherNumber voucherNumber
} }
}, },

Loading…
Cancel
Save