From ea8129216be365bbfc394f23880779a6dfad1557 Mon Sep 17 00:00:00 2001 From: Zy <1448159279@qq.com> Date: Tue, 16 Jun 2026 15:35:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A56/16?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/house/index.ts | 2 ++ src/permission.ts | 2 +- src/store/modules/house.ts | 7 +++---- src/views/system/Sdb/SdbCashier/history.vue | 4 ++-- src/views/system/Sdb/SdbCashier/index.vue | 2 +- src/views/system/house/HouseDetails.vue | 9 +-------- 6 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/api/system/house/index.ts b/src/api/system/house/index.ts index 3c6fbfb..80d2da3 100644 --- a/src/api/system/house/index.ts +++ b/src/api/system/house/index.ts @@ -166,6 +166,8 @@ export interface Storeroom { remark: string; unitNoId: string; unitNo: number; + + unitNoName:string; } export interface Parking { diff --git a/src/permission.ts b/src/permission.ts index e6bce67..cb6273e 100644 --- a/src/permission.ts +++ b/src/permission.ts @@ -60,7 +60,7 @@ router.beforeEach(async (to, from) => { removeDynamicRoutes(); // 获取用户信息 - const [err, res] = await tos(userStore.getInfo()); + const [err] = await tos(userStore.getInfo()); if (err) { await userStore.logout(); ElMessage.error(err); diff --git a/src/store/modules/house.ts b/src/store/modules/house.ts index ff17447..01823fe 100644 --- a/src/store/modules/house.ts +++ b/src/store/modules/house.ts @@ -1,7 +1,7 @@ -import { getCommunitylistAPI, getVillageByIdAPI } from '@/api/system/community'; +import { getVillageByIdAPI } from '@/api/system/community'; import { communitylist_rows_type } from '@/api/system/community/type'; -import { deleteHouseApi, getBuildinglistAPI, getHouselistAPI, getVillageTree } from '@/api/system/house'; -import type { addBuildingType, BuildingUnit, BuildingVo } from '@/api/system/house/type'; +import { getBuildinglistAPI, getHouselistAPI, getVillageTree } from '@/api/system/house'; +import type { BuildingUnit, BuildingVo } from '@/api/system/house/type'; import { convertBuildingToTree } from '@/utils/house'; import { defineStore } from 'pinia'; // 数字排序 @@ -13,7 +13,6 @@ function sortNumberStr(a: string, b: string) { if (!isNaN(numA) && !isNaN(numB)) { return numA - numB; } - // 否则按自然语言排 return a.localeCompare(b, 'zh-CN', { numeric: true }); } diff --git a/src/views/system/Sdb/SdbCashier/history.vue b/src/views/system/Sdb/SdbCashier/history.vue index ac3d57b..8068d23 100644 --- a/src/views/system/Sdb/SdbCashier/history.vue +++ b/src/views/system/Sdb/SdbCashier/history.vue @@ -103,7 +103,7 @@