Browse Source

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

intex_online20250220
张立 2 months ago
parent
commit
a7d77d9f81
  1. 9
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

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

@ -783,13 +783,12 @@ idsArray.forEach(id => {
// //
const handleSelectionTrialResult = async ()=>{ const handleSelectionTrialResult = async ()=>{
let rows:any = [] // let rows= selectionRows.value.map(item=>item.number)
selectionRows.value.map(item=>item.number) let ids= Array.from(new Set(selectionRows.value.map(item=>item.number))).join(',')
console.log('批量试算',rows.join(',')) await PreparetoissueMainApi.batchGenerateIssueRequest(ids)
await PreparetoissueMainApi.batchGenerateIssueRequest(rows.join(','))
.then((res) => { .then((res) => {
console.log('返回数据', res) console.log('返回数据', res)
if (res.status == '2') { if (res?.status == '2') {
message.error(res.message) message.error(res.message)
} else { } else {
message.success(res.message) message.success(res.message)

Loading…
Cancel
Save