英文版md

This commit is contained in:
hhl
2026-05-12 01:46:34 +08:00
parent b41d146d36
commit 1fc6406619
50 changed files with 12825 additions and 0 deletions

View File

@@ -0,0 +1,326 @@
# Alert Center
## 1. Function Overview
The Alert Center belongs to the monitoring and alert module of the MES system's data middle ground. It is used to monitor the channel abnormal status of production equipment in real-time, helping production managers discover and handle equipment point issues promptly. The system organizes data by equipment category (workstation), and separately counts two types of alert data: **consecutive errors** (the same channel reports errors 3 times or more consecutively) and **cumulative errors** (the same channel reports errors 10 times or more cumulatively). It provides functions for viewing details and clearing exceptions.
**Core Functions:**
- Workstation Overview: Display the number of abnormal devices under each workstation by equipment category, including consecutive error device count and cumulative error device count
- Device Exception Details: View detailed data of all abnormal devices under a workstation, distinguishing between consecutive errors and cumulative errors
- Channel Exception Details: View specific error information for each abnormal channel, including error code, error description, and occurrence time
- Exception Clearance: Support device-level and single-channel clearance, with two methods: reset (reset count) and mark as processed
- Condition Filtering: Filter by time range and specific device, support exporting exception data
**Function Screenshot**:
![Alert Center Function Screenshot](/public/image_en/planning_and_production/alert_center/图片:预警中心功能截图.png)
## 2. Term Explanation
| Term | Definition | Description |
|------|------------|-------------|
| Alert Center | Alert Center, device point exception monitoring and alert module | Displays production equipment channel abnormal status in real-time, helping quickly locate problematic devices |
| Workstation | Workstation, i.e., Device Category | Grouped by device type, such as formation, capacity grading, OCV, DCIR, etc. |
| Consecutive Error | Consecutive Error, the same channel reports errors 3 times or more consecutively | Indicates that the channel has been continuously abnormal recently and requires focused attention |
| Cumulative Error | Cumulative Error, the same channel reports errors 10 times or more cumulatively | Indicates that although the channel may not be consecutive, the overall exception frequency is high |
| Channel | Channel, data collection point on the device | A device usually has multiple channels, and each channel independently counts exceptions |
| Pin NG | Pin NG, exception (defect) information reported by the device channel | Reported by the device through the MES interface, including error code and error description |
| Exception Clearance | Clear Error, reset exception count | Supports overall clearance and single-channel clearance, after which the counter restarts counting |
| Channel Exception Record | Channel Exception Record, channel exception monitoring configuration enabled in the process | After enabled for a process in the process details, the device will trigger channel exception detection |
**Data Model Relationship Explanation:**
```mermaid
flowchart TB
subgraph 筛选维度
DC[设备类别<br/>DeviceCategory]
DE[设备<br/>Device]
end
subgraph 异常统计
CES[设备通道异常统计<br/>DeviceChannerlExceptionStatistics]
end
subgraph 异常详情
PNR[点位NG记录<br/>PinNgRecord]
NI[不良信息<br/>NgInfo]
end
subgraph 触发来源
SPR[工序结果上报<br/>SetTrayProcessResult]
PCQ[点位检查队列<br/>hf_mes_queue_pincheck]
end
DC -->|1:N| DE
DE -->|1:1| CES
CES -->|关联查询| PNR
PNR -->|关联| NI
SPR -->|触发验证| PCQ
PCQ -->|异步更新| CES
```
**Relationship Explanation:**
| Relationship Type | Description |
|------------------|-------------|
| Device Category → Device | **1 to N**: One device category contains multiple devices |
| Device → Channel Exception Statistics | **1 to 1**: Each device corresponds to one channel exception statistics record |
| Channel Exception Statistics → Pin NG Record | **1 to N**: Query exception details through device code and channel number |
| Pin NG Record → Defect Information | **N to 1**: Each NG record is associated with a defect code to get the defect description |
**Simplified Relationship Diagram:**
```mermaid
flowchart LR
A[设备类别] -->|1:N| B[设备]
B -->|1:1| C[通道异常统计]
C -->|关联| D[点位NG记录]
D -->|关联| E[不良信息]
```
## 3. Alert Center Interaction Flow
### 3.1 Workstation Overview
#### 3.1.1 Workstation Overview Description
The workstation overview page displays all device categories (workstations) in card form. Each card shows the workstation name and two types of abnormal device counts:
- **Consecutive Error Device Count**: Number of devices with at least one channel having ≥ 3 consecutive errors
- **Cumulative Error Device Count**: Number of devices with at least one channel having ≥ 10 cumulative errors
Users can filter by time range and specific device through filter conditions.
**Function Screenshot**:
![Workstation Overview Screenshot](/public/image_en/planning_and_production/alert_center/图片:工作站总览截图.png)
#### 3.1.2 Query Conditions
**Query Conditions:**
| Query Condition | Description |
|----------------|-------------|
| Time Range | Select start and end time, accurate to seconds |
| Workstation | Select device category (workstation) from dropdown list, such as formation, capacity grading, OCV, etc. |
| Device | After selecting a workstation, further select a specific device for filtering (optional) |
**Operation Steps:**
1. Go to [Data Middle Ground] → [Alert Center]
2. Set time range (required)
3. Select workstation (optional, defaults to showing all workstations)
4. If viewing a specific device, select the device after selecting the workstation
5. Click [Query] button, the system displays alert data that meets the conditions
**Function Screenshot**:
![Query Conditions Screenshot](/public/image_en/planning_and_production/alert_center/图片:查询条件截图.png)
#### 3.1.3 Workstation Card Information
Each workstation card contains the following information:
| Display Field | Description |
|---------------|-------------|
| Workstation Name | Name of the device category, such as "Formation", "Capacity Grading" |
| Consecutive Error Device Count | Total number of devices with consecutive error channels (≥3 times) under this workstation, displayed as a blue badge |
| Cumulative Error Device Count | Total number of devices with cumulative error channels (≥10 times) under this workstation, displayed as an orange badge |
| View Data | When consecutive error device count or cumulative error device count > 0, click to view details |
**Function Screenshot**:
![Workstation Card Screenshot](/public/image_en/planning_and_production/alert_center/图片:工作站卡片截图.png)
### 3.2 Device Exception Details
#### 3.2.1 Device Exception Details Description
Click the [View Data] button on the workstation card to open a full-screen dialog, divided into two columns:
- **Left: Consecutive Error List** — Displays devices with consecutive errors under this workstation
- **Right: Cumulative Error List** — Displays devices with cumulative errors under this workstation
**Function Screenshot**:
![Device Exception Details Screenshot](/public/image_en/planning_and_production/alert_center/图片:设备异常明细截图.png)
#### 3.2.2 Consecutive Error List
The consecutive error list displays all devices under this workstation that have channels with consecutive error counts ≥ 3.
**List Fields:**
| Field | Description |
|-------|-------------|
| Device Name | Display name of the device |
| Device Code | Unique identification code of the device |
| Exception Channel Count | Total number of channels with consecutive errors (≥3 times) in this device |
| Last Reset Time | Time of the last consecutive error count clearance |
| Update Time | Last update time of the device exception statistics data |
| Operation | Includes [Details] and [Clear] buttons |
**Expand Row**: Click the expand button at the beginning of the row to view the consecutive error count for each channel of the device. Each channel displays the specific value as a badge, supporting clicking on a single channel for individual reset.
#### 3.2.3 Cumulative Error List
The cumulative error list displays all devices under this workstation that have channels with cumulative error counts ≥ 10.
**List Fields:**
| Field | Description |
|-------|-------------|
| Device Name | Display name of the device |
| Device Code | Unique identification code of the device |
| Exception Channel Count | Total number of channels with cumulative errors (≥10 times) in this device |
| Last Reset Time | Time of the last cumulative error count clearance |
| Update Time | Last update time of the device exception statistics data |
| Operation | Includes [Details] and [Clear] buttons |
**Expand Row**: Click the expand button at the beginning of the row to view the cumulative error count for each channel of the device. Each channel displays the specific value as a badge, supporting clicking on a single channel for individual reset.
### 3.3 Channel Exception Details
#### 3.3.1 Channel Exception Details Description
In the consecutive error list or cumulative error list, click the [Details] button of a device row to pop up the channel exception details dialog, showing specific error information for all abnormal channels of the device.
**Function Screenshots**:
![Channel Exception Device List](/public/image_en/planning_and_production/alert_center/图片:通道异常设备异常列表.png)
![Channel Exception Details Screenshot](/public/image_en/planning_and_production/alert_center/图片:通道异常详情截图.png)
#### 3.3.2 Channel Exception Details Fields
**Details List Fields:**
| Field | Description |
|-------|-------------|
| Device Name | Display name of the device |
| Device Code | Unique identification code of the device |
| Channel Number | Channel number where the exception occurred |
| Error Code | Error code of the exception |
| Error Description | Specific description information of the exception |
| Exception Time | Specific time when the exception occurred |
**[Note]** When viewing details, the system displays exception records of the corresponding type according to whether it's consecutive error or cumulative error. If the device has new exception records after the last reset, only exceptions generated after the reset will be displayed in the details.
### 3.4 Exception Clearance
#### 3.4.1 Exception Clearance Description
The alert center supports two granularities of exception clearance, which users can choose flexibly according to actual situations.
**Clearance Methods:**
| Clearance Method | Description | Applicable Scenario |
|------------------|-------------|---------------------|
| Device-level Clearance | Clear all exception channel counts of the device | The device has fully recovered, and all channel issues have been resolved |
| Single-channel Clearance | Only clear the exception count of the specified channel | Only individual channel issues have been resolved, and other channels still need attention |
**Clearance Effects:**
| Clearance Type | Effect |
|----------------|--------|
| Consecutive Error Clearance | Reset/clear all consecutive error counts of the device to zero, record the last reset time |
| Cumulative Error Clearance | Reset/clear all cumulative error counts of the device to zero, record the last reset time |
#### 3.4.2 Device-level Clearance
**Operation Steps:**
1. On the device exception details page, find the device row to clear
2. Click [Clear] button
3. The system pops up a confirmation dialog, confirm to execute the clearance operation
4. After successful clearance, the page data refreshes automatically, and the workstation overview updates synchronously
**[Note]** Device-level clearance will clear all channel exception counts of the device at once, please operate with caution.
**[Important]** After clearance, the related Pin NG records will also be marked as processed for subsequent traceability.
**Function Screenshot**:
![Device-level Clearance Confirmation Screenshot](/public/image_en/planning_and_production/alert_center/图片:设备级清除确认截图.png)
#### 3.4.3 Single-channel Clearance
**Operation Steps:**
1. On the device exception details page, click the expand button of the device row to display the exception counts of each channel
2. Click the corresponding button for the channel to clear
3. The system pops up a confirmation dialog, confirm to execute the single-channel clearance operation
4. After successful clearance, the page data refreshes automatically
**[Note]** Single-channel clearance only sets the exception count of that channel to zero, without affecting the exception counts of other channels.
**[Note]** Single-channel clearance does not mark Pin NG records as processed, only resets the count statistics.
**Function Screenshot**:
![Single-channel Clearance Screenshot](/public/image_en/planning_and_production/alert_center/图片:单通道清除截图.png)
## 4. Alert Trigger Mechanism
### 4.1 Alert Trigger Flow Description
The data in the alert center comes from the process result data reported by devices during production execution. When a device calls the MES interface to report process results, the system automatically performs channel exception detection according to the process configuration.
**Trigger Flow:**
```mermaid
sequenceDiagram
participant 设备 as Device
participant MES接口 as MES Process Reporting Interface
participant 验证 as Channel Exception Verification
participant 队列 as Alert Queue
participant 统计 as Exception Statistics Table
设备->>MES接口: 1. Report process result data (including pin_check, NG information)
MES接口->>MES接口: 2. Check if channel exception recording is enabled for the process
MES接口->>验证: 3. Channel exception recording is enabled for the process, trigger verification
验证->>验证: 4. Verify the validity of the pin_check array
验证->>队列: 5. Exception exists (pin_check=1), write to alert queue
队列->>统计: 6. Asynchronous task consumes the queue, update exception statistics
统计->>统计: 7. Accumulate consecutive/cumulative exception counts for the channel
```
**Flow Description:**
| Step | Executor | Operation | Description |
|------|----------|-----------|-------------|
| 1 | Device | Report process results | The device calls the MES interface to submit process completion data, which includes pin_check (point check) and NG (defect code) information |
| 2 | MES | Check process configuration | Determine whether the "channel exception recording" switch is enabled for the process in the process details |
| 3 | MES | Trigger verification | Channel exception recording is enabled for the process, trigger point check verification logic |
| 4 | MES | Verify data | Check the validity of the pin_check array and NG array (consistent length, values are 0 or 1, NG is required when pin_check=1) |
| 5 | MES | Write to queue | When there are entries with value 1 in the pin_check array, write the exception data to the alert cache queue |
| 6 | Background Task | Consume queue | Asynchronous task reads unprocessed data from the alert queue and aggregates exception counts by device code |
| 7 | Background Task | Update statistics | Accumulate channel exception counts to the exception statistics table, distinguishing between consecutive errors and cumulative errors |
### 4.2 Preconditions
The alert function requires the following pre-configurations:
| Precondition | Description | Configuration Location |
|--------------|-------------|-----------------------|
| Enable Channel Exception Recording | Enable the "Enable Channel Exception Recording" switch for the process in the process details | Production Configuration → Process Model → Process Flow → Set Process |
| Configure Defect Codes | Maintain defect codes and their descriptions in the system | Production Configuration → Product Management → Defect Management |
| Device Category Configuration | Ensure devices are bound to the correct device category (workstation) | Device Model → Device Information |
**[Important]** Only when "channel exception recording" is enabled in the process configuration of the process details will channel exception detection be triggered when the device reports process results, and the alert center will display alert data related to this process.
## 5. Common Issues
### 5.1 No data in the Alert Center?
**Possible Reasons:**
1. The "channel exception recording" switch is not enabled for the process. Please check the process configuration in [Process Details]
2. The device has not yet reported process result data containing pin_check information
3. No exception data was generated within the selected query time range
4. Device category (workstation) is not configured correctly
### 5.2 Why does the data reappear after clearing?
The clearance operation only resets the exception count and does not prevent the device from continuing to report exception data. If the device channel issue is not fundamentally resolved, the count will accumulate again and reach the alert threshold after the device continues to report exceptions. Recommendations:
- Locate and resolve the root cause of the device channel issue before performing the clearance operation
- Observe the device status after clearance to confirm that exceptions no longer recur
### 5.3 What's the difference between consecutive errors and cumulative errors?
- **Consecutive Errors**: The same channel reports errors 3 times or more consecutively, indicating that the channel has been continuously abnormal recently and is the current focus of attention
- **Cumulative Errors**: The same channel reports errors 10 times or more cumulatively, indicating that although the channel may not be consecutive, the overall exception frequency is high, reflecting the long-term health status of the device
### 5.4 What to do if data export fails?
The export function relies on asynchronous task mechanism. Please check:
1. Whether the time range and workstation have been selected
2. Whether the system download task service is running normally
3. You can view the task status and failure reasons in the [System Download Tasks] page

