diff --git a/src/pages/Claim/ClaimList.vue b/src/pages/Claim/ClaimList.vue
index c05583314..41d0c5598 100644
--- a/src/pages/Claim/ClaimList.vue
+++ b/src/pages/Claim/ClaimList.vue
@@ -10,12 +10,13 @@ import { useSummaryDialog } from 'src/composables/useSummaryDialog';
import VnTable from 'src/components/VnTable/VnTable.vue';
import ZoneDescriptorProxy from '../Zone/Card/ZoneDescriptorProxy.vue';
import VnSection from 'src/components/common/VnSection.vue';
+import FetchData from 'src/components/FetchData.vue';
const { t } = useI18n();
const { viewSummary } = useSummaryDialog();
const dataKey = 'ClaimList';
-const claimFilterRef = ref();
+const states = ref([]);
const columns = computed(() => [
{
align: 'left',
@@ -81,8 +82,7 @@ const columns = computed(() => [
align: 'left',
label: t('claim.state'),
format: ({ stateCode }) =>
- claimFilterRef.value?.states.find(({ code }) => code === stateCode)
- ?.description,
+ states.value?.find(({ code }) => code === stateCode)?.description,
name: 'stateCode',
chip: {
condition: () => true,
@@ -92,7 +92,7 @@ const columns = computed(() => [
name: 'claimStateFk',
component: 'select',
attrs: {
- options: claimFilterRef.value?.states,
+ options: states.value,
optionLabel: 'description',
},
},
@@ -125,6 +125,7 @@ const STATE_COLOR = {
+ (states = data)" auto-load />
-
+
@@ -37,6 +44,7 @@ function handleLocation(data, location) {
:url-update="`Clients/${route.params.id}/updateFiscalData`"
auto-load
model="Customer"
+ :mapper="onBeforeSave"
>
@@ -114,7 +122,7 @@ function handleLocation(data, location) {
@@ -127,7 +135,7 @@ function handleLocation(data, location) {
- {
});
const { data: orderTotal } = await axios.get(
- `Orders/${Number(route.params.id)}/getTotal`
+ `Orders/${Number(route.params.id)}/getTotal`,
);
state.set('orderTotal', orderTotal);
@@ -56,7 +56,7 @@ const canAddToOrder = () => {
if (canAddToOrder) {
const excedQuantity = prices.value.reduce(
(acc, { quantity }) => acc + quantity,
- 0
+ 0,
);
if (excedQuantity > props.item.available) {
canAddToOrder = false;
diff --git a/src/pages/Worker/Department/Card/DepartmentSummary.vue b/src/pages/Worker/Department/Card/DepartmentSummary.vue
index 49c46b236..3719137e4 100644
--- a/src/pages/Worker/Department/Card/DepartmentSummary.vue
+++ b/src/pages/Worker/Department/Card/DepartmentSummary.vue
@@ -31,20 +31,18 @@ onMounted(async () => {
ref="summary"
:url="`Departments/${entityId}`"
class="full-width"
- style="max-width: 900px"
- module-name="Department"
>
{{ entity.name }}
-
+