Compare commits

...

2 Commits

Author SHA1 Message Date
wangjia 5cf8958313 feat(prototype): 登记支付状态图标 待支付/已支付/已关闭
Design Source Checks / design-source (push) Has been cancelled
ds-flow 原型单源:BADGE_ICON 补三个支付状态图标,先登记再供页面使用。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P9G7E3wmAYL9KeYCVZVsqu
2026-07-18 07:53:53 +08:00
wangjia f6e326794e fix(backend): 出入库列表 Preload(Items) 供手机端卡片显示品项数
List 之前未 preload items,手机端 MCard sub 行拿不到 items.length。
入库进价对 operator 本就可见(客户端无条件展示+待定价逻辑依赖 costPrice),
故 stock_in 不加脱敏;stock_out 侧成本敏感,List 已有 stripStockOutCost 兜底,安全。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P9G7E3wmAYL9KeYCVZVsqu
2026-07-18 07:53:53 +08:00
3 changed files with 8 additions and 3 deletions
+3 -1
View File
@@ -75,7 +75,9 @@ func (h *StockInHandler) List(c *gin.Context) {
query.Count(&total)
orders := make([]model.StockInOrder, 0)
query.Preload("Warehouse", "shop_id = ?", shopID).
// 列表卡片需要 items.length 显示品项数(手机端 MCard sub 行)
query.Preload("Items").
Preload("Warehouse", "shop_id = ?", shopID).
Preload("Partner", "shop_id = ?", shopID).
Preload("Operator", "shop_id = ?", shopID).
Preload("Reviewer", "shop_id = ?", shopID).
+3 -1
View File
@@ -87,7 +87,9 @@ func (h *StockOutHandler) List(c *gin.Context) {
query.Count(&total)
orders := make([]model.StockOutOrder, 0)
query.Preload("Warehouse", "shop_id = ?", shopID).
// 列表卡片需要 items.length 显示品项数(手机端 MCard sub 行)
query.Preload("Items").
Preload("Warehouse", "shop_id = ?", shopID).
Preload("Partner", "shop_id = ?", shopID).
Preload("Operator", "shop_id = ?", shopID).
Preload("Reviewer", "shop_id = ?", shopID).
+2 -1
View File
@@ -17,7 +17,8 @@
'在线':'i-wifi','离线':'i-wifi-off',
'进行中':'i-ic04','已完成':'i-check',
'未使用':'i-tag','已兑换':'i-check','作废':'i-close',
'未结清':'i-ic04','已结清':'i-check','收款':'i-download','付款':'i-upload'
'未结清':'i-ic04','已结清':'i-check','收款':'i-download','付款':'i-upload',
'待支付':'i-ic04','已支付':'i-check','已关闭':'i-close'
};
window.BADGE_ICON = BADGE_ICON;
function enhanceBadges(){