20240205
luoJunYong.123 3 years ago
parent a7305e9b96
commit 9deace50e9
  1. 24
      src/components/dialog/index.vue
  2. 169
      src/components/dialog2/index.vue
  3. 43
      src/pages/manage/list/ImportantCash/controlCash/cashOut.vue
  4. 8
      src/pages/manage/list/ImportantCash/controlCash/cashPaid.vue
  5. 8
      src/pages/manage/list/ImportantCash/controlCash/cashRecipients.vue
  6. 17
      src/pages/manage/list/ImportantCash/controlCash/index.vue
  7. 307
      src/pages/manage/list/ImportantCash/controlCash2/cashOut.vue
  8. 158
      src/pages/manage/list/ImportantCash/controlCash2/cashPaid.vue
  9. 152
      src/pages/manage/list/ImportantCash/controlCash2/cashRecipients.vue
  10. 277
      src/pages/manage/list/ImportantCash/controlCash2/cashTransferInto.vue
  11. 16
      src/pages/manage/list/ImportantCash/controlCash2/index.vue
  12. 51
      src/pages/manage/list/client/consumerClient.vue
  13. 55
      src/pages/manage/list/personal/callDeposits/accountClosed.vue
  14. 8
      src/pages/manage/list/personal/currentAccount/deposit.vue
  15. 36
      src/pages/manage/list/personal/currentAccount/openAccount.vue
  16. 6
      src/pages/manage/list/personal/currentAccount/transferAccounts.vue
  17. 22
      src/pages/manage/list/personal/currentAccount/withdrawal.vue
  18. 20
      src/store/modules/system.js
  19. 60
      src/utils/utilFunction.js

