From 08ef68bfe2af1bfbaf3d8c8aa1174dc3aa8fb309 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com>
Date: Fri, 9 Jan 2026 18:44:46 +0800
Subject: [PATCH] =?UTF-8?q?feat(house):=20=E6=B7=BB=E5=8A=A0=E6=88=BF?=
=?UTF-8?q?=E5=B1=8B=E4=BF=A1=E6=81=AF=E8=A1=A8=E5=8D=95=E4=B8=AD=E7=9A=84?=
=?UTF-8?q?=E5=8D=95=E4=BD=8D=E5=AD=97=E6=AE=B5=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 在房屋信息模型中添加了租金单位、月租金单位和面积单位字段
- 修改表单界面为面积、单价和总价字段添加单位输入框
- 更新字典选择器的代码配置从 premium 到 premium2
- 设置默认单位值为泰铢和泰铢/菜
- 修复表单提交时使用正确的租金字段映射
---
.env.development | 2 +-
src/api/house/houseInfo/model/index.ts | 6 ++
.../house/maimai/components/info-edit.vue | 60 ++++++++++++-------
3 files changed, 47 insertions(+), 21 deletions(-)
diff --git a/.env.development b/.env.development
index b8ccd8b..fbcc74b 100644
--- a/.env.development
+++ b/.env.development
@@ -1,5 +1,5 @@
VITE_APP_NAME=后台管理(开发环境)
-#VITE_API_URL=http://127.0.0.1:9200/api
+VITE_API_URL=http://127.0.0.1:9200/api
#VITE_SERVER_API_URL=http://127.0.0.1:8000/api
diff --git a/src/api/house/houseInfo/model/index.ts b/src/api/house/houseInfo/model/index.ts
index 9ccc06f..3d95588 100644
--- a/src/api/house/houseInfo/model/index.ts
+++ b/src/api/house/houseInfo/model/index.ts
@@ -18,14 +18,20 @@ export interface HouseInfo {
leaseMethod?: string;
// 租金
rent?: string;
+ // 租金单位
+ rentUnit?: string;
// 月租金
monthlyRent?: string;
+ // 月租金单位
+ monthlyRentUnit?: string;
// 佣金
commission?: string;
// 物业费
propertyFees?: string;
// 面积
extent?: string;
+ // 面积单位
+ extentUnit?: string;
// 楼层
floor?: string;
// 房号
diff --git a/src/views/house/maimai/components/info-edit.vue b/src/views/house/maimai/components/info-edit.vue
index 7391738..5ea2cc3 100644
--- a/src/views/house/maimai/components/info-edit.vue
+++ b/src/views/house/maimai/components/info-edit.vue
@@ -50,30 +50,47 @@
{{ form.phone }}
-
+
+
+
+
{{ form.extent }}
-
+
+
+
+
{{ form.rent }}
-
+
+
+
+
{{ form.monthlyRent }}
@@ -120,7 +137,7 @@
@@ -396,8 +413,11 @@ import {ref, reactive, watch, computed} from 'vue';
houseType: undefined,
leaseMethod: undefined,
rent: undefined,
+ rentUnit: '泰铢',
monthlyRent: undefined,
+ monthlyRentUnit: undefined,
extent: undefined,
+ extentUnit: '泰铢/菜',
floor: undefined,
roomNumber: undefined,
realName: undefined,
@@ -673,7 +693,7 @@ import {ref, reactive, watch, computed} from 'vue';
content: content.value,
files: JSON.stringify(files.value),
houseLabel: JSON.stringify(houseLabelData.value),
- monthlyRent: monthlyRent.value,
+ monthlyRent: form.rent,
type: props.type
};
const saveOrUpdate = isUpdate.value ? updateHouseInfo : addHouseInfo;