@feedmepos/mf-order-setting 0.0.27 → 0.0.28
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-AKvyDF3w.js → KioskDevicesView-BgXkmJ7v.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-Cx8VMyNB.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-DZT0BuUN.js} +2 -2
- package/dist/{KioskSettingView-equ5EIvU.js → KioskSettingView-DyX3Wv_2.js} +1 -1
- package/dist/{KioskView-CsE7BGtA.js → KioskView-Bgff7QPc.js} +4 -4
- package/dist/OrderSettingsView-C63s4uCD.js +74334 -0
- package/dist/{app-D-zQN9_E.js → app-Dp79Gu_F.js} +97 -25
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CWQSmujV.js → dayjs.min-B2ZkfNUH.js} +278 -267
- package/dist/frontend/mf-order/src/api/business/index.d.ts +5 -0
- package/dist/frontend/mf-order/src/api/effects/index.d.ts +3 -0
- package/dist/frontend/mf-order/src/api/index.d.ts +2 -0
- package/dist/frontend/mf-order/src/app.d.ts +72 -0
- package/dist/frontend/mf-order/src/main.d.ts +72 -0
- package/dist/frontend/mf-order/src/stores/business/index.d.ts +62 -0
- package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +138 -125
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +81 -78
- package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +54 -52
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +4 -0
- package/dist/frontend/mf-order/src/views/order-settings/discount-rule/DiscountRuleSetting.vue.d.ts +2 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-BwrMcIf2.js → index-DzQn92Tp.js} +2 -2
- package/dist/package/entity/booking/booking.do.d.ts +596 -551
- package/dist/package/entity/delivery/delivery.dto.d.ts +118 -109
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +342 -652
- package/dist/package/entity/incoming-order/incoming-order.do.d.ts +13778 -478
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +728 -1227
- package/dist/package/entity/incoming-order/incoming-order.enum.d.ts +1 -1
- package/dist/package/entity/index.d.ts +1 -0
- package/dist/package/entity/kiosk/kiosk.do.d.ts +32 -0
- package/dist/package/entity/kiosk/kiosk.dto.d.ts +14 -14
- package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +1469 -621
- package/dist/package/entity/member/member.dto.d.ts +14 -7
- package/dist/package/entity/order/effects/effect.dto.d.ts +154 -6
- package/dist/package/entity/order/order-item/order-item.dto.d.ts +87 -34
- package/dist/package/entity/order/order.do.d.ts +177 -572
- package/dist/package/entity/order/order.dto.d.ts +902 -1412
- package/dist/package/entity/order-platform/external/menu/external-menu.dto.d.ts +8 -0
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +8 -0
- package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +22 -3
- package/dist/package/entity/order-platform/external/order/external-order.enum.d.ts +1 -1
- package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +5 -0
- package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +5 -0
- package/dist/package/entity/order-platform/external/zus/zus-menu.dto.d.ts +192 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +104 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +152 -109
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +3 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +3 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda.enum.d.ts +2 -0
- package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +139 -109
- package/dist/package/entity/order-platform/grabfood/grabfood-settings.do.d.ts +3 -0
- package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +112 -2
- package/dist/package/entity/order-platform/order-platform.dto.d.ts +6 -3
- package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +164 -109
- package/dist/package/entity/order-platform/shopeefood/shopeefood-order.dto.d.ts +22 -0
- package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.do.d.ts +3 -0
- package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.dto.d.ts +3 -0
- package/dist/queue.do-BUtcyDk3.js +125578 -0
- package/package.json +4 -3
- package/src/api/business/index.ts +16 -0
- package/src/api/effects/index.ts +7 -0
- package/src/api/index.ts +9 -1
- package/src/locales/en-US.json +24 -1
- package/src/locales/th-TH.json +24 -1
- package/src/locales/zh-CN.json +27 -1
- package/src/stores/business/index.ts +45 -0
- package/src/stores/restaurant/index.ts +3 -1
- package/src/views/order-settings/OrderSettingsView.vue +17 -5
- package/src/views/order-settings/discount-rule/DiscountRuleSetting.vue +434 -0
- package/dist/OrderSettingsView-BpLXyk_0.js +0 -49013
- package/dist/queue.do-F110q0_J.js +0 -100389
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as g, defineComponent as S, onMounted as f, resolveComponent as
|
|
1
|
+
import { ref as g, defineComponent as S, onMounted as f, resolveComponent as h, createElementBlock as b, openBlock as P, createVNode as D } from "vue";
|
|
2
2
|
import "vue-router";
|
|
3
3
|
const k = {
|
|
4
4
|
accept: "accept",
|
|
@@ -265,7 +265,30 @@ const k = {
|
|
|
265
265
|
pickupCatalog: "Pickup catalog",
|
|
266
266
|
DeliverySettingUpdated: "Delivery setting updated.",
|
|
267
267
|
selectPlatform: "Select Platform",
|
|
268
|
-
platform: "Platform"
|
|
268
|
+
platform: "Platform",
|
|
269
|
+
discountRule: {
|
|
270
|
+
add: "Add discount rule",
|
|
271
|
+
description: "Define how the discount is applied to the bill. Require POS version {minPosVersion} or above.",
|
|
272
|
+
effect: "Promotion/Vouchers",
|
|
273
|
+
effectSelected: "{count} selected",
|
|
274
|
+
effectUsedInOtherGroup: "Used in another rule",
|
|
275
|
+
forceSync: "Force sync",
|
|
276
|
+
latest: "Latest",
|
|
277
|
+
loadingRestaurants: "Loading restaurants",
|
|
278
|
+
maxTotalUses: "Max total uses",
|
|
279
|
+
maxTotalUsesSublabel: "Maximum times promotions/vouchers can be used per bill",
|
|
280
|
+
outdated: "Outdated",
|
|
281
|
+
restaurantName: "Restaurant Name",
|
|
282
|
+
restaurants: "Restaurants",
|
|
283
|
+
restaurantsDescription: "Sync status of the discount rule across all restaurants",
|
|
284
|
+
selectAllEffects: "Select all promotions/vouchers",
|
|
285
|
+
selectEffects: "Select promotions/vouchers",
|
|
286
|
+
status: "Status",
|
|
287
|
+
syncSuccess: "Discount rule setting synced to all restaurants",
|
|
288
|
+
title: "Discount Rule",
|
|
289
|
+
updateSuccess: "Discount rule setting updated",
|
|
290
|
+
version: "Version"
|
|
291
|
+
}
|
|
269
292
|
}, C = {
|
|
270
293
|
order: k
|
|
271
294
|
}, I = {
|
|
@@ -360,6 +383,7 @@ const k = {
|
|
|
360
383
|
edit: "编辑",
|
|
361
384
|
editOfflinePayment: "编辑线下支付方式",
|
|
362
385
|
editPickupPoint: "编辑取货地点",
|
|
386
|
+
effectSelected: "已选择效果",
|
|
363
387
|
enableServiceCharge: "启用服务费",
|
|
364
388
|
end: "结束",
|
|
365
389
|
enterAddress: "输入地址",
|
|
@@ -472,6 +496,8 @@ const k = {
|
|
|
472
496
|
search: "搜索",
|
|
473
497
|
searchRestaurant: "搜索餐厅",
|
|
474
498
|
selectAllItemsIncludeCustomItem: "全部 (包括自定义商品)",
|
|
499
|
+
selectEffects: "选择效果",
|
|
500
|
+
selectAllEffects: "选择所有效果",
|
|
475
501
|
selectItem: "请选择",
|
|
476
502
|
selectRestaurant: "选择餐厅",
|
|
477
503
|
selectServiceChargeType: "选择服务费类型",
|
|
@@ -533,7 +559,30 @@ const k = {
|
|
|
533
559
|
pickupCatalog: "自取目录",
|
|
534
560
|
DeliverySettingUpdated: "配送设置已更新",
|
|
535
561
|
selectPlatform: "选择平台",
|
|
536
|
-
platform: "平台"
|
|
562
|
+
platform: "平台",
|
|
563
|
+
discountRule: {
|
|
564
|
+
add: "添加折扣规则",
|
|
565
|
+
description: "定义折扣在账单中如何应用。仅适用于POS版本{minPosVersion}或更高版本。",
|
|
566
|
+
effect: "促销/代金券",
|
|
567
|
+
effectSelected: "已选择{count}个",
|
|
568
|
+
effectUsedInOtherGroup: "已在其他规则中使用",
|
|
569
|
+
forceSync: "强制同步",
|
|
570
|
+
latest: "已发布",
|
|
571
|
+
loadingRestaurants: "正在加载餐厅",
|
|
572
|
+
maxTotalUses: "最大使用次数",
|
|
573
|
+
maxTotalUsesSublabel: "每张账单最多可使用促销/代金券次数",
|
|
574
|
+
outdated: "过时",
|
|
575
|
+
restaurantName: "餐厅名称",
|
|
576
|
+
restaurants: "餐厅",
|
|
577
|
+
restaurantsDescription: "所有餐厅的折扣规则同步状态",
|
|
578
|
+
selectAllEffects: "选择所有促销/代金券",
|
|
579
|
+
selectEffects: "选择促销/代金券",
|
|
580
|
+
status: "状态",
|
|
581
|
+
syncSuccess: "折扣规则设置已同步到所有餐厅",
|
|
582
|
+
title: "折扣规则",
|
|
583
|
+
updateSuccess: "折扣规则设置已更新",
|
|
584
|
+
version: "版本"
|
|
585
|
+
}
|
|
537
586
|
}, A = {
|
|
538
587
|
order: I
|
|
539
588
|
}, x = {
|
|
@@ -796,11 +845,34 @@ const k = {
|
|
|
796
845
|
pickupCatalog: "แคตตาล็อกการรับสินค้า",
|
|
797
846
|
DeliverySettingUpdated: "อัปเดตการตั้งค่าการจัดส่งแล้ว",
|
|
798
847
|
selectPlatform: "เลือกแพลตฟอร์ม",
|
|
799
|
-
platform: "แพลตฟอร์ม"
|
|
848
|
+
platform: "แพลตฟอร์ม",
|
|
849
|
+
discountRule: {
|
|
850
|
+
add: "เพิ่มกฎส่วนลด",
|
|
851
|
+
description: "กำหนดวิธีการใช้ส่วนลดในบิล ใช้ได้กับ POS เวอร์ชัน {minPosVersion} หรือใหม่กว่าเท่านั้น",
|
|
852
|
+
effect: "โปรโมชั่น/บัตรกำนัล",
|
|
853
|
+
effectSelected: "เลือกแล้ว {count} รายการ",
|
|
854
|
+
effectUsedInOtherGroup: "ถูกใช้ในกฎอื่น",
|
|
855
|
+
forceSync: "ซิงค์ข้อมูลแบบบังคับ",
|
|
856
|
+
latest: "เผยแพร่ล่าสุด",
|
|
857
|
+
loadingRestaurants: "กำลังโหลดร้านอาหาร",
|
|
858
|
+
maxTotalUses: "จำนวนการใช้งานสูงสุด",
|
|
859
|
+
maxTotalUsesSublabel: "จำนวนครั้งสูงสุดที่สามารถใช้โปรโมชั่น/บัตรกำนัลต่อบิล",
|
|
860
|
+
outdated: "ล้าสมัย",
|
|
861
|
+
restaurantName: "ชื่อร้านอาหาร",
|
|
862
|
+
restaurants: "ร้านอาหาร",
|
|
863
|
+
restaurantsDescription: "สถานะการซิงค์กฎส่วนลดของทุกร้านอาหาร",
|
|
864
|
+
selectAllEffects: "เลือกโปรโมชั่น/บัตรกำนัลทั้งหมด",
|
|
865
|
+
selectEffects: "เลือกโปรโมชั่น/บัตรกำนัล",
|
|
866
|
+
status: "สถานะ",
|
|
867
|
+
syncSuccess: "ซิงค์กฎส่วนลดไปยังร้านอาหารทั้งหมดเรียบร้อยแล้ว",
|
|
868
|
+
title: "กฎส่วนลด",
|
|
869
|
+
updateSuccess: "อัปเดตกฎส่วนลดเรียบร้อยแล้ว",
|
|
870
|
+
version: "เวอร์ชัน"
|
|
871
|
+
}
|
|
800
872
|
}, T = {
|
|
801
873
|
order: x
|
|
802
874
|
}, m = g(null), v = () => m.value;
|
|
803
|
-
function
|
|
875
|
+
function O(t) {
|
|
804
876
|
m.value || (m.value = t);
|
|
805
877
|
}
|
|
806
878
|
const B = Object.freeze({
|
|
@@ -809,7 +881,7 @@ const B = Object.freeze({
|
|
|
809
881
|
lng: 103.7413591
|
|
810
882
|
}
|
|
811
883
|
});
|
|
812
|
-
function
|
|
884
|
+
function U(t) {
|
|
813
885
|
return [t.lng, t.lat];
|
|
814
886
|
}
|
|
815
887
|
function y(t) {
|
|
@@ -819,20 +891,20 @@ function y(t) {
|
|
|
819
891
|
lng: t[0]
|
|
820
892
|
};
|
|
821
893
|
}
|
|
822
|
-
function
|
|
894
|
+
function V({
|
|
823
895
|
center: t,
|
|
824
896
|
radius: i
|
|
825
897
|
}) {
|
|
826
898
|
const e = [], a = i / 6371 * (180 / Math.PI), r = a / Math.cos(t.lat * (Math.PI / 180));
|
|
827
899
|
for (let o = 0; o < 361; o += 45) {
|
|
828
|
-
const
|
|
900
|
+
const c = o * (Math.PI / 180), n = t.lng + r * Math.cos(c), p = t.lat + a * Math.sin(c), s = v(), l = new s.maps.LatLng(p, n, !0);
|
|
829
901
|
e.push(l);
|
|
830
902
|
}
|
|
831
903
|
return e.map((o) => ({ lat: o.lat(), lng: o.lng() }));
|
|
832
904
|
}
|
|
833
905
|
function _(t) {
|
|
834
906
|
if (!t.length) return;
|
|
835
|
-
const { lat: i, lng: e } = y(t[0]), { maxLng: a, minLng: r, maxLat: o, minLat:
|
|
907
|
+
const { lat: i, lng: e } = y(t[0]), { maxLng: a, minLng: r, maxLat: o, minLat: c } = t.reduce((n, p) => {
|
|
836
908
|
const { lng: s, lat: l } = y(p);
|
|
837
909
|
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;
|
|
838
910
|
}, {
|
|
@@ -843,16 +915,16 @@ function _(t) {
|
|
|
843
915
|
});
|
|
844
916
|
return {
|
|
845
917
|
lng: r + (a - r) / 2,
|
|
846
|
-
lat:
|
|
918
|
+
lat: c + (o - c) / 2
|
|
847
919
|
};
|
|
848
920
|
}
|
|
849
|
-
class
|
|
921
|
+
class d {
|
|
850
922
|
constructor(i = null, e = {}) {
|
|
851
923
|
if (this.apiKey = i, this.options = e, typeof window > "u")
|
|
852
924
|
throw new Error("google-maps is supported only in browser environment");
|
|
853
925
|
}
|
|
854
926
|
load() {
|
|
855
|
-
return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[
|
|
927
|
+
return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[d.CALLBACK_NAME] = () => {
|
|
856
928
|
if (this.api = window.google, typeof this.resolve > "u")
|
|
857
929
|
throw new Error("Should not happen");
|
|
858
930
|
this.resolve(this.api);
|
|
@@ -868,7 +940,7 @@ class c {
|
|
|
868
940
|
}
|
|
869
941
|
createUrl() {
|
|
870
942
|
const i = [
|
|
871
|
-
`callback=${
|
|
943
|
+
`callback=${d.CALLBACK_NAME}`
|
|
872
944
|
];
|
|
873
945
|
this.apiKey && i.push(`key=${this.apiKey}`);
|
|
874
946
|
for (let e in this.options)
|
|
@@ -879,23 +951,23 @@ class c {
|
|
|
879
951
|
return `https://maps.googleapis.com/maps/api/js?${i.join("&")}`;
|
|
880
952
|
}
|
|
881
953
|
}
|
|
882
|
-
|
|
954
|
+
d.CALLBACK_NAME = "_dk_google_maps_loader_cb";
|
|
883
955
|
var M = { googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4" };
|
|
884
|
-
const
|
|
956
|
+
const w = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
|
|
885
957
|
__name: "App",
|
|
886
958
|
setup(t) {
|
|
887
959
|
async function i() {
|
|
888
960
|
if (v()) return;
|
|
889
|
-
const a = await new
|
|
961
|
+
const a = await new d(M.googleMap, {
|
|
890
962
|
libraries: ["places"]
|
|
891
963
|
}).load();
|
|
892
|
-
|
|
964
|
+
O(a);
|
|
893
965
|
}
|
|
894
966
|
return f(async () => {
|
|
895
967
|
await i();
|
|
896
968
|
}), (e, a) => {
|
|
897
|
-
const r =
|
|
898
|
-
return P(),
|
|
969
|
+
const r = h("RouterView");
|
|
970
|
+
return P(), b("div", w, [
|
|
899
971
|
D(r)
|
|
900
972
|
]);
|
|
901
973
|
};
|
|
@@ -909,22 +981,22 @@ const O = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
|
|
|
909
981
|
{
|
|
910
982
|
path: u.KioskRoute,
|
|
911
983
|
name: "Kiosk",
|
|
912
|
-
component: () => import("./KioskView-
|
|
984
|
+
component: () => import("./KioskView-Bgff7QPc.js")
|
|
913
985
|
},
|
|
914
986
|
{
|
|
915
987
|
path: u.KioskDeviceRoute,
|
|
916
988
|
name: "Kiosk Device",
|
|
917
|
-
component: () => import("./KioskDevicesView-
|
|
989
|
+
component: () => import("./KioskDevicesView-BgXkmJ7v.js")
|
|
918
990
|
},
|
|
919
991
|
{
|
|
920
992
|
path: u.KioskOrderSettingRoute,
|
|
921
993
|
name: "Kiosk Order Setting",
|
|
922
|
-
component: () => import("./KioskSettingView-
|
|
994
|
+
component: () => import("./KioskSettingView-DyX3Wv_2.js")
|
|
923
995
|
},
|
|
924
996
|
{
|
|
925
997
|
path: u.OrderSettingView,
|
|
926
998
|
name: "Order Setting View",
|
|
927
|
-
component: () => import("./OrderSettingsView-
|
|
999
|
+
component: () => import("./OrderSettingsView-C63s4uCD.js")
|
|
928
1000
|
}
|
|
929
1001
|
], H = {
|
|
930
1002
|
"en-US": C,
|
|
@@ -934,9 +1006,9 @@ const O = { class: "flex-1 overflow-auto" }, W = /* @__PURE__ */ S({
|
|
|
934
1006
|
export {
|
|
935
1007
|
W as _,
|
|
936
1008
|
y as a,
|
|
937
|
-
|
|
1009
|
+
V as b,
|
|
938
1010
|
B as c,
|
|
939
|
-
|
|
1011
|
+
U as d,
|
|
940
1012
|
_ as e,
|
|
941
1013
|
v as g,
|
|
942
1014
|
H as i,
|
package/dist/app.js
CHANGED