perf(ecom-dmb): 商品卡片保存改为就地更新,无需重新加载全量列表

后端:
- UpdateProductResultDTO 新增 product 字段,返回更新后的完整商品信息

前端:
- ProductVO.UpdateProductResult 新增 product 字段
- ProductCard 保存成功后 emit('updated', product) 携带商品数据
- ProductGridView.refreshTable(product) 收到数据后原地替换 productList 中对应商品,无需重新请求列表
This commit is contained in:
小蟑螂
2026-04-26 21:33:43 +08:00
parent a90446dff6
commit 6ec45a7e0d
5 changed files with 26 additions and 5 deletions
@@ -37,6 +37,8 @@ export namespace ProductVO {
export interface UpdateProductResult {
/** 本次更新中成本发生变更的规格ID列表 */
costChangedSpecIds: number[];
/** 更新后的商品完整信息 */
product: ProductVO.Info;
}
/** 商品规格信息 */