print and report
All checks were successful
Build Docker Image / Build Docker Image (push) Successful in 7m9s
Build Docker Image / Restart Docker Compose (push) Successful in 0s

This commit is contained in:
x2Skyz
2025-12-01 00:53:43 +07:00
parent 40e682e5d8
commit f332f8b6e2
5 changed files with 347 additions and 247 deletions

View File

@@ -45,37 +45,6 @@ export class MainDashboardComponent implements OnInit {
private dashboardStateService: DashboardStateService
){}
readonly kpiCards = [
{
label: 'รายรับรวม',
value: '฿1.28M',
trend: '+12.4%',
context: 'เทียบกับเดือนก่อน',
accent: 'mint'
},
{
label: 'รายจ่ายรวม',
value: '฿732K',
trend: '-4.1%',
context: 'จัดการได้ดีขึ้น',
accent: 'lavender'
},
{
label: 'ยอดค้างชำระ',
value: '฿184K',
trend: '-2 ใบแจ้งหนี้',
context: 'รอติดตาม',
accent: 'amber'
},
{
label: 'อัตรากำไร',
value: '37.8%',
trend: '+1.9 จุด',
context: 'ระยะ 30 วัน',
accent: 'teal'
}
];
// readonly revenueTrend = [
// { label: 'ม.ค.', value: 52 },
// { label: 'ก.พ.', value: 61 },
@@ -98,71 +67,8 @@ export class MainDashboardComponent implements OnInit {
isNumber(val: any): boolean {
return typeof val === 'number';
}
readonly periodSummaries = [
{
label: 'รายปี',
note: 'ปี 2567',
income: '฿9.6M',
expense: '฿5.1M',
net: '+฿4.5M',
trend: '+18%',
badge: 'year'
},
{
label: 'รายเดือน',
note: 'มิถุนายน 2567',
income: '฿1.28M',
expense: '฿732K',
net: '+฿548K',
trend: '+6%',
badge: 'month'
},
{
label: 'รายสัปดาห์',
note: 'สัปดาห์ที่ 24',
income: '฿312K',
expense: '฿188K',
net: '+฿124K',
trend: '+2%',
badge: 'week'
}
];
readonly alerts = [
{
title: 'ใบแจ้งหนี้ #INV-083 จะครบกำหนด',
detail: 'ลูกค้า Metro Engineering',
tag: 'ภายใน 3 วัน'
},
{
title: 'มีเอกสารที่ต้องอนุมัติ 2 รายการ',
detail: 'เบิกค่าใช้จ่ายฝ่ายการตลาด',
tag: 'รออนุมัติ'
},
{
title: 'พบรายการใช้จ่ายผิดปกติ',
detail: 'ค่าใช้จ่ายเดินทางสูงกว่าค่าเฉลี่ย 28%',
tag: 'ตรวจสอบ'
}
];
readonly tasks = [
{
title: 'กระทบยอดธนาคาร เดือน มิ.ย.',
due: 'วันนี้ 16:00',
priority: 'สูง'
},
{
title: 'เตรียมรายงาน VAT',
due: 'พรุ่งนี้ 10:30',
priority: 'กลาง'
},
{
title: 'ออกใบเสนอราคา โครงการใหม่',
due: 'ศุกร์ 14:00',
priority: 'ต่ำ'
}
];
// readonly ledgerEntries = [
// {
@@ -199,14 +105,6 @@ isNumber(val: any): boolean {
// }
// ];
readonly expenseBreakdown = [
{ label: 'ฝ่ายบริหาร', value: 32, color: '#0ea5e9' },
{ label: 'การตลาด', value: 18, color: '#f97316' },
{ label: 'ต้นทุนโครงการ', value: 27, color: '#10b981' },
{ label: 'บุคลากร', value: 15, color: '#a855f7' },
{ label: 'อื่นๆ', value: 8, color: '#e11d48' }
];
ngOnInit(): void {
this.setupFormControl();