This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Change: 更新设备导入模板新增 SN 列
|
||||
|
||||
## Why
|
||||
|
||||
设备批量导入模板有一处明确变更:在必填 `virtual_no` 后新增一个非必填 `sn` 列。
|
||||
|
||||
如果后台继续分发旧模板,运营按旧列顺序填表时会与最新模板不一致,影响设备导入使用。
|
||||
|
||||
本提案只覆盖这一个变化,不引入其他接口、流程、默认值或交互行为调整。
|
||||
|
||||
## What Changes
|
||||
|
||||
- 更新设备任务页使用的 `设备导入模板.xlsx`,在 `virtual_no` 后新增可选 `sn` 列
|
||||
- 更新设备任务页“批量导入设备”弹窗说明文案,明确 `sn` 为新增的可选列
|
||||
|
||||
## Impact
|
||||
|
||||
- Affected specs:
|
||||
- `device-batch-import`
|
||||
- Affected code:
|
||||
- `src/template/设备导入模板.xlsx`
|
||||
- `src/views/asset-management/task-management/device-task/index.vue`
|
||||
- Breaking changes:
|
||||
- 无接口层 breaking change
|
||||
@@ -0,0 +1,21 @@
|
||||
# Device Batch Import Specification
|
||||
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: Admin device import template includes optional sn after virtual_no
|
||||
|
||||
The admin device import template SHALL insert an optional `sn` column immediately after required `virtual_no`.
|
||||
|
||||
#### Scenario: Download the latest device import template
|
||||
|
||||
- **GIVEN** a platform user opens the "批量导入设备" dialog
|
||||
- **WHEN** the user clicks "下载导入模板"
|
||||
- **THEN** the downloaded template MUST include `virtual_no` as the first column
|
||||
- **AND** the downloaded template MUST include `sn` as the second column
|
||||
- **AND** `sn` MUST be optional
|
||||
|
||||
#### Scenario: Import dialog documents the new sn column
|
||||
|
||||
- **GIVEN** a platform user opens the "批量导入设备" dialog
|
||||
- **WHEN** the import instructions are displayed
|
||||
- **THEN** the page MUST indicate that `sn` is an optional column in the device import template
|
||||
@@ -0,0 +1,5 @@
|
||||
## 1. Implementation
|
||||
|
||||
- [x] 1.1 更新 `src/template/设备导入模板.xlsx`,在 `virtual_no` 后新增 `sn` 列
|
||||
- [x] 1.2 更新设备任务页导入弹窗文案,明确 `sn` 是新增的非必填列
|
||||
- [x] 1.3 验证模板首行列顺序包含新增 `sn` 列
|
||||
Reference in New Issue
Block a user