From 40d4bcdc3a1a7f86b0b98d9691d95ff0bb2dc1bd Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Wed, 23 Jul 2025 09:06:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../code-adjust-record-2025-07-01-system.md | 24 +++ .../xgss/xsssfjgl/components/BedDialog.vue | 6 +- .../xgss/xsssfjgl/components/RoomDialog.vue | 2 +- web/src/views/xgss/xsssfjgl/index.vue | 196 +++++++++++++++++- web/src/views/xgss/xsssfpejxy/index.vue | 8 +- 5 files changed, 226 insertions(+), 10 deletions(-) create mode 100644 docs/变更管理/code-adjust-record-2025-07-01-system.md diff --git a/docs/变更管理/code-adjust-record-2025-07-01-system.md b/docs/变更管理/code-adjust-record-2025-07-01-system.md new file mode 100644 index 00000000..5d945a7b --- /dev/null +++ b/docs/变更管理/code-adjust-record-2025-07-01-system.md @@ -0,0 +1,24 @@ +# 代码调整记录 2025-07-01 + +## 房间编号格式变更 + +### 调整时间 +2025-07-01 13:45:30 + +### 变更内容 +将宿舍房间编号格式从固定的"3+楼层+房间号"调整为"楼栋首字符+楼层+房间号"。 + +### 变更文件 +- `web/src/views/xgss/xsssfjgl/index.vue` + +### 详细说明 +1. 原有格式为 `3${floor}${paddedRoomNumber}`,如3201表示2楼01号房 +2. 现调整为 `${buildingFirstChar}${floor}${paddedRoomNumber}`,如A201表示A栋2楼01号房 +3. 楼栋首字符通过 `selectedBuilding.value.label.charAt(0)` 获取 + +### 相关业务场景 +宿舍管理模块中的批量添加房间功能,现在能够更准确地反映不同楼栋的房间编号。 + +### 待优化事项 +- 考虑未来将房间编号规则配置化,以适应不同校区和宿舍楼的编号需求 +- 需要评估此变更对已有数据的影响,目前仅影响新添加的房间 \ No newline at end of file diff --git a/web/src/views/xgss/xsssfjgl/components/BedDialog.vue b/web/src/views/xgss/xsssfjgl/components/BedDialog.vue index 2374f95d..e9e1c4b9 100644 --- a/web/src/views/xgss/xsssfjgl/components/BedDialog.vue +++ b/web/src/views/xgss/xsssfjgl/components/BedDialog.vue @@ -18,8 +18,8 @@ 下铺 上铺 - 中铺 - 独立床 + + @@ -60,7 +60,7 @@ const initFormData: DormBedForm = { bedName: '', roomId: '', bedStatus: '0', - bedType: '4', + bedType: '1', remark: '' }; diff --git a/web/src/views/xgss/xsssfjgl/components/RoomDialog.vue b/web/src/views/xgss/xsssfjgl/components/RoomDialog.vue index 9cfc9e39..11b1db76 100644 --- a/web/src/views/xgss/xsssfjgl/components/RoomDialog.vue +++ b/web/src/views/xgss/xsssfjgl/components/RoomDialog.vue @@ -74,7 +74,7 @@ const initFormData: DormRoomForm = { roomName: '', floorNum: 1, buildingId: '', - actualBeds: 4, + actualBeds: 8, roomArea: 0, roomType: '1', roomStatus: '0', diff --git a/web/src/views/xgss/xsssfjgl/index.vue b/web/src/views/xgss/xsssfjgl/index.vue index d81577d8..25c43963 100644 --- a/web/src/views/xgss/xsssfjgl/index.vue +++ b/web/src/views/xgss/xsssfjgl/index.vue @@ -80,7 +80,13 @@