在资产管理中新增库存类型字段,支持有限库存和无限库存两种模式,编辑时禁止修改库存类型,同时在SKU管理中为无限库存资产新增生成库存按钮并移除库存数量编辑功能
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
// 分页大小改变
|
||||
|
||||
Reference in New Issue
Block a user