diff --git a/miniprogram/components/inspection-panel/index.wxml b/miniprogram/components/inspection-panel/index.wxml
index 8b3ec97..8c41ebb 100644
--- a/miniprogram/components/inspection-panel/index.wxml
+++ b/miniprogram/components/inspection-panel/index.wxml
@@ -187,7 +187,7 @@
-
+
@@ -197,7 +197,7 @@
{{group.dayLabel}}
-
+
diff --git a/src/utils/inspectionInboundFields.contract.test.ts b/src/utils/inspectionInboundFields.contract.test.ts
index b095535..3c580ac 100644
--- a/src/utils/inspectionInboundFields.contract.test.ts
+++ b/src/utils/inspectionInboundFields.contract.test.ts
@@ -29,6 +29,15 @@ describe('卡片:4 字段 + 去掉 AI 判定', () => {
expect(wxml).toContain('bindchange="onShelfUnitChange"');
expect(wxml).toContain('range="{{shelfLifeUnits}}"');
expect(js).toContain('shelfLifeUnits: SHELF_LIFE_UNITS,');
+ // ⚠️ 卡片是 WXML template:组件 data 进不去,必须在每个 里显式传
+ expect(
+ (
+ wxml.match(
+ /is="inboundCard" data="\{\{item, submittingId, analyzingId, resultOptions, zoneRange, shelfLifeUnits\}\}"/g
+ ) || []
+ ).length,
+ '两处 都要带上 shelfLifeUnits,否则单位选择器为空'
+ ).toBe(2);
});
it('去掉 AI「合格/不合格」徽标与结果 picker(结果隐式合格)', () => {