View File

@@ -0,0 +1,64 @@
# Production Batch Defect Report
## 1. Function Overview
The Production Batch Defect Report belongs to the quality analysis module of the MES system. It is used to statistically analyze the defective products in production batches and provide data support for production quality improvement.
**Core Functions:**
- Defect Statistics: Statistically analyze the number of defective products and defect rate by batch
- Defect Type Analysis: Distinguish between battery defects and appearance defects
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_defect_report/生产批次不良报表截图.png" alt="Production Batch Defect Report Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Production Batch Defect Report</div>
</div>
## 2. Term Explanation
| Term | Definition | Description |
|------|------------|-------------|
| Defective Item | Defective Item, products with quality abnormalities produced during production | Require quality analysis and handling |
| Defect Rate | Defect Rate, the ratio of defective product quantity to total production quantity | Used to measure production quality level |
## 3. Production Batch Defect Report Interaction Flow
### 3.1 Defect Report List
#### 3.1.1 Defect Report List Description
The defect report list displays defective product statistics for all production batches, supporting query and filtering by multiple conditions.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_defect_report/生产批次不良报表截图.png" alt="Production Batch Defect Report Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Production Batch Defect Report</div>
</div>
**Field Description:**
| Field | Description |
|-------|-------------|
| Batch Number | Unique identifier of the production batch |
| Product Model | Corresponding product model |
| Total Quantity | Total production quantity of the batch |
| Defective Quantity | Number of defective products in the batch |
| Defect Rate | Percentage of defective quantity to total quantity |
| Battery Defect Quantity | Number of battery-type defects |
| Appearance Defect Quantity | Number of appearance-type defects |
| Statistics Time | Report statistics time |
#### 3.1.2 Defect Report Query
**Query Conditions:**
| Query Condition | Description |
|----------------|-------------|
| Batch Number | Query by batch number exactly |
| Production Time | Filter by statistics time range |
| Defect Type | Filter by defect type (All, Battery, Appearance) |

