2024-04-02 17:47:32 +07:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import AppBox from 'components/app/AppBox.vue';
|
2024-04-03 15:23:59 +07:00
|
|
|
import BtnAddComponet from 'components/01_branch-management/BtnAddComponet.vue';
|
2024-04-03 17:59:37 +07:00
|
|
|
import StatCardComponet from 'components/StatCardComponet.vue';
|
2024-04-03 15:23:59 +07:00
|
|
|
import TooltipComponet from 'src/components/TooltipComponet.vue';
|
2024-04-03 17:59:37 +07:00
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
|
|
const branchStat = ref<
|
|
|
|
|
{
|
|
|
|
|
amount: string;
|
|
|
|
|
label: string;
|
|
|
|
|
}[]
|
|
|
|
|
>([
|
|
|
|
|
{
|
|
|
|
|
amount: '1',
|
|
|
|
|
label: 'สำนักงานใหญ่ 1',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
amount: '2',
|
|
|
|
|
label: 'สำนักงานใหญ่ 2',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
amount: '3',
|
|
|
|
|
label: 'สำนักงานใหญ่ 3',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
amount: '4',
|
|
|
|
|
label: 'สำนักงานใหญ่ 4',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
amount: '5',
|
|
|
|
|
label: 'สำนักงานใหญ่ 5',
|
|
|
|
|
},
|
|
|
|
|
]);
|
2024-04-02 17:47:32 +07:00
|
|
|
</script>
|
|
|
|
|
<template>
|
|
|
|
|
<div class="column">
|
2024-04-03 14:55:37 +07:00
|
|
|
<div class="row text-h6 text-weight-bold q-mb-md">
|
|
|
|
|
{{ $t('branchManagement') }}
|
|
|
|
|
</div>
|
2024-04-02 17:47:32 +07:00
|
|
|
|
2024-04-03 17:59:37 +07:00
|
|
|
<app-box bordered class="q-mb-md">
|
|
|
|
|
<stat-card-componet :branch="branchStat" />
|
2024-04-03 15:23:59 +07:00
|
|
|
</app-box>
|
|
|
|
|
|
2024-04-02 17:47:32 +07:00
|
|
|
<app-box bordered style="width: 100%; height: 500px">
|
|
|
|
|
<div class="column" style="height: 100%">
|
|
|
|
|
<div class="col-1 self-end">
|
2024-04-03 14:24:17 +07:00
|
|
|
<div class="row">
|
2024-04-03 15:23:59 +07:00
|
|
|
<tooltip-componet imgSrc="img-table-" />
|
2024-04-03 14:24:17 +07:00
|
|
|
</div>
|
2024-04-02 17:47:32 +07:00
|
|
|
</div>
|
2024-04-03 14:24:17 +07:00
|
|
|
|
2024-04-02 17:47:32 +07:00
|
|
|
<div
|
|
|
|
|
class="col test self-center"
|
|
|
|
|
style="display: flex; align-items: center"
|
|
|
|
|
>
|
|
|
|
|
<btn-add-componet
|
|
|
|
|
:label="'สร้างสำนักงานใหญ่'"
|
|
|
|
|
@trigger="
|
|
|
|
|
() => {
|
|
|
|
|
console.log('test');
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</app-box>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
2024-04-03 15:23:59 +07:00
|
|
|
<style scoped></style>
|