@feedmepos/mf-transaction 0.0.11 → 0.0.13
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/{Receipt-c49Fjexj.js → Receipt-D15AhqrS.js} +100417 -77443
- package/dist/app.js +137 -19
- package/dist/apps/mf-transaction/src/app.d.ts +120 -0
- package/dist/apps/mf-transaction/src/views/receipt/ExportReceipt.vue.d.ts +1 -1
- package/dist/apps/mf-transaction/tsconfig.app.tsbuildinfo +1 -1
- package/dist/index.es-BgM06Owh.js +5618 -0
- package/package.json +7 -5
- package/dist/index.es-CpsGOIMG.js +0 -5618
package/dist/app.js
CHANGED
|
@@ -1,32 +1,150 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useCoreStore as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as s, ref as p, watch as l, onMounted as d, resolveComponent as m, openBlock as f, createBlock as u, createCommentVNode as v, nextTick as h } from "vue";
|
|
2
|
+
import { useCoreStore as x } from "@feedmepos/mf-common";
|
|
3
|
+
const I = {
|
|
4
|
+
title: "Transaction",
|
|
5
|
+
receipt: {
|
|
6
|
+
title: "Receipt",
|
|
7
|
+
actions: {
|
|
8
|
+
viewDetails: "View details",
|
|
9
|
+
refreshPayment: "Refresh payment"
|
|
10
|
+
},
|
|
11
|
+
export: {
|
|
12
|
+
pdf: "Export as PDF",
|
|
13
|
+
excel: "Export as Excel",
|
|
14
|
+
noReceipts: "No receipts to export",
|
|
15
|
+
success: "Receipts exported",
|
|
16
|
+
export: "Export"
|
|
17
|
+
},
|
|
18
|
+
columns: {
|
|
19
|
+
receipt: "Receipt",
|
|
20
|
+
table: "Table",
|
|
21
|
+
paymentMethod: "Payment method",
|
|
22
|
+
createdAt: "Created at",
|
|
23
|
+
completed: "Completed",
|
|
24
|
+
status: "Status",
|
|
25
|
+
total: "Total"
|
|
26
|
+
},
|
|
27
|
+
search: {
|
|
28
|
+
placeholder: "Search receipts"
|
|
29
|
+
},
|
|
30
|
+
labels: {
|
|
31
|
+
receipt: "Receipt: {seqNumber}"
|
|
32
|
+
},
|
|
33
|
+
detail: {
|
|
34
|
+
title: "Receipt detail",
|
|
35
|
+
tabs: {
|
|
36
|
+
receipt: "Receipt",
|
|
37
|
+
activity: "Activity",
|
|
38
|
+
orderRecords: "Order records"
|
|
39
|
+
},
|
|
40
|
+
footer: {
|
|
41
|
+
creditInfo: "Credit Info",
|
|
42
|
+
memberInfo: "Member Info",
|
|
43
|
+
feedmeDeliveryInfo: "Feedme Delivery Info",
|
|
44
|
+
deliveryInfo: "Delivery Info",
|
|
45
|
+
pickupInfo: "Pickup Info"
|
|
46
|
+
},
|
|
47
|
+
preview: {
|
|
48
|
+
title: "POS Receipt"
|
|
49
|
+
},
|
|
50
|
+
orderId: "Order {slot}",
|
|
51
|
+
invoiceNo: "Invoice No",
|
|
52
|
+
date: "Date",
|
|
53
|
+
cashier: "Cashier",
|
|
54
|
+
tablePax: "Table pax",
|
|
55
|
+
total: "Total"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}, y = {
|
|
59
|
+
transaction: I
|
|
60
|
+
}, R = {
|
|
61
|
+
title: "交易",
|
|
62
|
+
receipt: {
|
|
63
|
+
title: "收据",
|
|
64
|
+
actions: {
|
|
65
|
+
viewDetails: "查看详情",
|
|
66
|
+
refreshPayment: "刷新支付"
|
|
67
|
+
},
|
|
68
|
+
export: {
|
|
69
|
+
pdf: "导出为 PDF",
|
|
70
|
+
excel: "导出为 Excel",
|
|
71
|
+
noReceipts: "没有收据可导出",
|
|
72
|
+
success: "收据已导出",
|
|
73
|
+
export: "导出"
|
|
74
|
+
},
|
|
75
|
+
columns: {
|
|
76
|
+
receipt: "收据",
|
|
77
|
+
table: "桌号",
|
|
78
|
+
paymentMethod: "支付方式",
|
|
79
|
+
createdAt: "创建时间",
|
|
80
|
+
completed: "完成",
|
|
81
|
+
status: "状态",
|
|
82
|
+
total: "总计"
|
|
83
|
+
},
|
|
84
|
+
search: {
|
|
85
|
+
placeholder: "搜索收据"
|
|
86
|
+
},
|
|
87
|
+
labels: {
|
|
88
|
+
receipt: "收据: {seqNumber}"
|
|
89
|
+
},
|
|
90
|
+
detail: {
|
|
91
|
+
title: "收据详情",
|
|
92
|
+
tabs: {
|
|
93
|
+
receipt: "收据",
|
|
94
|
+
activity: "活动",
|
|
95
|
+
orderRecords: "订单记录"
|
|
96
|
+
},
|
|
97
|
+
footer: {
|
|
98
|
+
creditInfo: "积分信息",
|
|
99
|
+
memberInfo: "会员信息",
|
|
100
|
+
feedmeDeliveryInfo: "Feedme 配送信息",
|
|
101
|
+
deliveryInfo: "配送信息",
|
|
102
|
+
pickupInfo: "自取信息"
|
|
103
|
+
},
|
|
104
|
+
preview: {
|
|
105
|
+
title: "POS 收据"
|
|
106
|
+
},
|
|
107
|
+
orderId: "订单 {slot}",
|
|
108
|
+
invoiceNo: "发票号",
|
|
109
|
+
date: "日期",
|
|
110
|
+
cashier: "收银员",
|
|
111
|
+
tablePax: "桌号",
|
|
112
|
+
total: "总计"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}, b = {
|
|
116
|
+
transaction: R
|
|
117
|
+
}, _ = /* @__PURE__ */ s({
|
|
4
118
|
__name: "App",
|
|
5
119
|
setup(t) {
|
|
6
|
-
const { currentBusiness: o, readRestaurants:
|
|
7
|
-
e.value = !1, await
|
|
120
|
+
const { currentBusiness: o, readRestaurants: i } = x(), e = p(!0), r = async () => {
|
|
121
|
+
e.value = !1, await h(), await i(), e.value = !0;
|
|
8
122
|
};
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
}),
|
|
12
|
-
o.value != null &&
|
|
13
|
-
}), (
|
|
14
|
-
const
|
|
15
|
-
return e.value ? (
|
|
123
|
+
return l(o, async (a) => {
|
|
124
|
+
a != null && r();
|
|
125
|
+
}), d(() => {
|
|
126
|
+
o.value != null && r();
|
|
127
|
+
}), (a, C) => {
|
|
128
|
+
const n = m("RouterView");
|
|
129
|
+
return e.value ? (f(), u(n, { key: 0 })) : v("", !0);
|
|
16
130
|
};
|
|
17
131
|
}
|
|
18
|
-
}),
|
|
132
|
+
}), c = "$transaction-receipt", D = [
|
|
19
133
|
{
|
|
20
134
|
path: "/",
|
|
21
|
-
redirect: { name:
|
|
135
|
+
redirect: { name: c }
|
|
22
136
|
},
|
|
23
137
|
{
|
|
24
138
|
path: "/receipt",
|
|
25
|
-
name:
|
|
26
|
-
component: () => import("./Receipt-
|
|
139
|
+
name: c,
|
|
140
|
+
component: () => import("./Receipt-D15AhqrS.js").then((t) => t.R)
|
|
27
141
|
}
|
|
28
|
-
]
|
|
142
|
+
], N = {
|
|
143
|
+
"en-US": y,
|
|
144
|
+
"zh-CN": b
|
|
145
|
+
};
|
|
29
146
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
147
|
+
_ as FmApp,
|
|
148
|
+
N as i18nMessages,
|
|
149
|
+
D as routers
|
|
32
150
|
};
|
|
@@ -1,2 +1,122 @@
|
|
|
1
|
+
import enUS from "./locales/en-US.json";
|
|
2
|
+
export type AppMessagesSchema = typeof enUS;
|
|
3
|
+
export declare const i18nMessages: {
|
|
4
|
+
"en-US": {
|
|
5
|
+
transaction: {
|
|
6
|
+
title: string;
|
|
7
|
+
receipt: {
|
|
8
|
+
title: string;
|
|
9
|
+
actions: {
|
|
10
|
+
viewDetails: string;
|
|
11
|
+
refreshPayment: string;
|
|
12
|
+
};
|
|
13
|
+
export: {
|
|
14
|
+
pdf: string;
|
|
15
|
+
excel: string;
|
|
16
|
+
noReceipts: string;
|
|
17
|
+
success: string;
|
|
18
|
+
export: string;
|
|
19
|
+
};
|
|
20
|
+
columns: {
|
|
21
|
+
receipt: string;
|
|
22
|
+
table: string;
|
|
23
|
+
paymentMethod: string;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
completed: string;
|
|
26
|
+
status: string;
|
|
27
|
+
total: string;
|
|
28
|
+
};
|
|
29
|
+
search: {
|
|
30
|
+
placeholder: string;
|
|
31
|
+
};
|
|
32
|
+
labels: {
|
|
33
|
+
receipt: string;
|
|
34
|
+
};
|
|
35
|
+
detail: {
|
|
36
|
+
title: string;
|
|
37
|
+
tabs: {
|
|
38
|
+
receipt: string;
|
|
39
|
+
activity: string;
|
|
40
|
+
orderRecords: string;
|
|
41
|
+
};
|
|
42
|
+
footer: {
|
|
43
|
+
creditInfo: string;
|
|
44
|
+
memberInfo: string;
|
|
45
|
+
feedmeDeliveryInfo: string;
|
|
46
|
+
deliveryInfo: string;
|
|
47
|
+
pickupInfo: string;
|
|
48
|
+
};
|
|
49
|
+
preview: {
|
|
50
|
+
title: string;
|
|
51
|
+
};
|
|
52
|
+
orderId: string;
|
|
53
|
+
invoiceNo: string;
|
|
54
|
+
date: string;
|
|
55
|
+
cashier: string;
|
|
56
|
+
tablePax: string;
|
|
57
|
+
total: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
"zh-CN": {
|
|
63
|
+
transaction: {
|
|
64
|
+
title: string;
|
|
65
|
+
receipt: {
|
|
66
|
+
title: string;
|
|
67
|
+
actions: {
|
|
68
|
+
viewDetails: string;
|
|
69
|
+
refreshPayment: string;
|
|
70
|
+
};
|
|
71
|
+
export: {
|
|
72
|
+
pdf: string;
|
|
73
|
+
excel: string;
|
|
74
|
+
noReceipts: string;
|
|
75
|
+
success: string;
|
|
76
|
+
export: string;
|
|
77
|
+
};
|
|
78
|
+
columns: {
|
|
79
|
+
receipt: string;
|
|
80
|
+
table: string;
|
|
81
|
+
paymentMethod: string;
|
|
82
|
+
createdAt: string;
|
|
83
|
+
completed: string;
|
|
84
|
+
status: string;
|
|
85
|
+
total: string;
|
|
86
|
+
};
|
|
87
|
+
search: {
|
|
88
|
+
placeholder: string;
|
|
89
|
+
};
|
|
90
|
+
labels: {
|
|
91
|
+
receipt: string;
|
|
92
|
+
};
|
|
93
|
+
detail: {
|
|
94
|
+
title: string;
|
|
95
|
+
tabs: {
|
|
96
|
+
receipt: string;
|
|
97
|
+
activity: string;
|
|
98
|
+
orderRecords: string;
|
|
99
|
+
};
|
|
100
|
+
footer: {
|
|
101
|
+
creditInfo: string;
|
|
102
|
+
memberInfo: string;
|
|
103
|
+
feedmeDeliveryInfo: string;
|
|
104
|
+
deliveryInfo: string;
|
|
105
|
+
pickupInfo: string;
|
|
106
|
+
};
|
|
107
|
+
preview: {
|
|
108
|
+
title: string;
|
|
109
|
+
};
|
|
110
|
+
orderId: string;
|
|
111
|
+
invoiceNo: string;
|
|
112
|
+
date: string;
|
|
113
|
+
cashier: string;
|
|
114
|
+
tablePax: string;
|
|
115
|
+
total: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
1
121
|
export { default as FmApp } from "./App.vue";
|
|
2
122
|
export { routers } from "@/router/shared";
|