@feedmepos/mf-payment 1.0.0-beta.5 → 1.0.0-beta.7
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js +31 -0
- package/dist/PDFViewer-xrBtzrlR.js +22426 -0
- package/dist/{PayoutAccount-DZg-xSKt.js → PayoutAccount-CSXOF63k.js} +4 -4
- package/dist/{PayoutAccount-V74CPAJr.js → PayoutAccount-DqIlOFB4.js} +5 -5
- package/dist/{PayoutAccountSetting-kUQLeAcb.js → PayoutAccountSetting-CmgVLhdp.js} +4 -4
- package/dist/{Settlement-CHwtH6hm.js → Settlement-B1-WmCwC.js} +41 -42
- package/dist/Settlement-BSOQRlp1.js +145 -0
- package/dist/{SettlementTransactions-C281649y.js → SettlementTransactions-Cqd2raea.js} +4 -4
- package/dist/{SettlementTransactions-CBohm3KC.js → SettlementTransactions-JTwD_Vuq.js} +4 -4
- package/dist/{Terminal-gxGnjFGc.js → Terminal-De69bTKY.js} +43 -42
- package/dist/{TerminalSetting--ZAJJ_Hf.js → TerminalSetting-7VBm1RRK.js} +3 -3
- package/dist/{TerminalTransaction-DdESjZJo.js → TerminalTransaction-C1egvX6I.js} +112 -110
- package/dist/{TerminalTransaction-CfCURihE.js → TerminalTransaction-CZCsCpEp.js} +77 -75
- package/dist/{Transaction-BbGbcDvk.js → Transaction-B3ZWKg6Q.js} +114 -115
- package/dist/Transaction-B_0nUmpf.js +238 -0
- package/dist/{app-9P8d2JCE.js → app-C71Q1K5x.js} +116 -116
- package/dist/app.js +1 -1
- package/dist/{assets-NrCec-W0.js → assets-BCAivOTo.js} +1 -1
- package/dist/components/AdminLayout.vue.d.ts +8 -13
- package/dist/components/AutoCopyCell.vue.d.ts +3 -4
- package/dist/components/DateRangePicker.vue.d.ts +13 -0
- package/dist/components/Layout.vue.d.ts +8 -13
- package/dist/components/PDFViewer.vue.d.ts +1 -1
- package/dist/components/RouteCell.vue.d.ts +5 -6
- package/dist/components/SelectAll.vue.d.ts +2 -2
- package/dist/{index-CWaKb7bG.js → index-4meiCsRz.js} +1566 -1556
- package/dist/{index-BwcJZFsi.js → index-BFYq3eq8.js} +1 -1
- package/dist/{index-7KNaibcq.js → index-BwFHcZlm.js} +1 -1
- package/dist/{index-BWUtjGg7.js → index-CBa6eapm.js} +1 -1
- package/dist/{index-CojhNtuG.js → index-CETCXB6X.js} +1 -1
- package/dist/{index-DbJpbpSs.js → index-CbsnpMWl.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js → index.vue_vue_type_script_setup_true_lang-CKOlikHb.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DI0q_Sig.js → payout-account-BDflEqrE.js} +2 -2
- package/dist/{transaction-BTf6KnZV.js → transaction-COjHU7aN.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/cell/Bank.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/RateInput.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/Status.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/TPlusInput.vue.d.ts +3 -5
- package/dist/views/admin/settlement/cell/Actions.vue.d.ts +4 -6
- package/dist/views/admin/settlement/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/admin/settlement/cell/Method.vue.d.ts +3 -5
- package/dist/views/admin/settlement/cell/Status.vue.d.ts +3 -5
- package/dist/views/admin/terminal/TerminalBindCodeDialog.vue.d.ts +1 -1
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +7 -79
- package/dist/views/admin/terminal/cell/ID.vue.d.ts +3 -5
- package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +3 -4
- package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +3 -5
- package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +3 -6
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +3 -4
- package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/admin/transaction/cell/Method.vue.d.ts +3 -5
- package/dist/views/admin/transaction/cell/Status.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/Bank.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/IsActive.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/Status.vue.d.ts +3 -5
- package/dist/views/settlement/cell/Actions.vue.d.ts +4 -6
- package/dist/views/settlement/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/settlement/cell/Method.vue.d.ts +3 -5
- package/dist/views/settlement/cell/Status.vue.d.ts +3 -5
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +3 -5
- package/dist/views/transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/transaction/cell/Method.vue.d.ts +3 -5
- package/dist/views/transaction/cell/Status.vue.d.ts +3 -5
- package/package.json +1 -1
- package/dist/PDFViewer-CjH_C1uT.js +0 -21792
- package/dist/Settlement-C49oMOGR.js +0 -149
- package/dist/Transaction-BEls8K8W.js +0 -239
@@ -1,11 +1,11 @@
|
|
1
|
-
import { defineComponent as x, openBlock as f, createElementBlock as B, createTextVNode as L, createElementVNode as
|
2
|
-
import "./index-
|
1
|
+
import { defineComponent as x, openBlock as f, createElementBlock as B, createTextVNode as L, createElementVNode as k, toDisplayString as U, resolveComponent as p, createVNode as v, normalizeClass as O, withCtx as V, createBlock as g, createCommentVNode as A, ref as C, computed as z, unref as c, watch as D, isRef as K, h as E } from "vue";
|
2
|
+
import "./index-4meiCsRz.js";
|
3
3
|
import { h as Y } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as j } from "./index-
|
5
|
-
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-
|
4
|
+
import { u as j } from "./index-BwFHcZlm.js";
|
5
|
+
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-CKOlikHb.js";
|
6
6
|
import { _ as Q } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
7
7
|
import { useSnackbar as $, useDialogChild as G, useDialog as H } from "@feedmepos/ui-library";
|
8
|
-
import { t as
|
8
|
+
import { t as I } from "./index-CBa6eapm.js";
|
9
9
|
import { c as J } from "./clipboard-4jh1WteU.js";
|
10
10
|
import { u as N } from "./error-K1CakhA9.js";
|
11
11
|
import { z as P, a as R } from "./validator-D5jtpt9A.js";
|
@@ -23,7 +23,7 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
23
23
|
setup(y) {
|
24
24
|
return (n, o) => (f(), B("div", ee, [
|
25
25
|
o[0] || (o[0] = L(" Enter the binding code below on your device to link it with this terminal and apply the configuration. ")),
|
26
|
-
|
26
|
+
k("div", te, U(y.code), 1)
|
27
27
|
]));
|
28
28
|
}
|
29
29
|
}), oe = /* @__PURE__ */ x({
|
@@ -45,7 +45,7 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
45
45
|
}
|
46
46
|
n.data;
|
47
47
|
}
|
48
|
-
return (
|
48
|
+
return (i, a) => {
|
49
49
|
const d = p("FmBadge");
|
50
50
|
return f(), B("div", {
|
51
51
|
onClick: a[0] || (a[0] = (_) => {
|
@@ -57,7 +57,7 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
57
57
|
class: O(r())
|
58
58
|
}, {
|
59
59
|
default: V(() => [
|
60
|
-
|
60
|
+
k("div", null, U(i.data), 1)
|
61
61
|
]),
|
62
62
|
_: 1
|
63
63
|
}, 8, ["class"])
|
@@ -73,25 +73,25 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
73
73
|
setup(y, { emit: n }) {
|
74
74
|
const o = n;
|
75
75
|
return (r, l) => {
|
76
|
-
const
|
76
|
+
const i = p("FmButton");
|
77
77
|
return f(), B("div", ae, [
|
78
|
-
r.data.deviceType === "TERMINAL" && !r.data.deviceId ? (f(), g(
|
78
|
+
r.data.deviceType === "TERMINAL" && !r.data.deviceId ? (f(), g(i, {
|
79
79
|
key: 0,
|
80
80
|
variant: "plain",
|
81
81
|
"prepend-icon": "link",
|
82
82
|
onClick: l[0] || (l[0] = (a) => {
|
83
83
|
a.stopPropagation(), o("link");
|
84
84
|
})
|
85
|
-
})) :
|
86
|
-
r.data.deviceType === "TERMINAL" && r.data.deviceId ? (f(), g(
|
85
|
+
})) : A("", !0),
|
86
|
+
r.data.deviceType === "TERMINAL" && r.data.deviceId ? (f(), g(i, {
|
87
87
|
key: 1,
|
88
88
|
variant: "plain",
|
89
89
|
"prepend-icon": "link_off",
|
90
90
|
onClick: l[1] || (l[1] = (a) => {
|
91
91
|
a.stopPropagation(), o("unlink");
|
92
92
|
})
|
93
|
-
})) :
|
94
|
-
v(
|
93
|
+
})) : A("", !0),
|
94
|
+
v(i, {
|
95
95
|
variant: "plain",
|
96
96
|
"prepend-icon": "edit",
|
97
97
|
onClick: l[2] || (l[2] = (a) => {
|
@@ -110,41 +110,42 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
110
110
|
},
|
111
111
|
setup(y) {
|
112
112
|
var w, T, F;
|
113
|
-
const n = y, o = W(), r = G(), l =
|
113
|
+
const n = y, o = W(), r = G(), l = C(), i = C((w = n.terminal) == null ? void 0 : w.name), a = C((T = n.terminal) == null ? void 0 : T.referenceId), d = C(((F = n.terminal) == null ? void 0 : F.status) === "Active"), _ = z(() => o.restaurants.value.map((b) => ({
|
114
114
|
label: b.profile.name,
|
115
115
|
value: b._id
|
116
116
|
})));
|
117
117
|
return (b, u) => {
|
118
|
-
const e = p("FmSelect"), t = p("FmTextField"), m = p("FmSwitch"),
|
118
|
+
const e = p("FmSelect"), t = p("FmTextField"), m = p("FmSwitch"), h = p("FmButton"), S = p("FmForm");
|
119
119
|
return f(), g(S, {
|
120
120
|
ref: l.value,
|
121
121
|
class: "flex flex-col gap-16 mb-6",
|
122
122
|
onValidationSuccess: u[3] || (u[3] = () => {
|
123
|
-
c(r).emitData({ name:
|
123
|
+
c(r).emitData({ name: i.value, referenceId: a.value, status: d.value ? "Active" : "Inactive" }), c(r).emitAction("primary");
|
124
124
|
})
|
125
125
|
}, {
|
126
126
|
default: V(() => [
|
127
|
-
n.terminal ?
|
127
|
+
n.terminal ? A("", !0) : (f(), g(e, {
|
128
128
|
key: 0,
|
129
129
|
modelValue: a.value,
|
130
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
130
|
+
"onUpdate:modelValue": u[0] || (u[0] = (s) => a.value = s),
|
131
131
|
label: "Restaurant",
|
132
|
+
"helper-text": "If you can't find the restaurant please change the business to the restaurant's business.",
|
132
133
|
items: _.value,
|
133
134
|
rules: c(P)(c(R).string())
|
134
135
|
}, null, 8, ["modelValue", "items", "rules"])),
|
135
136
|
v(t, {
|
136
|
-
modelValue:
|
137
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
137
|
+
modelValue: i.value,
|
138
|
+
"onUpdate:modelValue": u[1] || (u[1] = (s) => i.value = s),
|
138
139
|
label: "Terminal Name",
|
139
140
|
rules: c(P)(c(R).string())
|
140
141
|
}, null, 8, ["modelValue", "rules"]),
|
141
142
|
n.terminal ? (f(), g(m, {
|
142
143
|
key: 1,
|
143
144
|
modelValue: d.value,
|
144
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
145
|
+
"onUpdate:modelValue": u[2] || (u[2] = (s) => d.value = s),
|
145
146
|
label: "Status"
|
146
|
-
}, null, 8, ["modelValue"])) :
|
147
|
-
v(
|
147
|
+
}, null, 8, ["modelValue"])) : A("", !0),
|
148
|
+
v(h, {
|
148
149
|
type: "submit",
|
149
150
|
label: "Create"
|
150
151
|
})
|
@@ -153,10 +154,10 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
153
154
|
}, 512);
|
154
155
|
};
|
155
156
|
}
|
156
|
-
}),
|
157
|
+
}), se = { class: "flex justify-between mb-6 items-center" }, ie = { class: "flex space-x-4" }, ce = { class: "flex space-x-4" }, xe = /* @__PURE__ */ x({
|
157
158
|
__name: "Terminal",
|
158
159
|
setup(y) {
|
159
|
-
const n =
|
160
|
+
const n = C(), { searchKey: o, deviceType: r } = j({
|
160
161
|
searchKey: "",
|
161
162
|
deviceType: void 0
|
162
163
|
});
|
@@ -174,7 +175,7 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
174
175
|
700
|
175
176
|
);
|
176
177
|
});
|
177
|
-
const
|
178
|
+
const i = Z(), a = H(), d = $();
|
178
179
|
async function _(e) {
|
179
180
|
X(
|
180
181
|
a,
|
@@ -183,7 +184,7 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
183
184
|
async () => {
|
184
185
|
var t;
|
185
186
|
try {
|
186
|
-
await
|
187
|
+
await I.unbind(e), (t = n.value) == null || t.reset(), d.open({
|
187
188
|
type: "success",
|
188
189
|
message: "Terminal unbind successfully"
|
189
190
|
});
|
@@ -198,7 +199,7 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
198
199
|
);
|
199
200
|
}
|
200
201
|
async function w(e) {
|
201
|
-
const t = await
|
202
|
+
const t = await I.getBindCode(e);
|
202
203
|
a.open({
|
203
204
|
title: "Terminal Bind Code",
|
204
205
|
closeButton: !0,
|
@@ -218,15 +219,15 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
218
219
|
var m;
|
219
220
|
a.close();
|
220
221
|
try {
|
221
|
-
await
|
222
|
+
await I.create(t), (m = n.value) == null || m.reset(), d.open({
|
222
223
|
type: "success",
|
223
224
|
message: e ? "Terminal udpated successfully" : "Terminal created successfully."
|
224
225
|
});
|
225
|
-
} catch (
|
226
|
+
} catch (h) {
|
226
227
|
d.open({
|
227
228
|
type: "error",
|
228
229
|
title: "Error occurs when create terminal",
|
229
|
-
message: N(
|
230
|
+
message: N(h)
|
230
231
|
});
|
231
232
|
}
|
232
233
|
});
|
@@ -317,30 +318,30 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
317
318
|
}
|
318
319
|
];
|
319
320
|
return (e, t) => {
|
320
|
-
const m = p("FmSearch"),
|
321
|
+
const m = p("FmSearch"), h = p("FmSelect"), S = p("FmButton");
|
321
322
|
return f(), g(Q, {
|
322
323
|
title: "Terminals",
|
323
324
|
loading: !1
|
324
325
|
}, {
|
325
326
|
default: V(() => [
|
326
|
-
|
327
|
-
|
327
|
+
k("div", se, [
|
328
|
+
k("div", ie, [
|
328
329
|
v(m, {
|
329
330
|
"model-value": c(o),
|
330
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
331
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => K(o) ? o.value = s : null),
|
331
332
|
class: "mr-8",
|
332
333
|
label: "Search",
|
333
334
|
placeholder: "Search Terminals ..."
|
334
335
|
}, null, 8, ["model-value"]),
|
335
|
-
v(
|
336
|
+
v(h, {
|
336
337
|
modelValue: c(r),
|
337
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
338
|
+
"onUpdate:modelValue": t[1] || (t[1] = (s) => K(r) ? r.value = s : null),
|
338
339
|
class: "ml-6 w-[180px]",
|
339
340
|
label: "Device",
|
340
341
|
items: u
|
341
342
|
}, null, 8, ["modelValue"])
|
342
343
|
]),
|
343
|
-
|
344
|
+
k("div", ce, [
|
344
345
|
v(S, {
|
345
346
|
label: "Create",
|
346
347
|
icon: "add",
|
@@ -353,11 +354,11 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
353
354
|
ref: n,
|
354
355
|
"column-defs": b,
|
355
356
|
"rows-defs": F,
|
356
|
-
paginate: (
|
357
|
-
onRowClick: t[3] || (t[3] = (
|
357
|
+
paginate: (s, M) => c(I).read({ searchKey: c(o), deviceType: c(r), limit: s, cursor: M }),
|
358
|
+
onRowClick: t[3] || (t[3] = (s) => c(i).push({
|
358
359
|
name: "mf-payment-admin.terminal-setting",
|
359
360
|
params: {
|
360
|
-
terminalId:
|
361
|
+
terminalId: s._id
|
361
362
|
}
|
362
363
|
}))
|
363
364
|
}, null, 8, ["paginate"])
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as x, openBlock as I, createElementBlock as M, Fragment as $, createElementVNode as v, createTextVNode as T, toDisplayString as V, ref as g, onMounted as C, computed as D, resolveComponent as f, unref as b, createVNode as F, createBlock as w, withCtx as G, createCommentVNode as q, isRef as P, resolveDynamicComponent as R, normalizeProps as Y, mergeProps as K } from "vue";
|
2
|
-
import { u as _, e as U } from "./index-
|
2
|
+
import { u as _, e as U } from "./index-4meiCsRz.js";
|
3
3
|
import { useRouter as L } from "vue-router";
|
4
|
-
import { t as S } from "./index-
|
4
|
+
import { t as S } from "./index-CBa6eapm.js";
|
5
5
|
import { _ as j } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
|
-
import { u as E } from "./index-
|
6
|
+
import { u as E } from "./index-BwFHcZlm.js";
|
7
7
|
import { useSnackbar as A } from "@feedmepos/ui-library";
|
8
8
|
import { u as z } from "./error-K1CakhA9.js";
|
9
9
|
import { useCoreStore as N } from "@feedmepos/mf-common";
|