feat: quotation add worker after accepted (#140)
* 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>
This commit is contained in:
parent
79d132f49e
commit
4528836f17
10 changed files with 702 additions and 12 deletions
29
src/components/button/ImportButton.vue
Normal file
29
src/components/button/ImportButton.vue
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue