20240205
luoJunYong.123 3 years ago
parent 432d524654
commit b86d882969
  1. 13
      src/pages/counter/list/index.vue
  2. 64
      src/store/modules/system.js

@ -1445,10 +1445,17 @@ export default {
type: 'warning'
});
return
}else {
const sealArr = [...this.sealChecked]
this.stampJudge(sealArr)
}
if(this.sealChecked.length === 0) {
this.$message({
message: '请选择印章!',
type: 'warning'
});
return
}
const sealArr = [...this.sealChecked]
this.stampJudge(sealArr)
}
// else if(this.popText == '') {
// for(let i=0; i<this.receptionList.length; i++) {

@ -194,41 +194,41 @@ export default {
},
stampJudge(state, sealArr) {
const needStamp = state.businessSelect[state.businessKey].isStamp
const id = state.businessSelect[state.businessKey].sealBox.length[0]
const id = state.businessSelect[state.businessKey].sealBox[0]
let judge = true
for(let seal in needStamp) {
for(let i=0; i<sealArr.length; i++ ) {
if(sealArr[i] in needStamp && needStamp[sealArr[i]].includes(id)) {
const index = state.businessSelect[state.businessKey].data.findIndex(item => item === id)
if(seal === '业务专用章') {
if(id === 14) {
state.businessSelect[state.businessKey].data.splice(index, 1, 141, 142)
}
else if(id === 17) {
state.businessSelect[state.businessKey].data.splice(index, 1, 171, 172)
}
}else if(seal === '付讫章') {
if(id === '取款凭条') {
// state.businessSelect[state.businessKey].data.splice(index, 1, '取款凭条凭证联', '取款凭条回单')
state.businessSelect[state.businessKey].data.push('取款凭条凭证联', '取款凭条回单')
}
else if(id === '利息清单') {
// state.businessSelect[state.businessKey].data.splice(index, 1, '利息清单凭证联', '利息清单回单')
state.businessSelect[state.businessKey].data.push('利息清单凭证联', '利息清单回单')
}
}else if(seal === '转讫章') {
if(id === '转账凭条') {
// state.businessSelect[state.businessKey].data.splice(index, 1, '转账凭条凭证联', '转账凭条回单')
state.businessSelect[state.businessKey].data.push('转账凭条凭证联', '转账凭条回单')
}
}else if(seal === '附件章') {
if(id === 23) {
// state.businessSelect[state.businessKey].data.splice(index, 1, 231)
state.businessSelect[state.businessKey].data.push(231)
}
for(let i=0; i<sealArr.length; i++ ) {
const seal = sealArr[i]
if(seal in needStamp && needStamp[seal].includes(id)) {
const index = state.businessSelect[state.businessKey].data.findIndex(item => item === id)
if(seal === '业务专用章') {
if(id === 14) {
state.businessSelect[state.businessKey].data.push(141, 142)
}
else if(id === 17) {
state.businessSelect[state.businessKey].data.push(171, 172)
}
}else if(seal === '付讫章') {
if(id === '取款凭条') {
// state.businessSelect[state.businessKey].data.splice(index, 1, '取款凭条凭证联', '取款凭条回单')
state.businessSelect[state.businessKey].data.push('取款凭条凭证联', '取款凭条回单')
}
else if(id === '利息清单') {
// state.businessSelect[state.businessKey].data.splice(index, 1, '利息清单凭证联', '利息清单回单')
state.businessSelect[state.businessKey].data.push('利息清单凭证联', '利息清单回单')
}
}else if(seal === '转讫章') {
if(id === '转账凭条') {
// state.businessSelect[state.businessKey].data.splice(index, 1, '转账凭条凭证联', '转账凭条回单')
state.businessSelect[state.businessKey].data.push('转账凭条凭证联', '转账凭条回单')
}
}else if(seal === '附件章') {
if(id === 23) {
// state.businessSelect[state.businessKey].data.splice(index, 1, 231)
state.businessSelect[state.businessKey].data.push(231)
}
judge = false
}
judge = false
}
}
if(judge) {

Loading…
Cancel
Save