@feedmepos/mf-order-setting 0.0.22 → 0.0.24
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-C6YmdLKc.js → KioskDevicesView-DGkvW2mH.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-DiLHpWbm.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-BGZLd8T_.js} +2 -2
- package/dist/KioskSettingView-DLb5nnCu.js +821 -0
- package/dist/KioskView-kZZYSfUh.js +430 -0
- package/dist/{OrderSettingsView-D_bGK-3J.js → OrderSettingsView-Cil4j9G5.js} +14 -11
- package/dist/{app-C5qwExhL.js → app-D47VRl5B.js} +47 -39
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-kEC9G7bx.js → dayjs.min-R4180ukF.js} +1 -1
- package/dist/frontend/mf-order/src/app.d.ts +8 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +17 -0
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +192 -12
- package/dist/frontend/mf-order/src/stores/order-setting/mapper.d.ts +4 -2
- package/dist/frontend/mf-order/src/views/kiosk/settings/KioskEnablePaxDialogSection.vue.d.ts +9 -0
- package/dist/frontend/mf-order/src/views/kiosk/settings/KioskInstructionSection.vue.d.ts +15 -0
- package/dist/frontend/mf-order/src/views/kiosk/settings/KioskPickAtCounterSection.vue.d.ts +4 -3
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-C_53CwBa.js → index-DgLlDwJK.js} +2 -2
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +16 -16
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +6 -6
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +129 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +255 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.enum.d.ts +3 -0
- package/dist/package/entity/order-setting/order-setting.do.d.ts +156 -8
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +312 -16
- package/dist/package/entity/order-setting/sequence/sequence.do.d.ts +4 -4
- package/dist/package/entity/order-setting/sequence/sequence.dto.d.ts +4 -4
- package/dist/package/entity/payment/payment.enum.d.ts +2 -0
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +154 -6
- package/dist/package/entity/websocket/websocket.dto.d.ts +328 -0
- package/dist/{queue.do-Vog69wnQ.js → queue.do-CNMuossU.js} +4540 -4517
- package/package.json +1 -1
- package/src/locales/en-US.json +5 -2
- package/src/locales/zh-CN.json +4 -0
- package/src/modules/order-setting/kiosk/interface.ts +20 -0
- package/src/stores/order-setting/mapper.ts +68 -11
- package/src/views/kiosk/settings/KioskDineInSection.vue +4 -5
- package/src/views/kiosk/settings/KioskDisplayStandSection.vue +36 -0
- package/src/views/kiosk/settings/KioskEnablePaxDialogSection.vue +33 -0
- package/src/views/kiosk/settings/KioskInstructionSection.vue +40 -0
- package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +30 -19
- package/src/views/kiosk/settings/KioskPickAtCounterSection.vue +45 -7
- package/src/views/kiosk/settings/KioskSettingView.vue +41 -3
- package/src/views/kiosk/settings/KioskTakeawaySection.vue +38 -4
- package/src/views/order-settings/servicecharge/ServiceChargeRule.vue +3 -8
- package/dist/KioskSettingView-D-muNxlb.js +0 -649
- package/dist/KioskView-kcjjk4fF.js +0 -371
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as g, defineComponent as S, onMounted as h, resolveComponent as f, openBlock as
|
|
1
|
+
import { ref as g, defineComponent as S, onMounted as h, resolveComponent as f, openBlock as P, createElementBlock as b, createVNode as D } from "vue";
|
|
2
2
|
import "vue-router";
|
|
3
|
-
const
|
|
3
|
+
const k = {
|
|
4
4
|
accept: "accept",
|
|
5
5
|
acceptedPayment: "Accepted Payment",
|
|
6
6
|
acceptQueue: "Accept queue",
|
|
@@ -61,7 +61,7 @@ const D = {
|
|
|
61
61
|
customerItemRemarkSublabel: "Customer can attach remark to item",
|
|
62
62
|
customOfflinePayment: "Custom Offline Payment",
|
|
63
63
|
customOfflinePaymentHeader: "Custom offline payments",
|
|
64
|
-
customServiceCharge: "Custom
|
|
64
|
+
customServiceCharge: "Custom Service Charge",
|
|
65
65
|
customTime: "Custom time",
|
|
66
66
|
day: "Day",
|
|
67
67
|
days: "days",
|
|
@@ -85,6 +85,8 @@ const D = {
|
|
|
85
85
|
dineInType: "Dine In Type",
|
|
86
86
|
discountCampaign: "Discount Campaign",
|
|
87
87
|
displayStand: "Display Stand",
|
|
88
|
+
displayPaxDialogTitle: "Display Pax Dialog",
|
|
89
|
+
displayPaxDialogDescription: "Display pax dialog in kiosk",
|
|
88
90
|
edit: "Edit",
|
|
89
91
|
editOfflinePayment: "Edit offline payment",
|
|
90
92
|
editPickupPoint: "Edit pickup Point",
|
|
@@ -165,6 +167,7 @@ const D = {
|
|
|
165
167
|
orderSetting: "Order Setting",
|
|
166
168
|
orderType: "Order Type",
|
|
167
169
|
padDigit: "Pad Digit",
|
|
170
|
+
paid: "Paid",
|
|
168
171
|
payAtCounter: "Pay at Counter",
|
|
169
172
|
paymentMethod: "Payment Method",
|
|
170
173
|
paymentType: "Payment Type",
|
|
@@ -213,6 +216,7 @@ const D = {
|
|
|
213
216
|
staticQRcode: "Static QR code",
|
|
214
217
|
staticQRcodeSublabel: "Customer can order with static QR code",
|
|
215
218
|
status: "Status",
|
|
219
|
+
submitOrderInstruction: "Submit order instruction",
|
|
216
220
|
success: "SUCCESS",
|
|
217
221
|
sunday: "Sunday",
|
|
218
222
|
syncMenu: "Sync Menu",
|
|
@@ -257,7 +261,7 @@ const D = {
|
|
|
257
261
|
selectPlatform: "Select Platform",
|
|
258
262
|
platform: "Platform"
|
|
259
263
|
}, C = {
|
|
260
|
-
order:
|
|
264
|
+
order: k
|
|
261
265
|
}, A = {
|
|
262
266
|
accept: "接受",
|
|
263
267
|
acceptedPayment: "可接受付款方式",
|
|
@@ -344,6 +348,8 @@ const D = {
|
|
|
344
348
|
dineInType: "堂食类型",
|
|
345
349
|
discountCampaign: "促销活动",
|
|
346
350
|
displayStand: "桌牌",
|
|
351
|
+
displayPaxDialogTitle: "显示人数弹窗",
|
|
352
|
+
displayPaxDialogDescription: "在自助点餐设备显示人数弹窗",
|
|
347
353
|
edit: "编辑",
|
|
348
354
|
editOfflinePayment: "编辑线下支付方式",
|
|
349
355
|
editPickupPoint: "编辑取货地点",
|
|
@@ -424,6 +430,7 @@ const D = {
|
|
|
424
430
|
orderSetting: "订单设置",
|
|
425
431
|
orderType: "订单类型",
|
|
426
432
|
padDigit: "位数",
|
|
433
|
+
paid: "已付款",
|
|
427
434
|
payAtCounter: "在柜台付款",
|
|
428
435
|
paymentMethod: "付款方式",
|
|
429
436
|
paymentType: "交易类型",
|
|
@@ -471,6 +478,7 @@ const D = {
|
|
|
471
478
|
staticQRcode: "静态二维码",
|
|
472
479
|
staticQRcodeSublabel: "客户可以通过静态二维码下单",
|
|
473
480
|
status: "状态",
|
|
481
|
+
submitOrderInstruction: "提交订单文本",
|
|
474
482
|
success: "成功",
|
|
475
483
|
sunday: "星期日",
|
|
476
484
|
syncMenu: "同步菜单",
|
|
@@ -517,7 +525,7 @@ const D = {
|
|
|
517
525
|
}, I = {
|
|
518
526
|
order: A
|
|
519
527
|
}, m = g(null), v = () => m.value;
|
|
520
|
-
function
|
|
528
|
+
function x(t) {
|
|
521
529
|
m.value || (m.value = t);
|
|
522
530
|
}
|
|
523
531
|
const _ = Object.freeze({
|
|
@@ -538,38 +546,38 @@ function y(t) {
|
|
|
538
546
|
}
|
|
539
547
|
function U({
|
|
540
548
|
center: t,
|
|
541
|
-
radius:
|
|
549
|
+
radius: i
|
|
542
550
|
}) {
|
|
543
|
-
const e = [], a =
|
|
551
|
+
const e = [], a = i / 6371 * (180 / Math.PI), r = a / Math.cos(t.lat * (Math.PI / 180));
|
|
544
552
|
for (let o = 0; o < 361; o += 45) {
|
|
545
|
-
const
|
|
553
|
+
const d = o * (Math.PI / 180), n = t.lng + r * Math.cos(d), p = t.lat + a * Math.sin(d), s = v(), l = new s.maps.LatLng(p, n, !0);
|
|
546
554
|
e.push(l);
|
|
547
555
|
}
|
|
548
556
|
return e.map((o) => ({ lat: o.lat(), lng: o.lng() }));
|
|
549
557
|
}
|
|
550
558
|
function V(t) {
|
|
551
559
|
if (!t.length) return;
|
|
552
|
-
const { lat:
|
|
560
|
+
const { lat: i, lng: e } = y(t[0]), { maxLng: a, minLng: r, maxLat: o, minLat: d } = t.reduce((n, p) => {
|
|
553
561
|
const { lng: s, lat: l } = y(p);
|
|
554
|
-
return s >
|
|
562
|
+
return s > n.maxLng && (n.maxLng = s), s < n.minLng && (n.minLng = s), l > n.maxLat && (n.maxLat = l), l < n.minLat && (n.minLat = l), n;
|
|
555
563
|
}, {
|
|
556
564
|
maxLng: e,
|
|
557
565
|
minLng: e,
|
|
558
|
-
maxLat:
|
|
559
|
-
minLat:
|
|
566
|
+
maxLat: i,
|
|
567
|
+
minLat: i
|
|
560
568
|
});
|
|
561
569
|
return {
|
|
562
570
|
lng: r + (a - r) / 2,
|
|
563
|
-
lat:
|
|
571
|
+
lat: d + (o - d) / 2
|
|
564
572
|
};
|
|
565
573
|
}
|
|
566
|
-
class
|
|
567
|
-
constructor(
|
|
568
|
-
if (this.apiKey =
|
|
574
|
+
class c {
|
|
575
|
+
constructor(i = null, e = {}) {
|
|
576
|
+
if (this.apiKey = i, this.options = e, typeof window > "u")
|
|
569
577
|
throw new Error("google-maps is supported only in browser environment");
|
|
570
578
|
}
|
|
571
579
|
load() {
|
|
572
|
-
return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[
|
|
580
|
+
return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[c.CALLBACK_NAME] = () => {
|
|
573
581
|
if (this.api = window.google, typeof this.resolve > "u")
|
|
574
582
|
throw new Error("Should not happen");
|
|
575
583
|
this.resolve(this.api);
|
|
@@ -577,48 +585,48 @@ class d {
|
|
|
577
585
|
if (typeof this.reject > "u")
|
|
578
586
|
throw new Error("Should not happen");
|
|
579
587
|
this.reject(new Error("google-maps: authentication error"));
|
|
580
|
-
}, this.loader = new Promise((
|
|
581
|
-
this.resolve =
|
|
588
|
+
}, this.loader = new Promise((i, e) => {
|
|
589
|
+
this.resolve = i, this.reject = e;
|
|
582
590
|
const a = document.createElement("script");
|
|
583
591
|
a.src = this.createUrl(), a.async = !0, a.onerror = (r) => e(r), document.head.appendChild(a);
|
|
584
592
|
}));
|
|
585
593
|
}
|
|
586
594
|
createUrl() {
|
|
587
|
-
const
|
|
588
|
-
`callback=${
|
|
595
|
+
const i = [
|
|
596
|
+
`callback=${c.CALLBACK_NAME}`
|
|
589
597
|
];
|
|
590
|
-
this.apiKey &&
|
|
598
|
+
this.apiKey && i.push(`key=${this.apiKey}`);
|
|
591
599
|
for (let e in this.options)
|
|
592
600
|
if (this.options.hasOwnProperty(e)) {
|
|
593
601
|
let a = this.options[e];
|
|
594
|
-
e === "version" && (e = "v"), e === "libraries" && (a = a.join(",")),
|
|
602
|
+
e === "version" && (e = "v"), e === "libraries" && (a = a.join(",")), i.push(`${e}=${a}`);
|
|
595
603
|
}
|
|
596
|
-
return `https://maps.googleapis.com/maps/api/js?${
|
|
604
|
+
return `https://maps.googleapis.com/maps/api/js?${i.join("&")}`;
|
|
597
605
|
}
|
|
598
606
|
}
|
|
599
|
-
|
|
600
|
-
var
|
|
601
|
-
const
|
|
607
|
+
c.CALLBACK_NAME = "_dk_google_maps_loader_cb";
|
|
608
|
+
var w = { googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", firebase: {}, gtm: { debug: !1 }, r2: null };
|
|
609
|
+
const T = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
|
|
602
610
|
__name: "App",
|
|
603
611
|
setup(t) {
|
|
604
|
-
async function
|
|
612
|
+
async function i() {
|
|
605
613
|
if (v()) return;
|
|
606
|
-
const a = await new
|
|
614
|
+
const a = await new c(w.googleMap, {
|
|
607
615
|
libraries: ["places"]
|
|
608
616
|
}).load();
|
|
609
|
-
|
|
617
|
+
x(a);
|
|
610
618
|
}
|
|
611
619
|
return h(async () => {
|
|
612
|
-
await
|
|
620
|
+
await i();
|
|
613
621
|
}), (e, a) => {
|
|
614
622
|
const r = f("RouterView");
|
|
615
|
-
return
|
|
616
|
-
|
|
623
|
+
return P(), b("div", T, [
|
|
624
|
+
D(r)
|
|
617
625
|
]);
|
|
618
626
|
};
|
|
619
627
|
}
|
|
620
|
-
}),
|
|
621
|
-
KioskRoute:
|
|
628
|
+
}), M = "/kiosk", O = "/kiosk/device", E = "/kiosk/order-setting", R = "/order-settings", F = "/delivery-settings", N = "/orders", u = {
|
|
629
|
+
KioskRoute: M,
|
|
622
630
|
KioskDeviceRoute: O,
|
|
623
631
|
KioskOrderSettingRoute: E,
|
|
624
632
|
OrderSettingView: R,
|
|
@@ -628,22 +636,22 @@ const M = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
|
|
|
628
636
|
{
|
|
629
637
|
path: u.KioskRoute,
|
|
630
638
|
name: "Kiosk",
|
|
631
|
-
component: () => import("./KioskView-
|
|
639
|
+
component: () => import("./KioskView-kZZYSfUh.js")
|
|
632
640
|
},
|
|
633
641
|
{
|
|
634
642
|
path: u.KioskDeviceRoute,
|
|
635
643
|
name: "Kiosk Device",
|
|
636
|
-
component: () => import("./KioskDevicesView-
|
|
644
|
+
component: () => import("./KioskDevicesView-DGkvW2mH.js")
|
|
637
645
|
},
|
|
638
646
|
{
|
|
639
647
|
path: u.KioskOrderSettingRoute,
|
|
640
648
|
name: "Kiosk Order Setting",
|
|
641
|
-
component: () => import("./KioskSettingView-
|
|
649
|
+
component: () => import("./KioskSettingView-DLb5nnCu.js")
|
|
642
650
|
},
|
|
643
651
|
{
|
|
644
652
|
path: u.OrderSettingView,
|
|
645
653
|
name: "Order Setting View",
|
|
646
|
-
component: () => import("./OrderSettingsView-
|
|
654
|
+
component: () => import("./OrderSettingsView-Cil4j9G5.js")
|
|
647
655
|
}
|
|
648
656
|
], q = {
|
|
649
657
|
"en-US": C,
|
package/dist/app.js
CHANGED
|
@@ -87,6 +87,8 @@ export declare const i18nMessages: {
|
|
|
87
87
|
dineInType: string;
|
|
88
88
|
discountCampaign: string;
|
|
89
89
|
displayStand: string;
|
|
90
|
+
displayPaxDialogTitle: string;
|
|
91
|
+
displayPaxDialogDescription: string;
|
|
90
92
|
edit: string;
|
|
91
93
|
editOfflinePayment: string;
|
|
92
94
|
editPickupPoint: string;
|
|
@@ -167,6 +169,7 @@ export declare const i18nMessages: {
|
|
|
167
169
|
orderSetting: string;
|
|
168
170
|
orderType: string;
|
|
169
171
|
padDigit: string;
|
|
172
|
+
paid: string;
|
|
170
173
|
payAtCounter: string;
|
|
171
174
|
paymentMethod: string;
|
|
172
175
|
paymentType: string;
|
|
@@ -215,6 +218,7 @@ export declare const i18nMessages: {
|
|
|
215
218
|
staticQRcode: string;
|
|
216
219
|
staticQRcodeSublabel: string;
|
|
217
220
|
status: string;
|
|
221
|
+
submitOrderInstruction: string;
|
|
218
222
|
success: string;
|
|
219
223
|
sunday: string;
|
|
220
224
|
syncMenu: string;
|
|
@@ -347,6 +351,8 @@ export declare const i18nMessages: {
|
|
|
347
351
|
dineInType: string;
|
|
348
352
|
discountCampaign: string;
|
|
349
353
|
displayStand: string;
|
|
354
|
+
displayPaxDialogTitle: string;
|
|
355
|
+
displayPaxDialogDescription: string;
|
|
350
356
|
edit: string;
|
|
351
357
|
editOfflinePayment: string;
|
|
352
358
|
editPickupPoint: string;
|
|
@@ -427,6 +433,7 @@ export declare const i18nMessages: {
|
|
|
427
433
|
orderSetting: string;
|
|
428
434
|
orderType: string;
|
|
429
435
|
padDigit: string;
|
|
436
|
+
paid: string;
|
|
430
437
|
payAtCounter: string;
|
|
431
438
|
paymentMethod: string;
|
|
432
439
|
paymentType: string;
|
|
@@ -474,6 +481,7 @@ export declare const i18nMessages: {
|
|
|
474
481
|
staticQRcode: string;
|
|
475
482
|
staticQRcodeSublabel: string;
|
|
476
483
|
status: string;
|
|
484
|
+
submitOrderInstruction: string;
|
|
477
485
|
success: string;
|
|
478
486
|
sunday: string;
|
|
479
487
|
syncMenu: string;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { FdoEPaymentMethod, F_ORDER_PAYMENT_TYPE } from "@entity";
|
|
2
2
|
import { FdoOfflinePaymentMethod } from '@feedmepos/core/entity';
|
|
3
|
+
export interface MfKioskSubmitOrderInstruction {
|
|
4
|
+
payAtCounter: string | null;
|
|
5
|
+
paid: string | null;
|
|
6
|
+
}
|
|
7
|
+
export type KioskSubmitOrderInstructionForm = MfKioskSubmitOrderInstruction;
|
|
3
8
|
export interface MfDisplayStandSetting {
|
|
4
9
|
enabled: boolean;
|
|
5
10
|
standSlotRange: {
|
|
@@ -8,6 +13,8 @@ export interface MfDisplayStandSetting {
|
|
|
8
13
|
};
|
|
9
14
|
prefix: string | null;
|
|
10
15
|
padDigit: number;
|
|
16
|
+
enablePaxDialog: boolean;
|
|
17
|
+
submitOrderInstruction: MfKioskSubmitOrderInstruction;
|
|
11
18
|
}
|
|
12
19
|
export interface DisplayStandSettingForm {
|
|
13
20
|
enabled: boolean;
|
|
@@ -17,9 +24,18 @@ export interface DisplayStandSettingForm {
|
|
|
17
24
|
};
|
|
18
25
|
prefix: string | null;
|
|
19
26
|
padDigit: number | null;
|
|
27
|
+
enablePaxDialog: boolean;
|
|
28
|
+
submitOrderInstruction: KioskSubmitOrderInstructionForm;
|
|
20
29
|
}
|
|
21
30
|
export interface MfKioskPickAtCounterSetting {
|
|
22
31
|
enabled: boolean;
|
|
32
|
+
enablePaxDialog: boolean;
|
|
33
|
+
submitOrderInstruction: MfKioskSubmitOrderInstruction;
|
|
34
|
+
}
|
|
35
|
+
export interface PickAtCounterSettingForm {
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
enablePaxDialog: boolean;
|
|
38
|
+
submitOrderInstruction: KioskSubmitOrderInstructionForm;
|
|
23
39
|
}
|
|
24
40
|
export interface MfKioskSequenceNumberSetting {
|
|
25
41
|
prefix: string;
|
|
@@ -33,6 +49,7 @@ export interface MfKioskDineInSetting {
|
|
|
33
49
|
}
|
|
34
50
|
export interface MfKioskTakeawaySetting {
|
|
35
51
|
enabled: boolean;
|
|
52
|
+
submitOrderInstruction: MfKioskSubmitOrderInstruction;
|
|
36
53
|
}
|
|
37
54
|
export interface MfKioskPaymentSetting {
|
|
38
55
|
paymentTypes: MfKioskPaymentTypes;
|