refactor: use alias
This commit is contained in:
parent
f9494dc845
commit
be7a036b8d
31 changed files with 77 additions and 77 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import axios, { AxiosInstance } from 'axios';
|
import axios, { AxiosInstance } from 'axios';
|
||||||
import { boot } from 'quasar/wrappers';
|
import { boot } from 'quasar/wrappers';
|
||||||
import { getToken } from 'src/services/keycloak';
|
import { getToken } from 'src/services/keycloak';
|
||||||
import { dialog } from 'src/stores/utils';
|
import { dialog } from 'stores/utils';
|
||||||
import useLoader from 'stores/loader';
|
import useLoader from 'stores/loader';
|
||||||
|
|
||||||
declare module '@vue/runtime-core' {
|
declare module '@vue/runtime-core' {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { baseUrl } from 'src/stores/utils';
|
import { baseUrl } from 'stores/utils';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
inactive?: boolean;
|
inactive?: boolean;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { BankBook } from 'src/stores/branch/types';
|
import { BankBook } from 'stores/branch/types';
|
||||||
import useOptionStore from 'src/stores/options';
|
import useOptionStore from 'stores/options';
|
||||||
import { selectFilterOptionRefMod } from 'src/stores/utils';
|
import { selectFilterOptionRefMod } from 'stores/utils';
|
||||||
import { onMounted, ref, watch } from 'vue';
|
import { onMounted, ref, watch } from 'vue';
|
||||||
import { deleteItem } from 'src/stores/utils';
|
import { deleteItem } from 'stores/utils';
|
||||||
import { QSelect } from 'quasar';
|
import { QSelect } from 'quasar';
|
||||||
import { AddButton, DeleteButton } from 'components/button';
|
import { AddButton, DeleteButton } from 'components/button';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import useUserStore from 'src/stores/user';
|
import useUserStore from 'stores/user';
|
||||||
import { UserAttachmentDelete } from 'src/stores/user/types';
|
import { UserAttachmentDelete } from 'stores/user/types';
|
||||||
import { dialog } from 'src/stores/utils';
|
import { dialog } from 'stores/utils';
|
||||||
import { dateFormat, parseAndFormatDate } from 'src/utils/datetime';
|
import { dateFormat, parseAndFormatDate } from 'src/utils/datetime';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import useUserStore from 'src/stores/user';
|
import useUserStore from 'stores/user';
|
||||||
import { selectFilterOptionRefMod } from 'src/stores/utils';
|
import { selectFilterOptionRefMod } from 'stores/utils';
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { QSelect } from 'quasar';
|
import { QSelect } from 'quasar';
|
||||||
import useOptionStore from 'src/stores/options';
|
import useOptionStore from 'stores/options';
|
||||||
import { selectFilterOptionRefMod } from 'src/stores/utils';
|
import { selectFilterOptionRefMod } from 'stores/utils';
|
||||||
import {
|
import {
|
||||||
dateFormat,
|
dateFormat,
|
||||||
calculateAge,
|
calculateAge,
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,10 @@ import useAddressStore, {
|
||||||
District,
|
District,
|
||||||
Province,
|
Province,
|
||||||
SubDistrict,
|
SubDistrict,
|
||||||
} from 'src/stores/address';
|
} from 'stores/address';
|
||||||
import { EmployeeCheckupCreate } from 'src/stores/employee/types';
|
import { EmployeeCheckupCreate } from 'stores/employee/types';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { checkTabBeforeAdd, selectFilterOptionRefMod } from 'src/stores/utils';
|
import { checkTabBeforeAdd, selectFilterOptionRefMod } from 'stores/utils';
|
||||||
import { QSelect } from 'quasar';
|
import { QSelect } from 'quasar';
|
||||||
import {
|
import {
|
||||||
AddButton,
|
AddButton,
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { QSelect } from 'quasar';
|
import { QSelect } from 'quasar';
|
||||||
import { selectFilterOptionRefMod } from 'src/stores/utils';
|
import { selectFilterOptionRefMod } from 'stores/utils';
|
||||||
import { dateFormat, parseAndFormatDate } from 'src/utils/datetime';
|
import { dateFormat, parseAndFormatDate } from 'src/utils/datetime';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import useOptionStore from 'src/stores/options';
|
import useOptionStore from 'stores/options';
|
||||||
import { watch } from 'vue';
|
import { watch } from 'vue';
|
||||||
import { onMounted } from 'vue';
|
import { onMounted } from 'vue';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,10 @@ import useAddressStore, {
|
||||||
District,
|
District,
|
||||||
Province,
|
Province,
|
||||||
SubDistrict,
|
SubDistrict,
|
||||||
} from 'src/stores/address';
|
} from 'stores/address';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { selectFilterOptionRefMod } from 'src/stores/utils';
|
import { selectFilterOptionRefMod } from 'stores/utils';
|
||||||
import useOptionStore from 'src/stores/options';
|
import useOptionStore from 'stores/options';
|
||||||
import { watch } from 'vue';
|
import { watch } from 'vue';
|
||||||
|
|
||||||
const optionStore = useOptionStore();
|
const optionStore = useOptionStore();
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
import { dateFormat, parseAndFormatDate } from 'src/utils/datetime';
|
import { dateFormat, parseAndFormatDate } from 'src/utils/datetime';
|
||||||
import { EmployeeWorkCreate } from 'src/stores/employee/types';
|
import { EmployeeWorkCreate } from 'stores/employee/types';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { checkTabBeforeAdd, selectFilterOptionRefMod } from 'src/stores/utils';
|
import { checkTabBeforeAdd, selectFilterOptionRefMod } from 'stores/utils';
|
||||||
import {
|
import {
|
||||||
AddButton,
|
AddButton,
|
||||||
EditButton,
|
EditButton,
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { QTableColumn } from 'quasar';
|
import { QTableColumn } from 'quasar';
|
||||||
import { EmployeeHistory, NewEmployeeHistory } from 'src/stores/employee/types';
|
import { EmployeeHistory, NewEmployeeHistory } from 'stores/employee/types';
|
||||||
import { dateFormat } from 'src/utils/datetime';
|
import { dateFormat } from 'src/utils/datetime';
|
||||||
import NoData from '../NoData.vue';
|
import NoData from '../NoData.vue';
|
||||||
import { computed, onMounted, ref, watch } from 'vue';
|
import { computed, onMounted, ref, watch } from 'vue';
|
||||||
import useOptionStore from 'src/stores/options';
|
import useOptionStore from 'stores/options';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const optionStore = useOptionStore();
|
const optionStore = useOptionStore();
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { QSelect } from 'quasar';
|
import { QSelect } from 'quasar';
|
||||||
import { CustomerBranch } from 'src/stores/customer/types';
|
import { CustomerBranch } from 'stores/customer/types';
|
||||||
import { selectFilterOptionRefMod } from 'src/stores/utils';
|
import { selectFilterOptionRefMod } from 'stores/utils';
|
||||||
import { onMounted, ref, watch } from 'vue';
|
import { onMounted, ref, watch } from 'vue';
|
||||||
import {
|
import {
|
||||||
EditButton,
|
EditButton,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { QSelect } from 'quasar';
|
import { QSelect } from 'quasar';
|
||||||
import { getRole } from 'src/services/keycloak';
|
import { getRole } from 'src/services/keycloak';
|
||||||
import { selectFilterOptionRefMod } from 'src/stores/utils';
|
import { selectFilterOptionRefMod } from 'stores/utils';
|
||||||
import { ref, onMounted } from 'vue';
|
import { ref, onMounted } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
const { locale } = useI18n({ useScope: 'global' });
|
const { locale } = useI18n({ useScope: 'global' });
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { QSelect } from 'quasar';
|
import { QSelect } from 'quasar';
|
||||||
import { getRole } from 'src/services/keycloak';
|
import { getRole } from 'src/services/keycloak';
|
||||||
import { selectFilterOptionRefMod } from 'src/stores/utils';
|
import { selectFilterOptionRefMod } from 'stores/utils';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
const remark = defineModel<string>('remark');
|
const remark = defineModel<string>('remark');
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import useOptionStore from 'src/stores/options';
|
import useOptionStore from 'stores/options';
|
||||||
import { Attributes } from 'src/stores/product-service/types';
|
import { Attributes } from 'stores/product-service/types';
|
||||||
import { Icon } from '@iconify/vue';
|
import { Icon } from '@iconify/vue';
|
||||||
|
|
||||||
const optionStore = useOptionStore();
|
const optionStore = useOptionStore();
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { moveItemUp, moveItemDown, deleteItem, dialog } from 'src/stores/utils';
|
import { moveItemUp, moveItemDown, deleteItem, dialog } from 'stores/utils';
|
||||||
|
|
||||||
import NoData from 'components/NoData.vue';
|
import NoData from 'components/NoData.vue';
|
||||||
import WorkManagementComponent from './WorkManagementComponent.vue';
|
import WorkManagementComponent from './WorkManagementComponent.vue';
|
||||||
|
|
||||||
import { WorkItems } from 'src/stores/product-service/types';
|
import { WorkItems } from 'stores/product-service/types';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { dateFormat } from 'src/utils/datetime';
|
import { dateFormat } from 'src/utils/datetime';
|
||||||
import { Status } from 'src/stores/types';
|
import { Status } from 'stores/types';
|
||||||
|
|
||||||
withDefaults(
|
withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { Option } from 'src/stores/options/types';
|
import { Option } from 'stores/options/types';
|
||||||
import { Attributes } from 'src/stores/product-service/types';
|
import { Attributes } from 'stores/product-service/types';
|
||||||
import { moveItemUp, moveItemDown, deleteItem, dialog } from 'src/stores/utils';
|
import { moveItemUp, moveItemDown, deleteItem, dialog } from 'stores/utils';
|
||||||
|
|
||||||
import NoData from '../NoData.vue';
|
import NoData from '../NoData.vue';
|
||||||
import useOptionStore from 'src/stores/options';
|
import useOptionStore from 'stores/options';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { ref } from 'vue';
|
||||||
import AppBox from 'components/app/AppBox.vue';
|
import AppBox from 'components/app/AppBox.vue';
|
||||||
import { dateFormat } from 'src/utils/datetime';
|
import { dateFormat } from 'src/utils/datetime';
|
||||||
|
|
||||||
import { formatNumberDecimal } from 'src/stores/utils';
|
import { formatNumberDecimal } from 'stores/utils';
|
||||||
|
|
||||||
const addedProduct = ref<boolean>(false);
|
const addedProduct = ref<boolean>(false);
|
||||||
|
|
||||||
|
|
@ -11,7 +11,7 @@ import {
|
||||||
ServiceAndProduct,
|
ServiceAndProduct,
|
||||||
ProductList,
|
ProductList,
|
||||||
Service,
|
Service,
|
||||||
} from 'src/stores/product-service/types';
|
} from 'stores/product-service/types';
|
||||||
|
|
||||||
const baseUrl = ref<string>(import.meta.env.VITE_API_BASE_URL);
|
const baseUrl = ref<string>(import.meta.env.VITE_API_BASE_URL);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Icon } from '@iconify/vue';
|
import { Icon } from '@iconify/vue';
|
||||||
import { formatNumberDecimal } from 'src/stores/utils';
|
import { formatNumberDecimal } from 'stores/utils';
|
||||||
|
|
||||||
import useProductServiceStore from 'src/stores/product-service';
|
import useProductServiceStore from 'stores/product-service';
|
||||||
import useOptionStore from 'src/stores/options';
|
import useOptionStore from 'stores/options';
|
||||||
import { Attributes, ProductList } from 'src/stores/product-service/types';
|
import { Attributes, ProductList } from 'stores/product-service/types';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
|
|
||||||
const productServiceStore = useProductServiceStore();
|
const productServiceStore = useProductServiceStore();
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { onMounted, ref, watch } from 'vue';
|
||||||
// import { useI18n } from 'vue-i18n';
|
// import { useI18n } from 'vue-i18n';
|
||||||
// import { storeToRefs } from 'pinia';
|
// import { storeToRefs } from 'pinia';
|
||||||
|
|
||||||
// import useProductServiceStore from 'src/stores/product-service';
|
// import useProductServiceStore from 'stores/product-service';
|
||||||
|
|
||||||
import NoData from '../NoData.vue';
|
import NoData from '../NoData.vue';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { CustomerBranchCreate } from 'stores/customer/types';
|
import { CustomerBranchCreate } from 'stores/customer/types';
|
||||||
import { onMounted } from 'vue';
|
import { onMounted } from 'vue';
|
||||||
import { checkTabBeforeAdd } from 'src/stores/utils';
|
import { checkTabBeforeAdd } from 'stores/utils';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
readonly?: boolean;
|
readonly?: boolean;
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import useAddressStore, {
|
||||||
District,
|
District,
|
||||||
Province,
|
Province,
|
||||||
SubDistrict,
|
SubDistrict,
|
||||||
} from 'src/stores/address';
|
} from 'stores/address';
|
||||||
import { selectFilterOptionRefMod } from 'src/stores/utils';
|
import { selectFilterOptionRefMod } from 'stores/utils';
|
||||||
import { QSelect } from 'quasar';
|
import { QSelect } from 'quasar';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,13 @@ import { useI18n } from 'vue-i18n';
|
||||||
import useLoader from 'stores/loader';
|
import useLoader from 'stores/loader';
|
||||||
import ProfileMenu from './ProfileMenu.vue';
|
import ProfileMenu from './ProfileMenu.vue';
|
||||||
import DrawerComponent from './DrawerComponent.vue';
|
import DrawerComponent from './DrawerComponent.vue';
|
||||||
import useUserStore from 'src/stores/user';
|
import useUserStore from 'stores/user';
|
||||||
import { CanvasComponent, FormDialog } from 'components/index';
|
import { CanvasComponent, FormDialog } from 'components/index';
|
||||||
import useOptionStore from 'src/stores/options';
|
import useOptionStore from 'stores/options';
|
||||||
import { dialog } from 'src/stores/utils';
|
import { dialog } from 'stores/utils';
|
||||||
import { setLocale } from 'src/utils/datetime';
|
import { setLocale } from 'src/utils/datetime';
|
||||||
import useUtilsStore from 'src/stores/utils';
|
import useUtilsStore from 'stores/utils';
|
||||||
import useMyBranchStore from 'src/stores/my-branch';
|
import useMyBranchStore from 'stores/my-branch';
|
||||||
|
|
||||||
const useMyBranch = useMyBranchStore();
|
const useMyBranch = useMyBranchStore();
|
||||||
const { fetchListMyBranch } = useMyBranch;
|
const { fetchListMyBranch } = useMyBranch;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, onMounted, onUnmounted, ref, watch } from 'vue';
|
import { computed, onMounted, onUnmounted, ref, watch } from 'vue';
|
||||||
import { useQuasar } from 'quasar';
|
import { useQuasar } from 'quasar';
|
||||||
// import useOption from 'src/stores/option';
|
// import useOption from 'stores/option';
|
||||||
|
|
||||||
// const optionStore = useOption();
|
// const optionStore = useOption();
|
||||||
import { getName, getRealm, getRole, isLoggedIn } from 'src/services/keycloak';
|
import { getName, getRealm, getRole, isLoggedIn } from 'src/services/keycloak';
|
||||||
|
|
|
||||||
|
|
@ -2,22 +2,22 @@
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
import { ref, onMounted, computed, watch } from 'vue';
|
import { ref, onMounted, computed, watch } from 'vue';
|
||||||
import { Icon } from '@iconify/vue';
|
import { Icon } from '@iconify/vue';
|
||||||
import { BranchContact } from 'src/stores/branch-contact/types';
|
import { BranchContact } from 'stores/branch-contact/types';
|
||||||
import { useQuasar } from 'quasar';
|
import { useQuasar } from 'quasar';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import type { QTableProps } from 'quasar';
|
import type { QTableProps } from 'quasar';
|
||||||
|
|
||||||
import useBranchStore from 'stores/branch';
|
import useBranchStore from 'stores/branch';
|
||||||
import useFlowStore from 'src/stores/flow';
|
import useFlowStore from 'stores/flow';
|
||||||
import {
|
import {
|
||||||
BranchWithChildren,
|
BranchWithChildren,
|
||||||
BranchCreate,
|
BranchCreate,
|
||||||
Branch,
|
Branch,
|
||||||
BankBook,
|
BankBook,
|
||||||
} from 'stores/branch/types';
|
} from 'stores/branch/types';
|
||||||
import { Status } from 'src/stores/types';
|
import { Status } from 'stores/types';
|
||||||
|
|
||||||
import useUtilsStore, { dialog, baseUrl } from 'src/stores/utils';
|
import useUtilsStore, { dialog, baseUrl } from 'stores/utils';
|
||||||
import AddButton from 'components/AddButton.vue';
|
import AddButton from 'components/AddButton.vue';
|
||||||
import TooltipComponent from 'components/TooltipComponent.vue';
|
import TooltipComponent from 'components/TooltipComponent.vue';
|
||||||
import StatCard from 'components/StatCardComponent.vue';
|
import StatCard from 'components/StatCardComponent.vue';
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,22 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, watch, computed } from 'vue';
|
import { ref, onMounted, watch, computed } from 'vue';
|
||||||
import useUtilsStore, { dialog } from 'src/stores/utils';
|
import useUtilsStore, { dialog } from 'stores/utils';
|
||||||
import { calculateAge } from 'src/utils/datetime';
|
import { calculateAge } from 'src/utils/datetime';
|
||||||
import { useQuasar, type QTableProps } from 'quasar';
|
import { useQuasar, type QTableProps } from 'quasar';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import useFlowStore from 'src/stores/flow';
|
import useFlowStore from 'stores/flow';
|
||||||
import useUserStore from 'stores/user';
|
import useUserStore from 'stores/user';
|
||||||
import useBranchStore from 'src/stores/branch';
|
import useBranchStore from 'stores/branch';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
User,
|
User,
|
||||||
UserAttachmentCreate,
|
UserAttachmentCreate,
|
||||||
UserCreate,
|
UserCreate,
|
||||||
UserTypeStats,
|
UserTypeStats,
|
||||||
} from 'src/stores/user/types';
|
} from 'stores/user/types';
|
||||||
import { BranchUserStats } from 'src/stores/branch/types';
|
import { BranchUserStats } from 'stores/branch/types';
|
||||||
import useAddressStore from 'src/stores/address';
|
import useAddressStore from 'stores/address';
|
||||||
import ButtonAddComponent from 'components/ButtonAddCompoent.vue';
|
import ButtonAddComponent from 'components/ButtonAddCompoent.vue';
|
||||||
import PersonCard from 'components/shared/PersonCard.vue';
|
import PersonCard from 'components/shared/PersonCard.vue';
|
||||||
import StatCardComponent from 'components/StatCardComponent.vue';
|
import StatCardComponent from 'components/StatCardComponent.vue';
|
||||||
|
|
@ -31,7 +31,7 @@ import InfoForm from 'components/02_personnel-management/InfoForm.vue';
|
||||||
import NoData from 'components/NoData.vue';
|
import NoData from 'components/NoData.vue';
|
||||||
import ProfileUpload from 'components/ProfileUpload.vue';
|
import ProfileUpload from 'components/ProfileUpload.vue';
|
||||||
import PaginationComponent from 'components/PaginationComponent.vue';
|
import PaginationComponent from 'components/PaginationComponent.vue';
|
||||||
import useOptionStore from 'src/stores/options';
|
import useOptionStore from 'stores/options';
|
||||||
import ProfileBanner from 'components/ProfileBanner.vue';
|
import ProfileBanner from 'components/ProfileBanner.vue';
|
||||||
import SideMenu from 'components/SideMenu.vue';
|
import SideMenu from 'components/SideMenu.vue';
|
||||||
import ImageUploadDialog from 'components/ImageUploadDialog.vue';
|
import ImageUploadDialog from 'components/ImageUploadDialog.vue';
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ import TotalProductCardComponent from 'components/04_product-service/TotalProduc
|
||||||
import FormServiceWork from 'components/04_product-service/FormServiceWork.vue';
|
import FormServiceWork from 'components/04_product-service/FormServiceWork.vue';
|
||||||
import ServiceProperties from 'components/04_product-service/ServiceProperties.vue';
|
import ServiceProperties from 'components/04_product-service/ServiceProperties.vue';
|
||||||
import WorkNameManagement from 'components/04_product-service/WorkNameManagement.vue';
|
import WorkNameManagement from 'components/04_product-service/WorkNameManagement.vue';
|
||||||
import useOptionStore from 'src/stores/options';
|
import useOptionStore from 'stores/options';
|
||||||
import FormServiceProperties from 'components/04_product-service/FormServiceProperties.vue';
|
import FormServiceProperties from 'components/04_product-service/FormServiceProperties.vue';
|
||||||
import InfoForm from 'components/02_personnel-management/InfoForm.vue';
|
import InfoForm from 'components/02_personnel-management/InfoForm.vue';
|
||||||
import NoData from 'components/NoData.vue';
|
import NoData from 'components/NoData.vue';
|
||||||
|
|
@ -33,21 +33,21 @@ import ProfileBanner from 'components/ProfileBanner.vue';
|
||||||
import SideMenu from 'components/SideMenu.vue';
|
import SideMenu from 'components/SideMenu.vue';
|
||||||
import ImageUploadDialog from 'components/ImageUploadDialog.vue';
|
import ImageUploadDialog from 'components/ImageUploadDialog.vue';
|
||||||
|
|
||||||
import useFlowStore from 'src/stores/flow';
|
import useFlowStore from 'stores/flow';
|
||||||
import useMyBranchStore from 'src/stores/my-branch';
|
import useMyBranchStore from 'stores/my-branch';
|
||||||
|
|
||||||
import { dateFormat } from 'src/utils/datetime';
|
import { dateFormat } from 'src/utils/datetime';
|
||||||
import { formatNumberDecimal } from 'src/stores/utils';
|
import { formatNumberDecimal } from 'stores/utils';
|
||||||
|
|
||||||
const userBranchStore = useMyBranchStore();
|
const userBranchStore = useMyBranchStore();
|
||||||
|
|
||||||
const { currentMyBranch } = storeToRefs(userBranchStore);
|
const { currentMyBranch } = storeToRefs(userBranchStore);
|
||||||
|
|
||||||
import { Status } from 'src/stores/types';
|
import { Status } from 'stores/types';
|
||||||
|
|
||||||
import useUtilsStore, { dialog, dialogWarningClose } from 'src/stores/utils';
|
import useUtilsStore, { dialog, dialogWarningClose } from 'stores/utils';
|
||||||
|
|
||||||
import useProductServiceStore from 'src/stores/product-service';
|
import useProductServiceStore from 'stores/product-service';
|
||||||
import {
|
import {
|
||||||
ProductGroup,
|
ProductGroup,
|
||||||
ProductGroupCreate,
|
ProductGroupCreate,
|
||||||
|
|
@ -59,7 +59,7 @@ import {
|
||||||
WorkItems,
|
WorkItems,
|
||||||
Attributes,
|
Attributes,
|
||||||
ServiceAndProduct,
|
ServiceAndProduct,
|
||||||
} from 'src/stores/product-service/types';
|
} from 'stores/product-service/types';
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
|
|
||||||
const flowStore = useFlowStore();
|
const flowStore = useFlowStore();
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import MenuItem from 'components/00_home/MenuItem.vue';
|
import MenuItem from 'components/00_home/MenuItem.vue';
|
||||||
import useUtilsStore from 'src/stores/utils';
|
import useUtilsStore from 'stores/utils';
|
||||||
import { onMounted } from 'vue';
|
import { onMounted } from 'vue';
|
||||||
|
|
||||||
const utilsStore = useUtilsStore();
|
const utilsStore = useUtilsStore();
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { api } from 'src/boot/axios';
|
||||||
|
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
import { Pagination } from 'src/stores/types';
|
import { Pagination } from 'stores/types';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ProductGroup,
|
ProductGroup,
|
||||||
|
|
@ -24,7 +24,7 @@ import {
|
||||||
import { computed, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
import useFlowStore from '../flow';
|
import useFlowStore from '../flow';
|
||||||
|
|
||||||
import useMyBranchStore from 'src/stores/my-branch';
|
import useMyBranchStore from 'stores/my-branch';
|
||||||
|
|
||||||
const useProductServiceStore = defineStore('api-product-service', () => {
|
const useProductServiceStore = defineStore('api-product-service', () => {
|
||||||
const useMyBranch = useMyBranchStore();
|
const useMyBranch = useMyBranchStore();
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { Status } from '../types';
|
import { Status } from '../types';
|
||||||
import { Pagination, UpdatedBy, CreatedBy } from 'src/stores/types';
|
import { Pagination, UpdatedBy, CreatedBy } from 'stores/types';
|
||||||
|
|
||||||
export type ServiceAndProduct =
|
export type ServiceAndProduct =
|
||||||
| (Service & { type: 'service' })
|
| (Service & { type: 'service' })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue