* feat: add dialog structure * feat: add select functionality * chore: clear unused * feat: pass selectable product into dialog * feat: add table * feat: implement select worker and product * feat: send disabled worker into component * feat: add event emitted after submit * chore: cleanup * feat: add store * feat: dialogquotationbtn * feat: import worker from file and select them all * feat: add title * feat: add import button * feat: i18n * feat: lazy load person card image * refactor: change import button color * feat: add import worker button * chore: cleanup * chore: clean * chore: clean * feat: post quotation add worker appear on expired * fix: type * fix: only proceed when import has at least one * feat: check more condition * feat: fetch data from api * fix: worker not update --------- Co-authored-by: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Co-authored-by: nwpptrs <jay02499@gmail.com>
29 lines
586 B
Vue
29 lines
586 B
Vue
<script lang="ts" setup>
|
|
import MainButton from './MainButton.vue';
|
|
|
|
defineEmits<{
|
|
(e: 'click', v: MouseEvent): void;
|
|
}>();
|
|
defineProps<{
|
|
iconOnly?: boolean;
|
|
solid?: boolean;
|
|
outlined?: boolean;
|
|
disabled?: boolean;
|
|
dark?: boolean;
|
|
|
|
label?: string;
|
|
icon?: string;
|
|
}>();
|
|
</script>
|
|
|
|
<template>
|
|
<MainButton
|
|
@click="(e) => $emit('click', e)"
|
|
v-bind="{ ...$props, ...$attrs }"
|
|
:icon="icon || 'mdi-import'"
|
|
color="var(--info-bg)"
|
|
:title="iconOnly ? $t('general.import') : undefined"
|
|
>
|
|
{{ label || $t('general.import') }}
|
|
</MainButton>
|
|
</template>
|