20240205
luoJunYong.123 3 years ago
parent 59f7f7d005
commit 15e5f4b47a
  1. 211
      src/pages/manage/list/ImportantCash/controlCash/cashOut.vue
  2. 172
      src/pages/manage/list/ImportantCash/controlCash/cashPaid.vue
  3. 17
      src/pages/manage/list/ImportantCash/controlCash/cashRecipients.vue
  4. 211
      src/pages/manage/list/ImportantCash/controlCash/cashTransferInto.vue
  5. 19
      src/pages/manage/list/ImportantCash/controlCash/index.vue
  6. 24
      src/pages/manage/list/ImportantCash/controlCash2/cashRecipients.vue
  7. 181
      src/pages/manage/list/ImportantCash/controlCash2/cashTransferInto.vue
  8. 21
      src/pages/manage/list/ImportantCash/controlCash2/index.vue
  9. 115
      src/pages/manage/list/client/consumerClient.vue
  10. 53
      src/pages/manage/list/client/corporateClient.vue
  11. 1
      src/pages/manage/list/personal/currentAccount/deposit.vue
  12. 10
      src/pages/manage/list/personal/currentAccount/index.vue
  13. 28
      src/pages/manage/list/personal/currentAccount/openAccount.vue
  14. 13
      src/pages/manage/list/personal/currentAccount/withdrawal.vue
  15. 6
      src/pages/manage/list/servicesAccount/passwordChange.vue
  16. 29
      src/utils/utilFunction.js
  17. 63
      src/utils/verification.js
  18. 37
      src/utils/verify.js

@ -0,0 +1,211 @@
//
<template>
<div>
<el-form ref="form" :model="form" label-width="120px">
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="币种">
<el-select v-model="form.identification" placeholder="请选择">
<el-option label="CYN人民币" value="CYN人民币"> </el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="状态">
<el-select v-model="form.state" placeholder="请选择">
<el-option label="正常" value="正常"> </el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-table
ref="filterTable"
:data="tableData"
height="420"
style="width: 100%">
<el-table-column
prop="moneyType"
label="券别"
align="center"
>
</el-table-column>
<el-table-column
prop="moneyMedium"
label="介质"
align="center"
>
</el-table-column>
<el-table-column
label="数量"
align="center"
>
<template slot-scope="scope">
<el-input type='text' @input="val => inputListen(val, scope.row)" min="0" :value="scope.row.moneyNumber"></el-input>
<span></span>
</template>
</el-table-column>
<el-table-column
label="金额"
align="center"
>
<template slot-scope="scope">
<el-input type='text' disabled :value="getSum(scope.row.moneyType, scope.row.moneyNumber)"></el-input>
<span></span>
</template>
</el-table-column>
</el-table>
</el-col>
<el-col :span="12">
<el-table
ref="filterTable"
:data="tableData2"
height="420"
style="width: 100%">
<el-table-column
prop="moneyType"
label="券别"
align="center"
>
</el-table-column>
<el-table-column
prop="moneyMedium"
label="介质"
align="center"
>
</el-table-column>
<el-table-column
label="数量"
align="center"
>
<template slot-scope="scope">
<el-input type='text' @input="val => inputListen(val, scope.row)" min="0" :value="scope.row.moneyNumber"></el-input>
<span></span>
</template>
</el-table-column>
<el-table-column
label="金额"
align="center"
>
<template slot-scope="scope">
<el-input type='text' disabled :value="getSum(scope.row.moneyType, scope.row.moneyNumber)"></el-input>
<span></span>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<el-button @click="submitClick" type="primary" class="submitBtn">提交</el-button>
</el-form>
</div>
</template>
<script>
export default {
name: 'index',
components:{},
data() {
return {
text:'柜员现金轧账',/* 顶部文字 */
form:{
identification: 'CYN人民币',
state: '正常'
},
tableData: [
{
moneyType: '100元',
moneyMedium: '纸币',
moneyNumber: 0
},
{
moneyType: '50元',
moneyMedium: '纸币',
moneyNumber: 0
},
{
moneyType: '20元',
moneyMedium: '纸币',
moneyNumber: 0
},
{
moneyType: '10元',
moneyMedium: '纸币',
moneyNumber: 0
},
{
moneyType: '5元',
moneyMedium: '纸币',
moneyNumber: 0
},
{
moneyType: '1元',
moneyMedium: '纸币',
moneyNumber: 0
}
],
tableData2: [
{
moneyType: '1元',
moneyMedium: '硬币',
moneyNumber: 0
},
{
moneyType: '5角',
moneyMedium: '硬币',
moneyNumber: 0
},
{
moneyType: '5角',
moneyMedium: '纸币',
moneyNumber: 0
},
{
moneyType: '1角',
moneyMedium: '硬币',
moneyNumber: 0
},
{
moneyType: '1角',
moneyMedium: '纸币',
moneyNumber: 0
},
],
visible:false,
}
},
computed: {
getSum() {
return (val, num) => {
return val.substr(0, val.length-1) * num;
}
}
},
created() {
},
methods: {
inputListen(val, row) {
row.moneyNumber = Number(val.replace(/\D+/, ''))
},
submitClick() {
console.log('点击提交')
}
}
};
</script>
<style lang="scss" scoped>
.wrap{
width: 100%;
// padding: 24px 0 24px 24px;
}
/deep/.el-input input {
text-align: center;
}
/deep/ .blueText{
color: blue;
}
</style>

@ -0,0 +1,172 @@
//
<template>
<div>
<el-table
ref="filterTable"
:data="tableData"
:row-class-name="tableRowClassName"
height="450"
style="width: 95%">
<el-table-column
prop="t1"
label="下发日期"
align="center"
>
</el-table-column>
<el-table-column
prop="t2"
label="机构号"
align="center"
>
</el-table-column>
<el-table-column
prop="t3"
label="调出柜员号"
align="center"
>
</el-table-column>
<el-table-column
prop="t4"
label="调入柜员号"
align="center"
>
</el-table-column>
<el-table-column
prop="t5"
label="币种"
align="center"
>
</el-table-column>
<el-table-column
label="金额"
align="center"
>
<template slot-scope="scope">
{{ scope.row.t6 | cashRule }}
</template>
</el-table-column>
<el-table-column
label="操作"
align="center"
width="150"
>
<template slot-scope="scope">
<el-button @click="sure(scope.row)" size="small">确认</el-button>
<el-button @click="back(scope.row)" size="small">退回</el-button>
</template>
</el-table-column>
</el-table>
</div>
</template>
<script>
export default {
name: 'index',
components:{},
data() {
return {
text:'柜员现金轧账',/* 顶部文字 */
form:{
date: '',
counterNumber: ''
},
tableData: [
{
t1: 1,
t2: 2,
t3: 1,
t4: 2,
t5: 1,
t6: 2
},
{
t1: 1,
t2: 2,
t3: 1,
t4: 2,
t5: 1,
t6: 2
},
{
t1: 1,
t2: 2,
t3: 1,
t4: 2,
t5: 1,
t6: 2
},
{
t1: 1,
t2: 2,
t3: 1,
t4: 2,
t5: 1,
t6: 2
},
{
t1: 1,
t2: 2,
t3: 1,
t4: 2,
t5: 1,
t6: 2
}
],
visible:false,
}
},
filters: {
cashRule(cash) {
const arr = (cash + '').split('.')
if(arr.length===1) {
return arr[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '.' + '00'
}else {
return arr[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '.' + arr[1];
}
}
},
created() {
},
methods: {
tableRowClassName({row, rowIndex}) {
if (rowIndex === 1) {
return 'warning-row';
} else if (rowIndex === 3) {
return 'success-row';
}
return '';
},
sure(row) {
console.log(row)
},
back(row) {
console.log(row)
}
}
};
</script>
<style lang="scss" scoped>
.wrap{
width: 100%;
// padding: 24px 0 24px 24px;
}
/deep/.el-input input {
text-align: center;
}
/deep/ .blueText{
color: blue;
}
/deep/.el-table .warning-row {
background: oldlace;
}
/deep/.el-table .success-row {
background: #f0f9eb;
}
</style>

@ -5,6 +5,7 @@
ref="filterTable" ref="filterTable"
:data="tableData" :data="tableData"
height="450" height="450"
:row-class-name="tableRowClassName"
style="width: 95%"> style="width: 95%">
<el-table-column <el-table-column
prop="t1" prop="t1"
@ -136,6 +137,14 @@ export default {
}, },
back(row) { back(row) {
console.log(row) console.log(row)
},
tableRowClassName({row, rowIndex}) {
if (rowIndex === 1) {
return 'warning-row';
} else if (rowIndex === 3) {
return 'success-row';
}
return '';
} }
} }
}; };
@ -154,4 +163,12 @@ export default {
/deep/ .blueText{ /deep/ .blueText{
color: blue; color: blue;
} }
/deep/.el-table .warning-row {
background: oldlace;
}
/deep/.el-table .success-row {
background: #f0f9eb;
}
</style> </style>

@ -0,0 +1,211 @@
//
<template>
<div>
<el-form ref="form" :model="form" label-width="120px">
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="币种">
<el-select v-model="form.identification" placeholder="请选择">
<el-option label="CYN人民币" value="CYN人民币"> </el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="状态">
<el-select v-model="form.state" placeholder="请选择">
<el-option label="正常" value="正常"> </el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<el-table
ref="filterTable"
:data="tableData"
height="420"
style="width: 100%">
<el-table-column
prop="moneyType"
label="券别"
align="center"
>
</el-table-column>
<el-table-column
prop="moneyMedium"
label="介质"
align="center"
>
</el-table-column>
<el-table-column
label="数量"
align="center"
>
<template slot-scope="scope">
<el-input type='text' @input="val => inputListen(val, scope.row)" min="0" :value="scope.row.moneyNumber"></el-input>
<span></span>
</template>
</el-table-column>
<el-table-column
label="金额"
align="center"
>
<template slot-scope="scope">
<el-input type='text' disabled :value="getSum(scope.row.moneyType, scope.row.moneyNumber)"></el-input>
<span></span>
</template>
</el-table-column>
</el-table>
</el-col>
<el-col :span="12">
<el-table
ref="filterTable"
:data="tableData2"
height="420"
style="width: 100%">
<el-table-column
prop="moneyType"
label="券别"
align="center"
>
</el-table-column>
<el-table-column
prop="moneyMedium"
label="介质"
align="center"
>
</el-table-column>
<el-table-column
label="数量"
align="center"
>
<template slot-scope="scope">
<el-input type='text' @input="val => inputListen(val, scope.row)" min="0" :value="scope.row.moneyNumber"></el-input>
<span></span>
</template>
</el-table-column>
<el-table-column
label="金额"
align="center"
>
<template slot-scope="scope">
<el-input type='text' disabled :value="getSum(scope.row.moneyType, scope.row.moneyNumber)"></el-input>
<span></span>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<el-button @click="submitClick" type="primary" class="submitBtn">提交</el-button>
</el-form>
</div>
</template>
<script>
export default {
name: 'index',
components:{},
data() {
return {
text:'柜员现金轧账',/* 顶部文字 */
form:{
identification: 'CYN人民币',
state: '正常'
},
tableData: [
{
moneyType: '100元',
moneyMedium: '纸币',
moneyNumber: 0
},
{
moneyType: '50元',
moneyMedium: '纸币',
moneyNumber: 0
},
{
moneyType: '20元',
moneyMedium: '纸币',
moneyNumber: 0
},
{
moneyType: '10元',
moneyMedium: '纸币',
moneyNumber: 0
},
{
moneyType: '5元',
moneyMedium: '纸币',
moneyNumber: 0
},
{
moneyType: '1元',
moneyMedium: '纸币',
moneyNumber: 0
}
],
tableData2: [
{
moneyType: '1元',
moneyMedium: '硬币',
moneyNumber: 0
},
{
moneyType: '5角',
moneyMedium: '硬币',
moneyNumber: 0
},
{
moneyType: '5角',
moneyMedium: '纸币',
moneyNumber: 0
},
{
moneyType: '1角',
moneyMedium: '硬币',
moneyNumber: 0
},
{
moneyType: '1角',
moneyMedium: '纸币',
moneyNumber: 0
},
],
visible:false,
}
},
computed: {
getSum() {
return (val, num) => {
return val.substr(0, val.length-1) * num;
}
}
},
created() {
},
methods: {
inputListen(val, row) {
row.moneyNumber = Number(val.replace(/\D+/, ''))
},
submitClick() {
console.log('点击提交')
}
}
};
</script>
<style lang="scss" scoped>
.wrap{
width: 100%;
// padding: 24px 0 24px 24px;
}
/deep/.el-input input {
text-align: center;
}
/deep/ .blueText{
color: blue;
}
</style>

@ -10,16 +10,17 @@
</el-menu> </el-menu>
</div> </div>
<div class="title"> <div class="title">
<p>个人业务</p> <p>重空现金</p>
<i class="el-icon-arrow-right"></i> <i class="el-icon-arrow-right"></i>
<p>活期业务</p> <p>现金管理</p>
<i class="el-icon-arrow-right"></i> <i class="el-icon-arrow-right"></i>
<p>{{text}}</p> <p>{{textObj[activeIndex]}}</p>
</div> </div>
<!-- 开户 -->
<cash-recipients v-if="activeIndex==='1'"></cash-recipients> <cash-recipients v-if="activeIndex==='1'"></cash-recipients>
<cashTransferInto v-if="activeIndex==='2'"></cashTransferInto>
<cashPaid v-if="activeIndex==='3'"></cashPaid>
<cashOut v-if="activeIndex==='4'"></cashOut>
<el-dialog <el-dialog
style="margin-top:10vh" style="margin-top:10vh"
:visible.sync="visible" :visible.sync="visible"
@ -45,10 +46,16 @@
<script> <script>
import cashRecipients from './cashRecipients.vue' import cashRecipients from './cashRecipients.vue'
import cashTransferInto from './cashTransferInto.vue'
import cashPaid from './cashPaid.vue'
import cashOut from './cashOut.vue'
export default { export default {
name: 'index', name: 'index',
components:{ components:{
cashRecipients cashRecipients,
cashTransferInto,
cashPaid,
cashOut
}, },
data() { data() {
return { return {

@ -5,6 +5,7 @@
ref="filterTable" ref="filterTable"
:data="tableData" :data="tableData"
height="450" height="450"
:row-class-name="tableRowClassName"
style="width: 95%"> style="width: 95%">
<el-table-column <el-table-column
prop="t1" prop="t1"
@ -145,6 +146,14 @@ export default {
}, },
back(row) { back(row) {
console.log(row) console.log(row)
},
tableRowClassName({row, rowIndex}) {
if (rowIndex === 1) {
return 'warning-row';
} else if (rowIndex === 3) {
return 'success-row';
}
return '';
} }
} }
}; };
@ -159,4 +168,19 @@ export default {
/deep/.el-input input { /deep/.el-input input {
text-align: center; text-align: center;
} }
/deep/.el-input input {
text-align: center;
}
/deep/ .blueText{
color: blue;
}
/deep/.el-table .warning-row {
background: oldlace;
}
/deep/.el-table .success-row {
background: #f0f9eb;
}
</style> </style>

@ -1,15 +1,186 @@
//
<template> <template>
<div> <div>
<p>test</p> <el-table
</div> ref="filterTable"
:data="tableData"
height="450"
:row-class-name="tableRowClassName"
style="width: 95%">
<el-table-column
prop="t1"
label="下发日期"
align="center"
>
</el-table-column>
<el-table-column
prop="t2"
label="机构号"
align="center"
>
</el-table-column>
<el-table-column
prop="t3"
label="下发柜员号"
class-name="blueText"
class="blueText"
align="center"
>
</el-table-column>
<el-table-column
prop="t4"
label="凭证类型"
align="center"
>
</el-table-column>
<el-table-column
prop="t5"
label="起始号"
align="center"
>
</el-table-column>
<el-table-column
prop="t6"
label="结束号"
align="center"
>
</el-table-column>
<el-table-column
prop="t7"
label="数量"
align="center"
>
</el-table-column>
<el-table-column
label="操作"
align="center"
width="180"
>
<template slot-scope="scope">
<el-button @click="sure(scope.row)" size="small">确认</el-button>
<el-button @click="back(scope.row)" size="small">退回</el-button>
</template>
</el-table-column>
</el-table>
</div>
</template> </template>
<script> <script>
export default { export default {
name: 'index',
components:{},
data() {
return {
text:'柜员现金轧账',/* 顶部文字 */
form:{
date: '',
counterNumber: ''
},
tableData: [
{
t1: 1,
t2: 2,
t3: 1,
t4: 2,
t5: 1,
t6: 2,
t7: 4
},
{
t1: 1,
t2: 2,
t3: 1,
t4: 2,
t5: 1,
t6: 2,
t7: 4
},
{
t1: 1,
t2: 2,
t3: 1,
t4: 2,
t5: 1,
t6: 2,
t7: 4
},
{
t1: 1,
t2: 2,
t3: 1,
t4: 2,
t5: 1,
t6: 2,
t7: 4
},
{
t1: 1,
t2: 2,
t3: 1,
t4: 2,
t5: 1,
t6: 2,
t7: 4
}
],
visible:false,
}
},
filters: {
cashRule(cash) {
const arr = (cash + '').split('.')
if(arr.length===1) {
return arr[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '.' + '00'
}else {
return arr[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',') + '.' + arr[1];
}
}
},
created() {
} },
methods: {
sure(row) {
console.log(row)
},
back(row) {
console.log(row)
},
tableRowClassName({row, rowIndex}) {
if (rowIndex === 1) {
return 'warning-row';
} else if (rowIndex === 3) {
return 'success-row';
}
return '';
}
}
};
</script> </script>
<style> <style lang="scss" scoped>
.wrap{
width: 100%;
// padding: 24px 0 24px 24px;
}
/deep/.el-input input {
text-align: center;
}
/deep/.el-input input {
text-align: center;
}
/deep/ .blueText{
color: blue;
}
/deep/.el-table .warning-row {
background: oldlace;
}
/deep/.el-table .success-row {
background: #f0f9eb;
}
</style> </style>

@ -14,11 +14,14 @@
<i class="el-icon-arrow-right"></i> <i class="el-icon-arrow-right"></i>
<p>凭证管理</p> <p>凭证管理</p>
<i class="el-icon-arrow-right"></i> <i class="el-icon-arrow-right"></i>
<p>{{text}}</p> <p>{{textObj[activeIndex]}}</p>
</div> </div>
<!-- 开户 --> <!-- 开户 -->
<cash-recipients v-if="activeIndex==='1'"></cash-recipients> <cash-recipients v-if="activeIndex==='1'"></cash-recipients>
<cash-transfer-into v-if="activeIndex==='2'"></cash-transfer-into>
<cash-paid v-if="activeIndex==='3'"></cash-paid>
<cash-out v-if="activeIndex==='4'"></cash-out>
<el-dialog <el-dialog
style="margin-top:10vh" style="margin-top:10vh"
@ -45,10 +48,16 @@
<script> <script>
import cashRecipients from './cashRecipients.vue' import cashRecipients from './cashRecipients.vue'
import cashTransferInto from './cashTransferInto.vue'
import cashPaid from './cashPaid.vue'
import cashOut from './cashOut.vue'
export default { export default {
name: 'index', name: 'index',
components:{ components:{
cashRecipients cashRecipients,
cashTransferInto,
cashPaid,
cashOut
}, },
data() { data() {
return { return {
@ -191,4 +200,12 @@ export default {
} }
} }
} }
/deep/.el-input input {
text-align: center;
}
/deep/ .blueText{
color: blue;
}
</style> </style>

@ -20,7 +20,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" required> <el-form-item prop="userName" :rules="rules.username" label="客户姓名">
<el-input v-model="form.userName"></el-input> <el-input v-model="form.userName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="出生日期" required> <el-form-item label="出生日期" required>
@ -31,7 +31,7 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="通讯地址"> <el-form-item label="通讯地址">
<el-input v-model="form.mailbox"></el-input> <el-input :value="form.mailbox" @input="val => mailBoxListen(val, form, 'mailbox')" maxlength="40"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
@ -60,8 +60,8 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="联系电话" required> <el-form-item label="联系电话" prop="phone" :rules="rules.phone" required>
<el-input v-model="form.phone"></el-input> <el-input :value="form.phone" @input="(val) => phoneListen(val, form, 'phone')" maxlength="12"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -107,6 +107,8 @@
<script> <script>
import { mapState } from 'vuex' import { mapState } from 'vuex'
import { EventBus } from "@/utils/event-bus.js"; import { EventBus } from "@/utils/event-bus.js";
import { vername, vermob } from '@/utils/verify.js'
import { phoneListen, mailBoxListen, checkRequired } from '@/utils/utilFunction.js'
export default { export default {
name: 'index', name: 'index',
@ -122,6 +124,10 @@ export default {
mailbox:'',// mailbox:'',//
phone:'',// phone:'',//
}, },
rules: {
username: vername,
phone: vermob
},
disForm:{name:'002009' ,pass:'123456'}, disForm:{name:'002009' ,pass:'123456'},
visible:false,// visible:false,//
authorization:false,// authorization:false,//
@ -147,36 +153,72 @@ export default {
let formExternalData = sessionStorage.getItem('formExternalData') let formExternalData = sessionStorage.getItem('formExternalData')
let consumerClientDragList = JSON.parse(formExternalData); let consumerClientDragList = JSON.parse(formExternalData);
console.log(consumerClientDragList) console.log(consumerClientDragList)
if(this.form.idNumber && this.form.idNumber.userName && this.form.idNumber.sex && this.form.idNumber.birthday && this.form.idNumber.phone) { //
this.visible = true; const requiredField = {
let formList = []; // idNumber:'',
if(this.form.nationality){ userName:'用户名字',
formList.push({ sex:'性别',
"emptyOne": "", birthday:'出生日期',
"emptyTwo": "", phone:'联系电话'
"operationIds": "0,5,25,33,45",
"type": ""
})
}
if(this.form.mailbox){
formList.push({
"emptyOne": "",
"emptyTwo": "",
"operationIds": "0,5,25,33,46",
"type": ""
})
}
formList.push(
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,40", "type": ""},
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,41,13", "type": ""},
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,42", "type": ""},
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,44", "type": ""},
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,47", "type": ""}
);
sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}else{
this.$message.error('有必填项为填哦~');
} }
if(checkRequired(this.form, requiredField)) {
this.visible = true;
let formList = [];
if(this.form.nationality){
formList.push({
"emptyOne": "",
"emptyTwo": "",
"operationIds": "0,5,25,33,45",
"type": ""
})
}
if(this.form.mailbox){
formList.push({
"emptyOne": "",
"emptyTwo": "",
"operationIds": "0,5,25,33,46",
"type": ""
})
}
formList.push(
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,40", "type": ""},
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,41,13", "type": ""},
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,42", "type": ""},
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,44", "type": ""},
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,47", "type": ""}
);
sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}
// if(this.form.idNumber && this.form.idNumber.userName && this.form.idNumber.sex && this.form.idNumber.birthday && this.form.idNumber.phone) {
// this.visible = true;
// let formList = [];
// if(this.form.nationality){
// formList.push({
// "emptyOne": "",
// "emptyTwo": "",
// "operationIds": "0,5,25,33,45",
// "type": ""
// })
// }
// if(this.form.mailbox){
// formList.push({
// "emptyOne": "",
// "emptyTwo": "",
// "operationIds": "0,5,25,33,46",
// "type": ""
// })
// }
// formList.push(
// {"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,40", "type": ""},
// {"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,41,13", "type": ""},
// {"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,42", "type": ""},
// {"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,44", "type": ""},
// {"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,47", "type": ""}
// );
// sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
// }else{
// this.$message.error('~');
// }
}, },
popSure(){ popSure(){
this.success&&(this.visible = false) this.success&&(this.visible = false)
@ -199,7 +241,14 @@ export default {
} }
} }
}, },
phoneListen: phoneListen,
mailBoxListen: mailBoxListen
} }
// watch: {
// 'form.phone'(newVal) {
// if(newVal)
// }
// }
}; };
</script> </script>

