|
|
@ -85,6 +85,11 @@ const allGoods = { |
|
|
|
481: {name:'业务收费凭证回单',src:require('@/assets/img/goods/ywsfpz.png'),id:481}, |
|
|
|
481: {name:'业务收费凭证回单',src:require('@/assets/img/goods/ywsfpz.png'),id:481}, |
|
|
|
482: {name:'业务收费凭证凭证联',src:require('@/assets/img/goods/ywsfpz.png'),id:482}, |
|
|
|
482: {name:'业务收费凭证凭证联',src:require('@/assets/img/goods/ywsfpz.png'),id:482}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
701: {name:'现金支票回单',src:require('@/assets/img/goods/xjzp.png'),id:701}, |
|
|
|
|
|
|
|
596: {name:'银行承兑协议一联',src:require('@/assets/img/goods/银行承兑协议.png'),id:596}, |
|
|
|
|
|
|
|
702: {name:'银行承兑协议二联',src:require('@/assets/img/goods/银行承兑协议.png'),id:702}, |
|
|
|
|
|
|
|
597: {name:'银行承兑协议三联',src:require('@/assets/img/goods/银行承兑协议.png'),id:597} |
|
|
|
|
|
|
|
|
|
|
|
// // 有图片的
|
|
|
|
// // 有图片的
|
|
|
|
// 407: {name:407,src:require('@/assets/img/goods/businessSpecialApplication.png'),id:407},
|
|
|
|
// 407: {name:407,src:require('@/assets/img/goods/businessSpecialApplication.png'),id:407},
|
|
|
|
// 406: {name:406,src:require('@/assets/img/goods/businessReportMissUser.png'),id:406},
|
|
|
|
// 406: {name:406,src:require('@/assets/img/goods/businessReportMissUser.png'),id:406},
|
|
|
@ -2707,15 +2712,15 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 盖章逻辑(本来想着直接把审核资料、验钞等方法也写在这里的,因为直接物品也在这里。奈何时间不太够。没事) cb是回调函数
|
|
|
|
// 盖章逻辑(本来想着直接把审核资料、验钞等方法也写在这里的,因为直接物品也在这里。奈何时间不太够。没事) cb是回调函数
|
|
|
|
stampJudge(state, { sealArr, cb }) { |
|
|
|
stampJudge(state, { sealArr, cb }) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 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] |
|
|
|
|
|
|
|
console.log('id=>?',id) |
|
|
|
let judgeDelete = true // 盖完章是否变化 为false的会删掉。。。
|
|
|
|
let judgeDelete = true // 盖完章是否变化 为false的会删掉。。。
|
|
|
|
let stampSuccess = '' // 盖章成功
|
|
|
|
let stampSuccess = '' // 盖章成功
|
|
|
|
// 以为要特定的章盖特定的物品,盖完后结果还不一样。有些东西盖了会消失,有些不会。
|
|
|
|
// 以为要特定的章盖特定的物品,盖完后结果还不一样。有些东西盖了会消失,有些不会。
|
|
|
|
// 有些东西还要盖两个章。当时选择了最直接的if-else判断。其实用map结构也不是不行。
|
|
|
|
// 有些东西还要盖两个章。当时选择了最直接的if-else判断。其实用map结构也不是不行。
|
|
|
|
if(sealArr.length === 1) { |
|
|
|
if(sealArr.length === 1) { |
|
|
|
|
|
|
|
console.log('只有一个') |
|
|
|
const seal = sealArr[0] |
|
|
|
const seal = sealArr[0] |
|
|
|
if(seal === '业务专用章') { |
|
|
|
if(seal === '业务专用章') { |
|
|
|
if(id === 14) { |
|
|
|
if(id === 14) { |
|
|
@ -2762,17 +2767,20 @@ export default { |
|
|
|
state.businessSelect[state.businessKey].data.push(420, 421) |
|
|
|
state.businessSelect[state.businessKey].data.push(420, 421) |
|
|
|
judgeDelete = false |
|
|
|
judgeDelete = false |
|
|
|
stampSuccess = '444' |
|
|
|
stampSuccess = '444' |
|
|
|
|
|
|
|
cb([420,421]) |
|
|
|
} |
|
|
|
} |
|
|
|
else if(id === 427) { |
|
|
|
else if(id === 427) { |
|
|
|
state.businessSelect[state.businessKey].data.push(422, 424) |
|
|
|
state.businessSelect[state.businessKey].data.push(422, 424) |
|
|
|
judgeDelete = false |
|
|
|
judgeDelete = false |
|
|
|
stampSuccess = '445' |
|
|
|
stampSuccess = '445' |
|
|
|
|
|
|
|
cb([422, 424]) |
|
|
|
} |
|
|
|
} |
|
|
|
}else if(seal === '转讫章') { |
|
|
|
}else if(seal === '转讫章') { |
|
|
|
if(id === 426) { |
|
|
|
if(id === 426) { |
|
|
|
state.businessSelect[state.businessKey].data.push(419, 418) |
|
|
|
state.businessSelect[state.businessKey].data.push(419, 418) |
|
|
|
judgeDelete = false |
|
|
|
judgeDelete = false |
|
|
|
stampSuccess = '446' |
|
|
|
stampSuccess = '446' |
|
|
|
|
|
|
|
cb([419,418]) |
|
|
|
} |
|
|
|
} |
|
|
|
}else if(seal === '附件章') { |
|
|
|
}else if(seal === '附件章') { |
|
|
|
if(id === 23) { |
|
|
|
if(id === 23) { |
|
|
@ -2820,6 +2828,7 @@ export default { |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
seal = sealArr[1] + sealArr[0] |
|
|
|
seal = sealArr[1] + sealArr[0] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
console.log('seal =>', seal) |
|
|
|
if(seal === '私章业务专用章') { |
|
|
|
if(seal === '私章业务专用章') { |
|
|
|
if(id === 411) { |
|
|
|
if(id === 411) { |
|
|
|
state.businessSelect[state.businessKey].data.push(473, 472) |
|
|
|
state.businessSelect[state.businessKey].data.push(473, 472) |
|
|
@ -2830,6 +2839,13 @@ export default { |
|
|
|
state.businessSelect[state.businessKey].data.push(582,581,580,583) |
|
|
|
state.businessSelect[state.businessKey].data.push(582,581,580,583) |
|
|
|
judgeDelete = false |
|
|
|
judgeDelete = false |
|
|
|
stampSuccess = '584' |
|
|
|
stampSuccess = '584' |
|
|
|
|
|
|
|
cb([582,581,580,583]) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(id === 587) { |
|
|
|
|
|
|
|
state.businessSelect[state.businessKey].data.push(596,702,597) |
|
|
|
|
|
|
|
judgeDelete = false |
|
|
|
|
|
|
|
stampSuccess = '585' |
|
|
|
|
|
|
|
cb([596,702,597]) |
|
|
|
} |
|
|
|
} |
|
|
|
// 584
|
|
|
|
// 584
|
|
|
|
}else if(seal === '私章转讫章') { |
|
|
|
}else if(seal === '私章转讫章') { |
|
|
@ -2838,6 +2854,13 @@ export default { |
|
|
|
judgeDelete = false |
|
|
|
judgeDelete = false |
|
|
|
stampSuccess = '457' |
|
|
|
stampSuccess = '457' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}else if (seal ==='私章付讫章') { |
|
|
|
|
|
|
|
if(id ===411) { |
|
|
|
|
|
|
|
state.businessSelect[state.businessKey].data.push(411,472) |
|
|
|
|
|
|
|
judgeDelete = false |
|
|
|
|
|
|
|
stampSuccess = '456' |
|
|
|
|
|
|
|
cb([411,472]) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// if(stampSuccess) {
|
|
|
|
// if(stampSuccess) {
|
|
|
@ -2988,9 +3011,12 @@ export default { |
|
|
|
// 拿到物品栏中的物品
|
|
|
|
// 拿到物品栏中的物品
|
|
|
|
goods2(state) { |
|
|
|
goods2(state) { |
|
|
|
// 调试容错采用if-else
|
|
|
|
// 调试容错采用if-else
|
|
|
|
|
|
|
|
console.log('state=>>>',state) |
|
|
|
|
|
|
|
console.log('state.businessSelect=>>>',state.businessSelect) |
|
|
|
const arr = [] |
|
|
|
const arr = [] |
|
|
|
if(state.businessKey !== '') { |
|
|
|
if(state.businessKey !== '') { |
|
|
|
for(const item of state.businessSelect[state.businessKey].data) { |
|
|
|
for(const item of state.businessSelect[state.businessKey].data) { |
|
|
|
|
|
|
|
console.log('item=>',item) |
|
|
|
if (state.businessKey == '业务七') { |
|
|
|
if (state.businessKey == '业务七') { |
|
|
|
if(item !==23) { |
|
|
|
if(item !==23) { |
|
|
|
arr.push(allGoods[item]) |
|
|
|
arr.push(allGoods[item]) |
|
|
|