feat:【antd】【erp 系统】统一审批接口的写法与调用

This commit is contained in:
YunaiV
2025-10-05 11:12:19 +08:00
parent 95ba94ee5e
commit 8789cd1ff2
12 changed files with 66 additions and 116 deletions

View File

@@ -75,7 +75,7 @@ async function handleUpdateStatus(
duration: 0,
});
try {
await updateStockCheckStatus({ id: row.id!, status });
await updateStockCheckStatus(row.id!, status);
message.success(`${status === 20 ? '审批' : '反审批'}成功`);
handleRefresh();
} finally {

View File

@@ -72,7 +72,7 @@ async function handleUpdateStatus(row: ErpStockInApi.StockIn, status: number) {
duration: 0,
});
try {
await updateStockInStatus({ id: row.id!, status });
await updateStockInStatus(row.id!, status);
message.success(`${status === 20 ? '审批' : '反审批'}成功`);
handleRefresh();
} finally {

View File

@@ -75,7 +75,7 @@ async function handleUpdateStatus(
duration: 0,
});
try {
await updateStockMoveStatus({ id: row.id!, status });
await updateStockMoveStatus(row.id!, status);
message.success(`${status === 20 ? '审批' : '反审批'}成功`);
handleRefresh();
} finally {

View File

@@ -75,7 +75,7 @@ async function handleUpdateStatus(
duration: 0,
});
try {
await updateStockOutStatus({ id: row.id!, status });
await updateStockOutStatus(row.id!, status);
message.success(`${status === 20 ? '审批' : '反审批'}成功`);
handleRefresh();
} finally {