浏览代码

po detail ui add deleted button and ui update

production
CANCERYS\kw093 1周前
父节点
当前提交
49fa01e918
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. +12
    -0
      src/app/api/stockIn/actions.ts

+ 12
- 0
src/app/api/stockIn/actions.ts 查看文件

@@ -231,6 +231,18 @@ export const testing = cache(async (queryParams?: Record<string, any>) => {
}
});

export const deleteStockInLine = async (stockInLineId: number) => {
const result = await serverFetchJson<PostStockInLineResponse<unknown>>(
`${BASE_API_URL}/stockInLine/delete/${stockInLineId}`,
{
method: "POST",
headers: { "Content-Type": "application/json" },
},
);
revalidateTag("po");
return result;
};

export const printQrCodeForSil = cache(async(data: PrintQrCodeForSilRequest) => {
const params = convertObjToURLSearchParams(data)
return serverFetchWithNoContent(`${BASE_API_URL}/stockInLine/print-label?${params}`,


正在加载...
取消
保存