From 87bb68cfe74bfce31058cba5b877dfb074f261e8 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Tue, 19 Nov 2024 14:17:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=BB=E5=8A=A1=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/productputawayJobMain/index.ts | 7 ++++++- .../productputawayJobMain/index.vue | 15 ++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/api/wms/productputawayJobMain/index.ts b/src/api/wms/productputawayJobMain/index.ts index d9379684f..32a1874b6 100644 --- a/src/api/wms/productputawayJobMain/index.ts +++ b/src/api/wms/productputawayJobMain/index.ts @@ -129,4 +129,9 @@ export const closeProductputawayMain = async (id) => { // 执行发料任务 export const executeProductputawayMain = async (data) => { return await request.put({ url: `/wms/productputaway-job-main/execute`, data}) -} \ No newline at end of file +} + +// 更新任务配置 +export const updateProductputawayJobConfig = () => { + return request.put({ url: '/wms/productputaway-job-main/updateProductputawayJobConfig'}) +} diff --git a/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue b/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue index 0fc3c3863..563a1d1bc 100644 --- a/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue +++ b/src/views/wms/productionManage/productputaway/productputawayJobMain/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', @@ -157,7 +158,19 @@ const HeadButttondata = computed(()=>{ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() - } else if (val == 'refresh') { // 刷新 + } else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + ProductputawayJobMainApi.updateProductputawayJobConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } + }else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({ filters: tableObject.params.filters