20240205
luoJunYong.123 3 years ago
parent de9a307184
commit a2d6c412ea
  1. 1
      src/components/checkPhoto/index.vue
  2. 124
      src/components/selectBusiness/index.vue
  3. 7
      src/pages/manage/list/ImportantCash/controlCash/cashOut.vue
  4. 13
      src/pages/manage/list/ImportantCash/controlCash2/cashOut.vue
  5. 10
      src/pages/manage/list/ImportantCash/controlCash2/cashPaid.vue
  6. 13
      src/pages/manage/list/ImportantCash/controlCash2/cashTransferInto.vue
  7. 27
      src/pages/manage/list/ImportantCash/controlCash3/index.vue
  8. 305
      src/store/modules/system.js
  9. 16
      src/utils/utilFunction.js
  10. 59486
      test2.js

@ -244,6 +244,7 @@ export default {
}
},
mapNumber() {
// map
const myMap = new Map([
['0', '零'],
['1', '壹'],

@ -6,11 +6,11 @@
</div>
<p class="tips2">请选择您要办理的业务:</p>
<ul class="take-list2">
<li v-for="(item) in businessArr" :class="{checked: takeCheck == item.myKey}" :key="item.myKey" @click="checkTake(item.myKey)">
<li v-for="(item) in getBusinessSelectList" :class="{checked: takeCheck == item.myKey}" :key="item.myKey" @click="checkTake(item.myKey)">
<img v-lazy="businessImg" alt="">
<p>{{ item.myKey + item.text}}</p>
</li>
<li v-for="(item) in (3 - businessArr.length%3)" class="sitting" :key="item"></li>
<li v-for="(item) in (3 - getBusinessSelectList.length%3)" class="sitting" :key="item"></li>
</ul>
<div class="dia-footer2">
<div class='busyButtonBox'>
@ -22,7 +22,7 @@
</template>
<script>
import { mapState, mapMutations } from 'vuex';
import { mapState, mapMutations, mapGetters } from 'vuex';
export default {
props: {
@ -45,120 +45,6 @@ export default {
businessImg: require('@/assets/img/业务列表2.png'),
closeImg: require('@/assets/svg/close.svg'),
//
businessArr: [
{
myKey: '业务一',
text: ': 个人活期开户、存款'
},
{
myKey: '业务二',
text: ': 个人活期转账、取款、销户'
},
{
myKey: '业务三',
text: ': 整存整取开户存款'
},
{
myKey: '业务四',
text: ': 整存整取部分提前支取'
},
{
myKey: '业务五',
text: ': 整存整取全部提前支取'
},
{
myKey: '业务六',
text: ': 零存整取开户'
},
{
myKey: '业务七',
text: ': 零存整取续存'
},
{
myKey: '业务八',
text: ': 零存整取销户'
},
{
myKey: '业务九',
text: ': 通知存款开户'
},
{
myKey: '业务十',
text: ': 通知存款销户'
},
{
myKey: '业务十一',
text: ': 公司基本户和开立'
},
{
myKey: '业务十二',
text: ': 公司存款'
},
{
myKey: '业务十三',
text: ': 公司现金支票取款'
},
{
myKey: '业务十四',
text: ': 公司现金支票转账'
},
{
myKey: '业务十五',
text: ': 密码修改'
},
{
myKey: '业务十六',
text: ': 密码挂失'
},
{
myKey: '业务十七',
text: ': 挂失解挂'
},
{
myKey: '业务十八',
text: ': 现金领用'
},
{
myKey: '业务十九',
text: ': 现金上缴'
},
{
myKey: '业务二十',
text: ': 现金调入'
},
{
myKey: '业务二十一',
text: ': 现金调出'
},
{
myKey: '业务二十二',
text: ': 凭证领用'
},
{
myKey: '业务二十三',
text: ': 凭证上缴'
},
{
myKey: '业务二十四',
text: ': 凭证调入'
},
{
myKey: '业务二十五',
text: ': 凭证调出'
},
{
myKey: '业务二十六',
text: ': 支票出售'
},
{
myKey: '业务二十七',
text: ': 柜员日中轧账'
},
{
myKey: '业务二十八',
text: ': 网点日中轧账'
}
],
}
},
methods: {
@ -221,6 +107,7 @@ export default {
}
this.setBusinessKey(this.takeCheck)
console.log(this.takeCheck)
this.$store.dispatch('system/getJudgeData')
if(!this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id) {
this.$message({
@ -273,6 +160,9 @@ export default {
...mapState({
showBusiness: state => state.system.showBusiness,
businessKey: state => state.system.businessKey
}),
...mapGetters({
getBusinessSelectList: 'system/getBusinessSelectList'
})
},
watch: {

@ -124,7 +124,7 @@
</el-col>
<el-col :span="10">
<el-form-item label="接收柜员" prop="receiveCounter">
<el-input :value="form.receiveCounter" disabled ref='receiveCounter' maxlength="20" @input="(val) => inputListen(val, form, 'receiveCounter')"></el-input>
<el-input :value="form.receiveCounter" disabled ref='receiveCounter' maxlength="20" @input="(val) => inputListen(val, form)"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -137,7 +137,7 @@
<script>
import { tableRowClassName, headerCellStyle, cellStyle } from '@/assets/js/myConfig'
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen } from '@/utils/utilFunction.js'
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2 } from '@/utils/utilFunction.js'
import { addOperation } from '@/api/http';
const moduleName = 'controlCash/cashOut'
@ -326,8 +326,7 @@ export default {
})
},
tableRowClassName: tableRowClassName,
checkName,
inputListen
checkName
}
};
</script>

@ -28,7 +28,7 @@
</el-select>
</el-form-item>
<el-form-item label="起始号码" prop="startNumber">
<el-input :value="form.startNumber" @input="(val) => { inputListen2(val, form, 'startNumber'); getBlur()}" maxlength="20" ref='startNumber'></el-input>
<el-input :value="form.startNumber" @input="(val) => { certificateNumber(val, form, 'startNumber'); getBlur()}" maxlength="20" ref='startNumber'></el-input>
</el-form-item>
<el-form-item label="数量">
<el-input :value="form.number" disabled ref='number'></el-input>
@ -40,7 +40,7 @@
<el-input disabled :value="form.receiveCounter" @input="(val) => checkName(val, form, 'receiveCounter')" maxlength="20" ref='receiveCounter'></el-input>
</el-form-item>
<el-form-item label="结束号码" prop="endNumber">
<el-input @blur="getBlur" :value="form.endNumber" @input="(val) => {inputListen2(val, form, 'endNumber'); getBlur()}" maxlength="20" ref='endNumber'></el-input>
<el-input @blur="getBlur" :value="form.endNumber" @input="(val) => {certificateNumber(val, form, 'endNumber'); getBlur()}" maxlength="20" ref='endNumber'></el-input>
</el-form-item>
</el-col>
</el-form>
@ -55,7 +55,7 @@
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
const moduleName = 'controlCash2/cashOut'
import { inputListen2, myValidate, checkName } from '@/utils/utilFunction'
import { inputListen2, myValidate, checkName, certificateNumber } from '@/utils/utilFunction'
import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialogTwo from '@/components/dialogTwo'
@ -155,6 +155,10 @@ export default {
this.setTipsOperate('结束号码应大于起始号码。')
return
}
if(this.form.startNumber.length !== this.form.endNumber.length) {
this.setTipsOperate('结束号码与起始号码长度不同,请检查')
return
}
this.visible = true
} , this.$refs));
@ -204,7 +208,8 @@ export default {
},
tableRowClassName: tableRowClassName,
inputListen2,
checkName
checkName,
certificateNumber
},
computed: {
...mapGetters({

@ -69,7 +69,7 @@
width="150"
>
<template slot-scope="scope">
<el-button :disabled="form.clickIt1 === '已领用'" @click="sure(scope.row)" size="small" >确认</el-button>
<el-button :disabled="form.clickIt1 === '已调入'" @click="sure(scope.row)" size="small" >确认</el-button>
<el-button :disabled="form.clickIt2 === '已退回'" @click="back(scope.row)" size="small">退回</el-button>
</template>
</el-table-column>
@ -160,7 +160,7 @@ export default {
type: 'warning',
center: true
}).then(() => {
this.form.clickIt1 = '已领用'
this.form.clickIt1 = '已调入'
this.form.clickIt2 = ''
this.$message({
type: 'success',
@ -174,11 +174,11 @@ export default {
});
return
}else {
this.form.clickIt1 = '已领用'
this.form.clickIt1 = '已调入'
}
},
back(row) {
if(this.form.clickIt1 === '已领用') {
if(this.form.clickIt1 === '已调入') {
this.$confirm('该项目只能选择将凭证调入或退回凭证,请问是否改为凭证退回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@ -209,7 +209,7 @@ export default {
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
const formList = []
if(this.form.clickIt1 === '已领用') {
if(this.form.clickIt1 === '已调入') {
formList.push({"answerId":'525',"emptyOne": "", "emptyTwo": "", "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,31,519,534,525","type": ""}) //
// formList.push()
}

@ -35,12 +35,12 @@
</el-select>
</el-form-item>
<el-form-item label="结束号码" prop="endNumber">
<el-input @focus="getFocus" :value="form.endNumber" @input="(val) => { inputListen2(val, form, 'endNumber');getBlur() }" maxlength="20" ref='endNumber'></el-input>
<el-input @focus="getFocus" :value="form.endNumber" @input="(val) => { certificateNumber(val, form, 'endNumber');getBlur() }" maxlength="20" ref='endNumber'></el-input>
</el-form-item>
</el-col>
<el-col :span="10" :offset="1">
<el-form-item label="起始号码" prop="startNumber">
<el-input :value="form.startNumber" @input="(val) => { inputListen2(val, form, 'startNumber');getBlur() }" maxlength="20" ref='startNumber'></el-input>
<el-input :value="form.startNumber" @input="(val) => { certificateNumber(val, form, 'startNumber');getBlur() }" maxlength="20" ref='startNumber'></el-input>
</el-form-item>
<el-form-item label="数量">
<el-input :value="form.number" disabled ref='number'></el-input>
@ -58,7 +58,7 @@
import { tableRowClassName, headerCellStyle } from '@/assets/js/myConfig'
const moduleName = 'controlCash2/cashTransferInto'
import { inputListen2, myValidate } from '@/utils/utilFunction'
import { inputListen2, myValidate, certificateNumber } from '@/utils/utilFunction'
import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialogTwo from '@/components/dialogTwo'
@ -149,6 +149,10 @@ export default {
this.setTipsOperate('结束号码应大于起始号码')
return
}
if(this.form.startNumber.length !== this.form.endNumber.length) {
this.setTipsOperate('结束号码与起始号码长度不同,请检查')
return
}
this.visible = true
} , this.$refs));
@ -195,7 +199,8 @@ export default {
this.form.number = number
},
tableRowClassName: tableRowClassName,
inputListen2
inputListen2,
certificateNumber
},
computed: {
...mapGetters({

@ -31,7 +31,7 @@
</el-select>
</el-form-item>
<el-form-item label="凭证终止号" prop="endNumber">
<el-input :value="form.endNumber" @blur="getBlur()" @input="val => inputListen(val, form, 'endNumber')" ref="endNumber"></el-input>
<el-input :value="form.endNumber" @blur="getBlur()" @input="val => certificateNumber(val, form, 'endNumber')" ref="endNumber"></el-input>
</el-form-item>
<el-form-item label="收费类型" prop="chargeWay2">
@ -45,10 +45,10 @@
</el-col>
<el-col :span="10" :offset="1">
<el-form-item label="客户名称" prop="customerName">
<el-input :value="form.customerName" disabled @input="(val) => checkHanzi(val, form, 'customerName')" ref="customerName" ></el-input>
<el-input v-model="form.customerName" ref="customerName" ></el-input>
</el-form-item>
<el-form-item label="凭证起始号" prop="startNumber">
<el-input :value="form.startNumber" @input="val => inputListen(val, form, 'startNumber')" ref="startNumber"></el-input>
<el-input :value="form.startNumber" @input="(val) => certificateNumber(val, form, 'startNumber')" ref="startNumber"></el-input>
</el-form-item>
<el-form-item label="数量" prop="number">
<el-input :value="form.number" disabled @input="val => inputListen(val, form, 'number')" ref="number" ></el-input>
@ -70,7 +70,7 @@
</template>
<script>
import { myValidate, ismoney, checkName, checkHanzi, autoPlay, autoPlay2, inputListen } from '@/utils/utilFunction.js'
import { myValidate, ismoney, checkName, checkHanzi, autoPlay, autoPlay2, inputListen, certificateNumber } from '@/utils/utilFunction.js'
import { addOperation, getOperation } from '@/api/http';
import MyTitle from '@/components/myTitle'
@ -226,12 +226,12 @@ export default {
setTipsOperate: 'system/setTipsOperate'
}),
onBlur() {
if(this.form.username) {
const { userName } = this.dataFlow
this.form.customerName = userName
}else {
this.form.customerName = ''
}
// if(this.form.username) {
// const { collectingCompany } = this.dataFlow
// this.form.customerName = collectingCompany
// }else {
// this.form.customerName = ''
// }
},
getBlur() {
@ -255,6 +255,10 @@ export default {
this.setTipsOperate('结束号码应大于起始号码')
return
}
if(this.form.startNumber.length !== this.form.endNumber.length) {
this.setTipsOperate('凭证起始号和凭证终止号长度不同,请检查')
return
}
this.visible = true
}, this.$refs));
},
@ -268,7 +272,8 @@ export default {
},
checkHanzi: checkHanzi,
inputListen: inputListen,
ismoney: ismoney
ismoney: ismoney,
certificateNumber
},
computed: {
...mapGetters({

@ -157,12 +157,9 @@ const allDataFlow = {
}
const myInitState = {
'': {
data: [],
needs: []
},
'业务一': {
id: 489,
name: '个人活期开户存款',
data: [15, 13, 23, 14],
needs: [16, 17],
isStamp: {
@ -207,6 +204,7 @@ const myInitState = {
},
'业务二': {
id: 490,
name: '个人活期转账取款销户',
data: [16, 13, 23, 426],
needs: [427, 425, 15],
isStamp: {
@ -264,6 +262,7 @@ const myInitState = {
},
'业务三': {
id: 491,
name: '整存整取开户存款',
data: [15, 13, 23, 14], // 现金、身份证原件、复印件、开户申请书
needs: [428],
isStamp: {
@ -302,6 +301,7 @@ const myInitState = {
},
'业务四': {
id: 492,
name: '整存整取部分提前支取',
data: [13, 23, 430], // 身份证原件、复印件、 430
needs: [429, 425, 17, 15 ], // 新定期存单 取款凭条 存款凭条 现金
isStamp: {
@ -347,6 +347,7 @@ const myInitState = {
},
'业务五': {
id: 493,
name: '整存整取全部提前支取',
data: [13, 23, 430], // 身份证原件、复印件、 430
needs: [429, 425, 17, 15 ], // 新定期存单 取款凭条 存款凭条 现金
isStamp: {
@ -390,6 +391,7 @@ const myInitState = {
},
'业务六': {
id: 494,
name: '零存整取开户',
data: [13, 23, 14, 15], // 身份证原件、复印件、 开户申请书、 现金
needs: [ 16, 17 ], // 银行卡 存款凭条
isStamp: { // 还没加逻辑
@ -429,6 +431,7 @@ const myInitState = {
},
'业务七': {
id: 495,
name: '零存整取续存',
data: [ 16, 15, 23 ], // 银行卡、 现金
needs: [ 17 ], // 存款凭条
isStamp: {
@ -468,6 +471,7 @@ const myInitState = {
},
'业务八': {
id: 496,
name: '零存整取支取销户',
data: [ 13, 23, 16 ], // 身份证原件 复印件 银行卡
needs: [ 425, 427 ], // 存款凭条 利息清单
isStamp: {
@ -511,6 +515,7 @@ const myInitState = {
},
'业务九': {
id: 498,
name: '通知存款开户',
data: [ 15, 13, 23, 14 ], // 现金、身份证原件、复印件、开户申请书
needs: [ 428, 17 ], // 定期存单 存款凭条
isStamp: {
@ -560,6 +565,7 @@ const myInitState = {
},
'业务十': {
id: 499,
name: '通知存款销户',
data: [ 13, 23, 428 ], // 身份证原件、复印件、定期存单
needs: [ 425, 427, 15 ], // 多了取款凭条、利息清单 现金
isStamp: {
@ -616,6 +622,7 @@ const myInitState = {
},
'业务十一': {
id: 500,
name: '公司基本户开立',
data: [ 442, 431, 432, 434, 435, 436, 437 ],
needs: [ 438, 439 ], // 多了普通空白凭证, 预留印鉴卡
isStamp: {
@ -666,6 +673,7 @@ const myInitState = {
},
'业务十二': {
id: 501,
name: '公司存款',
data: [ 442, 431, 409, 15 ], // 15是现金
needs: [ 438, 439 ], // 多了普通空白凭证, 预留印鉴卡
isStamp: {
@ -696,6 +704,7 @@ const myInitState = {
},
'业务十三': { // 公司现金支票取款
id: 502,
name: '公司现金支票取款',
data: [ 442, 411 ],
needs: [ 425, 15 ],
isStamp: {
@ -735,6 +744,7 @@ const myInitState = {
},
'业务十四': { // 公司现金支票转账
id: 503,
name: '公司支票转账',
data: [ 442, 412 ],
needs: [ 426 ],
isStamp: {
@ -767,6 +777,7 @@ const myInitState = {
},
'业务十五': { // 密码修改
id: 504,
name: '密码修改',
data: [ 13, 23, 16, 407 ], // 身份证原件、复印件、银行卡、特殊业务申请书
needs: [ ],
isStamp: {
@ -799,6 +810,7 @@ const myInitState = {
},
'业务十六': { // 密码挂失
id: 505,
name: '密码挂失',
data: [ 13, 23, 16, 406 ], // 身份证原件、复印件、银行卡、密码挂失申请书
needs: [ ],
isStamp: {
@ -830,6 +842,7 @@ const myInitState = {
},
'业务十七': { // 挂失解挂
id: 506,
name: '挂失解挂',
data: [ 13, 23, 16, 468, 467 ], // 身份证原件、复印件、银行卡、密码挂失申请书回单、密码挂失申请书银行留存联
needs: [ ],
isStamp: {
@ -862,38 +875,40 @@ const myInitState = {
}
},
// '业务十八': { // 现金领用
// id: 508,
// data: [ 13, 23, 15, 413 ], // 身份证原件、复印件、现金、支票领购单
// needs: [ 411, 479 ],
// isStamp: {
// '附件章': [ 23 ],
// '业务专用章': [ 413, 479 ]
// },
// backPeople: [],
'业务十八': { // 支票出售
id: 507,
name: '支票出售',
data: [ 13, 23, 15, 413 ], // 身份证原件、复印件、现金、支票领购单
needs: [ 411, 479 ],
isStamp: {
'附件章': [ 23 ],
'业务专用章': [ 413, 479 ]
},
backPeople: [],
// backPeople: [ 13, 480, 411, 481 ], // 少了身份证原件、支票领购单回单、现金支票、业务收费凭证回单
// cultureArr: [ 23, 488, 488 ], // 少了复印件、支票领购单凭证联、业务收费凭证凭证联、
// moneyBox: [ ], // 钱箱
// needBackMoney: false, // 需要钱箱取钱
// peopleSign: [ ], // 客户签字
// cultureIn: [], // 传票栏
// sealBox: [], // 印章盒
// currencyDetector: [], // 验钞机
// printer: [], // 打印机
// resource: [], // 资料
cultureArr: [ 23, 488, 488 ], // 少了复印件、支票领购单凭证联、业务收费凭证凭证联、
// importanceArr: [], // 重要空白凭证箱
// commonArr: [], // 普通凭证箱
moneyBox: [ ], // 钱箱
needBackMoney: false, // 需要钱箱取钱
peopleSign: [ ], // 客户签字
cultureIn: [], // 传票栏
sealBox: [], // 印章盒
currencyDetector: [], // 验钞机
printer: [], // 打印机
resource: [], // 资料
// needsModule: {
// 'controlCash/cashRecipients': false
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
// },
// },
'业务十八': { // 现金领用
needsModule: {
'controlCash3/index': false
},
dataFlow: {
}
},
'业务十九': { // 现金领用
id: 508,
name: '现金领用',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -919,8 +934,9 @@ const myInitState = {
dataFlow: {
}
},
'业务十': { // 现金上缴
'业务十': { // 现金上缴
id: 509,
name: '现金上缴',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -949,8 +965,9 @@ const myInitState = {
dataFlow: {
}
},
'业务二十': { // 现金调入
'业务二十': { // 现金调入
id: 548,
name: '现金调入',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -978,8 +995,9 @@ const myInitState = {
dataFlow: {
}
},
'业务二十': { // 现金调出
'业务二十': { // 现金调出
id: 549,
name: '现金调出',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -1007,8 +1025,10 @@ const myInitState = {
dataFlow: {
}
},
'业务二十二': { // 凭证领用
id: 510,
'业务二十三': { // 凭证调入
id: 512,
name: '凭证调入',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -1031,13 +1051,14 @@ const myInitState = {
commonArr: [], // 普通凭证箱
needsModule: {
'controlCash2/cashRecipients' : false
'controlCash2/cashPaid' : false
},
dataFlow: {
}
},
'业务二十三': { // 凭证上缴
id: 514,
'业务二十四': { // 凭证调出
id: 513,
name: '凭证调出',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -1059,13 +1080,14 @@ const myInitState = {
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
needsModule: {
'controlCash2/cashTransferInto' : false
'controlCash2/cashOut' : false
},
dataFlow: {
}
},
'业务二十四': { // 凭证调入
id: 512,
'业务二十五': { // 凭证领用
id: 510,
name: '凭证领用',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -1088,13 +1110,14 @@ const myInitState = {
commonArr: [], // 普通凭证箱
needsModule: {
'controlCash2/cashPaid' : false
'controlCash2/cashRecipients' : false
},
dataFlow: {
}
},
'业务二十五': { // 凭证调出
id: 513,
'业务二十六': { // 凭证上缴
id: 514,
name: '凭证上缴',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -1116,22 +1139,22 @@ const myInitState = {
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
needsModule: {
'controlCash2/cashOut' : false
'controlCash2/cashTransferInto' : false
},
dataFlow: {
}
},
'业务二十六': { // 支票出售
id: 507,
data: [ 13, 23, 15, 413 ], // 身份证原件、复印件、现金、支票领购单
needs: [ 411, 479 ],
'业务二十七': { // 柜员凭证扎帐
id: 570,
name: '柜员凭证扎帐',
data: [ ], //
needs: [ 438 ],
isStamp: {
'附件章': [ 23 ],
'业务专用章': [ 413, 479 ]
'业务专用章': [ 438 ]
},
backPeople: [],
// backPeople: [ 13, 480, 411, 481 ], // 少了身份证原件、支票领购单回单、现金支票、业务收费凭证回单
cultureArr: [ 23, 488, 488 ], // 少了复印件、支票领购单凭证联、业务收费凭证凭证联、
// backPeople: [ ],
cultureArr: [ 438 ],
moneyBox: [ ], // 钱箱
needBackMoney: false, // 需要钱箱取钱
@ -1144,15 +1167,12 @@ const myInitState = {
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
needsModule: {
'controlCash3/index': false
},
dataFlow: {
}
},
'业务二十七': { // 柜员日终扎帐
'业务二十八': { // 柜员现金扎帐
id: 516,
name: '柜员现金扎帐',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -1176,8 +1196,9 @@ const myInitState = {
dataFlow: {
}
},
'业务二十': { // 网点日中扎帐
'业务二十': { // 网点日中扎帐
id: 517,
name: '网点日中扎帐',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -1239,12 +1260,9 @@ export default {
// (要保存的)
businessSelect: {
'': {
data: [],
needs: []
},
'业务一': {
id: 489,
name: '个人活期开户存款',
data: [15, 13, 23, 14],
needs: [16, 17],
isStamp: {
@ -1289,6 +1307,7 @@ export default {
},
'业务二': {
id: 490,
name: '个人活期转账取款销户',
data: [16, 13, 23, 426],
needs: [427, 425, 15],
isStamp: {
@ -1341,10 +1360,12 @@ export default {
interest: '0.1',
balance: 666,
totalMoney: '',
transMoney: 5000
}
},
'业务三': {
id: 491,
name: '整存整取开户存款',
data: [15, 13, 23, 14], // 现金、身份证原件、复印件、开户申请书
needs: [428],
isStamp: {
@ -1383,6 +1404,7 @@ export default {
},
'业务四': {
id: 492,
name: '整存整取部分提前支取',
data: [13, 23, 430], // 身份证原件、复印件、 430
needs: [429, 425, 17, 15 ], // 新定期存单 取款凭条 存款凭条 现金
isStamp: {
@ -1428,6 +1450,7 @@ export default {
},
'业务五': {
id: 493,
name: '整存整取全部提前支取',
data: [13, 23, 430], // 身份证原件、复印件、 430
needs: [429, 425, 17, 15 ], // 新定期存单 取款凭条 存款凭条 现金
isStamp: {
@ -1471,6 +1494,7 @@ export default {
},
'业务六': {
id: 494,
name: '零存整取开户',
data: [13, 23, 14, 15], // 身份证原件、复印件、 开户申请书、 现金
needs: [ 16, 17 ], // 银行卡 存款凭条
isStamp: { // 还没加逻辑
@ -1510,6 +1534,7 @@ export default {
},
'业务七': {
id: 495,
name: '零存整取续存',
data: [ 16, 15, 23 ], // 银行卡、 现金
needs: [ 17 ], // 存款凭条
isStamp: {
@ -1549,6 +1574,7 @@ export default {
},
'业务八': {
id: 496,
name: '零存整取支取销户',
data: [ 13, 23, 16 ], // 身份证原件 复印件 银行卡
needs: [ 425, 427 ], // 存款凭条 利息清单
isStamp: {
@ -1592,6 +1618,7 @@ export default {
},
'业务九': {
id: 498,
name: '通知存款开户',
data: [ 15, 13, 23, 14 ], // 现金、身份证原件、复印件、开户申请书
needs: [ 428, 17 ], // 定期存单 存款凭条
isStamp: {
@ -1641,6 +1668,7 @@ export default {
},
'业务十': {
id: 499,
name: '通知存款销户',
data: [ 13, 23, 428 ], // 身份证原件、复印件、定期存单
needs: [ 425, 427, 15 ], // 多了取款凭条、利息清单 现金
isStamp: {
@ -1697,6 +1725,7 @@ export default {
},
'业务十一': {
id: 500,
name: '公司基本户开立',
data: [ 442, 431, 432, 434, 435, 436, 437 ],
needs: [ 438, 439 ], // 多了普通空白凭证, 预留印鉴卡
isStamp: {
@ -1747,6 +1776,7 @@ export default {
},
'业务十二': {
id: 501,
name: '公司存款',
data: [ 442, 431, 409, 15 ], // 15是现金
needs: [ 438, 439 ], // 多了普通空白凭证, 预留印鉴卡
isStamp: {
@ -1777,6 +1807,7 @@ export default {
},
'业务十三': { // 公司现金支票取款
id: 502,
name: '公司现金支票取款',
data: [ 442, 411 ],
needs: [ 425, 15 ],
isStamp: {
@ -1816,6 +1847,7 @@ export default {
},
'业务十四': { // 公司现金支票转账
id: 503,
name: '公司支票转账',
data: [ 442, 412 ],
needs: [ 426 ],
isStamp: {
@ -1848,6 +1880,7 @@ export default {
},
'业务十五': { // 密码修改
id: 504,
name: '密码修改',
data: [ 13, 23, 16, 407 ], // 身份证原件、复印件、银行卡、特殊业务申请书
needs: [ ],
isStamp: {
@ -1880,6 +1913,7 @@ export default {
},
'业务十六': { // 密码挂失
id: 505,
name: '密码挂失',
data: [ 13, 23, 16, 406 ], // 身份证原件、复印件、银行卡、密码挂失申请书
needs: [ ],
isStamp: {
@ -1911,6 +1945,7 @@ export default {
},
'业务十七': { // 挂失解挂
id: 506,
name: '挂失解挂',
data: [ 13, 23, 16, 468, 467 ], // 身份证原件、复印件、银行卡、密码挂失申请书回单、密码挂失申请书银行留存联
needs: [ ],
isStamp: {
@ -1943,38 +1978,40 @@ export default {
}
},
// '业务十八': { // 现金领用
// id: 508,
// data: [ 13, 23, 15, 413 ], // 身份证原件、复印件、现金、支票领购单
// needs: [ 411, 479 ],
// isStamp: {
// '附件章': [ 23 ],
// '业务专用章': [ 413, 479 ]
// },
// backPeople: [],
'业务十八': { // 支票出售
id: 507,
name: '支票出售',
data: [ 13, 23, 15, 413 ], // 身份证原件、复印件、现金、支票领购单
needs: [ 411, 479 ],
isStamp: {
'附件章': [ 23 ],
'业务专用章': [ 413, 479 ]
},
backPeople: [],
// backPeople: [ 13, 480, 411, 481 ], // 少了身份证原件、支票领购单回单、现金支票、业务收费凭证回单
// cultureArr: [ 23, 488, 488 ], // 少了复印件、支票领购单凭证联、业务收费凭证凭证联、
// moneyBox: [ ], // 钱箱
// needBackMoney: false, // 需要钱箱取钱
// peopleSign: [ ], // 客户签字
// cultureIn: [], // 传票栏
// sealBox: [], // 印章盒
// currencyDetector: [], // 验钞机
// printer: [], // 打印机
// resource: [], // 资料
cultureArr: [ 23, 488, 488 ], // 少了复印件、支票领购单凭证联、业务收费凭证凭证联、
// importanceArr: [], // 重要空白凭证箱
// commonArr: [], // 普通凭证箱
moneyBox: [ ], // 钱箱
needBackMoney: false, // 需要钱箱取钱
peopleSign: [ ], // 客户签字
cultureIn: [], // 传票栏
sealBox: [], // 印章盒
currencyDetector: [], // 验钞机
printer: [], // 打印机
resource: [], // 资料
// needsModule: {
// 'controlCash/cashRecipients': false
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
// },
// },
'业务十八': { // 现金领用
needsModule: {
'controlCash3/index': false
},
dataFlow: {
}
},
'业务十九': { // 现金领用
id: 508,
name: '现金领用',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -2000,8 +2037,9 @@ export default {
dataFlow: {
}
},
'业务十': { // 现金上缴
'业务十': { // 现金上缴
id: 509,
name: '现金上缴',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -2030,8 +2068,9 @@ export default {
dataFlow: {
}
},
'业务二十': { // 现金调入
'业务二十': { // 现金调入
id: 548,
name: '现金调入',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -2059,8 +2098,9 @@ export default {
dataFlow: {
}
},
'业务二十': { // 现金调出
'业务二十': { // 现金调出
id: 549,
name: '现金调出',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -2088,8 +2128,10 @@ export default {
dataFlow: {
}
},
'业务二十二': { // 凭证领用
id: 510,
'业务二十三': { // 凭证调入
id: 512,
name: '凭证调入',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -2112,13 +2154,14 @@ export default {
commonArr: [], // 普通凭证箱
needsModule: {
'controlCash2/cashRecipients' : false
'controlCash2/cashPaid' : false
},
dataFlow: {
}
},
'业务二十三': { // 凭证上缴
id: 514,
'业务二十四': { // 凭证调出
id: 513,
name: '凭证调出',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -2140,13 +2183,14 @@ export default {
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
needsModule: {
'controlCash2/cashTransferInto' : false
'controlCash2/cashOut' : false
},
dataFlow: {
}
},
'业务二十四': { // 凭证调入
id: 512,
'业务二十五': { // 凭证领用
id: 510,
name: '凭证领用',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -2169,13 +2213,14 @@ export default {
commonArr: [], // 普通凭证箱
needsModule: {
'controlCash2/cashPaid' : false
'controlCash2/cashRecipients' : false
},
dataFlow: {
}
},
'业务二十五': { // 凭证调出
id: 513,
'业务二十六': { // 凭证上缴
id: 514,
name: '凭证上缴',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -2197,22 +2242,22 @@ export default {
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
needsModule: {
'controlCash2/cashOut' : false
'controlCash2/cashTransferInto' : false
},
dataFlow: {
}
},
'业务二十六': { // 支票出售
id: 507,
data: [ 13, 23, 15, 413 ], // 身份证原件、复印件、现金、支票领购单
needs: [ 411, 479 ],
'业务二十七': { // 柜员凭证扎帐
id: 570,
name: '柜员凭证扎帐',
data: [ ], //
needs: [ 438 ],
isStamp: {
'附件章': [ 23 ],
'业务专用章': [ 413, 479 ]
'业务专用章': [ 438 ]
},
backPeople: [],
// backPeople: [ 13, 480, 411, 481 ], // 少了身份证原件、支票领购单回单、现金支票、业务收费凭证回单
cultureArr: [ 23, 488, 488 ], // 少了复印件、支票领购单凭证联、业务收费凭证凭证联、
// backPeople: [ ],
cultureArr: [ 438 ],
moneyBox: [ ], // 钱箱
needBackMoney: false, // 需要钱箱取钱
@ -2225,15 +2270,12 @@ export default {
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
needsModule: {
'controlCash3/index': false
},
dataFlow: {
}
},
'业务二十七': { // 柜员日终扎帐
'业务二十八': { // 柜员现金扎帐
id: 516,
name: '柜员现金扎帐',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -2257,8 +2299,9 @@ export default {
dataFlow: {
}
},
'业务二十': { // 网点日中扎帐
'业务二十': { // 网点日中扎帐
id: 517,
name: '网点日中扎帐',
data: [ ], //
needs: [ 438 ],
isStamp: {
@ -2766,6 +2809,18 @@ export default {
}
},
getters: {
// businessSelect
// 获取业务列表供给业务选择使用
getBusinessSelectList(state) {
const arr = []
for(const key in state.businessSelect) {
arr.push({
myKey: key,
text: ': ' + state.businessSelect[key].name
})
}
return arr
},
getSelectList(state) {
return state.selectList
// currencySelectList: [],
@ -2800,13 +2855,14 @@ export default {
}
}
},
// 选择业务物品栏中的物品 根据myKey判断有什么
// 选择业务后合并信息
dataFlow(state) {
return Object.assign(allDataFlow, state.businessSelect[state.businessKey].dataFlow)
},
goods2(state) {
// 调试容错采用if-else
const arr = []
if(state.businessKey !== '') {
for(const item of state.businessSelect[state.businessKey].data) {
arr.push(allGoods[item])
}
@ -2818,7 +2874,7 @@ export default {
item.name = '银行卡'
}
}
}
return arr
},
@ -2866,7 +2922,12 @@ export default {
},
// needBackMoney: false, // 需要钱箱取钱
needBackMoney(state) {
if(state.businessKey !== '') {
return state.businessSelect[state.businessKey].needBackMoney
}else {
return false
}
},
inMyWork(state) {
return (moduleName) => {

@ -43,6 +43,19 @@ const checkName = function(val, form, prop) {
form[prop] = val;
}
const certificateNumber = function(val, form, prop) {
const charReg = /^(0|[0-9][0-9]*)$/;
if(val.length<form[prop].length) {
form[prop] = val;
return;
}
if(charReg.test(val)) {
form[prop] = val;
}
}
// 监听年利率
const rateListen = function(val, form, prop) {
@ -322,5 +335,6 @@ const randomPeopleNumber = () => {
inputListen2,
messageIdCard,
messageCard,
messagePassword
messagePassword,
certificateNumber
}

59486
test2.js

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save