|
|
|
@ -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) { |
|
|
|
|