From 20ee40b2a6a8643c59a978f0fde5036ea4c0dd47 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Thu, 31 Oct 2024 11:43:08 +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/purchasereceiptJobMain/index.ts | 5 +++++ .../purchasereceipt/purchasereceiptJobMain/index.vue | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/api/wms/purchasereceiptJobMain/index.ts b/src/api/wms/purchasereceiptJobMain/index.ts index 79e546090..0a7b2fcf8 100644 --- a/src/api/wms/purchasereceiptJobMain/index.ts +++ b/src/api/wms/purchasereceiptJobMain/index.ts @@ -139,3 +139,8 @@ export const acceptPurchasereceiptJobMain = (id: number) => { export const refusalPurchasereceiptJobMain = (data) => { return request.post({ url: '/wms/purchasereceipt-job-main/refusal',data}) } + +// 更新任务配置 +export const updatePurchasereceiptJobConfig = () => { + return request.put({ url: '/wms/purchasereceipt-job-main/updatePurchasereceiptJobConfig'}) +} \ No newline at end of file diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue index 7e379b968..a8136d188 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue @@ -189,7 +189,16 @@ const buttonBaseClick = (val, item) => { handleExport() }else if(val == 'updateTaskSetting'){ // 更新任务设置 - + try { + // loading开始 + loadStart() + PurchasereceiptJobMainApi.updatePurchasereceiptJobConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({