From 7a39ebaaa6ebf4a49eb84c040b66b54329f50ee1 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Fri, 1 Nov 2024 08:48:40 +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/productionreceiptJobMain/index.ts | 5 +++++ .../productionreceiptJobMain/index.vue | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/api/wms/productionreceiptJobMain/index.ts b/src/api/wms/productionreceiptJobMain/index.ts index 34c3e07bf..38c5fad1e 100644 --- a/src/api/wms/productionreceiptJobMain/index.ts +++ b/src/api/wms/productionreceiptJobMain/index.ts @@ -105,4 +105,9 @@ export const closeIssueMain = async (id) => { // 执行发料任务 export const executeIssueMain = async (data) => { return await request.put({ url: `/wms/productionreceipt-job-main/execute`, data}) +} + +// 更新任务配置 +export const updateProductionreceiptJobConfig = () => { + return request.put({ url: '/wms/productionreceipt-job-main/updateProductionreceiptJobConfig'}) } \ No newline at end of file diff --git a/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue b/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue index d505694c4..81e8a6603 100644 --- a/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue +++ b/src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue @@ -118,6 +118,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultExportBtn({hasPermi:'wms:productionreceipt-job-main:export'}), // 导出 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -127,6 +128,18 @@ const HeadButttondata = [ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() + }else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + ProductionreceiptJobMainApi.updateProductionreceiptJobConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({