@opengis/surveyor 0.0.6 → 0.0.8
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/chunks/{ApplicationHistorySection-PwToBfej.js → ApplicationHistorySection-Cwq0-Frd.js} +252 -247
- package/dist/chunks/{applications-CLhv5l_j.js → applications-D6pHAQaK.js} +1 -1
- package/dist/chunks/{card-B_SfARf7.js → card-6z-m7UkM.js} +317 -317
- package/dist/chunks/{card-BDqeihxR.js → card-Dlp8_KhV.js} +75 -75
- package/dist/chunks/create-CAVC1qXJ.js +1306 -0
- package/dist/chunks/{map-dvA3ayAK.js → map-UTBxwT7-.js} +1 -1
- package/dist/chunks/{mapLayersApi-CWoQ2be-.js → mapLayersApi-CBLcbADa.js} +1 -1
- package/dist/chunks/{requests-BM6XqgpC.js → requests-rWq8ok3C.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +8 -8
- package/package.json +1 -1
- package/server/modules/surveyor/schema.ts +1 -0
- package/server/modules/surveyor/services/createApplication.ts +3 -2
- package/server/modules/surveyor/utils/application.ts +1 -0
- package/server/resources/surveyor-admin/applications.ts +1 -1
- package/server/resources/surveyor-user/applications.ts +1 -1
- package/dist/chunks/create-BPWuoys6.js +0 -1047
|
@@ -3,15 +3,15 @@ import { a as t, t as n } from "./surveyor-CDkI2Dcp.js";
|
|
|
3
3
|
import { i as r, r as i } from "./profile-aXlo4qqA.js";
|
|
4
4
|
import { t as a } from "./AppIcon-CO70tpMX.js";
|
|
5
5
|
import { r as o } from "./geometry-DyhIVRcw.js";
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import { n as l, t as
|
|
9
|
-
import { a as
|
|
10
|
-
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, normalizeClass as x, openBlock as S, ref as C, renderList as w, toDisplayString as T, vModelText as E, watch as
|
|
11
|
-
import { RouterLink as
|
|
6
|
+
import { a as s, i as c, n as ee, r as te, t as ne } from "./ApplicationHistorySection-Cwq0-Frd.js";
|
|
7
|
+
import { t as re } from "./FormFilePicker-DxPQlxgy.js";
|
|
8
|
+
import { n as l, t as ie } from "./AppealStatusBadge-BlAaNUSK.js";
|
|
9
|
+
import { a as ae, n as u, t as d } from "./applications-D6pHAQaK.js";
|
|
10
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, normalizeClass as x, openBlock as S, ref as C, renderList as w, toDisplayString as T, vModelText as E, watch as oe, withCtx as D, withDirectives as O } from "vue";
|
|
11
|
+
import { RouterLink as se, useRoute as ce } from "vue-router";
|
|
12
12
|
//#region cabinet/src/api/application-workflow.ts
|
|
13
13
|
var k = "public_applications";
|
|
14
|
-
async function
|
|
14
|
+
async function le(e, r) {
|
|
15
15
|
let i = new FormData();
|
|
16
16
|
i.append("file", r, r.name);
|
|
17
17
|
let a = await fetch(n(`/api/resource/${k}/${encodeURIComponent(e)}/upload`), {
|
|
@@ -27,7 +27,7 @@ async function ce(e, r) {
|
|
|
27
27
|
token: o.token
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
async function
|
|
30
|
+
async function ue(e, r, i) {
|
|
31
31
|
let a = await fetch(n(`/api/surveyor/applications/${encodeURIComponent(e)}/upload-updated-data`), {
|
|
32
32
|
method: "POST",
|
|
33
33
|
credentials: "include",
|
|
@@ -40,7 +40,7 @@ async function le(e, r, i) {
|
|
|
40
40
|
if (!a.ok) throw Error(t(await a.text(), a.status));
|
|
41
41
|
return a.json();
|
|
42
42
|
}
|
|
43
|
-
async function
|
|
43
|
+
async function de(e, r) {
|
|
44
44
|
let i = await fetch(n(`/api/surveyor/applications/${encodeURIComponent(e)}/cancel`), {
|
|
45
45
|
method: "POST",
|
|
46
46
|
credentials: "include",
|
|
@@ -62,8 +62,8 @@ function A(e, t) {
|
|
|
62
62
|
}
|
|
63
63
|
return r;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
let n = e.status ?? "", r = [], i = A(e.
|
|
65
|
+
function fe(e, t) {
|
|
66
|
+
let n = e.status ?? "", r = [], i = A(e.status_history, e);
|
|
67
67
|
return t && r.push({
|
|
68
68
|
id: "geometry",
|
|
69
69
|
typeLabel: "Межі заявки",
|
|
@@ -89,16 +89,16 @@ function de(e, t) {
|
|
|
89
89
|
note: e.note_4_file_corrected_geodetic_survey?.trim() || i.corrected || void 0
|
|
90
90
|
}), r);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
return e.status === "dataIssued" ? e.note_4_file_corrected_geodetic_survey?.trim() || A(e.
|
|
92
|
+
function pe(e) {
|
|
93
|
+
return e.status === "dataIssued" ? e.note_4_file_corrected_geodetic_survey?.trim() || A(e.status_history, e).corrected : void 0;
|
|
94
94
|
}
|
|
95
95
|
//#endregion
|
|
96
96
|
//#region cabinet/src/pages/requests/card.vue?vue&type=script&setup=true&lang.ts
|
|
97
|
-
var
|
|
97
|
+
var me = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg bg-[#EFF4FE] px-2.5 py-1.5 text-xs font-medium text-[#2663EB] transition-colors hover:bg-[#deeafd]", he = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg border border-[#2663EB]/35 bg-white px-2.5 py-1.5 text-xs font-medium text-[#2663EB] shadow-sm transition-colors hover:border-[#2663EB]/55 hover:bg-[#F8FAFF] cursor-pointer disabled:cursor-not-allowed disabled:opacity-50", j = /*@__PURE__*/ b({
|
|
98
98
|
__name: "card",
|
|
99
99
|
setup(e, { expose: t }) {
|
|
100
100
|
t();
|
|
101
|
-
let n =
|
|
101
|
+
let n = ce(), u = C(!1), d = C(null), f = C(!0), m = C(""), h = C(""), g = C(!1), _ = C(!1), v = C(""), y = C(null), b = C(""), x = C(!1), S = C(""), w = C(""), T = C(!1), E = C(""), D = p(() => d.value?.status === "awaitingData"), O = p(() => d.value?.status === "dataIssued"), k = p(() => o(d.value?.geom)), A = p(() => {
|
|
102
102
|
let e = d.value;
|
|
103
103
|
return e?.number?.trim() || e?.app_id || "—";
|
|
104
104
|
}), j = p(() => {
|
|
@@ -110,25 +110,25 @@ var pe = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg
|
|
|
110
110
|
dot: "bg-gray-400"
|
|
111
111
|
}), N = p(() => {
|
|
112
112
|
let e = d.value;
|
|
113
|
-
return e ?
|
|
113
|
+
return e ? fe(e, o(e.geom)) : [];
|
|
114
114
|
}), P = p(() => {
|
|
115
115
|
let e = r(i) || "Заявник";
|
|
116
116
|
return {
|
|
117
117
|
name: e,
|
|
118
118
|
role: "Заявник",
|
|
119
|
-
initials:
|
|
119
|
+
initials: te(e)
|
|
120
120
|
};
|
|
121
121
|
});
|
|
122
122
|
function F(e) {
|
|
123
|
-
return e.created_by
|
|
123
|
+
return e.created_by ? e.created_by === i.uid ? P.value : {
|
|
124
124
|
name: "Адміністрація",
|
|
125
125
|
role: "Перевірка",
|
|
126
126
|
initials: "АД"
|
|
127
|
-
};
|
|
127
|
+
} : c;
|
|
128
128
|
}
|
|
129
129
|
let I = p(() => {
|
|
130
130
|
let e = d.value;
|
|
131
|
-
return e ?
|
|
131
|
+
return e ? pe(e) : void 0;
|
|
132
132
|
}), L = p(() => {
|
|
133
133
|
let e = d.value;
|
|
134
134
|
return e ? [
|
|
@@ -197,7 +197,7 @@ var pe = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg
|
|
|
197
197
|
}] : []
|
|
198
198
|
]];
|
|
199
199
|
}), z = 0, B = 0;
|
|
200
|
-
|
|
200
|
+
oe(() => String(n.params.number ?? ""), (e) => {
|
|
201
201
|
U(e);
|
|
202
202
|
}, { immediate: !0 });
|
|
203
203
|
function V() {
|
|
@@ -213,7 +213,7 @@ var pe = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg
|
|
|
213
213
|
return;
|
|
214
214
|
}
|
|
215
215
|
try {
|
|
216
|
-
let n = await
|
|
216
|
+
let n = await ae(e.trim());
|
|
217
217
|
if (t !== z) return;
|
|
218
218
|
d.value = n;
|
|
219
219
|
} catch (e) {
|
|
@@ -251,7 +251,7 @@ var pe = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg
|
|
|
251
251
|
let n = ++B;
|
|
252
252
|
x.value = !0;
|
|
253
253
|
try {
|
|
254
|
-
let r = await
|
|
254
|
+
let r = await le(t, e);
|
|
255
255
|
if (n !== B) return;
|
|
256
256
|
b.value = r.file_path;
|
|
257
257
|
} catch (e) {
|
|
@@ -270,7 +270,7 @@ var pe = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg
|
|
|
270
270
|
}
|
|
271
271
|
g.value = !0, w.value = "";
|
|
272
272
|
try {
|
|
273
|
-
await
|
|
273
|
+
await ue(e, b.value, v.value), Y(), await H();
|
|
274
274
|
} catch (e) {
|
|
275
275
|
w.value = e instanceof Error ? e.message : "Не вдалося подати матеріали";
|
|
276
276
|
} finally {
|
|
@@ -286,7 +286,7 @@ var pe = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg
|
|
|
286
286
|
}
|
|
287
287
|
g.value = !0, h.value = "";
|
|
288
288
|
try {
|
|
289
|
-
await
|
|
289
|
+
await de(e, E.value), T.value = !1, E.value = "", await H();
|
|
290
290
|
} catch (e) {
|
|
291
291
|
h.value = e instanceof Error ? e.message : "Не вдалося скасувати заявку";
|
|
292
292
|
} finally {
|
|
@@ -310,8 +310,8 @@ var pe = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg
|
|
|
310
310
|
submitActionError: w,
|
|
311
311
|
cancelOpen: T,
|
|
312
312
|
cancelReason: E,
|
|
313
|
-
fileDownloadBtnClass:
|
|
314
|
-
fileUploadBtnClass:
|
|
313
|
+
fileDownloadBtnClass: me,
|
|
314
|
+
fileUploadBtnClass: he,
|
|
315
315
|
canCancel: D,
|
|
316
316
|
canAddUpdatedSurvey: O,
|
|
317
317
|
showMap: k,
|
|
@@ -349,14 +349,14 @@ var pe = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg
|
|
|
349
349
|
confirmSubmitSurvey: Z,
|
|
350
350
|
confirmCancel: Q,
|
|
351
351
|
get RouterLink() {
|
|
352
|
-
return
|
|
352
|
+
return se;
|
|
353
353
|
},
|
|
354
354
|
AppIcon: a,
|
|
355
|
-
FormFilePicker:
|
|
356
|
-
AppealStatusBadge:
|
|
355
|
+
FormFilePicker: re,
|
|
356
|
+
AppealStatusBadge: ie,
|
|
357
357
|
AppealDetailMap: s,
|
|
358
|
-
ApplicationCommentsSection:
|
|
359
|
-
ApplicationHistorySection:
|
|
358
|
+
ApplicationCommentsSection: ee,
|
|
359
|
+
ApplicationHistorySection: ne
|
|
360
360
|
};
|
|
361
361
|
return Object.defineProperty($, "__isScriptSetup", {
|
|
362
362
|
enumerable: !1,
|
|
@@ -375,41 +375,41 @@ var pe = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg
|
|
|
375
375
|
}, I = { class: "border-b border-gray-200 bg-white py-4" }, L = { class: "mx-auto max-w-[1400px] px-6" }, R = { class: "mb-3 flex items-center gap-1.5 text-xs text-gray-400" }, z = { class: "font-medium text-gray-700" }, B = { class: "flex flex-wrap items-start justify-between gap-4" }, V = { class: "text-lg font-semibold text-gray-900" }, H = { class: "mt-0.5 text-sm text-gray-500" }, U = { class: "flex flex-wrap items-center gap-3" }, W = ["disabled"], G = ["disabled"], K = { class: "mx-auto max-w-[1400px] px-6 py-5" }, q = { class: "grid grid-cols-1 gap-5 xl:grid-cols-[minmax(0,1fr)_420px]" }, J = { class: "space-y-4" }, Y = { class: "overflow-hidden rounded-2xl border border-gray-200 bg-white" }, X = { class: "flex items-center justify-between border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, Z = { class: "flex items-center gap-2" }, Q = ["aria-label"], $ = {
|
|
376
376
|
key: 1,
|
|
377
377
|
class: "px-5 py-10 text-center text-sm text-gray-400"
|
|
378
|
-
},
|
|
378
|
+
}, ge = { class: "overflow-hidden rounded-2xl border border-gray-200 bg-white" }, _e = { class: "grid grid-cols-1 gap-x-8 p-5 sm:grid-cols-2" }, ve = { class: "mb-0.5 text-xs text-gray-400" }, ye = { class: "text-sm font-medium text-gray-900" }, be = { class: "space-y-4" }, xe = { class: "overflow-hidden rounded-2xl border border-gray-200 bg-white" }, Se = { class: "flex items-center gap-2 border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, Ce = { class: "divide-y divide-gray-100" }, we = { class: "text-xs text-gray-500" }, Te = { class: "rounded-md bg-gray-100 px-2 py-0.5 text-xs font-semibold text-gray-900" }, Ee = { class: "overflow-hidden rounded-2xl border border-gray-200 bg-white" }, De = { class: "flex items-center gap-2 border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, Oe = {
|
|
379
379
|
key: 0,
|
|
380
380
|
class: "border-b border-gray-100 px-5 py-3 text-xs text-gray-500"
|
|
381
|
-
},
|
|
381
|
+
}, ke = {
|
|
382
382
|
key: 1,
|
|
383
383
|
class: "border-b border-amber-100 bg-amber-50 px-5 py-3 text-xs text-amber-800"
|
|
384
|
-
},
|
|
384
|
+
}, Ae = { class: "divide-y divide-gray-100" }, je = {
|
|
385
385
|
key: 0,
|
|
386
386
|
class: "px-5 py-6 text-center text-sm italic text-gray-400"
|
|
387
|
-
},
|
|
387
|
+
}, Me = { class: "flex items-center justify-between gap-3" }, Ne = { class: "min-w-0" }, Pe = { class: "text-xs font-medium leading-snug text-gray-700" }, Fe = {
|
|
388
388
|
key: 0,
|
|
389
389
|
class: "mt-0.5 text-xs text-gray-400"
|
|
390
|
-
},
|
|
390
|
+
}, Ie = ["href"], Le = ["disabled"], Re = { class: "rounded-2xl border border-gray-200 bg-white p-5" }, ze = { class: "grid grid-cols-2 gap-3" }, Be = { class: "rounded-xl bg-gray-50 p-3 text-center" }, Ve = { class: "text-lg font-bold text-gray-900" }, He = { class: "text-xs font-semibold leading-tight" }, Ue = {
|
|
391
391
|
key: 0,
|
|
392
392
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4 backdrop-blur-sm"
|
|
393
|
-
},
|
|
393
|
+
}, We = { class: "w-full max-w-md rounded-2xl bg-white p-6 shadow-2xl" }, Ge = { class: "mt-4 space-y-3" }, Ke = {
|
|
394
394
|
key: 0,
|
|
395
395
|
class: "text-xs text-red-600"
|
|
396
|
-
},
|
|
396
|
+
}, qe = {
|
|
397
397
|
key: 1,
|
|
398
398
|
class: "text-xs text-emerald-600"
|
|
399
|
-
},
|
|
399
|
+
}, Je = {
|
|
400
400
|
key: 2,
|
|
401
401
|
class: "text-xs text-red-600"
|
|
402
|
-
},
|
|
402
|
+
}, Ye = { class: "mt-5 flex justify-end gap-2" }, Xe = ["disabled"], Ze = {
|
|
403
403
|
key: 1,
|
|
404
404
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4 backdrop-blur-sm"
|
|
405
|
-
},
|
|
405
|
+
}, Qe = { class: "w-full max-w-md rounded-2xl bg-white p-6 shadow-2xl" }, $e = {
|
|
406
406
|
key: 0,
|
|
407
407
|
class: "mt-2 text-xs text-red-600"
|
|
408
|
-
},
|
|
408
|
+
}, et = { class: "mt-5 flex justify-end gap-2" }, tt = ["disabled"], nt = {
|
|
409
409
|
key: 3,
|
|
410
410
|
class: "mx-auto max-w-[1400px] px-6 py-16 text-center"
|
|
411
411
|
};
|
|
412
|
-
function
|
|
412
|
+
function rt(e, t, n, r, i, a) {
|
|
413
413
|
return r.loading ? (S(), g("div", M, [...t[8] ||= [_("p", { class: "text-sm text-gray-500" }, "Завантаження…", -1)]])) : r.loadError ? (S(), g("div", N, [_("p", P, T(r.loadError), 1), y(r.RouterLink, {
|
|
414
414
|
to: "/requests",
|
|
415
415
|
class: "mt-3 inline-block text-sm font-medium text-[#2663EB] hover:underline"
|
|
@@ -483,10 +483,10 @@ function nt(e, t, n, r, i, a) {
|
|
|
483
483
|
"location",
|
|
484
484
|
"expanded"
|
|
485
485
|
])) : (S(), g("p", $, " Геометрію не вказано "))]),
|
|
486
|
-
_("section",
|
|
486
|
+
_("section", ge, [t[14] ||= _("div", { class: "border-b border-gray-100 bg-gray-50/60 px-5 py-3" }, [_("h2", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, " Основна інформація ")], -1), _("div", _e, [(S(!0), g(f, null, w(r.infoColumns, (e, t) => (S(), g("div", { key: t }, [(S(!0), g(f, null, w(e, (t, n) => (S(), g("div", {
|
|
487
487
|
key: t.label,
|
|
488
488
|
class: x(["py-2.5", n < e.length - 1 ? "border-b border-gray-100" : ""])
|
|
489
|
-
}, [_("p",
|
|
489
|
+
}, [_("p", ve, T(t.label), 1), _("p", ye, T(t.value), 1)], 2))), 128))]))), 128))])]),
|
|
490
490
|
r.application ? (S(), m(r.ApplicationCommentsSection, {
|
|
491
491
|
key: 0,
|
|
492
492
|
"application-id": r.application.app_id,
|
|
@@ -496,35 +496,35 @@ function nt(e, t, n, r, i, a) {
|
|
|
496
496
|
"resolve-author": r.resolveNoteAuthor
|
|
497
497
|
}, null, 8, ["application-id", "current-author"])) : h("", !0),
|
|
498
498
|
y(r.ApplicationHistorySection, {
|
|
499
|
-
items: r.application
|
|
499
|
+
items: r.application?.status_history || [],
|
|
500
500
|
variant: "cabinet"
|
|
501
501
|
}, null, 8, ["items"])
|
|
502
|
-
]), _("div",
|
|
503
|
-
_("section",
|
|
502
|
+
]), _("div", be, [
|
|
503
|
+
_("section", xe, [_("div", Se, [y(r.AppIcon, {
|
|
504
504
|
name: "calendar-days",
|
|
505
505
|
class: "h-3.5 w-3.5 text-gray-400"
|
|
506
|
-
}), t[15] ||= _("h2", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, " Дати ", -1)]), _("div",
|
|
506
|
+
}), t[15] ||= _("h2", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, " Дати ", -1)]), _("div", Ce, [(S(!0), g(f, null, w(r.dateRows, (e) => (S(), g("div", {
|
|
507
507
|
key: e.label,
|
|
508
508
|
class: "flex items-center justify-between gap-3 px-5 py-3"
|
|
509
|
-
}, [_("span",
|
|
510
|
-
_("section",
|
|
511
|
-
_("div",
|
|
509
|
+
}, [_("span", we, T(e.label), 1), _("span", Te, T(e.value), 1)]))), 128))])]),
|
|
510
|
+
_("section", Ee, [
|
|
511
|
+
_("div", De, [y(r.AppIcon, {
|
|
512
512
|
name: "file-text",
|
|
513
513
|
class: "h-3.5 w-3.5 text-gray-400"
|
|
514
514
|
}), t[16] ||= _("h2", { class: "text-xs font-semibold uppercase tracking-wider text-gray-500" }, " Файли ", -1)]),
|
|
515
|
-
r.application.status === "reserve" ? (S(), g("p",
|
|
516
|
-
r.reworkMessage ? (S(), g("p",
|
|
517
|
-
_("div",
|
|
515
|
+
r.application.status === "reserve" ? (S(), g("p", Oe, " Заявка в резерві через перетин з активною заявкою. Доступні лише межі території. ")) : h("", !0),
|
|
516
|
+
r.reworkMessage ? (S(), g("p", ke, " Коментар перевірки: " + T(r.reworkMessage), 1)) : h("", !0),
|
|
517
|
+
_("div", Ae, [r.cardFiles.length === 0 ? (S(), g("p", je, " Файли відсутні ")) : h("", !0), (S(!0), g(f, null, w(r.cardFiles, (e) => (S(), g("div", {
|
|
518
518
|
key: e.id,
|
|
519
519
|
class: "px-5 py-3.5"
|
|
520
|
-
}, [_("div",
|
|
520
|
+
}, [_("div", Me, [_("div", Ne, [_("p", Pe, T(e.typeLabel), 1), e.note ? (S(), g("p", Fe, " Примітка: " + T(e.note), 1)) : h("", !0)]), e.href ? (S(), g("a", {
|
|
521
521
|
key: 0,
|
|
522
522
|
href: e.href,
|
|
523
523
|
class: x(r.fileDownloadBtnClass)
|
|
524
524
|
}, [y(r.AppIcon, {
|
|
525
525
|
name: "download",
|
|
526
526
|
class: "h-3 w-3"
|
|
527
|
-
}), t[17] ||= v(" Завантажити ", -1)], 8,
|
|
527
|
+
}), t[17] ||= v(" Завантажити ", -1)], 8, Ie)) : e.action === "upload" ? (S(), g("button", {
|
|
528
528
|
key: 1,
|
|
529
529
|
type: "button",
|
|
530
530
|
class: x(r.fileUploadBtnClass),
|
|
@@ -533,28 +533,28 @@ function nt(e, t, n, r, i, a) {
|
|
|
533
533
|
}, [y(r.AppIcon, {
|
|
534
534
|
name: "upload",
|
|
535
535
|
class: "h-3 w-3"
|
|
536
|
-
}), t[18] ||= v(" Додати ", -1)], 8,
|
|
536
|
+
}), t[18] ||= v(" Додати ", -1)], 8, Le)) : h("", !0)])]))), 128))])
|
|
537
537
|
]),
|
|
538
|
-
_("section",
|
|
538
|
+
_("section", Re, [_("div", ze, [_("div", Be, [
|
|
539
539
|
t[19] ||= _("p", { class: "mb-1 text-xs text-gray-400" }, "Площа", -1),
|
|
540
|
-
_("p",
|
|
540
|
+
_("p", Ve, T(r.formatArea(r.application.area)), 1),
|
|
541
541
|
t[20] ||= _("p", { class: "text-xs text-gray-400" }, "га", -1)
|
|
542
542
|
]), _("div", { class: x(["rounded-xl border p-3 text-center", r.status.classes]) }, [
|
|
543
543
|
t[21] ||= _("p", { class: "mb-1 text-xs opacity-70" }, "Статус", -1),
|
|
544
544
|
_("span", { class: x(["mx-auto mb-1 block h-3 w-3 rounded-full", r.status.dot]) }, null, 2),
|
|
545
|
-
_("p",
|
|
545
|
+
_("p", He, T(r.statusLabel), 1)
|
|
546
546
|
], 2)])])
|
|
547
547
|
])])]),
|
|
548
|
-
r.submitOpen ? (S(), g("div",
|
|
548
|
+
r.submitOpen ? (S(), g("div", Ue, [_("div", We, [
|
|
549
549
|
t[22] ||= _("h3", { class: "text-base font-semibold text-gray-900" }, " Подання матеріалів знімання ", -1),
|
|
550
550
|
t[23] ||= _("p", { class: "mt-1 text-xs text-gray-500" }, " Файл буде надіслано на перевірку. ", -1),
|
|
551
|
-
_("div",
|
|
551
|
+
_("div", Ge, [
|
|
552
552
|
y(r.FormFilePicker, {
|
|
553
553
|
"file-name": r.submitUploadBusy ? "Завантаження…" : r.submitFile?.name,
|
|
554
554
|
onChange: r.onSubmitFileChange
|
|
555
555
|
}, null, 8, ["file-name"]),
|
|
556
|
-
r.submitUploadError ? (S(), g("p",
|
|
557
|
-
r.submitActionError ? (S(), g("p",
|
|
556
|
+
r.submitUploadError ? (S(), g("p", Ke, T(r.submitUploadError), 1)) : r.submitUploadedPath ? (S(), g("p", qe, " Файл завантажено ")) : h("", !0),
|
|
557
|
+
r.submitActionError ? (S(), g("p", Je, T(r.submitActionError), 1)) : h("", !0),
|
|
558
558
|
O(_("textarea", {
|
|
559
559
|
"onUpdate:modelValue": t[4] ||= (e) => r.submitNote = e,
|
|
560
560
|
rows: "3",
|
|
@@ -562,7 +562,7 @@ function nt(e, t, n, r, i, a) {
|
|
|
562
562
|
class: "w-full rounded-lg border border-gray-200 px-3 py-2 text-sm focus:border-[#2663EB]/40 focus:outline-none focus:ring-2 focus:ring-[#EFF4FE]"
|
|
563
563
|
}, null, 512), [[E, r.submitNote]])
|
|
564
564
|
]),
|
|
565
|
-
_("div",
|
|
565
|
+
_("div", Ye, [_("button", {
|
|
566
566
|
type: "button",
|
|
567
567
|
class: "rounded-lg px-4 py-2 text-sm text-gray-600 hover:bg-gray-100",
|
|
568
568
|
onClick: r.closeSubmitModal
|
|
@@ -571,9 +571,9 @@ function nt(e, t, n, r, i, a) {
|
|
|
571
571
|
class: "rounded-lg bg-[#2663EB] px-4 py-2 text-sm font-medium text-white hover:bg-[#1d4ed8] disabled:opacity-50",
|
|
572
572
|
disabled: r.actionBusy || r.submitUploadBusy || !r.submitUploadedPath,
|
|
573
573
|
onClick: r.confirmSubmitSurvey
|
|
574
|
-
}, " Подати ", 8,
|
|
574
|
+
}, " Подати ", 8, Xe)])
|
|
575
575
|
])])) : h("", !0),
|
|
576
|
-
r.cancelOpen ? (S(), g("div",
|
|
576
|
+
r.cancelOpen ? (S(), g("div", Ze, [_("div", Qe, [
|
|
577
577
|
t[24] ||= _("h3", { class: "text-base font-semibold text-gray-900" }, "Скасування заявки", -1),
|
|
578
578
|
O(_("textarea", {
|
|
579
579
|
"onUpdate:modelValue": t[5] ||= (e) => r.cancelReason = e,
|
|
@@ -582,8 +582,8 @@ function nt(e, t, n, r, i, a) {
|
|
|
582
582
|
class: "mt-4 w-full rounded-lg border border-gray-200 px-3 py-2 text-sm",
|
|
583
583
|
onInput: t[6] ||= (e) => r.actionError = ""
|
|
584
584
|
}, null, 544), [[E, r.cancelReason]]),
|
|
585
|
-
r.actionError ? (S(), g("p",
|
|
586
|
-
_("div",
|
|
585
|
+
r.actionError ? (S(), g("p", $e, T(r.actionError), 1)) : h("", !0),
|
|
586
|
+
_("div", et, [_("button", {
|
|
587
587
|
type: "button",
|
|
588
588
|
class: "rounded-lg px-4 py-2 text-sm text-gray-600 hover:bg-gray-100",
|
|
589
589
|
onClick: t[7] ||= (e) => {
|
|
@@ -594,9 +594,9 @@ function nt(e, t, n, r, i, a) {
|
|
|
594
594
|
class: "rounded-lg bg-red-600 px-4 py-2 text-sm font-medium text-white hover:bg-red-700 disabled:opacity-50",
|
|
595
595
|
disabled: r.actionBusy,
|
|
596
596
|
onClick: r.confirmCancel
|
|
597
|
-
}, " Скасувати заявку ", 8,
|
|
597
|
+
}, " Скасувати заявку ", 8, tt)])
|
|
598
598
|
])])) : h("", !0)
|
|
599
|
-
])) : (S(), g("div",
|
|
599
|
+
])) : (S(), g("div", nt, [t[26] ||= _("p", { class: "text-sm text-gray-500" }, "Звернення не знайдено.", -1), y(r.RouterLink, {
|
|
600
600
|
to: "/requests",
|
|
601
601
|
class: "mt-3 inline-block text-sm font-medium text-[#2663EB] hover:underline"
|
|
602
602
|
}, {
|
|
@@ -604,6 +604,6 @@ function nt(e, t, n, r, i, a) {
|
|
|
604
604
|
_: 1
|
|
605
605
|
})]));
|
|
606
606
|
}
|
|
607
|
-
var
|
|
607
|
+
var it = /*#__PURE__*/ e(j, [["render", rt], ["__file", "C:/softpro/surveyor/cabinet/src/pages/requests/card.vue"]]);
|
|
608
608
|
//#endregion
|
|
609
|
-
export {
|
|
609
|
+
export { it as default };
|