|
@ -186,7 +186,25 @@ const butttondata = (row,$index) => { |
|
|
} |
|
|
} |
|
|
return [ |
|
|
return [ |
|
|
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 |
|
|
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 |
|
|
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:count-job-main:close'}), // 关闭 |
|
|
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1','2']),hasPermi:'wms:count-job-main:close'}), // 关闭 |
|
|
|
|
|
{ |
|
|
|
|
|
label: '导出', |
|
|
|
|
|
name: 'exportCountJob', |
|
|
|
|
|
hide: isShowMainButton(row,['1','2']), |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
color: '', |
|
|
|
|
|
link: true, //文本展现按钮 |
|
|
|
|
|
hasPermi: '' // wms:count-job-main:exportCountJob |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '导入', |
|
|
|
|
|
name: 'importCountJob', |
|
|
|
|
|
hide: isShowMainButton(row,['1','2']), |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
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'])}), // 执行 |
|
|
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 |
|
|
] |
|
|
] |
|
@ -202,6 +220,8 @@ const buttonTableClick = async (val, row) => { |
|
|
handleClose(row.masterId) |
|
|
handleClose(row.masterId) |
|
|
} else if (val == 'mainJobAcc') { // 承接 |
|
|
} else if (val == 'mainJobAcc') { // 承接 |
|
|
console.log('列表-操作按钮事件-承接') |
|
|
console.log('列表-操作按钮事件-承接') |
|
|
|
|
|
} else if (val == 'exportCountJob'){// 当前任务导出 |
|
|
|
|
|
handleExportCountJob(row.masterId,row.number) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -240,6 +260,19 @@ const handleExport = async () => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 单条任务导出 */ |
|
|
|
|
|
const handleExportCountJob = async (id: number,number: string) => { |
|
|
|
|
|
try { |
|
|
|
|
|
await message.exportConfirm() |
|
|
|
|
|
exportLoading.value = true |
|
|
|
|
|
const data = await CountJobMainApi.handleExportCountJob(id) |
|
|
|
|
|
download.excel(data, '盘点任务主'+number+'.xlsx') |
|
|
|
|
|
} catch { |
|
|
|
|
|
}finally { |
|
|
|
|
|
exportLoading.value = false |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 筛选提交 |
|
|
// 筛选提交 |
|
|
const searchFormClick = (searchData) => { |
|
|
const searchFormClick = (searchData) => { |
|
|
tableObject.params = { |
|
|
tableObject.params = { |
|
|