to stock detail when only once sku

This commit is contained in:
Timi
2026-09-22 17:33:10 +08:00
parent 57f7803e9e
commit 72e6cdbeea
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -256,6 +256,14 @@ async function toSkuList(item: ProductStockProduct): Promise<void> {
if (!item.productId) {
return;
}
if (item.skuCount === 1 && item.skuId) {
await router.push({
name: "ProductStockDetail",
params: { skuId: item.skuId },
query: { transitionDepth: String(getCurrentRouteDepth() + 1) }
});
return;
}
await router.push({
name: "ProductStockSkuList",
params: { productId: item.productId },
+1
View File
@@ -136,6 +136,7 @@ export type ProductStockProduct = {
attachmentList?: Attachment[];
productType?: ProductType;
skuCount?: number;
skuId?: string;
onHandQuantity?: number | string;
reservedQuantity?: number | string;
availableQuantity?: number | string;