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