@fewangsit/wangsvue-fats 1.0.1-alpha.68 → 1.0.1-alpha.69
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/animation/index.es.js +9 -8
- package/assetinfo/index.d.ts +5 -4
- package/assetinfo/index.es.js +113 -97
- package/backgroundimagecropper/index.es.js +14 -12
- package/button/index.es.js +58 -48
- package/buttonbulkaction/index.es.js +67 -59
- package/buttondownload/index.es.js +18 -18
- package/buttonradio/index.es.js +11 -11
- package/buttonscan/index.es.js +1 -1
- package/buttonsearch/index.es.js +14 -14
- package/buttonselectuser/index.es.js +29 -29
- package/checkbox/index.es.js +5 -5
- package/config/defaultProps.es.js +3 -4
- package/datatable/index.es.js +470 -465
- package/datepicker/index.es.js +17 -17
- package/daypicker/index.es.js +21 -21
- package/dialog/index.es.js +17 -15
- package/dialogbasictransferlog/index.es.js +89 -89
- package/dialogconfirm/index.es.js +33 -33
- package/dialogdamagelog/index.es.js +89 -89
- package/dialogform/index.es.js +16 -16
- package/dialogfulltransferlog/index.es.js +96 -96
- package/dialoglinkedasset/index.es.js +48 -48
- package/dialogprintqr/index.es.js +70 -70
- package/dialogreportdamage/index.es.js +57 -57
- package/dialogreportmissing/index.es.js +94 -86
- package/dialogselecttree/index.es.js +18 -16
- package/dialogselectuser/index.es.js +16 -16
- package/directives/index.d.ts +1 -0
- package/directives/index.es.js +1 -0
- package/directives/safeHtml.d.ts +16 -0
- package/directives/safeHtml.es.js +12 -0
- package/disposalreport/index.es.js +1 -1
- package/disposalreportbulkaction/index.es.js +40 -41
- package/disposalreportdialogselectasset/index.es.js +72 -72
- package/disposalreporttable/index.es.js +108 -108
- package/disposalreporttablefilter/index.es.js +16 -17
- package/dropdown/index.es.js +120 -117
- package/fieldwrapper/index.es.js +7 -7
- package/fileupload/index.es.js +35 -31
- package/hardwaresync/index.es.js +12 -12
- package/headercell/index.es.js +4 -4
- package/icon/index.es.js +26 -25
- package/imagecompressor/index.es.js +143 -143
- package/imageinputinfo/index.es.js +13 -13
- package/inlinemessage/index.es.js +12 -12
- package/inputbadge/index.es.js +42 -43
- package/inputnumber/index.es.js +7 -7
- package/inputpassword/index.es.js +9 -9
- package/inputrangenumber/index.es.js +16 -16
- package/inputsearch/index.es.js +18 -18
- package/inputtext/index.es.js +33 -33
- package/litedropdown/index.es.js +48 -40
- package/menuitem/index.es.js +27 -26
- package/multirow/index.es.js +16 -16
- package/multiselect/index.es.js +86 -83
- package/package.json +1 -1
- package/plugins/basei18n.d.ts +2 -2
- package/plugins/basei18n.es.js +48 -42
- package/stats.html +1 -1
- package/style.css +1 -1
- package/tabmenu/index.es.js +14 -9
- package/tagtype/index.es.js +33 -30
- package/textarea/index.es.js +3 -3
- package/toggledarkmode/store/index.d.ts +7 -0
- package/toggleswitch/index.es.js +3 -3
- package/treesearchinput/index.es.js +11 -11
- package/username/index.es.js +39 -39
- package/utils/baseToast.util.es.js +23 -22
- package/utils/index.es.js +1 -2
- package/utils/textFormatter.util.d.ts +32 -0
- package/utils/textFormatter.util.es.js +38 -10
- package/validatormessage/index.es.js +1 -1
- package/vendor/dompurify/dist/purify.es.es.js +553 -0
- package/wangsvue-fats.d.ts +2 -1
- package/wangsvue-fats.es.js +190 -186
- package/wangsvue-fats.esm.browser.js +17750 -17086
- package/wangsvue-fats.system.js +73 -72
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as Y, onMounted as Z, shallowRef as
|
|
2
|
-
import { AssetServices as
|
|
1
|
+
import { defineComponent as Y, onMounted as Z, shallowRef as m, ref as ee, createElementBlock as te, openBlock as se, Fragment as ae, createElementVNode as c, createVNode as l, mergeProps as oe, withCtx as re, toDisplayString as k, unref as M } from "vue";
|
|
2
|
+
import { AssetServices as _, DisposalServices as ne, DamageServices as T, MissingServices as N } from "@tagsamurai/fats-api-services";
|
|
3
3
|
import { u as le } from "../assetinfo/index.es.js";
|
|
4
4
|
import { u as ie } from "../plugins/basei18n.es.js";
|
|
5
5
|
import "../utils/role.util.es.js";
|
|
6
6
|
import { u as de } from "../utils/toast.util.es.js";
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
7
|
+
import { _ as D } from "../badge/index.es.js";
|
|
8
|
+
import { _ as h } from "../button/index.es.js";
|
|
9
9
|
import { _ as pe } from "../buttonfilter/index.es.js";
|
|
10
10
|
import { _ as ue } from "../buttonsearch/index.es.js";
|
|
11
11
|
import { D as me } from "../datatable/index.es.js";
|
|
@@ -18,7 +18,7 @@ import { _ as ve } from "../disposalreporttablefilter/index.es.js";
|
|
|
18
18
|
const be = {
|
|
19
19
|
class: "flex flex-col gap-2",
|
|
20
20
|
"data-ts-section": "disposalreporttablewrapper"
|
|
21
|
-
},
|
|
21
|
+
}, _e = { class: "flex gap-1 justify-end" }, De = { class: "flex gap-1 justify-end" }, Le = /* @__PURE__ */ Y({
|
|
22
22
|
__name: "DisposalReportTable",
|
|
23
23
|
props: {
|
|
24
24
|
treeTable: { type: Boolean },
|
|
@@ -61,13 +61,13 @@ const be = {
|
|
|
61
61
|
from: {}
|
|
62
62
|
},
|
|
63
63
|
setup(E) {
|
|
64
|
-
const
|
|
64
|
+
const i = E;
|
|
65
65
|
Z(() => {
|
|
66
66
|
L();
|
|
67
67
|
});
|
|
68
|
-
const
|
|
68
|
+
const p = de(), { t: I } = ie(), { setLoading: u } = le(), f = m(!1), g = m(!1), y = m(!1), x = m([]), v = m(), r = m(
|
|
69
69
|
[]
|
|
70
|
-
),
|
|
70
|
+
), d = ee(
|
|
71
71
|
/* @__PURE__ */ new Map()
|
|
72
72
|
), P = [
|
|
73
73
|
{
|
|
@@ -110,7 +110,7 @@ const be = {
|
|
|
110
110
|
bodyComponent: (s) => {
|
|
111
111
|
var e;
|
|
112
112
|
return {
|
|
113
|
-
component:
|
|
113
|
+
component: D,
|
|
114
114
|
props: {
|
|
115
115
|
label: (e = s.brand) == null ? void 0 : e.name,
|
|
116
116
|
severity: "dark"
|
|
@@ -126,7 +126,7 @@ const be = {
|
|
|
126
126
|
bodyComponent: (s) => {
|
|
127
127
|
var e;
|
|
128
128
|
return {
|
|
129
|
-
component:
|
|
129
|
+
component: D,
|
|
130
130
|
props: {
|
|
131
131
|
label: (e = s.model) == null ? void 0 : e.name,
|
|
132
132
|
severity: "dark"
|
|
@@ -142,7 +142,7 @@ const be = {
|
|
|
142
142
|
bodyComponent: (s) => {
|
|
143
143
|
var e;
|
|
144
144
|
return {
|
|
145
|
-
component:
|
|
145
|
+
component: D,
|
|
146
146
|
props: {
|
|
147
147
|
label: (e = s.group) == null ? void 0 : e.name
|
|
148
148
|
}
|
|
@@ -158,16 +158,16 @@ const be = {
|
|
|
158
158
|
return {
|
|
159
159
|
component: fe,
|
|
160
160
|
props: {
|
|
161
|
-
modelValue: (e =
|
|
162
|
-
placeholder:
|
|
161
|
+
modelValue: (e = d.value.get(s._id ?? "assetId")) == null ? void 0 : e.notes,
|
|
162
|
+
placeholder: "Enter note",
|
|
163
163
|
rows: 1,
|
|
164
164
|
maxlength: 30,
|
|
165
165
|
preventInputOnMaxLength: !0
|
|
166
166
|
},
|
|
167
167
|
events: {
|
|
168
168
|
"update:modelValue": (t) => {
|
|
169
|
-
const o =
|
|
170
|
-
|
|
169
|
+
const o = d.value.get(s._id ?? "assetId");
|
|
170
|
+
d.value.set(s._id ?? "assetId", {
|
|
171
171
|
...o,
|
|
172
172
|
notes: t
|
|
173
173
|
}), s.note = t;
|
|
@@ -179,62 +179,62 @@ const be = {
|
|
|
179
179
|
], L = async () => {
|
|
180
180
|
const s = sessionStorage.getItem("assetsDisposalReport");
|
|
181
181
|
if (!s) {
|
|
182
|
-
|
|
183
|
-
message:
|
|
182
|
+
p.add({
|
|
183
|
+
message: "Error, no assets found for disposal report.",
|
|
184
184
|
severity: "error"
|
|
185
185
|
});
|
|
186
186
|
return;
|
|
187
187
|
}
|
|
188
188
|
try {
|
|
189
|
-
|
|
190
|
-
const { data: e } = await
|
|
189
|
+
u(!0);
|
|
190
|
+
const { data: e } = await _.getAllAssets({ _id: s });
|
|
191
191
|
e.data.data.forEach((t) => {
|
|
192
|
-
|
|
192
|
+
d.value.set(t._id ?? "", {
|
|
193
193
|
notes: null,
|
|
194
|
-
reason: ["Damaged", "Missing"].includes(t.status) ? t.status :
|
|
194
|
+
reason: ["Damaged", "Missing"].includes(t.status) ? t.status : i.reason
|
|
195
195
|
});
|
|
196
|
-
}),
|
|
196
|
+
}), r.value = e.data.data;
|
|
197
197
|
} catch (e) {
|
|
198
|
-
console.error(e),
|
|
198
|
+
console.error(e), p.add({
|
|
199
199
|
error: e,
|
|
200
200
|
message: "Error, failed to get assets. "
|
|
201
201
|
});
|
|
202
202
|
} finally {
|
|
203
|
-
|
|
203
|
+
u(!1);
|
|
204
204
|
}
|
|
205
205
|
}, q = [
|
|
206
206
|
{
|
|
207
|
-
label:
|
|
207
|
+
label: "Remove from List",
|
|
208
208
|
icon: "delete-bin",
|
|
209
209
|
danger: !0,
|
|
210
210
|
command: () => {
|
|
211
|
-
|
|
211
|
+
g.value = !0;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
],
|
|
215
|
-
|
|
214
|
+
], w = (s) => {
|
|
215
|
+
r.value = r.value.filter(
|
|
216
216
|
(e) => !s.some((t) => e._id === t._id)
|
|
217
217
|
), F(s);
|
|
218
218
|
}, F = (s) => {
|
|
219
219
|
s.forEach((e) => {
|
|
220
|
-
|
|
221
|
-
}),
|
|
222
|
-
message:
|
|
220
|
+
d.value.delete(e._id ?? "");
|
|
221
|
+
}), r.value.length || b(), p.add({
|
|
222
|
+
message: "Success, asset has been removed from the list.",
|
|
223
223
|
severity: "success"
|
|
224
224
|
});
|
|
225
225
|
}, J = (s, e) => {
|
|
226
226
|
s.forEach((t) => {
|
|
227
|
-
|
|
227
|
+
d.value.set(t._id ?? "", {
|
|
228
228
|
notes: e ?? null,
|
|
229
|
-
reason: ["Damaged", "Missing"].includes(t.status) ? t.status :
|
|
229
|
+
reason: ["Damaged", "Missing"].includes(t.status) ? t.status : i.reason
|
|
230
230
|
});
|
|
231
231
|
});
|
|
232
|
-
},
|
|
232
|
+
}, b = () => {
|
|
233
233
|
const s = window.location.pathname, e = s.slice(0, s.lastIndexOf("/"));
|
|
234
|
-
|
|
234
|
+
i.router.replace(e), sessionStorage.removeItem("assetsDisposalReport");
|
|
235
235
|
}, U = async () => {
|
|
236
236
|
const s = [];
|
|
237
|
-
|
|
237
|
+
d.value.forEach((e, t) => {
|
|
238
238
|
const o = {
|
|
239
239
|
asset: t,
|
|
240
240
|
notes: e.notes,
|
|
@@ -243,25 +243,25 @@ const be = {
|
|
|
243
243
|
s.push(o);
|
|
244
244
|
});
|
|
245
245
|
try {
|
|
246
|
-
|
|
247
|
-
message:
|
|
248
|
-
}),
|
|
246
|
+
u(!0), await ne.postReportDisposal({ data: s }), p.add({
|
|
247
|
+
message: "Success, disposal report has been submitted."
|
|
248
|
+
}), b();
|
|
249
249
|
} catch (e) {
|
|
250
|
-
console.error(e),
|
|
250
|
+
console.error(e), p.add({
|
|
251
251
|
error: e,
|
|
252
|
-
message:
|
|
252
|
+
message: "Error, failed to submit disposal report."
|
|
253
253
|
});
|
|
254
254
|
} finally {
|
|
255
|
-
|
|
255
|
+
u(!1);
|
|
256
256
|
}
|
|
257
257
|
}, G = async (s) => {
|
|
258
258
|
try {
|
|
259
|
-
|
|
259
|
+
u(!0);
|
|
260
260
|
const e = s.map((t) => {
|
|
261
|
-
var o, a,
|
|
262
|
-
return
|
|
261
|
+
var o, a, n, R, A, S, O, C, B;
|
|
262
|
+
return d.value.set(t.asset ?? "", {
|
|
263
263
|
notes: null,
|
|
264
|
-
reason: ["Damaged", "Missing"].includes(t.status) ? t.status :
|
|
264
|
+
reason: ["Damaged", "Missing"].includes(t.status) ? t.status : i.reason
|
|
265
265
|
}), {
|
|
266
266
|
...t,
|
|
267
267
|
reportId: t._id,
|
|
@@ -278,29 +278,29 @@ const be = {
|
|
|
278
278
|
category: {
|
|
279
279
|
_id: (o = t.category) == null ? void 0 : o._id,
|
|
280
280
|
name: (a = t.category) == null ? void 0 : a.name,
|
|
281
|
-
key: (
|
|
281
|
+
key: (n = t.category) == null ? void 0 : n.key
|
|
282
282
|
},
|
|
283
283
|
group: {
|
|
284
|
-
_id: ((
|
|
285
|
-
name: ((
|
|
286
|
-
key: ((
|
|
284
|
+
_id: ((R = t.group) == null ? void 0 : R._id) ?? ((A = t.assetGroup) == null ? void 0 : A._id),
|
|
285
|
+
name: ((S = t.group) == null ? void 0 : S.name) ?? ((O = t.assetGroup) == null ? void 0 : O.name),
|
|
286
|
+
key: ((C = t.group) == null ? void 0 : C.key) ?? ((B = t.assetGroup) == null ? void 0 : B.key)
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
289
|
});
|
|
290
|
-
|
|
290
|
+
r.value = r.value.concat(e);
|
|
291
291
|
} catch (e) {
|
|
292
|
-
console.error(e),
|
|
292
|
+
console.error(e), p.add({
|
|
293
293
|
error: e,
|
|
294
294
|
message: "Error, failed to add asset.",
|
|
295
295
|
severity: "error"
|
|
296
296
|
});
|
|
297
297
|
} finally {
|
|
298
|
-
|
|
298
|
+
u(!1);
|
|
299
299
|
}
|
|
300
300
|
}, V = async (s) => {
|
|
301
301
|
var a;
|
|
302
302
|
const e = JSON.stringify(
|
|
303
|
-
((a =
|
|
303
|
+
((a = r.value) == null ? void 0 : a.map((n) => n.reportId)) ?? []
|
|
304
304
|
), t = {
|
|
305
305
|
excludeId: e,
|
|
306
306
|
excludeIds: e,
|
|
@@ -311,7 +311,7 @@ const be = {
|
|
|
311
311
|
}, z = async (s) => {
|
|
312
312
|
var a;
|
|
313
313
|
const e = JSON.stringify(
|
|
314
|
-
((a =
|
|
314
|
+
((a = r.value) == null ? void 0 : a.map((n) => n.reportId)) ?? []
|
|
315
315
|
), t = {
|
|
316
316
|
excludeId: e,
|
|
317
317
|
excludeIds: e,
|
|
@@ -322,17 +322,17 @@ const be = {
|
|
|
322
322
|
}, W = async (s) => {
|
|
323
323
|
var a;
|
|
324
324
|
const e = JSON.stringify(
|
|
325
|
-
((a =
|
|
325
|
+
((a = r.value) == null ? void 0 : a.map((n) => n.reportId ?? n._id)) ?? []
|
|
326
326
|
), t = {
|
|
327
327
|
excludeId: e,
|
|
328
328
|
excludeIds: e,
|
|
329
329
|
...s
|
|
330
|
-
}, { data: o } = await
|
|
330
|
+
}, { data: o } = await _.getAllAssets(t);
|
|
331
331
|
return o;
|
|
332
|
-
}, j = async (s) =>
|
|
332
|
+
}, j = async (s) => i.from === "damage" ? V(s) : i.from === "missing" ? z(s) : W(s), H = async (s) => {
|
|
333
333
|
var a;
|
|
334
334
|
const e = JSON.stringify(
|
|
335
|
-
((a =
|
|
335
|
+
((a = r.value) == null ? void 0 : a.map((n) => n.reportId)) ?? []
|
|
336
336
|
), t = {
|
|
337
337
|
excludeId: e,
|
|
338
338
|
excludeIds: e,
|
|
@@ -344,7 +344,7 @@ const be = {
|
|
|
344
344
|
}, K = async (s) => {
|
|
345
345
|
var a;
|
|
346
346
|
const e = JSON.stringify(
|
|
347
|
-
((a =
|
|
347
|
+
((a = r.value) == null ? void 0 : a.map((n) => n.reportId)) ?? []
|
|
348
348
|
), t = {
|
|
349
349
|
excludeId: e,
|
|
350
350
|
excludeIds: e,
|
|
@@ -356,45 +356,45 @@ const be = {
|
|
|
356
356
|
}, Q = async (s) => {
|
|
357
357
|
var a;
|
|
358
358
|
const e = JSON.stringify(
|
|
359
|
-
((a =
|
|
359
|
+
((a = r.value) == null ? void 0 : a.map((n) => n.reportId)) ?? []
|
|
360
360
|
), t = {
|
|
361
361
|
excludeId: e,
|
|
362
362
|
excludeIds: e,
|
|
363
363
|
[s]: !0
|
|
364
|
-
}, { data: o } = await
|
|
364
|
+
}, { data: o } = await _.getAllAssetsOptions(t);
|
|
365
365
|
return o.data[s] ?? [];
|
|
366
|
-
}, X = async (s) =>
|
|
366
|
+
}, X = async (s) => i.from === "damage" ? H(s) : i.from === "missing" ? K(s) : Q(s);
|
|
367
367
|
return (s, e) => (se(), te(ae, null, [
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
"assets-to-report":
|
|
372
|
-
"onUpdate:assetsToReport": e[0] || (e[0] = (t) =>
|
|
373
|
-
"selected-data":
|
|
374
|
-
"onUpdate:selectedData": e[1] || (e[1] = (t) =>
|
|
368
|
+
c("div", be, [
|
|
369
|
+
c("div", _e, [
|
|
370
|
+
l(ge, {
|
|
371
|
+
"assets-to-report": r.value,
|
|
372
|
+
"onUpdate:assetsToReport": e[0] || (e[0] = (t) => r.value = t),
|
|
373
|
+
"selected-data": x.value,
|
|
374
|
+
"onUpdate:selectedData": e[1] || (e[1] = (t) => x.value = t),
|
|
375
375
|
onNoted: J,
|
|
376
|
-
onRemoved: e[2] || (e[2] = (t) =>
|
|
376
|
+
onRemoved: e[2] || (e[2] = (t) => w(t)),
|
|
377
377
|
"table-name": "disposal-report-page-table"
|
|
378
378
|
}, null, 8, ["assets-to-report", "selected-data"]),
|
|
379
|
-
|
|
379
|
+
l(ue, {
|
|
380
380
|
class: "ml-auto",
|
|
381
381
|
"table-name": "disposal-report-page-table"
|
|
382
382
|
}),
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
onClick: e[3] || (e[3] = (t) =>
|
|
383
|
+
l(pe, { "table-name": "disposal-report-page-table" }),
|
|
384
|
+
l(h, {
|
|
385
|
+
onClick: e[3] || (e[3] = (t) => f.value = !0),
|
|
386
386
|
icon: "add",
|
|
387
387
|
label: "Asset"
|
|
388
388
|
})
|
|
389
389
|
]),
|
|
390
|
-
|
|
391
|
-
|
|
390
|
+
l(ve, { "table-name": "disposal-report-page-table" }),
|
|
391
|
+
l(me, oe(s.$props, {
|
|
392
392
|
columns: P,
|
|
393
|
-
data:
|
|
393
|
+
data: r.value,
|
|
394
394
|
lazy: !1,
|
|
395
395
|
options: q,
|
|
396
396
|
rows: 10,
|
|
397
|
-
onToggleOption: e[4] || (e[4] = (t) =>
|
|
397
|
+
onToggleOption: e[4] || (e[4] = (t) => v.value = t),
|
|
398
398
|
"data-key": "_id",
|
|
399
399
|
"rounded-header": "",
|
|
400
400
|
"selection-type": "checkbox",
|
|
@@ -403,51 +403,51 @@ const be = {
|
|
|
403
403
|
"use-paginator": ""
|
|
404
404
|
}), null, 16, ["data"])
|
|
405
405
|
]),
|
|
406
|
-
|
|
407
|
-
visible:
|
|
408
|
-
"onUpdate:visible": e[5] || (e[5] = (t) =>
|
|
406
|
+
l(ye, {
|
|
407
|
+
visible: f.value,
|
|
408
|
+
"onUpdate:visible": e[5] || (e[5] = (t) => f.value = t),
|
|
409
409
|
"fetch-function": j,
|
|
410
410
|
"fetch-option-function": X,
|
|
411
411
|
from: s.from,
|
|
412
412
|
onSelect: G
|
|
413
413
|
}, null, 8, ["visible", "from"]),
|
|
414
|
-
|
|
415
|
-
visible:
|
|
416
|
-
"onUpdate:visible": e[6] || (e[6] = (t) =>
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
414
|
+
l($, {
|
|
415
|
+
visible: g.value,
|
|
416
|
+
"onUpdate:visible": e[6] || (e[6] = (t) => g.value = t),
|
|
417
|
+
lists: [v.value],
|
|
418
|
+
onConfirm: e[7] || (e[7] = (t) => w([v.value])),
|
|
419
|
+
body: "Are you sure you want to remove it?",
|
|
420
|
+
"confirm-label": "Remove",
|
|
421
|
+
header: "Remove from List",
|
|
422
422
|
"list-label": "name.nameWithSequence",
|
|
423
423
|
severity: "danger"
|
|
424
|
-
}, null, 8, ["visible", "
|
|
425
|
-
|
|
426
|
-
visible:
|
|
427
|
-
"onUpdate:visible": e[8] || (e[8] = (t) =>
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
424
|
+
}, null, 8, ["visible", "lists"]),
|
|
425
|
+
l($, {
|
|
426
|
+
visible: y.value,
|
|
427
|
+
"onUpdate:visible": e[8] || (e[8] = (t) => y.value = t),
|
|
428
|
+
onConfirm: b,
|
|
429
|
+
"confirm-label": "Continue",
|
|
430
|
+
header: "Cancel Report",
|
|
431
431
|
severity: "danger"
|
|
432
432
|
}, {
|
|
433
433
|
body: re(() => [
|
|
434
|
-
|
|
435
|
-
|
|
434
|
+
c("p", null, k(M(I)("This action will cancel the disposal report.")), 1),
|
|
435
|
+
c("p", null, k(M(I)("Are you sure you want to continue?")), 1)
|
|
436
436
|
]),
|
|
437
437
|
_: 1
|
|
438
|
-
}, 8, ["visible"
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
438
|
+
}, 8, ["visible"]),
|
|
439
|
+
c("div", De, [
|
|
440
|
+
l(h, {
|
|
441
|
+
onClick: e[9] || (e[9] = (t) => y.value = !0),
|
|
442
|
+
label: "Cancel",
|
|
443
443
|
severity: "dark",
|
|
444
444
|
text: ""
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
label: d(r)("Submit"),
|
|
445
|
+
}),
|
|
446
|
+
l(h, {
|
|
448
447
|
onClick: U,
|
|
448
|
+
label: "Submit",
|
|
449
449
|
severity: "success"
|
|
450
|
-
}
|
|
450
|
+
})
|
|
451
451
|
])
|
|
452
452
|
], 64));
|
|
453
453
|
}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const u = /* @__PURE__ */ t({
|
|
1
|
+
import { defineComponent as a, shallowRef as t, createBlock as p, openBlock as o } from "vue";
|
|
2
|
+
import { _ as r } from "../filtercontainer/index.es.js";
|
|
3
|
+
const i = /* @__PURE__ */ a({
|
|
5
4
|
__name: "DisposalReportTableFilter",
|
|
6
5
|
props: {
|
|
7
6
|
tableName: {}
|
|
8
7
|
},
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
8
|
+
setup(s) {
|
|
9
|
+
const e = t([
|
|
11
10
|
{
|
|
12
|
-
label:
|
|
13
|
-
placeholder:
|
|
11
|
+
label: "Name",
|
|
12
|
+
placeholder: "Select asset name",
|
|
14
13
|
field: "name.name",
|
|
15
14
|
type: "multiselect"
|
|
16
15
|
},
|
|
17
16
|
{
|
|
18
|
-
label:
|
|
19
|
-
placeholder:
|
|
17
|
+
label: "Brand",
|
|
18
|
+
placeholder: "Select brand",
|
|
20
19
|
field: "brand.name",
|
|
21
20
|
type: "multiselect"
|
|
22
21
|
},
|
|
23
22
|
{
|
|
24
|
-
label:
|
|
25
|
-
placeholder:
|
|
23
|
+
label: "Model/Type",
|
|
24
|
+
placeholder: "Select model/type",
|
|
26
25
|
field: "model.name",
|
|
27
26
|
type: "multiselect"
|
|
28
27
|
},
|
|
29
28
|
{
|
|
30
|
-
label:
|
|
29
|
+
label: "Group",
|
|
31
30
|
field: "group.key",
|
|
32
31
|
type: "group"
|
|
33
32
|
}
|
|
34
33
|
]);
|
|
35
|
-
return (
|
|
36
|
-
fields:
|
|
37
|
-
"table-name":
|
|
34
|
+
return (l, m) => (o(), p(r, {
|
|
35
|
+
fields: e.value,
|
|
36
|
+
"table-name": l.tableName,
|
|
38
37
|
class: "!gap-x-3 !gap-y-4 !p-3",
|
|
39
38
|
"data-ts-name": "diposalreportfilter",
|
|
40
39
|
static: ""
|
|
@@ -42,5 +41,5 @@ const u = /* @__PURE__ */ t({
|
|
|
42
41
|
}
|
|
43
42
|
});
|
|
44
43
|
export {
|
|
45
|
-
|
|
44
|
+
i as _
|
|
46
45
|
};
|