diff --git a/openspec/changes/update-device-batch-import-contract/proposal.md b/openspec/changes/update-device-batch-import-contract/proposal.md new file mode 100644 index 0000000..a6cc64f --- /dev/null +++ b/openspec/changes/update-device-batch-import-contract/proposal.md @@ -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 diff --git a/openspec/changes/update-device-batch-import-contract/specs/device-batch-import/spec.md b/openspec/changes/update-device-batch-import-contract/specs/device-batch-import/spec.md new file mode 100644 index 0000000..6987d4c --- /dev/null +++ b/openspec/changes/update-device-batch-import-contract/specs/device-batch-import/spec.md @@ -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 diff --git a/openspec/changes/update-device-batch-import-contract/tasks.md b/openspec/changes/update-device-batch-import-contract/tasks.md new file mode 100644 index 0000000..7313cfa --- /dev/null +++ b/openspec/changes/update-device-batch-import-contract/tasks.md @@ -0,0 +1,5 @@ +## 1. Implementation + +- [x] 1.1 更新 `src/template/设备导入模板.xlsx`,在 `virtual_no` 后新增 `sn` 列 +- [x] 1.2 更新设备任务页导入弹窗文案,明确 `sn` 是新增的非必填列 +- [x] 1.3 验证模板首行列顺序包含新增 `sn` 列 diff --git a/src/template/设备导入模板.xlsx b/src/template/设备导入模板.xlsx index 48b209e..296624a 100644 Binary files a/src/template/设备导入模板.xlsx and b/src/template/设备导入模板.xlsx differ diff --git a/src/views/asset-management/asset-information/components/OperationLogsCard.vue b/src/views/asset-management/asset-information/components/OperationLogsCard.vue index 47d0045..effb96b 100644 --- a/src/views/asset-management/asset-information/components/OperationLogsCard.vue +++ b/src/views/asset-management/asset-information/components/OperationLogsCard.vue @@ -637,7 +637,7 @@ .change-item { display: flex; - align-items: flex-start; + align-items: center; gap: 4px; font-size: 12px; diff --git a/src/views/asset-management/task-management/device-task/index.vue b/src/views/asset-management/task-management/device-task/index.vue index 92782e7..5eeabef 100644 --- a/src/views/asset-management/task-management/device-task/index.vue +++ b/src/views/asset-management/task-management/device-task/index.vue @@ -62,11 +62,11 @@

3. 列格式请设置为文本格式,避免长数字被转为科学计数法

4. 重要:列顺序固定,不可调整。系统按位置读取,不识别列名

5. 必填列:虚拟号(第1列)

-

6. - 可选列:设备名称、设备型号、设备类型、IMEI、制造商、最大SIM槽数(默认4,有效范围1-4)、卡1~卡4 - ICCID

+

+ 6. + 可选列:SN、设备名称、设备型号、设备类型、IMEI、制造商、最大SIM槽数(默认4,有效范围1-4)、卡1~卡4 + ICCID +