|
|
@ -313,12 +313,26 @@ const buttonBaseClick = (val, item) => { |
|
|
|
} |
|
|
|
} else if (val == 'filtrate') { |
|
|
|
// 筛选 |
|
|
|
} else if (val=='selection_point'){//批量打印 |
|
|
|
if(selectionRows.value.length > 0 && selectionRows.value[0]?.selectionRows.length > 0 ){ |
|
|
|
} else if (val == 'selection_point') {//批量打印 |
|
|
|
if (selectionRows.value.length > 0 && selectionRows.value[0]?.selectionRows.length > 0) { |
|
|
|
const trialResultList = selectionRows.value[0]?.selectionRows.filter(item => item.trialResult == 0 || item.trialResult == 2) |
|
|
|
let str = '' |
|
|
|
if (trialResultList.length > 0) { |
|
|
|
str=Array.from(new Set(trialResultList.map(item=>item.number))).join('、') |
|
|
|
message.error(`单据号【${str}】状态为未试算或试算失败,不可以打印`) |
|
|
|
return |
|
|
|
} |
|
|
|
handleSelectionPoint() |
|
|
|
} |
|
|
|
}else if (val=='trial_result'){//批量试算 |
|
|
|
if(selectionRows.value.length > 0 && selectionRows.value[0]?.selectionRows.length > 0 ){ |
|
|
|
if (selectionRows.value.length > 0 && selectionRows.value[0]?.selectionRows.length > 0) { |
|
|
|
const trialResultList = selectionRows.value[0]?.selectionRows.filter(item => item.trialResult == 1) |
|
|
|
let str = '' |
|
|
|
if (trialResultList.length > 0) { |
|
|
|
str=Array.from(new Set(trialResultList.map(item=>item.number))).join('、') |
|
|
|
message.error(`单据号【${str}】已试算成功`) |
|
|
|
return |
|
|
|
} |
|
|
|
handleSelectionTrialResult() |
|
|
|
} |
|
|
|
}else { |
|
|
|