View File

@@ -0,0 +1,210 @@
# Batch Management
## 1. Function Overview
Batch Management is a core module of the MES system, used to manage production batches and realize the creation, tracking, and monitoring of production tasks.
**Core Functions:**
- Batch Management: Maintain production batch creation, deletion, modification, and query
- Batch Association: Associate process flow, product model, production area, and production line
## 2. Term Explanation
| Term | Definition | Description |
|------|------------|-------------|
| Batch | Production Batch, a production unit with independent identification | Used for tracking and managing production processes |
| Process Flow | Process Flow, production process route | Defines the production process steps for products |
| Product Model | Product Model, product specification and model | Corresponds to the type of product being produced |
| Planned Completion Date | Planned completion time | The planned completion time of the batch |
| Planned Completion Quantity | Planned completion quantity | The planned production quantity of the batch |
## 3. Data Model Relationship Explanation
### 3.1 Batch and Other Entity Relationships
```mermaid
flowchart TB
subgraph Batch
B[Batch]
end
subgraph Basic Data
F[Factory]
L[Production Line]
PF[Process Flow]
PM[Product Model]
end
B -->|关联| F
B -->|关联| L
B -->|关联| PF
B -->|关联| PM
```
**Relationship Explanation:**
| Relationship Type | Description |
|------------------|-------------|
| Batch → Factory | **N:1**: Multiple batches belong to one factory |
| Batch → Production Line | **N:1**: Multiple batches belong to one production line |
| Batch → Process Flow | **N:1**: Multiple batches use the same process flow |
| Batch → Product Model | **N:1**: Multiple batches produce the same product model |
## 4. Batch Management Interaction Flow
### 4.1 Batch List
#### 4.1.1 Batch List Description
The batch list displays all production batch information, supporting query and filtering by multiple conditions.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_management/批次列表功能截图.png" alt="Batch List Function Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Batch List Function</div>
</div>
#### 4.1.2 Batch Query
**Query Conditions:**
| Query Condition | Description |
|----------------|-------------|
| Batch Number | Query by batch number exactly |
| Product Model | Filter by product model |
| Factory | Filter by factory |
| Production Line | Filter by production line |
| Creation Time | Filter by creation time range |
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_management/批次列表查询条件截图.png" alt="Batch List Query Conditions Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Batch List Query Conditions</div>
</div>
### 4.2 New Batch
#### 4.2.1 New Batch Description
Create a new production batch, need to select associated basic data and production parameters.
**Operation Steps:**
1. Go to [Production Configuration] → [Batch Management] → [Batch List]
2. Click [New] button
3. Select the associated process flow
4. Select product model
5. Select production area
6. Select production line
7. Fill in planned completion date
8. Fill in planned completion quantity
9. Click [OK] to complete batch creation
**Field Description:**
| Field | Description | Required |
|-------|-------------|----------|
| Batch Number | Unique identification code of the batch, user-defined | Yes |
| Process Flow | Production process route used by the batch | Yes |
| Product Model | Product specification produced by the batch | Yes |
| Production Area | Production area to which the batch belongs | Yes |
| Production Line | Production line where the batch is executed | Yes |
| Expected Completion Date | Planned completion time | Yes |
| Production Quantity | Planned production quantity | Yes |
| Batch Status | Initial status is "Pending Production" | No |
| Remarks | Other supplementary description information | No |
**[Important]** The batch number cannot be modified after creation. Please confirm carefully when creating.
**[Important]** Once a batch starts production, it cannot be deleted.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_management/新建批次截图.png" alt="New Batch Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: New Batch</div>
</div>
### 4.3 Edit Batch
#### 4.3.1 Edit Batch Description
Modify batch information, only the planned completion date and planned completion quantity can be edited.
**Operation Steps:**
1. Go to [Production Configuration] → [Batch Management] → [Batch List]
2. Find the batch to edit in the list
3. Click [Edit] button
4. Modify the information to be updated
5. Click [OK] to complete modification
**[Note]** For batches that have started production, basic information cannot be edited, only remark information can be updated.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_management/编辑批次截图.png" alt="Edit Batch Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Edit Batch</div>
</div>
### 4.4 Delete Batch
#### 4.4.1 Delete Batch Description
Delete batch records, only batches that have not started production can be deleted.
**Operation Steps:**
1. Go to [Production Configuration] → [Batch Management] → [Batch List]
2. Find the batch to delete in the list
3. Click [Delete] button
4. Confirm the deletion operation
**[Note]** Deleting a batch will permanently delete the batch data and cannot be recovered.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_management/删除批次截图.png" alt="Delete Batch Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Delete Batch</div>
</div>
## 4.5.1 Batch Battery Login
**Operation Steps:**
1. Go to [Production Configuration] → [Batch Management] → [Batch List]
2. Click [Import] button
3. Fill in battery data according to the template format
4. Click [Select File] to upload the filled Excel file
5. Click [Start Import] to execute data import
6. View the import result report
**[Note]** Before importing, please ensure that the associated process flow, product model, factory, and production line already exist.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_management/电池批量登录截图.png" alt="Batch Battery Login Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Batch Battery Login</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_management/电池批量登录文件格式截图.png" alt="Batch Battery Login File Format Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 2: Batch Battery Login File Format</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_management/电池批量登录文件载入截图.png" alt="Batch Battery Login File Upload Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 3: Batch Battery Login File Upload</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_management/电池批量登录文件载入完成截图.png" alt="Batch Battery Login File Upload Complete Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 4: Batch Battery Login File Upload Complete</div>
</div>

