From 87c4678421b87e94717e9a5397e44acba2aebc48 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Thu, 31 Oct 2024 15:44:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=BA=E9=99=B7:HL-4998=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/purchasereturnJobMain/index.ts | 5 +++++ .../purchasereturn/purchasereturnJobMain/index.vue | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/api/wms/purchasereturnJobMain/index.ts b/src/api/wms/purchasereturnJobMain/index.ts index d452888a3..1e5a4a5ce 100644 --- a/src/api/wms/purchasereturnJobMain/index.ts +++ b/src/api/wms/purchasereturnJobMain/index.ts @@ -106,3 +106,8 @@ export const acceptPurchasereturnJobMain = (id: number) => { export const abandonPurchasereturnJobMain = (id: number) => { return request.put({ url: '/wms/purchasereturn-job-main/abandon?id=' + id }) } + +// 更新任务配置 +export const updatePurchasereturnJobConfig = () => { + return request.put({ url: '/wms/purchasereceipt-job-main/updatePurchasereturnJobConfig'}) +} \ No newline at end of file diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue index 8facc3d1b..6a2e19a37 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue @@ -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({