refactor: add input search and status filter of request
This commit is contained in:
parent
2099256217
commit
40d9e339e0
2 changed files with 98 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ import {
|
|||
import { Employee } from 'src/stores/employee/types';
|
||||
|
||||
import { InvoicePayload } from 'src/stores/payment/types';
|
||||
import { RequestData, RequestDataStatus } from 'src/stores/request-list/types';
|
||||
|
||||
// NOTE: Import stores
|
||||
import { useQuotationStore } from 'stores/quotations';
|
||||
|
|
@ -87,10 +88,14 @@ export const useQuotationForm = defineStore('form-quotation', () => {
|
|||
source?: QuotationFull;
|
||||
createdAt: string | Date;
|
||||
createdBy: (locale: string) => string;
|
||||
inputSearchRequest: string | undefined;
|
||||
statusFilterRequest: RequestDataStatus | 'All';
|
||||
}>({
|
||||
mode: null,
|
||||
createdBy: (_) => getName() || '',
|
||||
createdAt: '',
|
||||
inputSearchRequest: undefined,
|
||||
statusFilterRequest: 'All',
|
||||
});
|
||||
|
||||
function isFormDataDifferent() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue