|
|
@ -2714,13 +2714,11 @@ export default { |
|
|
|
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) { |
|
|
@ -3011,12 +3009,9 @@ 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]) |
|
|
|