|
@ -138,6 +138,7 @@ const getSwitchStatus = async ()=>{ |
|
|
const HeadButttondata = computed(()=>{ |
|
|
const HeadButttondata = computed(()=>{ |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:productputaway-job-main:export'}), // 导出 |
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:productputaway-job-main:export'}), // 导出 |
|
|
|
|
|
defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 |
|
|
{ |
|
|
{ |
|
|
label: '待处理状态全部打印', |
|
|
label: '待处理状态全部打印', |
|
|
name: 'printAllPending', |
|
|
name: 'printAllPending', |
|
@ -159,6 +160,18 @@ const HeadButttondata = computed(()=>{ |
|
|
const buttonBaseClick = (val, item) => { |
|
|
const buttonBaseClick = (val, item) => { |
|
|
if (val == 'export') { // 导出 |
|
|
if (val == 'export') { // 导出 |
|
|
handleExport() |
|
|
handleExport() |
|
|
|
|
|
}else if(val == 'updateTaskSetting'){ |
|
|
|
|
|
// 更新任务设置 |
|
|
|
|
|
try { |
|
|
|
|
|
// loading开始 |
|
|
|
|
|
loadStart() |
|
|
|
|
|
ProductputawayJobMainApi.updateProductputawayJobAssembleConfig() |
|
|
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
|
|
message.success(t('更新成功')) |
|
|
|
|
|
} catch { |
|
|
|
|
|
} finally { |
|
|
|
|
|
loadDone() |
|
|
|
|
|
} |
|
|
} else if (val == 'refresh') { // 刷新 |
|
|
} else if (val == 'refresh') { // 刷新 |
|
|
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { |
|
|
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { |
|
|
searchFormClick({ |
|
|
searchFormClick({ |
|
|