feat(mobile-app): rename "社区" to "部门" in profile page and add SPECIAL_DEDUCTION display name
- Change all "社区" labels to "部门" in profile page (所属部门, 上级部门, 下级部门, 部门权益考核, 部门贡献奖励) - Add SPECIAL_DEDUCTION entry type display name as "面对面结算" in ledger 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
083c0fd540
commit
439dcb95ac
|
|
@ -1160,6 +1160,7 @@ class LedgerEntry {
|
|||
'FREEZE': '冻结',
|
||||
'UNFREEZE': '解冻',
|
||||
'SYSTEM_ALLOCATION': '系统分配',
|
||||
'SPECIAL_DEDUCTION': '面对面结算',
|
||||
};
|
||||
return nameMap[entryType] ?? entryType;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1722,18 +1722,18 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// 左列:推荐人序列号、所属社区、上级社区、下级社区
|
||||
// 左列:推荐人序列号、所属部门、上级部门、下级部门
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
_buildInfoItem('推荐人的序列号', _referrerSerial),
|
||||
const SizedBox(height: 12),
|
||||
_buildInfoItem('所属社区', _community),
|
||||
_buildInfoItem('所属部门', _community),
|
||||
const SizedBox(height: 12),
|
||||
_buildInfoItem('上级社区', _parentCommunity),
|
||||
_buildInfoItem('上级部门', _parentCommunity),
|
||||
const SizedBox(height: 12),
|
||||
_buildInfoItem('下级社区', _childCommunity),
|
||||
_buildInfoItem('下级部门', _childCommunity),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
@ -1786,10 +1786,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
);
|
||||
}
|
||||
|
||||
/// 构建社区/省份标签
|
||||
/// 构建部门/省份标签
|
||||
Widget _buildCommunityLabel() {
|
||||
return const Text(
|
||||
'社区 / 省份',
|
||||
'部门 / 省份',
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -3493,9 +3493,9 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
);
|
||||
}
|
||||
|
||||
/// 构建社区权益考核
|
||||
/// 构建部门权益考核
|
||||
Widget _buildCommunityAssessment() {
|
||||
// 如果没有社区授权,显示红色提示信息
|
||||
// 如果没有部门授权,显示红色提示信息
|
||||
if (!_hasCommunityAuth) {
|
||||
return Container(
|
||||
padding: const EdgeInsets.all(16),
|
||||
|
|
@ -3514,7 +3514,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
const Text(
|
||||
'社区权益考核',
|
||||
'部门权益考核',
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -3543,7 +3543,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
),
|
||||
const SizedBox(height: 15),
|
||||
const Text(
|
||||
'暂无社区授权',
|
||||
'暂无部门授权',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -3554,7 +3554,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
),
|
||||
const SizedBox(height: 8),
|
||||
const Text(
|
||||
'请联系管理员申请社区授权',
|
||||
'请联系管理员申请部门授权',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -3601,7 +3601,7 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
const Text(
|
||||
'社区权益考核',
|
||||
'部门权益考核',
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
fontFamily: 'Inter',
|
||||
|
|
@ -3704,11 +3704,11 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
|||
),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
// 社区贡献奖励
|
||||
// 部门贡献奖励
|
||||
Row(
|
||||
children: [
|
||||
const Text(
|
||||
'社区贡献奖励',
|
||||
'部门贡献奖励',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontFamily: 'Inter',
|
||||
|
|
|
|||
Loading…
Reference in New Issue