refactor: 验收秤采样历史页面删除采样备注字段

- 删除数据中的 note 字段
- 删除详情弹窗中的采样备注展示

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
zhangyan
2026-06-15 17:19:38 +08:00
co-authored by Claude Opus 4.6
parent 5303fafd66
commit 4ffc38cd21
@@ -271,18 +271,18 @@ function handleLogout() {
/* ===== 采样历史数据 ===== */
var SAMPLING_HISTORY = [
{ id: 1, foodId: 1, name: '菠菜', catLabel: '叶菜类', note: '色泽新鲜,根部完整', count: 5, time: '2026-06-11 10:30', images: [1,1,1,1,1] },
{ id: 2, foodId: 15, name: '土豆', catLabel: '根茎类', note: '表皮完整,无发芽', count: 3, time: '2026-06-11 09:15', images: [15,15,15] },
{ id: 3, foodId: 17, name: '猪里脊', catLabel: '肉禽类', note: '肉质鲜红,纹理清晰', count: 4, time: '2026-06-11 08:45', images: [17,17,17,17] },
{ id: 4, foodId: 16, name: '胡萝卜', catLabel: '根茎类', note: '颜色橙红,形状均匀', count: 6, time: '2026-06-10 14:20', images: [16,16,16,16,16,16] },
{ id: 5, foodId: 19, name: '草鱼', catLabel: '水产类', note: '鱼体完整,鳞片光泽', count: 2, time: '2026-06-10 11:30', images: [19,19] },
{ id: 6, foodId: 2, name: '大白菜', catLabel: '叶菜类', note: '叶片紧实,无虫害', count: 4, time: '2026-06-10 10:00', images: [2,2,2,2] },
{ id: 7, foodId: 8, name: '西兰花', catLabel: '花菜类', note: '花球紧实,颜色翠绿', count: 3, time: '2026-06-09 15:10', images: [8,8,8] },
{ id: 8, foodId: 11, name: '西红柿', catLabel: '瓜果类', note: '颜色均匀,无破损', count: 7, time: '2026-06-09 09:30', images: [11,11,11,11,11,11,11] },
{ id: 9, foodId: 10, name: '黄瓜', catLabel: '瓜果类', note: '鲜嫩,顶花带刺', count: 5, time: '2026-06-08 14:00', images: [10,10,10,10,10] },
{ id: 10, foodId: 18, name: '五花肉', catLabel: '肉禽类', note: '肥瘦分层均匀', count: 3, time: '2026-06-08 10:20', images: [18,18,18] },
{ id: 11, foodId: 20, name: '虾仁', catLabel: '水产类', note: '虾体完整,弹性好', count: 4, time: '2026-06-07 16:30', images: [20,20,20,20] },
{ id: 12, foodId: 9, name: '花菜', catLabel: '花菜类', note: '花球紧实,颜色洁白', count: 2, time: '2026-06-07 09:00', images: [9,9] }
{ id: 1, foodId: 1, name: '菠菜', catLabel: '叶菜类', count: 5, time: '2026-06-11 10:30', images: [1,1,1,1,1] },
{ id: 2, foodId: 15, name: '土豆', catLabel: '根茎类', count: 3, time: '2026-06-11 09:15', images: [15,15,15] },
{ id: 3, foodId: 17, name: '猪里脊', catLabel: '肉禽类', count: 4, time: '2026-06-11 08:45', images: [17,17,17,17] },
{ id: 4, foodId: 16, name: '胡萝卜', catLabel: '根茎类', count: 6, time: '2026-06-10 14:20', images: [16,16,16,16,16,16] },
{ id: 5, foodId: 19, name: '草鱼', catLabel: '水产类', count: 2, time: '2026-06-10 11:30', images: [19,19] },
{ id: 6, foodId: 2, name: '大白菜', catLabel: '叶菜类', count: 4, time: '2026-06-10 10:00', images: [2,2,2,2] },
{ id: 7, foodId: 8, name: '西兰花', catLabel: '花菜类', count: 3, time: '2026-06-09 15:10', images: [8,8,8] },
{ id: 8, foodId: 11, name: '西红柿', catLabel: '瓜果类', count: 7, time: '2026-06-09 09:30', images: [11,11,11,11,11,11,11] },
{ id: 9, foodId: 10, name: '黄瓜', catLabel: '瓜果类', count: 5, time: '2026-06-08 14:00', images: [10,10,10,10,10] },
{ id: 10, foodId: 18, name: '五花肉', catLabel: '肉禽类', count: 3, time: '2026-06-08 10:20', images: [18,18,18] },
{ id: 11, foodId: 20, name: '虾仁', catLabel: '水产类', count: 4, time: '2026-06-07 16:30', images: [20,20,20,20] },
{ id: 12, foodId: 9, name: '花菜', catLabel: '花菜类', count: 2, time: '2026-06-07 09:00', images: [9,9] }
];
var currentDetailId = null;
@@ -402,8 +402,7 @@ function openDetail(id) {
modalTimeEl.innerHTML = '<div>' + (parts[0] || '') + '</div><div>' + (parts[1] || '') + '</div>';
/* 采样信息 */
modalInfoEl.innerHTML = ''
+ '<div class="modal-info__item"><div class="modal-info__label">采样备注</div><div class="modal-info__value">' + (record.note || '无') + '</div></div>';
modalInfoEl.innerHTML = '';
/* 已满9张时隐藏补充采集按钮 */
var btnResample = document.getElementById('btnResample');