View File

@@ -0,0 +1,202 @@
# Batch Tray
## 1. Function Overview
Batch Tray belongs to the core module of the MES system, used to manage the association relationship between production batches and trays, realizing logistics tracking and management of batches during production. Trays are production containers that carry materials, and batch tray management runs through the entire production logistics process.
**Core Functions:**
- Batch Tray Query: Query the association information between batches and trays
- Batch Tray Details: View detailed information of batch trays
- Batch Tracking: Track the flow status of batches on trays
- Unbind Operation: Unbind the association between batches and trays
- Stop Operation: Stop the current status of batch trays
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_tray/批次托盘页面截图.png" alt="Batch Tray Page Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Batch Tray Page</div>
</div>
## 2. Term Explanation
| Term | Definition | Description |
|------|------------|-------------|
| Batch Tray | Batch Tray, association record between batch and tray | Records the tray information where batch goods are located |
| Tray | Tray, container for carrying materials | Used for material storage and flow |
| Tray Activation Status | Tray Activation Status, whether the tray is activated | Records the activation status of the tray |
| Tray Number | Tray Number, unique identifier of the tray | Each tray has a unique number |
| Batch Number | Batch, unique identifier of the batch | Used to trace product production information |
| Unbind | Unbind, release the association between batch and tray | Executed when materials leave the tray |
| Stop | Stop, stop the current status of the batch tray | Pause further flow of the batch |
## 3. Data Model Relationship Explanation
### 3.1 Batch Tray Battery Hierarchy Relationship
Batch serves as the top-level entity, processes represent production stages. Some processes require trays to carry batteries, while in some processes, batteries exist independently after unbinding.
```mermaid
flowchart TB
subgraph Batch
subgraph Process1["Process 1 (Tray Carrying)"]
subgraph Tray1
Bat1[Battery 1]
Bat2[Battery 2]
end
end
subgraph Process2["Process 2 (No Tray Needed)"]
Bat3[Battery 3]
Bat4[Battery 4]
end
end
```
**Relationship Explanation:**
| Relationship Type | Description |
|------------------|-------------|
| Batch → Process | **1:N**: A batch can contain multiple processes |
| Process → Tray | **1:N**: A process can contain multiple trays (Process 1 has trays) |
| Tray → Battery | **1:N**: A tray can contain multiple batteries |
| Process → Battery | **1:N**: A process can directly contain multiple batteries (Process 2 has no tray) |
### 3.2 Battery Tray Binding Methods
There are two ways to bind batteries and trays, both can bind batteries and trays and log them to the batch:
| Binding Method | Interface | Battery Status Requirement | Description |
|----------------|-----------|---------------------------|-------------|
| Binding Interface | `set_tray_binding` | Battery must be activated | Battery needs to be in activated state and belong to the same batch as the tray |
| Login Interface | `set_tray_login` | Battery does not need to be activated | Battery does not need to be in activated state, can be bound and logged to the batch |
## 4. Batch Tray Interaction Flow
### 4.1 Batch Tray List
#### 4.1.1 Batch Tray List Description
The batch tray list displays all association information between batches and trays, supporting query and filtering by multiple conditions.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_tray/批次托盘页面截图.png" alt="Batch Tray Page Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Batch Tray Page</div>
</div>
**Field Description:**
| Field | Description |
|-------|-------------|
| Tray Number | Unique identification code of the tray |
| Serial Number | Serial number of the batch tray, used to uniquely identify each binding |
| Tray Status | Current tray status |
| Batch Number | Associated batch number |
| Process Flow Name | Associated process flow name |
| Current Process | Current process where the tray is located |
| Loaded Battery Quantity | Current quantity of batteries loaded on the tray |
| Login Time | Batch tray login time |
#### 4.1.2 Batch Tray Query
**Query Conditions:**
| Query Condition | Description |
|----------------|-------------|
| Tray Number | Query by tray number exactly |
| Batch Number | Query by batch number exactly |
| Tray Activation Status | Filter by status (Activated, Stopped) |
| Login Time | Filter by creation time range |
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_tray/批次托盘查询条件截图.png" alt="Batch Tray Query Conditions Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Batch Tray Query Conditions</div>
</div>
### 4.2 Batch Tray Details
#### 4.2.1 Details View Description
View detailed information of the batch tray, including basic tray information, process flow time information, process flow equipment, loaded battery quantity, battery number, battery position, battery status, etc.
**Operation Steps:**
1. Go to [Production Configuration] → [Batch Management] → [Batch Tray]
2. Find the batch tray record to view details in the list
3. Click [Details] button
4. View complete batch tray information
**Field Description:**
| Field | Description |
|-------|-------------|
| Tray Number | Unique identification code of the tray |
| Process Start Time | Process start time, used to record the start time of the process |
| Process End Time | Process end time, used to record the end time of the process |
| Current Process | Current process where the tray is located |
| Serial Number | Position of the battery barcode in the tray |
| Battery Barcode | Unique identification code of the battery |
| Battery Activation Status | Current status of the battery, such as activated, deactivated, etc. |
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_tray/托盘批次详情信息截图.png" alt="Batch Tray Details Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Batch Tray Details</div>
</div>
### 4.3 Unbind Operation
#### 4.3.1 Unbind Description
Release the association between batch and tray. After unbinding, the tray status will become stopped, but the battery status will not change.
**Operation Steps:**
1. Go to [Production Configuration] → [Batch Management] → [Batch Tray]
2. Find the batch tray record to unbind in the list
3. Click [Unbind] button
4. Click [OK] to complete the unbind operation
**[Important]** The unbind operation is irreversible. Please confirm before executing.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_tray/批次托盘托盘解绑截图.png" alt="Batch Tray Unbind Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Batch Tray Unbind</div>
</div>
### 4.4 Stop Operation
#### 4.4.1 Stop Description
Stop the activation status of the tray and battery, pause further flow of the tray, used to handle abnormal situations.
**Operation Steps:**
1. Go to [Production Configuration] → [Batch Management] → [Batch Tray]
2. Find the batch tray record to stop in the list
3. Click [Stop] button
4. Click [OK] to complete the stop operation
**[Important]** The stop operation is irreversible. Please confirm before executing.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/batch_tray/批次托盘托盘停止截图.png" alt="Batch Tray Stop Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Batch Tray Stop</div>
</div>

