Browse Source

YT-1951批量打印和批量试算按钮没有根据试算状态控制是否可用

intex_online20250220
张立 1 month ago
parent
commit
f0eb687067
  1. 20
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

20
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

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

Loading…
Cancel
Save