add product stock preview
This commit is contained in:
@@ -9,6 +9,7 @@ import type {
|
||||
ProductSpec,
|
||||
ProductSpecValue,
|
||||
ProductStock,
|
||||
ProductStockBatchRequest,
|
||||
ProductStockProduct,
|
||||
ProductStockChangeRequest,
|
||||
ProductStockManualRevokeRequest,
|
||||
@@ -107,6 +108,10 @@ async function stockDetail(skuId: string, storeId?: string): Promise<ProductStoc
|
||||
});
|
||||
}
|
||||
|
||||
async function stockBatchDetail(request: ProductStockBatchRequest): Promise<ProductStock[]> {
|
||||
return await axios.post(`${STOCK_URI}/batch-detail`, withCurrentStoreId(request));
|
||||
}
|
||||
|
||||
async function initialIn(request: ProductStockChangeRequest): Promise<ProductStock> {
|
||||
return await axios.post(`${STOCK_URI}/initial-in`, withCurrentStoreId(request));
|
||||
}
|
||||
@@ -161,6 +166,7 @@ export default {
|
||||
stockList,
|
||||
stockProductList,
|
||||
stockDetail,
|
||||
stockBatchDetail,
|
||||
initialIn,
|
||||
manualIn,
|
||||
manualOut,
|
||||
|
||||
Reference in New Issue
Block a user