refactor:handle show date expire

This commit is contained in:
Thanaphon Frappet 2024-10-25 17:14:30 +07:00
parent 51d5f694ad
commit de7e6db13d

View file

@ -10,7 +10,7 @@ import { ProductTree, quotationProductTree } from './utils';
import { setLocale, dateFormat, calculateAge } from 'src/utils/datetime';
import { useEmployeeForm } from 'src/pages/03_customer-management/form';
import useProductServiceStore from 'stores/product-service';
import { baseUrl, waitAll } from 'src/stores/utils';
import { baseUrl, waitAll, calculateDaysUntilExpire } from 'src/stores/utils';
import useCustomerStore from 'stores/customer';
import useOptionStore from 'stores/options';
import { useQuotationForm } from './form';
@ -722,7 +722,11 @@ const statusQuotationForm = ref<
</span>
</div>
<div class="column col-2" style="gap: 10px">
<div
v-if="quotationFormState.mode !== 'create'"
class="column col-2"
style="gap: 10px"
>
<div class="row justify-end">
<span class="rounded flex flex-center q-pa-xs badge-color">
&#128900;