View File

@@ -0,0 +1,82 @@
# Device Monitoring
## 1. Function Overview
Device Monitoring belongs to the production monitoring module of the MES system, used to monitor the device status of production equipment in real-time.
**Core Functions:**
- Device Status Monitoring: Monitor the operating status of equipment in real-time
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/device_monitoring/设备监控页面截图.png" alt="Device Monitoring Page Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Device Monitoring Page</div>
</div>
## 2. Term Explanation
| Term | Definition | Description |
|------|------------|-------------|
| Device Status | Device Status, current operating status of the equipment | Including running, standby, fault, etc. |
| Last Response | Last Response, last response time of the equipment | Time when the equipment last uploaded its status |
| Information | Information, equipment information | Detailed information of the equipment, such as equipment type, associated production line, etc. |
## 3. Device Monitoring Interaction Flow
### 3.1 Device Status Monitoring
#### 3.1.1 Device Status List Description
The device status list displays the real-time operating status of all equipment, supporting query and filtering by multiple conditions.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/device_monitoring/设备监控点击运行状态截图.png" alt="Device Monitoring Running Status Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Device Monitoring Running Status</div>
</div>
**Field Description:**
| Field | Description |
|-------|-------------|
| Device Code | Unique identification code of the equipment |
| Device Name | Name of the equipment |
| Factory Area | Factory area to which the equipment belongs |
| Production Line | Production line to which the equipment belongs |
| Workstation | Workstation to which the equipment belongs |
| Last Response | Last response time of the equipment |
| Work Status | Current work status of the equipment |
| Information | Exception information in case of abnormal status |
#### 3.1.2 Device Status Query
**Query Conditions:**
| Query Condition | Description |
|----------------|-------------|
| Device Number | Query by device number exactly |
| Device Name | Fuzzy query by device name |
| Device Type | Filter by device type |
| Operating Status | Filter by operating status |
| Associated Production Line | Filter by production line |
## 3.1.3. Device Status Explanation
| Status | Status Code | Description |
|--------|------------|-------------|
| Running | RUN | Equipment is running normally |
| Standby | IDLE | Equipment is on standby |
| Abnormal | TROUBLE | Equipment has an abnormality |
| Manual | MANUAL | Equipment is in manual operation |
| Offline | OFFLINE | Equipment is offline |
| Completed | FINISH | Equipment has completed the task |
**Important** Refer to the device status upload interface documentation for detailed information on the upload format and content of device status.

View File

@@ -0,0 +1,120 @@
# Semi-finished Product Management
## 1. Function Overview
Semi-finished Product Management is used to record and query semi-finished product information produced in each process during production, supporting semi-finished product entry and traceability.
**Main Functions:**
- Semi-finished Product Data Entry: Register semi-finished product information produced in each process into the system
- Semi-finished Product List Query: Retrieve semi-finished product records by batch number, semi-finished product ID, process unit, unloading time, etc.
- Material Status Viewing: View whether the semi-finished product is currently "Completed" or "Unused"
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/material_monitoring/半成品管理页面截图.png" alt="Semi-finished Product Management Page Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Semi-finished Product Management Page</div>
</div>
## 2. Term Explanation
| Term | Definition |
|------|------------|
| Semi-finished Product | Intermediate materials produced in each process during production |
| Semi-finished Product ID | Unique number automatically generated by the system for each semi-finished product |
| Semi-finished Product Code | Code identifying the semi-finished product material type |
| Batch Number | Production batch number to which the semi-finished product belongs |
| Process Unit | Specific process that produced the semi-finished product |
| Material Status | Current usage status of the semi-finished product: Completed / Unused |
## 3. Semi-finished Product Management Interaction Flow
### 3.1 Semi-finished Product List
#### 3.1.1 List Description
The semi-finished product list displays all entered semi-finished product records, sorted by unloading time from newest to oldest by default, supporting pagination.
**Table Field Description:**
| Field | Description |
|-------|-------------|
| Batch Number | Production batch number to which the semi-finished product belongs |
| Semi-finished Product ID | Unique number automatically generated by the system, format is "process attribute-material category-material code-timestamp" |
| Semi-finished Product Code | Code representing the semi-finished product material type |
| Output Quantity | Quantity of semi-finished products produced in this process |
| Process Unit | Process name that produced the semi-finished product |
| Production Equipment | Equipment number used to produce the semi-finished product |
| Material Status | Red label indicates "Completed", green label indicates "Unused" |
| Unloading Time | Time when the semi-finished product was produced |
#### 3.1.2 List Query
Semi-finished product records can be filtered by the following conditions:
| Query Condition | Description |
|----------------|-------------|
| Batch Number | Fuzzy search by batch number |
| Semi-finished Product ID | Exact search by semi-finished product ID |
| Process Unit | Filter by selecting from the dropdown list of process units |
| Unloading Time | Select a time range to query semi-finished products produced within that period |
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/material_monitoring/半成品管理页面查询条件截图.png" alt="Semi-finished Product Management Query Conditions Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Semi-finished Product Management Query Conditions</div>
</div>
### 3.2 Enter Semi-finished Product Data
#### 3.2.1 Entry Process Description
**Operation Steps:**
1. Go to [Production Planning] → [Semi-finished Product Management]
2. Click the **[Enter Semi-finished Product Data]** button above the table
3. Fill in the following information in the pop-up dialog:
| Field | Required | Description |
|-------|----------|-------------|
| Production Batch | Yes | Select the associated production batch from the dropdown list |
| Process Unit | Yes | Select the process unit that produced the semi-finished product from the dropdown list (options automatically linked based on selected batch) |
| Equipment Code | Yes | Select the production equipment number from the dropdown list |
| Output Quantity | Yes | Enter the output quantity of this process, minimum is 1 |
| Output Date | No | Select the output date of the semi-finished product |
4. Click **OK** to submit after filling
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/material_monitoring/半成品管理页面录入数据截图.png" alt="Semi-finished Product Management Data Entry Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Semi-finished Product Management Data Entry</div>
</div>
#### 3.2.2 Entry Validation Description
| Validation Item | Rule |
|-----------------|------|
| Production Batch | Required, must be selected from the list |
| Process Unit | Required, must be selected from the list |
| Output Quantity | Required, must be a number greater than 0 |
#### 3.2.3 Entry Processing
After submitting the entry, the system will automatically perform the following processing:
1. **Validate Associated Data**: Confirm that the batch number exists, the process unit is valid, and the material output configuration for this process has been set
2. **Generate Semi-finished Product ID**: The system automatically generates a unique semi-finished product number based on process attributes, material category, material code, and current time
3. **Calculate Subsequent Processes**: Automatically determine the next flow process for this semi-finished product based on the process flow
4. **Save Data**: Write the semi-finished product information to the system. If any step fails, it will automatically roll back to ensure data consistency
## 4. Material Status Description
| Status | Label Color | Description |
|--------|------------|-------------|
| Completed | Red | The semi-finished product has been used by subsequent processes |
| Unused | Green | The semi-finished product has not been used by subsequent processes yet |

