|
|
@ -141,6 +141,7 @@ const { getList, setSearchParams } = tableMethods |
|
|
|
// 列表头部按钮 |
|
|
|
const HeadButttondata = [ |
|
|
|
defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereturn-job-main:export'}), // 导出 |
|
|
|
defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 |
|
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
|
@ -158,6 +159,18 @@ const HeadButttondata = [ |
|
|
|
const buttonBaseClick = (val, item) => { |
|
|
|
if (val == 'export') { // 导出 |
|
|
|
handleExport() |
|
|
|
}else if(val == 'updateTaskSetting'){ |
|
|
|
// 更新任务设置 |
|
|
|
try { |
|
|
|
// loading开始 |
|
|
|
loadStart() |
|
|
|
PurchasereturnJobMainApi.updatePurchasereturnJobConfig() |
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
message.success(t('更新成功')) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
loadDone() |
|
|
|
} |
|
|
|
} else if (val == 'refresh') { // 刷新 |
|
|
|
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { |
|
|
|
searchFormClick({ |
|
|
|