|
@@ -337,7 +337,7 @@ class _OvertimeDetailReportPageState
|
|
|
Expanded(
|
|
Expanded(
|
|
|
child: _statCard(
|
|
child: _statCard(
|
|
|
l10n.get('statTotalOvertimeCount'),
|
|
l10n.get('statTotalOvertimeCount'),
|
|
|
- '${summary.totalCount} ${l10n.get('unitItem')}',
|
|
|
|
|
|
|
+ '${summary.totalCount}',
|
|
|
colors.textPrimary,
|
|
colors.textPrimary,
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
@@ -662,7 +662,7 @@ class _OvertimeDetailReportPageState
|
|
|
children: [
|
|
children: [
|
|
|
Text(l10n.get('chartTitleOT'),
|
|
Text(l10n.get('chartTitleOT'),
|
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
|
- fontSize: 16,
|
|
|
|
|
|
|
+ fontSize: 14,
|
|
|
fontWeight: FontWeight.w600,
|
|
fontWeight: FontWeight.w600,
|
|
|
color: colors.textPrimary,
|
|
color: colors.textPrimary,
|
|
|
)),
|
|
)),
|
|
@@ -703,6 +703,21 @@ class _OvertimeDetailReportPageState
|
|
|
sideTitles: SideTitles(showTitles: false)),
|
|
sideTitles: SideTitles(showTitles: false)),
|
|
|
rightTitles: const AxisTitles(
|
|
rightTitles: const AxisTitles(
|
|
|
sideTitles: SideTitles(showTitles: false)),
|
|
sideTitles: SideTitles(showTitles: false)),
|
|
|
|
|
+ leftTitles: AxisTitles(
|
|
|
|
|
+ sideTitles: SideTitles(
|
|
|
|
|
+ showTitles: true,
|
|
|
|
|
+ reservedSize: 36,
|
|
|
|
|
+ interval: (_subordinateData
|
|
|
|
|
+ .map((e) => e.hours)
|
|
|
|
|
+ .reduce((a, b) => a > b ? a : b) *
|
|
|
|
|
+ 1.3) / 4,
|
|
|
|
|
+ getTitlesWidget: (v, _) => Text(
|
|
|
|
|
+ v.toInt().toString(),
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ fontSize: 10, color: colors.textPlaceholder),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
bottomTitles: AxisTitles(
|
|
bottomTitles: AxisTitles(
|
|
|
sideTitles: SideTitles(
|
|
sideTitles: SideTitles(
|
|
|
showTitles: true,
|
|
showTitles: true,
|
|
@@ -728,7 +743,12 @@ class _OvertimeDetailReportPageState
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
borderData: FlBorderData(show: false),
|
|
borderData: FlBorderData(show: false),
|
|
|
- gridData: const FlGridData(show: false),
|
|
|
|
|
|
|
+ gridData: FlGridData(
|
|
|
|
|
+ show: true,
|
|
|
|
|
+ drawVerticalLine: false,
|
|
|
|
|
+ getDrawingHorizontalLine: (v) =>
|
|
|
|
|
+ FlLine(color: colors.border.withValues(alpha: 0.3), strokeWidth: 0.5),
|
|
|
|
|
+ ),
|
|
|
barTouchData: BarTouchData(
|
|
barTouchData: BarTouchData(
|
|
|
touchTooltipData: BarTouchTooltipData(
|
|
touchTooltipData: BarTouchTooltipData(
|
|
|
getTooltipItem: (group, groupIndex, rod, rodIndex) {
|
|
getTooltipItem: (group, groupIndex, rod, rodIndex) {
|
|
@@ -736,8 +756,8 @@ class _OvertimeDetailReportPageState
|
|
|
_subordinateData[group.x.toInt()];
|
|
_subordinateData[group.x.toInt()];
|
|
|
return BarTooltipItem(
|
|
return BarTooltipItem(
|
|
|
'${item.usrName}\n${item.hours}',
|
|
'${item.usrName}\n${item.hours}',
|
|
|
- TextStyle(
|
|
|
|
|
- color: colors.textPrimary,
|
|
|
|
|
|
|
+ const TextStyle(
|
|
|
|
|
+ color: Colors.white,
|
|
|
fontSize: 12),
|
|
fontSize: 12),
|
|
|
);
|
|
);
|
|
|
},
|
|
},
|
|
@@ -897,13 +917,13 @@ class _OvertimeDetailReportPageState
|
|
|
),
|
|
),
|
|
|
const SizedBox(width: 12),
|
|
const SizedBox(width: 12),
|
|
|
Text(
|
|
Text(
|
|
|
- d.hours.toStringAsFixed(1),
|
|
|
|
|
|
|
+ '${d.hours.toStringAsFixed(1)}${l10n.get('unitHours')}',
|
|
|
maxLines: 1,
|
|
maxLines: 1,
|
|
|
overflow: TextOverflow.ellipsis,
|
|
overflow: TextOverflow.ellipsis,
|
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
|
fontSize: 16,
|
|
fontSize: 16,
|
|
|
fontWeight: FontWeight.w700,
|
|
fontWeight: FontWeight.w700,
|
|
|
- color: colors.amountPrimary,
|
|
|
|
|
|
|
+ color: colors.timePrimary,
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
],
|
|
],
|
|
@@ -969,6 +989,15 @@ class _OvertimeDetailReportPageState
|
|
|
),
|
|
),
|
|
|
],
|
|
],
|
|
|
),
|
|
),
|
|
|
|
|
+ if (d.reason.isNotEmpty) ...[
|
|
|
|
|
+ const SizedBox(height: 6),
|
|
|
|
|
+ Text(
|
|
|
|
|
+ d.reason,
|
|
|
|
|
+ maxLines: 2,
|
|
|
|
|
+ overflow: TextOverflow.ellipsis,
|
|
|
|
|
+ style: TextStyle(fontSize: 12, color: colors.textSecondary),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ],
|
|
|
],
|
|
],
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|