@feedmepos/mf-transaction 0.0.28 → 0.0.30
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-Ca1Dod1Q.js → App-CmGPvRF7.js} +1 -1
- package/dist/{Receipt-D4ELnpCI.js → Receipt-DYfNpiIl.js} +281 -281
- package/dist/{app-Gsp5apaA.js → app-BqaUjUj_.js} +82 -25
- package/dist/app.js +1 -1
- package/dist/apps/mf-transaction/src/app.d.ts +58 -1
- package/dist/apps/mf-transaction/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{config-Uk_Vve65.js → config-KQO8Kqv0.js} +2923 -2923
- package/dist/{index.es-DDxkXQ2z.js → index.es-UjHmcL97.js} +4 -4
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as d, watch as s, nextTick as l, onMounted as h, onBeforeUnmount as v, defineComponent as m, computed as x, openBlock as
|
|
1
|
+
import { ref as d, watch as s, nextTick as l, onMounted as h, onBeforeUnmount as v, defineComponent as m, computed as x, openBlock as f, createElementBlock as y, normalizeStyle as b, renderSlot as I, resolveComponent as P, createBlock as _, withCtx as w, createElementVNode as R, createVNode as g, defineAsyncComponent as C } from "vue";
|
|
2
2
|
import { useBreakpoints as E } from "@feedmepos/ui-library";
|
|
3
|
-
function
|
|
3
|
+
function D(e, n) {
|
|
4
4
|
const r = d({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
5
5
|
function t() {
|
|
6
6
|
if (e.value) {
|
|
@@ -26,40 +26,40 @@ function k(e, n) {
|
|
|
26
26
|
const N = /* @__PURE__ */ m({
|
|
27
27
|
__name: "FullWrapper",
|
|
28
28
|
setup(e) {
|
|
29
|
-
const n = E(), r = d(null), t =
|
|
29
|
+
const n = E(), r = d(null), t = D(r), o = x(() => {
|
|
30
30
|
var c;
|
|
31
31
|
const a = n.isAtMost("sm") ? 56 : 0;
|
|
32
32
|
return {
|
|
33
33
|
height: `calc(100dvh - ${((c = t.value) == null ? void 0 : c.top) + 24 + a}px)`
|
|
34
34
|
};
|
|
35
35
|
});
|
|
36
|
-
return (i, a) => (
|
|
36
|
+
return (i, a) => (f(), y("div", {
|
|
37
37
|
ref_key: "wrapper",
|
|
38
38
|
ref: r,
|
|
39
|
-
style:
|
|
39
|
+
style: b(o.value)
|
|
40
40
|
}, [
|
|
41
|
-
|
|
41
|
+
I(i.$slots, "default")
|
|
42
42
|
], 4));
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), k = { class: "flex justify-center items-center h-full w-full" }, F = /* @__PURE__ */ m({
|
|
45
45
|
__name: "PageLoading",
|
|
46
46
|
setup(e) {
|
|
47
47
|
return (n, r) => {
|
|
48
48
|
const t = P("FmCircularProgress");
|
|
49
|
-
return
|
|
50
|
-
default:
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
return f(), _(N, null, {
|
|
50
|
+
default: w(() => [
|
|
51
|
+
R("div", k, [
|
|
52
|
+
g(t, { size: "xl" })
|
|
53
53
|
])
|
|
54
54
|
]),
|
|
55
55
|
_: 1
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
}),
|
|
59
|
+
}), u = (e) => C({
|
|
60
60
|
loader: e,
|
|
61
|
-
loadingComponent:
|
|
62
|
-
}),
|
|
61
|
+
loadingComponent: F
|
|
62
|
+
}), T = {
|
|
63
63
|
title: "Transaction",
|
|
64
64
|
receipt: {
|
|
65
65
|
title: "Receipt",
|
|
@@ -116,7 +116,64 @@ const N = /* @__PURE__ */ m({
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}, S = {
|
|
119
|
-
transaction:
|
|
119
|
+
transaction: T
|
|
120
|
+
}, A = {
|
|
121
|
+
title: "ธุรกรรม",
|
|
122
|
+
receipt: {
|
|
123
|
+
title: "ใบเสร็จ",
|
|
124
|
+
actions: {
|
|
125
|
+
viewDetails: "ดูรายละเอียด",
|
|
126
|
+
refreshPayment: "รีเฟรชการชำระเงิน"
|
|
127
|
+
},
|
|
128
|
+
export: {
|
|
129
|
+
pdf: "ส่งออกเป็น PDF",
|
|
130
|
+
excel: "ส่งออกเป็น Excel",
|
|
131
|
+
noReceipts: "ไม่มีใบเสร็จที่จะส่งออก",
|
|
132
|
+
success: "ส่งออกใบเสร็จ",
|
|
133
|
+
export: "ส่งออก"
|
|
134
|
+
},
|
|
135
|
+
columns: {
|
|
136
|
+
receipt: "ใบเสร็จ",
|
|
137
|
+
table: "ตาราง",
|
|
138
|
+
paymentMethod: "วิธีการชำระเงิน",
|
|
139
|
+
createdAt: "สร้างเมื่อ",
|
|
140
|
+
completed: "เสร็จสมบูรณ์",
|
|
141
|
+
status: "สถานะ",
|
|
142
|
+
total: "รวม"
|
|
143
|
+
},
|
|
144
|
+
search: {
|
|
145
|
+
placeholder: "ค้นหาใบเสร็จ"
|
|
146
|
+
},
|
|
147
|
+
labels: {
|
|
148
|
+
receipt: "ใบเสร็จ: {seqNumber}"
|
|
149
|
+
},
|
|
150
|
+
detail: {
|
|
151
|
+
title: "รายละเอียดใบเสร็จ",
|
|
152
|
+
tabs: {
|
|
153
|
+
receipt: "ใบเสร็จ",
|
|
154
|
+
activity: "กิจกรรม",
|
|
155
|
+
orderRecords: "บันทึกคำสั่งซื้อ"
|
|
156
|
+
},
|
|
157
|
+
footer: {
|
|
158
|
+
creditInfo: "ข้อมูลเครดิต",
|
|
159
|
+
memberInfo: "ข้อมูลสมาชิก",
|
|
160
|
+
feedmeDeliveryInfo: "ข้อมูลการจัดส่ง Feedme",
|
|
161
|
+
deliveryInfo: "ข้อมูลการจัดส่ง",
|
|
162
|
+
pickupInfo: "ข้อมูลการรับสินค้า"
|
|
163
|
+
},
|
|
164
|
+
preview: {
|
|
165
|
+
title: "ใบเสร็จ POS"
|
|
166
|
+
},
|
|
167
|
+
orderId: "คำสั่งซื้อ {slot}",
|
|
168
|
+
invoiceNo: "หมายเลขใบแจ้งหนี้",
|
|
169
|
+
date: "วันที่",
|
|
170
|
+
cashier: "แคชเชียร์",
|
|
171
|
+
tablePax: "จำนวนผู้โดยสารที่โต๊ะ",
|
|
172
|
+
total: "รวม"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}, M = {
|
|
176
|
+
transaction: A
|
|
120
177
|
}, z = {
|
|
121
178
|
title: "交易",
|
|
122
179
|
receipt: {
|
|
@@ -173,9 +230,9 @@ const N = /* @__PURE__ */ m({
|
|
|
173
230
|
total: "总计"
|
|
174
231
|
}
|
|
175
232
|
}
|
|
176
|
-
},
|
|
233
|
+
}, B = {
|
|
177
234
|
transaction: z
|
|
178
|
-
}, p = "$transaction-receipt",
|
|
235
|
+
}, p = "$transaction-receipt", L = [
|
|
179
236
|
{
|
|
180
237
|
path: "/",
|
|
181
238
|
redirect: { name: p }
|
|
@@ -183,16 +240,16 @@ const N = /* @__PURE__ */ m({
|
|
|
183
240
|
{
|
|
184
241
|
path: "/receipt",
|
|
185
242
|
name: p,
|
|
186
|
-
component:
|
|
243
|
+
component: u(() => import("./Receipt-DYfNpiIl.js").then((e) => e.R))
|
|
187
244
|
}
|
|
188
|
-
],
|
|
245
|
+
], q = {
|
|
189
246
|
"en-US": S,
|
|
190
|
-
"zh-CN":
|
|
191
|
-
"th-TH":
|
|
192
|
-
},
|
|
247
|
+
"zh-CN": B,
|
|
248
|
+
"th-TH": M
|
|
249
|
+
}, U = u(() => import("./App-CmGPvRF7.js"));
|
|
193
250
|
export {
|
|
194
|
-
|
|
251
|
+
U as F,
|
|
195
252
|
N as _,
|
|
196
|
-
|
|
197
|
-
|
|
253
|
+
q as i,
|
|
254
|
+
L as r
|
|
198
255
|
};
|
package/dist/app.js
CHANGED
|
@@ -119,7 +119,64 @@ export declare const i18nMessages: {
|
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
121
|
};
|
|
122
|
-
"th-TH":
|
|
122
|
+
"th-TH": {
|
|
123
|
+
transaction: {
|
|
124
|
+
title: string;
|
|
125
|
+
receipt: {
|
|
126
|
+
title: string;
|
|
127
|
+
actions: {
|
|
128
|
+
viewDetails: string;
|
|
129
|
+
refreshPayment: string;
|
|
130
|
+
};
|
|
131
|
+
export: {
|
|
132
|
+
pdf: string;
|
|
133
|
+
excel: string;
|
|
134
|
+
noReceipts: string;
|
|
135
|
+
success: string;
|
|
136
|
+
export: string;
|
|
137
|
+
};
|
|
138
|
+
columns: {
|
|
139
|
+
receipt: string;
|
|
140
|
+
table: string;
|
|
141
|
+
paymentMethod: string;
|
|
142
|
+
createdAt: string;
|
|
143
|
+
completed: string;
|
|
144
|
+
status: string;
|
|
145
|
+
total: string;
|
|
146
|
+
};
|
|
147
|
+
search: {
|
|
148
|
+
placeholder: string;
|
|
149
|
+
};
|
|
150
|
+
labels: {
|
|
151
|
+
receipt: string;
|
|
152
|
+
};
|
|
153
|
+
detail: {
|
|
154
|
+
title: string;
|
|
155
|
+
tabs: {
|
|
156
|
+
receipt: string;
|
|
157
|
+
activity: string;
|
|
158
|
+
orderRecords: string;
|
|
159
|
+
};
|
|
160
|
+
footer: {
|
|
161
|
+
creditInfo: string;
|
|
162
|
+
memberInfo: string;
|
|
163
|
+
feedmeDeliveryInfo: string;
|
|
164
|
+
deliveryInfo: string;
|
|
165
|
+
pickupInfo: string;
|
|
166
|
+
};
|
|
167
|
+
preview: {
|
|
168
|
+
title: string;
|
|
169
|
+
};
|
|
170
|
+
orderId: string;
|
|
171
|
+
invoiceNo: string;
|
|
172
|
+
date: string;
|
|
173
|
+
cashier: string;
|
|
174
|
+
tablePax: string;
|
|
175
|
+
total: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
123
180
|
};
|
|
124
181
|
export declare const FmApp: any;
|
|
125
182
|
export { routers } from "@/router/shared";
|