在资产管理中新增库存类型字段,支持有限库存和无限库存两种模式,编辑时禁止修改库存类型,同时在SKU管理中为无限库存资产新增生成库存按钮并移除库存数量编辑功能

This commit is contained in:
WUSIJIAN
2026-01-14 13:58:26 +08:00
parent f8af956f06
commit 70a956febe
3 changed files with 32 additions and 7 deletions

View File

@@ -112,6 +112,7 @@ interface AssetRow {
onlineTime: string;
offlineTime: string;
status: number;
unlimitedStock: boolean;
createdAt: string;
updatedAt: string;
}
@@ -222,7 +223,12 @@ const onEdit = (row: AssetRow) => {
// 管理SKU
const onAddSku = (row: AssetRow) => {
skuDialogRef.value.openDialog(row);
skuDialogRef.value.openDialog({
id: row.id,
name: row.name,
type: row.type,
unlimitedStock: row.unlimitedStock,
});
};
// 分页大小改变