diff --git a/src/pages/01_branch-management/MainPage.vue b/src/pages/01_branch-management/MainPage.vue index c7afa790..de817f26 100644 --- a/src/pages/01_branch-management/MainPage.vue +++ b/src/pages/01_branch-management/MainPage.vue @@ -297,14 +297,15 @@ function triggerDelete(id: string) { dialog({ color: 'negative', icon: 'mdi-alert', - title: 'ยืนยังการลบข้อมูล', - actionText: 'ตกลง', + title: t('deleteConfirmTitle'), + actionText: t('agree'), persistent: true, - message: 'ท่านต้องการลบข้อมูลหรือมั้ย', + message: t('deleteConfirmMessage'), action: async () => { await branchStore.deleteById(id); await branchStore.fetchList({ pageSize: 99999 }); modalDrawer.value = false; + stats.value[0].count = stats.value[0].count - 1; flowStore.rotate(); }, cancel: () => {}, @@ -863,6 +864,7 @@ watch(locale, () => { v-model:province-id="formData.provinceId" v-model:district-id="formData.districtId" v-model:sub-district-id="formData.subDistrictId" + v-model:zip-code="formData.zipCode" :title="changeTitle(formType, formTypeBranch) + ' ' + currentEdit.code" :titleFormAddress="$t('formDialogTitleAddress')" :address-title="$t('formDialogAddress')" @@ -965,6 +967,7 @@ watch(locale, () => { v-model:province-id="formData.provinceId" v-model:district-id="formData.districtId" v-model:sub-district-id="formData.subDistrictId" + v-model:zip-code="formData.zipCode" :title-form-address="$t('formDialogTitleAddress')" :address-title="$t('formDialogAddress')" :address-title-e-n="$t('formDialogAddressEN')"