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

@ -1445,11 +1445,18 @@ export default {
type: 'warning'
});
return
}else {
}
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++) {
// if(this.receptionList[i].id === 15) {

@ -194,18 +194,19 @@ 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 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.splice(index, 1, 141, 142)
state.businessSelect[state.businessKey].data.push(141, 142)
}
else if(id === 17) {
state.businessSelect[state.businessKey].data.splice(index, 1, 171, 172)
state.businessSelect[state.businessKey].data.push(171, 172)
}
}else if(seal === '付讫章') {
if(id === '取款凭条') {
@ -230,7 +231,6 @@ export default {
judge = false
}
}
}
if(judge) {
console.log('xsws')
console.log(sealArr)

Loading…
Cancel
Save