View File

@@ -0,0 +1,167 @@
# Battery Rejection Management
## 1. Function Overview
Battery Rejection Management is used to reactivate NG (defective) batteries produced during production, restoring them to normal production status and continuing to flow according to the process flow.
**Main Functions:**
- Battery Verification: Input battery barcode, the system verifies whether the battery meets the reactivation conditions
- Rejection Activation: Reactivate eligible NG batteries and restore them to normal production status
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/reject_management/电池复投管理页面截图.png" alt="Battery Rejection Management Page Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Battery Rejection Management Page</div>
</div>
## 2. Term Explanation
| Term | Definition |
|------|------------|
| NG Battery | Batteries judged as defective during quality inspection in production |
| Rejection | Reactivate NG batteries to restore normal production |
| Battery Barcode | Unique identification number of the battery |
| Activation Status | Whether the battery is currently in a flowable production state |
| Tray | Production container carrying batteries |
| Batch | Production batch to which the battery belongs |
## 3. Battery Rejection Logic Flow
```mermaid
sequenceDiagram
participant 用户 as User
participant 前端页面 as Frontend Page
participant 后端服务 as Backend Service
participant Workerman as Workerman
用户->>前端页面: Input battery barcode, click verify data
前端页面->>后端服务: Request to verify battery information
后端服务->>后端服务: Validation 1: Check if battery exists in the system
alt Battery does not exist
后端服务-->>前端页面: Prompt battery does not exist
前端页面-->>用户: Display exception information
end
后端服务->>后端服务: Validation 2: Check if all battery batches are the same
alt Batch mismatch
后端服务-->>前端页面: Prompt batch mismatch
前端页面-->>用户: Display exception information
end
后端服务->>后端服务: Validation 3: Check if battery is bound to an activated tray
alt Tray still activated
后端服务-->>前端页面: Prompt tray activated
前端页面-->>用户: Display exception information
end
后端服务->>后端服务: Validation 4: Check if battery is in NG status
alt Not NG battery
后端服务-->>前端页面: Prompt not NG battery
前端页面-->>用户: Display exception information
end
后端服务->>后端服务: Validation 5: Check if battery is in inactive status
alt Battery already activated
后端服务-->>前端页面: Prompt battery already activated
前端页面-->>用户: Display exception information
end
后端服务-->>前端页面: Verification passed, return battery details
前端页面-->>用户: Display battery information table
用户->>前端页面: Verify information, click rejection activation
前端页面-->>用户: Pop up confirmation prompt
用户->>前端页面: Click OK
前端页面->>Workerman: Send rejection activation command
Workerman->>Workerman: Copy battery data to generate new record
Workerman->>Workerman: Clear NG flag and grade information
Workerman->>Workerman: Reactivate battery
Workerman-->>前端页面: Return activation success
前端页面-->>用户: Prompt rejection successful, battery restored to flow
```
**Key Validation Rules:**
| Validation Item | Rule Description |
|-----------------|------------------|
| Battery Existence | Each input battery barcode must exist in the system |
| Batch Consistency | All input batteries must belong to the same production batch |
| Tray Status | If the battery is bound to a tray, the tray cannot be in activated status |
| NG Status | The battery must have an NG flag; normal batteries cannot be rejected |
| Activation Status | The battery must currently be in inactive status; already activated batteries cannot be rejected |
## 4. Operation Steps
### 4.1 Verify Battery
1. Go to [Production Monitoring] → [Battery Rejection Management]
2. Enter battery barcodes in the input box:
- Method 1: Directly enter multiple battery barcodes in the input box, separated by commas
- Method 2: Click the **📄** button on the right side of the input box, enter one battery barcode per line in the pop-up multi-line input box, click OK
3. Click the **[Verify Data]** button
4. The system validates the battery information, and upon passing, displays the battery details in the table below
**Table Field Description:**
| Field | Description |
|-------|-------------|
| Battery Barcode | Unique identification number of the battery |
| Batch | Production batch to which the battery belongs |
| Tray | Tray number bound to the battery |
| Serial Number | Production serial number of the battery |
| Activation Status | "Activated" or "Inactivated" |
| Grade Type | Grade classification of the battery |
| Grade | Grade information of the battery |
| Previous Process | Last completed process of the battery |
| Current Process | Next process for the battery to flow to |
### 4.2 Execute Rejection Activation
1. After verification, verify the battery information in the table
2. Click the **[Rejection Activation]** button
3. The system pops up a confirmation prompt: "After confirmation, the battery will be activated. After activation, production can only start from the current process, and cannot redo the previous process"
4. Click **OK** to complete the rejection
**[Important]**:
- After rejection activation, the NG flag of the battery will be cleared, and the grade information will also be cleared
- After activation, the battery can only continue to flow from the current process and cannot return to the previous process
- This operation is irreversible. Please confirm before executing
**Function Screenshots**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/reject_management/电池复投激活电池输入截图.png" alt="Battery Rejection Activation Input Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Battery Rejection Activation Input</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/reject_management/电池复投激活数据验证截图.png" alt="Battery Rejection Activation Data Verification Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 2: Battery Rejection Activation Data Verification</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/reject_management/电池复投激活数据验证通过截图.png" alt="Battery Rejection Activation Data Verification Passed Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 3: Battery Rejection Activation Data Verification Passed</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/reject_management/复投激活确认截图.png" alt="Rejection Activation Confirmation Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 4: Rejection Activation Confirmation</div>
</div>
## 5. Common Exception Prompts
| Prompt Message | Cause | Handling Suggestion |
|----------------|-------|---------------------|
| Battery does not exist in BATTERY_MAP data | Battery barcode input error or not registered in the system | Check if the barcode is correct |
| Battery batch does not match the first one | Batteries from different batches were input | Ensure batteries from the same batch are rejected together |
| The tray bound to the battery is still activated | The tray containing the battery is still in production | Wait for the tray to complete before operating |
| The barcode must be inactive and an NG battery | The battery does not meet the rejection conditions | Only NG and inactive batteries can be rejected |
| The battery is already activated in the batch, no need to reactivate | The battery is already activated | No operation needed |
| The battery has no NG information, not an NG battery | The battery is a normal product | Normal batteries do not need rejection |

View File

