20240205
luoJunYong.123 3 years ago
parent 677b834968
commit 3cf59924f3
  1. 32
      src/components/checkPhoto/index.vue
  2. 1
      src/components/dialogTwo/index.vue
  3. 2
      src/mixins/tipsBefore/index.js
  4. 131
      src/pages/counter/list/index.vue
  5. 2
      src/pages/manage/list/ImportantCash/controlCash3/index.vue
  6. 3
      src/pages/manage/list/business/openAccount.vue
  7. 2
      src/pages/manage/list/cityWide/cityWideIn.vue
  8. 2
      src/pages/manage/list/cityWide/cityWideOut.vue
  9. 99
      src/pages/manage/list/personal/timeDeposit/withdrawal.vue
  10. 19
      src/pages/manage/list/personal/usefulPhrases/openAccount.vue
  11. 6
      src/store/modules/system.js
  12. 4
      src/utils/utilFunction.js
  13. 42560
      test2.js

@ -173,9 +173,6 @@
<h3 class="text-base" style="left: 150px;">{{ mapNumber(getYear2(2, 'expireDate')) }}</h3>
<h3 class="text-base" style="left: 200px;font-weight: 700"></h3>
</div>
</template>
<template v-else-if="imgSrcId==430 || imgSrcId==429" >
@ -235,6 +232,7 @@ export default {
},
created() {
//
this.nowDate = (() => {
const date = new Date()
var y = date.getFullYear();
@ -250,20 +248,22 @@ export default {
this.$emit('update:showImg', false)
},
test() {
const str = '2018年结束了,2019年开始了,2020年就也不远了'
const rex = /\d+/g // 1
const str1 = str.replace(rex, '****')
console.log(str1) // "********,****"
const str2 = str.replace(rex, function(item){
console.log(arguments) //
const arr = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']
let newStr = ''
item.split('').map(function(i){
newStr += arr[i]
})
return newStr
})
console.log('jinitaimei!')
},
debounce(fn,delay) {
let time= null; //
return function (){
let context = this,args = arguments;
if(time) { // time
clearTimeout(time)
// time
// time = null;
}
time = setTimeout(function (){
fn.apply(context,args);
},delay)
}
}
},
computed: {

@ -95,6 +95,7 @@ const obj = {
'spacial': '提交',
"cityWide/cityWideOut": '同城提出',
"cityWide/cityWideIn": '同城提入',
'acceptanceDraft/invoice': '承兑汇票开票'
}
const nameMap = {
sex: {

@ -38,7 +38,7 @@ export default {
const getBeforeData = JSON.parse(sessionStorage.getItem(this.moduleName))
for(const key in getBeforeData) {
this.form[key] = Number(getBeforeData[key])? Number(getBeforeData[key]): getBeforeData[key]
console.log(typeof this.form[key])
}
}

@ -3,10 +3,33 @@
<back-Button />
<!-- <img class="sth bg" v-lazy="lazyImg[2]" alt="" /> -->
<!-- <img class="sth guide" src="@/assets/img/guide.png" alt="" /> -->
<!-- <img class="sth man cp" v-lazy="lazyImg[0]" alt="" @click="changePeopleJudge"/> -->
<img slot="reference" class="sth man cp" v-lazy="lazyImg[0]" alt="" @click="changePeopleJudge"/>
<img class="sth man cp" v-lazy="lazyImg[0]" alt="" @click="changePeopleJudge"/>
<img slot="reference" class="sth man cp" v-lazy="lazyImg[0]" alt="" ref="manPhoto" @click="changePeopleJudge"/>
<div class="sth man cp" style="z-index: 10;" @click="changePeopleJudge" ref="manDiv"></div>
<img class="sth counter" v-lazy="lazyImg[1]" alt="" />
<img class="sth glass" v-lazy="lazyImg[2]" alt="" @click="changePeopleJudge" />
<div class="sth cipher-machine cp" @click="showData('密码器',8)">
<img v-lazy="lazyImg[20]" alt="" ref="cipherPhoto" />
<!-- <img v-lazy="finishPng" class="absolute" style="top: 0px;left: 0px;" v-if="finishGoods.printer"> -->
</div>
<!-- 点击打开密码器-->
<el-tooltip placement="top" popper-class="sth-popper" offset="50" style="z-index: 10">
<div slot="content">
<img v-lazy="lazyImg[19]" class="contentHeight" alt="" />
</div>
<div class="sth cipher-machine cp" ref="cipherDiv" @click="showData('密码器',8)">
<div class="sth cipher-machine cp"></div>
<!-- <img v-lazy="finishPng" class="absolute" style="top: 0px;left: 0px;" v-if="finishGoods.printer"> -->
</div>
</el-tooltip>
<img class="sth glass" v-lazy="lazyImg[2]" alt="" />
@ -97,17 +120,7 @@
</div>
</el-tooltip>
<!-- 点击打开密码器-->
<el-tooltip placement="top" popper-class="sth-popper" offset="50">
<div slot="content">
<img v-lazy="lazyImg[19]" class="contentHeight" alt="" />
</div>
<div class="sth cipher-machine cp" @click="showData('密码器',8)">
<img v-lazy="lazyImg[20]" alt="" />
<!-- <img v-lazy="finishPng" class="absolute" style="top: 0px;left: 0px;" v-if="finishGoods.printer"> -->
</div>
</el-tooltip>
<div class="employee-wrap sth">
<el-tooltip placement="top" popper-class="sth-popper" offset="50">
<img v-lazy="lazyImg[21]" alt="" />
@ -832,6 +845,10 @@ export default {
430: '销户章',
439: '销户章'
}
// map
const stampMap3 = {
428: '销户章'
}
return (id) => {
if(!this.finishSealedArr.includes(id)) {
return []
@ -841,6 +858,9 @@ export default {
if(item.name.includes(stampMap2[id])) {
return item
}
if(item.name.includes(stampMap3[id])) {
return item
}
})
}
@ -898,8 +918,9 @@ export default {
{name:'转账支票',src:require('@/assets/img/goods/xd-zzzp.png'),id:412},
{name:'银行承兑汇票',src:require('@/assets/img/goods/银行承兑汇票.png'),id:584},
{name:'现金支票',src:require('@/assets/img/goods/xjzp.png'),id:411},
{name:'新定期存单',src:require('@/assets/img/goods/储蓄存单.png'),id:429},
// {name:'',src:require('@/assets/img/goods/.png'),id:429},
]
//
if(this.businessKey === '业务一') {
// arr.unshift({name:'',src:require('@/assets/img/goods/bankCard.png'),id:16,cardNub:'1865 3549 5675 5589'})
arr.unshift({name:'二类银行卡',src:require('@/assets/img/goods/bankCard.png'),id:563,cardNub:'1865 3549 5675 5589'})
@ -909,6 +930,47 @@ export default {
}else {
arr.unshift({name:'银行卡',src:require('@/assets/img/goods/bankCard.png'),id:16,cardNub:'1865 3549 5675 5589'})
}
if(this.businessKey === '业务四') {
const findIt2 = arr.findIndex(item => item.id === 429)
const findIt = arr.findIndex(item => item.id === 428)
// if(findIt !== -1) {
// arr.splice(findIt, 1)
// }
//
if(findIt2 === -1) {
//
if(findIt !== -1) {
arr.splice(findIt, 1, {name:'新定期存单',src:require('@/assets/img/goods/储蓄存单.png'),id:429})
}else {
arr.push({name:'新定期存单',src:require('@/assets/img/goods/储蓄存单.png'),id:429})
}
}else {
if(findIt !== -1) {
arr.splice(findIt, 1, {name:'新定期存单',src:require('@/assets/img/goods/储蓄存单.png'),id:429})
}
}
}else {
const findIt = arr.findIndex(item => item.id === 429)
const findIt2 = arr.findIndex(item => item.id === 428)
if(findIt2 === -1) {
if(findIt !== -1) {
arr.splice(findIt, 1, {name:'定期存单',src:require('@/assets/img/goods/储蓄存单.png'),id:428})
}else {
arr.push({name:'定期存单',src:require('@/assets/img/goods/储蓄存单.png'),id:428})
}
}else {
if(findIt !== -1) {
arr.splice(findIt, 1, {name:'定期存单',src:require('@/assets/img/goods/储蓄存单.png'),id:428})
}
}
}
return arr
},
@ -1066,24 +1128,6 @@ export default {
},
id(newVal) {
},
// businessKey: {
// handler(newVal) {
// this.getThingsCache()
// },
// immediate: true
// },
// 'passwordForm.password'(newVal) {
// // passwordForm:{
// // password:'',
// // passwordAgain: ''
// // },
// this.passwordForm.passwordAgain = newVal
// console.log('???xxxxxxxxxx')
// console.log(this.passwordForm.passwordAgain)
// }
},
created() {
if(!sessionStorage.getItem('firstLoad')) {
@ -1127,9 +1171,24 @@ export default {
},
mounted(){
let that = this
this.$refs.manPhoto.onload = function() {
that.$refs.manDiv.style.width = this.width + 'px';
that.$refs.manDiv.style.height = (this.height - 70) + 'px';
}
this.$refs.cipherPhoto.onload = function() {
that.$refs.cipherDiv.style.width = this.width + 'px';
that.$refs.cipherDiv.style.height = this.height + 'px';
}
// cipherDiv
//
this.$nextTick(() => {
// console.log('wokao')
@ -1462,6 +1521,9 @@ export default {
}
})
},
test() {
console.log('test---man')
},
voucherCardGetIt(number) {
if(number === 2) {
@ -2336,7 +2398,6 @@ export default {
top: -18%;
left: 47%;
width: 36.5%;
cursor: pointer;
}
.employee-wrap {
//
@ -2417,6 +2478,7 @@ export default {
top: 42%;
left: 65%;
width: 7%;
z-index: 20;
}
.printer {
top: 50%;
@ -3165,6 +3227,7 @@ export default {
}
.sth{
position: absolute;
z-index: 1;
&.cp{
cursor: pointer;
}

@ -77,10 +77,12 @@ import MyTitle from '@/components/myTitle'
import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialogTwo'
import TipsBefore from '@/mixins/tipsBefore'
const moduleName = 'controlCash3/index'
export default {
name: 'index',
mixins: [ TipsBefore ],
components:{
NeedBefore,
MyDialog,

@ -297,7 +297,8 @@ export default {
changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule',
setPopId: 'system/setPopId'
setPopId: 'system/setPopId',
setTipsOperate: 'system/setTipsOperate'
}),
getFormData(){
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,27,224'

@ -79,6 +79,7 @@ import { mapState, mapGetters } from 'vuex'
import { myValidate, ismoney, inputListen, checkHanzi, checkName, autoPlay, autoPlay2 } from '@/utils/utilFunction.js'
import MyTitle from '@/components/myTitle'
import MyDialog from '@/components/dialogTwo'
import TipsBefore from '@/mixins/tipsBefore'
const moduleName = "cityWide/cityWideIn"
export default {
name: 'index',
@ -86,6 +87,7 @@ export default {
MyTitle,
MyDialog
},
mixins: [ TipsBefore ],
data() {
return {
text:'存款',/* 顶部文字 */

@ -83,6 +83,7 @@ import { mapGetters, mapState } from 'vuex'
import { myValidate, ismoney, inputListen, checkHanzi, checkName, autoPlay, autoPlay2 } from '@/utils/utilFunction.js'
import MyTitle from '@/components/myTitle'
import MyDialog from '@/components/dialogTwo'
import TipsBefore from '@/mixins/tipsBefore'
const moduleName = "cityWide/cityWideOut"
import { getSubjectInfo, addOperation, getOperation } from '@/api/http';
export default {
@ -91,6 +92,7 @@ export default {
MyTitle,
MyDialog
},
mixins: [ TipsBefore ],
data() {
return {
text:'存款',/* 顶部文字 */

@ -54,7 +54,7 @@
<el-input :value="form.capital" disabled @input="val => ismoney(val, form, 'capital')" ref="capital" ></el-input>
</el-form-item>
<el-form-item label="支取金额" prop="withdrawAmount">
<el-input ref="withdrawAmount" :value="form.withdrawAmount" :disabled="capitalDisabled" @input="val => ismoney(val, form, 'withdrawAmount')"></el-input>
<el-input ref="withdrawAmount" :value="form.withdrawAmount" :disabled="capitalDisabled" @input="val => getMoneyJudge(val)"></el-input>
</el-form-item>
<el-form-item label="利息" prop="interest">
<el-input :value="form.interest" disabled @input="(val) => rateListen(val, form, 'interest')" ref="interest"></el-input>
@ -308,6 +308,31 @@ export default{
setPopId: 'system/setPopId',
setTipsOperate: 'system/setTipsOperate'
}),
getMoneyJudge(val) {
//
const tmpCheck = val.substr(val.length-1, 1);
//
if(tmpCheck === ' ') {
return;
}
// 15
if(val.length === 15) {
return
}
// const reg = /([1-9]\d{0,9}|0)(\.\d{1,2})?$/ //
const reg2 = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; //
if (reg2.test(Number(val)) || val==='') {
// +
const maxMoney = Number(this.form.capital) + Number(this.form.interest)
if(Number(val) <= maxMoney) {
this.form.withdrawAmount = val
}else {
this.form.withdrawAmount = maxMoney
// this.setTipsOperate('')
}
}
},
getDataBlur() {
if(!this.form.voucherNumber) {
return
@ -334,82 +359,10 @@ export default{
if(this.form.depositNumber) {
this.form.depositNumber = '0912'
}
// if(this.form.voucherNumber) {
// this.cardNumberJudge = true
// }
//
// if(sessionStorage.getItem('nomtimeDepositWithdrawalPassword')) {
// this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword')
// }
// const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow
// this.form.voucherNumber = voucherNumber
// this.form.customerName = userName
// this.form.currency = currency
// this.form.goldLogo = goldLogo
// // this.form.interest = interest
// this.form.depositNumber = depositNumber
// this.form.capital = capital
// this.form.withdrawType = withdrawType
// if(withdrawWay === 126) {
// this.form.interest = 5.75
// this.rules.withdrawAmount[0].required = false
// if(sessionStorage.getItem('nomtimeDepositWithdrawal2')) {
// this.cardNumberJudge = true
// const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow
// this.form.voucherNumber = voucherNumber
// this.form.customerName = userName
// this.form.currency = currency
// this.form.goldLogo = goldLogo
// this.form.interest = interest
// this.form.depositNumber = depositNumber
// this.form.capital = capital
// this.form.withdrawType = withdrawType
// // this.form.withdrawWay = withdrawWay
// }
// if(sessionStorage.getItem('nomtimeDepositWithdrawalPassword2')) {
// this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword2')
// }
// }else {
// this.form.interest = 0.00
// // nomtimeDepositWithdrawalPassword2
// if(sessionStorage.getItem('nomtimeDepositWithdrawal1')) {
// this.cardNumberJudge = true
// const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow
// this.form.voucherNumber = voucherNumber
// this.form.customerName = userName
// this.form.currency = currency
// this.form.goldLogo = goldLogo
// this.form.interest = interest
// this.form.depositNumber = depositNumber
// this.form.capital = capital
// this.form.withdrawType = withdrawType
// // this.form.withdrawWay = withdrawWay
// }
// if(sessionStorage.getItem('nomtimeDepositWithdrawalPassword')) {
// this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword')
// }
// }
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
},
popUp(text) {
// this.$store.commit('system/changePop',{show:true,text, id: '144,1'})
// if(this.isNeedBefore) {
// this.setPopId('144,1')
// }else {
// const { withdrawWay } = this.dataFlow
// if(withdrawWay === 126) {
// this.setPopId('144,2')
// }else {
// this.setPopId('144,1')
// }
// }
const { withdrawWay } = this.dataFlow
if(withdrawWay === 126) {
this.setPopId('144,2')

@ -109,17 +109,14 @@ export default{
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword')
}
if(this.isNeedBefore) {
if(sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) {
this.idNumberJudge = true
this.form.idNumber = this.dataFlow.idNumber || '441515199812064569'
}
if(sessionStorage.getItem('nomUsefulPhrasesOpenCard')) {
this.cardNumberJudge = true
this.form.voucherNumber = this.dataFlow.voucherNumber || '159753'
}
return
}
// if(sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) {
// this.idNumberJudge = true
// this.form.idNumber = this.dataFlow.idNumber || '441515199812064569'
// }
// if(sessionStorage.getItem('nomUsefulPhrasesOpenCard')) {
// this.cardNumberJudge = true
// this.form.voucherNumber = this.dataFlow.voucherNumber || '159753'
// }
if(sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) {
this.idNumberJudge = true

@ -379,7 +379,7 @@ const myInitState = {
'业务五': {
id: 493,
name: '整存整取全部提前支取',
data: [13, 23, 430], // 身份证原件、复印件、 430
data: [13, 23, 428], // 身份证原件、复印件、 430
needs: [429, 425, 17, 15 ], // 新定期存单 取款凭条 存款凭条 现金
isStamp: {
'付讫章': [ 425, 427 ],
@ -1584,7 +1584,7 @@ export default {
'业务五': {
id: 493,
name: '整存整取全部提前支取',
data: [13, 23, 430], // 身份证原件、复印件、 430
data: [13, 23, 428], // 身份证原件、复印件、 430
needs: [429, 425, 17, 15 ], // 新定期存单 取款凭条 存款凭条 现金
isStamp: {
'付讫章': [ 425, 427 ],
@ -2839,6 +2839,8 @@ export default {
}else if(seal === '销户章') {
if(id === 430) {
stampSuccess = '448'
}else if(id === 428) {
stampSuccess = '451'
}
}else if(seal === '私章') {
if(id === 439) {

@ -238,9 +238,10 @@ const autoPlay2 = (parentId=11, form, myTable2, myTable, cardArr, callback) =>
const tmpObj = {...myTable, ...myTable2}
for (var i = 0; i < list.length; i++) {
const { answerId, emptyTwo } = list[i]
if(!cardArr) {
if(Number(emptyTwo)) {
const tmpNumber = (+emptyTwo).toFixed(2)
const tmpNumber =+emptyTwo
// console.log('kao000')
// console.log(tmpNumber)
form[tmpObj[answerId].prop] = tmpNumber
@ -258,7 +259,6 @@ const autoPlay2 = (parentId=11, form, myTable2, myTable, cardArr, callback) =>
}else {
if(Number(emptyTwo)) {
form[tmpObj[answerId].prop] = +emptyTwo
}else {
form[tmpObj[answerId].prop] = emptyTwo

42560
test2.js

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