@feedmepos/mf-inventory-portal 1.3.6-dev.1 → 1.3.7-dev.1
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-CdJiOHFF.js → App-CJwfIjMX.js} +3 -3
- package/dist/{ApprovalView-CrTCSxKV.js → ApprovalView-DOq2oFvo.js} +7 -7
- package/dist/{BindingsDialog-CwFRqUMx.js → BindingsDialog-DCrRYbJJ.js} +2 -2
- package/dist/{BindingsPicker-CHX7mRbS.js → BindingsPicker-B6gakVEN.js} +2 -2
- package/dist/{BindingsTable-DtPXvsOW.js → BindingsTable-IVHY6t4x.js} +3 -3
- package/dist/{ClosingDraftView-DBU8VkhV.js → ClosingDraftView-D1CJtcPl.js} +11 -11
- package/dist/{ClosingHistoryView-B0qBbxak.js → ClosingHistoryView-DMGhfS9R.js} +4 -4
- package/dist/{ClosingTemplateView-CghtdOGp.js → ClosingTemplateView-Djo0juNV.js} +14 -14
- package/dist/DeliveryOrderPrintPreview-yIr0KaZ-.js +214 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lL-bEhG8.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CboUeuGd.js} +3 -3
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-tfeHCdlB.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang--Kdh7Lws.js} +2 -2
- package/dist/{FmMultiselectDialog-CjHxNRgo.js → FmMultiselectDialog-CmT3UKF6.js} +1 -1
- package/dist/{FmMultiselectDialog-DTp1AEr6.js → FmMultiselectDialog-Dfd2CP8Q.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DHWJxmCO.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C0nfecTl.js} +4 -4
- package/dist/{ImportView-FvE8fakd.js → ImportView-M6gfAQRh.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B3r5pntx.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Cl1U0OoC.js} +1 -1
- package/dist/{IngredientGroupView-BmO-etVI.js → IngredientGroupView-C29gfI37.js} +5 -5
- package/dist/{IngredientsView-8ghVe2pE.js → IngredientsView-DnM7eqv0.js} +15 -15
- package/dist/{IntegrationView-CY6ZENpy.js → IntegrationView-CxXZ90Dg.js} +13 -13
- package/dist/{InventoryBindingForm-9zx-jQCG.js → InventoryBindingForm-FImVaTic.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-C904X47l.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bay13kwv.js} +5 -5
- package/dist/{InventoryBindingSummary-r6Li41Bk.js → InventoryBindingSummary-DwHKeLyV.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bh1IRjId.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-cViXSxPS.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C6K98cru.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CCF4_Pyr.js} +1 -1
- package/dist/{PublishView-tufuoC1e.js → PublishView-D8aVGgPP.js} +3 -3
- package/dist/PurchaseOrderPrintPreview-CJSISF6B.js +162 -0
- package/dist/{ReceiveRequestView-BUnDaqZR.js → ReceiveRequestView-DeOwJD3K.js} +23 -23
- package/dist/RecipeView-HugMCN1V.js +1682 -0
- package/dist/{SettingsView-B_kdPcDU.js → SettingsView-BqNC4kXc.js} +4 -4
- package/dist/{StockView-CVXfCA_o.js → StockView-B3hLSoWp.js} +18 -18
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BCE9XrIf.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CuFB8tHC.js} +1 -1
- package/dist/{SupplierView-CkjPp1cC.js → SupplierView-DK9liRuA.js} +12 -12
- package/dist/{SurchargeView-DAMCCxtd.js → SurchargeView-Cnz3QPAF.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-D_L5Q_jA.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BsesD9UR.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DPRZHHm8.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DHvOhMtd.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dm6eYYcg.js → TransferDetails.vue_vue_type_script_setup_true_lang-xg5Ac0I2.js} +975 -972
- package/dist/{TransferTemplateView-DBhl9zvT.js → TransferTemplateView-hUBkM1Y0.js} +17 -17
- package/dist/{UnitCostHistoryView-WEWXMpZS.js → UnitCostHistoryView-gHpyp4-l.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BqPQAb0l.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DOC0W_-a.js} +4 -4
- package/dist/{UnitView-CXcPaulY.js → UnitView-Bt4EY0DU.js} +7 -7
- package/dist/{WarehouseView-IrqT-CPQ.js → WarehouseView-C7Aa5MQz.js} +5 -5
- package/dist/{WastageTemplateView-aUU0Jn8Y.js → WastageTemplateView-B59wFpmS.js} +14 -14
- package/dist/{app-4lWNOJEf.js → app-Bd2n830Y.js} +10 -10
- package/dist/app.js +1 -1
- package/dist/{closing-template-RnK_QBcO.js → closing-template-CbIMkUm-.js} +1 -1
- package/dist/{date2-BGXgi7u5.js → date2-CH3V-Ucj.js} +1 -1
- package/dist/{dayjs.min-JESBwKVB.js → dayjs.min-0pcsGWEW.js} +1 -1
- package/dist/{decimal-B7K03OXW.js → decimal-DqMF4lgE.js} +2 -2
- package/dist/{defineDeepModel-bnzZfANG.js → defineDeepModel-nM-22Ofl.js} +1 -1
- package/dist/{duplicate-template-CefpeTRK.js → duplicate-template-VcCheWzy.js} +1 -1
- package/dist/{export-BpKgh0Cr.js → export-DAK4eXwZ.js} +1 -1
- package/dist/{feature-Cdb6rdk-.js → feature-D9W_Z06D.js} +2 -2
- package/dist/{format-time-from-id-Q3-gXIRI.js → format-time-from-id-C1atPaNT.js} +1 -1
- package/dist/{format-unit-display-BFEgvVv8.js → format-unit-display-B4zjXa1i.js} +11 -11
- package/dist/{import-export.helper-Cq4gHLvZ.js → import-export.helper-DWUpF27a.js} +6 -6
- package/dist/{index-D31aV6iJ.js → index-BFpquHWG.js} +3 -3
- package/dist/{index-CdXO_XVc.js → index-Co-3wUpY.js} +1 -1
- package/dist/{index-BtdG7eQk.js → index-DoyDKyP_.js} +1 -1
- package/dist/{inventory-core-dart.default-DVcd2bz9.js → inventory-core-dart.default-BVmmW4IN.js} +1 -1
- package/dist/{lodash-BOpi0chn.js → lodash-BsMM-AaB.js} +1 -1
- package/dist/lz-string-BfBty02S.js +201 -0
- package/dist/{netsuite-C-qEDbAa.js → netsuite-B86m9YM_.js} +3 -3
- package/dist/{number-0MQUydwy.js → number-Bu93lKcU.js} +3 -3
- package/dist/{predefined-templates-nSS8KwiH.js → predefined-templates-swTNxWXc.js} +1 -1
- package/dist/{purchase-order-template-yvQRbRiW.js → purchase-order-template-DDmIZDfJ.js} +1 -1
- package/dist/{rules-BfXTyqNB.js → rules-BXeKMOa6.js} +2 -2
- package/dist/{stock-DvNGNAvv.js → stock-BkjUFSH-.js} +3 -3
- package/dist/{stock-CZV_pd8z.js → stock-D6A9nUUq.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-B867QeEd.js → supplier-BEFK8KT8.js} +2 -2
- package/dist/{surcharge-DOQyOgjR.js → surcharge-BKuJQ1bw.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-WnsPztOF.js → use-ingredient-select-dialog-CtkHGZVI.js} +2 -2
- package/dist/{use-inventory-binding-dialog-wi9apjyi.js → use-inventory-binding-dialog-Df4UAdJI.js} +2 -2
- package/dist/{use-template-enabled-locations-2-O3ZhiZZh.js → use-template-enabled-locations-2-CNT1brYI.js} +2 -2
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +33 -24
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +0 -2
- package/dist/{vue-i18n-CENkBqAq.js → vue-i18n-BaovYGY4.js} +261 -261
- package/dist/{xlsx-4GCA4Tii.js → xlsx-Dig-xBj4.js} +398 -398
- package/dist/{xlsx.util-CKWTiA4e.js → xlsx.util-R4tPgyBp.js} +1 -1
- package/package.json +3 -2
- package/dist/DeliveryOrderPrintPreview-ByVgM1qY.js +0 -207
- package/dist/PurchaseOrderPrintPreview-DeMPQ_H4.js +0 -158
- package/dist/RecipeView-BtGFm_W9.js +0 -1691
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-inventory-portal",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7-dev.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"handlebars": "^4.7.8",
|
|
39
39
|
"libphonenumber-js": "^1.11.18",
|
|
40
40
|
"lodash": "^4.17.20",
|
|
41
|
+
"lz-string": "^1.5.0",
|
|
41
42
|
"node-html-parser": "^7.0.1",
|
|
42
43
|
"pinia": "^2.1.7",
|
|
43
44
|
"vue": "^3.5.13",
|
|
@@ -46,10 +47,10 @@
|
|
|
46
47
|
"vue-router": "^4.4.0",
|
|
47
48
|
"xlsx": "^0.18.5",
|
|
48
49
|
"@feedmepos/inventory-core": "^1.0.1-dev.2",
|
|
50
|
+
"@feedmepos/inventory-core-2": "^2.0.0",
|
|
49
51
|
"@feedmepos/inventory-core-dart": "^1.0.0",
|
|
50
52
|
"@feedmepos/inventory-core-js": "^1.0.1",
|
|
51
53
|
"@feedmepos/netsuite-core": "^1.0.0",
|
|
52
|
-
"@feedmepos/inventory-core-2": "^2.0.0",
|
|
53
54
|
"@feedmepos/zod-inventory": "^2.0.0"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, computed as f, ref as h, onMounted as _, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as g } from "vue";
|
|
2
|
-
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { Q as y } from "./app-4lWNOJEf.js";
|
|
4
|
-
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "subtitle"
|
|
8
|
-
}, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" }, U = { class: "purchase-body" }, B = { class: "text-left" }, H = { class: "text-left" }, L = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-left" }, J = { class: "text-right" }, Q = { key: 0 }, j = {
|
|
9
|
-
key: 1,
|
|
10
|
-
style: { "padding-top": "30px" }
|
|
11
|
-
}, z = { valign: "bottom" }, G = { class: "header" }, K = { class: "caption" }, W = {
|
|
12
|
-
class: "text-left",
|
|
13
|
-
style: { width: "20%" }
|
|
14
|
-
}, X = { class: "text-left" }, Y = {
|
|
15
|
-
class: "text-right",
|
|
16
|
-
style: { width: "15%" }
|
|
17
|
-
}, Z = {
|
|
18
|
-
class: "text-right",
|
|
19
|
-
style: { width: "15%" }
|
|
20
|
-
}, $ = /* @__PURE__ */ x({
|
|
21
|
-
__name: "DeliveryOrderPrintPreview",
|
|
22
|
-
setup(tt) {
|
|
23
|
-
f(() => {
|
|
24
|
-
switch (s.value.status) {
|
|
25
|
-
case y.enum.CANCEL:
|
|
26
|
-
return "#FF0000";
|
|
27
|
-
case y.enum.COMPLETE:
|
|
28
|
-
return "#00D065";
|
|
29
|
-
default:
|
|
30
|
-
return "#7A7A7A";
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
const b = k(), s = h(JSON.parse(b.query.data));
|
|
34
|
-
return _(async () => {
|
|
35
|
-
setTimeout(() => window.print(), 500);
|
|
36
|
-
}), (lt, l) => (u(), i("div", c, [
|
|
37
|
-
t("table", null, [
|
|
38
|
-
t("tr", A, [
|
|
39
|
-
t("td", null, [
|
|
40
|
-
t("div", N, [
|
|
41
|
-
t("img", {
|
|
42
|
-
class: "logo",
|
|
43
|
-
src: s.value.logo,
|
|
44
|
-
alt: "logo"
|
|
45
|
-
}, null, 8, O)
|
|
46
|
-
])
|
|
47
|
-
]),
|
|
48
|
-
t("td", null, [
|
|
49
|
-
t("div", P, [
|
|
50
|
-
t("div", C, [
|
|
51
|
-
t("div", null, [
|
|
52
|
-
n(e(s.value.businessName), 1),
|
|
53
|
-
l[0] || (l[0] = t("br", null, null, -1)),
|
|
54
|
-
l[1] || (l[1] = n(" 7, Jalan Penyajak U1/45A, ")),
|
|
55
|
-
l[2] || (l[2] = t("br", null, null, -1)),
|
|
56
|
-
l[3] || (l[3] = n(" Hicom-Glenmarie Industrial Park ")),
|
|
57
|
-
l[4] || (l[4] = t("br", null, null, -1)),
|
|
58
|
-
l[5] || (l[5] = n(" Shah Alam Selangor 40150 ")),
|
|
59
|
-
l[6] || (l[6] = t("br", null, null, -1)),
|
|
60
|
-
l[7] || (l[7] = n(" Malaysia "))
|
|
61
|
-
])
|
|
62
|
-
])
|
|
63
|
-
])
|
|
64
|
-
]),
|
|
65
|
-
t("td", D, [
|
|
66
|
-
l[8] || (l[8] = t("div", { class: "title" }, "Delivery Order", -1)),
|
|
67
|
-
s.value.fulfillmentId ? (u(), i("div", R, "#" + e(s.value.fulfillmentId), 1)) : d("", !0),
|
|
68
|
-
t("div", null, e(s.value.createdAt), 1)
|
|
69
|
-
])
|
|
70
|
-
])
|
|
71
|
-
]),
|
|
72
|
-
l[23] || (l[23] = t("hr", null, null, -1)),
|
|
73
|
-
t("table", null, [
|
|
74
|
-
t("tr", null, [
|
|
75
|
-
t("td", null, [
|
|
76
|
-
l[13] || (l[13] = t("div", { class: "header" }, "Bill To", -1)),
|
|
77
|
-
t("div", S, e(s.value.supplier.name), 1),
|
|
78
|
-
t("div", E, e(s.value.supplier.registrationNumber), 1),
|
|
79
|
-
t("div", T, [
|
|
80
|
-
n(e(s.value.supplier.line1), 1),
|
|
81
|
-
l[10] || (l[10] = t("br", null, null, -1)),
|
|
82
|
-
s.value.supplier.line2 ? (u(), i(o, { key: 0 }, [
|
|
83
|
-
n(e(s.value.supplier.line2), 1),
|
|
84
|
-
l[9] || (l[9] = t("br", null, null, -1))
|
|
85
|
-
], 64)) : d("", !0),
|
|
86
|
-
n(" " + e(s.value.supplier.postcode) + " " + e(s.value.supplier.city) + " ", 1),
|
|
87
|
-
l[11] || (l[11] = t("br", null, null, -1)),
|
|
88
|
-
n(" " + e(s.value.supplier.state) + " " + e(s.value.supplier.country) + " ", 1),
|
|
89
|
-
l[12] || (l[12] = t("br", null, null, -1))
|
|
90
|
-
])
|
|
91
|
-
]),
|
|
92
|
-
t("td", q, [
|
|
93
|
-
l[18] || (l[18] = t("div", { class: "header" }, "Ship To", -1)),
|
|
94
|
-
t("div", F, e(s.value.buyer.name), 1),
|
|
95
|
-
t("div", I, [
|
|
96
|
-
n(e(s.value.buyer.line1), 1),
|
|
97
|
-
l[15] || (l[15] = t("br", null, null, -1)),
|
|
98
|
-
s.value.buyer.line2 ? (u(), i(o, { key: 0 }, [
|
|
99
|
-
n(e(s.value.buyer.line2), 1),
|
|
100
|
-
l[14] || (l[14] = t("br", null, null, -1))
|
|
101
|
-
], 64)) : d("", !0),
|
|
102
|
-
n(" " + e(s.value.buyer.postcode) + " " + e(s.value.buyer.city) + " ", 1),
|
|
103
|
-
l[16] || (l[16] = t("br", null, null, -1)),
|
|
104
|
-
n(" " + e(s.value.buyer.state) + " " + e(s.value.buyer.country) + " ", 1),
|
|
105
|
-
l[17] || (l[17] = t("br", null, null, -1))
|
|
106
|
-
])
|
|
107
|
-
])
|
|
108
|
-
])
|
|
109
|
-
]),
|
|
110
|
-
t("div", U, [
|
|
111
|
-
t("table", null, [
|
|
112
|
-
l[19] || (l[19] = t("thead", { class: "item-header" }, [
|
|
113
|
-
t("tr", null, [
|
|
114
|
-
t("th", {
|
|
115
|
-
class: "text-left",
|
|
116
|
-
style: { width: "10%" }
|
|
117
|
-
}, "ORD #"),
|
|
118
|
-
t("th", {
|
|
119
|
-
class: "text-left",
|
|
120
|
-
style: { width: "20%" }
|
|
121
|
-
}, "Created From"),
|
|
122
|
-
t("th", {
|
|
123
|
-
class: "text-left",
|
|
124
|
-
style: { width: "10%" }
|
|
125
|
-
}, "Phone")
|
|
126
|
-
])
|
|
127
|
-
], -1)),
|
|
128
|
-
t("tbody", null, [
|
|
129
|
-
t("tr", null, [
|
|
130
|
-
t("td", B, e(s.value.orderNumber), 1),
|
|
131
|
-
t("td", H, e(s.value.ref), 1),
|
|
132
|
-
t("td", L, e(s.value.supplier.phoneNumber), 1)
|
|
133
|
-
])
|
|
134
|
-
])
|
|
135
|
-
]),
|
|
136
|
-
t("table", null, [
|
|
137
|
-
l[20] || (l[20] = t("thead", { class: "item-header" }, [
|
|
138
|
-
t("tr", null, [
|
|
139
|
-
t("th", {
|
|
140
|
-
class: "text-left",
|
|
141
|
-
style: { width: "10%" }
|
|
142
|
-
}, "No."),
|
|
143
|
-
t("th", { class: "text-left" }, "Item"),
|
|
144
|
-
t("th", {
|
|
145
|
-
class: "text-right",
|
|
146
|
-
style: { width: "10%" }
|
|
147
|
-
}, "Quantity"),
|
|
148
|
-
t("th", {
|
|
149
|
-
class: "text-right",
|
|
150
|
-
style: { width: "20%" }
|
|
151
|
-
}, "Units")
|
|
152
|
-
])
|
|
153
|
-
], -1)),
|
|
154
|
-
t("tbody", null, [
|
|
155
|
-
(u(!0), i(o, null, p(s.value.items, (r, a) => (u(), i("tr", { key: a }, [
|
|
156
|
-
t("td", M, e(a + 1), 1),
|
|
157
|
-
t("td", V, e(r.description), 1),
|
|
158
|
-
t("td", {
|
|
159
|
-
class: g(["text-right", {
|
|
160
|
-
"text-green-5": r.received == r.quantity,
|
|
161
|
-
"text-danger": !r.received,
|
|
162
|
-
"text-warning": r.received != r.quantity
|
|
163
|
-
}])
|
|
164
|
-
}, e(r.received + "/" + r.quantity), 3),
|
|
165
|
-
t("td", J, e(r.unit), 1)
|
|
166
|
-
]))), 128))
|
|
167
|
-
])
|
|
168
|
-
])
|
|
169
|
-
]),
|
|
170
|
-
l[24] || (l[24] = t("hr", null, null, -1)),
|
|
171
|
-
s.value.remark ? (u(), i("div", Q, "Remark: " + e(s.value.remark), 1)) : d("", !0),
|
|
172
|
-
s.value.deliveryOrders.length > 0 ? (u(), i("div", j, [
|
|
173
|
-
l[21] || (l[21] = t("hr", null, null, -1)),
|
|
174
|
-
l[22] || (l[22] = n(" Delivery History: ")),
|
|
175
|
-
(u(!0), i(o, null, p(s.value.deliveryOrders, (r, a) => (u(), i("div", {
|
|
176
|
-
key: a,
|
|
177
|
-
style: { padding: "10px 30px" }
|
|
178
|
-
}, [
|
|
179
|
-
t("table", null, [
|
|
180
|
-
t("tr", z, [
|
|
181
|
-
t("td", null, [
|
|
182
|
-
t("div", G, "Ref: " + e(r.ref), 1),
|
|
183
|
-
t("div", K, e(r.createdAt), 1),
|
|
184
|
-
t("div", null, "Remark: " + e(r.remark), 1)
|
|
185
|
-
])
|
|
186
|
-
])
|
|
187
|
-
]),
|
|
188
|
-
t("div", null, [
|
|
189
|
-
t("table", null, [
|
|
190
|
-
t("tbody", null, [
|
|
191
|
-
(u(!0), i(o, null, p(r.items, (v, m) => (u(), i("tr", { key: m }, [
|
|
192
|
-
t("td", W, e(v.code), 1),
|
|
193
|
-
t("td", X, e(v.description), 1),
|
|
194
|
-
t("td", Y, e(v.quantity), 1),
|
|
195
|
-
t("td", Z, e(v.unit), 1)
|
|
196
|
-
]))), 128))
|
|
197
|
-
])
|
|
198
|
-
])
|
|
199
|
-
])
|
|
200
|
-
]))), 128))
|
|
201
|
-
])) : d("", !0)
|
|
202
|
-
]));
|
|
203
|
-
}
|
|
204
|
-
}), ut = /* @__PURE__ */ w($, [["__scopeId", "data-v-452e2aad"]]);
|
|
205
|
-
export {
|
|
206
|
-
ut as default
|
|
207
|
-
};
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, computed as m, ref as x, onMounted as f, openBlock as u, createElementBlock as n, createElementVNode as t, toDisplayString as e, normalizeStyle as g, createTextVNode as i, Fragment as o, createCommentVNode as v, renderList as p } from "vue";
|
|
2
|
-
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { Q as y } from "./app-4lWNOJEf.js";
|
|
4
|
-
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const N = { class: "purchase-box" }, A = { valign: "bottom" }, C = { class: "title" }, R = { class: "text-right" }, O = { class: "header" }, P = { class: "sub-header" }, D = { class: "caption" }, E = { class: "address" }, S = { class: "text-right" }, T = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "sub-header"
|
|
8
|
-
}, F = { class: "sub-header" }, q = { class: "address" }, L = { class: "purchase-body" }, U = { class: "text-left" }, V = { class: "text-left" }, B = { class: "text-right" }, H = { class: "text-right" }, I = { class: "text-right" }, M = { style: { "padding-top": "30px" } }, Q = { valign: "bottom" }, z = { class: "header" }, J = { class: "caption" }, j = {
|
|
9
|
-
class: "text-left",
|
|
10
|
-
style: { width: "20%" }
|
|
11
|
-
}, G = { class: "text-left" }, K = {
|
|
12
|
-
class: "text-right",
|
|
13
|
-
style: { width: "15%" }
|
|
14
|
-
}, W = {
|
|
15
|
-
class: "text-right",
|
|
16
|
-
style: { width: "15%" }
|
|
17
|
-
}, X = /* @__PURE__ */ b({
|
|
18
|
-
__name: "PurchaseOrderPrintPreview",
|
|
19
|
-
setup(Y) {
|
|
20
|
-
const c = m(() => {
|
|
21
|
-
switch (s.value.status) {
|
|
22
|
-
case y.enum.CANCEL:
|
|
23
|
-
return "#FF0000";
|
|
24
|
-
case y.enum.COMPLETE:
|
|
25
|
-
return "#00D065";
|
|
26
|
-
default:
|
|
27
|
-
return "#7A7A7A";
|
|
28
|
-
}
|
|
29
|
-
}), _ = k(), s = x(JSON.parse(_.query.data));
|
|
30
|
-
return f(async () => {
|
|
31
|
-
setTimeout(() => window.print(), 500);
|
|
32
|
-
}), (Z, l) => (u(), n("div", N, [
|
|
33
|
-
t("table", null, [
|
|
34
|
-
t("tr", A, [
|
|
35
|
-
t("td", null, [
|
|
36
|
-
t("div", C, e(s.value.title ?? "Inventory Order"), 1),
|
|
37
|
-
t("div", null, "Ref: " + e(s.value.ref), 1),
|
|
38
|
-
t("div", {
|
|
39
|
-
style: g({ color: c.value })
|
|
40
|
-
}, e(s.value.status), 5)
|
|
41
|
-
]),
|
|
42
|
-
t("td", R, [
|
|
43
|
-
t("div", O, "ORD #" + e(s.value.orderNumber), 1),
|
|
44
|
-
t("div", null, e(s.value.createdAt), 1)
|
|
45
|
-
])
|
|
46
|
-
])
|
|
47
|
-
]),
|
|
48
|
-
l[13] || (l[13] = t("hr", null, null, -1)),
|
|
49
|
-
t("table", null, [
|
|
50
|
-
t("tr", null, [
|
|
51
|
-
t("td", null, [
|
|
52
|
-
l[4] || (l[4] = t("div", { class: "header" }, "Supplier", -1)),
|
|
53
|
-
t("div", P, e(s.value.supplier.name), 1),
|
|
54
|
-
t("div", D, e(s.value.supplier.registrationNumber), 1),
|
|
55
|
-
t("div", E, [
|
|
56
|
-
i(e(s.value.supplier.line1), 1),
|
|
57
|
-
l[1] || (l[1] = t("br", null, null, -1)),
|
|
58
|
-
s.value.supplier.line2 ? (u(), n(o, { key: 0 }, [
|
|
59
|
-
i(e(s.value.supplier.line2), 1),
|
|
60
|
-
l[0] || (l[0] = t("br", null, null, -1))
|
|
61
|
-
], 64)) : v("", !0),
|
|
62
|
-
i(" " + e(s.value.supplier.postcode) + " " + e(s.value.supplier.city) + " ", 1),
|
|
63
|
-
l[2] || (l[2] = t("br", null, null, -1)),
|
|
64
|
-
i(" " + e(s.value.supplier.state) + " " + e(s.value.supplier.country) + " ", 1),
|
|
65
|
-
l[3] || (l[3] = t("br", null, null, -1))
|
|
66
|
-
])
|
|
67
|
-
]),
|
|
68
|
-
t("td", S, [
|
|
69
|
-
l[9] || (l[9] = t("div", { class: "header" }, "Delivery To", -1)),
|
|
70
|
-
s.value.buyer.legalName ? (u(), n("div", T, e(s.value.buyer.legalName), 1)) : v("", !0),
|
|
71
|
-
t("div", F, e(s.value.buyer.name), 1),
|
|
72
|
-
t("div", q, [
|
|
73
|
-
i(e(s.value.buyer.line1), 1),
|
|
74
|
-
l[6] || (l[6] = t("br", null, null, -1)),
|
|
75
|
-
s.value.buyer.line2 ? (u(), n(o, { key: 0 }, [
|
|
76
|
-
i(e(s.value.buyer.line2), 1),
|
|
77
|
-
l[5] || (l[5] = t("br", null, null, -1))
|
|
78
|
-
], 64)) : v("", !0),
|
|
79
|
-
i(" " + e(s.value.buyer.postcode) + " " + e(s.value.buyer.city) + " ", 1),
|
|
80
|
-
l[7] || (l[7] = t("br", null, null, -1)),
|
|
81
|
-
i(" " + e(s.value.buyer.state) + " " + e(s.value.buyer.country) + " ", 1),
|
|
82
|
-
l[8] || (l[8] = t("br", null, null, -1))
|
|
83
|
-
])
|
|
84
|
-
])
|
|
85
|
-
])
|
|
86
|
-
]),
|
|
87
|
-
t("div", L, [
|
|
88
|
-
t("table", null, [
|
|
89
|
-
l[10] || (l[10] = t("thead", { class: "item-header" }, [
|
|
90
|
-
t("tr", null, [
|
|
91
|
-
t("th", {
|
|
92
|
-
class: "text-left",
|
|
93
|
-
style: { width: "20%" }
|
|
94
|
-
}, "Code"),
|
|
95
|
-
t("th", { class: "text-left" }, "Description"),
|
|
96
|
-
t("th", {
|
|
97
|
-
class: "text-right",
|
|
98
|
-
style: { width: "10%" }
|
|
99
|
-
}, "Quantity"),
|
|
100
|
-
t("th", {
|
|
101
|
-
class: "text-right",
|
|
102
|
-
style: { width: "15%" }
|
|
103
|
-
}, "Unit"),
|
|
104
|
-
t("th", {
|
|
105
|
-
class: "text-right",
|
|
106
|
-
style: { width: "15%" }
|
|
107
|
-
}, "Cost")
|
|
108
|
-
])
|
|
109
|
-
], -1)),
|
|
110
|
-
t("tbody", null, [
|
|
111
|
-
(u(!0), n(o, null, p(s.value.items, (r, a) => (u(), n("tr", { key: a }, [
|
|
112
|
-
t("td", U, e(r.code), 1),
|
|
113
|
-
t("td", V, e(r.description), 1),
|
|
114
|
-
t("td", B, e(r.quantity), 1),
|
|
115
|
-
t("td", H, e(r.unit), 1),
|
|
116
|
-
t("td", I, e(r.cost ? r.cost : "N/A"), 1)
|
|
117
|
-
]))), 128))
|
|
118
|
-
])
|
|
119
|
-
])
|
|
120
|
-
]),
|
|
121
|
-
l[14] || (l[14] = t("hr", null, null, -1)),
|
|
122
|
-
t("div", null, "Remark: " + e(s.value.remark), 1),
|
|
123
|
-
t("div", M, [
|
|
124
|
-
l[11] || (l[11] = t("hr", null, null, -1)),
|
|
125
|
-
l[12] || (l[12] = i(" Delivery History: ")),
|
|
126
|
-
(u(!0), n(o, null, p(s.value.deliveryOrders, (r, a) => (u(), n("div", {
|
|
127
|
-
key: a,
|
|
128
|
-
style: { padding: "10px 30px" }
|
|
129
|
-
}, [
|
|
130
|
-
t("table", null, [
|
|
131
|
-
t("tr", Q, [
|
|
132
|
-
t("td", null, [
|
|
133
|
-
t("div", z, "Ref: " + e(r.ref), 1),
|
|
134
|
-
t("div", J, e(r.createdAt), 1),
|
|
135
|
-
t("div", null, "Remark: " + e(r.remark), 1)
|
|
136
|
-
])
|
|
137
|
-
])
|
|
138
|
-
]),
|
|
139
|
-
t("div", null, [
|
|
140
|
-
t("table", null, [
|
|
141
|
-
t("tbody", null, [
|
|
142
|
-
(u(!0), n(o, null, p(r.items, (d, h) => (u(), n("tr", { key: h }, [
|
|
143
|
-
t("td", j, e(d.code), 1),
|
|
144
|
-
t("td", G, e(d.description), 1),
|
|
145
|
-
t("td", K, e(d.quantity), 1),
|
|
146
|
-
t("td", W, e(d.unit), 1)
|
|
147
|
-
]))), 128))
|
|
148
|
-
])
|
|
149
|
-
])
|
|
150
|
-
])
|
|
151
|
-
]))), 128))
|
|
152
|
-
])
|
|
153
|
-
]));
|
|
154
|
-
}
|
|
155
|
-
}), st = /* @__PURE__ */ w(X, [["__scopeId", "data-v-8af65d1d"]]);
|
|
156
|
-
export {
|
|
157
|
-
st as default
|
|
158
|
-
};
|