@feedmepos/mf-payment 0.0.0-beta.3 → 0.0.0-beta.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-BVljEwn3.js → PDFViewer-CjH_C1uT.js} +10851 -14329
- package/dist/PayoutAccount-0WC8znVs.js +3484 -0
- package/dist/{PayoutAccount-J3GJxUjj.js → PayoutAccount-DG7T6kD1.js} +99 -96
- package/dist/PayoutAccountSetting-CYEzOO_x.js +425 -0
- package/dist/{Settlement-C4IEccV6.js → Settlement-B7dxZllN.js} +3 -3
- package/dist/{Settlement-D4gdbOE0.js → Settlement-CcTtaP6I.js} +3 -3
- package/dist/{SettlementTransactions-DYelInkD.js → SettlementTransactions-CN80rfjl.js} +124 -128
- package/dist/{SettlementTransactions-C3dnWHkD.js → SettlementTransactions-DaPsFXU6.js} +4 -4
- package/dist/{Terminal-Co7KPrrb.js → Terminal-CMBB-Q32.js} +3 -3
- package/dist/{TerminalTransaction-CtVBUTMg.js → TerminalTransaction-MeyqLQ81.js} +4 -4
- package/dist/{Transaction-CvDEP2Uq.js → Transaction-BAQvj173.js} +4 -4
- package/dist/{Transaction-Rk0g5_Gn.js → Transaction-CATazx8y.js} +4 -4
- package/dist/api/payout/index.d.ts +2 -1
- package/dist/app.d.ts +3 -0
- package/dist/app.js +29 -23
- package/dist/{assets-CZ2m5tCN.js → assets-LSl507nH.js} +1 -1
- package/dist/components/PDFViewer.vue.d.ts +0 -2
- package/dist/error-K1CakhA9.js +6 -0
- package/dist/{index-B8_4waUa.js → index-B-3Vz_px.js} +1 -1
- package/dist/index-ONVv2EsB.js +40 -0
- package/dist/{index-DvzXwr90.js → index-RfsX2czs.js} +2 -3
- package/dist/{index-CjCiGW2Y.js → index-g9d8rwR_.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-y4tchjya.js → index.vue_vue_type_script_setup_true_lang-BB6McGpo.js} +1 -1
- package/dist/package.json +6 -6
- package/dist/{index-D-lMrCvM.js → payout-account-B1kRpd3u.js} +732 -763
- package/dist/plugins.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{transaction-fdJNol6A.js → transaction-CfEK62PY.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/PayoutAccountSetting.vue.d.ts +11 -1
- package/dist/views/admin/payout-account/cell/RateInput.vue.d.ts +8 -0
- package/dist/views/admin/payout-account/cell/TPlusInput.vue.d.ts +8 -0
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +81 -0
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +90 -0
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +81 -0
- package/package.json +18 -18
@@ -1,128 +1,130 @@
|
|
1
|
-
import { defineComponent as b, resolveComponent as
|
2
|
-
import { u as
|
3
|
-
import { _ as
|
4
|
-
import { _ as
|
5
|
-
import { P as
|
1
|
+
import { defineComponent as b, resolveComponent as m, openBlock as g, createBlock as h, normalizeClass as N, withCtx as f, createElementVNode as P, toDisplayString as C, createVNode as c, computed as x, ref as E, watch as F, unref as l, isRef as k, h as w } from "vue";
|
2
|
+
import { u as S } from "./index-B-3Vz_px.js";
|
3
|
+
import { _ as O } from "./index-RfsX2czs.js";
|
4
|
+
import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js";
|
5
|
+
import { P as V } from "./payout-account-B1kRpd3u.js";
|
6
|
+
import { p as $ } from "./index-ONVv2EsB.js";
|
6
7
|
import "@feedmepos/ui-library";
|
7
|
-
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-
|
8
|
-
|
8
|
+
import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-BB6McGpo.js";
|
9
|
+
import { useRouter as T } from "vue-router";
|
10
|
+
const G = /* @__PURE__ */ b({
|
9
11
|
__name: "Status",
|
10
12
|
props: {
|
11
13
|
row: {},
|
12
14
|
data: {}
|
13
15
|
},
|
14
|
-
setup(
|
15
|
-
const n =
|
16
|
-
function
|
16
|
+
setup(d) {
|
17
|
+
const n = d;
|
18
|
+
function t() {
|
17
19
|
return n.data === "NEW" ? "!w-[16px] !h-[16px] bg-yellow-400" : n.data === "PENDING" ? "!w-[16px] !h-[16px] bg-red-400" : "!w-[16px] !h-[16px] bg-green-400";
|
18
20
|
}
|
19
|
-
return (s,
|
20
|
-
const r =
|
21
|
-
return
|
21
|
+
return (s, u) => {
|
22
|
+
const r = m("FmBadge");
|
23
|
+
return g(), h(r, {
|
22
24
|
inline: "",
|
23
|
-
class:
|
25
|
+
class: N(t())
|
24
26
|
}, {
|
25
|
-
default:
|
26
|
-
|
27
|
+
default: f(() => [
|
28
|
+
P("div", null, C(s.data), 1)
|
27
29
|
]),
|
28
30
|
_: 1
|
29
31
|
}, 8, ["class"]);
|
30
32
|
};
|
31
33
|
}
|
32
|
-
}),
|
34
|
+
}), U = /* @__PURE__ */ b({
|
33
35
|
__name: "IsActive",
|
34
36
|
props: {
|
35
37
|
row: {},
|
36
38
|
data: {}
|
37
39
|
},
|
38
|
-
setup(
|
39
|
-
const n =
|
40
|
-
function
|
40
|
+
setup(d) {
|
41
|
+
const n = d;
|
42
|
+
function t() {
|
41
43
|
return n.data ? "#66BB6A" : "#EF5350";
|
42
44
|
}
|
43
45
|
function s() {
|
44
46
|
return n.data ? "check" : "close";
|
45
47
|
}
|
46
|
-
return (
|
47
|
-
const
|
48
|
-
return
|
48
|
+
return (u, r) => {
|
49
|
+
const p = m("FmIcon");
|
50
|
+
return g(), h(p, {
|
49
51
|
name: s(),
|
50
|
-
color:
|
52
|
+
color: t(),
|
51
53
|
size: "lg"
|
52
54
|
}, null, 8, ["name", "color"]);
|
53
55
|
};
|
54
56
|
}
|
55
|
-
}),
|
57
|
+
}), L = /* @__PURE__ */ b({
|
56
58
|
__name: "Bank",
|
57
59
|
props: {
|
58
60
|
row: {},
|
59
61
|
data: {}
|
60
62
|
},
|
61
|
-
setup(
|
62
|
-
function n(
|
63
|
-
return
|
63
|
+
setup(d) {
|
64
|
+
function n(t) {
|
65
|
+
return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
|
64
66
|
}
|
65
|
-
return (
|
66
|
-
const
|
67
|
-
return
|
68
|
-
label:
|
69
|
-
sublabel:
|
67
|
+
return (t, s) => {
|
68
|
+
const u = m("FmBadge"), r = m("FmListItem");
|
69
|
+
return g(), h(r, {
|
70
|
+
label: t.row.original.holderName,
|
71
|
+
sublabel: t.row.original.bankName + " - " + t.row.original.bankNumber,
|
70
72
|
clickable: !1,
|
71
73
|
tag: "label"
|
72
74
|
}, {
|
73
|
-
append:
|
74
|
-
c(
|
75
|
+
append: f(() => [
|
76
|
+
c(u, {
|
75
77
|
inline: "",
|
76
|
-
class:
|
78
|
+
class: N(n(t.row.original.bankReady))
|
77
79
|
}, null, 8, ["class"])
|
78
80
|
]),
|
79
81
|
_: 1
|
80
82
|
}, 8, ["label", "sublabel"]);
|
81
83
|
};
|
82
84
|
}
|
83
|
-
}),
|
85
|
+
}), W = /* @__PURE__ */ b({
|
84
86
|
__name: "PersonInCharge",
|
85
87
|
props: {
|
86
88
|
row: {},
|
87
89
|
data: {}
|
88
90
|
},
|
89
|
-
setup(
|
90
|
-
function n(
|
91
|
-
return
|
91
|
+
setup(d) {
|
92
|
+
function n(t) {
|
93
|
+
return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
|
92
94
|
}
|
93
|
-
return (
|
94
|
-
const
|
95
|
-
return
|
96
|
-
label:
|
97
|
-
sublabel:
|
95
|
+
return (t, s) => {
|
96
|
+
const u = m("FmBadge"), r = m("FmListItem");
|
97
|
+
return g(), h(r, {
|
98
|
+
label: t.row.original.picName,
|
99
|
+
sublabel: t.row.original.picEmail + " - " + t.row.original.picPhone,
|
98
100
|
clickable: !1,
|
99
101
|
tag: "label"
|
100
102
|
}, {
|
101
|
-
append:
|
102
|
-
c(
|
103
|
+
append: f(() => [
|
104
|
+
c(u, {
|
103
105
|
inline: "",
|
104
|
-
class:
|
106
|
+
class: N(n(t.row.original.picReady))
|
105
107
|
}, null, 8, ["class"])
|
106
108
|
]),
|
107
109
|
_: 1
|
108
110
|
}, 8, ["label", "sublabel"]);
|
109
111
|
};
|
110
112
|
}
|
111
|
-
}),
|
113
|
+
}), Q = { class: "flex items-start mb-6" }, ee = /* @__PURE__ */ b({
|
112
114
|
__name: "PayoutAccount",
|
113
|
-
setup(
|
114
|
-
const n =
|
115
|
+
setup(d) {
|
116
|
+
const n = x(() => V.storeEventOptions), t = x(() => V.statusOptions), s = E(), u = T(), { event: r, status: p, searchKey: i } = S({
|
115
117
|
searchKey: "",
|
116
|
-
event:
|
117
|
-
status:
|
118
|
+
event: O.F_PAYOUT_FOR.Enum.ORDERING,
|
119
|
+
status: t.value.map((e) => e.value)
|
118
120
|
});
|
119
|
-
|
121
|
+
F([r, p], () => {
|
120
122
|
var e;
|
121
123
|
return (e = s.value) == null ? void 0 : e.refreshQuery();
|
122
124
|
});
|
123
|
-
let
|
124
|
-
|
125
|
-
|
125
|
+
let v;
|
126
|
+
F(i, async () => {
|
127
|
+
v && clearTimeout(v), v = setTimeout(
|
126
128
|
() => {
|
127
129
|
var e;
|
128
130
|
return (e = s.value) == null ? void 0 : e.refreshQuery();
|
@@ -130,42 +132,42 @@ const T = /* @__PURE__ */ b({
|
|
130
132
|
700
|
131
133
|
);
|
132
134
|
});
|
133
|
-
const
|
134
|
-
const
|
135
|
+
const I = function(e) {
|
136
|
+
const a = {
|
135
137
|
bankReady: !1,
|
136
138
|
bankNumber: "",
|
137
139
|
bankName: "",
|
138
140
|
holderName: ""
|
139
141
|
};
|
140
|
-
e.store.bank && e.store.bank.accountNumber && Object.assign(
|
142
|
+
e.store.bank && e.store.bank.accountNumber && Object.assign(a, {
|
141
143
|
bankReady: !0,
|
142
144
|
bankNumber: e.store.bank.accountNumber,
|
143
145
|
bankName: e.store.bank.name,
|
144
146
|
holderName: e.store.bank.holderName
|
145
147
|
});
|
146
|
-
const
|
148
|
+
const _ = {
|
147
149
|
picReady: !1,
|
148
150
|
picName: "",
|
149
151
|
picPhone: "",
|
150
152
|
picEmail: ""
|
151
153
|
};
|
152
|
-
e.store.keyPerson && Object.assign(
|
154
|
+
e.store.keyPerson && Object.assign(_, {
|
153
155
|
picReady: !0,
|
154
156
|
picName: e.store.keyPerson.name,
|
155
157
|
picPhone: e.store.keyPerson.phone,
|
156
158
|
picEmail: e.store.keyPerson.email
|
157
159
|
});
|
158
|
-
let
|
159
|
-
return e.store.event === "ORDERING" && (
|
160
|
+
let y = e.ref.name;
|
161
|
+
return e.store.event === "ORDERING" && (y = e.ref.profile.name), {
|
160
162
|
_id: e._id,
|
161
163
|
event: e.store.event,
|
162
|
-
name:
|
164
|
+
name: y,
|
163
165
|
status: e.status,
|
164
166
|
isActive: e.enable,
|
165
|
-
...
|
166
|
-
...
|
167
|
+
...a,
|
168
|
+
..._
|
167
169
|
};
|
168
|
-
},
|
170
|
+
}, R = [
|
169
171
|
{
|
170
172
|
header: () => "Type",
|
171
173
|
accessorKey: "event",
|
@@ -180,7 +182,7 @@ const T = /* @__PURE__ */ b({
|
|
180
182
|
{
|
181
183
|
header: () => "Status",
|
182
184
|
accessorKey: "status",
|
183
|
-
cell: ({ cell: e, row:
|
185
|
+
cell: ({ cell: e, row: a }) => w(G, { row: a, data: e.getValue() }),
|
184
186
|
meta: {
|
185
187
|
maxWidth: "108px",
|
186
188
|
textAlign: "right"
|
@@ -192,54 +194,54 @@ const T = /* @__PURE__ */ b({
|
|
192
194
|
meta: {
|
193
195
|
maxWidth: "64px"
|
194
196
|
},
|
195
|
-
cell: ({ cell: e, row:
|
197
|
+
cell: ({ cell: e, row: a }) => w(U, { row: a, data: e.getValue() })
|
196
198
|
},
|
197
199
|
{
|
198
200
|
header: () => "Bank Details",
|
199
201
|
accessorKey: "bank",
|
200
|
-
cell: ({ cell: e, row:
|
202
|
+
cell: ({ cell: e, row: a }) => w(L, { row: a, data: e.getValue() })
|
201
203
|
},
|
202
204
|
{
|
203
205
|
header: () => "Person In-Charge (PIC)",
|
204
206
|
accessorKey: "pic",
|
205
|
-
cell: ({ cell: e, row:
|
207
|
+
cell: ({ cell: e, row: a }) => w(W, { row: a, data: e.getValue() })
|
206
208
|
}
|
207
209
|
];
|
208
|
-
return (e,
|
209
|
-
const
|
210
|
-
return
|
210
|
+
return (e, a) => {
|
211
|
+
const _ = m("FmSelect"), y = m("FmSearch"), B = m("FmFormGroup");
|
212
|
+
return g(), h(K, {
|
211
213
|
title: "Payout Accounts",
|
212
214
|
loading: !1
|
213
215
|
}, {
|
214
|
-
default:
|
215
|
-
|
216
|
-
c(
|
217
|
-
modelValue:
|
218
|
-
"onUpdate:modelValue":
|
216
|
+
default: f(() => [
|
217
|
+
P("div", Q, [
|
218
|
+
c(_, {
|
219
|
+
modelValue: l(r),
|
220
|
+
"onUpdate:modelValue": a[0] || (a[0] = (o) => k(r) ? r.value = o : null),
|
219
221
|
class: "mr-6 w-[128px]",
|
220
222
|
label: "Type",
|
221
223
|
"label-mark": "required",
|
222
224
|
items: n.value
|
223
225
|
}, null, 8, ["modelValue", "items"]),
|
224
|
-
c(
|
225
|
-
modelValue:
|
226
|
-
"onUpdate:modelValue":
|
226
|
+
c(_, {
|
227
|
+
modelValue: l(p),
|
228
|
+
"onUpdate:modelValue": a[1] || (a[1] = (o) => k(p) ? p.value = o : null),
|
227
229
|
class: "mr-6 w-[300px]",
|
228
230
|
label: "Status",
|
229
231
|
"label-mark": "required",
|
230
232
|
multiselect: "",
|
231
|
-
items:
|
233
|
+
items: t.value
|
232
234
|
}, null, 8, ["modelValue", "items"]),
|
233
235
|
c(B, {
|
234
236
|
class: "w-[300px]",
|
235
|
-
modelValue:
|
236
|
-
"onUpdate:modelValue":
|
237
|
+
modelValue: l(i),
|
238
|
+
"onUpdate:modelValue": a[3] || (a[3] = (o) => k(i) ? i.value = o : null),
|
237
239
|
label: "Search"
|
238
240
|
}, {
|
239
|
-
default:
|
240
|
-
c(
|
241
|
-
modelValue:
|
242
|
-
"onUpdate:modelValue":
|
241
|
+
default: f(() => [
|
242
|
+
c(y, {
|
243
|
+
modelValue: l(i),
|
244
|
+
"onUpdate:modelValue": a[2] || (a[2] = (o) => k(i) ? i.value = o : null),
|
243
245
|
placeholder: "Search accounts ..."
|
244
246
|
}, null, 8, ["modelValue"])
|
245
247
|
]),
|
@@ -249,11 +251,12 @@ const T = /* @__PURE__ */ b({
|
|
249
251
|
c(D, {
|
250
252
|
ref_key: "controller",
|
251
253
|
ref: s,
|
252
|
-
"column-defs":
|
253
|
-
"rows-defs":
|
254
|
-
paginate: (
|
255
|
-
onRowClick: () => {
|
256
|
-
|
254
|
+
"column-defs": R,
|
255
|
+
"rows-defs": I,
|
256
|
+
paginate: (o, A) => l($).read({ event: l(r), status: l(p), searchKey: l(i), limit: o, cursor: A }),
|
257
|
+
onRowClick: a[4] || (a[4] = (o) => l(u).push({
|
258
|
+
path: `/payment/admin/payout-accounts/${o._id}`
|
259
|
+
}))
|
257
260
|
}, null, 8, ["paginate"])
|
258
261
|
]),
|
259
262
|
_: 1
|
@@ -262,5 +265,5 @@ const T = /* @__PURE__ */ b({
|
|
262
265
|
}
|
263
266
|
});
|
264
267
|
export {
|
265
|
-
|
268
|
+
ee as default
|
266
269
|
};
|