@@ -0,0 +1,238 @@
# Battery Process Management
## 1. Function Overview
Battery Process Management belongs to the production monitoring module of the MES system, used to manage the process flow of batteries during production, realizing operations such as adding, deleting, modifying, and querying processes.
**Core Functions:**
- Process Management: Maintain basic information and configuration of processes
- Process Query: Query the current process and process history of batteries
- Process Adjustment: Adjust the current process of batteries
- Process Records: Record the process flow history of batteries
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/technology_process/电池工序管理页面截图.png" alt="Battery Process Management Page Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Battery Process Management Page</div>
</div>
## 2. Term Explanation
| Term | Definition | Description |
|------|------------|-------------|
| Battery Process | Battery Process, processing steps of batteries in production | Defines the production processing flow of batteries |
| Process Sequence | Process Sequence, execution order of processes | Batteries flow through each process in order |
| Process Time | Process Time, time nodes of batteries in the process | Including start time, end time |
## 3. Data Model Relationship Explanation
### 3.1 Battery Process Management and Other Entity Relationships
```mermaid
flowchart TB
subgraph Battery
Bat[Battery]
end
subgraph Batch
B[Batch]
end
subgraph Process
P[Process]
end
subgraph Process Record
PR[Process Record]
end
PR -->|关联| Bat
PR -->|关联| B
PR -->|属于| P
```
**Relationship Explanation:**
| Relationship Type | Description |
|------------------|-------------|
| Process Record → Battery | **N:1**: Multiple process records correspond to one battery |
| Process Record → Batch | **N:1**: Multiple process records correspond to one batch |
| Process Record → Process | **N:1**: Multiple process records correspond to the same process |
## 4. Battery Process Management Interaction Flow
### 4.1 Battery Process List
#### 4.1.1 Battery Process List Description
The battery process list displays the process flow information of all batteries, supporting query and filtering by multiple conditions.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/technology_process/录入后验证数据截图.png" alt="Data Verification After Entry Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Data Verification After Entry</div>
</div>
**Field Description:**
| Field | Description |
|-------|-------------|
| Battery Number | Unique identification code of the battery |
| Batch Number | Associated batch number |
| Current Process | Current process where the battery is located |
| Previous Process | Previous process of the battery |
| Next Process | Next process of the battery |
| Entry Time | Time when the battery entered the current process |
| Process Status | Processing status of the current process |
#### 4.1.2 Battery Process Query
**Query Conditions:**
| Query Condition | Description |
|----------------|-------------|
| Battery Number | Query by battery number exactly |
| Batch Number | Query by batch number exactly |
| Current Process | Filter by current process |
| Process Status | Filter by process status |
### 4.2 Process Management
#### 4.2.1 New Process Description
Add a new process record for the battery.
**Operation Steps:**
1. Go to [Production Monitoring] → [Battery Process Management]
2. Click [New Process] button
3. Scan or enter battery number
4. Select process
5. Fill in process information
6. Click [OK] to complete the addition
**Field Description:**
| Field | Description | Required |
|-------|-------------|----------|
| Battery Number | Unique identification code of the battery | Yes |
| Process | Select the process to add | Yes |
| Start Time | Process start time | Yes |
| Remarks | Other supplementary description information | No |
#### 4.2.2 Delete Process Description
Delete the process record of the battery.
**Operation Steps:**
1. Go to [Production Monitoring] → [Battery Process Management]
2. Find the battery process record to delete in the list
3. Click [Delete] button
4. Confirm the deletion information
5. Click [OK] to complete the deletion
**[Important]** The delete operation is irreversible. Please confirm before executing.
#### 4.2.3 Modify Process Description
Modify the process information of the battery.
**Operation Steps:**
1. Go to [Production Monitoring] → [Battery Process Management]
2. Find the battery process record to modify in the list
3. Click [Edit] button
4. Modify the process information
5. Click [OK] to complete the modification
### 4.3 Process Adjustment
#### 4.3.1 Process Adjustment Description
Adjust the current process of the battery to achieve jumps between processes.
**Operation Steps:**
1. Go to [Production Monitoring] → [Battery Process Management]
2. Find the battery record to adjust in the list
3. Click [Adjust Process] button
4. Select the target process
5. Fill in the adjustment reason
6. Click [OK] to complete the adjustment
**Field Description:**
| Field | Description | Required |
|-------|-------------|----------|
| Battery Number | Unique identification code of the battery | Yes |
| Current Process | Current process where the battery is located | Yes |
| Target Process | Target process after adjustment | Yes |
| Adjustment Reason | Select or fill in the adjustment reason | Yes |
**Function Screenshots**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/technology_process/电池数据录入页面截图.png" alt="Battery Data Entry Page Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Battery Data Entry Page</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/technology_process/录入后验证数据截图.png" alt="Data Verification After Entry Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 2: Data Verification After Entry</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/technology_process/选择需要调整到的工序截图.png" alt="Select Target Process Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 2: Select Target Process</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/technology_process/点击更改工序成功截图.png" alt="Process Change Successful Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 2: Process Change Successful</div>
</div>
### 4.4 Process Flow History
#### 4.4.1 Flow History Description
View the complete process flow history record of the battery.
**Operation Steps:**
1. Go to [Production Monitoring] → [Battery Process Management]
2. Find the battery record to view history in the list
3. Click [Flow History] button
4. View the complete process flow trace of the battery
**Field Description:**
| Field | Description |
|-------|-------------|
| Process Name | Name of the process |
| Entry Time | Time when entering the process |
| Exit Time | Time when leaving the process |
| Process Result | Processing result of the process |
| Operator | Personnel who performed the operation |
## 5. Process Status Description
| Status | Description |
|--------|-------------|
| Pending | Battery is waiting for this process to be processed |
| Processing | Battery is being processed in this process |
| Completed | Battery has completed this process |
| Abnormal | Battery has an abnormality in this process |

View File

@@ -0,0 +1,90 @@
# Tray Login
## 1. Function Overview
Tray Login belongs to the production monitoring module of the MES system, used to log trays and batteries onto the production line, record the login status of trays, and support querying tray-related information.
**Core Functions:**
- Tray Login: Execute tray login operation
- Tray Unbind: Unbind the binding relationship between tray and battery
- Tray Stop: Set the activation status of tray and battery to stopped, ending the flow of tray and battery
- Tray Code Format: Support user-defined format, verify whether the tray barcode format entered by the user is correct
- Battery Code Format: Support user-defined format, verify whether the battery barcode format entered by the user is correct
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_login/托盘登录页面截图.png" alt="Tray Login Page Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Tray Login Page</div>
</div>
## 2. Term Explanation
| Term | Definition | Description |
|------|------------|-------------|
| Tray Login | Tray Login, tray enters the production line | Tray starts operating on the production line |
| Login Status | Login Status, whether the tray has logged in | Records the login status of the tray |
## 3. Tray Login Interaction Flow
### 3.1 Tray Login Operation
**Operation Steps:**
1. Go to [Production Monitoring] → [Tray Login]
2. Select batch number
3. Select tray and battery format codes
4. Scan or enter tray number
5. Scan or enter battery number
6. Click login button
7. Click [OK] to complete the login operation
**Field Description:**
| Field | Description |
|-------|-------------|
| Channel | Channel for tray login |
| Battery ID | Scanned or entered battery ID |
| Previous Batch | Batch number logged on the tray |
| Previous Tray | Tray number logged on the tray |
| Battery Completed Process | Whether the battery has completed the current process |
**Function Screenshots**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_login/托盘登录选择批次截图.png" alt="Tray Login Select Batch Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Tray Login Select Batch</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_login/托盘登录选择托盘与电池格式截图1.png" alt="Tray Login Select Tray and Battery Format Screenshot 1">
<div style="font-size:12px; font-weight:bold;">Figure 2: Tray Login Select Tray and Battery Format 1</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_login/托盘登录选择托盘与电池格式截图2.png" alt="Tray Login Select Tray and Battery Format Screenshot 2">
<div style="font-size:12px; font-weight:bold;">Figure 3: Tray Login Select Tray and Battery Format 2</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_login/托盘登录新增电池托盘格式截图.png" alt="Tray Login Add Battery Tray Format Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 4: Tray Login Add Battery Tray Format</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_login/托盘登录选择托盘与电池格式截图3.png" alt="Tray Login Select Tray and Battery Format Screenshot 3">
<div style="font-size:12px; font-weight:bold;">Figure 5: Tray Login Select Tray and Battery Format 3</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_login/托盘登录录入托盘和电池条码截图.png" alt="Tray Login Enter Tray and Battery Barcode Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 6: Tray Login Enter Tray and Battery Barcode</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_login/托盘登录确认登录截图.png" alt="Tray Login Confirm Login Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 7: Tray Login Confirm Login</div>
</div>

