|
|
@ -318,13 +318,13 @@ const buttonBaseClick = (val, item) => { |
|
|
|
} else if (val == 'selection_point') {//批量打印 |
|
|
|
console.log(selectionRows.value) |
|
|
|
if (selectionRows.value.length > 0 ) { |
|
|
|
const trialResultList = selectionRows.value.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 |
|
|
|
} |
|
|
|
// const trialResultList = selectionRows.value.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') {//批量试算 |
|
|
|