@feedmepos/mf-order-setting 0.0.18 → 0.0.19-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{KioskDevicesView-CuHZd6_9.js → KioskDevicesView-CIxhc-KG.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-5mr80TnE.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-6pHvQa7g.js} +1 -1
- package/dist/{KioskView-Dy1o-gJs.js → KioskView-DGAm3wov.js} +3 -3
- package/dist/{OrderSettingsView-B-uga-ib.js → OrderSettingsView-B4To85cM.js} +2304 -2296
- package/dist/{app-DOZsphNG.js → app-AZwfj1q2.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-7bYz19Mt.js → dayjs.min-BKR4HjS7.js} +1 -1
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-B0G4vTU2.js → index-DhNrmmlo.js} +1 -1
- package/package.json +1 -1
- package/src/views/order-settings/pickup/PickUpSetting.vue +15 -2
package/package.json
CHANGED
|
@@ -60,21 +60,34 @@ const pickupSetting = computed<RestaurantPickup[]>(() => {
|
|
|
60
60
|
})
|
|
61
61
|
})
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
async function fetchRestaurants() {
|
|
64
64
|
await startAsyncCallWithErr(async () => {
|
|
65
|
+
console.log(`restaurants.value - ${!!restaurants.value}`)
|
|
65
66
|
await Promise.all(
|
|
66
67
|
restaurants.value.map(async (r) => {
|
|
67
68
|
await restaurantStore.readRestaurantSetting(r._id)
|
|
68
69
|
})
|
|
69
70
|
)
|
|
70
71
|
})
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
onMounted(async () => {
|
|
75
|
+
console.log('onMounted')
|
|
76
|
+
await fetchRestaurants()
|
|
71
77
|
})
|
|
72
78
|
|
|
79
|
+
watch(
|
|
80
|
+
() => restaurants.value,
|
|
81
|
+
async () => {
|
|
82
|
+
console.log('watch')
|
|
83
|
+
await fetchRestaurants()
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
|
|
73
87
|
async function onUpdate() {
|
|
74
88
|
await startAsyncCallWithErr(async () => {
|
|
75
89
|
await Promise.all(
|
|
76
90
|
restaurants.value.map(async (r) => {
|
|
77
|
-
await changeRestaurant(r)
|
|
78
91
|
await restaurantStore.readRestaurantSetting(r._id)
|
|
79
92
|
})
|
|
80
93
|
)
|