diff --git a/src/pages/Zone/ZoneDeliveryPanel.vue b/src/pages/Zone/ZoneDeliveryPanel.vue
index f7f77ed98..d6c96b935 100644
--- a/src/pages/Zone/ZoneDeliveryPanel.vue
+++ b/src/pages/Zone/ZoneDeliveryPanel.vue
@@ -1,5 +1,5 @@
@@ -52,13 +60,14 @@ onMounted(async () => {
:fields="['id', 'name', 'deliveryMethodFk']"
@on-fetch="
(data) => {
- console.log('data: ', data);
- console.log('deliveryMethodsConfig: ', deliveryMethodsConfig);
Object.entries(deliveryMethodsConfig).forEach(([key, value]) => {
deliveryMethods[key] = data
.filter((code) => value.includes(code.code))
.map((method) => method.id);
});
+ inq = {
+ deliveryMethodFk: { inq: deliveryMethods[deliveryMethodFk] },
+ };
}
"
auto-load
@@ -112,9 +121,7 @@ onMounted(async () => {
v-model="formData.agencyModeFk"
url="AgencyModes/isActive"
:fields="['id', 'name']"
- :where="{
- deliveryMethodFk: { inq: deliveryMethods[deliveryMethodFk] },
- }"
+ :where="inq"
sort-by="name ASC"
option-value="id"
option-label="name"
@@ -129,9 +136,7 @@ onMounted(async () => {
v-model="formData.agencyModeFk"
url="AgencyModes/isActive"
:fields="['id', 'name']"
- :where="{
- deliveryMethodFk: { inq: deliveryMethods[deliveryMethodFk] },
- }"
+ :where="inq"
sort-by="name ASC"
option-value="id"
option-label="name"