改了不少东西

20240205 银行V0.2
luoJunYong.123 3 years ago
parent b1d69c00f9
commit 4dfabc543e
  1. 5
      src/App.vue
  2. 10
      src/components/case/index.vue
  3. 478
      src/components/selectBusiness/index.vue
  4. 482
      src/pages/counter/list/index.vue
  5. 16
      src/pages/index/list/index.vue
  6. 888
      src/store/modules/system.js
  7. 25
      test.js

@ -1,5 +1,6 @@
<template>
<div id="app" >
<select-business />
<router-view></router-view>
<vCase></vCase>
</div>
@ -8,10 +9,12 @@
import vCase from '@/components/case'
import Setting from '@/setting';
import util from '@/libs/util';
import selectBusiness from '@/components/selectBusiness'
export default {
name: 'App',
components: {
vCase
vCase,
selectBusiness
},
created () {
//localStorage

@ -130,6 +130,7 @@ import util from '@/libs/util'
import Setting from '@/setting'
//
import {getProjectBySystemId,getProjectDetail,submit,getQueryCache,deleteCache,checkTest,checkTest2} from "@/api/http.js";
import { mapMutations } from 'vuex'
export default {
data() {
return {
@ -310,6 +311,9 @@ export default {
}
},
methods: {
...mapMutations({
initState: 'system/initState'
}),
getQueryVariable(name) {
var reg = new RegExp('(^|&)'+name+'=([^&]*)(&|$)')
if(window.location.href.split('?')[1]){
@ -467,7 +471,6 @@ export default {
let systemId = sessionStorage.getItem('systemId')
this.projectName = data.data.projectManage.projectName;
this.projectId = data.data.projectManage.projectId;
console.log()
this.projectManage = data.data.projectManage;
this.requires = data.data.projectJudgmentVos;
//线
@ -508,6 +511,8 @@ export default {
});
},
sureSubmit(judge){
// vuexstate
// this.initState();
this.actEndTime = new Date().getTime();
let ruleReqs = sessionStorage.getItem('ruleReqs')
let startTime = sessionStorage.getItem('startTime')
@ -536,6 +541,8 @@ export default {
this.loading = true;
submit(params).then((data)=>{
if(data.status == 200){
// vuexstate
this.initState();
let datas= data.data.retMap.scoreInfo;
let formList = []
sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
@ -612,6 +619,7 @@ export default {
type: 'warning'
}).then(() => {
this.sureSubmit(true)
}).catch(() => {
// this.$message({
// type: "info",

@ -0,0 +1,478 @@
<template>
<el-dialog :visible.sync="showBusiness" style="width: 100%" @close="closeData" :close-on-click-modal="false" :show-close="false" custom-class="data-dia">
<div slot="title" class="dia-header2">
<div class="data-title2">请选择系统</div>
<div class="close"><img v-lazy="closeImg" alt="" @click="showBusinessSelect(false)" /></div>
</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)">
<img v-lazy="businessImg" alt="">
<p>{{ item.myKey + item.text}}</p>
</li>
</ul>
<div class="dia-footer2">
<div class='busyButtonBox'>
<el-button @click="showBusinessSelect(false)">取消</el-button>
<el-button type="primary" @click="selectBusiness()">确定</el-button>
</div>
</div>
</el-dialog>
</template>
<script>
import { mapState, mapMutations } from 'vuex';
export default {
props: {
// showBusiness: {
// type: Boolean,
// default: false
// }
// default: ''
},
created() {
if(this.businessKey) {
//
this.takeCheck = this.businessKey
}
},
data() {
return {
checkList: [],
takeCheck: '',
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: ': 网点日中轧账'
}
],
}
},
methods: {
...mapMutations({
setBusinessKey: 'system/setBusinessKey',
setShowBusiness: 'system/setShowBusiness'
}),
closeData() {
this.checkList = [];
},
showBusinessSelect (judge) {
if(!judge && !this.businessKey) {
this.$confirm('由于您未选择一个业务,系统将返回主界面, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
center: true
}).then(() => {
this.$router.push('/index')
}).catch(() => {
this.$message({
type: 'info',
message: '请选择一个业务'
});
});
return
}
this.setShowBusiness(judge)
},
checkTake(myKey){
if(this.takeCheck === myKey) {
this.takeCheck = ''
}else {
this.takeCheck = myKey
}
},
selectBusiness() {
if(!this.takeCheck) {
this.$confirm('由于您未选择一个业务,系统将返回主界面, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
center: true
}).then(() => {
this.$router.push('/index')
}).catch(() => {
this.$message({
type: 'info',
message: '请选择一个业务'
});
});
return
}
this.setBusinessKey(this.takeCheck)
this.setShowBusiness(false)
},
},
computed: {
...mapState({
showBusiness: state => state.system.showBusiness,
businessKey: state => state.system.businessKey
})
},
watch: {
showBusiness(newVal) {
if(!newVal) {
this.takeCheck = this.businessKey
}
}
},
}
</script>
<style lang="scss" scoped>
.data-dia {
border-radius: 16px;
margin-top: 4vh !important;
background: #fff;
position: fixed;
top: 7%;
left: 50%;
transform: translate(-50%, 0);
padding: 0 15px 15px;
z-index: 997;
border: 1px solid #e6e6e6;
max-height: 600px;
overflow: auto;
.dia-header {
position: relative;
.data-title {
height:70px;
width: 300px;
margin: 0 auto;
line-height: 70px;
text-align: center;
color: #fff;
font-size: 24px;
background: url('../../assets/img/dia-title.png') 0 0 / cover no-repeat;
}
.close {
position: absolute;
top: 15px;
right: 15px;
cursor: pointer;
}
}
//
.take-list2{
width: 100%;
display: flex;
justify-content: space-around;
flex-direction: row;
flex-wrap: wrap;
height: 40vh;
overflow: auto;
li{
display: inline-flex;
align-items: center;
width: 30%;
height: 10vh;
margin: 1vh 0;
border: 4px solid #DBDBDB;
border-radius: 20px;
cursor: pointer;
background-color: rgba(216,216,216,0.10);
// &:first-child{
// margin: 0 0px 50px 0;
// }
// &:last-child{
// margin-left: 50px;
// }
img{
width: 20%;
margin: 0;
//height: 154px;
//margin: 0 45px;
}
p{
font-size: 14px;
color: #000;
text-align: center;
padding: 0 20px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&.checked{
background: rgba(97,145,255,0.10) url('../../assets/svg/checked.svg') 96% 7%/auto no-repeat;
border-color: #6191FF;
}
}
}
.dia-header2 {
position: relative;height: 50px;
line-height: 50px;
background-color: skyblue;
.data-title2 {
position: absolute;
left: 15px;
height: 50px;
line-height: 50px;
}
.close {
height: 50px;
position: absolute;
right: 15px;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: center;
img {
vertical-align: center;
}
}
}
.tips2 {
margin: 1vh 0 2vh 0;
text-align: left;
font-size: 20px;
color: #000;
}
.list {
width: 940px;
min-height: 204px;
max-height: 360px;
overflow: auto;
margin: 0 auto;
display: flex;
align-items: center;
.img-wrap{
background: url('../../assets/img/data-frame.png') 0 0 / cover no-repeat;
width: 200px;
height: 200px;
display: flex;
justify-content: center;
margin: 5px 10px;
position: relative;
cursor: pointer;
.file {
position: relative;
max-width: 180px;
max-height: 140px;
text-align: center;
margin: 10px 10px ;
img {
margin-top: 45px;
}
p {
position: absolute;
bottom: 0;
width: 100%;
line-height: 54px;
text-align: center;
font-size: 18px;
color: #000;
}
}
.text{
font-size: 18px;
white-space:nowrap;
position: absolute;
bottom: 15px;
left: 50%;
transform: translate(-50%,0);
}
&.checked {
background: url('../../assets/img/data-frame-checked.png') 0 0 / cover no-repeat,
url('../../assets/svg/checked.svg') 165px 7% / auto no-repeat;
p {
color: #fff;
}
}
}
}
.seal{
width: 1100px;
padding: 0 5%;
display: flex;
justify-content: space-between;
.box{
border: 2px solid #e6e6e6;
width: 45%;
min-height: 300px;
border-radius: 10px;
padding: 10px;
}
.left{
display: flex;
width: 50%;
flex-wrap: wrap;
.file {
position: relative;
width: 164px;
height: 164px;
text-align: center;
background: url('../../assets/img/data-frame.png') 0 0 / cover no-repeat;
cursor: pointer;
margin: 5px 7px;
&:last-child {
margin-right: 0;
}
&:nth-child(n>1){
margin-top: 0;
}
img {
width: 130px;
max-height: 108px;
margin: 10px auto 0;
z-index: 9;
}
p {
position: absolute;
bottom: 0;
width: 100%;
line-height: 54px;
text-align: center;
font-size: 18px;
color: #000;
}
&.checked {
background: url('../../assets/img/data-frame-checked.png') 0 0 / cover no-repeat,
url('../../assets/svg/checked.svg') 163px 7% / auto no-repeat;
p {
color: #fff;
}
}
}
&.active {
left: 0;
z-index: 9999;
}
img {
cursor: pointer;
&:last-child {
margin-right: 0;
}
}
}
.right{
margin-left: 5%;
}
.else{
width: 100%;
}
}
.dia-footer2 {
height: 70px;
line-height: 70px;
display: flex;
justify-content: flex-end;
align-items: center;
.busyButtonBox {
display: flex;
justify-content: space-between;
}
}
}
</style>

@ -75,7 +75,7 @@
<div slot="content">
<img v-lazy="this.lazyImg[29]" alt="" />
</div>
<img class="sth employee" v-lazy="lazyImg[21]" @click="showBusinessSelect(true)" alt="" />
<img class="sth employee" v-lazy="lazyImg[21]" @click="setShowBusiness(true)" alt="" />
</el-tooltip>
@ -104,7 +104,7 @@
<!-- 物品栏 -->
<div ref="goods" class="goods-dia" :class="{ active: showGoods }">
<!-- goodsShelfTotalData goods2 -->
<div :id="item.name" v-for="(item) in goodsShelfTotalData" :key="item.id" class=" justify-center" :class="{ checked: checkList.includes(item.id),file:true }" @click="dblClickFn(item,'goods')">
<div :id="item.name" v-for="(item) in goodsShelfTotalData" :key="item.id" class=" justify-center" :class="{ checked: checkList.includes(item.id),file:true }" @click="goodsDblClickFn(item)">
<img :style="item.name==='开户申请书'?'margin-top:10px;':''" :src="item.src" alt="" />
<p>{{item.name}}</p>
</div>
@ -144,7 +144,7 @@
</div>
<div class="box right" ref="popUpSeal">
<!-- receptionList -->
<div class="img-wrap" :class="{ checked: commonChecked.includes(item.id),'img-wrap':true }" v-for="(item, index) in goodState" @click='dislodgeItem(item.id)' :key="index" >
<div class="img-wrap" :class="{ checked: commonChecked.includes(item.id),'img-wrap':true }" v-for="(item, index) in goodState" @click='dislodgeItem(index)' :key="item.id" >
<img :src="item.src" class="fileSeal" alt="" />
<p class="text">{{item.name}}</p>
</div>
@ -174,21 +174,21 @@
</div>
<div v-else-if="popText==='身份证扫描仪'" class="list" ref="popUp">
<div class="img-wrap" :class="{ checked: commonChecked.includes(item.id),'img-wrap':true }" v-for="(item) in receptionList" :key="item.id" @click='dislodgeItem(item.id)'>
<div class="img-wrap" :class="{ checked: commonChecked.includes(item.id),'img-wrap':true }" v-for="(item, index) in receptionList" :key="item.id" @click='dislodgeItem(index)'>
<img :src="item.src" class="file" alt="" />
<p class="text">{{item.name}}</p>
</div>
</div>
<div v-else-if="popText==='身份证扫描器'" class="list" ref="popUp">
<div class="img-wrap" :class="{ checked: commonChecked.includes(item.id),'img-wrap':true }" :key="item.id" @click='dislodgeItem(item.id)' v-for="(item) in receptionList">
<div class="img-wrap" v-for="(item, index) in receptionList" :class="{ checked: commonChecked.includes(item.id),'img-wrap':true }" :key="item.id" @click='dislodgeItem(index)'>
<img :src="item.src" class="file" alt="" />
<p class="text">{{item.name}}</p>
</div>
</div>
<div v-else-if="popText==='刷卡器'" class="list" ref="popUp">
<div class="img-wrap" :class="{ checked: commonChecked.includes(item.id),'img-wrap':true }" @click='dislodgeItem(item.id)' v-for="(item) in receptionList" :key="item.id">
<div class="img-wrap" v-for="(item, index) in receptionList" :class="{ checked: commonChecked.includes(item.id),'img-wrap':true }" @click='dislodgeItem(index)' :key="item.id">
<img :src="item.src" class="file" alt="" />
<p class="text">{{item.name}}</p>
</div>
@ -196,7 +196,7 @@
<!-- 暂时未确定是否公共使用一个弹框 receptionList-->
<div v-else class="list" ref="popUp"><!-- 钱箱 / 传票栏 ... 一系列可存物品弹框 -->
<div class="img-wrap" :class="{ checked: commonChecked.includes(item.id),'img-wrap':true }" v-for="(item) in goodState" :key="item.id" @click='dislodgeItem(item.id)'>
<div class="img-wrap" v-for="(item, index) in goodState" @click='dislodgeItem(index)' :class="{ checked: commonChecked.includes(item.id),'img-wrap':true }" :key="item.id">
<img :src="item.src" class="file" alt="" />
<p class="text">{{item.name }}</p>
</div>
@ -223,27 +223,6 @@
>
<img :src="imgSrc" class="imgPop" alt="">
</el-dialog>
<!-- 业务选择 --弹框 -->
<el-dialog :visible.sync="showBusiness" style="width: 100%" @close="closeData" :close-on-click-modal="false" :show-close="false" custom-class="data-dia">
<div slot="title" class="dia-header2">
<div class="data-title2">请选择系统</div>
<div class="close"><img v-lazy="lazyImg[28]" alt="" @click="showBusinessSelect(false)" /></div>
</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)">
<img v-lazy="businessImg" alt="">
<p>{{ item.myKey + item.text}}</p>
</li>
</ul>
<div class="dia-footer2">
<div class='busyButtonBox'>
<el-button @click="showBusinessSelect(false)">取消</el-button>
<el-button type="primary" @click="selectBusiness(takeCheck)">确定</el-button>
</div>
</div>
</el-dialog>
</div>
</template>
@ -289,118 +268,6 @@ export default {
// cultureIn: [], //
// peopleSign: [],
// moneyBox: [],
takeCheck: '', // myKey
businessImg: require('@/assets/img/业务列表2.png'),
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: ': 网点日中轧账'
}
], //
showBusiness: false,
manageVisible: false, //
checkList: [],//
@ -498,6 +365,18 @@ export default {
{name:'现金支票存根',src:require('@/assets/img/goods/khsqs.png'),id:'现金支票存根'},
{name:'转账支票本联',src:require('@/assets/img/goods/khsqs.png'),id:'转账支票本联'},
{name:'转账支票存根',src:require('@/assets/img/goods/khsqs.png'),id:'转账支票存根'},
{name:'特殊业务申请书',src:require('@/assets/img/goods/khsqs.png'),id:'特殊业务申请书'},
{name:'特殊业务申请书凭证联',src:require('@/assets/img/goods/khsqs.png'),id:'特殊业务申请书凭证联'},
{name:'特殊业务申请书回单',src:require('@/assets/img/goods/khsqs.png'),id:'特殊业务申请书回单'},
{name:'密码挂失申请书',src:require('@/assets/img/goods/khsqs.png'),id:'密码挂失申请书'},
{name:'密码挂失申请书凭证联',src:require('@/assets/img/goods/khsqs.png'),id:'密码挂失申请书凭证联'},
{name:'密码挂失申请书回单',src:require('@/assets/img/goods/khsqs.png'),id:'密码挂失申请书回单'},
{name:'密码挂失申请书银行留存联',src:require('@/assets/img/goods/khsqs.png'),id:'密码挂失申请书银行留存联'},
{name:'支票领购单',src:require('@/assets/img/goods/khsqs.png'),id:'支票领购单'},
{name:'支票领购单回单',src:require('@/assets/img/goods/khsqs.png'),id:'支票领购单回单'},
{name:'支票领购单凭证联',src:require('@/assets/img/goods/khsqs.png'),id:'支票领购单凭证联'},
{name:'业务收费凭证回单',src:require('@/assets/img/goods/khsqs.png'),id:'业务收费凭证回单'},
{name:'业务收费凭证凭证联',src:require('@/assets/img/goods/khsqs.png'),id:'业务收费凭证凭证联'},
],
receptionList:[
@ -544,6 +423,7 @@ export default {
]
},
clickNum:0,
clickNum2:0,
showImg:false,
imgSrc:'',
nbm:0,
@ -582,12 +462,6 @@ export default {
};
},
computed: {
// auditGoodsShelf() {
// return this.$store.state.system.goods2
// },
// goodsShelfTotalData() {
// return this.$store.getters.goods2
// },
businessKey() {
return this.$store.state.system.businessKey
},
@ -950,15 +824,6 @@ export default {
}
}
}
// else if(this.$store.state.system.popText == '') {
// this.receptionList.splice(0, this.receptionList.length, ...this.moneyBox)
// }
// else if(this.$store.state.system.popText == '') {
// this.receptionList.splice(0, this.receptionList.length, ...this.peopleSign)
// }
// else if(this.$store.state.system.popText == '') {
// this.receptionList.splice(0, this.receptionList.length, ...this.cultureArr)
// }
if(!this.showGoods) this.checkList = []
return this.$store.state.system.showPop;
},
@ -1070,7 +935,6 @@ export default {
//localStorage
if(sessionStorage.getItem('systemKey')) {
this.$store.commit('system/setBusinessKey', sessionStorage.getItem('systemKey'))
console.log('---')
console.log(this.$store.state.system.businessKey)
}
@ -1079,7 +943,6 @@ export default {
})
},
mounted(){
this.showBusinessSelect(true)
let that = this
// -
new Sortable(this.$refs.goods, {
@ -1222,6 +1085,7 @@ export default {
},
methods: {
...mapMutations({
setShowBusiness: 'system/setShowBusiness',
changeShowGoods: 'system/changeShowGoods',
setGoodsOpen: 'system/setGoodsOpen',
removeGoodsOpen: 'system/removeGoodsOpen',
@ -1236,71 +1100,25 @@ export default {
pushThings: 'system/pushThings',
pushThingsGoods: 'system/pushThingsGoods',
outThings: 'system/outThings',
outThings2: 'system/outThings2',
outThingsGoods: 'system/outThingsGoods',
}),
checkTake(myKey){
if(this.takeCheck === myKey) {
this.takeCheck = ''
}else {
this.takeCheck = myKey
}
},
selectBusiness(myKey) {
if(!myKey) {
this.$confirm('由于您未选择一个业务,系统将返回主界面, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
center: true
}).then(() => {
this.$router.push('/index')
}).catch(() => {
this.$message({
type: 'info',
message: '请选择一个业务'
});
});
return
}
this.setBusinessKey(myKey)
this.showBusiness = false;
},
showBusinessSelect (judge) {
if(!judge && !this.businessKey) {
this.$confirm('由于您未选择一个业务,系统将返回主界面, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
center: true
}).then(() => {
this.$router.push('/index')
}).catch(() => {
this.$message({
type: 'info',
message: '请选择一个业务'
});
});
return
}
this.showBusiness = judge;
},
dislodgeItem(id){
dislodgeItem(index){
//
if(this.myMap) {
console.log('飞回来的' + id)
this.tmpBox2.push(id)
this.outThings({ name: this.myMap, idArr: [id]})
this.pushThingsGoods([id])
const index = this.tmpBox.findIndex(item => item === id)
if( index!== -1 ) {
this.tmpBox.splice(index, 1)
console.log(index)
console.log('---')
this.tmpBox2.push(this.goodState[index].id)
this.pushThingsGoods([this.goodState[index].id])
console.log(this.goodState)
const index2 = this.tmpBox.findIndex(item => item === this.goodState[index].id)
this.outThings2({ name: this.myMap, index }) // bug
if( index2!== -1 ) {
this.tmpBox.splice(index2, 1)
}
}else {
//
const index = this.receptionList.findIndex(item => item.id === id)
// const index = this.receptionList.findIndex(item => item.id === id)
this.receptionList.splice(index,1);
}
// this.receptionList.splice(index,1);
@ -1429,6 +1247,35 @@ export default {
}
}, 200)
},
goodsDblClickFn(item){/* 选中/预览 单/双击函数 */
this.clickNum2++
if (this.clickNum2 === 2) { //
this.clickNum2 = 0;
this.showImg = true
this.imgSrc = item.src
}
setTimeout(() => {
if(this.myMap) {
const index = this.goodState.findIndex(itemFind => itemFind.id === item.id)
if(index !== -1) {
return
}
this.pushThings({ idArr: [item.id], name: this.myMap})
const indexBox3 = this.tmpBox.findIndex(itemFind => itemFind === item.id)
if(indexBox3 === -1) {
this.tmpBox.push(item.id)
}
const indexBox2 = this.tmpBox2.findIndex(itemFind => itemFind === item.id)
if( indexBox2 !== -1 ) {
this.tmpBox2.splice(indexBox2, 1)
}
this.outThingsGoods([ item.id ])
}
this.clickNum2 = 0
}, 200)
},
checkSeal(id) {/* 选中印章 */
this.sealChecked.includes(id) ? this.sealChecked.splice(this.sealChecked.indexOf(id), 1) : this.sealChecked.push(id);
},
@ -1440,10 +1287,6 @@ export default {
},
closePop() {//
if(this.myMap) {
console.log('BOx12')
console.log(this.tmpBox)
console.log(this.tmpBox2)
// const index = this[this.myMap].length-this.tmpBox.length //
this.pushThingsGoods([...this.tmpBox])
this.outThings({ name: this.myMap, idArr: [...this.tmpBox]})
this.outThingsGoods([...this.tmpBox2])
@ -1462,155 +1305,25 @@ export default {
this.$router.push('/counter/list/manage/consumerClient');
},
popSure(){/* 弹框-确定 */
/*
添加文件处理选中的文件commit到stor里提示
印章添加一个字段判断已盖章的图表
其他直接展示已处理或已完成且添加处理过的文件到物品栏 tmpBox2
*/
let arr = []
if(this.popText==='重要空白凭证箱'||this.popText==='普通凭证箱'){
let goods,clickList
this.popText==='重要空白凭证箱'?(goods=this.importanceArr,clickList=this.importantChecked):(goods=this.commonArr ,clickList = this.commonChecked)
if(clickList.length===0) return this.$message.warning(`请选择物品后再确定!`)
//
// goods.map(e=>{
// clickList.map(el=>{
// if(el===e.id){
// arr.push(e)
// }
// })
// })
this.addGoods(clickList)
// this.$store.commit('system/changeGoods',{push:arr})
// // 西
// this.auditGoodsShelf.push({name:'', src:require('@/assets/img/goods/bankCard.png'), id:16}) //
// this.closePop()
// this.changeShowGoods(false)
console.log(clickList)
if(this.popText==='重要空白凭证箱') {
let formList = []
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<clickList.length;i++){formList.push({ "answerId":clickList[i], "emptyOne": "", "emptyTwo": "", "operationIds": "285,287,2,"+clickList[i], "type": "" })}
let params= {
parentId:'285,287,2',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else {
let formList = []
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
console.log(clickList)
for (var i=0;i<clickList.length;i++){formList.push({ "answerId":clickList[i], "emptyOne": "", "emptyTwo": "", "operationIds": "285,287,3,"+clickList[i], "type": "" })}
let params= {
parentId:'285,287,3',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}
//
clickList = []
this.importantChecked = []
}else if(this.popText == '密码器'){
if (this.nbm == 8){
let formList = []
let ruleReqs = sessionStorage.getItem('ruleReqs')
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []}
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "18", "emptyTwo": this.passwordForm.passwordAgain, "operationIds": "285,287,282,"+this.receptionList[i].id,"type": "3"})}
sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}
if(this.passwordForm.password && this.passwordForm.passwordAgain){
if(this.passwordForm.password.length >=6 && this.passwordForm.passwordAgain.length >=6){
if(this.passwordForm.password == this.passwordForm.passwordAgain) {
this.$store.commit('system/changePop', {show: false, text: ''})
this.$message.success(`${this.popText}操作成功!`)
}
}
}else{
this.$message.error('请输入密码和确认密码');
}
}else if(this.popText == '印章盒') {
console.log('印章盒')
console.log(this.goodState)
if(this.goodState.length === 0) {
this.$message({
message: '请放入证件进行盖章!',
type: 'warning'
});
return
}
if(this.sealChecked.length === 0) {
this.$message({
message: '请选择印章!',
type: 'warning'
});
return
}
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
let formList = []
for (var i=0;i<this.goodState.length;i++){formList.push({"answerId":this.goodState[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "285,287,8,"+this.goodState[i].id,"type": ""})}
let params= {
parentId:'285,287,8',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
//
const sealArr = [...this.sealChecked]
this.stampJudge(sealArr)
}else{
// this.goodsShelfTotalData = this.auditGoodsShelf
console.log(this.receptionList)
if (this.$store.state.system.id == '33'){
this.nbm = 33
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomClientIdentity', JSON.stringify(this.receptionList))
}
}
if (this.$store.state.system.id == '34'){
}else if (this.$store.state.system.id == '34'){
this.nbm = 34
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('firmClientIdentity', JSON.stringify(this.receptionList))
}
}
if (this.$store.state.system.id == '63'){
}else if (this.$store.state.system.id == '63'){
this.nbm = 63
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomBusinessDepositCard', JSON.stringify(this.receptionList))
}
}
if (this.$store.state.system.id == '64'){
}else if (this.$store.state.system.id == '64'){
this.nbm = 64
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
@ -1745,8 +1458,6 @@ export default {
sessionStorage.setItem('accountPasswordThree', accountPasswordThree)
}
}else {
console.log('xxxxxssss')
console.log(this.goodState)
let formList = []
this.toggleGoods()
this.$message.success(`${this.popText}操作成功!`)
@ -1755,7 +1466,7 @@ export default {
}else if (this.nbm == 1){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id,"emptyOne": "", "emptyTwo": "", "operationIds": "285,287,4,"+this.receptionList[i].id,"type": ""})}
for (var i=0;i<this.goodState.length;i++){formList.push({"answerId":this.goodState[i].id,"emptyOne": "", "emptyTwo": "", "operationIds": "285,287,4,"+this.goodState[i].id,"type": ""})}
let params= {
parentId:'285,287,4',
lcJudgmentRuleReq:formList,
@ -1770,9 +1481,13 @@ export default {
}).catch((error)=>{
})
}else if (this.nbm == 2){ //
let clickList = this.commonChecked
this.pushThingsGoods([...clickList])
if(clickList.length===0) return this.$message.warning(`请选择物品后再确定!`)
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({ "answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "285,287,3,"+this.receptionList[i].id, "type": "" })}
let formList = []
for (var i=0;i<clickList.length;i++){formList.push({ "answerId":clickList[i], "emptyOne": "", "emptyTwo": "", "operationIds": "285,287,3,"+clickList[i], "type": "" })}
let params= {
parentId:'285,287,3',
lcJudgmentRuleReq:formList,
@ -1786,10 +1501,15 @@ export default {
});
}).catch((error)=>{
})
clickList = []
}else if (this.nbm == 3){ //
let clickList=this.importantChecked
this.pushThingsGoods([...clickList])
if(clickList.length===0) return this.$message.warning(`请选择物品后再确定!`)
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({ "answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "285,287,2,"+this.receptionList[i].id, "type": "" })}
let formList = []
for (var i=0;i<clickList.length;i++){formList.push({ "answerId":clickList[i], "emptyOne": "", "emptyTwo": "", "operationIds": "285,287,3,"+clickList[i], "type": "" })}
let params= {
parentId:'285,287,2',
lcJudgmentRuleReq:formList,
@ -1803,8 +1523,8 @@ export default {
});
}).catch((error)=>{
})
clickList = []
}else if (this.nbm == 4){ //
console.log(this.goodState)
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
let formList = [];
@ -1828,6 +1548,21 @@ export default {
}).catch((error)=>{
})
}else if (this.nbm == 5){ //
if(this.goodState.length === 0) {
this.$message({
message: '请放入证件进行盖章!',
type: 'warning'
});
return
}
if(this.sealChecked.length === 0) {
this.$message({
message: '请选择印章!',
type: 'warning'
});
return
}
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.goodState.length;i++){formList.push({"answerId":this.goodState[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "285,287,8,"+this.goodState[i].id,"type": ""})}
@ -1844,6 +1579,10 @@ export default {
});
}).catch((error)=>{
})
//
const sealArr = [...this.sealChecked]
this.stampJudge(sealArr)
}else if (this.nbm == 6){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
@ -1861,6 +1600,8 @@ export default {
});
}).catch((error)=>{
})
// that.outThingsGoods([that.goodsShelfTotalData[evt.oldIndex].id])
}else if (this.nbm == 7){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
@ -1878,6 +1619,24 @@ export default {
});
}).catch((error)=>{
})
}else if(this.nbm == 8){ //
if (this.nbm == 8){
let formList = []
let ruleReqs = sessionStorage.getItem('ruleReqs')
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []}
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "18", "emptyTwo": this.passwordForm.passwordAgain, "operationIds": "285,287,282,"+this.receptionList[i].id,"type": "3"})}
sessionStorage.setItem('ruleReqs', JSON.stringify(formList))
}
if(this.passwordForm.password && this.passwordForm.passwordAgain){
if(this.passwordForm.password.length >=6 && this.passwordForm.passwordAgain.length >=6){
if(this.passwordForm.password == this.passwordForm.passwordAgain) {
this.$store.commit('system/changePop', {show: false, text: ''})
this.$message.success(`${this.popText}操作成功!`)
}
}
}else{
this.$message.error('请输入密码和确认密码');
}
}else if (this.nbm == 9){//
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
@ -1895,8 +1654,7 @@ export default {
});
}).catch((error)=>{
})
}
else if (this.nbm == 10){ //
}else if (this.nbm == 10){ //
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,6,"+this.receptionList[i].id,"type": ""})}
@ -1936,8 +1694,8 @@ export default {
}
this.$store.commit('system/changePop',{show:false,text:''}) //
}
this.closePop()
}
// this.closePop()
// }
this.$store.commit('system/changePop', {show: false, text: ''})
},

