首次提交
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>一般机构组件</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- Main Component Display -->
|
||||
<div id="machine-component" class="machine-component">
|
||||
<div class="header">
|
||||
<span id="machine-name-display">一般机构</span>
|
||||
<div class="status-indicator"></div>
|
||||
</div>
|
||||
<div class="info-grid">
|
||||
<div class="info-label">当前步骤</div>
|
||||
<div id="current-step" class="info-value">第一步</div>
|
||||
<div class="info-label">理论产能</div>
|
||||
<div id="theoretical-ppm" class="info-value">60.00PPM</div>
|
||||
<div class="info-label">当前产能</div>
|
||||
<div id="current-ppm" class="info-value">59.05PPM</div>
|
||||
</div>
|
||||
<div id="machine-status" class="status-text">等待下料</div>
|
||||
</div>
|
||||
|
||||
<!-- Settings Modal -->
|
||||
<div id="settings-modal" class="modal-overlay" style="display: none;">
|
||||
<div class="modal-content">
|
||||
<!-- Fixed Header -->
|
||||
<div class="modal-fixed-header">
|
||||
<div class="modal-header">
|
||||
<span id="modal-title">编辑-一般机构</span>
|
||||
<button id="close-modal-btn" class="close-btn">×</button>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="machine-name-input">机构名称:</label>
|
||||
<input type="text" id="machine-name-input" value="一般机构" required>
|
||||
<span class="error-message" id="machine-name-error"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="batch-quantity-input">批量处理数量:</label>
|
||||
<input type="number" id="batch-quantity-input" value="1" min="0" step="1" placeholder="0代表禁用">
|
||||
<span class="error-message" id="batch-quantity-error"></span>
|
||||
</div>
|
||||
<legend class="steps-legend">步骤设置:</legend>
|
||||
</div>
|
||||
|
||||
<!-- Scrollable Steps Area -->
|
||||
<div class="modal-scrollable-steps">
|
||||
<div id="steps-container">
|
||||
<!-- Steps will be added here by JS -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Fixed Footer -->
|
||||
<div class="modal-fixed-footer">
|
||||
<button id="add-step-btn" class="add-btn">添加步骤</button>
|
||||
<div class="form-group cache-group">
|
||||
<input type="checkbox" id="has-cache-checkbox">
|
||||
<label for="has-cache-checkbox">是否有缓存</label>
|
||||
<input type="number" id="cache-quantity-input" min="1" step="1" placeholder="必须>0的整数" disabled>
|
||||
<span class="error-message" id="cache-quantity-error"></span>
|
||||
</div>
|
||||
<div class="summary-section">
|
||||
<span>总耗时: <span id="total-time-display">0.00</span>秒</span>
|
||||
<span>理论产能: <span id="calculated-ppm-display">0.00</span>PPM</span>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button id="save-settings-btn" class="save-btn">保存</button>
|
||||
<button id="cancel-settings-btn" class="cancel-btn">取消</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user