diff --git a/src/api/wms/purchasereturnJobMain/index.ts b/src/api/wms/purchasereturnJobMain/index.ts index c59b9c735..ec925e9b4 100644 --- a/src/api/wms/purchasereturnJobMain/index.ts +++ b/src/api/wms/purchasereturnJobMain/index.ts @@ -91,5 +91,5 @@ export const importTemplate = () => { // 关闭采购退货任务主 export const closePurchasereturnJobMain = (id: number) => { - return request.download({ url: '/wms/purchasereturn-job-main/close?id=' + id }) + return request.put({ url: '/wms/purchasereturn-job-main/close?id=' + id }) } diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue index 81adbf5b1..8e4e1899b 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue @@ -198,7 +198,7 @@ const buttonTableClick = async (val, row) => { const handleClose = async (id: number) => { try { await message.confirm(t('common.confirmColse')) - await PurchasereceiptJobMainApi.closePurchasereceiptJobMain(id) + await PurchasereturnJobMainApi.closePurchasereturnJobMain(id) message.success(t('common.closeSuccess')) await getList() } catch {}