@feedmepos/mf-inventory-portal 0.0.22-dev.36 → 0.0.22-dev.37
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/{ApprovalView-av_qng0N.js → ApprovalView-Dco0PkEf.js} +8 -8
- package/dist/{BindingsDialog-VZ6YelwP.js → BindingsDialog-DrCU_kIA.js} +9 -9
- package/dist/{BindingsPicker-BFYv2ftI.js → BindingsPicker-BMIIrlG6.js} +17 -17
- package/dist/{BindingsTable-DFowW8vT.js → BindingsTable-BHRmkL1P.js} +1 -1
- package/dist/{ClosingTemplateView-DNcgyBVw.js → ClosingTemplateView-kiej8Nah.js} +15 -15
- package/dist/FmDroppableField-Bl7A98it.js +152 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CAZ4P0Ax.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DQw4pBwH.js} +25 -25
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DqOb7e4M.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DBh79EM_.js} +20 -20
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-3OkJNtvH.js +51 -0
- package/dist/IngredientsView-m44wAwSR.js +1611 -0
- package/dist/{IntegrationView-DT5F9V0h.js → IntegrationView-B4gCx21K.js} +71 -71
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CXw4tAI_.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D1frNXtV.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C6a6F_jD.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dbs29jm_.js} +16 -16
- package/dist/{PurchaseOrderPrintPreview-BMCy5C1z.js → PurchaseOrderPrintPreview-lKu0y_xw.js} +7 -7
- package/dist/{ReceiveRequestView-DBU59iYm.js → ReceiveRequestView-DflWKxgq.js} +16 -13
- package/dist/{RecipeView-Brnk8Ar7.js → RecipeView-DfsXdlPn.js} +30 -29
- package/dist/StockView-BSeSpxkV.js +7762 -0
- package/dist/{SupplierView-C0GT_JzY.js → SupplierView-DPWh1si_.js} +11 -11
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BzJ8TnL_.js → TransferDetails.vue_vue_type_script_setup_true_lang-Dt1lRW3W.js} +99 -101
- package/dist/TransferTemplateView-DGOT4oZN.js +2054 -0
- package/dist/{UnitView-Dw2xLWy4.js → UnitView-X9bCqAWe.js} +16 -16
- package/dist/{WarehouseView-Cgf1mP8s.js → WarehouseView-BphA-Peq.js} +20 -20
- package/dist/api/bill.d.ts +84 -238
- package/dist/api/purchase-order-template.d.ts +4 -2
- package/dist/{app-Iz-opVBA.js → app-DZiCiBV7.js} +18167 -18189
- package/dist/app.js +2 -2
- package/dist/{decimal-ffsKJesh.js → decimal-Bx1Y3uW1.js} +1 -1
- package/dist/defineDeepModel-4XZbatJF.js +13 -0
- package/dist/format-time-from-id-CFJvgP70.js +15 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/purchase-order-transaction-type-Ds7YRAAp.js +348 -0
- package/dist/stores/inventory.d.ts +63 -0
- package/dist/stores/location.d.ts +89 -0
- package/dist/stores/supplier.d.ts +120 -3
- package/dist/stores/warehouse.d.ts +7 -4
- package/dist/supplier-BhJT8KOX.js +70 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-template-enabled-locations-2-BSLLHtkm.js → use-template-enabled-locations-2-BrEPVOpT.js} +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +2 -2
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +10 -6
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1850 -5
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -230
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
- package/dist/{xlsx-C8qXPxB4.js → xlsx-B9lpxKgq.js} +651 -651
- package/dist/xlsx.util-DP5wVnRT.js +78 -0
- package/package.json +3 -3
- package/dist/IngredientsView-afICUj_U.js +0 -1755
- package/dist/StockView-BtTZNhlp.js +0 -1909
- package/dist/TransferTemplateView-SrBMTzU-.js +0 -1237
- package/dist/defineDeepModel-CDrYKSnU.js +0 -13
- package/dist/format-time-from-id-e9QU46u4.js +0 -15
- package/dist/purchase-order-transaction-type-DN3Czz6K.js +0 -338
- package/dist/supplier-DdJIh1nj.js +0 -69
- package/dist/xlsx.util-DGLr1W_5.js +0 -109
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as W, mergeModels as xe, computed as b, useModel as ke, resolveComponent as P, openBlock as D, createElementBlock as B, createElementVNode as r, createVNode as m, withCtx as N, toDisplayString as T, unref as l, Fragment as Ce, renderList as Ie, ref as L, createBlock as z, createCommentVNode as Z, isRef as ve, watch as Me, onMounted as $e, normalizeClass as Ae, normalizeStyle as De, Teleport as Fe } from "vue";
|
|
2
|
-
import { u as ge } from "./supplier-
|
|
2
|
+
import { u as ge } from "./supplier-BhJT8KOX.js";
|
|
3
3
|
import { D as fe, R as J, F as A } from "./row-action.enum-PMKMRrZR.js";
|
|
4
4
|
import { c as Ue, _ as Re, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
5
|
-
import { c as ee, u as Ve,
|
|
5
|
+
import { c as ee, u as Ve, a3 as Pe, d as ye, g as Ne, y as Ee, C as X, h as Te, i as _e, R as U, b as he } from "./app-DZiCiBV7.js";
|
|
6
6
|
import { useI18n as q, useCoreStore as Be } from "@feedmepos/mf-common";
|
|
7
7
|
import { useDialog as Se, useSnackbar as we, useProxiedModel as be, useBreakpoints as Le } from "@feedmepos/ui-library";
|
|
8
|
-
import { u as ze, _ as qe, a as Ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as ze, _ as qe, a as Ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DBh79EM_.js";
|
|
9
9
|
import { _ as He } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
10
10
|
function Ke(R, C) {
|
|
11
11
|
const { t: h } = q();
|
|
@@ -63,7 +63,7 @@ function Ke(R, C) {
|
|
|
63
63
|
}
|
|
64
64
|
] };
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const Ge = { class: "flex flex-col gap-12" }, je = { class: "flex flex-col" }, Oe = { class: "flex items-center gap-8 py-8" }, Je = { class: "flex-1" }, Qe = { class: "fm-typo-en-title-sm-800" }, We = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xe = { class: "flex flex-col gap-4" }, Ze = { class: "flex-1" }, et = { class: "flex flex-col" }, tt = { class: "fm-typo-en-body-lg-400" }, lt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ot = { class: "flex-1" }, st = { class: "flex" }, nt = { class: "text-fm-color-typo-secondary" }, at = /* @__PURE__ */ W({
|
|
67
67
|
__name: "SupplierSupplyItemField",
|
|
68
68
|
props: /* @__PURE__ */ xe({
|
|
69
69
|
modelValue: {}
|
|
@@ -168,8 +168,8 @@ const je = { class: "flex flex-col gap-12" }, Ge = { class: "flex flex-col" }, O
|
|
|
168
168
|
}
|
|
169
169
|
return (n, S) => {
|
|
170
170
|
const k = P("FmButton");
|
|
171
|
-
return D(), B("div",
|
|
172
|
-
r("div",
|
|
171
|
+
return D(), B("div", Ge, [
|
|
172
|
+
r("div", je, [
|
|
173
173
|
r("div", Oe, [
|
|
174
174
|
r("div", Je, [
|
|
175
175
|
m(He, { "z-index": 50 }, {
|
|
@@ -249,7 +249,7 @@ const je = { class: "flex flex-col gap-12" }, Ge = { class: "flex flex-col" }, O
|
|
|
249
249
|
},
|
|
250
250
|
emits: ["update:modelValue", "validation-success"],
|
|
251
251
|
setup(R, { expose: C, emit: h }) {
|
|
252
|
-
const s = R, v = h, f =
|
|
252
|
+
const s = R, v = h, f = he(), a = Ve(), u = b(() => Te(a.skus, "_id")), { t: y } = q(), $ = _e(), E = b(() => $.businessLevel), g = b({
|
|
253
253
|
get() {
|
|
254
254
|
var t;
|
|
255
255
|
return ((t = s.modelValue) == null ? void 0 : t.name) ?? "";
|
|
@@ -649,7 +649,7 @@ const je = { class: "flex flex-col gap-12" }, Ge = { class: "flex flex-col" }, O
|
|
|
649
649
|
}, kt = "You are managing business-level supplier list. These suppliers will be made visible to all locations.", Pt = /* @__PURE__ */ W({
|
|
650
650
|
__name: "SupplierView",
|
|
651
651
|
setup(R) {
|
|
652
|
-
const C = ge(), h =
|
|
652
|
+
const C = ge(), h = _e(), s = he(), v = L(!1), f = Se(), a = we(), { t: u } = q();
|
|
653
653
|
h.watchLocation($);
|
|
654
654
|
const y = b(() => h.businessLevel);
|
|
655
655
|
Me(y, $), $e(() => {
|
|
@@ -771,7 +771,7 @@ const je = { class: "flex flex-col gap-12" }, Ge = { class: "flex flex-col" }, O
|
|
|
771
771
|
onRowClick: n
|
|
772
772
|
}, {
|
|
773
773
|
default: N((w) => {
|
|
774
|
-
var Y, H, p, K, te, le, oe, se,
|
|
774
|
+
var Y, H, p, K, te, le, oe, se, G, ne, ae, re, ue, j, ie, de, pe, ce, O, me;
|
|
775
775
|
return [
|
|
776
776
|
r("div", _t, [
|
|
777
777
|
r("div", ht, [
|
|
@@ -783,13 +783,13 @@ const je = { class: "flex flex-col gap-12" }, Ge = { class: "flex flex-col" }, O
|
|
|
783
783
|
r("div", St, [
|
|
784
784
|
m(l(Q), {
|
|
785
785
|
render: (se = (oe = (le = w.contactName) == null ? void 0 : le.column) == null ? void 0 : oe.columnDef) == null ? void 0 : se.cell,
|
|
786
|
-
props: (ne = (
|
|
786
|
+
props: (ne = (G = w.contactName) == null ? void 0 : G.getContext) == null ? void 0 : ne.call(G)
|
|
787
787
|
}, null, 8, ["render", "props"])
|
|
788
788
|
]),
|
|
789
789
|
r("div", wt, [
|
|
790
790
|
m(l(Q), {
|
|
791
791
|
render: (ue = (re = (ae = w.phoneNumber) == null ? void 0 : ae.column) == null ? void 0 : re.columnDef) == null ? void 0 : ue.cell,
|
|
792
|
-
props: (ie = (
|
|
792
|
+
props: (ie = (j = w.phoneNumber) == null ? void 0 : j.getContext) == null ? void 0 : ie.call(j)
|
|
793
793
|
}, null, 8, ["render", "props"])
|
|
794
794
|
]),
|
|
795
795
|
M.original.email ? (D(), B("div", xt, [
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ref as U, computed as Y, h as ce, defineComponent as Ue, resolveComponent as X, openBlock as v, createBlock as V, unref as l, isRef as Le, withCtx as ie, createElementVNode as e, createVNode as z, createElementBlock as
|
|
2
|
-
import { i as je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import {
|
|
4
|
-
import { F as ke, D as
|
|
5
|
-
import { useDialog as
|
|
6
|
-
import { p as We, f as pe } from "./format-time-from-id-
|
|
7
|
-
import { b as Je, u as Xe, f as $e, P as me } from "./purchase-order-transaction-type-
|
|
8
|
-
import { c as
|
|
9
|
-
import { F as Ze } from "./decimal-
|
|
1
|
+
import { ref as U, computed as Y, h as ce, defineComponent as Ue, resolveComponent as X, openBlock as v, createBlock as V, unref as l, isRef as Le, withCtx as ie, createElementVNode as e, createVNode as z, createElementBlock as x, Fragment as ee, toDisplayString as y, normalizeClass as ue, createCommentVNode as P, renderList as de } from "vue";
|
|
2
|
+
import { i as je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DBh79EM_.js";
|
|
3
|
+
import { n as Be, i as fe, ap as w, O as Ke, P as Ve, aq as Ge, c as xe, ab as I, w as qe, b as Pe, B as Ce, l as be, a as le, ar as Ne, N as He, G as ze, ad as Ye, Y as De } from "./app-DZiCiBV7.js";
|
|
4
|
+
import { F as ke, D as C, R as q } from "./row-action.enum-PMKMRrZR.js";
|
|
5
|
+
import { useDialog as Te, useSnackbar as Ee, useProxiedModel as Qe } from "@feedmepos/ui-library";
|
|
6
|
+
import { p as We, f as pe } from "./format-time-from-id-CFJvgP70.js";
|
|
7
|
+
import { b as Je, u as Xe, f as $e, P as me } from "./purchase-order-transaction-type-Ds7YRAAp.js";
|
|
8
|
+
import { c as Ae } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
9
|
+
import { F as Ze } from "./decimal-Bx1Y3uW1.js";
|
|
10
10
|
import { useI18n as Fe } from "@feedmepos/mf-common";
|
|
11
11
|
import { E as et } from "./empty-placeholder-wf6-BWE8.js";
|
|
12
12
|
const Ie = Be((u, _) => {
|
|
@@ -20,16 +20,16 @@ const Ie = Be((u, _) => {
|
|
|
20
20
|
start: r,
|
|
21
21
|
end: R
|
|
22
22
|
}) {
|
|
23
|
-
const O = p.currentLocationDBName,
|
|
24
|
-
return await _.get(`${
|
|
23
|
+
const O = p.currentLocationDBName, N = `${u.inventoryBackendUrl}/${O}/purchase-order`;
|
|
24
|
+
return await _.get(`${N}?start=${r}&end=${R}`);
|
|
25
25
|
},
|
|
26
26
|
async getPurchaseOrderById(r) {
|
|
27
27
|
const R = p.currentLocationDBName, O = `${u.inventoryBackendUrl}/${R}/purchase-order`;
|
|
28
28
|
return await _.get(`${O}/${r}`);
|
|
29
29
|
},
|
|
30
30
|
async processPurchaseOrder(r, R) {
|
|
31
|
-
const O = p.currentLocationDBName,
|
|
32
|
-
return await _.put(
|
|
31
|
+
const O = p.currentLocationDBName, N = R || O, T = `${u.inventoryBackendUrl}/${N}/purchase-order/run-operation`;
|
|
32
|
+
return await _.put(T, r);
|
|
33
33
|
},
|
|
34
34
|
async createPurchaseOrder(r) {
|
|
35
35
|
const R = p.currentLocationDBName, O = `${u.inventoryBackendUrl}/${R}/purchase-order`;
|
|
@@ -99,7 +99,7 @@ const Ie = Be((u, _) => {
|
|
|
99
99
|
}
|
|
100
100
|
}, oe = U();
|
|
101
101
|
function Rr(u, _) {
|
|
102
|
-
const p =
|
|
102
|
+
const p = Te(), r = fe(), R = Pe(), O = Je(), N = Xe(), T = U(!1), i = Ee(), M = Ie(), c = U(new Array()), d = U(
|
|
103
103
|
_ != null && _.startDate && (_ != null && _.endDate) ? _ : je()
|
|
104
104
|
), m = Y(() => {
|
|
105
105
|
const t = new Date(d.value.startDate), n = new Date(d.value.endDate);
|
|
@@ -110,9 +110,7 @@ function Rr(u, _) {
|
|
|
110
110
|
}), f = U(new Array()), L = Ge(), G = U(null);
|
|
111
111
|
async function re(t) {
|
|
112
112
|
let n;
|
|
113
|
-
if (R.mustUsePoTemplate && !(t != null && t.template) && (n = await O.getTemplateId(
|
|
114
|
-
C.templates.value
|
|
115
|
-
), !n))
|
|
113
|
+
if (R.mustUsePoTemplate && !(t != null && t.template) && (n = await O.getTemplateId(), !n))
|
|
116
114
|
return;
|
|
117
115
|
const h = {
|
|
118
116
|
mode: ke.CREATE,
|
|
@@ -129,7 +127,7 @@ function Rr(u, _) {
|
|
|
129
127
|
function ve(t) {
|
|
130
128
|
const n = {
|
|
131
129
|
mode: ke.UPDATE,
|
|
132
|
-
modelValue:
|
|
130
|
+
modelValue: xe(t),
|
|
133
131
|
show: !0,
|
|
134
132
|
"onUpdate:show"(h) {
|
|
135
133
|
oe.value.show = h;
|
|
@@ -139,11 +137,11 @@ function Rr(u, _) {
|
|
|
139
137
|
oe.value = n;
|
|
140
138
|
}
|
|
141
139
|
async function B() {
|
|
142
|
-
c.value = [],
|
|
140
|
+
c.value = [], T.value = !0;
|
|
143
141
|
try {
|
|
144
142
|
c.value = await M.getPurchaseOrders(m.value).then((h) => h.sort((g, o) => o._id.localeCompare(g._id)));
|
|
145
143
|
const t = await L.readLastClosing(!0), n = t == null ? void 0 : t._id;
|
|
146
|
-
n && (G.value = We(n)), R.mustUsePoTemplate && await
|
|
144
|
+
n && (G.value = We(n)), R.mustUsePoTemplate && await N.fetchTemplates();
|
|
147
145
|
} catch {
|
|
148
146
|
i.open({
|
|
149
147
|
title: "Something went wrong",
|
|
@@ -151,11 +149,11 @@ function Rr(u, _) {
|
|
|
151
149
|
type: "error"
|
|
152
150
|
});
|
|
153
151
|
} finally {
|
|
154
|
-
|
|
152
|
+
T.value = !1;
|
|
155
153
|
}
|
|
156
154
|
}
|
|
157
155
|
async function ye() {
|
|
158
|
-
f.value = [],
|
|
156
|
+
f.value = [], T.value = !0;
|
|
159
157
|
try {
|
|
160
158
|
f.value = await M.readRequests().then((t) => t.reverse());
|
|
161
159
|
} catch {
|
|
@@ -165,7 +163,7 @@ function Rr(u, _) {
|
|
|
165
163
|
type: "error"
|
|
166
164
|
});
|
|
167
165
|
} finally {
|
|
168
|
-
|
|
166
|
+
T.value = !1;
|
|
169
167
|
}
|
|
170
168
|
}
|
|
171
169
|
function Z() {
|
|
@@ -218,7 +216,7 @@ function Rr(u, _) {
|
|
|
218
216
|
}
|
|
219
217
|
}
|
|
220
218
|
async function a(t, n, h, g) {
|
|
221
|
-
|
|
219
|
+
T.value = !0;
|
|
222
220
|
try {
|
|
223
221
|
await M.processPurchaseOrder(
|
|
224
222
|
{
|
|
@@ -251,10 +249,10 @@ function Rr(u, _) {
|
|
|
251
249
|
type: "error"
|
|
252
250
|
}), console.error("Error when submitting PO operation", n, t, o);
|
|
253
251
|
} finally {
|
|
254
|
-
|
|
252
|
+
T.value = !1, Z();
|
|
255
253
|
}
|
|
256
254
|
}
|
|
257
|
-
async function
|
|
255
|
+
async function A(t, n, h) {
|
|
258
256
|
const g = Me[n];
|
|
259
257
|
if (!g) {
|
|
260
258
|
i.open({
|
|
@@ -278,19 +276,19 @@ function Rr(u, _) {
|
|
|
278
276
|
purchaseRequests: f,
|
|
279
277
|
updateDateRange: he,
|
|
280
278
|
fetchData: Z,
|
|
281
|
-
loading:
|
|
279
|
+
loading: T,
|
|
282
280
|
transferDialogProps: oe,
|
|
283
281
|
promptCreateTransferDialog: re,
|
|
284
282
|
promptUpdateTransferDialog: ve,
|
|
285
283
|
transferDetailsProps: H,
|
|
286
284
|
promptShowTransferDetails: s,
|
|
287
|
-
submitAction:
|
|
285
|
+
submitAction: A
|
|
288
286
|
};
|
|
289
287
|
}
|
|
290
288
|
function tt(u, _) {
|
|
291
289
|
return _.reduce(
|
|
292
290
|
(r, R) => {
|
|
293
|
-
const O = R.received.find((
|
|
291
|
+
const O = R.received.find((N) => N.sku._id === u._id);
|
|
294
292
|
return O && (r = Ce(r, O.amount)), r;
|
|
295
293
|
},
|
|
296
294
|
Ze.toPrecision(be(0), u.unit.precision)
|
|
@@ -306,7 +304,7 @@ function rt(u, _) {
|
|
|
306
304
|
city: r == null ? void 0 : r.city,
|
|
307
305
|
state: r == null ? void 0 : r.state,
|
|
308
306
|
country: r == null ? void 0 : r.country
|
|
309
|
-
},
|
|
307
|
+
}, N = {
|
|
310
308
|
name: u.supplier.name,
|
|
311
309
|
registrationNumber: u.supplier.registrationNumber,
|
|
312
310
|
line1: u.supplier.address.line1,
|
|
@@ -315,7 +313,7 @@ function rt(u, _) {
|
|
|
315
313
|
city: u.supplier.address.city,
|
|
316
314
|
state: u.supplier.address.state,
|
|
317
315
|
country: u.supplier.address.country
|
|
318
|
-
},
|
|
316
|
+
}, T = u.items.map((d) => {
|
|
319
317
|
const { sku: m, measurement: f } = d, L = le(
|
|
320
318
|
tt(d.sku, u.deliveryOrder || []),
|
|
321
319
|
!1
|
|
@@ -328,7 +326,7 @@ function rt(u, _) {
|
|
|
328
326
|
received: L
|
|
329
327
|
};
|
|
330
328
|
}), i = u.deliveryOrder.map((d) => ({
|
|
331
|
-
createdAt:
|
|
329
|
+
createdAt: Ne(new Date(d.createdAt)),
|
|
332
330
|
ref: d.deliveryOrderNumber,
|
|
333
331
|
remark: d.remark || "",
|
|
334
332
|
items: d.received.map((m) => {
|
|
@@ -346,8 +344,8 @@ function rt(u, _) {
|
|
|
346
344
|
ref: u.ref || "",
|
|
347
345
|
remark: u.remark || "",
|
|
348
346
|
buyer: O,
|
|
349
|
-
supplier:
|
|
350
|
-
items:
|
|
347
|
+
supplier: N,
|
|
348
|
+
items: T,
|
|
351
349
|
status: u.status,
|
|
352
350
|
deliveryOrders: i
|
|
353
351
|
}, c = new URL(window.location.href);
|
|
@@ -403,47 +401,47 @@ function Or(u, _) {
|
|
|
403
401
|
return [
|
|
404
402
|
c.supplier.internal === "restaurant" || c.supplier.internal === "warehouse" ? te[w.enum.submitRequest] : te[w.enum.confirmDraft],
|
|
405
403
|
te[w.enum.cancelDraft],
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
404
|
+
C[q.Update],
|
|
405
|
+
C[q.Details],
|
|
406
|
+
C[q.Print]
|
|
409
407
|
];
|
|
410
408
|
case "RECEIVING":
|
|
411
409
|
return [
|
|
412
410
|
te[w.enum.completeReceive],
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
411
|
+
C[q.Update],
|
|
412
|
+
C[q.Details],
|
|
413
|
+
C[q.Print]
|
|
416
414
|
];
|
|
417
415
|
case "REQUESTING":
|
|
418
416
|
return u === "receive/request" ? [
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
417
|
+
C[q.Update],
|
|
418
|
+
C[q.Details],
|
|
419
|
+
C[q.Print]
|
|
422
420
|
] : [
|
|
423
421
|
te[w.enum.approveRequest],
|
|
424
422
|
te[w.enum.rejectRequest],
|
|
425
|
-
|
|
426
|
-
|
|
423
|
+
C[q.Details],
|
|
424
|
+
C[q.Print]
|
|
427
425
|
];
|
|
428
426
|
case "PROCESSING":
|
|
429
|
-
return [
|
|
427
|
+
return [C[q.Details], C[q.Print]];
|
|
430
428
|
case "COMPLETE":
|
|
431
429
|
return [
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
430
|
+
C[q.Update],
|
|
431
|
+
C[q.Details],
|
|
432
|
+
C[q.Print]
|
|
435
433
|
];
|
|
436
434
|
case "CANCEL":
|
|
437
435
|
default:
|
|
438
|
-
return [
|
|
436
|
+
return [C[q.Details], C[q.Print]];
|
|
439
437
|
}
|
|
440
438
|
}
|
|
441
439
|
function O(c) {
|
|
442
440
|
return Object.values(w.enum).includes(c);
|
|
443
441
|
}
|
|
444
|
-
async function
|
|
442
|
+
async function N(c, d, m) {
|
|
445
443
|
var L, G;
|
|
446
|
-
const f =
|
|
444
|
+
const f = xe(d);
|
|
447
445
|
if (c === q.Print) {
|
|
448
446
|
rt(f, p.currentLocation);
|
|
449
447
|
return;
|
|
@@ -461,7 +459,7 @@ function Or(u, _) {
|
|
|
461
459
|
return;
|
|
462
460
|
}
|
|
463
461
|
}
|
|
464
|
-
function
|
|
462
|
+
function T() {
|
|
465
463
|
return [
|
|
466
464
|
{
|
|
467
465
|
accessorKey: "seqNumber",
|
|
@@ -524,7 +522,7 @@ function Or(u, _) {
|
|
|
524
522
|
id: "action",
|
|
525
523
|
cell(c) {
|
|
526
524
|
const d = c.row.original, m = R(d);
|
|
527
|
-
return
|
|
525
|
+
return Ae(m, (f) => N(f, d));
|
|
528
526
|
},
|
|
529
527
|
enableSorting: !1,
|
|
530
528
|
size: 40,
|
|
@@ -594,9 +592,9 @@ function Or(u, _) {
|
|
|
594
592
|
id: "action",
|
|
595
593
|
cell(c) {
|
|
596
594
|
const d = c.row.original, m = d.purchaseOrder ? R(d.purchaseOrder) : [];
|
|
597
|
-
return
|
|
595
|
+
return Ae(
|
|
598
596
|
m,
|
|
599
|
-
(f) => d.purchaseOrder ?
|
|
597
|
+
(f) => d.purchaseOrder ? N(f, d.purchaseOrder, d) : void 0
|
|
600
598
|
);
|
|
601
599
|
},
|
|
602
600
|
enableSorting: !1,
|
|
@@ -608,7 +606,7 @@ function Or(u, _) {
|
|
|
608
606
|
}
|
|
609
607
|
];
|
|
610
608
|
}
|
|
611
|
-
const M = Y(() => u === "receive/request" ?
|
|
609
|
+
const M = Y(() => u === "receive/request" ? T() : i());
|
|
612
610
|
return {
|
|
613
611
|
get columnDefs() {
|
|
614
612
|
return M.value;
|
|
@@ -630,16 +628,16 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
630
628
|
}, St = { class: "fm-typo-en-body-lg-600" }, Dt = {
|
|
631
629
|
key: 4,
|
|
632
630
|
class: "flex flex-col gap-4"
|
|
633
|
-
}, kt = { class: "fm-typo-en-body-lg-600" },
|
|
631
|
+
}, kt = { class: "fm-typo-en-body-lg-600" }, At = {
|
|
634
632
|
key: 5,
|
|
635
633
|
class: "flex flex-col gap-4"
|
|
636
|
-
},
|
|
634
|
+
}, xt = { class: "fm-typo-en-body-lg-600" }, qt = {
|
|
637
635
|
key: 6,
|
|
638
636
|
class: "flex flex-col gap-4"
|
|
639
|
-
}, Pt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ct = { class: "fm-typo-en-body-lg-600" },
|
|
637
|
+
}, Pt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ct = { class: "fm-typo-en-body-lg-600" }, Nt = {
|
|
640
638
|
key: 7,
|
|
641
639
|
class: "flex flex-col gap-4"
|
|
642
|
-
},
|
|
640
|
+
}, Tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Et = { class: "fm-typo-en-body-lg-600" }, $t = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Ft = { class: "flex flex-col gap-8" }, It = { class: "fm-typo-en-body-lg-600" }, Mt = { class: "flex w-full gap-4" }, Ut = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Lt = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, jt = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, Bt = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, Kt = {
|
|
643
641
|
key: 0,
|
|
644
642
|
class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
645
643
|
}, Vt = {
|
|
@@ -676,10 +674,10 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
676
674
|
},
|
|
677
675
|
emits: ["update:show", "submitted"],
|
|
678
676
|
setup(u, { emit: _ }) {
|
|
679
|
-
const p = u, r = _, R =
|
|
677
|
+
const p = u, r = _, R = Te(), O = Ee(), N = Ye(), T = Pe(), { t: i } = Fe(), M = Y(
|
|
680
678
|
() => {
|
|
681
|
-
var s, a,
|
|
682
|
-
return ((a = (s = p.purchaseOrder) == null ? void 0 : s.supplier) == null ? void 0 : a.internal) === "restaurant" || ((t = (
|
|
679
|
+
var s, a, A, t;
|
|
680
|
+
return ((a = (s = p.purchaseOrder) == null ? void 0 : s.supplier) == null ? void 0 : a.internal) === "restaurant" || ((t = (A = p.purchaseOrder) == null ? void 0 : A.supplier) == null ? void 0 : t.internal) === "warehouse" ? me.TRANSFER : me.PURCHASE;
|
|
683
681
|
}
|
|
684
682
|
), c = [
|
|
685
683
|
{
|
|
@@ -691,7 +689,7 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
691
689
|
value: "deliveryHistory"
|
|
692
690
|
}
|
|
693
691
|
], d = U(c[0]), m = U(!1), f = U(""), L = U(!0), G = Ie(), re = Qe(p, "show");
|
|
694
|
-
async function ve(s, a,
|
|
692
|
+
async function ve(s, a, A) {
|
|
695
693
|
f.value = a, m.value = !0, L.value = !1;
|
|
696
694
|
try {
|
|
697
695
|
await G.processPurchaseOrder(
|
|
@@ -701,7 +699,7 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
701
699
|
options: (
|
|
702
700
|
// auto receive for supplier to warehouse
|
|
703
701
|
(a === w.enum.confirmDraft || // auto receive for warehouse to warehouse
|
|
704
|
-
a === w.enum.completeReceive) &&
|
|
702
|
+
a === w.enum.completeReceive) && T.autoReceiveWarehouse ? {
|
|
705
703
|
autoReceive: !0
|
|
706
704
|
} : void 0
|
|
707
705
|
)
|
|
@@ -709,7 +707,7 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
709
707
|
p.transferToDbName
|
|
710
708
|
), await new Promise((t) => setTimeout(t, 1e3)), O.open({
|
|
711
709
|
title: "Success",
|
|
712
|
-
message:
|
|
710
|
+
message: A,
|
|
713
711
|
type: "success"
|
|
714
712
|
}), r("update:show", !1), r("submitted");
|
|
715
713
|
} catch (t) {
|
|
@@ -732,13 +730,13 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
732
730
|
});
|
|
733
731
|
return;
|
|
734
732
|
}
|
|
735
|
-
const { successMessage:
|
|
733
|
+
const { successMessage: A, ...t } = a;
|
|
736
734
|
R.open({
|
|
737
735
|
title: t.title,
|
|
738
736
|
message: t.message,
|
|
739
737
|
primaryActions: t.primaryActions
|
|
740
738
|
}).onPrimary(() => {
|
|
741
|
-
p.purchaseOrder && ve(p.purchaseOrder, s,
|
|
739
|
+
p.purchaseOrder && ve(p.purchaseOrder, s, A);
|
|
742
740
|
});
|
|
743
741
|
}
|
|
744
742
|
const ye = Y(() => {
|
|
@@ -746,26 +744,26 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
746
744
|
return ((s = p.purchaseOrder) == null ? void 0 : s.status) === I.enum.RECEIVING || ((a = p.purchaseOrder) == null ? void 0 : a.status) === I.enum.COMPLETE;
|
|
747
745
|
}), Z = Y(
|
|
748
746
|
() => {
|
|
749
|
-
var s, a,
|
|
750
|
-
return
|
|
751
|
-
((
|
|
747
|
+
var s, a, A, t, n, h;
|
|
748
|
+
return N.getLocationSubsidiary(
|
|
749
|
+
((A = (a = (s = p.purchaseOrder) == null ? void 0 : s.netSuite) == null ? void 0 : a.subsidiary) == null ? void 0 : A.id) || ((h = (n = (t = p.poRequest) == null ? void 0 : t.netSuite) == null ? void 0 : n.subsidiary) == null ? void 0 : h.id)
|
|
752
750
|
).fullName;
|
|
753
751
|
}
|
|
754
752
|
), he = Y(() => {
|
|
755
|
-
var s, a,
|
|
756
|
-
return (a = (s = p.purchaseOrder) == null ? void 0 : s.deliveryFullfillment) != null && a.length && ((t = (
|
|
753
|
+
var s, a, A, t, n, h;
|
|
754
|
+
return (a = (s = p.purchaseOrder) == null ? void 0 : s.deliveryFullfillment) != null && a.length && ((t = (A = p.purchaseOrder) == null ? void 0 : A.deliveryFullfillment) == null ? void 0 : t.length) > 0 ? (h = (n = p.purchaseOrder) == null ? void 0 : n.deliveryFullfillment) == null ? void 0 : h.map((g) => {
|
|
757
755
|
var o;
|
|
758
756
|
return (o = g.netSuite) == null ? void 0 : o.refNo;
|
|
759
757
|
}).join(", ") : "-";
|
|
760
758
|
}), H = Y(() => {
|
|
761
759
|
var h, g, o;
|
|
762
|
-
const
|
|
760
|
+
const A = (((h = p.purchaseOrder) == null ? void 0 : h.deliveryOrder) ?? []).flatMap((b) => b.received ?? []).reduce(
|
|
763
761
|
(b, S) => {
|
|
764
762
|
const k = b[S.sku._id] ?? [];
|
|
765
763
|
return b[S.sku._id] = [...k, S], b;
|
|
766
764
|
},
|
|
767
765
|
{}
|
|
768
|
-
), t = Object.entries(
|
|
766
|
+
), t = Object.entries(A).reduce(
|
|
769
767
|
(b, [S, k]) => {
|
|
770
768
|
const $ = k.reduce((D, E) => {
|
|
771
769
|
const F = He(
|
|
@@ -783,7 +781,7 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
783
781
|
return t;
|
|
784
782
|
}), K = Y(() => {
|
|
785
783
|
var h, g;
|
|
786
|
-
const s = ((h = p.purchaseOrder) == null ? void 0 : h.deliveryOrder) ?? [], a = ((g = p.purchaseOrder) == null ? void 0 : g.deliveryFullfillment) ?? [],
|
|
784
|
+
const s = ((h = p.purchaseOrder) == null ? void 0 : h.deliveryOrder) ?? [], a = ((g = p.purchaseOrder) == null ? void 0 : g.deliveryFullfillment) ?? [], A = [
|
|
787
785
|
...s.map((o) => ({
|
|
788
786
|
createdAt: o.createdAt,
|
|
789
787
|
type: "grn",
|
|
@@ -795,7 +793,7 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
795
793
|
doc: o
|
|
796
794
|
}))
|
|
797
795
|
];
|
|
798
|
-
|
|
796
|
+
A.reverse().sort((o, b) => o.createdAt.localeCompare(b.createdAt));
|
|
799
797
|
function t(o) {
|
|
800
798
|
var S;
|
|
801
799
|
const b = a.findIndex((k) => k.id === o.fullfillmentId);
|
|
@@ -849,7 +847,7 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
849
847
|
]
|
|
850
848
|
};
|
|
851
849
|
}
|
|
852
|
-
return
|
|
850
|
+
return A.map((o) => {
|
|
853
851
|
switch (o.type) {
|
|
854
852
|
case "grn":
|
|
855
853
|
return t(o.doc);
|
|
@@ -860,7 +858,7 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
860
858
|
});
|
|
861
859
|
return (s, a) => {
|
|
862
860
|
var S, k;
|
|
863
|
-
const
|
|
861
|
+
const A = X("FmButtonGroup"), t = X("FmChip"), n = X("FmMenuDivider"), h = X("FmCard"), g = X("FmSpacer"), o = X("FmButton"), b = X("FmSideSheet");
|
|
864
862
|
return v(), V(b, {
|
|
865
863
|
header: l(i)("inventory.transfer.receiveRequest.details.title") + ((S = s.purchaseOrder) != null && S.seqNumber ? ` #${(k = s.purchaseOrder) == null ? void 0 : k.seqNumber}` : ""),
|
|
866
864
|
modelValue: l(re),
|
|
@@ -874,13 +872,13 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
874
872
|
return [
|
|
875
873
|
e("div", st, [
|
|
876
874
|
e("div", null, [
|
|
877
|
-
z(
|
|
875
|
+
z(A, {
|
|
878
876
|
items: c,
|
|
879
877
|
modelValue: d.value,
|
|
880
878
|
"onUpdate:modelValue": a[0] || (a[0] = (D) => d.value = D)
|
|
881
879
|
}, null, 8, ["modelValue"])
|
|
882
880
|
]),
|
|
883
|
-
d.value.value === "overview" ? (v(),
|
|
881
|
+
d.value.value === "overview" ? (v(), x(ee, { key: 0 }, [
|
|
884
882
|
e("div", null, [
|
|
885
883
|
z(h, {
|
|
886
884
|
variant: "outlined",
|
|
@@ -907,9 +905,9 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
907
905
|
]),
|
|
908
906
|
e("div", ut, y(l(pe)(((Q = s.purchaseOrder) == null ? void 0 : Q._id) ?? "")), 1)
|
|
909
907
|
]),
|
|
910
|
-
(W = s.purchaseOrder) != null && W.effectiveAt ? (v(),
|
|
908
|
+
(W = s.purchaseOrder) != null && W.effectiveAt ? (v(), x("div", dt, [
|
|
911
909
|
e("div", mt, y(l(i)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
|
|
912
|
-
e("div", ft, y(l(
|
|
910
|
+
e("div", ft, y(l(Ne)(new Date((J = s.purchaseOrder) == null ? void 0 : J.effectiveAt))), 1)
|
|
913
911
|
])) : P("", !0),
|
|
914
912
|
e("div", pt, [
|
|
915
913
|
e("div", vt, y(l(i)("inventory.transfer.receiveRequest.details.type.title")), 1),
|
|
@@ -917,32 +915,32 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
917
915
|
`inventory.transfer.receiveRequest.details.type.${M.value.toLocaleLowerCase("en-US")}`
|
|
918
916
|
)), 1)
|
|
919
917
|
]),
|
|
920
|
-
(ae = (se = s.purchaseOrder) == null ? void 0 : se.supplier) != null && ae.name ? (v(),
|
|
918
|
+
(ae = (se = s.purchaseOrder) == null ? void 0 : se.supplier) != null && ae.name ? (v(), x("div", ht, [
|
|
921
919
|
e("div", bt, y(l(i)("inventory.transfer.receiveRequest.details.from")), 1),
|
|
922
920
|
e("div", gt, y((j = (ne = s.purchaseOrder) == null ? void 0 : ne.supplier) == null ? void 0 : j.name), 1)
|
|
923
921
|
])) : P("", !0),
|
|
924
|
-
s.transferTo ? (v(),
|
|
922
|
+
s.transferTo ? (v(), x("div", _t, [
|
|
925
923
|
e("div", wt, y(l(i)("inventory.transfer.receiveRequest.details.to")), 1),
|
|
926
924
|
e("div", Rt, y(s.transferTo), 1)
|
|
927
925
|
])) : P("", !0),
|
|
928
|
-
l(
|
|
926
|
+
l(N).isEnabled ? (v(), x("div", Ot, [
|
|
929
927
|
a[10] || (a[10] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Subsidiary ", -1)),
|
|
930
928
|
e("div", St, y(Z.value || "-"), 1)
|
|
931
929
|
])) : P("", !0),
|
|
932
|
-
l(
|
|
930
|
+
l(N).isEnabled ? (v(), x("div", Dt, [
|
|
933
931
|
a[11] || (a[11] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transfer Order ", -1)),
|
|
934
932
|
e("div", kt, y(((_e = (ge = s.purchaseOrder) == null ? void 0 : ge.netSuite) == null ? void 0 : _e.id) || ((Re = (we = s.poRequest) == null ? void 0 : we.netSuite) == null ? void 0 : Re.id) || "-"), 1)
|
|
935
933
|
])) : P("", !0),
|
|
936
|
-
l(
|
|
934
|
+
l(N).isEnabled ? (v(), x("div", At, [
|
|
937
935
|
a[12] || (a[12] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Fulfilment IDs ", -1)),
|
|
938
|
-
e("div",
|
|
936
|
+
e("div", xt, y(he.value), 1)
|
|
939
937
|
])) : P("", !0),
|
|
940
|
-
(Oe = s.purchaseOrder) != null && Oe.ref ? (v(),
|
|
938
|
+
(Oe = s.purchaseOrder) != null && Oe.ref ? (v(), x("div", qt, [
|
|
941
939
|
e("div", Pt, y(l(i)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
942
940
|
e("div", Ct, y(s.purchaseOrder.ref), 1)
|
|
943
941
|
])) : P("", !0),
|
|
944
|
-
(Se = s.purchaseOrder) != null && Se.remark ? (v(),
|
|
945
|
-
e("div",
|
|
942
|
+
(Se = s.purchaseOrder) != null && Se.remark ? (v(), x("div", Nt, [
|
|
943
|
+
e("div", Tt, y(l(i)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
946
944
|
e("div", Et, y(s.purchaseOrder.remark), 1)
|
|
947
945
|
])) : P("", !0)
|
|
948
946
|
])
|
|
@@ -954,7 +952,7 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
954
952
|
e("div", $t, [
|
|
955
953
|
e("div", Ft, [
|
|
956
954
|
e("div", It, y(ye.value ? l(i)("inventory.transfer.receiveRequest.details.receivedItems") : l(i)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
|
|
957
|
-
(v(!0),
|
|
955
|
+
(v(!0), x(ee, null, de((($ = s.purchaseOrder) == null ? void 0 : $.items) ?? [], (D) => (v(), x("div", {
|
|
958
956
|
key: D.code,
|
|
959
957
|
class: "flex flex-col"
|
|
960
958
|
}, [
|
|
@@ -964,15 +962,15 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
964
962
|
]),
|
|
965
963
|
e("div", jt, [
|
|
966
964
|
e("div", Bt, y(D.code), 1),
|
|
967
|
-
D.totalCost && l(
|
|
965
|
+
D.totalCost && l(T).enableTotalCost ? (v(), x("div", Kt, " (" + y(l(ze)(D.totalCost)) + ") ", 1)) : P("", !0)
|
|
968
966
|
])
|
|
969
967
|
]))), 128))
|
|
970
968
|
])
|
|
971
969
|
])
|
|
972
970
|
], 64)) : P("", !0),
|
|
973
|
-
d.value.value === "deliveryHistory" ? (v(),
|
|
974
|
-
K.value.length ? (v(),
|
|
975
|
-
(v(!0),
|
|
971
|
+
d.value.value === "deliveryHistory" ? (v(), x("div", Vt, [
|
|
972
|
+
K.value.length ? (v(), x("div", Qt, [
|
|
973
|
+
(v(!0), x(ee, null, de(K.value, (D, E) => (v(), x(ee, { key: E }, [
|
|
976
974
|
e("div", Wt, [
|
|
977
975
|
e("div", Jt, [
|
|
978
976
|
e("div", Xt, [
|
|
@@ -1025,13 +1023,13 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
1025
1023
|
}, {
|
|
1026
1024
|
default: ie(() => [
|
|
1027
1025
|
e("div", lr, [
|
|
1028
|
-
(v(!0),
|
|
1026
|
+
(v(!0), x(ee, null, de(D.info, (F, Q) => (v(), x("div", {
|
|
1029
1027
|
key: Q,
|
|
1030
1028
|
class: "flex flex-col gap-4"
|
|
1031
1029
|
}, [
|
|
1032
1030
|
e("div", cr, y(F == null ? void 0 : F.label), 1),
|
|
1033
1031
|
e("div", ir, [
|
|
1034
|
-
(v(!0),
|
|
1032
|
+
(v(!0), x(ee, null, de(F == null ? void 0 : F.values, (W, J) => (v(), x("div", {
|
|
1035
1033
|
key: J,
|
|
1036
1034
|
class: "fm-typo-en-body-lg-600"
|
|
1037
1035
|
}, y(W), 1))), 128))
|
|
@@ -1044,7 +1042,7 @@ const st = { class: "flex flex-col gap-16 w-full h-full" }, at = { class: "flex
|
|
|
1044
1042
|
])
|
|
1045
1043
|
])
|
|
1046
1044
|
], 64))), 128))
|
|
1047
|
-
])) : (v(),
|
|
1045
|
+
])) : (v(), x("div", Gt, [
|
|
1048
1046
|
z(g),
|
|
1049
1047
|
e("div", null, [
|
|
1050
1048
|
e("img", {
|