@feedmepos/mf-transaction 0.0.21-ex → 0.0.21
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/{App-CT3AgUWA.js → App-6D8mOR3Q.js} +1 -1
- package/dist/Receipt-mDEqS0qJ.js +157490 -0
- package/dist/app-hjY912_W.js +193 -0
- package/dist/app.js +4 -132
- package/dist/apps/mf-transaction/src/app.d.ts +1 -1
- package/dist/apps/mf-transaction/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-CL_wDWN_.js → index-CsZXudNr.js} +14937 -6490
- package/dist/{index.es-LHCvueBp.js → index.es-qchl3MNC.js} +4 -4
- package/dist/packages/shared/src/components/form/ImageDropField.vue.d.ts +1 -1
- package/dist/packages/shared/src/components/loading/PageLoading.vue.d.ts +2 -0
- package/dist/packages/shared/src/components/loading/index.d.ts +1 -0
- package/package.json +3 -3
- package/dist/Receipt-C2aG6eEP.js +0 -113167
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { ref as a, watch as u, nextTick as f, onMounted as h, onBeforeUnmount as v, defineComponent as l, computed as x, openBlock as p, createElementBlock as y, normalizeStyle as _, renderSlot as b, resolveComponent as P, createBlock as I, withCtx as g, createElementVNode as w, createVNode as R, defineAsyncComponent as C } from "vue";
|
|
2
|
+
import { useBreakpoints as E } from "@feedmepos/ui-library";
|
|
3
|
+
function k(t) {
|
|
4
|
+
const r = a({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
5
|
+
function o() {
|
|
6
|
+
if (t.value) {
|
|
7
|
+
const e = t.value.getBoundingClientRect();
|
|
8
|
+
r.value = {
|
|
9
|
+
top: e.top,
|
|
10
|
+
bottom: e.bottom,
|
|
11
|
+
left: e.left,
|
|
12
|
+
right: e.right
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return u(t, async (e) => {
|
|
17
|
+
e && (await f(), o());
|
|
18
|
+
}), h(() => {
|
|
19
|
+
window.addEventListener("resize", o);
|
|
20
|
+
}), v(() => {
|
|
21
|
+
window.removeEventListener("resize", o);
|
|
22
|
+
}), r;
|
|
23
|
+
}
|
|
24
|
+
const N = /* @__PURE__ */ l({
|
|
25
|
+
__name: "FullWrapper",
|
|
26
|
+
setup(t) {
|
|
27
|
+
const r = E(), o = a(null), e = k(o), m = x(() => {
|
|
28
|
+
var c;
|
|
29
|
+
const i = r.isAtMost("sm") ? 56 : 0;
|
|
30
|
+
return {
|
|
31
|
+
height: `calc(100dvh - ${((c = e.value) == null ? void 0 : c.top) + 24 + i}px)`
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
return (n, i) => (p(), y("div", {
|
|
35
|
+
ref_key: "wrapper",
|
|
36
|
+
ref: o,
|
|
37
|
+
style: _(m.value)
|
|
38
|
+
}, [
|
|
39
|
+
b(n.$slots, "default")
|
|
40
|
+
], 4));
|
|
41
|
+
}
|
|
42
|
+
}), D = { class: "flex justify-center items-center h-full w-full" }, F = /* @__PURE__ */ l({
|
|
43
|
+
__name: "PageLoading",
|
|
44
|
+
setup(t) {
|
|
45
|
+
return (r, o) => {
|
|
46
|
+
const e = P("FmCircularProgress");
|
|
47
|
+
return p(), I(N, null, {
|
|
48
|
+
default: g(() => [
|
|
49
|
+
w("div", D, [
|
|
50
|
+
R(e, { size: "xl" })
|
|
51
|
+
])
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}), d = (t) => C({
|
|
58
|
+
loader: t,
|
|
59
|
+
loadingComponent: F
|
|
60
|
+
}), S = {
|
|
61
|
+
title: "Transaction",
|
|
62
|
+
receipt: {
|
|
63
|
+
title: "Receipt",
|
|
64
|
+
actions: {
|
|
65
|
+
viewDetails: "View details",
|
|
66
|
+
refreshPayment: "Refresh payment"
|
|
67
|
+
},
|
|
68
|
+
export: {
|
|
69
|
+
pdf: "Export as PDF",
|
|
70
|
+
excel: "Export as Excel",
|
|
71
|
+
noReceipts: "No receipts to export",
|
|
72
|
+
success: "Receipts exported",
|
|
73
|
+
export: "Export"
|
|
74
|
+
},
|
|
75
|
+
columns: {
|
|
76
|
+
receipt: "Receipt",
|
|
77
|
+
table: "Table",
|
|
78
|
+
paymentMethod: "Payment method",
|
|
79
|
+
createdAt: "Created at",
|
|
80
|
+
completed: "Completed",
|
|
81
|
+
status: "Status",
|
|
82
|
+
total: "Total"
|
|
83
|
+
},
|
|
84
|
+
search: {
|
|
85
|
+
placeholder: "Search receipts"
|
|
86
|
+
},
|
|
87
|
+
labels: {
|
|
88
|
+
receipt: "Receipt: {seqNumber}"
|
|
89
|
+
},
|
|
90
|
+
detail: {
|
|
91
|
+
title: "Receipt detail",
|
|
92
|
+
tabs: {
|
|
93
|
+
receipt: "Receipt",
|
|
94
|
+
activity: "Activity",
|
|
95
|
+
orderRecords: "Order records"
|
|
96
|
+
},
|
|
97
|
+
footer: {
|
|
98
|
+
creditInfo: "Credit Info",
|
|
99
|
+
memberInfo: "Member Info",
|
|
100
|
+
feedmeDeliveryInfo: "Feedme Delivery Info",
|
|
101
|
+
deliveryInfo: "Delivery Info",
|
|
102
|
+
pickupInfo: "Pickup Info"
|
|
103
|
+
},
|
|
104
|
+
preview: {
|
|
105
|
+
title: "POS Receipt"
|
|
106
|
+
},
|
|
107
|
+
orderId: "Order {slot}",
|
|
108
|
+
invoiceNo: "Invoice No",
|
|
109
|
+
date: "Date",
|
|
110
|
+
cashier: "Cashier",
|
|
111
|
+
tablePax: "Table pax",
|
|
112
|
+
total: "Total"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}, T = {
|
|
116
|
+
transaction: S
|
|
117
|
+
}, z = {
|
|
118
|
+
title: "交易",
|
|
119
|
+
receipt: {
|
|
120
|
+
title: "收据",
|
|
121
|
+
actions: {
|
|
122
|
+
viewDetails: "查看详情",
|
|
123
|
+
refreshPayment: "刷新支付"
|
|
124
|
+
},
|
|
125
|
+
export: {
|
|
126
|
+
pdf: "导出为 PDF",
|
|
127
|
+
excel: "导出为 Excel",
|
|
128
|
+
noReceipts: "没有收据可导出",
|
|
129
|
+
success: "收据已导出",
|
|
130
|
+
export: "导出"
|
|
131
|
+
},
|
|
132
|
+
columns: {
|
|
133
|
+
receipt: "收据",
|
|
134
|
+
table: "桌号",
|
|
135
|
+
paymentMethod: "支付方式",
|
|
136
|
+
createdAt: "创建时间",
|
|
137
|
+
completed: "完成",
|
|
138
|
+
status: "状态",
|
|
139
|
+
total: "总计"
|
|
140
|
+
},
|
|
141
|
+
search: {
|
|
142
|
+
placeholder: "搜索收据"
|
|
143
|
+
},
|
|
144
|
+
labels: {
|
|
145
|
+
receipt: "收据: {seqNumber}"
|
|
146
|
+
},
|
|
147
|
+
detail: {
|
|
148
|
+
title: "收据详情",
|
|
149
|
+
tabs: {
|
|
150
|
+
receipt: "收据",
|
|
151
|
+
activity: "活动",
|
|
152
|
+
orderRecords: "订单记录"
|
|
153
|
+
},
|
|
154
|
+
footer: {
|
|
155
|
+
creditInfo: "积分信息",
|
|
156
|
+
memberInfo: "会员信息",
|
|
157
|
+
feedmeDeliveryInfo: "Feedme 配送信息",
|
|
158
|
+
deliveryInfo: "配送信息",
|
|
159
|
+
pickupInfo: "自取信息"
|
|
160
|
+
},
|
|
161
|
+
preview: {
|
|
162
|
+
title: "POS 收据"
|
|
163
|
+
},
|
|
164
|
+
orderId: "订单 {slot}",
|
|
165
|
+
invoiceNo: "发票号",
|
|
166
|
+
date: "日期",
|
|
167
|
+
cashier: "收银员",
|
|
168
|
+
tablePax: "桌号",
|
|
169
|
+
total: "总计"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}, A = {
|
|
173
|
+
transaction: z
|
|
174
|
+
}, s = "$transaction-receipt", $ = [
|
|
175
|
+
{
|
|
176
|
+
path: "/",
|
|
177
|
+
redirect: { name: s }
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
path: "/receipt",
|
|
181
|
+
name: s,
|
|
182
|
+
component: d(() => import("./Receipt-mDEqS0qJ.js").then((t) => t.R))
|
|
183
|
+
}
|
|
184
|
+
], L = {
|
|
185
|
+
"en-US": T,
|
|
186
|
+
"zh-CN": A
|
|
187
|
+
}, O = d(() => import("./App-6D8mOR3Q.js"));
|
|
188
|
+
export {
|
|
189
|
+
O as F,
|
|
190
|
+
N as _,
|
|
191
|
+
L as i,
|
|
192
|
+
$ as r
|
|
193
|
+
};
|
package/dist/app.js
CHANGED
|
@@ -1,134 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const r = {
|
|
3
|
-
title: "Transaction",
|
|
4
|
-
receipt: {
|
|
5
|
-
title: "Receipt",
|
|
6
|
-
actions: {
|
|
7
|
-
viewDetails: "View details",
|
|
8
|
-
refreshPayment: "Refresh payment"
|
|
9
|
-
},
|
|
10
|
-
export: {
|
|
11
|
-
pdf: "Export as PDF",
|
|
12
|
-
excel: "Export as Excel",
|
|
13
|
-
noReceipts: "No receipts to export",
|
|
14
|
-
success: "Receipts exported",
|
|
15
|
-
export: "Export"
|
|
16
|
-
},
|
|
17
|
-
columns: {
|
|
18
|
-
receipt: "Receipt",
|
|
19
|
-
table: "Table",
|
|
20
|
-
paymentMethod: "Payment method",
|
|
21
|
-
createdAt: "Created at",
|
|
22
|
-
completed: "Completed",
|
|
23
|
-
status: "Status",
|
|
24
|
-
total: "Total"
|
|
25
|
-
},
|
|
26
|
-
search: {
|
|
27
|
-
placeholder: "Search receipts"
|
|
28
|
-
},
|
|
29
|
-
labels: {
|
|
30
|
-
receipt: "Receipt: {seqNumber}"
|
|
31
|
-
},
|
|
32
|
-
detail: {
|
|
33
|
-
title: "Receipt detail",
|
|
34
|
-
tabs: {
|
|
35
|
-
receipt: "Receipt",
|
|
36
|
-
activity: "Activity",
|
|
37
|
-
orderRecords: "Order records"
|
|
38
|
-
},
|
|
39
|
-
footer: {
|
|
40
|
-
creditInfo: "Credit Info",
|
|
41
|
-
memberInfo: "Member Info",
|
|
42
|
-
feedmeDeliveryInfo: "Feedme Delivery Info",
|
|
43
|
-
deliveryInfo: "Delivery Info",
|
|
44
|
-
pickupInfo: "Pickup Info"
|
|
45
|
-
},
|
|
46
|
-
preview: {
|
|
47
|
-
title: "POS Receipt"
|
|
48
|
-
},
|
|
49
|
-
orderId: "Order {slot}",
|
|
50
|
-
invoiceNo: "Invoice No",
|
|
51
|
-
date: "Date",
|
|
52
|
-
cashier: "Cashier",
|
|
53
|
-
tablePax: "Table pax",
|
|
54
|
-
total: "Total"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}, i = {
|
|
58
|
-
transaction: r
|
|
59
|
-
}, c = {
|
|
60
|
-
title: "交易",
|
|
61
|
-
receipt: {
|
|
62
|
-
title: "收据",
|
|
63
|
-
actions: {
|
|
64
|
-
viewDetails: "查看详情",
|
|
65
|
-
refreshPayment: "刷新支付"
|
|
66
|
-
},
|
|
67
|
-
export: {
|
|
68
|
-
pdf: "导出为 PDF",
|
|
69
|
-
excel: "导出为 Excel",
|
|
70
|
-
noReceipts: "没有收据可导出",
|
|
71
|
-
success: "收据已导出",
|
|
72
|
-
export: "导出"
|
|
73
|
-
},
|
|
74
|
-
columns: {
|
|
75
|
-
receipt: "收据",
|
|
76
|
-
table: "桌号",
|
|
77
|
-
paymentMethod: "支付方式",
|
|
78
|
-
createdAt: "创建时间",
|
|
79
|
-
completed: "完成",
|
|
80
|
-
status: "状态",
|
|
81
|
-
total: "总计"
|
|
82
|
-
},
|
|
83
|
-
search: {
|
|
84
|
-
placeholder: "搜索收据"
|
|
85
|
-
},
|
|
86
|
-
labels: {
|
|
87
|
-
receipt: "收据: {seqNumber}"
|
|
88
|
-
},
|
|
89
|
-
detail: {
|
|
90
|
-
title: "收据详情",
|
|
91
|
-
tabs: {
|
|
92
|
-
receipt: "收据",
|
|
93
|
-
activity: "活动",
|
|
94
|
-
orderRecords: "订单记录"
|
|
95
|
-
},
|
|
96
|
-
footer: {
|
|
97
|
-
creditInfo: "积分信息",
|
|
98
|
-
memberInfo: "会员信息",
|
|
99
|
-
feedmeDeliveryInfo: "Feedme 配送信息",
|
|
100
|
-
deliveryInfo: "配送信息",
|
|
101
|
-
pickupInfo: "自取信息"
|
|
102
|
-
},
|
|
103
|
-
preview: {
|
|
104
|
-
title: "POS 收据"
|
|
105
|
-
},
|
|
106
|
-
orderId: "订单 {slot}",
|
|
107
|
-
invoiceNo: "发票号",
|
|
108
|
-
date: "日期",
|
|
109
|
-
cashier: "收银员",
|
|
110
|
-
tablePax: "桌号",
|
|
111
|
-
total: "总计"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}, a = {
|
|
115
|
-
transaction: c
|
|
116
|
-
}, e = "$transaction-receipt", n = [
|
|
117
|
-
{
|
|
118
|
-
path: "/",
|
|
119
|
-
redirect: { name: e }
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
path: "/receipt",
|
|
123
|
-
name: e,
|
|
124
|
-
component: () => import("./Receipt-C2aG6eEP.js").then((t) => t.R)
|
|
125
|
-
}
|
|
126
|
-
], p = {
|
|
127
|
-
"en-US": i,
|
|
128
|
-
"zh-CN": a
|
|
129
|
-
}, l = o(() => import("./App-CT3AgUWA.js"));
|
|
1
|
+
import { F as a, i as e, r as o } from "./app-hjY912_W.js";
|
|
130
2
|
export {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
3
|
+
a as FmApp,
|
|
4
|
+
e as i18nMessages,
|
|
5
|
+
o as routers
|
|
134
6
|
};
|
|
@@ -118,5 +118,5 @@ export declare const i18nMessages: {
|
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
|
-
export declare const FmApp:
|
|
121
|
+
export declare const FmApp: any;
|
|
122
122
|
export { routers } from "@/router/shared";
|