@ -10,44 +10,44 @@
<el-form ref="form" :model="form" label-width="140px"> <el-form ref="form" :model="form" label-width="140px">
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="证件类型"> <el-form-item label="证件类型">
<el-select v-model="form.x" placeholder="请选择"> <el-select v-model="form.documentType" 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="公司名称" required> <el-form-item label="公司名称" required>
<el-input v-model="form.name"></el-input> <el-input v-model="form.companyName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="注册资本"> <el-form-item label="注册资本">
<el-input v-model="form.name"></el-input> <el-input v-model="form.registeredCapital"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="法人证件号码" required> <el-form-item label="法人证件号码" required>
<div class="idCard" @click="popUp"> <div class="idCard" @click="popUp">
<p>请刷身份证</p> <p>请刷身份证</p>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="联系电话" required> <el-form-item label="联系电话" :rules="rules.phone" prop="phone" required>
<el-input v-model="form.name"></el-input> <el-input :value="form.phone" @input="(val) => phoneListen(val, form, 'phone')" maxlength="12"></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="代码证号" required> <el-form-item label="代码证号" required>
<el-input v-model="form.name"></el-input> <el-input v-model="form.codeNumber"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="公司地址"> <el-form-item label="公司地址">
<el-input v-model="form.name"></el-input> <el-input v-model="form.companyAddress"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="法人证件类型" required> <el-form-item label="法人证件类型" required>
<el-select v-model="form.x" placeholder="请选择"> <el-select v-model="form.certificateType" 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="法人姓名"> <el-form-item label="法人姓名" prop="name" :rules="rules.name">
<el-input v-model="form.name"></el-input> <el-input v-model="form.name"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-form> </el-form>
</div> </div>
<el-button @click="visible=true" type="primary" class="submitBtn">提交</el-button> <el-button @click="submitForm" type="primary" class="submitBtn">提交</el-button>
<el-dialog <el-dialog
style="margin-top:10vh" style="margin-top:10vh"
@ -88,6 +88,8 @@
<script> <script>
import { mapState } from 'vuex' import { mapState } from 'vuex'
import { EventBus } from "@/utils/event-bus.js"; import { EventBus } from "@/utils/event-bus.js";
import { vername, vermob } from '@/utils/verify.js'
import { phoneListen, checkRequired } from '@/utils/utilFunction.js'
export default { export default {
name: 'index', name: 'index',
@ -97,7 +99,18 @@ export default {
authorization:false,// authorization:false,//
success:false,// success:false,//
form:{ form:{
name: '',
phone: '',
documentType: '',
companyName: '',
registeredCapital: '',
codeNumber: '',
companyAddress: '',
certificateType: ''
},
rules: {
phone: vermob,
name: vername
}, },
visible:false, visible:false,
@ -117,7 +130,23 @@ export default {
popSure(){ popSure(){
}, },
submitForm() {
const requiredFields = {
name: '法人姓名',
phone: '联系电话',
companyName: '公司名称',
codeNumber: '代码证号',
certificateType: '法人证件类型'
}
if(checkRequired(this.form, requiredFields)) {
this.$message({
showClose: true,
message: '必填项都填了',
type: 'success'
});
}
},
phoneListen: phoneListen
} }
}; };
</script> </script>

