feat:之前同事误改的厨配秤恢复成净菜加工秤
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1280, initial-scale=1.0">
|
||||
<title>厨配秤 - 员工登录 | 蚁熊智能餐养平台</title>
|
||||
<title>净菜加工秤 - 员工登录 | 蚁熊智能餐养平台</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
@@ -95,7 +95,7 @@
|
||||
<body>
|
||||
<div class="login-page">
|
||||
<div class="login-card">
|
||||
<div class="login-card__title">厨配秤</div>
|
||||
<div class="login-card__title">净菜加工秤</div>
|
||||
<div class="login-card__subtitle">员工登录</div>
|
||||
<div class="login-tabs">
|
||||
<div class="login-tab active" data-tab="face" onclick="switchTab('face')">人脸识别</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1280, initial-scale=1.0">
|
||||
<title>厨配秤 - 厨配 | 蚁熊智能餐养平台</title>
|
||||
<title>净菜加工秤 | 蚁熊智能餐养平台</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
@@ -285,7 +285,7 @@
|
||||
<!-- 顶部导航 -->
|
||||
<div class="top-bar">
|
||||
<a class="back-btn" id="backBtn" href="javascript:void(0)">◀ 返回</a>
|
||||
<span class="page-title">厨配</span>
|
||||
<span class="page-title">加工</span>
|
||||
<div class="user-info">
|
||||
<div class="avatar" id="userAvatar">赵</div>
|
||||
<span id="userName">赵六</span>
|
||||
@@ -335,7 +335,7 @@
|
||||
|
||||
<!-- 右列:净菜列表 -->
|
||||
<div class="col-right">
|
||||
<!-- 厨配卡片列表 -->
|
||||
<!-- 加工卡片列表 -->
|
||||
<button class="fetch-task-btn" onclick="handleFetchTask()">📥 获取任务</button>
|
||||
<div class="food-cards" id="foodCards"></div>
|
||||
|
||||
@@ -347,12 +347,12 @@
|
||||
<!-- 重量确认弹窗 -->
|
||||
<div class="modal-overlay" id="weightModal">
|
||||
<div class="modal">
|
||||
<div class="modal__title">本次厨配确认</div>
|
||||
<div class="modal__title">本次加工确认</div>
|
||||
<div class="modal__food">
|
||||
<span class="modal__food-icon" id="modalIcon"></span>
|
||||
<span id="modalFoodName">--</span>
|
||||
</div>
|
||||
<div class="modal__label">本次厨配重量</div>
|
||||
<div class="modal__label">本次加工重量</div>
|
||||
<div class="modal__weight-row">
|
||||
<span class="modal__weight-value" id="modalWeight">0.0</span>
|
||||
<button class="modal__weight-refresh" onclick="refreshWeight()" title="重新获取秤上重量">🔄</button>
|
||||
@@ -417,7 +417,7 @@
|
||||
document.getElementById('userName').textContent = userName;
|
||||
document.getElementById('userAvatar').textContent = userName.charAt(0);
|
||||
|
||||
// 初始化净菜列表(带累计已厨配重量)
|
||||
// 初始化净菜列表(带累计已加工重量)
|
||||
acceptedFoods = mockFoods.map(function(f) {
|
||||
foodIdCounter++;
|
||||
return { id: foodIdCounter, name: f.name, size: f.size, shape: f.shape, blade: f.blade, target: f.target, processed: f.processed, arrivalTime: f.arrivalTime, icon: f.icon };
|
||||
@@ -448,7 +448,7 @@
|
||||
+ '<span class="food-card__spec">' + f.size + ' · ' + f.shape + ' · ' + f.blade + '</span>'
|
||||
+ '<div class="food-card__progress">'
|
||||
+ '<div style="display:flex;justify-content:space-between;">'
|
||||
+ '<span class="food-card__progress-label">累计厨配(斤)</span>'
|
||||
+ '<span class="food-card__progress-label">累计加工(斤)</span>'
|
||||
+ '<span class="food-card__progress-text">' + f.processed.toFixed(1) + ' / ' + f.target.toFixed(1) + '</span>'
|
||||
+ '</div>'
|
||||
+ '<div class="food-card__progress-wrap">'
|
||||
@@ -458,7 +458,7 @@
|
||||
+ '</div>';
|
||||
});
|
||||
if (html === '') {
|
||||
html = '<div style="grid-column:1/-1;text-align:center;padding:40px;color:rgba(255,255,255,0.2);font-size:13px;">暂无厨配净菜,点击上方「获取任务」添加</div>';
|
||||
html = '<div style="grid-column:1/-1;text-align:center;padding:40px;color:rgba(255,255,255,0.2);font-size:13px;">暂无加工净菜,点击上方「获取任务」添加</div>';
|
||||
}
|
||||
container.innerHTML = html;
|
||||
}
|
||||
@@ -490,7 +490,7 @@
|
||||
}
|
||||
|
||||
function doFetchTask() {
|
||||
showToast('正在获取厨配任务...', 800);
|
||||
showToast('正在获取加工任务...', 800);
|
||||
setTimeout(function() {
|
||||
var existingNames = acceptedFoods.filter(function(f) { return f.processed < f.target; }).map(function(f) { return f.name; });
|
||||
var available = foodDatabase.filter(function(f) { return existingNames.indexOf(f.name) === -1; });
|
||||
@@ -504,7 +504,7 @@
|
||||
foodIdCounter++;
|
||||
acceptedFoods.push({ id: foodIdCounter, name: food.name, size: food.size, shape: food.shape, blade: food.blade, target: target, processed: processed, arrivalTime: food.arrivalTime, icon: food.icon });
|
||||
renderFoodCards();
|
||||
showToast('已获取:' + food.name + '(应厨配 ' + target.toFixed(1) + '斤)', 1500);
|
||||
showToast('已获取:' + food.name + '(应加工 ' + target.toFixed(1) + '斤)', 1500);
|
||||
}, 800);
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1280, initial-scale=1.0">
|
||||
<title>厨配秤 - 功能菜单 | 蚁熊智能餐养平台</title>
|
||||
<title>净菜加工秤 - 功能菜单 | 蚁熊智能餐养平台</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
@@ -68,7 +68,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="top-bar">
|
||||
<span class="top-bar__title">厨配秤</span>
|
||||
<span class="top-bar__title">净菜加工秤</span>
|
||||
<div class="top-bar__user">
|
||||
<div class="top-bar__avatar" id="menuAvatar">赵</div>
|
||||
<span id="menuUserName">赵六</span>
|
||||
@@ -83,8 +83,8 @@
|
||||
<a class="menu-btn" id="btnAccept" href="javascript:void(0)" onclick="handleMenu('01-accept.html')">
|
||||
<div class="menu-btn__icon menu-btn__icon--blue">✅</div>
|
||||
<div class="menu-btn__info">
|
||||
<div class="menu-btn__title">厨配</div>
|
||||
<div class="menu-btn__desc">净菜上秤识别、厨配确认</div>
|
||||
<div class="menu-btn__title">加工</div>
|
||||
<div class="menu-btn__desc">净菜上秤识别、加工确认</div>
|
||||
</div>
|
||||
<div class="menu-btn__arrow">›</div>
|
||||
</a>
|
||||
@@ -107,8 +107,8 @@
|
||||
<a class="menu-btn" id="btnHistory" href="javascript:void(0)" onclick="handleMenu('02-history.html')">
|
||||
<div class="menu-btn__icon menu-btn__icon--gray">📝</div>
|
||||
<div class="menu-btn__info">
|
||||
<div class="menu-btn__title">厨配记录</div>
|
||||
<div class="menu-btn__desc">历史厨配验收记录查看与筛选</div>
|
||||
<div class="menu-btn__title">加工记录</div>
|
||||
<div class="menu-btn__desc">历史加工验收记录查看与筛选</div>
|
||||
</div>
|
||||
<div class="menu-btn__arrow">›</div>
|
||||
</a>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1280, initial-scale=1.0">
|
||||
<title>厨配秤 - 厨配记录 | 蚁熊智能餐养平台</title>
|
||||
<title>净菜加工秤 - 加工记录 | 蚁熊智能餐养平台</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
@@ -233,7 +233,7 @@
|
||||
|
||||
<div class="top-bar">
|
||||
<a class="back-btn" id="backBtn" href="javascript:void(0)">◀ 返回</a>
|
||||
<span class="page-title">厨配记录</span>
|
||||
<span class="page-title">加工记录</span>
|
||||
<span class="top-bar__user" id="topUser">--</span>
|
||||
<button class="logout-btn" onclick="handleLogout()">退出</button>
|
||||
</div>
|
||||
@@ -263,7 +263,7 @@
|
||||
<!-- 搜索框 -->
|
||||
<div class="search-box">
|
||||
<span class="search-box__icon">🔍</span>
|
||||
<input class="search-box__input" id="searchInput" type="text" placeholder="搜索厨配号 / 净菜" oninput="onSearchInput()">
|
||||
<input class="search-box__input" id="searchInput" type="text" placeholder="搜索加工号 / 净菜" oninput="onSearchInput()">
|
||||
<button class="search-box__clear" id="searchClear" onclick="clearSearch()">×</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -272,11 +272,11 @@
|
||||
<div class="stats-row">
|
||||
<div class="stat-chip">
|
||||
<div class="stat-chip__icon stat-chip__icon--blue">📋</div>
|
||||
<div><div class="stat-chip__value" id="statTotal">6</div><div class="stat-chip__label" id="statTotalLabel">今日厨配总数</div></div>
|
||||
<div><div class="stat-chip__value" id="statTotal">6</div><div class="stat-chip__label" id="statTotalLabel">今日加工总数</div></div>
|
||||
</div>
|
||||
<div class="stat-chip">
|
||||
<div class="stat-chip__icon stat-chip__icon--green">⚖️</div>
|
||||
<div><div class="stat-chip__value" id="statWeight">0</div><div class="stat-chip__label">厨配总重量(斤)</div></div>
|
||||
<div><div class="stat-chip__value" id="statWeight">0</div><div class="stat-chip__label">加工总重量(斤)</div></div>
|
||||
</div>
|
||||
<div class="stat-chip">
|
||||
<div class="stat-chip__icon stat-chip__icon--orange">🥬</div>
|
||||
@@ -289,14 +289,14 @@
|
||||
<div class="table-scroll">
|
||||
<table>
|
||||
<thead><tr id="tableHead">
|
||||
<th>厨配号</th><th>净菜</th><th>净菜类型</th>
|
||||
<th>厨配重量</th><th>完成时间</th>
|
||||
<th>加工号</th><th>净菜</th><th>净菜类型</th>
|
||||
<th>加工重量</th><th>完成时间</th>
|
||||
</tr></thead>
|
||||
<tbody id="tableBody"></tbody>
|
||||
</table>
|
||||
<div class="empty-state" id="emptyState">
|
||||
<div class="empty-state__icon">📭</div>
|
||||
<div>暂无厨配记录</div>
|
||||
<div>暂无加工记录</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-footer" id="tableFooter">共 0 条记录</div>
|
||||
@@ -324,7 +324,7 @@
|
||||
var TODAY = '2026-06-17';
|
||||
var WEEKDAYS = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];
|
||||
|
||||
// 厨配记录数据(厨配语义)
|
||||
// 加工记录数据(加工语义)
|
||||
var RECORDS = [
|
||||
{ batch:'JC-20260617-001', orderId:'PO-20260617-001', time:'2026-06-17 09:35', dish:'土豆', spec:'35mm*1mm*1mm · 长条 · 平刀', weight:5.2, duration:'5分钟' },
|
||||
{ batch:'JC-20260617-002', orderId:'PO-20260617-001', time:'2026-06-17 09:52', dish:'黄瓜', spec:'30mm*30mm*3mm · 圆片 · 平刀', weight:4.2, duration:'4分钟' },
|
||||
@@ -448,10 +448,10 @@
|
||||
var monday = getMonday();
|
||||
var mondayStr = dateStr(monday);
|
||||
records = RECORDS.filter(function(r) { return r.time.substring(0, 10) >= mondayStr; });
|
||||
totalLabel = '本周厨配总数';
|
||||
totalLabel = '本周加工总数';
|
||||
} else {
|
||||
records = RECORDS.filter(function(r) { return r.time.substring(0, 10) === selectedDate; });
|
||||
totalLabel = (selectedDate === TODAY) ? '今日厨配总数' : (selectedDate.substring(5).replace('-', '/') + ' 厨配总数');
|
||||
totalLabel = (selectedDate === TODAY) ? '今日加工总数' : (selectedDate.substring(5).replace('-', '/') + ' 加工总数');
|
||||
}
|
||||
|
||||
var total = records.length;
|
||||
@@ -514,8 +514,8 @@
|
||||
var thead = document.getElementById('tableHead');
|
||||
|
||||
var dateCol = isWeeklyMode ? '<th>日期</th>' : '';
|
||||
thead.innerHTML = dateCol + '<th>厨配号</th><th>净菜</th><th>净菜类型</th>'
|
||||
+ '<th>厨配重量</th><th>完成时间</th>';
|
||||
thead.innerHTML = dateCol + '<th>加工号</th><th>净菜</th><th>净菜类型</th>'
|
||||
+ '<th>加工重量</th><th>完成时间</th>';
|
||||
|
||||
if (records.length === 0) {
|
||||
tbody.innerHTML = '';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1280, initial-scale=1.0">
|
||||
<title>厨配秤 - 设备设置 | 蚁熊智能餐养平台</title>
|
||||
<title>净菜加工秤 - 设备设置 | 蚁熊智能餐养平台</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif; background: #0e1326; color: #fff; width: 1280px; height: 720px; overflow: hidden; }
|
||||
@@ -59,7 +59,7 @@
|
||||
</div>
|
||||
<div class="main-content">
|
||||
<div class="settings-menu">
|
||||
<div class="menu-item active" onclick="switchSection('cutting', this)"><span class="menu-item__icon">🔪</span><span>厨配参数</span></div>
|
||||
<div class="menu-item active" onclick="switchSection('cutting', this)"><span class="menu-item__icon">🔪</span><span>加工参数</span></div>
|
||||
<div class="menu-item" onclick="switchSection('ai', this)"><span class="menu-item__icon">🤖</span><span>AI识别</span></div>
|
||||
<div class="menu-item" onclick="switchSection('scale', this)"><span class="menu-item__icon">⚖️</span><span>秤参数</span></div>
|
||||
<div class="menu-item" onclick="switchSection('device', this)"><span class="menu-item__icon">💻</span><span>设备信息</span></div>
|
||||
@@ -67,7 +67,7 @@
|
||||
</div>
|
||||
<div class="settings-content">
|
||||
<div class="settings-section" id="section-cutting">
|
||||
<div class="section-title">厨配参数配置</div>
|
||||
<div class="section-title">加工参数配置</div>
|
||||
<div class="setting-item__hint" style="background:rgba(74,144,217,0.08);border:1px solid rgba(74,144,217,0.2);border-radius:8px;padding:10px 12px;margin-bottom:12px;font-size:11px;color:rgba(255,255,255,0.6);line-height:1.5;">
|
||||
ℹ️ 以下默认值从食材档案 <code style="color:#4a90d9">vegTypes.cutSpec</code> 自动读取,此处仅作设备级覆盖(切配类型字典 <code style="color:#4a90d9">spec_cut_shape</code>)。
|
||||
</div>
|
||||
@@ -120,7 +120,7 @@
|
||||
<div class="settings-section" id="section-device" style="display:none">
|
||||
<div class="section-title">设备信息</div>
|
||||
<div class="device-info">
|
||||
<div class="info-item"><div class="info-item__label">设备名称</div><div class="info-item__value">厨配秤-01</div></div>
|
||||
<div class="info-item"><div class="info-item__label">设备名称</div><div class="info-item__value">净菜加工秤-01</div></div>
|
||||
<div class="info-item"><div class="info-item__label">设备编号</div><div class="info-item__value">JCJG-2026-001</div></div>
|
||||
<div class="info-item"><div class="info-item__label">固件版本</div><div class="info-item__value">v2.3.1</div></div>
|
||||
<div class="info-item"><div class="info-item__label">AI模型版本</div><div class="info-item__value">cut-ai-v3.1</div></div>
|
||||
@@ -135,7 +135,7 @@
|
||||
<div class="device-info">
|
||||
<div class="info-item"><div class="info-item__label">系统名称</div><div class="info-item__value">蚁熊智能餐养平台</div></div>
|
||||
<div class="info-item"><div class="info-item__label">系统版本</div><div class="info-item__value">v5.8.0</div></div>
|
||||
<div class="info-item"><div class="info-item__label">设备类型</div><div class="info-item__value">厨配秤</div></div>
|
||||
<div class="info-item"><div class="info-item__label">设备类型</div><div class="info-item__value">净菜加工秤</div></div>
|
||||
<div class="info-item"><div class="info-item__label">制造商</div><div class="info-item__value">蚁熊智能科技有限公司</div></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1280, initial-scale=1.0">
|
||||
<title>厨配秤 - 净菜采样 | 蚁熊智能餐养平台</title>
|
||||
<title>净菜加工秤 - 净菜采样 | 蚁熊智能餐养平台</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1280, initial-scale=1.0">
|
||||
<title>厨配秤 - 采样历史 | 蚁熊智能餐养平台</title>
|
||||
<title>净菜加工秤 - 采样历史 | 蚁熊智能餐养平台</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# 厨配秤 CHANGELOG
|
||||
# 净菜加工秤 CHANGELOG
|
||||
|
||||
## [2026-06-17] refactor: 任务截止时间格式改为年月日时间
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
### 变更
|
||||
- 删除旧页面:`01-cutting-tasks.html`(任务列表)、`02-weighing.html`(称重录入)、`03-cutting.html`(切配操作)
|
||||
- 新建 `01-accept.html`(净菜验收主操作页):模仿毛菜验收秤流程,包含任务选择→上秤识别→验收确认两步操作
|
||||
- 重命名 `04-history.html` → `02-history.html`:「切配记录」→「验收记录」,规格标签由切法改为厨配规格
|
||||
- 重命名 `05-settings.html` → `03-settings.html`:「切配参数」→「厨配参数」
|
||||
- 重命名 `04-history.html` → `02-history.html`:「切配记录」→「验收记录」,规格标签由切法改为加工规格
|
||||
- 重命名 `05-settings.html` → `03-settings.html`:「切配参数」→「加工参数」
|
||||
- 更新 `00-welcome.html`:功能菜单由4个缩减为3个(净菜验收、验收记录、设置)
|
||||
- 更新 `index.html`:导航卡片同步更新为新页面结构
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
## [1.0.0] - 2026-06-13
|
||||
|
||||
### 新增
|
||||
- 首次创建厨配秤模块(6个页面)
|
||||
- 首次创建净菜加工秤模块(6个页面)
|
||||
- `00-welcome.html` — 欢迎页:人脸识别+账号密码登录+功能菜单
|
||||
- `01-cutting-tasks.html` — 今日切配任务列表:任务卡片含切法标签、状态筛选、进度展示
|
||||
- `02-weighing.html` — 称重录入:AI识别品类、实时称重、确认后跳转切配页面
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=1280, initial-scale=1.0">
|
||||
<title>厨配秤 - 蚁熊智能餐养平台</title>
|
||||
<title>净菜加工秤 - 蚁熊智能餐养平台</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif; background: #0e1326; color: #fff; width: 1280px; height: 720px; overflow: hidden; }
|
||||
@@ -24,7 +24,7 @@
|
||||
<body>
|
||||
<div class="top-bar">
|
||||
<a class="back-link" href="../index.html">◀ 返回</a>
|
||||
<span class="top-bar__title">厨配秤</span>
|
||||
<span class="top-bar__title">净菜加工秤</span>
|
||||
</div>
|
||||
<div class="main-content">
|
||||
<a class="card" href="00-welcome.html">
|
||||
@@ -38,8 +38,8 @@
|
||||
<a class="card" href="01-accept.html">
|
||||
<span class="card__icon">✅</span>
|
||||
<div class="card__info">
|
||||
<div class="card__title">厨配</div>
|
||||
<div class="card__desc">净菜上秤识别、厨配确认</div>
|
||||
<div class="card__title">净菜加工任务</div>
|
||||
<div class="card__desc">净菜上秤识别、加工确认</div>
|
||||
</div>
|
||||
<span class="card__arrow">›</span>
|
||||
</a>
|
||||
@@ -62,8 +62,8 @@
|
||||
<a class="card" href="02-history.html">
|
||||
<span class="card__icon">📝</span>
|
||||
<div class="card__info">
|
||||
<div class="card__title">厨配记录</div>
|
||||
<div class="card__desc">历史厨配记录查看与筛选</div>
|
||||
<div class="card__title">加工记录</div>
|
||||
<div class="card__desc">历史加工记录查看与筛选</div>
|
||||
</div>
|
||||
<span class="card__arrow">›</span>
|
||||
</a>
|
||||
|
||||
@@ -178,7 +178,7 @@
|
||||
<a class="card" href="clean-veg-ratio-scale/index.html">
|
||||
<span class="card__status card__status--done">已设计</span>
|
||||
<div class="card__icon">⚖️</div>
|
||||
<div class="card__name">厨配秤</div>
|
||||
<div class="card__name">净菜加工秤</div>
|
||||
<div class="card__desc">净菜加工:任务驱动,含尺寸/形状/刀工要求</div>
|
||||
</a>
|
||||
<a class="card" href="clean-veg-inventory-cabinet/index.html">
|
||||
|
||||
Reference in New Issue
Block a user