@ -1,7 +1,11 @@
<template>
<div class="wrap">
<img class="sth bg" src="@/assets/img/index-bg.png" alt="">
<!-- <div class="case">项目案例</div> -->
<div class="case" @click="setShowBusiness(true)">项目案例</div>
<!-- 业务选择 --弹框 -->
<div class="sth integrated-counter cp">
<img width="100%" v-lazy="lazy1" alt="" @click="toPart('/counter')">
@ -26,7 +30,7 @@
</template>
<script>
import { mapMutations, mapState } from 'vuex';
export default {
name: 'index',
data() {
@ -57,7 +61,15 @@ export default {
sessionStorage.setItem('timestamp', timestamp)
}
},
computed: {
...mapState({
showBusiness: state => state.system.showBusiness
})
},
methods: {
...mapMutations({
setShowBusiness: 'system/setShowBusiness'
}),
getQueryVariable(name) {
var reg = new RegExp('(^|&)'+name+'=([^&]*)(&|$)')
if( window.location.href.split('?')[1]){

File diff suppressed because it is too large Load Diff

@ -31,3 +31,28 @@
192: {name:'新定期存单',src:require('@/assets/img/seal/paid.png'),id:192},
193: {name:'新定期存单凭证联',src:require('@/assets/img/seal/paid.png'),id:193},
194: {name:'新定期存单回单',src:require('@/assets/img/seal/paid.png'),id:194},
// 业务 10 以后的
'法人身份证': {name:'法人身份证',src:require('@/assets/img/goods/idcard.png'),id:'法人身份证'},
'法人身份证复印件': {name:'法人身份证复印件',src:require('@/assets/img/idCard-copy-sm.png'),id:'法人身份证复印件'},
'开立银行接算账户申请书': {name:'开立银行接算账户申请书',src:require('@/assets/img/goods/khsqs.png'),id:'开立银行接算账户申请书'},
'统一社会信用代码证': {name:'统一社会信用代码证',src:require('@/assets/img/goods/ywsfpz.png'),id:'统一社会信用代码证'},
'统一社会信用代码证复印件': {name:'统一社会信用代码证复印件',src:require('@/assets/img/goods/ywsfpz.png'),id:'统一社会信用代码证复印件'},
'开户许可证': {name:'开户许可证',src:require('@/assets/img/goods/lxqd.png'),id:'开户许可证'},
'开户许可证复印件': {name:'开户许可证复印件',src:require('@/assets/img/goods/lxqd.png'),id:'开户许可证复印件'},
'开立银行接算账户申请书凭证联': {name:'开立银行接算账户申请书凭证联',src:require('@/assets/img/goods/khsqs.png'),id:'开立银行接算账户申请书凭证联'},
'开立银行接算账户申请书回单': {name:'开立银行接算账户申请书回单',src:require('@/assets/img/goods/khsqs.png'),id:'开立银行接算账户申请书回单'},
'现金存款凭证': {name:'现金存款凭证',src:require('@/assets/img/goods/khsqs.png'),id:'现金存款凭证'},
'现金存款凭证联': {name:'现金存款凭证联',src:require('@/assets/img/goods/khsqs.png'),id:'现金存款凭证联'},
'现金存款凭证回单': {name:'现金存款凭证回单',src:require('@/assets/img/goods/khsqs.png'),id:'现金存款凭证回单'},
'现金支票本联': {name:'现金支票本联',src:require('@/assets/img/goods/khsqs.png'),id:'现金支票本联'},
'现金支票存根': {name:'现金支票存根',src:require('@/assets/img/goods/khsqs.png'),id:'现金支票存根'},
'转账支票本联': {name:'转账支票本联',src:require('@/assets/img/goods/khsqs.png'),id:'转账支票本联'},
'转账支票存根': {name:'转账支票存根',src:require('@/assets/img/goods/khsqs.png'),id:'转账支票存根'},
'特殊业务申请书': {name:'特殊业务申请书',src:require('@/assets/img/goods/khsqs.png'),id:'特殊业务申请书'},
'特殊业务申请书凭证联': {name:'特殊业务申请书凭证联',src:require('@/assets/img/goods/khsqs.png'),id:'特殊业务申请书凭证联'},
'特殊业务申请书回单': {name:'特殊业务申请书回单',src:require('@/assets/img/goods/khsqs.png'),id:'特殊业务申请书回单'},
'密码挂失申请书': {name:'密码挂失申请书',src:require('@/assets/img/goods/khsqs.png'),id:'密码挂失申请书'},
'密码挂失申请书凭证联': {name:'密码挂失申请书凭证联',src:require('@/assets/img/goods/khsqs.png'),id:'密码挂失申请书凭证联'},
'密码挂失申请书回单': {name:'密码挂失申请书回单',src:require('@/assets/img/goods/khsqs.png'),id:'密码挂失申请书回单'},
'密码挂失申请书银行留存联': {name:'密码挂失申请书银行留存联',src:require('@/assets/img/goods/khsqs.png'),id:'密码挂失申请书银行留存联'},
Loading…
Cancel
Save