fix: แก้ type fieldSelected

This commit is contained in:
Net 2024-07-04 15:04:52 +07:00
parent 7fd7df5a1b
commit 283ae2d1b0

View file

@ -134,12 +134,12 @@ const beforeBranch = ref<{ id: string; code: string }>({
const inputSearch = ref<string>(''); const inputSearch = ref<string>('');
const fieldBranch = ref(['all', 'branchHQLabel', 'branchLabel']); const fieldBranch = ref(['all', 'branchHQLabel', 'branchLabel']);
const fieldDisplay = ref([ const fieldDisplay = ref<
'branchLabelTel', ('branchLabelAddress' | 'branchLabelTel' | 'branchLabelType')[]
'branchLabelAddress', >(['branchLabelTel', 'branchLabelAddress', 'branchLabelType']);
'branchLabelType', const fieldSelected = ref<
]); ('branchLabelAddress' | 'branchLabelTel' | 'branchLabelType')[]
const fieldSelected = ref<string[]>(fieldDisplay.value); >(fieldDisplay.value);
const fieldSelectedBranch = ref<{ const fieldSelectedBranch = ref<{
label: string; label: string;
value: string; value: string;