feat: sn
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m26s

This commit is contained in:
sexygoat
2026-05-06 10:54:43 +08:00
parent 950520635d
commit 8832150562
6 changed files with 56 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,5 @@
## 1. Implementation
- [x] 1.1 更新 `src/template/设备导入模板.xlsx`,在 `virtual_no` 后新增 `sn`
- [x] 1.2 更新设备任务页导入弹窗文案,明确 `sn` 是新增的非必填列
- [x] 1.3 验证模板首行列顺序包含新增 `sn`

Binary file not shown.

View File

@@ -637,7 +637,7 @@
.change-item {
display: flex;
align-items: flex-start;
align-items: center;
gap: 4px;
font-size: 12px;

View File

@@ -62,11 +62,11 @@
<p>3. 列格式请设置为文本格式避免长数字被转为科学计数法</p>
<p>4. <strong>重要列顺序固定不可调整</strong>系统按位置读取不识别列名</p>
<p style="color: var(--el-color-primary)">5. 必填列虚拟号第1列</p>
<p
>6.
可选列设备名称设备型号设备类型IMEI制造商最大SIM槽数默认4有效范围1-4卡1~卡4
ICCID</p
>
<p>
6.
可选列SN设备名称设备型号设备类型IMEI制造商最大SIM槽数默认4有效范围1-4卡1~卡4
ICCID
</p>
</div>
</template>
</ElAlert>