Added appropriate dials to invoices page.
This commit is contained in:
parent
982b627c63
commit
1195ad8d4a
@ -1,6 +1,55 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="page-container">
|
||||
<h2>Invoices</h2>
|
||||
<!-- Todo Chart Section -->
|
||||
<div class = "widgets-grid">
|
||||
<!-- Ready to Invoice Widget -->
|
||||
<Card>
|
||||
<template #header>
|
||||
<div class="widget-header">
|
||||
<CalendarCheck class="widget-icon" />
|
||||
<h3>Ready To Invoice</h3>
|
||||
</div>
|
||||
</template>
|
||||
<template #content>
|
||||
<div class="widget-content">
|
||||
<TodoChart
|
||||
title="Ready To Invoice"
|
||||
:todoNumber="invoiceTodoNumber"
|
||||
:completedNumber="invoiceCompletedNumber"
|
||||
>
|
||||
</TodoChart>
|
||||
<button class="sidebar-button"
|
||||
@click="filterBy('ready')">
|
||||
View Ready To Invoice
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
</Card>
|
||||
<!-- Late Balances Widget -->
|
||||
<Card>
|
||||
<template #header>
|
||||
<div class="widget-header">
|
||||
<CardNoAccess class="widget-icon" />
|
||||
<h3>Late Balances</h3>
|
||||
</div>
|
||||
</template>
|
||||
<template #content>
|
||||
<div class="widget-content">
|
||||
<TodoChart
|
||||
title="Late Balances"
|
||||
:todoNumber="balancesTodoNumber"
|
||||
:completedNumber="balancesCompletedNumber"
|
||||
>
|
||||
</TodoChart>
|
||||
<button class="sidebar-button"
|
||||
@click="filterBy('late')">
|
||||
View Late Balances
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
</Card>
|
||||
</div>
|
||||
<DataTable
|
||||
:data="tableData"
|
||||
:columns="columns"
|
||||
@ -13,12 +62,15 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import Card from "../common/Card.vue";
|
||||
import DataTable from "../common/DataTable.vue";
|
||||
import TodoChart from "../common/TodoChart.vue";
|
||||
import { ref, onMounted } from "vue";
|
||||
import Api from "../../api";
|
||||
import { useLoadingStore } from "../../stores/loading";
|
||||
import { usePaginationStore } from "../../stores/pagination";
|
||||
import { useFiltersStore } from "../../stores/filters";
|
||||
import { CardNoAccess, CalendarCheck } from "@iconoir/vue";
|
||||
|
||||
const loadingStore = useLoadingStore();
|
||||
const paginationStore = usePaginationStore();
|
||||
@ -44,6 +96,10 @@ const columns = [
|
||||
{ label: "Grand Total", fieldName: "grandTotal", type: "text", sortable: true },
|
||||
];
|
||||
|
||||
const filterBy = () => {
|
||||
console.log("DEBUG: Invoices filterBy not implemented yet.");
|
||||
}
|
||||
|
||||
const handleInvoiceClick = () => {
|
||||
}
|
||||
|
||||
@ -135,4 +191,45 @@ onMounted(async () => {
|
||||
});
|
||||
|
||||
</script>
|
||||
<style lang=""></style>
|
||||
<style lang="css">
|
||||
.widgets-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.widget-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 20px 20px 0;
|
||||
}
|
||||
|
||||
.widget-icon {
|
||||
color: var(--theme-primary-strong);
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.widget-header h3 {
|
||||
margin: 0;
|
||||
color: #2c3e50;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.widget-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0;
|
||||
width: 200px;
|
||||
align-items: center;
|
||||
padding: 20px 20px 20px;
|
||||
/*gap: 15px;*/
|
||||
}
|
||||
.page-container {
|
||||
height: 100%;
|
||||
margin: 20px;
|
||||
gap: 20px;
|
||||
background-color: transparent;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user