@ -68,6 +68,7 @@ export default{
let ruleReqs = sessionStorage.getItem('ruleReqs') let ruleReqs = sessionStorage.getItem('ruleReqs')
let formList = JSON.parse(ruleReqs); let formList = JSON.parse(ruleReqs);
if(this.form.userName && this.form.goldLogo && this.form.annualInterest){ if(this.form.userName && this.form.goldLogo && this.form.annualInterest){
this.$emit("setDepositFinish");
if (this.form.currency){formList.push({"emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "26,57,63,80","type": "3"})}// if (this.form.currency){formList.push({"emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "26,57,63,80","type": "3"})}//
if (this.form.money){formList.push({"emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "26,57,63,82", "type": "3"})}// if (this.form.money){formList.push({"emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "26,57,63,82", "type": "3"})}//
if (this.form.remark){formList.push({"emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "26,57,63,84", "type": "3"})}// if (this.form.remark){formList.push({"emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "26,57,63,84", "type": "3"})}//

@ -22,9 +22,9 @@
<!-- 开户 --> <!-- 开户 -->
<open-account v-if="activeIndex==='1'"></open-account> <open-account v-if="activeIndex==='1'"></open-account>
<!-- 存款 --> <!-- 存款 -->
<deposit v-if="activeIndex==='2'"></deposit> <deposit v-if="activeIndex==='2'" @setDepositFinish="setDepositFinish"></deposit>
<!-- 取款 --> <!-- 取款 -->
<withdrawal v-if="activeIndex==='3'"></withdrawal> <withdrawal v-if="activeIndex==='3'" :depositFinish="depositFinish"></withdrawal>
<!-- 转账 --> <!-- 转账 -->
<transferAccounts v-if="activeIndex==='4'"></transferAccounts> <transferAccounts v-if="activeIndex==='4'"></transferAccounts>
<!-- 结清 --> <!-- 结清 -->
@ -77,6 +77,8 @@ export default {
data() { data() {
return { return {
text:'',/* 顶部文字 */ text:'',/* 顶部文字 */
//
depositFinish: false,
textObj:{ textObj:{
'1':'开户', '1':'开户',
'2':'存款', '2':'存款',
@ -109,7 +111,9 @@ export default {
this.text = this.textObj[val] this.text = this.textObj[val]
this.activeIndex = val this.activeIndex = val
}, },
setDepositFinish() {
this.depositFinish = true;
}
} }
}; };

@ -9,7 +9,7 @@
</el-form-item> </el-form-item>
<el-form-item label="币种" required > <el-form-item label="币种" required >
<el-select v-model="form.currency" @focus="getSubjectInfoData('8')" placeholder="请选择"> <el-select v-model="form.currency" @focus="getSubjectInfoData('8')" placeholder="请选择">
<el-option v-for="item in currencySelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in currencySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -19,7 +19,7 @@
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" required> <el-form-item label="钞汇标识" required>
<el-select v-model="form.goldLogo" @focus="getSubjectInfoData('9')" placeholder="请选择"> <el-select v-model="form.goldLogo" @focus="getSubjectInfoData('9')" placeholder="请选择">
<el-option v-for="item in goldLogoSelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in goldLogoSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -31,24 +31,24 @@
<el-col :span="10" :offset="2"> <el-col :span="10" :offset="2">
<el-form-item label="账户性质"> <el-form-item label="账户性质">
<el-select v-model="form.accountQuality" @focus="getSubjectInfoData('10')" placeholder="请选择"> <el-select v-model="form.accountQuality" @focus="getSubjectInfoData('10')" placeholder="请选择">
<el-option v-for="item in accountQualitySelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in accountQualitySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="账户类型" required> <el-form-item label="账户类型" required>
<el-select v-model="form.accountType" @focus="getSubjectInfoData('12')" placeholder="请选择"> <el-select v-model="form.accountType" @focus="getSubjectInfoData('12')" placeholder="请选择">
<el-option v-for="item in accountTypeSelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in accountTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="支取方式" required> <el-form-item label="支取方式" required>
<el-select v-model="form.drawWay" @focus="getSubjectInfoData('13')" placeholder="请选择"> <el-select v-model="form.drawWay" @focus="getSubjectInfoData('13')" placeholder="请选择">
<el-option v-for="item in drawWaySelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in drawWaySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</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="凭证类型" required> <el-form-item label="凭证类型" required>
<el-select v-model="form.voucherType" @focus="getSubjectInfoData('11')" placeholder="请选择"> <el-select v-model="form.voucherType" @focus="getSubjectInfoData('11')" placeholder="请选择">
<el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="凭证号码" required> <el-form-item label="凭证号码" required>
@ -73,24 +73,24 @@
<el-col :span="10" :offset="2"> <el-col :span="10" :offset="2">
<el-form-item label="账户性质"> <el-form-item label="账户性质">
<el-select v-model="form.accountQualitysTwo" @focus="getSubjectInfoData('10')" placeholder="请选择"> <el-select v-model="form.accountQualitysTwo" @focus="getSubjectInfoData('10')" placeholder="请选择">
<el-option v-for="item in accountQualitySelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in accountQualitySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="账户类型" required> <el-form-item label="账户类型" required>
<el-select v-model="form.accountTypesTwo" @focus="getSubjectInfoData('12')" placeholder="请选择"> <el-select v-model="form.accountTypesTwo" @focus="getSubjectInfoData('12')" placeholder="请选择">
<el-option v-for="item in accountTypeSelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in accountTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="支取方式" required> <el-form-item label="支取方式" required>
<el-select v-model="form.drawWaysTwo" @focus="getSubjectInfoData('13')" placeholder="请选择"> <el-select v-model="form.drawWaysTwo" @focus="getSubjectInfoData('13')" placeholder="请选择">
<el-option v-for="item in drawWaySelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in drawWaySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</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="凭证类型" required> <el-form-item label="凭证类型" required>
<el-select v-model="form.voucherTypesTwo" @focus="getSubjectInfoData('11')" placeholder="请选择"> <el-select v-model="form.voucherTypesTwo" @focus="getSubjectInfoData('11')" placeholder="请选择">
<el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="凭证号码" required> <el-form-item label="凭证号码" required>
@ -114,24 +114,24 @@
<el-col :span="10" :offset="2"> <el-col :span="10" :offset="2">
<el-form-item label="账户性质"> <el-form-item label="账户性质">
<el-select v-model="form.accountQualitysThree" @focus="getSubjectInfoData('10')" placeholder="请选择"> <el-select v-model="form.accountQualitysThree" @focus="getSubjectInfoData('10')" placeholder="请选择">
<el-option v-for="item in accountQualitySelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in accountQualitySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="账户类型" required> <el-form-item label="账户类型" required>
<el-select v-model="form.accountTypesThree" @focus="getSubjectInfoData('12')" placeholder="请选择"> <el-select v-model="form.accountTypesThree" @focus="getSubjectInfoData('12')" placeholder="请选择">
<el-option v-for="item in accountTypeSelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in accountTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="支取方式" required> <el-form-item label="支取方式" required>
<el-select v-model="form.drawWaysThree" @focus="getSubjectInfoData('13')" placeholder="请选择"> <el-select v-model="form.drawWaysThree" @focus="getSubjectInfoData('13')" placeholder="请选择">
<el-option v-for="item in drawWaySelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in drawWaySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</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="凭证类型" @focus="getSubjectInfoData('11')" required> <el-form-item label="凭证类型" @focus="getSubjectInfoData('11')" required>
<el-select v-model="form.voucherTypesThree" placeholder="请选择"> <el-select v-model="form.voucherTypesThree" placeholder="请选择">
<el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.itemId"> </el-option> <el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="凭证号码" required> <el-form-item label="凭证号码" required>

@ -2,7 +2,7 @@
<template> <template>
<div class="body"> <div class="body">
<el-row :gutter="20" style="margin: 0"> <el-row :gutter="20" style="margin: 0">
<el-form ref="form" :model="form" label-width="120px"> <el-form ref="form" :model="form" label-width="120px" @click.native="depositFinishJudge">
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="卡号" required> <el-form-item label="卡号" required>
<div class="idCard" @click="popUp('刷卡器')"> <div class="idCard" @click="popUp('刷卡器')">
@ -54,7 +54,9 @@
<script> <script>
export default{ export default{
name:'', name:'',
props:{}, props:{
depositFinish: Boolean
},
data(){ data(){
return{ return{
form:{ form:{
@ -73,6 +75,13 @@ export default{
}, },
methods: { methods: {
// //
depositFinishJudge() {
if(!this.depositFinish) {
this.$alert('请根据案例内容,操作存款业务', '提示', {
confirmButtonText: '确定'
});
}
},
submitForm(){ submitForm(){
let ruleReqs = sessionStorage.getItem('ruleReqs') let ruleReqs = sessionStorage.getItem('ruleReqs')
let formList = JSON.parse(ruleReqs); let formList = JSON.parse(ruleReqs);

@ -2,11 +2,9 @@
<template> <template>
<div class="changePassword"> <div class="changePassword">
<div class="title"> <div class="title">
<p>重空现金</p> <p>账户服务</p>
<i class="el-icon-arrow-right"></i> <i class="el-icon-arrow-right"></i>
<p>支票管理</p> <p>密码修改</p>
<i class="el-icon-arrow-right"></i>
<p>支票出售</p>
</div> </div>
<div class="body"> <div class="body">
<el-row :gutter="20" style="margin: 0"> <el-row :gutter="20" style="margin: 0">

@ -0,0 +1,29 @@
import { MessageBox } from 'element-ui';
const phoneListen = function(val, form, prop) {
if(/^[0-9]*$/.test(val)) {
form[prop] = val;
}
}
const mailBoxListen = function(val, form, prop) {
if(/^[\u4E00-\u9FA5A-Za-z0-9_]+$/.test(val) || val==='') {
form[prop] = val;
}
}
const checkRequired = function(form, obj) {
for(const prop in obj) {
if(form[prop] === '') {
MessageBox.alert('请填写' + obj[prop], '提示', {
type: 'info',
confirmButtonText: '确定'
});
return false
}
}
return true;
}
export {
phoneListen,
mailBoxListen,
checkRequired
}

@ -1,63 +0,0 @@
const verification = {
vernull: function(value){//非空校验
if(value.trim(value).length == 0){
return false;
}else{
return true;
}
},
veridc: function(value){ //身份证校验
var ext = /(^\d{15}&)|(^\d{18})|(^\d{17}(\d|X|x)$)/;
if(ext.test(value)) {
return '身份证校验有误'
}
},
veren: function(value){ //英文校验
var ext = /(^[a-zA-Z]+$)/;
if(ext.test(value)) {
return '英文校验有误'
}
},
vernum: function(value){ //数字校验
var ext = /^[0-9]*$/;
if(ext.test(value)) {
return '请输入数字'
}else {
return ''
}
},
verdou: function(value){ //小数校验
var ext = /^[0-9]+(.[0-9]{1,3})?$/;
if(ext.test(value)) {
return ''
}else {
return ''
}
},
vermail: function(value){ //邮箱校验
var ext = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/;
if(ext.test(value)) {
return '请输入正确的邮箱'
}else {
return ''
}
},
vermob: function(value){ //手机号校验
var ext = /^1[3456789][0-9]{9}$/;
if(ext.test(value)) {
return '请输入正确的手机号'
}else {
return ''
}
},
vername: function(name) { // 名字校验
var ext =/^[\u4e00-\u9fa5]{2,4}$/;
if(!ext.test(name)){
return '请检查名字是否有误';
}else {
return ''
}
}
}
export default verification

@ -0,0 +1,37 @@
const veridc = /(^\d{15}&)|(^\d{18})|(^\d{17}(\d|X|x)$)/
const veren = /(^[a-zA-Z]+$)/
const vernum = /^[0-9]*$/
const verdou = /^[0-9]+(.[0-9]{1,3})?$/
const vermail = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/
const vermob = [
{
pattern: /^1[3456789][0-9]{9}$/,
message: '请输入正确的手机号',
trigger: 'blur'
}, {
message: '请输入12位以下数字',
max: 11
}
]
const vername = [
{
required: true,
message: '请输入姓名',
trigger: 'blur'
},
{
// pattern: /^[\u4e00-\u9fa5]{2,4}$/,
pattern: /^(?:[\u4e00-\u9fa5]+)(?:●[\u4e00-\u9fa5]+)*$|^[a-zA-Z0-9]+\s?[\.·\-()a-zA-Z]*[a-zA-Z]+$/,
message: '请输入正确的姓名'
}
]
export {
veridc,
veren,
vernum,
verdou,
vermail,
vermob,
vername
}
Loading…
Cancel
Save