From 7b77e5b1cb521c40d9060f8ae9b045b4b7ff4dbc Mon Sep 17 00:00:00 2001 From: zhangyan Date: Tue, 28 Jul 2026 17:10:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=87=80=E8=8F=9C=E5=8C=85=E8=A3=85?= =?UTF-8?q?=E8=B4=B4=E6=A0=87=E7=A7=A4=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=87=80=E8=8F=9C=E7=B1=BB=E5=9E=8B=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 三个Tab页净菜包均展示尺寸·切法·刀型,餐品净菜包显示"—"。Grid 7列→8列。 Co-Authored-By: Claude Opus 4.6 --- .../01-orders.html | 19 ++++++++++--------- .../doc/CHANGELOG.md | 5 +++++ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/other-module/canteen-device/clean-veg-packaging-labeler/01-orders.html b/other-module/canteen-device/clean-veg-packaging-labeler/01-orders.html index 0e273b1..ffe52ac 100644 --- a/other-module/canteen-device/clean-veg-packaging-labeler/01-orders.html +++ b/other-module/canteen-device/clean-veg-packaging-labeler/01-orders.html @@ -64,14 +64,14 @@ /* 表格头 */ .item-table__head { - display: grid; grid-template-columns: 1fr 0.5fr 0.45fr 0.3fr 0.3fr 44px 50px; gap: 6px; + display: grid; grid-template-columns: 1fr 0.5fr 0.45fr 0.55fr 0.3fr 0.3fr 44px 50px; gap: 6px; padding: 5px 14px; background: rgba(0,0,0,0.2); font-size: 10px; color: rgba(255,255,255,0.4); font-weight: 500; } .item-table__body { display: flex; flex-direction: column; } /* 餐品净菜包主行 */ .item-parent-row { - display: grid; grid-template-columns: 1fr 0.5fr 0.45fr 0.3fr 0.3fr 44px 50px; gap: 6px; + display: grid; grid-template-columns: 1fr 0.5fr 0.45fr 0.55fr 0.3fr 0.3fr 44px 50px; gap: 6px; padding: 6px 14px; border-top: 1px solid rgba(255,255,255,0.04); align-items: center; background: rgba(74,144,217,0.06); } @@ -254,8 +254,8 @@ taskNo: 'L-001', labeled: false, mealPacks: [ - { type: '净菜包', packName: '土豆', packSize: 3, packSpec: '500g', ingredients: [{ name: '土豆', weightPerPack: 500, weighed: 1500 }] }, - { type: '净菜包', packName: '胡萝卜', packSize: 3, packSpec: '500g', ingredients: [{ name: '胡萝卜', weightPerPack: 500, weighed: 1500 }] }, + { type: '净菜包', packName: '土豆', packSize: 3, packSpec: '500g', vegCutType: '3.5mm*3.5mm*50mm·细丝·平刀', ingredients: [{ name: '土豆', weightPerPack: 500, weighed: 1500 }] }, + { type: '净菜包', packName: '胡萝卜', packSize: 3, packSpec: '500g', vegCutType: '3mm*3mm*30mm·菱形片·斜刀', ingredients: [{ name: '胡萝卜', weightPerPack: 500, weighed: 1500 }] }, { type: '餐品净菜包', packName: '宫保鸡丁套餐', packSize: 2, packSpec: '大份800g', ingredients: [{ name: '宫保鸡丁', weightPerPack: 800, weighed: 1600 }] } ] }, @@ -266,7 +266,7 @@ taskNo: 'L-002', labeled: false, mealPacks: [ - { type: '净菜包', packName: '白菜', packSize: 2, packSpec: '1000g', ingredients: [{ name: '白菜', weightPerPack: 1000, weighed: 2000 }] }, + { type: '净菜包', packName: '白菜', packSize: 2, packSpec: '1000g', vegCutType: '5mm*5mm*50mm·段切·平刀', ingredients: [{ name: '白菜', weightPerPack: 1000, weighed: 2000 }] }, { type: '餐品净菜包', packName: '鱼香肉丝套餐', packSize: 2, packSpec: '大份800g', ingredients: [{ name: '鱼香肉丝', weightPerPack: 800, weighed: 1600 }] } ] }, @@ -294,7 +294,7 @@ operator: '刘九', shipped: false, mealPacks: [ - { type: '净菜包', packName: '黄瓜', packSize: 3, packSpec: '500g', ingredients: [{ name: '黄瓜', weightPerPack: 500, weighed: 1500 }] }, + { type: '净菜包', packName: '黄瓜', packSize: 3, packSpec: '500g', vegCutType: '2mm*2mm*40mm·薄片·平刀', ingredients: [{ name: '黄瓜', weightPerPack: 500, weighed: 1500 }] }, { type: '餐品净菜包', packName: '凉拌黄瓜套餐', packSize: 2, packSpec: '盒装', ingredients: [{ name: '凉拌黄瓜', weightPerPack: 600, weighed: 1200 }] } ] }, @@ -308,7 +308,7 @@ operator: '陈十', shipped: false, mealPacks: [ - { type: '净菜包', packName: '芹菜', packSize: 2, packSpec: '500g', ingredients: [{ name: '芹菜', weightPerPack: 500, weighed: 1000 }] }, + { type: '净菜包', packName: '芹菜', packSize: 2, packSpec: '500g', vegCutType: '4mm*4mm*30mm·条·平刀', ingredients: [{ name: '芹菜', weightPerPack: 500, weighed: 1000 }] }, { type: '餐品净菜包', packName: '芹菜炒肉套餐', packSize: 3, packSpec: '大份800g', ingredients: [{ name: '芹菜炒肉', weightPerPack: 800, weighed: 2400 }] } ] } @@ -330,7 +330,7 @@ shippingCompany: '顺丰速运', shippingNo: 'SF1234567890', mealPacks: [ - { type: '净菜包', packName: '西红柿', packSize: 5, packSpec: '500g', ingredients: [{ name: '西红柿', weightPerPack: 500, weighed: 2500 }] }, + { type: '净菜包', packName: '西红柿', packSize: 5, packSpec: '500g', vegCutType: '15mm*15mm*15mm·滚刀块·平刀', ingredients: [{ name: '西红柿', weightPerPack: 500, weighed: 2500 }] }, { type: '餐品净菜包', packName: '番茄牛腩套餐', packSize: 3, packSpec: '大份800g', ingredients: [{ name: '番茄牛腩', weightPerPack: 800, weighed: 2400 }] } ] } @@ -413,7 +413,7 @@ /* 表格头 */ var tableHead = document.createElement('div'); tableHead.className = 'item-table__head'; - tableHead.innerHTML = '
名称
净菜/餐品
包装规格
应称重量
已称重量
状态
操作
'; + tableHead.innerHTML = '
名称
净菜/餐品
包装规格
净菜类型
应称重量
已称重量
状态
操作
'; taskCard.appendChild(tableHead); /* 表格体 */ @@ -449,6 +449,7 @@ '
📦
' + pack.packName + '
' + '
' + pack.type + '
' + '
' + (pack.packSpec || '—') + '
' + + '
' + (pack.vegCutType || '—') + '
' + '
' + totalDue + ' g
' + '
' + totalWeighed + ' g
' + statusCell + diff --git a/other-module/canteen-device/clean-veg-packaging-labeler/doc/CHANGELOG.md b/other-module/canteen-device/clean-veg-packaging-labeler/doc/CHANGELOG.md index 1c4246a..029b5ea 100644 --- a/other-module/canteen-device/clean-veg-packaging-labeler/doc/CHANGELOG.md +++ b/other-module/canteen-device/clean-veg-packaging-labeler/doc/CHANGELOG.md @@ -1,5 +1,10 @@ # 净菜包装贴标秤 CHANGELOG +## 2026-07-28 | 净菜包新增净菜类型字段 + +### 修改 +- `01-orders.html` — 三个 Tab 页净菜包均新增「净菜类型」列(格式:尺寸·切法·刀型,如 `3.5mm*3.5mm*50mm·细丝·平刀`),餐品净菜包显示"—";grid 7列→8列;mock 数据同步补充 vegCutType 字段 + ## 2026-07-27 | 新增发货功能 + Tab 改造 ### 新增