@ -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 })
}
@ -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 {}