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({