改了好多

20240205
luoJunYong.123 3 years ago
parent 4dfabc543e
commit 9644204115
  1. 45
      src/components/selectBusiness/index.vue
  2. 199
      src/pages/counter/list/index.vue
  3. 9
      src/pages/index/list/index.vue
  4. 8
      src/pages/manage/list/client/consumerClient.vue
  5. 178
      src/store/modules/system.js
  6. 7
      src/utils/utilFunction.js
  7. 351
      test.js

@ -166,19 +166,23 @@ export default {
}, },
showBusinessSelect (judge) { showBusinessSelect (judge) {
if(!judge && !this.businessKey) { if(!judge && !this.businessKey) {
this.$confirm('由于您未选择一个业务,系统将返回主界面, 是否继续?', '提示', { // this.$confirm(', ?', '', {
confirmButtonText: '确定', // confirmButtonText: '',
cancelButtonText: '取消', // cancelButtonText: '',
type: 'warning', // type: 'warning',
center: true // center: true
}).then(() => { // }).then(() => {
this.$router.push('/index') // this.$router.push('/index')
}).catch(() => { // }).catch(() => {
// this.$message({
// type: 'info',
// message: ''
// });
// });
this.$message({ this.$message({
type: 'info', type: 'info',
message: '请选择一个业务' message: '请选择一个业务'
}); });
});
return return
} }
this.setShowBusiness(judge) this.setShowBusiness(judge)
@ -192,23 +196,28 @@ export default {
}, },
selectBusiness() { selectBusiness() {
if(!this.takeCheck) { if(!this.takeCheck) {
this.$confirm('由于您未选择一个业务,系统将返回主界面, 是否继续?', '提示', { // this.$confirm(', ?', '', {
confirmButtonText: '确定', // confirmButtonText: '',
cancelButtonText: '取消', // cancelButtonText: '',
type: 'warning', // type: 'warning',
center: true // center: true
}).then(() => { // }).then(() => {
this.$router.push('/index') // this.$router.push('/index')
}).catch(() => { // }).catch(() => {
// this.$message({
// type: 'info',
// message: ''
// });
// });
this.$message({ this.$message({
type: 'info', type: 'info',
message: '请选择一个业务' message: '请选择一个业务'
}); });
});
return return
} }
this.setBusinessKey(this.takeCheck) this.setBusinessKey(this.takeCheck)
this.setShowBusiness(false) this.setShowBusiness(false)
sessionStorage.setItem('businessKey', this.$store.state.system.businessKey)
}, },
}, },
computed: { computed: {

@ -7,10 +7,10 @@
<img class="sth counter" v-lazy="lazyImg[1]" alt="" /> <img class="sth counter" v-lazy="lazyImg[1]" alt="" />
<img class="sth glass" v-lazy="lazyImg[2]" alt="" @click="showData('客户签字',0)"/> <img class="sth glass" v-lazy="lazyImg[2]" alt="" @click="showData('客户签字',0)"/>
<!-- 系统录入 --> <!-- 系统录入 height: 178px;position:relative;top:-450px;right:20px-->
<el-tooltip placement="top" popper-class="sth-popper"> <el-tooltip placement="top" popper-class="sth-popper">
<div slot="content"> <div slot="content">
<img style="height: 178px;position:relative;top:-450px;right:20px" v-lazy="lazyImg[3]" alt="" /> <img style="height: 178px;position:relative;top:-7vh;right:20px" v-lazy="lazyImg[3]" alt="" />
</div> </div>
<img @click="showManage" class="sth computer cp" v-lazy="lazyImg[4]" alt="" /> <img @click="showManage" class="sth computer cp" v-lazy="lazyImg[4]" alt="" />
</el-tooltip> </el-tooltip>
@ -144,7 +144,7 @@
</div> </div>
<div class="box right" ref="popUpSeal"> <div class="box right" ref="popUpSeal">
<!-- receptionList --> <!-- receptionList -->
<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" > <div class="img-wrap2" :class="{ checked: commonChecked.includes(item.id) }" v-for="(item, index) in goodState" @click='dislodgeItem(index)' :key="item.id" >
<img :src="item.src" class="fileSeal" alt="" /> <img :src="item.src" class="fileSeal" alt="" />
<p class="text">{{item.name}}</p> <p class="text">{{item.name}}</p>
</div> </div>
@ -271,8 +271,8 @@ export default {
showBusiness: false, showBusiness: false,
manageVisible: false, // manageVisible: false, //
checkList: [],// checkList: [],//
tmpBox: [], // boxStart: [], //
tmpBox2: [], // boxStart2: [], //
elseBoxCheck:[],/* 所有其他可从物品栏拖拽物品进入的弹框 */ elseBoxCheck:[],/* 所有其他可从物品栏拖拽物品进入的弹框 */
//////// ////////
// 西 // 西
@ -351,13 +351,13 @@ export default {
// 10 // 10
{name:'法人身份证',src:require('@/assets/img/goods/idcard.png'),id:'法人身份证'}, {name:'法人身份证',src:require('@/assets/img/goods/idcard.png'),id:'法人身份证'},
{name:'法人身份证复印件',src:require('@/assets/img/idCard-copy-sm.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/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/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/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:'现金存款凭证回单'},
@ -912,19 +912,22 @@ export default {
}) })
}; };
}) })
}else if(this.myMap) {
this.boxStart = this.goodState.map(item => item.id)
this.boxStart2 = this.goodsShelfTotalData.map(item => item.id)
} }
}else { }else {
this.commonChecked = []
this.sealChecked = []
this.importantChecked = []
// //
this.$nextTick(() => { this.boxStart = []
this.tmpBox.splice(0, this.tmpBox.length) this.boxStart2 = []
this.tmpBox2.splice(0, this.tmpBox2.length)
})
} }
} }
}, },
created() { created() {
console.log(this.lazyImg.length)
let arr = this.$route.path.split('/').slice(-2); let arr = this.$route.path.split('/').slice(-2);
if (arr.pop() === 'manage' || arr[0] === 'manage') { if (arr.pop() === 'manage' || arr[0] === 'manage') {
this.manageVisible = true; this.manageVisible = true;
@ -933,13 +936,15 @@ export default {
} }
//localStorage //localStorage
if(sessionStorage.getItem('systemKey')) { if(sessionStorage.getItem('businessKey')) {
this.$store.commit('system/setBusinessKey', sessionStorage.getItem('systemKey')) this.$store.commit('system/setBusinessKey', sessionStorage.getItem('businessKey'))
console.log(this.$store.state.system.businessKey) }
if(sessionStorage.getItem('businessSelect')) {
this.$store.commit('system/setBusinessSelect', JSON.parse(sessionStorage.getItem('businessSelect')))
} }
window.addEventListener("beforeunload",()=>{ window.addEventListener("beforeunload",()=>{
sessionStorage.setItem('systemKey', this.$store.state.system.businessKey) sessionStorage.setItem('businessKey', this.$store.state.system.businessKey)
sessionStorage.setItem('businessSelect', JSON.stringify(this.$store.state.system.businessSelect))
}) })
}, },
mounted(){ mounted(){
@ -970,16 +975,7 @@ export default {
if(that.$refs.popUp) { if(that.$refs.popUp) {
if(that.myMap) { if(that.myMap) {
const index = that.goodState.findIndex(item => item.id === that.goodsShelfTotalData[evt.oldIndex].id) that.pushThings({ idArr: [that.goodsShelfTotalData[evt.oldIndex].id], name: that.myMap})
if(index !== -1) {
return
}
that.pushThings({ idArr: that.goodsShelfTotalData[evt.oldIndex].id, name: that.myMap})
that.tmpBox.push(that.goodsShelfTotalData[evt.oldIndex].id)
const indexBox2 = that.tmpBox2.findIndex(item => item === that.goodsShelfTotalData[evt.oldIndex].id)
if( indexBox2 !== -1 ) {
that.tmpBox2.splice(indexBox2, 1)
}
that.outThingsGoods([that.goodsShelfTotalData[evt.oldIndex].id]) that.outThingsGoods([that.goodsShelfTotalData[evt.oldIndex].id])
}else{ }else{
for(var i=0;i<that.popArr.length;i++){ for(var i=0;i<that.popArr.length;i++){
@ -1000,35 +996,12 @@ export default {
} }
} }
} }
// for(var i=0;i<that.popArr.length;i++){
// if (that.goodsShelfTotalData[evt.oldIndex].name == that.popArr[i].name){
// if (that.receptionList == null){
// that.receptionList = []
// }
// if (that.receptionList.length){
// for(var j=0;j< that.receptionList.length;j++){
// if (that.receptionList[j].name == that.goodsShelfTotalData[evt.oldIndex].name){
// return;
// }
// }
// that.receptionList.push(that.popArr[i])
// }else{
// that.receptionList.push(that.popArr[i])
// }
// }
// }
} }
// //
else if(that.$refs.popUpSeal) { else if(that.$refs.popUpSeal) {
// for(var i=0;i<that.popArr.length;i++){
// if (that.goodsShelfTotalData[evt.oldIndex].name == that.popArr[i].name){
// that.receptionList.splice(0, that.receptionList.length, that.popArr[i])
// }
// }
that.pushThings({ idArr: that.goodsShelfTotalData[evt.oldIndex].id, name: that.myMap}) that.pushThings({ idArr: [ that.goodsShelfTotalData[evt.oldIndex].id ], name: that.myMap})
that.outThingsGoods([that.goodsShelfTotalData[evt.oldIndex].id]) that.outThingsGoods([that.goodsShelfTotalData[evt.oldIndex].id])
} }
@ -1061,8 +1034,6 @@ export default {
} }
} }
// that.goodsShelfTotalData.push(that.importanceArr[evt.oldIndex]) // that.goodsShelfTotalData.push(that.importanceArr[evt.oldIndex])
console.log(that.importanceArr[evt.oldIndex])
console.log('---xxxxxxssss')
that.addGoods(that.importanceArr[evt.oldIndex]) that.addGoods(that.importanceArr[evt.oldIndex])
} }
} }
@ -1085,6 +1056,8 @@ export default {
}, },
methods: { methods: {
...mapMutations({ ...mapMutations({
replaceThingsGoods: 'system/replaceThingsGoods',
replaceThings: 'system/replaceThings',
setShowBusiness: 'system/setShowBusiness', setShowBusiness: 'system/setShowBusiness',
changeShowGoods: 'system/changeShowGoods', changeShowGoods: 'system/changeShowGoods',
setGoodsOpen: 'system/setGoodsOpen', setGoodsOpen: 'system/setGoodsOpen',
@ -1106,16 +1079,8 @@ export default {
dislodgeItem(index){ dislodgeItem(index){
// //
if(this.myMap) { if(this.myMap) {
console.log(index)
console.log('---')
this.tmpBox2.push(this.goodState[index].id)
this.pushThingsGoods([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 this.outThings2({ name: this.myMap, index }) // bug
if( index2!== -1 ) {
this.tmpBox.splice(index2, 1)
}
}else { }else {
// //
// const index = this.receptionList.findIndex(item => item.id === id) // const index = this.receptionList.findIndex(item => item.id === id)
@ -1250,28 +1215,21 @@ export default {
goodsDblClickFn(item){/* 选中/预览 单/双击函数 */ goodsDblClickFn(item){/* 选中/预览 单/双击函数 */
this.clickNum2++ this.clickNum2++
if (this.clickNum2 === 2) { // if (this.clickNum2 === 2) { //
if(!(item.name.includes('本联') || item.name.includes('凭证联') || item.name.includes('回单'))) {
this.clickNum2 = 0; this.clickNum2 = 0;
this.showImg = true this.showImg = true
this.imgSrc = item.src this.imgSrc = item.src
} }
}
setTimeout(() => { setTimeout(() => {
if(this.myMap) { 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}) 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.outThingsGoods([ item.id ])
}else {
const index = this.receptionList.findIndex(item2 => item2.id === item.id)
if(index === -1) {
this.receptionList.push(item)
}
} }
this.clickNum2 = 0 this.clickNum2 = 0
}, 200) }, 200)
@ -1286,11 +1244,9 @@ export default {
this.commonChecked.includes(id) ? this.commonChecked.splice(this.commonChecked.indexOf(id), 1) : this.commonChecked.push(id); this.commonChecked.includes(id) ? this.commonChecked.splice(this.commonChecked.indexOf(id), 1) : this.commonChecked.push(id);
}, },
closePop() {// closePop() {//
if(this.myMap) { if(this.myMap && this.myMap !== 'sealBox') {
this.pushThingsGoods([...this.tmpBox]) this.replaceThings({ name: this.myMap, idArr: [...this.boxStart] })
this.outThings({ name: this.myMap, idArr: [...this.tmpBox]}) this.replaceThingsGoods( [...this.boxStart2] )
this.outThingsGoods([...this.tmpBox2])
this.pushThings({ name: this.myMap, idArr: [...this.tmpBox2]})
} }
this.receptionList = []; this.receptionList = [];
@ -1459,10 +1415,26 @@ export default {
} }
}else { }else {
let formList = [] let formList = []
this.toggleGoods() // this.toggleGoods()
this.$message.success(`${this.popText}操作成功!`) // this.$message.success(`${this.popText}`)
if (this.nbm == 0){ // if (this.nbm == 0){ //
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,9,"+this.goodState[i].id,"type": ""})}
let params= {
parentId: '285,287,12',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
}else if (this.nbm == 1){ // }else if (this.nbm == 1){ //
let projectId = sessionStorage.getItem('projectId') let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime') let startTime = sessionStorage.getItem('startTime')
@ -1563,26 +1535,12 @@ export default {
return 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": ""})}
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] const sealArr = [...this.sealChecked]
this.stampJudge(sealArr) this.stampJudge(sealArr)
this.sealChecked = []
// this.sealChecked = []
// this.$store.commit('system/changePop', {show: false, text: ''})
}else if (this.nbm == 6){ // }else if (this.nbm == 6){ //
let projectId = sessionStorage.getItem('projectId') let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime') let startTime = sessionStorage.getItem('startTime')
@ -1607,7 +1565,7 @@ export default {
let startTime = sessionStorage.getItem('startTime') 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,10,"+this.goodState[i].id,"type": ""})} for (var i=0;i<this.goodState.length;i++){formList.push({"answerId":this.goodState[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "285,287,10,"+this.goodState[i].id,"type": ""})}
let params= { let params= {
parentId:'0,10', parentId:'285,287,10',
lcJudgmentRuleReq:formList, lcJudgmentRuleReq:formList,
projectId:+projectId, projectId:+projectId,
startTime:startTime, startTime:startTime,
@ -1640,9 +1598,9 @@ export default {
}else if (this.nbm == 9){// }else if (this.nbm == 9){//
let projectId = sessionStorage.getItem('projectId') let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime') let startTime = sessionStorage.getItem('startTime')
for (var i=0;i<this.goodState.length;i++){formList.push({"answerId":this.goodState[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,11,"+this.goodState[i].id,"type": ""})} for (var i=0;i<this.goodState.length;i++){formList.push({"answerId":this.goodState[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "285,287,11,"+this.goodState[i].id,"type": ""})}
let params= { let params= {
parentId:'0,11', parentId:'285,287,11',
lcJudgmentRuleReq:formList, lcJudgmentRuleReq:formList,
projectId:+projectId, projectId:+projectId,
startTime:startTime, startTime:startTime,
@ -1657,9 +1615,9 @@ export default {
}else if (this.nbm == 10){ // }else if (this.nbm == 10){ //
let projectId = sessionStorage.getItem('projectId') let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime') 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": ""})} for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "285,287,6,"+this.receptionList[i].id,"type": ""})}
let params= { let params= {
parentId:'0,6', parentId:'285,287,6',
lcJudgmentRuleReq:formList, lcJudgmentRuleReq:formList,
projectId:+projectId, projectId:+projectId,
startTime:startTime, startTime:startTime,
@ -1674,9 +1632,9 @@ export default {
}else if (this.nbm == 11){ // }else if (this.nbm == 11){ //
let projectId = sessionStorage.getItem('projectId') let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime') 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,7,"+this.receptionList[i].id,"type": ""})} for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "285,287,7,"+this.receptionList[i].id,"type": ""})}
let params= { let params= {
parentId:'0,7', parentId:'285,287,7',
lcJudgmentRuleReq:formList, lcJudgmentRuleReq:formList,
projectId:+projectId, projectId:+projectId,
startTime:startTime, startTime:startTime,
@ -1692,11 +1650,21 @@ export default {
// this.goodsShelfTotalData = this.auditGoodsShelf // this.goodsShelfTotalData = this.auditGoodsShelf
} }
this.$store.commit('system/changePop',{show:false,text:''}) // //
if(this.nbm !== 4 && this.nbm!== 1 && this.nbm!== 5) {
const tmpGoods = this.goodState.map(item => item.id)
this.pushThingsGoods([...tmpGoods])
this.outThings({name: this.myMap, idArr: [ ...tmpGoods ]})
}
// this.$store.commit('system/changePop',{show:false,text:''}) //
} }
// this.closePop() // this.closePop()
// } // }
if(this.nbm !== 5) {
//
this.$store.commit('system/changePop', {show: false, text: ''}) this.$store.commit('system/changePop', {show: false, text: ''})
}
}, },
toPart(){ toPart(){
@ -2997,6 +2965,19 @@ export default {
.else{ .else{
width: 100%; width: 100%;
} }
.img-wrap2{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
cursor: pointer;
img {
width: 300px;
height: 200px;
}
}
} }
.dia-footer { .dia-footer {
margin-top: 140px; margin-top: 140px;

@ -47,7 +47,11 @@ export default {
lazy7: require('@/assets/svg/coming.svg') lazy7: require('@/assets/svg/coming.svg')
} }
}, },
created() {
if(!this.businessKey) {
this.setShowBusiness(true)
}
},
mounted() { mounted() {
let token = this.getQueryVariable('token') let token = this.getQueryVariable('token')
let cid = this.getQueryVariable('cid') let cid = this.getQueryVariable('cid')
@ -63,7 +67,8 @@ export default {
}, },
computed: { computed: {
...mapState({ ...mapState({
showBusiness: state => state.system.showBusiness showBusiness: state => state.system.showBusiness,
businessKey: state => state.system.businessKey
}) })
}, },
methods: { methods: {

@ -7,7 +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" disabled placeholder="请选择" ref="idType"> <el-select v-model="form.idType" placeholder="请选择" ref="idType">
<el-option <el-option
v-for="(item,index) in papers" v-for="(item,index) in papers"
:key="index" :key="index"
@ -28,7 +28,7 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="通讯地址"> <el-form-item label="通讯地址">
<el-input :value="form.mailbox" @input="val => mailBoxListen(val, form, 'mailbox')" maxlength="40" ref="mailbox"></el-input> <el-input :value="form.mailbox" @input="val => mailBoxListen(val, form, 'mailbox')" maxlength="30" ref="mailbox"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
@ -48,7 +48,7 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="民族"> <!-- <el-form-item label="民族">
<el-select v-model="form.nationality" placeholder="请选择" ref="nationality"> <el-select v-model="form.nationality" placeholder="请选择" ref="nationality">
<el-option <el-option
v-for="(item,index) in nations" v-for="(item,index) in nations"
@ -57,7 +57,7 @@
:value="item.itemId"> :value="item.itemId">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </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>

@ -26,45 +26,62 @@ const allGoods = {
172: {name:'存款凭条回单',src:require('@/assets/img/goods/ckpt.png'),id:172}, 172: {name:'存款凭条回单',src:require('@/assets/img/goods/ckpt.png'),id:172},
'取款凭条凭证联': {name:'取款凭条凭证联',src:require('@/assets/img/goods/qkpt.png'),id:'取款凭条凭证联'}, '取款凭条凭证联': {name:'取款凭条凭证联',src:require('@/assets/img/goods/qkpt.png'),id:'取款凭条凭证联'},
'取款凭条回单': {name:'取款凭条回单',src:require('@/assets/img/goods/qkpt.png'),id:'取款凭条回单'}, '取款凭条回单': {name:'取款凭条回单',src:require('@/assets/img/goods/qkpt.png'),id:'取款凭条回单'},
'转账凭条凭证联': {name:'转账凭条凭证联',src:require('@/assets/img/goods/zzpt.png'),id:'转账凭条凭证联'}, '转账凭条凭证联': {name:'转账凭条凭证联',src:require('@/assets/img/goods/zzpt.png'),id:'转账凭条凭证联'},
'转账凭条回单': {name:'转账凭条回单',src:require('@/assets/img/goods/zzpt.png'),id:'转账凭条回单'}, '转账凭条回单': {name:'转账凭条回单',src:require('@/assets/img/goods/zzpt.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/lxqd.png'),id:'利息清单回单'}, '利息清单回单': {name:'利息清单回单',src:require('@/assets/img/goods/lxqd.png'),id:'利息清单回单'},
231: {name:'盖过章的复印件',src:require('@/assets/img/idCard-copy-sm.png'),id:231},
191: {name:'旧定期存单',src:require('@/assets/img/seal/paid.png'),id:191}, 191: {name:'旧定期存单',src:require('@/assets/img/seal/paid.png'),id:191},
192: {name:'新定期存单',src:require('@/assets/img/seal/paid.png'),id:192}, 192: {name:'新定期存单',src:require('@/assets/img/seal/paid.png'),id:192},
193: {name:'新定期存单凭证联',src:require('@/assets/img/seal/paid.png'),id:193}, 193: {name:'新定期存单凭证联',src:require('@/assets/img/seal/paid.png'),id:193},
194: {name:'新定期存单回单',src:require('@/assets/img/seal/paid.png'),id:194}, 194: {name:'新定期存单回单',src:require('@/assets/img/seal/paid.png'),id:194},
// 业务 10 以后的 // 业务 10 以后的
'法人身份证': {name:'法人身份证',src:require('@/assets/img/goods/idcard.png'),id:'法人身份证'}, '法人身份证': {name:'法人身份证',src:require('@/assets/img/goods/idcard.png'),id:'法人身份证'},
'法人身份证复印件': {name:'法人身份证复印件',src:require('@/assets/img/idCard-copy-sm.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/ApplicationBankSettlement.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/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/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/ApplicationBankSettlement.png'),id:'开立银行结算账户申请书凭证联'},
'开立银行接算账户申请书回单': {name:'开立银行接算账户申请书回单',src:require('@/assets/img/goods/khsqs.png'),id:'开立银行接算账户申请书回单'}, '开立银行结算账户申请书回单': {name:'开立银行结算账户申请书回单',src:require('@/assets/img/goods/ApplicationBankSettlement.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/CashCertificate.png'),id:'现金存款凭证'},
'现金存款凭证回单': {name:'现金存款凭证回单',src:require('@/assets/img/goods/khsqs.png'),id:'现金存款凭证回单'}, '现金存款凭证联': {name:'现金存款凭证联',src:require('@/assets/img/goods/CashCertificate.png'),id:'现金存款凭证联'},
'现金支票本联': {name:'现金支票本联',src:require('@/assets/img/goods/khsqs.png'),id:'现金支票本联'}, '现金存款凭证回单': {name:'现金存款凭证回单',src:require('@/assets/img/goods/CashCertificate.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/xjzp.png'),id:'现金支票本联'},
'转账支票存根': {name:'转账支票存根',src:require('@/assets/img/goods/khsqs.png'),id:'转账支票存根'}, '现金支票存根': {name:'现金支票存根',src:require('@/assets/img/goods/xjzp.png'),id:'现金支票存根'},
'特殊业务申请书': {name:'特殊业务申请书',src:require('@/assets/img/goods/khsqs.png'),id:'特殊业务申请书'}, '转账支票本联': {name:'转账支票本联',src:require('@/assets/img/goods/sy-zzzp.png'),id:'转账支票本联'},
'特殊业务申请书凭证联': {name:'特殊业务申请书凭证联',src:require('@/assets/img/goods/khsqs.png'),id:'特殊业务申请书凭证联'}, '转账支票存根': {name:'转账支票存根',src:require('@/assets/img/goods/sy-zzzp.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/businessSpecialApplication.png'),id:'特殊业务申请书'},
'密码挂失申请书凭证联': {name:'密码挂失申请书凭证联',src:require('@/assets/img/goods/khsqs.png'),id:'密码挂失申请书凭证联'}, '特殊业务申请书凭证联': {name:'特殊业务申请书凭证联',src:require('@/assets/img/goods/businessSpecialApplication.png'),id:'特殊业务申请书凭证联'},
'密码挂失申请书回单': {name:'密码挂失申请书回单',src:require('@/assets/img/goods/khsqs.png'),id:'密码挂失申请书回单'}, '特殊业务申请书回单': {name:'特殊业务申请书回单',src:require('@/assets/img/goods/businessSpecialApplication.png'),id:'特殊业务申请书回单'},
'密码挂失申请书银行留存联': {name:'密码挂失申请书银行留存联',src:require('@/assets/img/goods/khsqs.png'),id:'密码挂失申请书银行留存联'}, '密码挂失申请书': {name:'密码挂失申请书',src:require('@/assets/img/goods/businessReportMissUser.png'),id:'密码挂失申请书'},
'支票领购单': {name:'支票领购单',src:require('@/assets/img/goods/khsqs.png'),id:'支票领购单'}, '密码挂失申请书凭证联': {name:'密码挂失申请书凭证联',src:require('@/assets/img/goods/businessReportMissUser.png'),id:'密码挂失申请书凭证联'},
'支票领购单回单': {name:'支票领购单回单',src:require('@/assets/img/goods/khsqs.png'),id:'支票领购单回单'}, '密码挂失申请书回单': {name:'密码挂失申请书回单',src:require('@/assets/img/goods/businessReportMissUser.png'),id:'密码挂失申请书回单'},
'支票领购单凭证联': {name:'支票领购单凭证联',src:require('@/assets/img/goods/khsqs.png'),id:'支票领购单凭证联'}, '密码挂失申请书银行留存联': {name:'密码挂失申请书银行留存联',src:require('@/assets/img/goods/businessReportMissUser.png'),id:'密码挂失申请书银行留存联'},
'业务收费凭证回单': {name:'业务收费凭证回单',src:require('@/assets/img/goods/khsqs.png'),id:'业务收费凭证回单'}, '支票领购单': {name:'支票领购单',src:require('@/assets/img/goods/businessReportMissUser.png'),id:'支票领购单'},
'业务收费凭证凭证联': {name:'业务收费凭证凭证联',src:require('@/assets/img/goods/khsqs.png'),id:'业务收费凭证凭证联'}, '支票领购单回单': {name:'支票领购单回单',src:require('@/assets/img/goods/businessReportMissUser.png'),id:'支票领购单回单'},
'支票领购单凭证联': {name:'支票领购单凭证联',src:require('@/assets/img/goods/businessReportMissUser.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/businessSpecialApplication.png'),id:'特殊业务申请书'},
// '密码挂失申请书': {name:'密码挂失申请书',src:require('@/assets/img/goods/businessReportMissUser.png'),id:'密码挂失申请书'},
// '开立银行结算账户申请书': {name:'开立银行结算账户申请书',src:require('@/assets/img/goods/ApplicationBankSettlement.png'),id:'开立银行结算账户申请书'},
// '现金存款凭证': {name:'现金存款凭证',src:require('@/assets/img/goods/CashCertificate.png'),id:'现金存款凭证'},
// '支票领购单': {name:'支票领购单',src:require('@/assets/img/goods/CheckCoupons.png'),id:'支票领购单'},
// '转账支票存根': {name:'转账支票存根',src:require('@/assets/img/goods/sy-zzzp.png'),id:'转账支票存根'},
// '现金支票存根': {name:'现金支票存根',src:require('@/assets/img/goods/xjzp.png'),id:'现金支票存根'},
} }
const myInitState = { const myInitState = {
@ -292,14 +309,14 @@ const myInitState = {
commonArr: [], // 普通凭证箱 commonArr: [], // 普通凭证箱
}, },
'项目十一': { '项目十一': {
data: [ '法人身份证', '法人身份证复印件', '开立银行算账户申请书', '统一社会信用代码证', '统一社会信用代码证复印件', '开户许可证', '开户许可证复印件' ], data: [ '法人身份证', '法人身份证复印件', '开立银行算账户申请书', '统一社会信用代码证', '统一社会信用代码证复印件', '开户许可证', '开户许可证复印件' ],
needs: [ '普通空白凭证', '预留印鉴卡' ], // 多了普通空白凭证, 预留印鉴卡 needs: [ '普通空白凭证', '预留印鉴卡' ], // 多了普通空白凭证, 预留印鉴卡
isStamp: { isStamp: {
'业务专用章': [ '开立银行算账户申请书', '普通空白凭证' ], '业务专用章': [ '开立银行算账户申请书', '普通空白凭证' ],
'附件章': [ '统一社会信用代码证复印件', '开户许可证复印件', '法人身份证复印件' ], '附件章': [ '统一社会信用代码证复印件', '开户许可证复印件', '法人身份证复印件' ],
'私章': [ '预留印鉴卡' ] '私章': [ '预留印鉴卡' ]
}, },
backPeople: [ '法人身份证', '统一社会信用代码证', '开户许可证', '预留印鉴卡', '开立银行算账户申请书回单' ], // 少了法人身份证原件、统一社会信用代码证、开户许可证、预留印鉴卡一、开立银行结算账户申请书凭证联回单 backPeople: [ '法人身份证', '统一社会信用代码证', '开户许可证', '预留印鉴卡', '开立银行算账户申请书回单' ], // 少了法人身份证原件、统一社会信用代码证、开户许可证、预留印鉴卡一、开立银行结算账户申请书凭证联回单
cultureArr: [ '法人身份证复印件', '开立银行结算账户申请书凭证联', '统一社会信用代码证复印件', '开户许可证复印件', '普通空白凭证', '预留印鉴卡' ], // 少了法人身份证复印件、开立银行结算账户申请书凭证联、统一社会信用代码证复印件、开户许可证复印件、普通空白凭证、预留印鉴卡二、三 cultureArr: [ '法人身份证复印件', '开立银行结算账户申请书凭证联', '统一社会信用代码证复印件', '开户许可证复印件', '普通空白凭证', '预留印鉴卡' ], // 少了法人身份证复印件、开立银行结算账户申请书凭证联、统一社会信用代码证复印件、开户许可证复印件、普通空白凭证、预留印鉴卡二、三
moneyBox: [ ], // 钱箱 moneyBox: [ ], // 钱箱
@ -642,7 +659,7 @@ const sealArray = [/* 印章盒物品默认排序 */
] ]
import { Message } from 'element-ui'; import { Message } from 'element-ui';
import { addOperation } from '@/api/http';
export default { export default {
namespaced: true, namespaced: true,
state: {/* 管理柜台状态 */ state: {/* 管理柜台状态 */
@ -650,11 +667,12 @@ export default {
popText:'', popText:'',
fullScreen:false,// 银行系统是否全屏 fullScreen:false,// 银行系统是否全屏
showGoods: false, // 物品栏的展开和关闭 showGoods: false, // 物品栏的展开和关闭
// 业务选择表: // 业务选择表: (要保存的)
businessKey: '', businessKey: '',
// 业务选择表是否展示: // 业务选择表是否展示:
showBusiness: false, showBusiness: false,
// (要保存的)
businessSelect: { businessSelect: {
'': { '': {
data: [], data: [],
@ -880,14 +898,14 @@ export default {
commonArr: [], // 普通凭证箱 commonArr: [], // 普通凭证箱
}, },
'项目十一': { '项目十一': {
data: [ '法人身份证', '法人身份证复印件', '开立银行算账户申请书', '统一社会信用代码证', '统一社会信用代码证复印件', '开户许可证', '开户许可证复印件' ], data: [ '法人身份证', '法人身份证复印件', '开立银行算账户申请书', '统一社会信用代码证', '统一社会信用代码证复印件', '开户许可证', '开户许可证复印件' ],
needs: [ '普通空白凭证', '预留印鉴卡' ], // 多了普通空白凭证, 预留印鉴卡 needs: [ '普通空白凭证', '预留印鉴卡' ], // 多了普通空白凭证, 预留印鉴卡
isStamp: { isStamp: {
'业务专用章': [ '开立银行算账户申请书', '普通空白凭证' ], '业务专用章': [ '开立银行算账户申请书', '普通空白凭证' ],
'附件章': [ '统一社会信用代码证复印件', '开户许可证复印件', '法人身份证复印件' ], '附件章': [ '统一社会信用代码证复印件', '开户许可证复印件', '法人身份证复印件' ],
'私章': [ '预留印鉴卡' ] '私章': [ '预留印鉴卡' ]
}, },
backPeople: [ '法人身份证', '统一社会信用代码证', '开户许可证', '预留印鉴卡', '开立银行算账户申请书回单' ], // 少了法人身份证原件、统一社会信用代码证、开户许可证、预留印鉴卡一、开立银行结算账户申请书凭证联回单 backPeople: [ '法人身份证', '统一社会信用代码证', '开户许可证', '预留印鉴卡', '开立银行算账户申请书回单' ], // 少了法人身份证原件、统一社会信用代码证、开户许可证、预留印鉴卡一、开立银行结算账户申请书凭证联回单
cultureArr: [ '法人身份证复印件', '开立银行结算账户申请书凭证联', '统一社会信用代码证复印件', '开户许可证复印件', '普通空白凭证', '预留印鉴卡' ], // 少了法人身份证复印件、开立银行结算账户申请书凭证联、统一社会信用代码证复印件、开户许可证复印件、普通空白凭证、预留印鉴卡二、三 cultureArr: [ '法人身份证复印件', '开立银行结算账户申请书凭证联', '统一社会信用代码证复印件', '开户许可证复印件', '普通空白凭证', '预留印鉴卡' ], // 少了法人身份证复印件、开立银行结算账户申请书凭证联、统一社会信用代码证复印件、开户许可证复印件、普通空白凭证、预留印鉴卡二、三
moneyBox: [ ], // 钱箱 moneyBox: [ ], // 钱箱
@ -1265,28 +1283,36 @@ export default {
setShowBusiness(state, isShow) { setShowBusiness(state, isShow) {
state.showBusiness = isShow state.showBusiness = isShow
}, },
replaceThingsGoods(state, idArr) {
state.businessSelect[state.businessKey].data.splice(0, state.businessSelect[state.businessKey].data.length, ...idArr)
},
replaceThings(state, { name, idArr }) {
console.log(idArr)
state.businessSelect[state.businessKey][name].splice(0, state.businessSelect[state.businessKey][name].length, ...idArr)
console.log('替换后')
console.log(state.businessSelect[state.businessKey][name])
},
pushThings(state, { name, idArr}) { pushThings(state, { name, idArr}) {
if(name === 'sealBox') { // 印章盒只能放一个东西 if(name === 'sealBox') { // 印章盒只能放一个东西
const sealBox = state.businessSelect[state.businessKey][name] const sealBox = state.businessSelect[state.businessKey][name]
if(sealBox.length === 1) { if(sealBox.length === 1) {
this.commit('system/pushThingsGoods', [...sealBox]) this.commit('system/pushThingsGoods', [...sealBox])
state.businessSelect[state.businessKey][name].splice(0, 1, idArr) state.businessSelect[state.businessKey][name].splice(0, 1, idArr[0])
}else { }else {
state.businessSelect[state.businessKey][name].push(idArr) state.businessSelect[state.businessKey][name].push(idArr[0])
} }
}else { }else {
if(!(idArr instanceof Array)) { for(let i=0; i<idArr.length; i++) {
state.businessSelect[state.businessKey][name].push(idArr) const index = state.businessSelect[state.businessKey][name].findIndex(item => item === idArr[i])
}else { if(index === -1) {
state.businessSelect[state.businessKey][name].push(...idArr) state.businessSelect[state.businessKey][name].push(...idArr)
} }
} }
}
}, },
pushThingsGoods(state, idArr) { pushThingsGoods(state, idArr) {
for(let i=0; i<idArr.length; i++) { for(let i=0; i<idArr.length; i++) {
const index = state.businessSelect[state.businessKey].data.findIndex(item => item === idArr[i]) const index = state.businessSelect[state.businessKey].data.findIndex(item => item === idArr[i])
console.log(index)
if(index === -1) { if(index === -1) {
state.businessSelect[state.businessKey].data.push(idArr[i]) state.businessSelect[state.businessKey].data.push(idArr[i])
} }
@ -1345,9 +1371,11 @@ export default {
} }
}, },
stampJudge(state, sealArr) { stampJudge(state, sealArr) {
const needStamp = state.businessSelect[state.businessKey].isStamp const needStamp = state.businessSelect[state.businessKey].isStamp
const id = state.businessSelect[state.businessKey].sealBox[0] const id = state.businessSelect[state.businessKey].sealBox[0]
let judgeDelete = true let judgeDelete = true // 盖完章是否变化
let stampSuccess = '' // 盖章成功
if(sealArr.length === 1) { if(sealArr.length === 1) {
const seal = sealArr[0] const seal = sealArr[0]
if((seal in needStamp) && (needStamp[seal].findIndex(item => item === id) >= 0)) { if((seal in needStamp) && (needStamp[seal].findIndex(item => item === id) >= 0)) {
@ -1355,78 +1383,86 @@ export default {
if(id === 14) { if(id === 14) {
state.businessSelect[state.businessKey].data.push(141, 142) state.businessSelect[state.businessKey].data.push(141, 142)
judgeDelete = false judgeDelete = false
stampSuccess = '18'
}else if(id === 192) { }else if(id === 192) {
console.log('加分 没变成什么') stampSuccess = '449'
}else if(id === 19) { }else if(id === 19) {
console.log('加分 没变成什么') stampSuccess = '19'
}else if(id === '开立银行算账户申请书') { }else if(id === '开立银行算账户申请书') {
state.businessSelect[state.businessKey].data.push('开立银行接算账户申请书凭证联', '开立银行接算账户申请书回单') state.businessSelect[state.businessKey].data.push('开立银行结算账户申请书凭证联', '开立银行结算账户申请书回单')
judgeDelete = false judgeDelete = false
stampSuccess = '452'
}else if (id === '普通空白凭证') { }else if (id === '普通空白凭证') {
console.log('加分 没变成什么') stampSuccess = '465'
}else if(id === '转账凭条') { }else if(id === '转账凭条') {
state.businessSelect[state.businessKey].data.push('转账凭条凭证联', '转账凭条回单') state.businessSelect[state.businessKey].data.push('转账凭条凭证联', '转账凭条回单')
judgeDelete = false judgeDelete = false
stampSuccess = '458'
}else if(id === '特殊业务申请书') { }else if(id === '特殊业务申请书') {
state.businessSelect[state.businessKey].data.push('特殊业务申请书凭证联', '特殊业务申请书回单') state.businessSelect[state.businessKey].data.push('特殊业务申请书凭证联', '特殊业务申请书回单')
judgeDelete = false judgeDelete = false
stampSuccess = '459'
}else if(id === '密码挂失申请书') { }else if(id === '密码挂失申请书') {
state.businessSelect[state.businessKey].data.push('密码挂失申请书凭证联', '密码挂失申请书回单', '密码挂失申请书银行留存联') state.businessSelect[state.businessKey].data.push('密码挂失申请书凭证联', '密码挂失申请书回单', '密码挂失申请书银行留存联')
judgeDelete = false judgeDelete = false
stampSuccess = '460'
}else if(id === '密码挂失申请书银行留存联') { }else if(id === '密码挂失申请书银行留存联') {
console.log('加分 没变成什么') stampSuccess = '461'
}else if(id === '支票领购单') { }else if(id === '支票领购单') {
state.businessSelect[state.businessKey].data.push('支票领购单凭证联', '支票领购单回单') state.businessSelect[state.businessKey].data.push('支票领购单凭证联', '支票领购单回单')
judgeDelete = false judgeDelete = false
stampSuccess = '463'
}else if(id === '业务收费凭证') { }else if(id === '业务收费凭证') {
state.businessSelect[state.businessKey].data.push('业务收费凭证凭证联', '业务收费凭证回单') state.businessSelect[state.businessKey].data.push('业务收费凭证凭证联', '业务收费凭证回单')
judgeDelete = false judgeDelete = false
stampSuccess = '464'
} }
// [ '支票领购单', '业务收费凭证' ]
}else if(seal === '付讫章') { }else if(seal === '付讫章') {
if(id === '取款凭条') { if(id === '取款凭条') {
state.businessSelect[state.businessKey].data.push('取款凭条凭证联', '取款凭条回单') state.businessSelect[state.businessKey].data.push('取款凭条凭证联', '取款凭条回单')
judgeDelete = false judgeDelete = false
stampSuccess = '444'
} }
else if(id === '利息清单') { else if(id === '利息清单') {
state.businessSelect[state.businessKey].data.push('利息清单凭证联', '利息清单回单') state.businessSelect[state.businessKey].data.push('利息清单凭证联', '利息清单回单')
judgeDelete = false judgeDelete = false
stampSuccess = '445'
} }
}else if(seal === '转讫章') { }else if(seal === '转讫章') {
if(id === '转账凭条') { if(id === '转账凭条') {
state.businessSelect[state.businessKey].data.push('转账凭条凭证联', '转账凭条回单') state.businessSelect[state.businessKey].data.push('转账凭条凭证联', '转账凭条回单')
judgeDelete = false judgeDelete = false
stampSuccess = '446'
} }
}else if(seal === '附件章') { }else if(seal === '附件章') {
if(id === 23) { if(id === 23) {
console.log('加分 没变成什么') stampSuccess = '20'
// state.businessSelect[state.businessKey].data.push(231)
// judgeDelete = false
}else if(id === '统一社会信用代码证复印件') { }else if(id === '统一社会信用代码证复印件') {
console.log('加分 没变成什么') stampSuccess = '435'
}else if(id === '开户许可证复印件') { }else if(id === '开户许可证复印件') {
console.log('加分 没变成什么') stampSuccess = '437'
}else if(id === '法人身份证复印件') { }else if(id === '法人身份证复印件') {
console.log('加分 没变成什么') stampSuccess = '484'
}else if(id === '密码挂失申请书回单') { }else if(id === '密码挂失申请书回单') {
console.log('加分 没变成什么') stampSuccess = '462'
} }
// '统一社会信用代码证复印件', '开户许可证复印件', '法人身份证复印件'
}else if(seal === '收讫章') { }else if(seal === '收讫章') {
if(id === 17) { if(id === 17) {
state.businessSelect[state.businessKey].data.push(171, 172) state.businessSelect[state.businessKey].data.push(171, 172)
judgeDelete = false judgeDelete = false
stampSuccess = '447'
}else if(id === '现金存款凭证') { }else if(id === '现金存款凭证') {
state.businessSelect[state.businessKey].data.push('现金存款凭证联', '现金存款凭证回单') state.businessSelect[state.businessKey].data.push('现金存款凭证联', '现金存款凭证回单')
judgeDelete = false judgeDelete = false
stampSuccess = '455'
} }
}else if(seal === '销户章') { }else if(seal === '销户章') {
if(id === 191) { if(id === 191) {
console.log('加分了 没变成什么') stampSuccess = '448'
} }
}else if(seal === '私章') { }else if(seal === '私章') {
if(id === '预留印鉴卡') { if(id === '预留印鉴卡') {
console.log('加分 没变成什么') stampSuccess = '454'
} }
} }
} }
@ -1445,19 +1481,45 @@ export default {
if(id === '现金支票') { if(id === '现金支票') {
state.businessSelect[state.businessKey].data.push('现金支票本联', '现金支票存根') state.businessSelect[state.businessKey].data.push('现金支票本联', '现金支票存根')
judgeDelete = false judgeDelete = false
stampSuccess = '456'
} }
}else if(seal === '私章转讫章') { }else if(seal === '私章转讫章') {
if(id === '转账支票') { if(id === '转账支票') {
state.businessSelect[state.businessKey].data.push('转账支票本联', '转账支票存根') state.businessSelect[state.businessKey].data.push('转账支票本联', '转账支票存根')
judgeDelete = false judgeDelete = false
stampSuccess = '457'
} }
} }
} }
} }
if(stampSuccess) {
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
let formList = [ {"answerId":stampSuccess, "emptyOne": "", "emptyTwo": "", "operationIds": "285,287,8,"+stampSuccess,"type": ""} ]
let params= {
parentId:'285,287,8',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
Message.success({
center: true,
message: '盖章成功'
})
if(judgeDelete) { if(judgeDelete) {
this.commit('system/pushThingsGoods', [...state.businessSelect[state.businessKey].sealBox]) this.commit('system/pushThingsGoods', [...state.businessSelect[state.businessKey].sealBox])
} }
state.businessSelect[state.businessKey].sealBox.splice(0, 1) state.businessSelect[state.businessKey].sealBox.splice(0, 1)
}).catch((error)=>{
})
}else {
Message.info({
center: true,
message: '盖章失败,请检查印章或证件是否正确'
})
}
}, },
setBusinessKey: (state, val) => { setBusinessKey: (state, val) => {
// 这个是容错的 后面可以删掉 // 这个是容错的 后面可以删掉
@ -1467,6 +1529,10 @@ export default {
} }
state.businessKey = val state.businessKey = val
}, },
setBusinessSelect(state, val) {
state.businessSelect = val
},
addGoods: (state, goods) => { addGoods: (state, goods) => {
if(!(goods instanceof Array)) { if(!(goods instanceof Array)) {
goods = [ goods ] goods = [ goods ]

@ -121,7 +121,7 @@ const myValidate = (callback, refs) => {
} }
const autoPlay = (parentId, form, myTable2, myTable, cards=[]) => { const autoPlay = (parentId, form, myTable2, myTable, cards=[]) => {
let projectId = sessionStorage.getItem('projectId') let projectId = sessionStorage.getItem('projectId') || 11 // 默认11吧?
let startTime = sessionStorage.getItem('startTime') let startTime = sessionStorage.getItem('startTime')
let formList = []; let formList = [];
// let tmpIndex = 100; // let tmpIndex = 100;
@ -156,7 +156,7 @@ const autoPlay = (parentId, form, myTable2, myTable, cards=[]) => {
let params= { let params= {
parentId, parentId,
lcJudgmentRuleReq:formList, lcJudgmentRuleReq:formList,
projectId: 11, projectId: projectId,
// projectId:+projectId, // projectId:+projectId,
startTime:startTime, startTime:startTime,
} }
@ -171,7 +171,8 @@ const autoPlay = (parentId, form, myTable2, myTable, cards=[]) => {
}) })
} }
const autoPlay2 = (parentId, form, myTable2, myTable, cardArr) => { const autoPlay2 = (parentId=11, form, myTable2, myTable, cardArr) => {
// 默认11吧?
let param= { let param= {
parentId parentId
} }

@ -35,24 +35,363 @@
// 业务 10 以后的 // 业务 10 以后的
'法人身份证': {name:'法人身份证',src:require('@/assets/img/goods/idcard.png'),id:'法人身份证'}, '法人身份证': {name:'法人身份证',src:require('@/assets/img/goods/idcard.png'),id:'法人身份证'},
'法人身份证复印件': {name:'法人身份证复印件',src:require('@/assets/img/idCard-copy-sm.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/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/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:'特殊业务申请书'},
'特殊业务申请书凭证联': {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/businessSpecialApplication.png'),id:'特殊业务申请书'},
'密码挂失申请书': {name:'密码挂失申请书',src:require('@/assets/img/goods/businessReportMissUser.png'),id:'密码挂失申请书'},
'开立银行接算账户申请书': {name:'开立银行接算账户申请书',src:require('@/assets/img/goods/ApplicationBankSettlement.png'),id:'开立银行接算账户申请书'},
'现金存款凭证': {name:'现金存款凭证',src:require('@/assets/img/goods/CashCertificate.png'),id:'现金存款凭证'},
'支票领购单': {name:'支票领购单',src:require('@/assets/img/goods/CheckCoupons.png'),id:'支票领购单'},
'转账支票存根': {name:'转账支票存根',src:require('@/assets/img/goods/sy-zzzp.png'),id:'转账支票存根'},
'现金支票存根': {name:'现金支票存根',src:require('@/assets/img/goods/xjzp.png'),id:'现金支票存根'},
"id": 8,
"name": "印章盒",
"parentId": "287",
"number": 403,
"isNode": 0,
"isDel": 0,
"createTime": "2021-08-16 10:37:40",
"updateTime": "2021-08-16 10:37:43",
"children": [
{
"id": 18,
"name": "开户申请书(业务专用章)",
"parentId": "8",
"number": 404,
"isNode": 1,
"isDel": 0,
"createTime": "2021-08-16 10:52:16",
"updateTime": "2021-08-16 10:52:24",
"children": []
},
{
"id": 19,
"name": "定期存单(业务专用章)",
"parentId": "8",
"number": 405,
"isNode": 1,
"isDel": 0,
"createTime": "2021-08-16 10:52:18",
"updateTime": "2021-08-16 10:52:27",
"children": []
},
{
"id": 20,
"name": "身份证复印件(附件章)",
"parentId": "8",
"number": 406,
"isNode": 1,
"isDel": 0,
"createTime": "2021-08-16 10:52:22",
"updateTime": "2021-08-16 10:52:29",
"children": []
},
{
"id": 432,
"name": "开立银行结算账户申请书凭证联",
"parentId": "4,8,12",
"number": 407,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-10 11:13:45",
"updateTime": "2022-01-10 11:13:47",
"children": []
},
{
"id": 433,
"name": "开立银行结算账户申请书凭证联回单",
"parentId": "4,8,12",
"number": 408,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-10 11:14:11",
"updateTime": "2022-01-10 11:14:13",
"children": []
},
{
"id": 434,
"name": "统一社会信用代码证",
"parentId": "4,8,12",
"number": 409,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-10 11:14:30",
"updateTime": "2022-01-10 11:14:32",
"children": []
},
{
"id": 435,
"name": "统一社会信用代码证复印件",
"parentId": "4,8,12",
"number": 410,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-10 11:14:47",
"updateTime": "2022-01-10 11:14:49",
"children": []
},
{
"id": 437,
"name": "开户许可证复印件",
"parentId": "8",
"number": 411,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-10 11:15:18",
"updateTime": "2022-01-10 11:15:19",
"children": []
},
{
"id": 444,
"name": "取款凭条(付讫章)",
"parentId": "8",
"number": 412,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:18:58",
"updateTime": "2022-01-11 10:19:00",
"children": []
},
{
"id": 445,
"name": "利息清单(付讫章)",
"parentId": "8",
"number": 413,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:19:24",
"updateTime": "2022-01-11 10:19:26",
"children": []
},
{
"id": 446,
"name": "转账凭条(转讫章)",
"parentId": "8",
"number": 414,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:19:40",
"updateTime": "2022-01-11 10:19:41",
"children": []
},
{
"id": 447,
"name": "存款凭条(收讫章)",
"parentId": "8",
"number": 415,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:20:35",
"updateTime": "2022-01-11 10:20:37",
"children": []
},
{
"id": 448,
"name": "旧定期存单(销户章)",
"parentId": "8",
"number": 416,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:21:03",
"updateTime": "2022-01-11 10:21:04",
"children": []
},
{
"id": 449,
"name": "新定期存单(业务专用章)",
"parentId": "8",
"number": 417,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:21:20",
"updateTime": "2022-01-11 10:21:22",
"children": []
},
{
"id": 451,
"name": "定期存单(销户章)",
"parentId": "8",
"number": 418,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:23:36",
"updateTime": "2022-01-11 10:23:37",
"children": []
},
{
"id": 452,
"name": "开立银行结算账户申请书(业务专用章)",
"parentId": "8",
"number": 419,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:24:03",
"updateTime": "2022-01-11 10:24:05",
"children": []
},
{
"id": 453,
"name": "空白凭证(业务专用章)",
"parentId": "8",
"number": 420,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:24:20",
"updateTime": "2022-01-11 10:24:22",
"children": []
},
{
"id": 454,
"name": "预留印鉴卡一(私账)",
"parentId": "8",
"number": 421,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:24:59",
"updateTime": "2022-01-11 10:25:01",
"children": []
},
{
"id": 455,
"name": "现金存款凭证(收讫章)",
"parentId": "8",
"number": 422,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:25:33",
"updateTime": "2022-01-11 10:25:34",
"children": []
},
{
"id": 456,
"name": "现金支票(私章、业务专用章)",
"parentId": "8",
"number": 423,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:25:53",
"updateTime": "2022-01-11 10:25:54",
"children": []
},
{
"id": 457,
"name": "转账支票(转讫章、私章)",
"parentId": "8",
"number": 424,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:26:23",
"updateTime": "2022-01-11 10:26:25",
"children": []
},
{
"id": 458,
"name": "转账凭条(业务专用章)",
"parentId": "8",
"number": 425,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:26:40",
"updateTime": "2022-01-11 10:26:42",
"children": []
},
{
"id": 459,
"name": "特殊业务申请书(业务专用章)",
"parentId": "8",
"number": 426,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:27:08",
"updateTime": "2022-01-11 10:27:09",
"children": []
},
{
"id": 460,
"name": "密码挂失申请书(业务专用章)",
"parentId": "8",
"number": 427,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:27:32",
"updateTime": "2022-01-11 10:27:33",
"children": []
},
{
"id": 461,
"name": "密码挂失申请书银行留存联(业务专用章)",
"parentId": "8",
"number": 428,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:27:55",
"updateTime": "2022-01-11 10:27:58",
"children": []
},
{
"id": 462,
"name": "密码挂失申请书回单(附件章)",
"parentId": "8",
"number": 429,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:28:14",
"updateTime": "2022-01-11 10:28:15",
"children": []
},
{
"id": 463,
"name": "支票领购单(业务专用章)",
"parentId": "8",
"number": 430,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:28:37",
"updateTime": "2022-01-11 10:28:39",
"children": []
},
{
"id": 464,
"name": "业务收费(业务专用章)",
"parentId": "8",
"number": 431,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:28:53",
"updateTime": "2022-01-11 10:28:54",
"children": []
},
{
"id": 465,
"name": "普通空白凭证(业务专用章)",
"parentId": "8",
"number": 432,
"isNode": 1,
"isDel": 0,
"createTime": "2022-01-11 10:29:12",
"updateTime": "2022-01-11 10:29:14",
"children": []
}
]
Loading…
Cancel
Save