refactor: set default

This commit is contained in:
Thanaphon Frappet 2024-10-28 13:30:28 +07:00
parent cd421c71e8
commit 1bdce4bed7

View file

@ -1,11 +1,7 @@
<script setup lang="ts">
import {
selectFilterOptionRefMod,
commaInput,
formatNumberDecimal,
} from 'stores/utils';
import { selectFilterOptionRefMod, commaInput } from 'stores/utils';
import { onMounted, watch } from 'vue';
import { ref, computed } from 'vue';
import { ref } from 'vue';
import { useI18n } from 'vue-i18n';
import ThaiBahtText from 'thai-baht-text';
@ -21,7 +17,7 @@ const payDateEN = defineModel<string>('payDateEn');
const wageRate = defineModel<string | number>('wageRate');
const wageRateText = defineModel<string>('wageRateText', { default: '0' });
const rate = ref<string>(wageRate.value?.toString() || '0');
const rate = ref<string>(commaInput(wageRate.value?.toString() || '0'));
const wageRate4Show = ref('');
const typeBusinessOption = ref([]);