From 181aa585a4b0f2efa2c042d3a3727cce30aeb433 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Tue, 19 Nov 2024 14:41:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E9=85=8D=E7=BD=AE=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/productputawayJobMain/index.ts | 5 +++++ .../productputawayAssembleJobMain/index.vue | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/api/wms/productputawayJobMain/index.ts b/src/api/wms/productputawayJobMain/index.ts index 32a1874b6..657ab6f95 100644 --- a/src/api/wms/productputawayJobMain/index.ts +++ b/src/api/wms/productputawayJobMain/index.ts @@ -135,3 +135,8 @@ export const executeProductputawayMain = async (data) => { export const updateProductputawayJobConfig = () => { return request.put({ url: '/wms/productputaway-job-main/updateProductputawayJobConfig'}) } + +// 更新任务配置装配 +export const updateProductputawayJobAssembleConfig = () => { + return request.put({ url: '/wms/productputaway-job-main/updateProductputawayJobAssembleConfig'}) +} diff --git a/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue b/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue index 41ebf2409..51066971a 100644 --- a/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue +++ b/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue @@ -138,6 +138,7 @@ const getSwitchStatus = async ()=>{ const HeadButttondata = computed(()=>{ return [ defaultButtons.defaultExportBtn({hasPermi:'wms:productputaway-job-main:export'}), // 导出 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 { label: '待处理状态全部打印', name: 'printAllPending', @@ -159,6 +160,18 @@ const HeadButttondata = computed(()=>{ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() + }else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + ProductputawayJobMainApi.updateProductputawayJobAssembleConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({