@feedmepos/mf-order-setting 0.0.33 → 0.0.35
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-CxZI99me.js → KioskDevicesView-wPKewwAS.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-EGj4fxeN.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-BCJPU2la.js} +2 -2
- package/dist/KioskSettingView-CV54HpY2.js +843 -0
- package/dist/{KioskView-IUQTvUF8.js → KioskView-B4mggCt0.js} +41 -34
- package/dist/OrderSettingsView-Cp3aV3Ps.js +50624 -0
- package/dist/{app-cd45Ryph.js → app-DlQj6ZP0.js} +26 -15
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CRAlrjJy.js → dayjs.min-C_sCJHuD.js} +1 -1
- package/dist/frontend/mf-order/src/app.d.ts +11 -0
- package/dist/frontend/mf-order/src/main.d.ts +11 -0
- package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +393 -393
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +12 -0
- package/dist/frontend/mf-order/src/stores/order-setting/mapper.d.ts +3 -3
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +75 -75
- package/dist/frontend/mf-order/src/stores/table-settings.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +50 -50
- package/dist/frontend/mf-order/src/views/kiosk/settings/KioskPaymentTypeSection.vue.d.ts +8 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/components/ManualIntegratedDeliverySetting.vue.d.ts +5 -0
- package/dist/frontend/mf-order/src/views/order-settings/servicecharge/ServiceChargeRule.vue.d.ts +2 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-DLWAy-3K.js → index-Cvhc_ltu.js} +2 -2
- package/dist/menu.dto-CeUdKgTW.js +103445 -0
- package/dist/package/entity/booking/booking.do.d.ts +502 -502
- package/dist/package/entity/delivery/delivery.dto.d.ts +100 -100
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +17 -0
- package/dist/package/entity/incoming-order/incoming-order.do.d.ts +1973 -836
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +32 -0
- package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +555 -555
- package/dist/package/entity/order/order-item/order-item.dto.d.ts +15 -0
- package/dist/package/entity/order/order.do.d.ts +5 -0
- package/dist/package/entity/order/order.dto.d.ts +208 -200
- package/dist/package/entity/order/order.enum.d.ts +1 -1
- package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +4 -4
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +100 -100
- package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +100 -100
- package/dist/package/entity/order-platform/menu.dto.d.ts +410 -410
- package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +100 -100
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +42 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +32 -0
- package/dist/package/entity/order-setting/order-setting.do.d.ts +22 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +44 -0
- package/dist/package/entity/queue/queue.do.d.ts +34 -34
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +22 -0
- package/dist/package/entity/websocket/websocket.dto.d.ts +48 -0
- package/package.json +3 -3
- package/src/locales/en-US.json +4 -0
- package/src/locales/th-TH.json +4 -0
- package/src/locales/zh-CN.json +3 -0
- package/src/stores/order-setting/mapper.ts +230 -168
- package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +42 -2
- package/src/views/order-settings/delivery/DeliverySetting.vue +11 -16
- package/src/views/order-settings/delivery/components/ManualIntegratedDeliverySetting.vue +26 -9
- package/src/views/order-settings/delivery/integrated-delivery/DeliverooSetting.vue +12 -1
- package/dist/KioskSettingView-CTDY8__s.js +0 -821
- package/dist/OrderSettingsView-VLE9yxNt.js +0 -74796
- package/dist/menu.dto-DGDI6XwH.js +0 -126424
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as I, computed as b, createElementBlock as y, openBlock as c, normalizeClass as X, createCommentVNode as _, createElementVNode as o, toDisplayString as m, unref as d, Fragment as Z, renderList as ee, ref as
|
|
2
|
-
import { u as re, _ as le } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as I, computed as b, createElementBlock as y, openBlock as c, normalizeClass as X, createCommentVNode as _, createElementVNode as o, toDisplayString as m, unref as d, Fragment as Z, renderList as ee, ref as k, defineAsyncComponent as te, watch as ae, resolveComponent as S, createVNode as P, withCtx as ne, withDirectives as se, vShow as oe, createBlock as R } from "vue";
|
|
2
|
+
import { u as re, _ as le } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-BCJPU2la.js";
|
|
3
3
|
import { useI18n as A, useCoreStore as de } from "@feedmepos/mf-common";
|
|
4
|
-
import { F as V, a as ie, b as ce } from "./menu.dto-
|
|
4
|
+
import { F as V, a as ie, b as ce } from "./menu.dto-CeUdKgTW.js";
|
|
5
5
|
import { useDialog as ue, useSnackbar as pe, useBreakpoints as me } from "@feedmepos/ui-library";
|
|
6
6
|
import { defineStore as ye } from "pinia";
|
|
7
|
-
import { O as B, c as D } from "./index-
|
|
7
|
+
import { O as B, c as D } from "./index-Cvhc_ltu.js";
|
|
8
8
|
const fe = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "fm-typo-en-title-sm-600"
|
|
11
11
|
}, ve = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "my-[0.25rem]"
|
|
14
|
-
}, _e = { class: "flex flex-col gap-1" }, be = { class: "flex flex-col gap-1" }, he = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-lg-600" }, Pe = { key: 0 }, we = { key: 1 }, Oe = { key: 0 },
|
|
14
|
+
}, _e = { class: "flex flex-col gap-1" }, be = { class: "flex flex-col gap-1" }, he = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-lg-600" }, Pe = { key: 0 }, we = { key: 1 }, Oe = { key: 0 }, Se = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-lg-600 block" }, xe = { key: 1 }, Te = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ce = { class: "fm-typo-en-body-lg-600 block" }, Ie = { key: 2 }, Ae = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ke = { class: "fm-typo-en-body-lg-600 block" }, Ue = { key: 3 }, $e = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Fe = { class: "fm-typo-en-body-lg-600 block" }, qe = { key: 0 }, E = /* @__PURE__ */ I({
|
|
15
15
|
__name: "KioskSummary",
|
|
16
16
|
props: {
|
|
17
17
|
restaurantId: {},
|
|
@@ -60,12 +60,12 @@ const fe = {
|
|
|
60
60
|
])) : (c(), y("div", we, "-"))
|
|
61
61
|
]),
|
|
62
62
|
l.value === d(e)("order.activated") ? (c(), y("div", Oe, [
|
|
63
|
-
o("span",
|
|
64
|
-
o("div",
|
|
63
|
+
o("span", Se, m(d(e)("order.dineIn")), 1),
|
|
64
|
+
o("div", ke, [
|
|
65
65
|
o("div", null, m(l.value), 1)
|
|
66
66
|
])
|
|
67
67
|
])) : _("", !0),
|
|
68
|
-
l.value === d(e)("order.activated") && s.value !== d(e)("order.unknown") ? (c(), y("div",
|
|
68
|
+
l.value === d(e)("order.activated") && s.value !== d(e)("order.unknown") ? (c(), y("div", xe, [
|
|
69
69
|
o("span", Te, m(d(e)("order.dineInType")), 1),
|
|
70
70
|
o("div", Ce, [
|
|
71
71
|
o("div", null, m(s.value), 1)
|
|
@@ -144,7 +144,9 @@ const fe = {
|
|
|
144
144
|
},
|
|
145
145
|
eWallet: {
|
|
146
146
|
qrPay: !1,
|
|
147
|
-
scanPay: !1
|
|
147
|
+
scanPay: !1,
|
|
148
|
+
terminalScanPay: !1,
|
|
149
|
+
terminalQrPay: !1
|
|
148
150
|
}
|
|
149
151
|
}
|
|
150
152
|
},
|
|
@@ -162,10 +164,13 @@ const fe = {
|
|
|
162
164
|
}, We = (t, e) => {
|
|
163
165
|
var r, l, n, s, u, i, a, p, v;
|
|
164
166
|
return {
|
|
165
|
-
dineIn: je(
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
dineIn: je(
|
|
168
|
+
e ?? {
|
|
169
|
+
current: 0,
|
|
170
|
+
prefix: "#K"
|
|
171
|
+
},
|
|
172
|
+
t.dineIn ?? void 0
|
|
173
|
+
),
|
|
169
174
|
takeaway: {
|
|
170
175
|
enabled: (t == null ? void 0 : t.canTakeaway) ?? !1,
|
|
171
176
|
submitOrderInstruction: (r = t == null ? void 0 : t.takeaway) != null && r.submitOrderInstruction ? {
|
|
@@ -183,7 +188,9 @@ const fe = {
|
|
|
183
188
|
},
|
|
184
189
|
eWallet: {
|
|
185
190
|
qrPay: !1,
|
|
186
|
-
scanPay: !1
|
|
191
|
+
scanPay: !1,
|
|
192
|
+
terminalScanPay: !1,
|
|
193
|
+
terminalQrPay: !1
|
|
187
194
|
}
|
|
188
195
|
})
|
|
189
196
|
},
|
|
@@ -274,7 +281,7 @@ const fe = {
|
|
|
274
281
|
convertOrderSettingDto: Me,
|
|
275
282
|
toOrderKioskSettingsDto: He
|
|
276
283
|
}, Le = ye("orderSetting", () => {
|
|
277
|
-
const t =
|
|
284
|
+
const t = k({});
|
|
278
285
|
async function e() {
|
|
279
286
|
const s = await B.getOrderSetting();
|
|
280
287
|
l(s);
|
|
@@ -300,7 +307,7 @@ const fe = {
|
|
|
300
307
|
updateKioskSetting: r,
|
|
301
308
|
setKioskOrderSetting: n
|
|
302
309
|
};
|
|
303
|
-
}),
|
|
310
|
+
}), Qe = { class: "py-[1.5rem]" }, Ye = { class: "flex px-[1.5rem]" }, ze = { class: "flex-[2_2_0%]" }, Ge = { class: "pt-[1.5rem]" }, Je = { class: "flex flex-col gap-10" }, Xe = { class: "flex flex-col gap-2" }, Ze = { class: "fm-typo-en-title-sm-600" }, et = { class: "fm-typo-en-title-sm-400" }, tt = {
|
|
304
311
|
key: 0,
|
|
305
312
|
class: "flex-[1_1_0%]"
|
|
306
313
|
}, it = /* @__PURE__ */ I({
|
|
@@ -308,11 +315,11 @@ const fe = {
|
|
|
308
315
|
setup(t) {
|
|
309
316
|
var F, q;
|
|
310
317
|
const { t: e } = A(), r = te(
|
|
311
|
-
() => import("./KioskSettingView-
|
|
312
|
-
), l =
|
|
318
|
+
() => import("./KioskSettingView-CV54HpY2.js")
|
|
319
|
+
), l = k("device"), n = re(), s = Le(), u = ue(), { currentRestaurant: i, restaurants: a, changeRestaurant: p } = de(), v = pe(), h = me(), K = b(() => h.breakpoints.value.xs), w = k(((F = i.value) == null ? void 0 : F._id) ?? void 0), j = b(() => a.value.map((f) => ({
|
|
313
320
|
label: f.profile.name,
|
|
314
321
|
value: f._id
|
|
315
|
-
}))), O =
|
|
322
|
+
}))), O = k(((q = i.value) == null ? void 0 : q._id) ?? "");
|
|
316
323
|
function H() {
|
|
317
324
|
var f;
|
|
318
325
|
u.open({
|
|
@@ -327,7 +334,7 @@ const fe = {
|
|
|
327
334
|
});
|
|
328
335
|
}
|
|
329
336
|
async function U(f) {
|
|
330
|
-
const g = a.value.find((
|
|
337
|
+
const g = a.value.find((x) => x._id == f);
|
|
331
338
|
await p(g), await s.getSetting(), await n.getDevices(), w.value = f, O.value = f;
|
|
332
339
|
}
|
|
333
340
|
const L = b(() => [
|
|
@@ -340,7 +347,7 @@ const fe = {
|
|
|
340
347
|
value: "setting"
|
|
341
348
|
}
|
|
342
349
|
]), $ = b(() => n.state.devices);
|
|
343
|
-
async function
|
|
350
|
+
async function Q() {
|
|
344
351
|
await n.requestOtp(), u.open({
|
|
345
352
|
title: D(e("order.bindDevice")),
|
|
346
353
|
contentComponent: De,
|
|
@@ -349,7 +356,7 @@ const fe = {
|
|
|
349
356
|
}
|
|
350
357
|
});
|
|
351
358
|
}
|
|
352
|
-
async function
|
|
359
|
+
async function Y(f) {
|
|
353
360
|
try {
|
|
354
361
|
s.setKioskOrderSetting(f), await s.updateKioskSetting(), v.open({
|
|
355
362
|
title: e("order.kioskSettingSuccess"),
|
|
@@ -369,13 +376,13 @@ const fe = {
|
|
|
369
376
|
},
|
|
370
377
|
{ immediate: !0 }
|
|
371
378
|
), (f, g) => {
|
|
372
|
-
const
|
|
373
|
-
return c(), y("div",
|
|
374
|
-
P(
|
|
379
|
+
const x = S("FmButton"), z = S("FmPageHead"), G = S("FmTabs"), J = S("FmSelect");
|
|
380
|
+
return c(), y("div", Qe, [
|
|
381
|
+
P(z, {
|
|
375
382
|
title: d(e)("order.kiosk")
|
|
376
383
|
}, {
|
|
377
384
|
append: ne(() => [
|
|
378
|
-
se(P(
|
|
385
|
+
se(P(x, {
|
|
379
386
|
icon: "info",
|
|
380
387
|
variant: "tertiary",
|
|
381
388
|
onClick: H
|
|
@@ -385,19 +392,19 @@ const fe = {
|
|
|
385
392
|
]),
|
|
386
393
|
_: 1
|
|
387
394
|
}, 8, ["title"]),
|
|
388
|
-
o("div",
|
|
389
|
-
o("div",
|
|
390
|
-
P(
|
|
395
|
+
o("div", Ye, [
|
|
396
|
+
o("div", ze, [
|
|
397
|
+
P(G, {
|
|
391
398
|
"model-value": l.value,
|
|
392
399
|
"onUpdate:modelValue": g[0] || (g[0] = (T) => l.value = T),
|
|
393
400
|
items: L.value
|
|
394
401
|
}, null, 8, ["model-value", "items"]),
|
|
395
|
-
o("div",
|
|
396
|
-
o("div",
|
|
402
|
+
o("div", Ge, [
|
|
403
|
+
o("div", Je, [
|
|
397
404
|
o("div", Xe, [
|
|
398
405
|
o("span", Ze, m(d(e)("order.activateLocation")), 1),
|
|
399
406
|
o("span", et, m(d(e)("order.selectRestaurant")) + ": ", 1),
|
|
400
|
-
P(
|
|
407
|
+
P(J, {
|
|
401
408
|
class: "w-1/2",
|
|
402
409
|
modelValue: w.value,
|
|
403
410
|
"onUpdate:modelValue": [
|
|
@@ -411,12 +418,12 @@ const fe = {
|
|
|
411
418
|
l.value == "device" ? (c(), R(le, {
|
|
412
419
|
key: 0,
|
|
413
420
|
devices: $.value,
|
|
414
|
-
"request-otp":
|
|
421
|
+
"request-otp": Q
|
|
415
422
|
}, null, 8, ["devices"])) : _("", !0),
|
|
416
423
|
l.value == "setting" ? (c(), R(d(r), {
|
|
417
424
|
key: `KioskSettingView-${O.value}`,
|
|
418
425
|
"restaurant-id": O.value,
|
|
419
|
-
onUpdateKioskOrderSetting:
|
|
426
|
+
onUpdateKioskOrderSetting: Y,
|
|
420
427
|
form: d(s).state.kiosk ?? d(Ne)
|
|
421
428
|
}, null, 8, ["restaurant-id", "form"])) : _("", !0)
|
|
422
429
|
])
|