View File

@@ -0,0 +1,226 @@
# Tray Management
## 1. Function Overview
Tray Management belongs to the production monitoring module of the MES system, used to manage trays during production, implementing functions such as tray process adjustment, stop operation, status query, and battery query for tray binding.
**Core Functions:**
- Tray Status Query: Query the current status of trays
- Tray Process Adjustment: Adjust the process where the tray is located
- Tray Stop Operation: Stop the current status of the tray
- Tray Battery Query: Query battery information bound to the tray
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_management/托盘管理页面截图.png" alt="Tray Management Page Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Tray Management Page</div>
</div>
## 2. Term Explanation
| Term | Definition | Description |
|------|------------|-------------|
| Tray | Tray, container for carrying materials | Used for material storage and flow |
| Tray Status | Tray Status, current status of the tray | Including idle, in use, stopped, etc. |
| Tray Process | Tray Process, the process where the tray is located | The current production process of the tray |
## 3. Data Model Relationship Description
### 3.1 Tray Management and Other Entity Relationships
```mermaid
flowchart TB
subgraph Tray
T[Tray]
end
subgraph Batch
B[Batch]
end
subgraph Process
P[Process]
end
subgraph Battery
Bat[Battery]
end
T -->|Belongs to| B
T -->|Located at| P
T -->|Carries| Bat
```
**Relationship Description:**
| Relationship Type | Description |
|------------------|-------------|
| Tray → Batch | **N:1**: Multiple trays belong to one batch |
| Tray → Process | **N:1**: Multiple trays are in the same process |
| Tray → Battery | **1:N**: One tray can carry multiple batteries |
## 4. Tray Management Interaction Flow
#### 4.1 Tray Query
**Query Conditions:**
| Query Condition | Description |
|----------------|-------------|
| Tray Number | Exact query by tray number |
**Operation Steps:**
1. Go to [Production Monitoring] → [Tray Management]
2. Enter tray number
3. Click [Query] button
4. View tray details
**Field Description:**
| Field | Description |
|-------|-------------|
| Tray Number | Unique identification code of the tray |
| Tray Status | Current tray status |
| Batch | Associated batch number |
| LOT | Tray serial number |
| Input Batteries | Number of batteries bound to the tray |
| Input Time | Tray login time |
| Previous Process | Previous process number of the tray |
| Current Process | Current process where the tray is located |
| Status | Current status of the tray, Active/Stopped |
| Whole Tray NG | Whether the tray is marked as whole tray NG |
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_management/托盘管理页面截图.png" alt="Tray Management Page Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Tray Management Page</div>
</div>
### 4.2 Tray Process Adjustment
#### 4.2.1 Process Adjustment Description
Adjust the process where the tray is located to achieve transfer between processes.
**Operation Steps:**
1. Go to [Production Monitoring] → [Tray Management]
2. Enter tray number
3. Click [Query] button
4. Select the target process in the left process list
5. Click [OK] to complete the process adjustment
**[Important]** Process adjustment may affect the production flow, please confirm before execution.
**Function Screenshots**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_management/托盘管理调整工序截图1.png" alt="Tray Management Adjust Process Screenshot 1">
<div style="font-size:12px; font-weight:bold;">Figure 1: Tray Management Adjust Process 1</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_management/托盘管理调整工序截图2.png" alt="Tray Management Adjust Process Screenshot 2">
<div style="font-size:12px; font-weight:bold;">Figure 2: Tray Management Adjust Process 2</div>
</div>
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_management/托盘管理调整工序截图3.png" alt="Tray Management Adjust Process Screenshot 3">
<div style="font-size:12px; font-weight:bold;">Figure 3: Tray Management Adjust Process 3</div>
</div>
### 4.3 Tray Stop
#### 4.3.1 Tray Stop Description
Stop the current status of the tray and pause further flow of the tray.
**Operation Steps:**
1. Go to [Production Monitoring] → [Tray Management]
2. Enter tray number
3. Click [Query] button
4. Click [Stop Tray] button
5. Click [OK] to complete the stop operation
**[Important]** Stopping the tray will change the status of batteries and tray to stopped, and they cannot continue to flow.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_management/托盘管理托盘停止截图.png" alt="Tray Management Tray Stop Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Tray Management Tray Stop</div>
</div>
### 4.4 Tray Battery Query
#### 4.4.1 Battery Query Description
Query battery information bound to the tray to understand the specific batteries carried by the tray.
**Operation Steps:**
1. Go to [Production Monitoring] → [Tray Management]
2. Enter tray number
3. Click [Query] button
4. View the battery list bound to the tray
**Field Description:**
| Field | Description |
|-------|-------------|
| Battery Number | Unique identification code of the battery |
| Battery Position | Position of the battery in the tray |
| Battery Activation Status | Activation status of the battery, Active/Stopped/NG |
## 4.5 Whole Tray NG Handling
Mark the tray as whole tray NG and record the NG information of the tray.
**Operation Steps:**
1. Go to [Production Monitoring] → [Tray Management]
2. Enter tray number
3. Click [Query] button
4. Click [Mark NG Tray] button
5. Click [OK] to complete the marking operation
**[Important]** After marking as NG tray, the tray status will be changed to NG status, and the logistics line will obtain the whole tray NG information through the interface get_process_route.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_management/托盘管理托盘整盘NG截图.png" alt="Tray Management Whole Tray NG Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Tray Management Whole Tray NG</div>
</div>
## 4.6 Clear Tray NG
Clear the NG mark of the tray and restore the NG status of batteries in the tray to normal.
**Operation Steps:**
1. Go to [Production Monitoring] → [Tray Management]
2. Enter tray number
3. Click [Query] button
4. Click [Clear NG Tray] button
5. Click [OK] to complete the clearing operation
**[Important]** After clearing the NG tray, the NG batteries in the tray will be restored to normal status, but the production log will not be cleared.
**Function Screenshot**:
<div align="center">
<img style="margin-top:18px;" src="/public/image_en/planning_and_production/tray_management/托盘管理清除托盘NG截图.png" alt="Tray Management Clear Tray NG Screenshot">
<div style="font-size:12px; font-weight:bold;">Figure 1: Tray Management Clear Tray NG</div>
</div>