refactor: branch card

This commit is contained in:
Methapon2001 2024-07-04 14:27:45 +07:00
parent e931d3b60e
commit ef9c99bac2
2 changed files with 84 additions and 68 deletions

View file

@ -135,11 +135,9 @@ const beforeBranch = ref<{ id: string; code: string }>({
const inputSearch = ref<string>('');
const fieldBranch = ref(['all', 'branchHQLabel', 'branchLabel']);
const fieldDisplay = ref([
'branchLabelName',
'branchLabelTel',
'branchLabelAddress',
'branchLabelType',
'branchLabelStatus',
]);
const fieldSelected = ref<string[]>(fieldDisplay.value);
const fieldSelectedBranch = ref<{
@ -888,7 +886,6 @@ watch(locale, () => {
branchLabelType: $t(
item.isHeadOffice ? 'branchHQLabel' : 'branchLabel',
),
branchLabelStatus: $t(`status${item.status}`),
}"
:field-selected="fieldSelected"
:badge-field="['branchLabelStatus']"