From 70a059c17a3cf427a642fc2f5d8c801bfbae2c16 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Mon, 11 Nov 2024 13:05:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=BB=E5=8A=A1=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/productreceiptJobMain/index.ts | 5 +++++ .../productreceipt/productreceiptJobMain/index.vue | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/api/wms/productreceiptJobMain/index.ts b/src/api/wms/productreceiptJobMain/index.ts index 91f9d4e90..cb318cb37 100644 --- a/src/api/wms/productreceiptJobMain/index.ts +++ b/src/api/wms/productreceiptJobMain/index.ts @@ -163,3 +163,8 @@ export const closeProductreceiptMain = async (id) => { export const executeProductreceiptMain = async (data) => { return await request.put({ url: `/wms/productreceipt-job-main/execute`, data}) } + +// 更新任务配置 +export const updateProductreceiptJobConfig = () => { + return request.put({ url: '/wms/productreceipt-job-main/updateProductreceiptJobConfig'}) +} \ No newline at end of file diff --git a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue index 9f076b485..6ebb47b2b 100644 --- a/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue +++ b/src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue @@ -181,6 +181,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultExportBtn({hasPermi:'wms:productreceipt-job-main:export'}), // 导出 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -198,6 +199,18 @@ const HeadButttondata = [ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() + }else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + ProductreceiptJobMainApi.updateProductreceiptJobConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({