@ -14,6 +14,9 @@
<div class="popBody" v-if="flow === 1"> <div class="popBody" v-if="flow === 1">
<h2>本业务需要授权</h2> <h2>本业务需要授权</h2>
</div> </div>
<div class="popBody" v-else-if="flow === 4">
<h2>提交后将不可更改您确认提交吗</h2>
</div>
<div class="popBody" v-else-if="flow === 2"> <div class="popBody" v-else-if="flow === 2">
<el-form ref="form2" :model="disForm" label-width="80px"> <el-form ref="form2" :model="disForm" label-width="80px">
<el-form-item label="授权柜员"> <el-form-item label="授权柜员">
@ -40,7 +43,7 @@
</el-form> </el-form>
</el-row> </el-row>
</div> </div>
<div class="popBtns" v-if="flow === 1 || flow === 2"> <div class="popBtns" v-if="flow === 1 || flow === 2 || flow === 4">
<el-button class="close btn" @click="cancelIt"> </el-button> <el-button class="close btn" @click="cancelIt"> </el-button>
<el-button class="sure btn" type="primary" @click="sureIt"> </el-button> <el-button class="sure btn" type="primary" @click="sureIt"> </el-button>
</div> </div>
@ -72,7 +75,7 @@ export default {
}, },
created() { created() {
if(!this.needAuth) { if(!this.needAuth) {
this.flow = 3 this.flow = 4
} }
let num = 0; let num = 0;
for(const key in this.showForm) { for(const key in this.showForm) {
@ -86,7 +89,20 @@ export default {
} }
num++; num++;
} }
this.leftObj['流水号'] = '2333333333333' // A1000000019
// 9
// 6使7使
//
const tmpFunc2 = () => {
const $chars2 = '1234567890'
const maxPos = $chars2.length;
let str = '';
for (let i = 0; i < 9; i++) {
str += $chars2.charAt(Math.floor(Math.random() * maxPos));
}
return str;
}
this.leftObj['流水号'] = tmpFunc2()
this.leftObj['经办机构'] = '国税支行营业部' this.leftObj['经办机构'] = '国税支行营业部'
this.rightObj['经办柜员'] = '002110' this.rightObj['经办柜员'] = '002110'
const tmpFunc = () => { const tmpFunc = () => {
@ -122,6 +138,8 @@ export default {
this.flow = 2 this.flow = 2
}else if(this.flow === 2) { }else if(this.flow === 2) {
this.flow = 3 this.flow = 3
}else if(this.flow === 4) {
this.flow = 3
}else { }else {
// //
// //

@ -0,0 +1,169 @@
<template>
<el-dialog
style="margin-top:0vh"
:visible="visible"
width="55%"
append-to-body
:close-on-click-modal="true"
:show-close="false"
custom-class="data-dia">
<div slot="title" class="dia-header">
<div class="data-title" v-if="flow === 1 || flow === 2">提交</div>
<div class="data-title" v-else>提交成功</div>
</div>
<div class="popBody" v-if="flow === 1">
<h2>本业务需要授权</h2>
</div>
<div class="popBody" v-else-if="flow === 2">
<el-form ref="form2" :model="disForm" label-width="80px">
<el-form-item label="授权柜员">
<el-input disabled v-model="disForm.name"></el-input>
</el-form-item>
<el-form-item label="授权柜员">
<el-input type="password" disabled v-model="disForm.pass"></el-input>
</el-form-item>
</el-form>
</div>
<div class="popBody" v-else>
<el-row :gutter="20">
<el-form label-width="100px">
<el-col :span="10" :offset="1">
<el-form-item v-for="(val, key) in leftObj" :key="key" :label="key + ':'">
<div>{{ val }}</div>
</el-form-item>
</el-col>
<el-col :span="10" :offset="1">
<el-form-item v-for="(val, key) in rightObj" :key="key" :label="key + ':'">
<div>{{ val }}</div>
</el-form-item>
</el-col>
</el-form>
</el-row>
</div>
<div class="popBtns" v-if="flow === 1 || flow === 2">
<el-button class="close btn" @click="cancelIt"> </el-button>
<el-button class="sure btn" type="primary" @click="sureIt"> </el-button>
</div>
<div class="myPopBtns" v-else>
<el-button class="sure btn" type="primary" @click="sureIt"> </el-button>
</div>
</el-dialog>
</template>
<script>
export default {
props: {
visible: {
type: Boolean,
default: false
},
showForm: {
type: Object,
default: () => ({})
},
formName: {
type: Object,
default: () => ({})
},
needAuth: {
type: Boolean,
default: true
}
},
created() {
if(!this.needAuth) {
this.flow = 3
}
let num = 0;
for(const key in this.showForm) {
if(!this.showForm[key]) {
continue;
}
if(num%2 === 0) {
this.leftObj[this.formName[key]] = this.showForm[key]
}else {
this.rightObj[this.formName[key]] = this.showForm[key]
}
num++;
}
this.leftObj['上缴柜员号'] = '002119'
this.leftObj['接收柜员号'] = '002110'
this.rightObj['机构号'] = '1234100'
const tmpFunc = () => {
const date = new Date()
var y = date.getFullYear();
var m = date.getMonth() + 1;
m = m < 10 ? '0' + m : m;
var d = date.getDate();
d = d < 10 ? ('0' + d) : d;
return y + '-' + m + '-' + d;
}
this.rightObj['调入日期'] = tmpFunc()
// 002110
},
data() {
return {
flow: 1,
disForm:{
name:'002009',
pass:'123456'
},
leftObj: {},
rightObj: {}
}
},
methods: {
cancel() {
this.visible = false;
},
sureIt() {
if(this.flow === 1) {
this.flow = 2
}else if(this.flow === 2) {
this.flow = 3
}else {
//
//
this.$emit('submitIt')
this.cancelIt()
}
},
cancelIt() {
this.$emit('update:visible', false) // :visible.sync="visible"
}
},
computed: {
showItem() {
return (val, key) => {
return key + ': ' + val
}
}
}
}
</script>
<style lang="scss" scoped>
/deep/ .el-row {
width: 100%;
}
/deep/.popbody {
width: 100vw!important;
}
.myPopBtns {
display: flex;
justify-content: center;
align-items: center;
& > .btn {
width: 180px;
border-radius: 10px;
font-size: 18px;
}
}
// /deep/.el-dialog {
// min-height: 50vh;
// }
</style>

@ -1,27 +1,22 @@
// //
<template> <template>
<div class="body" v-if="!isNeedBefore"> <div class="body" v-if="!isNeedBefore">
<el-form ref="form" :model="form" label-width="120px"> <el-form ref="form" :model="form" label-width="120px" :rules="rules">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="7"> <el-col :span="10">
<el-form-item label="币种"> <el-form-item label="币种">
<el-select v-model="form.identification" placeholder="请选择"> <el-select v-model="form.identification" placeholder="请选择">
<el-option label="CNY人民币" value="CNY人民币"> </el-option> <el-option label="CNY人民币" value="CNY人民币"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="7"> <el-col :span="10">
<el-form-item label="状态"> <el-form-item label="状态">
<el-select v-model="form.state" placeholder="请选择"> <el-select v-model="form.state" placeholder="请选择">
<el-option label="正常" value="正常"> </el-option> <el-option label="正常" value="正常"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="7">
<el-form-item label="总金额">
<el-input :value="allSum" placeholder="等待点数量" />
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12"> <el-col :span="12">
@ -117,6 +112,18 @@
</el-table> </el-table>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20">
<el-col :span="10">
<el-form-item label="总金额">
<el-input :value="allSum" placeholder="等待点数量" />
</el-form-item>
</el-col>
<el-col :span="10">
<el-form-item label="接收柜员" prop="receiveCounter">
<el-input :value="form.receiveCounter" ref='receiveCounter' maxlength="20" @input="(val) => checkName(val, form, 'receiveCounter')"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-button @click="submitClick" type="primary" class="submitBtn">提交</el-button> <el-button @click="submitClick" type="primary" class="submitBtn">提交</el-button>
</el-form> </el-form>
<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" />
@ -126,6 +133,7 @@
<script> <script>
import { tableRowClassName, headerCellStyle, cellStyle } from '@/assets/js/myConfig' import { tableRowClassName, headerCellStyle, cellStyle } from '@/assets/js/myConfig'
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2 } from '@/utils/utilFunction.js'
const moduleName = 'controlCash/cashOut' const moduleName = 'controlCash/cashOut'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
@ -150,11 +158,20 @@ export default {
identification: 'CNY人民币', identification: 'CNY人民币',
state: '正常', state: '正常',
moneyTotal: 0, moneyTotal: 0,
receiveCounter: '',
}, },
formName:{ formName:{
identification: '币种', identification: '币种',
state: '状态', state: '状态',
moneyTotal: '总金额', moneyTotal: '总金额',
receiveCounter: '接收柜员',
},
rules: {
receiveCounter: {
required: true,
message: '请填写接收柜员',
trigger: 'blur'
},
}, },
tableData: [ tableData: [
{ {
@ -261,19 +278,19 @@ export default {
row.moneyNumber = Number(val.replace(/\D+/, '')) row.moneyNumber = Number(val.replace(/\D+/, ''))
}, },
submitClick() { submitClick() {
this.visible = true this.$refs.form.validate(myValidate(() => {
this.visible = true
}, this.$refs));
}, },
submitForm2() {}, submitForm2() {},
tableRowClassName: tableRowClassName tableRowClassName: tableRowClassName,
checkName
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss'; @import '@/assets/css/tablebg.scss';
.body {
overflow: auto;
}
.wrap{ .wrap{
width: 100%; width: 100%;
// padding: 24px 0 24px 24px; // padding: 24px 0 24px 24px;

@ -13,7 +13,7 @@
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.issueDate | dateRule }} {{ getNowDate() }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -67,6 +67,7 @@
<script> <script>
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig' import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
import { getNowDate } from '@/utils/utilFunction'
const moduleName = 'controlCash/cashPaid' const moduleName = 'controlCash/cashPaid'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
@ -96,7 +97,7 @@ export default {
}, },
tableData: [ tableData: [
{ {
issueDate: new Date, // issueDate: new Date,
organizationNumber: '1234100', organizationNumber: '1234100',
calloutNumber: '002118', calloutNumber: '002118',
foldNumber: '002110', foldNumber: '002110',
@ -148,7 +149,8 @@ export default {
}, },
submitClick() { submitClick() {
this.visible = true this.visible = true
} },
getNowDate
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({

@ -12,7 +12,7 @@
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.issueDate | dateRule }} {{ getNowDate() }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -69,6 +69,7 @@
<script> <script>
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig' import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
import { getNowDate } from '@/utils/utilFunction'
import MyDialog from '@/components/dialog' import MyDialog from '@/components/dialog'
import NeedBefore from '@/components/needBefore' import NeedBefore from '@/components/needBefore'
@ -98,7 +99,7 @@ export default {
}, },
tableData: [ tableData: [
{ {
issueDate: new Date(), // issueDate: new Date(),
organizationNumber: '1234100', organizationNumber: '1234100',
issueTeller: '002119', issueTeller: '002119',
receiveTeller: '002110', receiveTeller: '002110',
@ -153,7 +154,8 @@ export default {
submitForm2() { submitForm2() {
// //
}, },
tableRowClassName: tableRowClassName tableRowClassName: tableRowClassName,
getNowDate
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({

@ -81,13 +81,6 @@ export default {
} }
}, },
created() {
if(sessionStorage.getItem('importantCashIndex')) {
this.handleSelect(sessionStorage.getItem('importantCashIndex'))
}else {
this.handleSelect('1')
}
},
methods: { methods: {
handleSelect(val){ handleSelect(val){
this.text = this.textObj[val] this.text = this.textObj[val]
@ -95,6 +88,13 @@ export default {
this.cacheVal = val this.cacheVal = val
}, },
}, },
created() {
if(sessionStorage.getItem('importantCashIndex')) {
this.handleSelect(sessionStorage.getItem('importantCashIndex'))
}else {
this.handleSelect('1')
}
},
destroyed() { destroyed() {
sessionStorage.setItem('importantCashIndex', this.cacheVal) sessionStorage.setItem('importantCashIndex', this.cacheVal)
} }
@ -135,7 +135,8 @@ export default {
} }
.body{ .body{
margin-top: 50px; margin-top: 50px;
overflow: auto; overflow-y: auto;
overflow-x: hidden;
.idCard{ .idCard{
border-radius: 5px; border-radius: 5px;
background: #CFDDFF; background: #CFDDFF;

@ -1,131 +1,122 @@
//
<template> <template>
<div class="body"> <div class="body" v-if="!isNeedBefore">
<el-table <el-row :gutter="20">
ref="filterTable" <el-form ref="form" :model="form" label-width="140px" class="heightLint" :rules="rules">
:data="tableData" <el-col :span="10" :offset="1">
height="450" <el-form-item label="凭证类型" prop="voucherType">
:row-class-name="tableRowClassName" <el-select v-model="form.voucherType" placeholder="请选择" ref="voucherType">
:header-cell-style="headerCellStyle" <el-option
style="width: 95%"> label="IC卡"
<el-table-column value="IC卡">
prop="t1" </el-option>
label="调出日期" <el-option
align="center" label="存折"
> value="存折">
</el-table-column> </el-option>
<el-table-column <el-option
prop="t2" label="存单"
label="机构号" value="存单">
align="center" </el-option>
> <el-option
</el-table-column> label="现金支票"
<el-table-column value="现金支票">
prop="t3" </el-option>
label="接收柜员号" <el-option
class="blueText" label="转账支票"
align="center" value="转账支票">
> </el-option>
</el-table-column> </el-select>
<el-table-column </el-form-item>
prop="t4" <el-form-item label="起始号码" prop="startNumber">
label="凭证类型" <el-input :value="form.startNumber" @input="(val) => inputListen2(val, form, 'startNumber')" maxlength="20" ref='startNumber'></el-input>
align="center" </el-form-item>
> <el-form-item label="数量">
</el-table-column> <el-input :value="form.number" disabled ref='number'></el-input>
<el-table-column </el-form-item>
prop="t5"
label="起始号" </el-col>
align="center" <el-col :span="10" :offset="1">
> <el-form-item label="接收柜员" prop="receiveCounter">
</el-table-column> <el-input :value="form.receiveCounter" @input="(val) => checkName(val, form, 'receiveCounter')" maxlength="20" ref='receiveCounter'></el-input>
<el-table-column </el-form-item>
prop="t6" <el-form-item label="结束号码" prop="endNumber">
label="结束号" <el-input @focus="getFocus" @blur="getBlur" :value="form.endNumber" @input="(val) => inputListen2(val, form, 'endNumber')" maxlength="20" ref='endNumber'></el-input>
align="center" </el-form-item>
> </el-col>
</el-table-column> </el-form>
<el-table-column </el-row>
prop="t7" <el-button @click="submitClick" type="primary" class="submitBtn">提交</el-button>
label="数量" <my-dialog2 v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" />
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" type='text'>确认</el-button>
<el-button @click="back(scope.row)" size="small" type='text'>退回</el-button>
</template>
</el-table-column>
</el-table>
</div> </div>
<need-before v-else :moduleName='needBefore' :unNeed="unNeed" />
</template> </template>
<script> <script>
import { headerCellStyle, tableRowClassName } from '@/assets/js/myConfig.js' import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
const moduleName = 'controlCash2/cashOut'
import { inputListen2, myValidate, checkName } from '@/utils/utilFunction'
import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialog2 from '@/components/dialog2'
export default { export default {
name: 'index', name: 'index',
components:{}, components: {
NeedBefore,
MyDialog2
},
data() { data() {
return { return {
headerCellStyle: headerCellStyle, headerCellStyle: headerCellStyle,
text:'柜员现金轧账',/* 顶部文字 */ text:'柜员现金轧账',/* 顶部文字 */
visible: false,
unNeed: false,
isNeedBefore: '',
needBefore: '',
form:{ form:{
date: '', voucherType: '',
counterNumber: '' receiveCounter: '',
endNumber: '',
startNumber: '',
number: '',
},
formName: {
voucherType: '凭证类型',
receiveCounter: '接收柜员',
startNumber: '起始号码',
endNumber: '结束号码',
number: '数量',
},
rules: {
voucherType: [
{
required: true,
message: '请输入凭证类型',
trigger: 'blur'
},
],
receiveCounter: [
{
required: true,
message: '请输入接收柜员名称',
trigger: 'blur'
},
],
startNumber: [
{
required: true,
message: '请输入起始号码',
trigger: 'blur'
},
],
endNumber: [
{
required: true,
message: '请输入结束号码',
trigger: 'blur'
},
],
}, },
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, visible:false,
} }
}, },
@ -140,22 +131,68 @@ export default {
} }
}, },
created() { created() {
if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') {
}else {
this.isNeedBefore = true
this.needBefore = this.needsModule(moduleName)
}
}else {
this.isNeedBefore = true
this.unNeed = true
}
}, },
methods: { methods: {
sure(row) { submitClick() {
console.log(row) this.$refs.form.validate(myValidate(() => {
if(this.form.number <= 0) {
this.$message({
message: '您的起始号码卡号比结束号码卡号排序更后,请检查一下哈。',
type: 'warning',
center: true
});
return
}
this.visible = true
} , this.$refs));
}, },
back(row) { submitForm2() {
console.log(row)
},
getFocus() {
if(!this.form.startNumber) {
this.$message({
message: '请先输入起始号码',
type: 'warning'
});
this.$refs.startNumber.focus()
}
},
getBlur() {
const number = Number(this.form.endNumber) - Number(this.form.startNumber)
if(number<0 || this.form.endNumber.length<this.form.startNumber.length) {
this.form.number = 0
return
}
this.form.number = number
}, },
tableRowClassName: tableRowClassName tableRowClassName: tableRowClassName,
inputListen2,
checkName
},
computed: {
...mapGetters({
needsModule: 'system/needsModule',
inMyWork: 'system/inMyWork',
})
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss'; @import '@/assets/css/tablebg.scss';
.body { .body {
overflow: auto; overflow: auto;
} }
@ -163,6 +200,9 @@ export default {
width: 100%; width: 100%;
// padding: 24px 0 24px 24px; // padding: 24px 0 24px 24px;
} }
.heightLint {
min-height: 350px;
}
/deep/.el-input input { /deep/.el-input input {
text-align: center; text-align: center;
@ -175,11 +215,24 @@ export default {
/deep/ .blueText{ /deep/ .blueText{
color: blue; color: blue;
} }
/deep/.el-table .warning-row {
background: oldlace;
}
/deep/.el-table .success-row { .submitBtn{
background: #f0f9eb; position: relative;
width: 300px;
font-size: 18px;
height: 45px;
margin-top: 50px;
border-radius: 10px;
bottom: 10px;
left: 50%;
transform: translate(-50%,-20%);
} }
// /deep/.el-table .warning-row {
// // background: oldlace;
// background: rgb(167, 186, 194);
// }
// /deep/.el-table .success-row {
// background: rgb(242,242,242);
// }
</style> </style>

@ -1,136 +1,126 @@
<template> <template>
<div class="body"> <div class="body" v-if="!isNeedBefore">
<el-table <el-table
ref="filterTable" ref="filterTable"
:data="tableData" :data="tableData"
height="450" height="350"
:header-cell-style="headerCellStyle" :header-cell-style="headerCellStyle"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
style="width: 95%"> style="width: 95%">
<el-table-column <el-table-column
prop="t1"
label="调入日期" label="调入日期"
align="center" align="center"
width="120"
> >
<template>
{{ getNowDate() }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="t2" prop="organizationNumber"
label="机构号" label="机构号"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="t3" prop="calloutCounter"
label="调出柜员号" label="调出柜员号"
class="blueText" class="blueText"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="t3" prop="calloutCounter"
label="调入柜员号" label="调入柜员号"
class="blueText" class="blueText"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="t4" prop="voucherType"
label="凭证类型" label="凭证类型"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="t5" prop="startNumber"
label="起始号" label="起始号"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="t6" prop="endNumber"
label="结束号" label="结束号"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="t7" prop="number"
label="数量" label="数量"
align="center" align="center"
> >
<template slot-scope="scope">
{{ count(scope.row.startNumber, scope.row.endNumber) }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
align="center" align="center"
width="180" width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="sure(scope.row)" size="small" type='text'>确认</el-button> <el-button :disabled="form.clickIt1 === '已领用'" @click="sure(scope.row)" size="small" >确认</el-button>
<el-button @click="back(scope.row)" size="small" type='text'>退回</el-button> <el-button :disabled="form.clickIt2 === '已退回'" @click="back(scope.row)" size="small">退回</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-button @click="submitClick" type="primary" class="submitBtn">提交</el-button>
<my-dialog2 v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" />
</div> </div>
<need-before v-else :moduleName='needBefore' :unNeed="unNeed" />
</template> </template>
<script> <script>
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig' import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
import { getNowDate } from '@/utils/utilFunction'
const moduleName = 'controlCash2/cashPaid'
import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialog2 from '@/components/dialog'
export default { export default {
name: 'index', name: 'index',
components:{}, components: {
NeedBefore,
MyDialog2
},
data() { data() {
return { return {
headerCellStyle: headerCellStyle, headerCellStyle: headerCellStyle,
text:'柜员现金轧账',/* 顶部文字 */ text:'柜员现金轧账',/* 顶部文字 */
visible: false,
unNeed: false,
isNeedBefore: '',
needBefore: '',
form:{ form:{
date: '', clickIt1: '未领用', //
counterNumber: '' clickIt2: '未退回',//
},
formName: {
clickIt1: '领用状态',
clickIt2: '退回状态',
}, },
tableData: [ tableData: [
{ {
t1: 1, organizationNumber: '1234100',
t2: 2, calloutCounter: '002119',
t3: 1, // : 002110
t4: 2, voucherType: '银行卡',
t5: 1, startNumber: '10000401',
t6: 2, endNumber: '10000420',
t7: 4 number: 'xx' // endNumber-startNumber
},
{
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, visible:false,
} }
@ -146,16 +136,44 @@ export default {
} }
}, },
created() { created() {
if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') {
}else {
this.isNeedBefore = true
this.needBefore = this.needsModule(moduleName)
}
}else {
this.isNeedBefore = true
this.unNeed = true
}
}, },
methods: { methods: {
sure(row) { sure(row) {
console.log(row) this.form.clickIt1 = '已领用'
}, },
back(row) { back(row) {
console.log(row) this.form.clickIt2 = '已退回'
},
submitClick() {
this.visible = true
}, },
tableRowClassName: tableRowClassName submitForm2() {
//
},
tableRowClassName: tableRowClassName,
getNowDate
},
computed: {
...mapGetters({
needsModule: 'system/needsModule',
inMyWork: 'system/inMyWork',
}),
count() {
return (start, end) => {
return Number(end) - Number(start) + 1
}
}
} }
}; };
</script> </script>
@ -181,4 +199,16 @@ export default {
/deep/ .blueText{ /deep/ .blueText{
color: blue; color: blue;
} }
.submitBtn{
position: relative;
width: 300px;
font-size: 18px;
height: 45px;
margin-top: 50px;
border-radius: 10px;
bottom: 10px;
left: 50%;
transform: translate(-50%,-20%);
}
</style> </style>

@ -1,55 +1,59 @@
// //
<template> <template>
<div class="body"> <div class="body" v-if="!isNeedBefore">
<el-table <el-table
ref="filterTable" ref="filterTable"
:data="tableData" :data="tableData"
height="450" height="350"
:header-cell-style="headerCellStyle" :header-cell-style="headerCellStyle"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
style="width: 95%"> style="width: 95%">
<el-table-column <el-table-column
prop="t1"
label="下发日期" label="下发日期"
align="center" align="center"
> >
<template>
{{ getNowDate() }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="t2" prop="organizationNumber"
label="机构号" label="机构号"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="t3" prop="issueCounter"
label="下发柜员号" label="下发柜员号"
class="blueText" class="blueText"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="t4" prop="voucherType"
label="凭证类型" label="凭证类型"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="t5" prop="startNumber"
label="起始号" label="起始号"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="t6" prop="endNumber"
label="结束号" label="结束号"
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="t7"
label="数量" label="数量"
align="center" align="center"
> >
<template slot-scope="scope">
{{ count(scope.row.startNumber, scope.row.endNumber) }}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
@ -57,73 +61,56 @@
width="180" width="180"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="sure(scope.row)" size="small" type='text'>确认</el-button> <el-button :disabled="form.clickIt1 === '已领用'" @click="sure(scope.row)" size="small" >确认</el-button>
<el-button @click="back(scope.row)" size="small" type='text'>退回</el-button> <el-button :disabled="form.clickIt2 === '已退回'" @click="back(scope.row)" size="small">退回</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-button @click="submitClick" type="primary" class="submitBtn">提交</el-button>
<my-dialog2 v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" />
</div> </div>
<need-before v-else :moduleName='needBefore' :unNeed="unNeed" />
</template> </template>
<script> <script>
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig' import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
import { getNowDate } from '@/utils/utilFunction'
const moduleName = 'controlCash2/cashRecipients'
import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialog2 from '@/components/dialog'
export default { export default {
name: 'index', name: 'index',
components:{}, components: {
NeedBefore,
MyDialog2
},
data() { data() {
return { return {
headerCellStyle: headerCellStyle, headerCellStyle: headerCellStyle,
text:'柜员现金轧账',/* 顶部文字 */ text:'柜员现金轧账',/* 顶部文字 */
visible: false,
unNeed: false,
isNeedBefore: '',
needBefore: '',
form:{ form:{
date: '', clickIt1: '未领用', //
counterNumber: '' clickIt2: '未退回',//
},
formName: {
clickIt1: '领用状态',
clickIt2: '退回状态',
}, },
tableData: [ tableData: [
{ {
t1: 1, organizationNumber: '1234100',
t2: 2, issueCounter: '002119',
t3: 1, // : '002110' ???
t4: 2, voucherType: '银行卡',
t5: 1, startNumber: '10000401',
t6: 2, endNumber: '10000420',
t7: 4 number: 20
},
{
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, visible:false,
@ -140,17 +127,46 @@ export default {
} }
}, },
created() { created() {
if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') {
}else {
this.isNeedBefore = true
this.needBefore = this.needsModule(moduleName)
}
}else {
this.isNeedBefore = true
this.unNeed = true
}
}, },
methods: { methods: {
sure(row) { sure(row) {
console.log(row) this.form.clickIt1 = '已领用'
}, },
back(row) { back(row) {
console.log(row) this.form.clickIt2 = '已退回'
}, },
tableRowClassName: tableRowClassName submitClick() {
this.visible = true
},
submitForm2() {
//
},
tableRowClassName: tableRowClassName,
getNowDate
},
computed: {
...mapGetters({
needsModule: 'system/needsModule',
inMyWork: 'system/inMyWork',
}),
count() {
return (start, end) => {
return Number(end) - Number(start) + 1
}
}
} }
}; };
</script> </script>
@ -175,4 +191,16 @@ export default {
/deep/ .blueText{ /deep/ .blueText{
color: blue; color: blue;
} }
.submitBtn{
position: relative;
width: 300px;
font-size: 18px;
height: 45px;
margin-top: 50px;
border-radius: 10px;
bottom: 10px;
left: 50%;
transform: translate(-50%,-20%);
}
</style> </style>

@ -1,130 +1,109 @@
<template> <template>
<div class="body"> <div class="body" v-if="!isNeedBefore">
<el-table <el-row :gutter="20">
ref="filterTable" <el-form ref="form" :model="form" label-width="140px" class="heightLint" :rules="rules">
:data="tableData" <el-col :span="10" :offset="1">
height="450" <el-form-item label="凭证类型" prop="voucherType">
:row-class-name="tableRowClassName" <el-select v-model="form.voucherType" placeholder="请选择" ref="voucherType">
:header-cell-style="headerCellStyle" <el-option
style="width: 95%"> label="IC卡"
<el-table-column value="IC卡">
prop="t1" </el-option>
label="下发日期" <el-option
align="center" label="存折"
> value="存折">
</el-table-column> </el-option>
<el-table-column <el-option
prop="t2" label="存单"
label="机构号" value="存单">
align="center" </el-option>
> <el-option
</el-table-column> label="现金支票"
<el-table-column value="现金支票">
prop="t3" </el-option>
label="下发柜员号" <el-option
class="blueText" label="转账支票"
align="center" value="转账支票">
> </el-option>
</el-table-column> </el-select>
<el-table-column </el-form-item>
prop="t4" <el-form-item label="结束号码" prop="endNumber">
label="凭证类型" <el-input @focus="getFocus" @blur="getBlur" :value="form.endNumber" @input="(val) => inputListen2(val, form, 'endNumber')" maxlength="20" ref='endNumber'></el-input>
align="center" </el-form-item>
> </el-col>
</el-table-column> <el-col :span="10" :offset="1">
<el-table-column <el-form-item label="起始号码" prop="startNumber">
prop="t5" <el-input :value="form.startNumber" @input="(val) => inputListen2(val, form, 'startNumber')" maxlength="20" ref='startNumber'></el-input>
label="起始号" </el-form-item>
align="center" <el-form-item label="数量">
> <el-input :value="form.number" disabled ref='number'></el-input>
</el-table-column> </el-form-item>
<el-table-column </el-col>
prop="t6" </el-form>
label="结束号" </el-row>
align="center" <el-button @click="submitClick" type="primary" class="submitBtn">提交</el-button>
> <my-dialog2 v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" />
</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" type='text'>确认</el-button>
<el-button @click="back(scope.row)" size="small" type='text'>退回</el-button>
</template>
</el-table-column>
</el-table>
</div> </div>
<need-before v-else :moduleName='needBefore' :unNeed="unNeed" />
</template> </template>
<script> <script>
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig' import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
const moduleName = 'controlCash2/cashTransferInto'
import { inputListen2, myValidate } from '@/utils/utilFunction'
import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialog2 from '@/components/dialog2'
export default { export default {
name: 'index', name: 'index',
components:{}, components: {
NeedBefore,
MyDialog2
},
data() { data() {
return { return {
headerCellStyle: headerCellStyle, headerCellStyle: headerCellStyle,
text:'柜员现金轧账',/* 顶部文字 */ text:'柜员现金轧账',/* 顶部文字 */
visible: false,
unNeed: false,
isNeedBefore: '',
needBefore: '',
form:{ form:{
date: '', voucherType: '',
counterNumber: '' endNumber: '',
startNumber: '',
number: '',
},
formName: {
voucherType: '凭证类型',
endNumber: '结束号码',
startNumber: '起始号码',
number: '数量',
},
rules: {
voucherType: [
{
required: true,
message: '请输入凭证类型',
trigger: 'blur'
},
],
startNumber: [
{
required: true,
message: '请输入起始号码',
trigger: 'blur'
},
],
endNumber: [
{
required: true,
message: '请输入结束号码',
trigger: 'blur'
},
],
}, },
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, visible:false,
} }
}, },
@ -139,16 +118,61 @@ export default {
} }
}, },
created() { created() {
if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') {
}else {
this.isNeedBefore = true
this.needBefore = this.needsModule(moduleName)
}
}else {
this.isNeedBefore = true
this.unNeed = true
}
}, },
methods: { methods: {
sure(row) { submitClick() {
console.log(row) this.$refs.form.validate(myValidate(() => {
if(this.form.number <= 0) {
this.$message({
message: '您的起始号码卡号比结束号码卡号排序更后,请检查一下哈。',
type: 'warning',
center: true
});
return
}
this.visible = true
} , this.$refs));
}, },
back(row) { submitForm2() {
console.log(row)
},
getFocus() {
if(!this.form.startNumber) {
this.$message({
message: '请先输入起始号码',
type: 'warning'
});
this.$refs.startNumber.focus()
}
},
getBlur() {
const number = Number(this.form.endNumber) - Number(this.form.startNumber)
if(number<0 || this.form.endNumber.length<this.form.startNumber.length) {
this.form.number = 0
return
}
this.form.number = number
}, },
tableRowClassName: tableRowClassName tableRowClassName: tableRowClassName,
inputListen2
},
computed: {
...mapGetters({
needsModule: 'system/needsModule',
inMyWork: 'system/inMyWork',
})
} }
}; };
</script> </script>
@ -162,6 +186,9 @@ export default {
width: 100%; width: 100%;
// padding: 24px 0 24px 24px; // padding: 24px 0 24px 24px;
} }
.heightLint {
min-height: 350px;
}
/deep/.el-input input { /deep/.el-input input {
text-align: center; text-align: center;
@ -174,6 +201,18 @@ export default {
/deep/ .blueText{ /deep/ .blueText{
color: blue; color: blue;
} }
.submitBtn{
position: relative;
width: 300px;
font-size: 18px;
height: 45px;
margin-top: 50px;
border-radius: 10px;
bottom: 10px;
left: 50%;
transform: translate(-50%,-20%);
}
// /deep/.el-table .warning-row { // /deep/.el-table .warning-row {
// // background: oldlace; // // background: oldlace;
// background: rgb(167, 186, 194); // background: rgb(167, 186, 194);

@ -62,6 +62,7 @@ export default {
data() { data() {
return { return {
text:'',/* 顶部文字 */ text:'',/* 顶部文字 */
cacheVal: '',
textObj:{ textObj:{
'1':'凭证领用', '1':'凭证领用',
'2':'凭证上缴', '2':'凭证上缴',
@ -83,14 +84,20 @@ export default {
} }
}, },
created() { created() {
this.handleSelect('1') if(sessionStorage.getItem('importantCashIndex2')) {
this.handleSelect(sessionStorage.getItem('importantCashIndex2'))
}else {
this.handleSelect('1')
}
},
destroyed() {
sessionStorage.setItem('importantCashIndex2', this.cacheVal)
}, },
methods: { methods: {
handleSelect(val){ handleSelect(val){
console.log(typeof(val),this.activeIndex,'xuanze');
this.text = this.textObj[val] this.text = this.textObj[val]
this.activeIndex = val this.activeIndex = val
this.cacheVal = val
}, },
@ -132,7 +139,8 @@ export default {
} }
.body{ .body{
margin-top: 50px; margin-top: 50px;
overflow: auto; overflow-x: hidden;
overflow-y: auto;
.idCard{ .idCard{
border-radius: 5px; border-radius: 5px;
background: #CFDDFF; background: #CFDDFF;

@ -7,15 +7,7 @@
<el-form ref="form" :model="form" label-width="140px" :rules="rules"> <el-form ref="form" :model="form" label-width="140px" :rules="rules">
<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.idType" placeholder="请选择" ref="idType"> <el-select v-model="form.idType" disabled placeholder="请选择" ref="idType">
<el-option
v-for="(item,index) in papers"
:key="index"
:label="item.name"
:value="item.id">
</el-option>
</el-select> -->
<el-select v-model="form.idType" placeholder="请选择" ref="idType">
<el-option <el-option
label="身份证" label="身份证"
value="身份证"> value="身份证">
@ -30,9 +22,8 @@
v-model="form.birthday" v-model="form.birthday"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
value-format="yyyy-MM-dd HH:mm" format="yyyy-MM-dd"
format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd">
ref="birthday">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="通讯地址"> <el-form-item label="通讯地址">
@ -59,16 +50,6 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="民族">
<el-select v-model="form.nationality" placeholder="请选择" ref="nationality">
<el-option
v-for="(item,index) in nations"
:key="index"
:label="item.description"
:value="item.itemId">
</el-option>
</el-select>
</el-form-item> -->
<el-form-item label="联系电话" :rules="rules.phone" prop="phone"> <el-form-item label="联系电话" :rules="rules.phone" prop="phone">
<el-input :value="form.phone" @input="(val) => phoneListen(val, form, 'phone')" maxlength="12" ref='phone'></el-input> <el-input :value="form.phone" @input="(val) => phoneListen(val, form, 'phone')" maxlength="12" ref='phone'></el-input>
</el-form-item> </el-form-item>
@ -90,7 +71,7 @@ import { mapState, mapMutations, mapGetters } from 'vuex'
import { vername, vermob } from '@/utils/verify.js' import { vername, vermob } from '@/utils/verify.js'
import { addOperation, getOperation } from '@/api/http'; import { addOperation, getOperation } from '@/api/http';
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { phoneListen, mailBoxListen, checkRequired, myValidate, checkName } from '@/utils/utilFunction.js' import { phoneListen, mailBoxListen, checkRequired, randomPeopleNumber, myValidate, checkName, messageIdCard } from '@/utils/utilFunction.js'
import MyTitle from '@/components/myTitle' import MyTitle from '@/components/myTitle'
import MyDialog from '@/components/dialog' import MyDialog from '@/components/dialog'
@ -111,10 +92,11 @@ export default {
idNumber:'',// idNumber:'',//
userName:'',// userName:'',//
sex:'',// sex:'',//
birthday:'',// birthday:null,//
nationality:'',// nationality:'',//
mailbox:'',// mailbox:'',//
phone:'',// phone:'',//
peopleNumber: '',
}, },
formName: { formName: {
idType: '证件类型', idType: '证件类型',
@ -125,6 +107,7 @@ export default {
nationality:'民族', nationality:'民族',
mailbox:'通讯地址', mailbox:'通讯地址',
phone:'联系电话', phone:'联系电话',
peopleNumber: '客户号'
}, },
rules: { rules: {
userName: vercustomer , userName: vercustomer ,
@ -228,8 +211,6 @@ export default {
created() { created() {
if(this.inMyWork(moduleName)) { if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') { if(this.needsModule(moduleName) === '') {
if(sessionStorage.getItem('nomClientIdentity')) { if(sessionStorage.getItem('nomClientIdentity')) {
this.idNumberJudge = true this.idNumberJudge = true
const { idType, userName, sex, birthday, nationality, mailbox, idNumber } = this.dataFlow const { idType, userName, sex, birthday, nationality, mailbox, idNumber } = this.dataFlow
@ -273,7 +254,9 @@ export default {
for (var i = 0; i < list.length; i++) { for (var i = 0; i < list.length; i++) {
if (list[i].answerId == '40') {this.form.idType = list[i].emptyTwo} if (list[i].answerId == '40') {this.form.idType = list[i].emptyTwo}
// if (list[i].answerId == '41') {sessionStorage.setItem('nomClientIdentity', list[i].emptyTwo)} // if (list[i].answerId == '41') {sessionStorage.setItem('nomClientIdentity', list[i].emptyTwo)}
if (list[i].answerId == '41') { if (list[i].answerId == '41' && list[i].emptyTwo) {
console.log('---')
console.log(list[i].emptyTwo)
this.idNumberJudge = true this.idNumberJudge = true
this.form.idNumber = list[i].emptyTwo this.form.idNumber = list[i].emptyTwo
} }
@ -330,16 +313,14 @@ export default {
let nomClientIdentity = sessionStorage.getItem('nomClientIdentity') let nomClientIdentity = sessionStorage.getItem('nomClientIdentity')
let consumerClientDragList = JSON.parse(nomClientIdentity); let consumerClientDragList = JSON.parse(nomClientIdentity);
let nomClientIdentitys = JSON.parse(nomClientIdentity); let nomClientIdentitys = JSON.parse(nomClientIdentity);
if(!this.form.idNumber) {
messageIdCard()
return
}
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// console.log(this.form.birthday) // this.form.birthday = this.form.birthday.slice(0, 10)
this.form.birthday = this.form.birthday.slice(0, 10) this.form.peopleNumber = randomPeopleNumber()
this.visible = true; this.visible = true;
// if (nomClientIdentitys && nomClientIdentitys.length > 0){
// this.visible = true;
// }else{
// this.$message.error('');
// }
} , this.$refs)); } , this.$refs));
}, },
submitForm2() { submitForm2() {

@ -296,24 +296,6 @@ export default{
created() { created() {
if(this.inMyWork(moduleName)) { if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') { if(this.needsModule(moduleName) === '') {
// idNumber: '', //
// voucherNumber: '', //
// drawPassword: '', //
// depositDate: '',
// noticeType: '1',
// depositNumber: '0816',
// capital: 100,
// interest: 2.8,
// totalMoney: 102.8,
// payType: '',
// payMoney: 102.8,
// idNumber,
// peopleNumber,
// userName,
// currency:'CNY',
// goldLogo:'',
// voucherNumber
console.log('nomCallDepositClosedCard --------------') console.log('nomCallDepositClosedCard --------------')
console.log(sessionStorage.getItem('nomCallDepositClosedCard')) console.log(sessionStorage.getItem('nomCallDepositClosedCard'))
if(sessionStorage.getItem('nomCallDepositClosedCard')) { if(sessionStorage.getItem('nomCallDepositClosedCard')) {
@ -400,25 +382,28 @@ export default{
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
this.visible = true; this.visible = true;
const parentId = this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + '285,287,5,26,38,289'
const nomCallDepositCard = sessionStorage.getItem('nomCallDepositCard')
const nomCallDepositCard2 = sessionStorage.getItem('nomCallDepositCard2')
const nomCallDepositClosedPassword = sessionStorage.getItem('nomCallDepositClosedPassword')
const cards = [
// {
// 302: nomCallDepositCard
// },
// {
// 392: nomCallDepositCard2
// },
// {
// 394: nomCallDepositClosedPassword,
// "subjectId": 17,
// }
]
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
}, this.$refs)); }, this.$refs));
}, },
submitForm2() {
const parentId = this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + '285,287,5,26,38,289'
const nomCallDepositCard = sessionStorage.getItem('nomCallDepositCard')
const nomCallDepositCard2 = sessionStorage.getItem('nomCallDepositCard2')
const nomCallDepositClosedPassword = sessionStorage.getItem('nomCallDepositClosedPassword')
const cards = [
// {
// 302: nomCallDepositCard
// },
// {
// 392: nomCallDepositCard2
// },
// {
// 394: nomCallDepositClosedPassword,
// "subjectId": 17,
// }
]
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
},
ismoney: ismoney, ismoney: ismoney,
checkHanzi: checkHanzi, checkHanzi: checkHanzi,
checkName: checkName checkName: checkName

@ -14,20 +14,20 @@
</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="金额"> <el-form-item label="金额">
<el-input :value="form.money" maxlength="15" @input="val => ismoney(val, form, 'money')" ref="money"></el-input> <el-input :value="form.money" disabled maxlength="15" @input="val => ismoney(val, form, 'money')" ref="money"></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="userName"> <el-form-item label="客户姓名" prop="userName">
<el-input ref="userName" :value="form.userName" maxlength="20" @input="(val) => checkName(val, form, 'userName')"></el-input> <el-input ref="userName" disabled :value="form.userName" maxlength="20" @input="(val) => checkName(val, form, 'userName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="goldLogo"> <el-form-item label="钞汇标识" prop="goldLogo">
<el-select v-model="form.goldLogo" ref="goldLogo" placeholder="请选择"> <el-select v-model="form.goldLogo" disabled ref="goldLogo" placeholder="请选择">
<el-option label="钞户" value="钞户"> </el-option> <el-option label="钞户" value="钞户"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>

@ -25,7 +25,7 @@
</el-select> </el-select>
</el-form-item> --> </el-form-item> -->
<el-form-item label="钞汇标识" prop="goldLogo" disabled> <el-form-item label="钞汇标识" prop="goldLogo" disabled>
<el-select v-model="form.goldLogo" placeholder="请选择" ref="goldLogo"> <el-select v-model="form.goldLogo" disabled placeholder="请选择" ref="goldLogo">
<el-option label="钞户" value="钞户"> </el-option> <el-option label="钞户" value="钞户"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -241,19 +241,19 @@ export default {
userNumber: '', // userNumber: '', //
currency: 'CNY人民币', // currency: 'CNY人民币', //
userName: '', // userName: '', //
goldLogo: '', // goldLogo: '钞户', //
accountQuality: '', // accountQuality: '个人结算户', //
accountType: '', // accountType: '', //
drawWay: '', // drawWay: '', //
voucherType: '', // voucherType: 'IC卡', //
accountQualitysTwo: '', // 2 accountQualitysTwo: '个人结算户', // 2
accountTypesTwo: '', // 2 accountTypesTwo: '', // 2
drawWaysTwo: '', // 2 drawWaysTwo: '', // 2
voucherTypesTwo: '', // 2 voucherTypesTwo: 'IC卡', // 2
accountQualitysThree: '', // 3 accountQualitysThree: '个人结算户', // 3
accountTypesThree: '', // 3 accountTypesThree: '', // 3
drawWaysThree: '', // 3 drawWaysThree: '', // 3
voucherTypesThree: '', // 3 voucherTypesThree: 'IC卡', // 3
}, },
formName:{ formName:{
cardNumber: '卡号', // cardNumber: '卡号', //
@ -409,7 +409,8 @@ export default {
else if (list[i].answerId == '70') {this.form.currency = list[i].emptyTwo} else if (list[i].answerId == '70') {this.form.currency = list[i].emptyTwo}
else if (list[i].answerId == '71') {this.form.goldLogo = list[i].emptyTwo} else if (list[i].answerId == '71') {this.form.goldLogo = list[i].emptyTwo}
else if (list[i].answerId == '72') {this.form.accountQuality = list[i].emptyTwo} else if (list[i].answerId == '72') {this.form.accountQuality = list[i].emptyTwo}
else if (list[i].answerId == '73') {this.form.voucherType = list[i].emptyTwo} // else if (list[i].answerId == '73') {this.form.voucherType = list[i].emptyTwo}
else if (list[i].answerId == '73') {this.form.voucherType = 'IC卡'}
else if (list[i].answerId == '74') {this.form.accountType = list[i].emptyTwo} else if (list[i].answerId == '74') {this.form.accountType = list[i].emptyTwo}
else if (list[i].answerId == '75') { else if (list[i].answerId == '75') {
this.form.cardNumber = list[i].emptyTwo this.form.cardNumber = list[i].emptyTwo
@ -497,17 +498,18 @@ export default {
if (item == '8'){ if (item == '8'){
this.currencySelectList = data.data.items; this.currencySelectList = data.data.items;
}else if (item == '9'){ }else if (item == '9'){
this.goldLogoSelectList = data.data.items; // this.goldLogoSelectList = data.data.items;
this.form.goldLogo = this.goldLogoSelectList[0].itemId // this.form.goldLogo = this.goldLogoSelectList[0].itemId
// ???
this.form.goldLogo = '钞户' this.form.goldLogo = '钞户'
}else if (item == '10'){ }else if (item == '10'){
this.accountQualitySelectList = data.data.items; // this.accountQualitySelectList = data.data.items;
console.log(this.accountQualitySelectList) // console.log(this.accountQualitySelectList)
this.form.accountQuality = this.accountQualitySelectList[0].itemId // this.form.accountQuality = this.accountQualitySelectList[0].itemId
this.form.accountQuality = '个人接算户';
}else if (item == '11'){ }else if (item == '11'){
this.voucherTypeSelectList = data.data.items; // this.voucherTypeSelectList = data.data.items;
this.form.voucherType = this.voucherTypeSelectList[0].itemId // this.form.voucherType = this.voucherTypeSelectList[0].itemId
this.form.voucherType = 'IC卡'
}else if (item == '12'){ }else if (item == '12'){
this.accountTypeSelectList = data.data.items; this.accountTypeSelectList = data.data.items;
}else if (item == '13'){ }else if (item == '13'){

@ -13,7 +13,7 @@
</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>
@ -26,10 +26,10 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="username"> <el-form-item label="客户姓名" prop="username">
<el-input :value="form.userName" @input="(val) => checkName(val, form, 'userName')"></el-input> <el-input :value="form.userName" disabled @input="(val) => checkName(val, form, 'userName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="goldLogo"> <el-form-item label="钞汇标识" prop="goldLogo">
<el-select v-model="form.goldLogo" placeholder="请选择" ref="goldLogo"> <el-select v-model="form.goldLogo" disabled placeholder="请选择" ref="goldLogo">
<el-option label="钞户" value="钞户" ref="goldLogo"> </el-option> <el-option label="钞户" value="钞户" ref="goldLogo"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>

@ -13,12 +13,12 @@
</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="金额"> <el-form-item label="金额" prop="money">
<el-input :value="form.money" @input="val => ismoney(val, form, 'money')"></el-input> <el-input :value="form.money" maxlength="15" @input="val => ismoney(val, form, 'money')"></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('密码器')">
@ -31,21 +31,21 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="userName"> <el-form-item label="客户姓名" prop="userName">
<el-input ref="userName" :value="form.userName" @input="(val) => checkName(val, form, 'userName')"></el-input> <el-input ref="userName" disabled :value="form.userName" @input="(val) => checkName(val, form, 'userName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="goldLogo"> <el-form-item label="钞汇标识" prop="goldLogo">
<el-select v-model="form.goldLogo" placeholder="请选择" ref="goldLogo"> <el-select v-model="form.goldLogo" disabled placeholder="请选择" ref="goldLogo">
<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="chargeWay"> <el-form-item label="支取方式" prop="chargeWay">
<el-select v-model="form.chargeWay" placeholder="请选择" ref="chargeWay"> <el-select v-model="form.chargeWay" disabled placeholder="请选择" ref="chargeWay">
<el-option label="现金" value="现金"> </el-option> <el-option label="现金" value="现金"> </el-option>
<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="serviceCharge"> <el-form-item label="手续费" prop="serviceCharge">
<el-input :value="form.serviceCharge" @input="val => ismoney(val, form, 'serviceCharge')" ref="serviceCharge"></el-input> <el-input :value="form.serviceCharge" disabled @input="val => ismoney(val, form, 'serviceCharge')" ref="serviceCharge"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="21" :offset="1"> <el-col :span="21" :offset="1">
@ -160,6 +160,13 @@ export default{
message: '请输入手续费', message: '请输入手续费',
trigger: 'blur' trigger: 'blur'
} }
],
money: [
{
required: true,
message: '请输入金额',
trigger: 'blur'
}
] ]
} }
} }
@ -205,6 +212,7 @@ export default{
}) })
}, },
submitForm(){ submitForm(){
console.log(this.form.money)
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
this.visible = true; this.visible = true;
}, this.$refs)); }, this.$refs));

@ -1435,6 +1435,10 @@ export default {
importanceArr: [], // 重要空白凭证箱 importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱 commonArr: [], // 普通凭证箱
needsModule: {
'controlCash2/cashRecipients' : false
},
}, },
'项目二十二': { '项目二十二': {
id: 510, id: 510,
@ -1456,9 +1460,13 @@ export default {
importanceArr: [], // 重要空白凭证箱 importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱 commonArr: [], // 普通凭证箱
needsModule: {
'controlCash2/cashTransferInto' : false
},
}, },
'项目二十三': { '项目二十三': {
id: '', id: 511,
data: [ ], // data: [ ], //
needs: [ 438 ], needs: [ 438 ],
isStamp: { isStamp: {
@ -1477,9 +1485,13 @@ export default {
importanceArr: [], // 重要空白凭证箱 importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱 commonArr: [], // 普通凭证箱
needsModule: {
'controlCash2/cashPaid' : false
},
}, },
'项目二十四': { '项目二十四': {
id: '', id: 512,
data: [ ], // data: [ ], //
needs: [ 438 ], needs: [ 438 ],
isStamp: { isStamp: {
@ -1498,6 +1510,10 @@ export default {
importanceArr: [], // 重要空白凭证箱 importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱 commonArr: [], // 普通凭证箱
// 'controlCash2/cashOut'
needsModule: {
'controlCash2/cashOut' : false
},
}, },
'项目二十五': { '项目二十五': {
id: '', id: '',

@ -67,6 +67,23 @@ const inputListen = function(val, row, prop) {
row[prop] = Number(val.replace(/\D+/, '')) row[prop] = Number(val.replace(/\D+/, ''))
} }
const inputListen2 = function(val, row, prop) {
// 检查空格
const tmpCheck = val.substr(val.length-1, 1);
if(tmpCheck === ' ') {
return;
}
// 可以删光
if(val === '') {
row[prop] = val;
return;
}
if(Number(val) || Number(val)===0) {
console.log(val)
row[prop] = val
}
}
const ismoney = function(val, row, prop) { const ismoney = function(val, row, prop) {
// 检查空格 // 检查空格
const tmpCheck = val.substr(val.length-1, 1); const tmpCheck = val.substr(val.length-1, 1);
@ -220,7 +237,44 @@ const autoPlay3 = (name, allName, arr) => { // 要接收的, 所有的, 要
} }
} }
const getNowDate = () => {
const date = new Date()
var y = date.getFullYear();
var m = date.getMonth() + 1;
m = m < 10 ? '0' + m : m;
var d = date.getDate();
d = d < 10 ? ('0' + d) : d;
return y + '-' + m + '-' + d;
}
const messageIdCard = () => {
Message.warning({
center: true,
message: '请刷身份证',
})
}
const messageCard = () => {
Message.warning({
center: true,
message: '请刷银行卡',
})
}
const randomPeopleNumber = () => {
const $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
const $chars2 = '1234567890'
const maxPos = $chars2.length;
let str = '';
str += $chars.charAt(Math.floor(Math.random() * maxPos))
for (let i = 0; i < 9; i++) {
str += $chars2.charAt(Math.floor(Math.random() * maxPos));
}
return str;
}
export { export {
randomPeopleNumber,
phoneListen, phoneListen,
mailBoxListen, mailBoxListen,
checkRequired, checkRequired,
@ -232,5 +286,9 @@ const autoPlay3 = (name, allName, arr) => { // 要接收的, 所有的, 要
rateListen, rateListen,
autoPlay, autoPlay,
autoPlay2, autoPlay2,
autoPlay3 autoPlay3,
getNowDate,
inputListen2,
messageIdCard,
messageCard
} }
Loading…
Cancel
Save