@feedmepos/mf-inventory-portal 0.0.23-dev.31 → 0.0.23-dev.4
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-CEmWJ9lp.js → App-DReDvY0M.js} +73 -85
- package/dist/{ApprovalView-jDll4AVe.js → ApprovalView-BMZlYmRk.js} +27 -24
- package/dist/{BindingsDialog-BC_gRSif.js → BindingsDialog-Y2K4I7H7.js} +4 -4
- package/dist/{BindingsPicker-BJsGoBzM.js → BindingsPicker-DKBq9c37.js} +9 -8
- package/dist/{BindingsTable-DSdwNK_q.js → BindingsTable-45v4SDfp.js} +22 -18
- package/dist/{ClosingTemplateView-BzG16gl5.js → ClosingTemplateView-CKJVYSbj.js} +286 -272
- package/dist/FmDroppableField-8RzKjEdL.js +154 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DW2IOPST.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CMEOp-0r.js} +23 -22
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js +436 -0
- package/dist/FmMultiselectDialog-D7YtdoyJ.js +415 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DDuZEf_v.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C1DjyjyH.js} +49 -48
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CiNvnaaE.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-zjvFEF5C.js} +5 -5
- package/dist/{IngredientGroupView-DL8eBhkk.js → IngredientGroupView-BuP-HGeg.js} +69 -63
- package/dist/IngredientsView-DMRN-odY.js +1613 -0
- package/dist/{IntegrationView-BeFT5S24.js → IntegrationView-kYCaKG0o.js} +95 -92
- package/dist/{InventoryBindingForm-DJ3uwq_X.js → InventoryBindingForm-BXHq4h-n.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIviTipZ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CVxJ_bV3.js} +27 -25
- package/dist/{InventoryBindingSummary-CvB5j9xq.js → InventoryBindingSummary-Bjasfc_v.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQPdnXEF.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DM0C4raP.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BdscwUGn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C3O3JebE.js} +24 -23
- package/dist/{PurchaseOrderPrintPreview-3_6nBajH.js → PurchaseOrderPrintPreview-CmjkfTTS.js} +14 -13
- package/dist/{ReceiveRequestView-B_0UldQ7.js → ReceiveRequestView-aQZJO8sq.js} +1302 -1325
- package/dist/{RecipeView-D9p0Ou_I.js → RecipeView-DXO43tFi.js} +85 -79
- package/dist/{StockView-TIdUgG3O.js → StockView-D9no-mrA.js} +1446 -1338
- package/dist/{SupplierView-B1b9Otcr.js → SupplierView-DAx7E7sR.js} +787 -2325
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DCA0RUfu.js +1209 -0
- package/dist/TransferTemplateView-CfxdQF1t.js +1261 -0
- package/dist/{UnitView-BrpzJ7D3.js → UnitView-CQPGZ8-r.js} +44 -40
- package/dist/{WarehouseView-CjbdEy8o.js → WarehouseView-jy-RNCgy.js} +100 -94
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/closing.d.ts +0 -1
- package/dist/api/netsuite.d.ts +3 -3
- package/dist/app-KnSMkJBV.js +33496 -0
- package/dist/app.d.ts +0 -56
- package/dist/app.js +2 -2
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -1
- package/dist/components/row-action.enum.d.ts +0 -1
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/date2-CIeUqUIc.js +117 -0
- package/dist/dayjs.min-Df5jSnDJ.js +282 -0
- package/dist/{decimal-DHYZglKx.js → decimal-BAc9M88Q.js} +1 -1
- package/dist/defineDeepModel-BfuQAIoM.js +13 -0
- package/dist/{feature-G-NnqKcY.js → feature-dwB4OxRQ.js} +6 -12
- package/dist/format-time-from-id-BbvzyIN6.js +15 -0
- package/dist/{format-unit-display-BWqJsV_R.js → format-unit-display-BBWblJEt.js} +171 -162
- package/dist/fuzzy-B9ryZ9VZ.js +41 -0
- package/dist/index-BN0CY3sZ.js +22277 -0
- package/dist/index-Bj1fJum-.js +45 -0
- package/dist/index-C4yL_7rR.js +10545 -0
- package/dist/netsuite-ByWOS6tI.js +194 -0
- package/dist/normalizeArguments-DP7Hrren.js +1552 -0
- package/dist/router/name.d.ts +0 -2
- package/dist/row-action.enum-PMKMRrZR.js +50 -0
- package/dist/rules-C12nWDD1.js +198 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/integration/netsuite.d.ts +2 -70
- package/dist/stores/inventory.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DTUUR48O.js → supplier-DJC0UZWv.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-DvC_i-Ih.js → use-inventory-binding-dialog-PEQbFRvO.js} +11 -10
- package/dist/use-template-enabled-locations-2-k9g5t8tt.js +86 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +192 -24
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +193 -25
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +0 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -9
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +0 -9
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/xlsx-B4XHad7S.js +24004 -0
- package/dist/xlsx.util-BSO4SHJi.js +78 -0
- package/package.json +3 -3
- package/dist/ClosingDraftView-UfWdRXb-.js +0 -1190
- package/dist/IngredientsView-B_HC9fgq.js +0 -1657
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-jUYB4L8Y.js +0 -1275
- package/dist/TransferTemplateView-Dxk5b-2j.js +0 -1264
- package/dist/api/adjustment-template.d.ts +0 -23
- package/dist/api/closing-draft.d.ts +0 -6
- package/dist/app-AcMtTQ07.js +0 -84202
- package/dist/index-Bt8vaUdT.js +0 -12087
- package/dist/stock-VZXyPw2C.js +0 -125
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +0 -2
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +0 -18
- package/dist/views/adjustment-template/import/export.d.ts +0 -60
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +0 -2
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +0 -22
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +0 -6
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +0 -2
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +0 -1295
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +0 -16
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +0 -35
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +0 -20
- package/dist/views/adjustment-template/wastage-template/props.d.ts +0 -29
- package/dist/views/adjustment-template/wastage-template/table.d.ts +0 -1273
- package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +0 -2
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +0 -22
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -621
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +0 -25
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -3621
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +0 -1
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +0 -19
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +0 -4
- package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +0 -12
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +0 -13
- package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +0 -12
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as
|
|
2
|
-
import {
|
|
3
|
-
import { useCoreStore as
|
|
4
|
-
import {
|
|
1
|
+
import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as S, createElementBlock as B, toRaw as be, reactive as xe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as F, isRef as we, normalizeClass as Se, normalizeStyle as Re } from "vue";
|
|
2
|
+
import { j as Pe, p as Te, q as Ue, c as O, u as Ee } from "./app-KnSMkJBV.js";
|
|
3
|
+
import { useCoreStore as Le, useI18n as j } from "@feedmepos/mf-common";
|
|
4
|
+
import { D as Ve, R as J, F as T } from "./row-action.enum-PMKMRrZR.js";
|
|
5
|
+
import { c as Ne, _ as qe, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
6
|
+
import { u as Be, _ as ze, a as Ie } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js";
|
|
7
|
+
import { useDialogChild as je, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as Oe } from "@feedmepos/ui-library";
|
|
8
|
+
import { R as E } from "./rules-C12nWDD1.js";
|
|
5
9
|
import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
import { d as Ge } from "./index-Bj1fJum-.js";
|
|
11
|
+
import { _ as Ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const X = Pe((m, h) => {
|
|
13
|
+
const y = Le();
|
|
8
14
|
return {
|
|
9
15
|
async readWarehouses() {
|
|
10
16
|
var l;
|
|
@@ -34,7 +40,7 @@ function He() {
|
|
|
34
40
|
};
|
|
35
41
|
}
|
|
36
42
|
const _e = W(He());
|
|
37
|
-
function
|
|
43
|
+
function Ce() {
|
|
38
44
|
return {
|
|
39
45
|
// state
|
|
40
46
|
get warehouses() {
|
|
@@ -103,7 +109,7 @@ function Ze(m, h) {
|
|
|
103
109
|
id: "action",
|
|
104
110
|
header: "",
|
|
105
111
|
cell(p) {
|
|
106
|
-
return
|
|
112
|
+
return Ne(
|
|
107
113
|
[Ve[J.Edit], Ve[J.Delete]],
|
|
108
114
|
(s) => {
|
|
109
115
|
y(s, p.row.original.original);
|
|
@@ -180,25 +186,25 @@ const Je = /* @__PURE__ */ I({
|
|
|
180
186
|
};
|
|
181
187
|
}
|
|
182
188
|
function v(r, f, b) {
|
|
183
|
-
const
|
|
184
|
-
u.push(
|
|
189
|
+
const x = l.maps.event.addListener(r, f, b);
|
|
190
|
+
u.push(x);
|
|
185
191
|
}
|
|
186
192
|
const M = W([]);
|
|
187
193
|
function $(r, f, b) {
|
|
188
194
|
v(r, f, b);
|
|
189
195
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
192
|
-
const
|
|
196
|
+
function C(r) {
|
|
197
|
+
R(null), M.value = r.map((f, b) => {
|
|
198
|
+
const x = new l.maps.Marker({
|
|
193
199
|
position: f,
|
|
194
200
|
draggable: !0
|
|
195
201
|
});
|
|
196
|
-
return $(
|
|
202
|
+
return $(x, "dragend", (D) => {
|
|
197
203
|
n("marker-change", { index: b, position: _(D) });
|
|
198
|
-
}),
|
|
199
|
-
}),
|
|
204
|
+
}), x;
|
|
205
|
+
}), R(s.value);
|
|
200
206
|
}
|
|
201
|
-
function
|
|
207
|
+
function R(r) {
|
|
202
208
|
M.value.map((f) => be(f).setMap(r));
|
|
203
209
|
}
|
|
204
210
|
const i = W([]);
|
|
@@ -209,9 +215,9 @@ const Je = /* @__PURE__ */ I({
|
|
|
209
215
|
v(r, f, b);
|
|
210
216
|
}
|
|
211
217
|
function o(r) {
|
|
212
|
-
return i.value[r].getPath().getArray().map(({ lat: b, lng:
|
|
218
|
+
return i.value[r].getPath().getArray().map(({ lat: b, lng: x }) => ({
|
|
213
219
|
lat: b(),
|
|
214
|
-
lng:
|
|
220
|
+
lng: x()
|
|
215
221
|
}));
|
|
216
222
|
}
|
|
217
223
|
function e(r) {
|
|
@@ -219,24 +225,24 @@ const Je = /* @__PURE__ */ I({
|
|
|
219
225
|
n("polygon-change", { index: r, path: f });
|
|
220
226
|
}
|
|
221
227
|
function t(r, f) {
|
|
222
|
-
const
|
|
223
|
-
n("polygon-change", { index: r, path:
|
|
228
|
+
const x = o(r).filter((D, G) => G !== f);
|
|
229
|
+
n("polygon-change", { index: r, path: x });
|
|
224
230
|
}
|
|
225
|
-
function
|
|
231
|
+
function q(r, f) {
|
|
226
232
|
f.vertex !== void 0 ? t(r, f.vertex) : n("polygon-right-click", r);
|
|
227
233
|
}
|
|
228
234
|
function w(r) {
|
|
229
235
|
d(null), i.value = r.map((f, b) => {
|
|
230
|
-
const
|
|
236
|
+
const x = new l.maps.Polygon({
|
|
231
237
|
paths: f.paths,
|
|
232
238
|
strokeColor: f.strokeColor,
|
|
233
239
|
fillColor: f.fillColor,
|
|
234
240
|
fillOpacity: 0.5,
|
|
235
241
|
editable: a.editable
|
|
236
242
|
});
|
|
237
|
-
return k(
|
|
243
|
+
return k(x, "contextmenu", (D) => q(b, D)), x.getPaths().forEach((D) => {
|
|
238
244
|
A(D, "insert_at", () => e(b)), A(D, "set_at", () => e(b));
|
|
239
|
-
}),
|
|
245
|
+
}), x;
|
|
240
246
|
}), d(s.value);
|
|
241
247
|
}
|
|
242
248
|
function d(r) {
|
|
@@ -245,7 +251,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
245
251
|
function Y(r, f, b) {
|
|
246
252
|
v(r, f, b);
|
|
247
253
|
}
|
|
248
|
-
function
|
|
254
|
+
function P() {
|
|
249
255
|
s.value = new l.maps.Map(p.value, {
|
|
250
256
|
center: a.center,
|
|
251
257
|
zoom: a.zoom,
|
|
@@ -255,11 +261,11 @@ const Je = /* @__PURE__ */ I({
|
|
|
255
261
|
scrollwheel: !0
|
|
256
262
|
}), Y(s.value, "click", (r) => n("map-click", _(r)));
|
|
257
263
|
}
|
|
258
|
-
return ee(() => a.markers,
|
|
259
|
-
!p.value || !l || (
|
|
260
|
-
}),
|
|
264
|
+
return ee(() => a.markers, C, { deep: !0 }), ee(() => a.polygons, w, { deep: !0 }), te(() => {
|
|
265
|
+
!p.value || !l || (P(), C(a.markers), w(a.polygons));
|
|
266
|
+
}), Fe(() => {
|
|
261
267
|
u.forEach((r) => r.remove());
|
|
262
|
-
}), (r, f) => (S(),
|
|
268
|
+
}), (r, f) => (S(), B("div", {
|
|
263
269
|
ref_key: "mapRef",
|
|
264
270
|
ref: p,
|
|
265
271
|
class: "map app-map"
|
|
@@ -278,9 +284,9 @@ const Je = /* @__PURE__ */ I({
|
|
|
278
284
|
}
|
|
279
285
|
},
|
|
280
286
|
setup(m) {
|
|
281
|
-
const h = m, y =
|
|
287
|
+
const h = m, y = je(), a = se(), { t: n } = j(), l = xe(
|
|
282
288
|
O(h.coordinate ? h.coordinate : le.jb)
|
|
283
|
-
), p = W(""), s =
|
|
289
|
+
), p = W(""), s = Ge(async function() {
|
|
284
290
|
p.value = await a.getFirstMatchingAddress(
|
|
285
291
|
l.lat,
|
|
286
292
|
l.lng
|
|
@@ -293,7 +299,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
293
299
|
l.lat = v.lat, l.lng = v.lng, y.emitData(O(l)), s();
|
|
294
300
|
}
|
|
295
301
|
const _ = W();
|
|
296
|
-
return (v, M) => (S(),
|
|
302
|
+
return (v, M) => (S(), B("div", Qe, [
|
|
297
303
|
g("div", Xe, [
|
|
298
304
|
g("div", null, [
|
|
299
305
|
g("span", Ye, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
|
|
@@ -320,7 +326,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
320
326
|
}, null, 8, ["center", "markers"])
|
|
321
327
|
]));
|
|
322
328
|
}
|
|
323
|
-
}), ro = /* @__PURE__ */
|
|
329
|
+
}), ro = /* @__PURE__ */ Ke(so, [["__scopeId", "data-v-272f5e8b"]]);
|
|
324
330
|
function ke([m, h]) {
|
|
325
331
|
return {
|
|
326
332
|
lat: h,
|
|
@@ -374,7 +380,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
374
380
|
}).onPrimary(i);
|
|
375
381
|
}
|
|
376
382
|
const $ = (i) => a("update:modelValue", i ? no(i) : null);
|
|
377
|
-
async function
|
|
383
|
+
async function C() {
|
|
378
384
|
if (!y.disabled) {
|
|
379
385
|
if (!n.isGoogleMapReady) {
|
|
380
386
|
p.open({
|
|
@@ -387,12 +393,12 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
387
393
|
M($);
|
|
388
394
|
}
|
|
389
395
|
}
|
|
390
|
-
function
|
|
396
|
+
function R() {
|
|
391
397
|
a("update:modelValue", null);
|
|
392
398
|
}
|
|
393
399
|
return (i, k) => {
|
|
394
400
|
const A = L("FmField"), o = L("FmButton"), e = L("FmFormGroup");
|
|
395
|
-
return S(),
|
|
401
|
+
return S(), B("div", uo, [
|
|
396
402
|
V(e, {
|
|
397
403
|
class: "flex-1",
|
|
398
404
|
"model-value": c(s),
|
|
@@ -405,10 +411,10 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
405
411
|
focused: u.value,
|
|
406
412
|
"helper-text": i.helperText,
|
|
407
413
|
"helper-state": i.helperState,
|
|
408
|
-
onClick: k[0] || (k[0] = (t) =>
|
|
414
|
+
onClick: k[0] || (k[0] = (t) => C())
|
|
409
415
|
}, $e({
|
|
410
416
|
default: N(({ invalid: t }) => [
|
|
411
|
-
i.modelValue && i.modelValue[0] && i.modelValue[1] ? (S(),
|
|
417
|
+
i.modelValue && i.modelValue[0] && i.modelValue[1] ? (S(), B("div", io, [
|
|
412
418
|
V(A, {
|
|
413
419
|
invalid: t,
|
|
414
420
|
class: "fm-typo-en-body-lg-400"
|
|
@@ -418,7 +424,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
418
424
|
]),
|
|
419
425
|
_: 2
|
|
420
426
|
}, 1032, ["invalid"])
|
|
421
|
-
])) : (S(),
|
|
427
|
+
])) : (S(), B("div", co, [
|
|
422
428
|
V(o, {
|
|
423
429
|
label: c(_)("inventory.formField.coordinate.addCoordinate"),
|
|
424
430
|
"prepend-icon": "add",
|
|
@@ -440,7 +446,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
440
446
|
key: 0,
|
|
441
447
|
"prepend-icon": "delete",
|
|
442
448
|
variant: "tertiary",
|
|
443
|
-
onClick: k[1] || (k[1] = (t) =>
|
|
449
|
+
onClick: k[1] || (k[1] = (t) => R())
|
|
444
450
|
})) : Ae("", !0)
|
|
445
451
|
]);
|
|
446
452
|
};
|
|
@@ -453,7 +459,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
453
459
|
},
|
|
454
460
|
emits: ["update:modelValue", "validation-success"],
|
|
455
461
|
setup(m, { expose: h, emit: y }) {
|
|
456
|
-
const a = m, n = y, { t: l } = j(), p =
|
|
462
|
+
const a = m, n = y, { t: l } = j(), p = F({
|
|
457
463
|
get() {
|
|
458
464
|
var o, e;
|
|
459
465
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
|
|
@@ -462,7 +468,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
462
468
|
const e = a.modelValue ?? {};
|
|
463
469
|
e.profile ?? (e.profile = {}), e.profile.name = o, n("update:modelValue", e);
|
|
464
470
|
}
|
|
465
|
-
}), s =
|
|
471
|
+
}), s = F({
|
|
466
472
|
get() {
|
|
467
473
|
var o, e;
|
|
468
474
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.regNo) ?? "";
|
|
@@ -471,7 +477,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
471
477
|
const e = a.modelValue ?? {};
|
|
472
478
|
e.profile ?? (e.profile = {}), e.profile.regNo = o, n("update:modelValue", e);
|
|
473
479
|
}
|
|
474
|
-
}), u =
|
|
480
|
+
}), u = F({
|
|
475
481
|
get() {
|
|
476
482
|
var o, e, t;
|
|
477
483
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line1) ?? "";
|
|
@@ -481,7 +487,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
481
487
|
const e = a.modelValue ?? {};
|
|
482
488
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line1 = o, n("update:modelValue", e);
|
|
483
489
|
}
|
|
484
|
-
}), _ =
|
|
490
|
+
}), _ = F({
|
|
485
491
|
get() {
|
|
486
492
|
var o, e, t;
|
|
487
493
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line2) ?? "";
|
|
@@ -491,7 +497,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
491
497
|
const e = a.modelValue ?? {};
|
|
492
498
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line2 = o, n("update:modelValue", e);
|
|
493
499
|
}
|
|
494
|
-
}), v =
|
|
500
|
+
}), v = F({
|
|
495
501
|
get() {
|
|
496
502
|
var o, e, t;
|
|
497
503
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.city) ?? "";
|
|
@@ -501,7 +507,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
501
507
|
const e = a.modelValue ?? {};
|
|
502
508
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.city = o, n("update:modelValue", e);
|
|
503
509
|
}
|
|
504
|
-
}), M =
|
|
510
|
+
}), M = F({
|
|
505
511
|
get() {
|
|
506
512
|
var o, e, t;
|
|
507
513
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.postcode) ?? "";
|
|
@@ -511,7 +517,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
511
517
|
const e = a.modelValue ?? {};
|
|
512
518
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.postcode = o, n("update:modelValue", e);
|
|
513
519
|
}
|
|
514
|
-
}), $ =
|
|
520
|
+
}), $ = F({
|
|
515
521
|
get() {
|
|
516
522
|
var o, e, t;
|
|
517
523
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.state) ?? "";
|
|
@@ -521,7 +527,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
521
527
|
const e = a.modelValue ?? {};
|
|
522
528
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.state = o, n("update:modelValue", e);
|
|
523
529
|
}
|
|
524
|
-
}),
|
|
530
|
+
}), C = F({
|
|
525
531
|
get() {
|
|
526
532
|
var o, e, t;
|
|
527
533
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.country) ?? "";
|
|
@@ -531,7 +537,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
531
537
|
const e = a.modelValue ?? {};
|
|
532
538
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.country = o, n("update:modelValue", e);
|
|
533
539
|
}
|
|
534
|
-
}),
|
|
540
|
+
}), R = F({
|
|
535
541
|
get() {
|
|
536
542
|
var o, e, t;
|
|
537
543
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.coordinates) ?? null;
|
|
@@ -541,7 +547,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
541
547
|
const e = a.modelValue ?? {};
|
|
542
548
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.coordinates = o, n("update:modelValue", e);
|
|
543
549
|
}
|
|
544
|
-
}), i =
|
|
550
|
+
}), i = F({
|
|
545
551
|
get() {
|
|
546
552
|
var o, e;
|
|
547
553
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.phoneNo) ?? "";
|
|
@@ -550,7 +556,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
550
556
|
const e = a.modelValue ?? {};
|
|
551
557
|
e.profile ?? (e.profile = {}), e.profile.phoneNo = o, n("update:modelValue", e);
|
|
552
558
|
}
|
|
553
|
-
}), k =
|
|
559
|
+
}), k = F({
|
|
554
560
|
get() {
|
|
555
561
|
var o, e;
|
|
556
562
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.email) ?? "";
|
|
@@ -574,7 +580,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
574
580
|
(e = (o = A.value) == null ? void 0 : o.resetInputs) == null || e.call(o);
|
|
575
581
|
}
|
|
576
582
|
}), (o, e) => {
|
|
577
|
-
const t = L("FmTextField"),
|
|
583
|
+
const t = L("FmTextField"), q = L("FmPhoneNumber"), w = L("FmForm");
|
|
578
584
|
return S(), z(w, {
|
|
579
585
|
ref_key: "formRef",
|
|
580
586
|
ref: A,
|
|
@@ -647,8 +653,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
647
653
|
rules: [c(E)()],
|
|
648
654
|
"label-mark": "required",
|
|
649
655
|
label: c(l)("inventory.warehouse.address.country"),
|
|
650
|
-
modelValue:
|
|
651
|
-
"onUpdate:modelValue": e[7] || (e[7] = (d) =>
|
|
656
|
+
modelValue: C.value,
|
|
657
|
+
"onUpdate:modelValue": e[7] || (e[7] = (d) => C.value = d)
|
|
652
658
|
}, null, 8, ["disabled", "rules", "label", "modelValue"])
|
|
653
659
|
])
|
|
654
660
|
]),
|
|
@@ -658,14 +664,14 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
658
664
|
disabled: o.disabled,
|
|
659
665
|
rules: [c(E)()],
|
|
660
666
|
"label-mark": "required",
|
|
661
|
-
modelValue:
|
|
662
|
-
"onUpdate:modelValue": e[8] || (e[8] = (d) =>
|
|
667
|
+
modelValue: R.value,
|
|
668
|
+
"onUpdate:modelValue": e[8] || (e[8] = (d) => R.value = d)
|
|
663
669
|
}, null, 8, ["disabled", "rules", "modelValue"])
|
|
664
670
|
]),
|
|
665
671
|
g("div", wo, [
|
|
666
672
|
g("div", Vo, U(c(l)("inventory.warehouse.contact.title")), 1),
|
|
667
673
|
g("div", _o, [
|
|
668
|
-
V(
|
|
674
|
+
V(q, {
|
|
669
675
|
disabled: o.disabled,
|
|
670
676
|
rules: [c(E)()],
|
|
671
677
|
"label-mark": "required",
|
|
@@ -697,7 +703,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
697
703
|
},
|
|
698
704
|
emits: ["update:show", "submitted"],
|
|
699
705
|
setup(m, { expose: h, emit: y }) {
|
|
700
|
-
const a = m, n = y, l = W(!1), p = ae(), { t: s } = j(), u =
|
|
706
|
+
const a = m, n = y, l = W(!1), p = ae(), { t: s } = j(), u = Ce(), _ = F(() => {
|
|
701
707
|
switch (a.mode) {
|
|
702
708
|
case T.READ:
|
|
703
709
|
return "";
|
|
@@ -707,7 +713,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
707
713
|
return s("inventory.warehouse.create.title");
|
|
708
714
|
}
|
|
709
715
|
return "";
|
|
710
|
-
}), v =
|
|
716
|
+
}), v = F(() => {
|
|
711
717
|
switch (a.mode) {
|
|
712
718
|
case T.READ:
|
|
713
719
|
return "";
|
|
@@ -732,8 +738,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
732
738
|
(e = (o = M.value) == null ? void 0 : o.resetInputs) == null || e.call(o);
|
|
733
739
|
}
|
|
734
740
|
});
|
|
735
|
-
const $ = oe(a, "show"),
|
|
736
|
-
function
|
|
741
|
+
const $ = oe(a, "show"), C = oe(a, "warehouse");
|
|
742
|
+
function R() {
|
|
737
743
|
var o, e;
|
|
738
744
|
(e = (o = M.value) == null ? void 0 : o.validateInputs) == null || e.call(o);
|
|
739
745
|
}
|
|
@@ -752,11 +758,11 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
752
758
|
l.value = !0;
|
|
753
759
|
try {
|
|
754
760
|
await Promise.all([
|
|
755
|
-
u.createWarehouse(
|
|
761
|
+
u.createWarehouse(C.value),
|
|
756
762
|
new Promise((t) => setTimeout(t, 1e3))
|
|
757
763
|
]), p.open({
|
|
758
764
|
title: s("inventory.common.success"),
|
|
759
|
-
message: s("inventory.warehouse.create.success", { name: (e = (o =
|
|
765
|
+
message: s("inventory.warehouse.create.success", { name: (e = (o = C.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
|
|
760
766
|
type: "success"
|
|
761
767
|
}), n("update:show", !1), n("submitted");
|
|
762
768
|
} catch (t) {
|
|
@@ -771,7 +777,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
771
777
|
}
|
|
772
778
|
async function A() {
|
|
773
779
|
var o, e;
|
|
774
|
-
if (
|
|
780
|
+
if (C.value === null) {
|
|
775
781
|
p.open({
|
|
776
782
|
title: s("inventory.warehouse.update.error.title"),
|
|
777
783
|
message: s("inventory.warehouse.update.error.emptyWarehouse"),
|
|
@@ -782,11 +788,11 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
782
788
|
l.value = !0;
|
|
783
789
|
try {
|
|
784
790
|
await Promise.all([
|
|
785
|
-
u.updateWarehouse(
|
|
791
|
+
u.updateWarehouse(C.value),
|
|
786
792
|
new Promise((t) => setTimeout(t, 1e3))
|
|
787
793
|
]), p.open({
|
|
788
794
|
title: s("inventory.common.success"),
|
|
789
|
-
message: s("inventory.warehouse.update.success", { name: (e = (o =
|
|
795
|
+
message: s("inventory.warehouse.update.success", { name: (e = (o = C.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
|
|
790
796
|
type: "success"
|
|
791
797
|
}), n("update:show", !1), n("submitted");
|
|
792
798
|
} catch (t) {
|
|
@@ -800,8 +806,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
800
806
|
}
|
|
801
807
|
}
|
|
802
808
|
return (o, e) => {
|
|
803
|
-
const t = L("FmButton"),
|
|
804
|
-
return S(), z(
|
|
809
|
+
const t = L("FmButton"), q = L("FmSideSheet");
|
|
810
|
+
return S(), z(q, {
|
|
805
811
|
header: _.value,
|
|
806
812
|
modelValue: c($),
|
|
807
813
|
"onUpdate:modelValue": e[1] || (e[1] = (w) => we($) ? $.value = w : null),
|
|
@@ -816,8 +822,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
816
822
|
class: "w-full",
|
|
817
823
|
ref_key: "formRef",
|
|
818
824
|
ref: M,
|
|
819
|
-
modelValue: c(
|
|
820
|
-
"onUpdate:modelValue": e[0] || (e[0] = (d) => we(
|
|
825
|
+
modelValue: c(C),
|
|
826
|
+
"onUpdate:modelValue": e[0] || (e[0] = (d) => we(C) ? C.value = d : null),
|
|
821
827
|
onValidationSuccess: i,
|
|
822
828
|
key: ((w = o.warehouse) == null ? void 0 : w._id) ?? "",
|
|
823
829
|
disabled: l.value
|
|
@@ -829,7 +835,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
829
835
|
V(t, {
|
|
830
836
|
loading: l.value,
|
|
831
837
|
label: v.value,
|
|
832
|
-
onClick:
|
|
838
|
+
onClick: R
|
|
833
839
|
}, null, 8, ["loading", "label"])
|
|
834
840
|
])
|
|
835
841
|
]),
|
|
@@ -837,13 +843,13 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
837
843
|
}, 8, ["header", "modelValue", "dismiss-away"]);
|
|
838
844
|
};
|
|
839
845
|
}
|
|
840
|
-
}),
|
|
846
|
+
}), Co = { class: "flex flex-col py-8" }, Fo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, xo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $o = {
|
|
841
847
|
key: 0,
|
|
842
848
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
843
|
-
}, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" },
|
|
849
|
+
}, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, zo = /* @__PURE__ */ I({
|
|
844
850
|
__name: "WarehouseView",
|
|
845
851
|
setup(m) {
|
|
846
|
-
const h =
|
|
852
|
+
const h = Ce(), y = Ee(), a = F(() => h.warehouses), n = Me(), l = ae(), p = W(!1), { t: s } = j();
|
|
847
853
|
te(() => {
|
|
848
854
|
y._currentLocation && A();
|
|
849
855
|
}), ee([() => y._currentLocation], () => {
|
|
@@ -892,7 +898,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
892
898
|
n.close();
|
|
893
899
|
}
|
|
894
900
|
}
|
|
895
|
-
const { columnDefs:
|
|
901
|
+
const { columnDefs: C, formatRowData: R } = Ze(
|
|
896
902
|
v,
|
|
897
903
|
M
|
|
898
904
|
);
|
|
@@ -913,7 +919,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
913
919
|
p.value = !1;
|
|
914
920
|
}
|
|
915
921
|
}
|
|
916
|
-
const { breakpoints: o } =
|
|
922
|
+
const { breakpoints: o } = Oe(), e = F(() => o.value.xs || o.value.sm), t = F(() => e.value ? 10 : 20), q = Be();
|
|
917
923
|
return (w, d) => {
|
|
918
924
|
const Y = L("FmTable");
|
|
919
925
|
return S(), z(ze, {
|
|
@@ -942,40 +948,40 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
942
948
|
searchable: "",
|
|
943
949
|
"change-location": "",
|
|
944
950
|
search: k.value,
|
|
945
|
-
"onUpdate:search": d[0] || (d[0] = (
|
|
951
|
+
"onUpdate:search": d[0] || (d[0] = (P) => k.value = P)
|
|
946
952
|
}, null, 8, ["search"]),
|
|
947
953
|
(S(), z(Y, {
|
|
948
|
-
style:
|
|
949
|
-
"column-defs": c(
|
|
950
|
-
"row-data": c(
|
|
954
|
+
style: Re(c(q).tableHeight),
|
|
955
|
+
"column-defs": c(C),
|
|
956
|
+
"row-data": c(R)(a.value),
|
|
951
957
|
"search-value": k.value,
|
|
952
958
|
loading: !c(y)._currentLocation || p.value,
|
|
953
|
-
onRowClick: d[1] || (d[1] = (
|
|
959
|
+
onRowClick: d[1] || (d[1] = (P) => v(P.original.original)),
|
|
954
960
|
key: a.value.length,
|
|
955
961
|
"page-size": t.value
|
|
956
962
|
}, {
|
|
957
|
-
"list-row": N((
|
|
958
|
-
V(
|
|
959
|
-
row:
|
|
963
|
+
"list-row": N((P) => [
|
|
964
|
+
V(qe, {
|
|
965
|
+
row: P,
|
|
960
966
|
onRowClick: (r) => v(r.original)
|
|
961
967
|
}, {
|
|
962
968
|
default: N((r) => {
|
|
963
|
-
var f, b,
|
|
969
|
+
var f, b, x, D, G, re, ne, ue, K, ie, de, ce, pe, me, H, fe, he, ye, ve, Z, ge;
|
|
964
970
|
return [
|
|
965
|
-
g("div",
|
|
966
|
-
g("div",
|
|
971
|
+
g("div", Co, [
|
|
972
|
+
g("div", Fo, [
|
|
967
973
|
V(c(Q), {
|
|
968
|
-
render: (
|
|
974
|
+
render: (x = (b = (f = r.warehouse) == null ? void 0 : f.column) == null ? void 0 : b.columnDef) == null ? void 0 : x.cell,
|
|
969
975
|
props: (G = (D = r.warehouse) == null ? void 0 : D.getContext) == null ? void 0 : G.call(D)
|
|
970
976
|
}, null, 8, ["render", "props"])
|
|
971
977
|
]),
|
|
972
|
-
g("div",
|
|
978
|
+
g("div", xo, [
|
|
973
979
|
V(c(Q), {
|
|
974
980
|
render: (ue = (ne = (re = r.contact) == null ? void 0 : re.column) == null ? void 0 : ne.columnDef) == null ? void 0 : ue.cell,
|
|
975
981
|
props: (ie = (K = r.contact) == null ? void 0 : K.getContext) == null ? void 0 : ie.call(K)
|
|
976
982
|
}, null, 8, ["render", "props"])
|
|
977
983
|
]),
|
|
978
|
-
(de =
|
|
984
|
+
(de = P.original) != null && de.email ? (S(), B("div", $o, [
|
|
979
985
|
V(c(Q), {
|
|
980
986
|
render: (me = (pe = (ce = r.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
|
|
981
987
|
props: (fe = (H = r.email) == null ? void 0 : H.getContext) == null ? void 0 : fe.call(H)
|
|
@@ -998,10 +1004,10 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
998
1004
|
], 2),
|
|
999
1005
|
V(Mo, {
|
|
1000
1006
|
show: u.value.show,
|
|
1001
|
-
"onUpdate:show": d[2] || (d[2] = (
|
|
1007
|
+
"onUpdate:show": d[2] || (d[2] = (P) => u.value.show = P),
|
|
1002
1008
|
warehouse: u.value.warehouse,
|
|
1003
1009
|
mode: u.value.mode,
|
|
1004
|
-
onSubmitted: d[3] || (d[3] = (
|
|
1010
|
+
onSubmitted: d[3] || (d[3] = (P) => A(!0))
|
|
1005
1011
|
}, null, 8, ["show", "warehouse", "mode"])
|
|
1006
1012
|
]),
|
|
1007
1013
|
_: 1
|
|
@@ -1010,5 +1016,5 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
1010
1016
|
}
|
|
1011
1017
|
});
|
|
1012
1018
|
export {
|
|
1013
|
-
|
|
1019
|
+
zo as default
|
|
1014
1020
|
};
|
package/dist/api/closing.d.ts
CHANGED
package/dist/api/netsuite.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const useNetSuiteApi: () => {
|
|
|
3
3
|
accessToken?: string | null | undefined;
|
|
4
4
|
syncedAt?: string | null | undefined;
|
|
5
5
|
restlet?: {
|
|
6
|
-
type: "createItemReceipt"
|
|
6
|
+
type: "createItemReceipt";
|
|
7
7
|
scriptId: string;
|
|
8
8
|
deploymentId: string;
|
|
9
9
|
}[] | null | undefined;
|
|
@@ -64,11 +64,11 @@ export declare const useNetSuiteApi: () => {
|
|
|
64
64
|
}[];
|
|
65
65
|
realm: string;
|
|
66
66
|
}>;
|
|
67
|
-
|
|
67
|
+
syncPurchaseOrder(purchaseOrderId: string, locationId: string): Promise<{
|
|
68
68
|
accessToken?: string | null | undefined;
|
|
69
69
|
syncedAt?: string | null | undefined;
|
|
70
70
|
restlet?: {
|
|
71
|
-
type: "createItemReceipt"
|
|
71
|
+
type: "createItemReceipt";
|
|
72
72
|
scriptId: string;
|
|
73
73
|
deploymentId: string;
|
|
74
74
|
}[] | null | undefined;
|