优化房屋创建费用 国际化问题

This commit is contained in:
wuxw 2025-07-18 13:45:05 +08:00
parent e0f5a99511
commit 4ead63f9c6
4 changed files with 98 additions and 1 deletions

View File

@ -61,4 +61,4 @@ export function resetSystemUserPwd(data) {
reject(error)
})
})
}
}

View File

@ -25,3 +25,12 @@ export function deepCopy(srcObj, targetObj = {}) {
export function isDate(value) {
return value instanceof Date && !isNaN(value.getTime());
}
export function initSystem() {
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?adedae9bc250561cc17e96dc1fb46079";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
}

View File

@ -0,0 +1,84 @@
export default {
zh: {
// 页面标题
title: '房屋费用管理',
// 按钮文本
customTemplate: '自定义模板',
customImport: '自定义导入',
batchCreate: '批量创建',
batchCollectionLetter: '批量催缴单',
query: '查询',
reset: '重置',
// 输入框占位符
roomNumPlaceholder: '请输入房间号',
ownerNamePlaceholder: '请输入业主姓名',
// Tab 标签
roomFee: '房屋费用',
paymentHistory: '缴费历史',
room: '房屋',
owner: '业主',
callable: '催缴',
receipt: '补打收据',
meterRecord: '抄表记录',
prepaidAccount: '预存账户',
prepaidReceipt: '预存补打',
deposit: '押金',
billRule: '账单规则',
feeBill: '费用账单',
// 消息提示
requestFailed: '请求失败',
pleaseEnterRoomNumber: '请输入房屋编号 楼栋-单元-房屋 如1-1-1',
// 其他
roomNumber: '房间号',
ownerName: '业主姓名',
searchType: '搜索类型',
searchValue: '搜索值',
searchPlaceholder: '搜索占位符'
},
en: {
// 页面标题
title: 'Room Fee Management',
// 按钮文本
customTemplate: 'Custom Template',
customImport: 'Custom Import',
batchCreate: 'Batch Create',
batchCollectionLetter: 'Batch Collection Letter',
query: 'Query',
reset: 'Reset',
// 输入框占位符
roomNumPlaceholder: 'Please enter room number',
ownerNamePlaceholder: 'Please enter owner name',
// Tab 标签
roomFee: 'Room Fee',
paymentHistory: 'Payment History',
room: 'Room',
owner: 'Owner',
callable: 'Callable',
receipt: 'Receipt',
meterRecord: 'Meter Record',
prepaidAccount: 'Prepaid Account',
prepaidReceipt: 'Prepaid Receipt',
deposit: 'Deposit',
billRule: 'Bill Rule',
feeBill: 'Fee Bill',
// 消息提示
requestFailed: 'Request failed',
pleaseEnterRoomNumber: 'Please enter room number Building-Unit-Room such as 1-1-1',
// 其他
roomNumber: 'Room Number',
ownerName: 'Owner Name',
searchType: 'Search Type',
searchValue: 'Search Value',
searchPlaceholder: 'Search Placeholder'
}
}

View File

@ -84,6 +84,8 @@ import { getCommunityName, _loadCommunityInfo } from '@/api/community/communityA
import moreCommunity from '@/components/community/moreCommunity.vue'
import viewMenuUserList from '@/components/system/viewMenuUserList.vue'
import searchCommunityDataList from '@/components/system/searchCommunityDataList.vue'
import {initSystem} from '@/api/util/vcApi'
export default {
name: 'Layout',
@ -111,10 +113,12 @@ export default {
created() {
let _user = JSON.parse(localStorage.getItem('user'));
this.username = _user.name
this._loadStoreInfo()
this.loadCatalogs()
this.curCommunityName = getCommunityName()
this.loadCommunity()
initSystem()
},
components: {
moreCommunity,