|
|
@ -194,7 +194,7 @@ const isShowMainButton = (row,val) => { |
|
|
|
const butttondata = (row,$index) => { |
|
|
|
|
|
|
|
return [ |
|
|
|
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 |
|
|
|
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 |
|
|
|
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1','2']),hasPermi:'wms:count-job-main:close'}), // 关闭 |
|
|
|
{ |
|
|
|
label: '导出', |
|
|
@ -213,8 +213,8 @@ const butttondata = (row,$index) => { |
|
|
|
color: '', |
|
|
|
link: true, //文本展现按钮 |
|
|
|
hasPermi: '' // wms:count-job-main:importCountJob |
|
|
|
} |
|
|
|
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 |
|
|
|
}, |
|
|
|
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 |
|
|
|
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 |
|
|
|
] |
|
|
|
} |
|
|
@ -225,9 +225,13 @@ const buttonTableClick = async (val, row) => { |
|
|
|
console.log('列表-操作按钮事件-执行') |
|
|
|
} else if (val == 'mainJobAba') { // 放弃 |
|
|
|
console.log('列表-操作按钮事件-放弃') |
|
|
|
await CountJobMainApi.abandonCountJobMain(row.id) |
|
|
|
await getList() |
|
|
|
} else if (val == 'mainJobClo') { // 关闭 |
|
|
|
handleClose(row.id) |
|
|
|
} else if (val == 'mainJobAcc') { // 承接 |
|
|
|
await CountJobMainApi.acceptCountJobMain(row.id) |
|
|
|
await getList() |
|
|
|
console.log('列表-操作按钮事件-承接') |
|
|
|
} else if (val == 'exportCountJob'){// 当前任务导出 |
|
|
|
handleExportCountJob(row.id,row.number) |
|
|
|