feat: 空间管理 -> 房源列表开发
This commit is contained in:
@@ -42,3 +42,30 @@ export const VALIDATION_RULES = {
|
||||
ID_CARD:
|
||||
/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
|
||||
} as const;
|
||||
|
||||
// 房源状态
|
||||
//状态:1招商 2保留 3下架 4在租
|
||||
export const HOUSE_STATUS = [
|
||||
{ id: 1, text: '招商' },
|
||||
{ id: 2, text: '保留' },
|
||||
{ id: 3, text: '下架' },
|
||||
{ id: 4, text: '在租' },
|
||||
];
|
||||
|
||||
// 价格单位选项
|
||||
export const PRICE_UNITS = [
|
||||
{ value: 1, text: '元/㎡*月' },
|
||||
{ value: 2, text: '元/㎡*天' },
|
||||
{ value: 3, text: '元/天' },
|
||||
{ value: 4, text: '元/月' },
|
||||
{ value: 5, text: '元/年' },
|
||||
] as const;
|
||||
|
||||
// 价格单位映射表
|
||||
export const PRICE_UNIT_MAP = new Map([
|
||||
[1, '元/㎡*月'],
|
||||
[2, '元/㎡*天'],
|
||||
[3, '元/天'],
|
||||
[4, '元/月'],
|
||||
[5, '元/年'],
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user