diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index 9d4a6b2c2..3d295d2cb 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -871,6 +871,7 @@ export default { 新增:'Add', 导入:'Import', 导出:'Export', + 更新任务设置:'UpdatingTaskSettings', 刷新:'Refresh', 筛选:'Filter', 选择当页:'As Page', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index dc482ff9c..5e531dc5f 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -873,6 +873,7 @@ export default { 新增:'新增', 导入:'导入', 导出:'导出', + 更新任务设置:'更新任务设置', 刷新:'刷新', 筛选:'筛选', 选择当页:'选择当页', diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 73b968041..e693de83d 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -68,7 +68,18 @@ export function defaultExportTableBtn(option: any) { hasPermi: '' }) } - +// 导出按钮 +export function defaultUpdateTaskSettingBtn(option: any) { + return __defaultBtnOption(option, { + label: t(`ts.更新任务设置`).replace('ts.', ''), + name: 'updateTaskSetting', + hide: false, + type: 'warning', + icon: 'ep:refresh', + color: '', + hasPermi: '' + }) +} // 字段设置 // export function defaultFieldSettingBtn(option:any) { diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue index 82a8384bd..7e379b968 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue @@ -176,7 +176,8 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), // 导出 +defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), // 导出 +defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -186,6 +187,9 @@ const HeadButttondata = [ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() + }else if(val == 'updateTaskSetting'){ + // 更新任务设置 + } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({