feat:【antd】【erp 系统】统一审批接口的写法与调用
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user