-
待吐标 0
+
待打印 0
已贴标 0
@@ -142,7 +142,7 @@ /* 当前 Tab */ var currentFilter = 'pending'; - /* 模拟数据:待吐标订单(来自配比秤已完成配比的订单) */ + /* 模拟数据:待打印订单(来自配比秤已完成配比的订单) */ var mockData = [ { orderNo: 'PO-20260625-001', @@ -219,7 +219,7 @@ var allDone = pack.ingredients.every(function(ing) { return ing.weighed >= ing.weightPerPack * pack.packSize; }); - return allDone ? { text: '已贴标', cls: 'status-tag--done' } : { text: '待吐标', cls: 'status-tag--wait' }; + return allDone ? { text: '已贴标', cls: 'status-tag--done' } : { text: '待打印', cls: 'status-tag--wait' }; } /* 渲染任务列表 */ @@ -273,8 +273,8 @@ order.mealPacks.forEach(function(pack) { var packStatus = currentFilter === 'pending' - ? { text: '待吐标', cls: 'status-tag--wait' } - : { text: '已贴标', cls: 'status-tag--done' }; + ? { text: '待打印', cls: 'status-tag--wait' } + : { text: '已打印', cls: 'status-tag--done' }; var totalNeed = 0; var totalWeighed = 0; pack.ingredients.forEach(function(ing) { diff --git a/other-module/canteen-device/clean-veg-packaging-labeler/02-labeling.html b/other-module/canteen-device/clean-veg-packaging-labeler/02-labeling.html index eacb5b2..2dabb3a 100644 --- a/other-module/canteen-device/clean-veg-packaging-labeler/02-labeling.html +++ b/other-module/canteen-device/clean-veg-packaging-labeler/02-labeling.html @@ -167,7 +167,7 @@ .item-row__status { font-size: 10px; flex-shrink: 0; } .item-row__action { flex-shrink: 0; display: flex; gap: 6px; } - /* 吐标按钮 */ + /* 打印按钮 */ .label-btn { padding: 4px 12px; border: 1px solid rgba(82,196,26,0.3); background: rgba(82,196,26,0.1); color: #52c41a; border-radius: 5px; font-size: 11px; font-weight: 500; cursor: pointer; @@ -402,8 +402,8 @@ orderNo: 'PO-20260625-001', orderType: 'internal', items: [ - { type: '净菜包', packName: '土豆丝', packSize: 3, packSpec: '500g', weightPerPack: 500, weighed: 1500, icon: '🥔' }, - { type: '净菜包', packName: '胡萝卜丝', packSize: 3, packSpec: '500g', weightPerPack: 500, weighed: 1500, icon: '🥕' }, + { type: '净菜包', packName: '土豆丝', packSize: 3, packSpec: '500g', cutSpec: '20mm*1mm*1mm · 细丝 · 平刀', weightPerPack: 500, weighed: 1500, icon: '🥔' }, + { type: '净菜包', packName: '胡萝卜丝', packSize: 3, packSpec: '500g', cutSpec: '20mm*1mm*1mm · 细丝 · 平刀', weightPerPack: 500, weighed: 1500, icon: '🥕' }, { type: '餐品净菜包', packName: '宫保鸡丁套餐', packSize: 2, packSpec: '大份800g', weightPerPack: 800, weighed: 1600, icon: '🍱' } ] }, @@ -411,7 +411,7 @@ orderNo: 'PO-20260625-002', orderType: 'external', items: [ - { type: '净菜包', packName: '白菜丝', packSize: 2, packSpec: '1000g', weightPerPack: 1000, weighed: 2000, icon: '🥬' }, + { type: '净菜包', packName: '白菜丝', packSize: 2, packSpec: '1000g', cutSpec: '50mm*30mm*30mm · 宽段 · 平刀', weightPerPack: 1000, weighed: 2000, icon: '🥬' }, { type: '餐品净菜包', packName: '鱼香肉丝套餐', packSize: 2, packSpec: '大份800g', weightPerPack: 800, weighed: 1600, icon: '🍱' } ] }, @@ -448,6 +448,7 @@ packName: item.packName, packSize: item.packSize, packSpec: item.packSpec, + cutSpec: item.cutSpec, weightPerPack: item.weightPerPack, weighed: item.weighed, icon: item.icon, @@ -495,12 +496,12 @@ document.getElementById('btnNext').disabled = !allDone; } - /* ---- 检查是否全部完成(所有项都已吐标) ---- */ + /* ---- 检查是否全部完成(所有项都已打印) ---- */ function checkAllDone() { return allItems.every(function(item) { return item.labeled; }); } - /* ---- 渲染贴标清单(净菜包和餐品净菜包统一用待吐标/已吐标) ---- */ + /* ---- 渲染贴标清单(净菜包和餐品净菜包统一用待打印/已打印) ---- */ function renderItemList() { var body = document.getElementById('itemListBody'); body.innerHTML = ''; @@ -512,13 +513,13 @@ row.className = 'item-row' + (isMeal ? ' item-row--meal' : ''); - /* 状态:统一用待吐标/已吐标 */ + /* 状态:统一用待打印/已打印 */ var labeledTag = item.labeled - ? '已吐标' - : '待吐标'; + ? '已打印' + : '待打印'; - /* 按钮:统一用吐标/重新吐标 */ - var labelBtnText = item.labeled ? '重新吐标' : '吐标'; + /* 按钮:统一用打印/重新打印 */ + var labelBtnText = item.labeled ? '重新打印' : '打印'; var labelBtnCls = item.labeled ? 'label-btn label-btn--done' : 'label-btn'; var typeTagCls = isMeal ? 'item-row__type-tag--meal' : 'item-row__type-tag--veg'; @@ -532,13 +533,13 @@ ? '' + item.packName + '' : '--'; - /* 按钮逻辑:净菜包无手动吐标按钮(秤重确认时自动吐标),餐品净菜包手动吐标 */ + /* 按钮逻辑:净菜包无手动打印按钮(秤重确认时自动打印),餐品净菜包手动打印 */ var actionHtml; if (isMeal) { actionHtml = ''; } else { if (item.labeled) { - actionHtml = ''; + actionHtml = ''; } else { actionHtml = ''; } @@ -553,6 +554,7 @@ '