|
|
@ -215,6 +215,15 @@ const butttondata = (row,$index) => { |
|
|
|
hasPermi: '' // wms:count-job-main:importCountJob |
|
|
|
}, |
|
|
|
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 |
|
|
|
{ |
|
|
|
label: '完成', |
|
|
|
name: 'done', |
|
|
|
hide: isShowMainButton(row,[]), |
|
|
|
type: 'success', |
|
|
|
color: '', |
|
|
|
link: true, //文本展现按钮 |
|
|
|
hasPermi: '' // wms:count-job-main:importCountJob |
|
|
|
}, |
|
|
|
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 |
|
|
|
] |
|
|
|
} |
|
|
@ -237,7 +246,10 @@ const buttonTableClick = async (val, row) => { |
|
|
|
handleExportCountJob(row.id,row.number) |
|
|
|
} else if( val == 'importCountJob'){ // 导入 |
|
|
|
handleImport(row.id) |
|
|
|
} else if( val == 'done'){ // 完成 |
|
|
|
handleDone(row.id) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** 关闭按钮操作 */ |
|
|
@ -249,6 +261,18 @@ const handleClose = async (id: number) => { |
|
|
|
await getList() |
|
|
|
} catch {} |
|
|
|
} |
|
|
|
// 完成 |
|
|
|
const handleDone = async (id: number) => { |
|
|
|
try { |
|
|
|
await message.confirm('确认完成吗?') |
|
|
|
await CountJobMainApi.doneCountJobMain(id) |
|
|
|
await getList() |
|
|
|
} catch { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 获取部门 用于详情 部门回显 |
|
|
|
const { wsCache } = useCache() |
|
|
|
/** 详情操作 */ |
|
|
|