@opengis/surveyor 0.0.2 → 0.0.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/chunks/{AppealDetailField-CI-1qhs3.js → AppealDetailField-DNRGpnyD.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-CSXnfarR.js → AppealStatusBadge-CefimzY3.js} +2 -2
- package/dist/chunks/{AppealStatusBadge-DYBe9hqP.js → AppealStatusBadge-Cu-UzdzA.js} +1 -1
- package/dist/chunks/{ApplicationHistorySection-C0wwhwA4.js → ApplicationHistorySection-PwToBfej.js} +4 -4
- package/dist/chunks/BaseModal-SQXvRRNW.js +90 -0
- package/dist/chunks/{FormFilePicker-C3XQw50i.js → FormFilePicker-CKVdZJU9.js} +2 -2
- package/dist/chunks/{MapLayerMenu-DjYCxEc3.js → MapLayerMenu-AUeTqgEp.js} +1 -1
- package/dist/chunks/{RegistryForm-CEUqFmsF.js → RegistryForm-wG-c8GKf.js} +1 -1
- package/dist/chunks/{RegistryFormModal-DfY4z_7r.js → RegistryFormModal-R_iZYqGE.js} +3 -3
- package/dist/chunks/{RegistryToolbar-BV4mYVAc.js → RegistryToolbar-322DKUXi.js} +6 -6
- package/dist/chunks/SurveyorTeleport-CnSF0Ptl.js +23 -0
- package/dist/chunks/{UserAccessBadge-D8JfgGfN.js → UserAccessBadge-DyZDv7Oo.js} +1 -1
- package/dist/chunks/{UserTypeBadge-YIwwoCho.js → UserTypeBadge-LvnMuKGo.js} +1 -1
- package/dist/chunks/{VerifiedBadge-Bba8WnuB.js → VerifiedBadge-bk0n-rlC.js} +2 -2
- package/dist/chunks/{applications-BB9JRcgl.js → applications-CsCsndMV.js} +1 -1
- package/dist/chunks/{card-fL26_Gvc.js → card-B_SfARf7.js} +358 -357
- package/dist/chunks/card-C3y-j2TA.js +298 -0
- package/dist/chunks/{card-CKD1N0QD.js → card-CWqi1K-x.js} +107 -106
- package/dist/chunks/{card-DUtDfwMk.js → card-DCyBFoDZ.js} +6 -6
- package/dist/chunks/card-DWpAv92l.js +539 -0
- package/dist/chunks/{card-B-ftozcq.js → card-X9UVFgdR.js} +256 -250
- package/dist/chunks/{certificates-BSd1i0un.js → certificates-Cwch72-o.js} +131 -130
- package/dist/chunks/{create-DxMC_IL1.js → create-DTP9x2uS.js} +283 -270
- package/dist/chunks/dom-BSjFG3O0.js +7 -0
- package/dist/chunks/{map-Z57iMvFb.js → map-dvA3ayAK.js} +647 -634
- package/dist/chunks/{map-layers-DnmkOEld.js → map-layers-sT-gTiD_.js} +130 -125
- package/dist/chunks/{organizations-BbYipLwk.js → organizations-BtuMZ5s_.js} +1 -1
- package/dist/chunks/{organizations-BO1_JETm.js → organizations-ByVE2f0c.js} +128 -123
- package/dist/chunks/{profile-Dwwn_4Pr.js → profile-CuxlkEev.js} +3 -3
- package/dist/chunks/{profile-ByahbF4B.js → profile-DxZHxGum.js} +1 -1
- package/dist/chunks/requests-BTpLXrNj.js +233 -0
- package/dist/chunks/{requests-CFv5wwAN.js → requests-Bt8fEdRc.js} +7 -7
- package/dist/chunks/useEntityPath-C5Owtidc.js +98 -0
- package/dist/chunks/{users-DtTYsgMb.js → users-U1P6xCP4.js} +105 -99
- package/dist/index.css +1 -1
- package/dist/index.js +154 -114
- package/package.json +2 -5
- package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +41 -41
- package/server/modules/surveyor/utils/templates/ds.surveyor_admin_password.pt.hbs +79 -79
- package/surveyor-types.d.ts +5 -0
- package/dist/chunks/AppIcon-CIR6y5uE.js +0 -85
- package/dist/chunks/BaseModal-C7PVYz0m.js +0 -85
- package/dist/chunks/card-BctFHFZe.js +0 -538
- package/dist/chunks/card-CiNZxAd5.js +0 -297
- package/dist/chunks/requests-BCin936Z.js +0 -232
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { a as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { r as
|
|
8
|
-
import { i as
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { RouterLink as
|
|
2
|
+
import { n as t, t as n } from "./useEntityPath-C5Owtidc.js";
|
|
3
|
+
import { a as r, c as i, l as a, o, s } from "./resources-2e8RFqWR.js";
|
|
4
|
+
import { n as c, t as l } from "./AppealDetailField-DNRGpnyD.js";
|
|
5
|
+
import { t as u } from "./BaseModal-SQXvRRNW.js";
|
|
6
|
+
import { t as d } from "./AppealStatusBadge-Cu-UzdzA.js";
|
|
7
|
+
import { r as f } from "./geometry-DyhIVRcw.js";
|
|
8
|
+
import { i as p, n as m, r as h, t as g } from "./ApplicationHistorySection-PwToBfej.js";
|
|
9
|
+
import { Fragment as _, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createTextVNode as C, createVNode as w, defineComponent as T, mergeModels as E, normalizeClass as D, openBlock as O, ref as k, renderList as A, toDisplayString as j, useModel as M, vModelRadio as N, vModelSelect as P, vModelText as F, watch as I, withCtx as L, withDirectives as R } from "vue";
|
|
10
|
+
import { RouterLink as z, useRoute as B } from "vue-router";
|
|
11
11
|
//#region admin/src/pages/requests/components/AppealDetailBoolean.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var
|
|
12
|
+
var V = /*@__PURE__*/ T({
|
|
13
13
|
__name: "AppealDetailBoolean",
|
|
14
14
|
props: {
|
|
15
15
|
label: {
|
|
@@ -29,23 +29,23 @@ var B = /*@__PURE__*/ w({
|
|
|
29
29
|
value: !0
|
|
30
30
|
}), r;
|
|
31
31
|
}
|
|
32
|
-
}),
|
|
32
|
+
}), H = { class: "mb-1 text-xs font-medium text-slate-500" }, U = {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "inline-flex items-center gap-1.5 text-[14px] font-medium text-success-700"
|
|
35
|
-
},
|
|
35
|
+
}, W = {
|
|
36
36
|
key: 1,
|
|
37
37
|
class: "inline-flex items-center gap-1.5 text-[14px] font-medium text-slate-400"
|
|
38
38
|
};
|
|
39
|
-
function
|
|
40
|
-
return
|
|
39
|
+
function ee(e, t, n, r, i, a) {
|
|
40
|
+
return O(), x("div", null, [S("dt", H, j(n.label), 1), S("dd", null, [n.value ? (O(), x("span", U, [w(r.AppIcon, {
|
|
41
41
|
name: "circle-check",
|
|
42
42
|
class: "h-4 w-4"
|
|
43
|
-
}), t[0] ||=
|
|
43
|
+
}), t[0] ||= C(" Так ", -1)])) : (O(), x("span", W, [w(r.AppIcon, {
|
|
44
44
|
name: "circle-x",
|
|
45
45
|
class: "h-4 w-4"
|
|
46
|
-
}), t[1] ||=
|
|
46
|
+
}), t[1] ||= C(" Ні ", -1)]))])]);
|
|
47
47
|
}
|
|
48
|
-
var
|
|
48
|
+
var te = /*#__PURE__*/ e(V, [["render", ee], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/AppealDetailBoolean.vue"]]), ne = /*@__PURE__*/ T({
|
|
49
49
|
__name: "FormFilePicker",
|
|
50
50
|
props: {
|
|
51
51
|
fileName: {
|
|
@@ -64,7 +64,7 @@ var ee = /*#__PURE__*/ e(B, [["render", W], ["__file", "D:/Softpro/surveyor/admi
|
|
|
64
64
|
emits: ["change"],
|
|
65
65
|
setup(e, { expose: n, emit: r }) {
|
|
66
66
|
n();
|
|
67
|
-
let i = e, a = r, o =
|
|
67
|
+
let i = e, a = r, o = k(null);
|
|
68
68
|
function s() {
|
|
69
69
|
o.value?.click();
|
|
70
70
|
}
|
|
@@ -72,7 +72,7 @@ var ee = /*#__PURE__*/ e(B, [["render", W], ["__file", "D:/Softpro/surveyor/admi
|
|
|
72
72
|
let t = e.target.files?.[0] ?? null;
|
|
73
73
|
a("change", t);
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
I(() => i.fileName, (e) => {
|
|
76
76
|
!e && o.value && (o.value.value = "");
|
|
77
77
|
});
|
|
78
78
|
let l = {
|
|
@@ -88,37 +88,37 @@ var ee = /*#__PURE__*/ e(B, [["render", W], ["__file", "D:/Softpro/surveyor/admi
|
|
|
88
88
|
value: !0
|
|
89
89
|
}), l;
|
|
90
90
|
}
|
|
91
|
-
}),
|
|
91
|
+
}), re = { class: "rounded-xl border border-dashed border-slate-200 bg-slate-50/80 px-4 py-3 transition-colors hover:border-slate-300 hover:bg-slate-50" }, G = { class: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between" }, K = { class: "flex min-w-0 flex-1 items-center gap-3" }, q = { class: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-white text-slate-400 shadow-sm ring-1 ring-slate-100" }, J = { class: "min-w-0" }, Y = {
|
|
92
92
|
key: 0,
|
|
93
93
|
class: "truncate text-sm font-medium text-slate-800"
|
|
94
|
-
},
|
|
94
|
+
}, X = {
|
|
95
95
|
key: 1,
|
|
96
96
|
class: "text-sm text-slate-400"
|
|
97
|
-
},
|
|
98
|
-
function
|
|
99
|
-
return
|
|
97
|
+
}, ie = ["accept"];
|
|
98
|
+
function ae(e, t, n, r, i, a) {
|
|
99
|
+
return O(), x("div", re, [S("div", G, [S("div", K, [S("span", q, [w(r.AppIcon, {
|
|
100
100
|
name: "file-text",
|
|
101
101
|
class: "h-[18px] w-[18px]"
|
|
102
|
-
})]),
|
|
102
|
+
})]), S("div", J, [n.fileName ? (O(), x("p", Y, j(n.fileName), 1)) : (O(), x("p", X, "Файл не обрано")), t[0] ||= S("p", { class: "mt-0.5 text-xs text-slate-400" }, "ZIP, GeoJSON або інший дозволений формат", -1)])]), S("button", {
|
|
103
103
|
type: "button",
|
|
104
104
|
class: "inline-flex shrink-0 items-center justify-center gap-2 rounded-lg border border-slate-200 bg-white px-4 py-2 text-sm font-medium text-slate-700 shadow-sm transition-colors hover:border-brand-300 hover:bg-brand-50 hover:text-brand-700",
|
|
105
105
|
onClick: r.openPicker
|
|
106
|
-
}, [
|
|
106
|
+
}, [w(r.AppIcon, {
|
|
107
107
|
name: "upload",
|
|
108
108
|
class: "h-4 w-4 text-brand-500"
|
|
109
|
-
}),
|
|
109
|
+
}), C(" " + j(n.buttonLabel ?? "Обрати файл"), 1)])]), S("input", {
|
|
110
110
|
ref: "inputRef",
|
|
111
111
|
type: "file",
|
|
112
112
|
class: "hidden",
|
|
113
113
|
accept: n.accept,
|
|
114
114
|
onChange: r.onInputChange
|
|
115
|
-
}, null, 40,
|
|
115
|
+
}, null, 40, ie)]);
|
|
116
116
|
}
|
|
117
|
-
var
|
|
117
|
+
var oe = /*#__PURE__*/ e(ne, [["render", ae], ["__file", "C:/softpro/surveyor/admin/src/components/ui/FormFilePicker.vue"]]), Z = "applications";
|
|
118
118
|
async function Q(e, t) {
|
|
119
119
|
let n = new FormData();
|
|
120
120
|
n.append("file", t, t.name);
|
|
121
|
-
let r = await fetch(
|
|
121
|
+
let r = await fetch(s(`/api/resource/${Z}/${encodeURIComponent(e)}/upload`), {
|
|
122
122
|
method: "POST",
|
|
123
123
|
credentials: "include",
|
|
124
124
|
body: n
|
|
@@ -139,11 +139,11 @@ async function Q(e, t) {
|
|
|
139
139
|
token: i.token
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
return
|
|
142
|
+
function se(e) {
|
|
143
|
+
return s(`/api/surveyor/applications/${encodeURIComponent(e)}/export/geometry`);
|
|
144
144
|
}
|
|
145
|
-
async function
|
|
146
|
-
let n = await fetch(
|
|
145
|
+
async function ce(e, t) {
|
|
146
|
+
let n = await fetch(s(`/api/surveyor/applications/${encodeURIComponent(e)}/export/vector`), {
|
|
147
147
|
method: "POST",
|
|
148
148
|
credentials: "include",
|
|
149
149
|
headers: { "Content-Type": "application/json" },
|
|
@@ -158,33 +158,33 @@ async function se(e, t) {
|
|
|
158
158
|
throw t instanceof Error && t.message !== e ? t : Error(e || `HTTP ${n.status}`);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
let r = await n.blob(), i = (n.headers.get("Content-Disposition") ?? "").match(/filename\*?=(?:UTF-8''|")?([^";]+)/i), a = decodeURIComponent(i?.[1]?.replace(/"/g, "") ?? `vector_${e}.geojson`),
|
|
162
|
-
c.href =
|
|
161
|
+
let r = await n.blob(), i = (n.headers.get("Content-Disposition") ?? "").match(/filename\*?=(?:UTF-8''|")?([^";]+)/i), a = decodeURIComponent(i?.[1]?.replace(/"/g, "") ?? `vector_${e}.geojson`), o = URL.createObjectURL(r), c = document.createElement("a");
|
|
162
|
+
c.href = o, c.download = a, c.click(), URL.revokeObjectURL(o);
|
|
163
163
|
}
|
|
164
|
-
async function
|
|
165
|
-
return
|
|
164
|
+
async function le(e, t, n) {
|
|
165
|
+
return r(`/api/surveyor/applications/${encodeURIComponent(e)}/upload-source-data`, {
|
|
166
166
|
method: "POST",
|
|
167
167
|
body: JSON.stringify({
|
|
168
168
|
file_path: t,
|
|
169
|
-
...
|
|
169
|
+
...n?.trim() ? { note: n.trim() } : {}
|
|
170
170
|
})
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
async function le(e, t) {
|
|
174
|
-
return a(Z, e, { file_output: t });
|
|
175
|
-
}
|
|
176
173
|
async function ue(e, t) {
|
|
177
|
-
return
|
|
174
|
+
return o(Z, e, { file_output: t });
|
|
175
|
+
}
|
|
176
|
+
async function de(e, t) {
|
|
177
|
+
return r(`/api/surveyor/applications/${encodeURIComponent(e)}/verify`, {
|
|
178
178
|
method: "POST",
|
|
179
179
|
body: JSON.stringify(t)
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
async function
|
|
183
|
-
return
|
|
182
|
+
async function fe(e) {
|
|
183
|
+
return r(`/api/surveyor/applications/${encodeURIComponent(e)}/complete`, { method: "POST" });
|
|
184
184
|
}
|
|
185
185
|
//#endregion
|
|
186
186
|
//#region admin/src/pages/requests/components/ApplicationWorkflowActions.vue?vue&type=script&setup=true&lang.ts
|
|
187
|
-
var
|
|
187
|
+
var pe = /*@__PURE__*/ T({
|
|
188
188
|
__name: "ApplicationWorkflowActions",
|
|
189
189
|
props: {
|
|
190
190
|
applicationId: {
|
|
@@ -198,19 +198,19 @@ var fe = /*@__PURE__*/ w({
|
|
|
198
198
|
},
|
|
199
199
|
emits: ["done", "error"],
|
|
200
200
|
setup(e, { expose: t, emit: n }) {
|
|
201
|
-
let r = e, i = n, a =
|
|
201
|
+
let r = e, i = n, a = k(!1), o = k(""), s = k(!1), c = k("issue"), l = k(""), d = k(null), f = k(""), p = k(!1), m = k(""), h = 0, g = k(!1), _ = k("verified"), y = k(""), b = k(null), x = k(""), S = k(!1), C = k(""), w = 0, T = k(!1), E = v(() => r.status === "awaitingData"), D = v(() => r.status === "underReview"), O = v(() => r.status === "verified");
|
|
202
202
|
function A() {
|
|
203
203
|
o.value = "";
|
|
204
204
|
}
|
|
205
205
|
function j() {
|
|
206
|
-
d.value = null, f.value = "", m.value = "", p.value = !1,
|
|
206
|
+
d.value = null, f.value = "", m.value = "", p.value = !1, l.value = "", h += 1;
|
|
207
207
|
}
|
|
208
208
|
function M() {
|
|
209
209
|
b.value = null, x.value = "", C.value = "", S.value = !1, y.value = "", w += 1;
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
I(s, (e) => {
|
|
212
212
|
e || j();
|
|
213
|
-
}),
|
|
213
|
+
}), I(g, (e) => {
|
|
214
214
|
e || M();
|
|
215
215
|
});
|
|
216
216
|
async function N(e) {
|
|
@@ -227,7 +227,7 @@ var fe = /*@__PURE__*/ w({
|
|
|
227
227
|
function P() {
|
|
228
228
|
A(), j(), c.value = "issue", s.value = !0;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function F() {
|
|
231
231
|
A(), j(), c.value = "replace", s.value = !0;
|
|
232
232
|
}
|
|
233
233
|
function L() {
|
|
@@ -272,11 +272,11 @@ var fe = /*@__PURE__*/ w({
|
|
|
272
272
|
return;
|
|
273
273
|
}
|
|
274
274
|
await N(async () => {
|
|
275
|
-
c.value === "replace" ? await
|
|
275
|
+
c.value === "replace" ? await ue(r.applicationId, f.value) : await le(r.applicationId, f.value, l.value), s.value = !1;
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
278
|
async function H() {
|
|
279
|
-
if (
|
|
279
|
+
if (_.value === "dataIssued" && !y.value.trim()) {
|
|
280
280
|
o.value = "Вкажіть причину повернення на доопрацювання";
|
|
281
281
|
return;
|
|
282
282
|
}
|
|
@@ -285,26 +285,26 @@ var fe = /*@__PURE__*/ w({
|
|
|
285
285
|
return;
|
|
286
286
|
}
|
|
287
287
|
await N(async () => {
|
|
288
|
-
await
|
|
289
|
-
status:
|
|
288
|
+
await de(r.applicationId, {
|
|
289
|
+
status: _.value,
|
|
290
290
|
...x.value ? { file_path: x.value } : {},
|
|
291
|
-
...
|
|
291
|
+
..._.value === "dataIssued" || y.value.trim() ? { note_4_file_corrected_geodetic_survey: y.value.trim() } : {}
|
|
292
292
|
}), g.value = !1;
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
295
|
async function U() {
|
|
296
296
|
await N(async () => {
|
|
297
|
-
await
|
|
297
|
+
await fe(r.applicationId), T.value = !1;
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
300
|
t({
|
|
301
301
|
openIssue: P,
|
|
302
|
-
openReplaceOutput:
|
|
302
|
+
openReplaceOutput: F,
|
|
303
303
|
openVerify: L,
|
|
304
304
|
openComplete: R,
|
|
305
305
|
canIssue: E,
|
|
306
306
|
canVerify: D,
|
|
307
|
-
canComplete:
|
|
307
|
+
canComplete: O,
|
|
308
308
|
actionError: o,
|
|
309
309
|
busy: a
|
|
310
310
|
});
|
|
@@ -315,7 +315,7 @@ var fe = /*@__PURE__*/ w({
|
|
|
315
315
|
actionError: o,
|
|
316
316
|
issueOpen: s,
|
|
317
317
|
issueMode: c,
|
|
318
|
-
issueNote:
|
|
318
|
+
issueNote: l,
|
|
319
319
|
issueFile: d,
|
|
320
320
|
issueUploadedPath: f,
|
|
321
321
|
issueUploadBusy: p,
|
|
@@ -327,7 +327,7 @@ var fe = /*@__PURE__*/ w({
|
|
|
327
327
|
h = e;
|
|
328
328
|
},
|
|
329
329
|
verifyOpen: g,
|
|
330
|
-
verifyDecision:
|
|
330
|
+
verifyDecision: _,
|
|
331
331
|
verifyNote: y,
|
|
332
332
|
verifyFile: b,
|
|
333
333
|
verifyUploadedPath: x,
|
|
@@ -342,13 +342,13 @@ var fe = /*@__PURE__*/ w({
|
|
|
342
342
|
completeOpen: T,
|
|
343
343
|
canIssue: E,
|
|
344
344
|
canVerify: D,
|
|
345
|
-
canComplete:
|
|
345
|
+
canComplete: O,
|
|
346
346
|
resetErrors: A,
|
|
347
347
|
resetIssueModal: j,
|
|
348
348
|
resetVerifyModal: M,
|
|
349
349
|
runAction: N,
|
|
350
350
|
openIssue: P,
|
|
351
|
-
openReplaceOutput:
|
|
351
|
+
openReplaceOutput: F,
|
|
352
352
|
openVerify: L,
|
|
353
353
|
openComplete: R,
|
|
354
354
|
onIssueFileChange: z,
|
|
@@ -356,135 +356,135 @@ var fe = /*@__PURE__*/ w({
|
|
|
356
356
|
submitIssue: V,
|
|
357
357
|
submitVerify: H,
|
|
358
358
|
submitComplete: U,
|
|
359
|
-
BaseModal:
|
|
360
|
-
FormFilePicker:
|
|
359
|
+
BaseModal: u,
|
|
360
|
+
FormFilePicker: oe
|
|
361
361
|
};
|
|
362
362
|
return Object.defineProperty(W, "__isScriptSetup", {
|
|
363
363
|
enumerable: !1,
|
|
364
364
|
value: !0
|
|
365
365
|
}), W;
|
|
366
366
|
}
|
|
367
|
-
}),
|
|
367
|
+
}), me = { class: "space-y-4" }, he = {
|
|
368
368
|
key: 0,
|
|
369
369
|
class: "mt-1.5 text-xs text-danger-700"
|
|
370
|
-
},
|
|
370
|
+
}, ge = {
|
|
371
371
|
key: 1,
|
|
372
372
|
class: "mt-1.5 text-xs text-emerald-700"
|
|
373
|
-
},
|
|
373
|
+
}, _e = { key: 0 }, ve = {
|
|
374
374
|
key: 1,
|
|
375
375
|
class: "text-xs text-danger-700"
|
|
376
|
-
},
|
|
376
|
+
}, ye = { class: "flex justify-end gap-2" }, be = ["disabled"], xe = { class: "space-y-4" }, Se = { class: "flex gap-4 text-sm" }, Ce = { class: "flex items-center gap-2" }, we = { class: "flex items-center gap-2" }, Te = { class: "mb-1 block text-xs font-medium text-slate-500" }, Ee = {
|
|
377
377
|
key: 0,
|
|
378
378
|
class: "mt-1.5 text-xs text-danger-700"
|
|
379
|
-
},
|
|
379
|
+
}, De = {
|
|
380
380
|
key: 1,
|
|
381
381
|
class: "mt-1.5 text-xs text-emerald-700"
|
|
382
|
-
},
|
|
382
|
+
}, Oe = {
|
|
383
383
|
key: 0,
|
|
384
384
|
class: "text-xs text-danger-700"
|
|
385
|
-
},
|
|
386
|
-
function
|
|
387
|
-
return
|
|
388
|
-
|
|
385
|
+
}, ke = { class: "flex justify-end gap-2" }, Ae = ["disabled"], je = { class: "flex justify-end gap-2" }, Me = ["disabled"];
|
|
386
|
+
function Ne(e, t, n, r, i, a) {
|
|
387
|
+
return O(), x(_, null, [
|
|
388
|
+
w(r.BaseModal, {
|
|
389
389
|
modelValue: r.issueOpen,
|
|
390
390
|
"onUpdate:modelValue": t[2] ||= (e) => r.issueOpen = e,
|
|
391
391
|
title: r.issueMode === "replace" ? "Заміна вихідних даних" : "Видача вихідних даних"
|
|
392
392
|
}, {
|
|
393
|
-
footer:
|
|
393
|
+
footer: L(() => [S("div", ye, [S("button", {
|
|
394
394
|
type: "button",
|
|
395
395
|
class: "rounded-lg px-4 py-2 text-sm text-slate-600 hover:bg-slate-100",
|
|
396
396
|
onClick: t[1] ||= (e) => r.issueOpen = !1
|
|
397
|
-
}, "Скасувати"),
|
|
397
|
+
}, "Скасувати"), S("button", {
|
|
398
398
|
type: "button",
|
|
399
399
|
class: "rounded-lg bg-brand-600 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-700 disabled:opacity-50",
|
|
400
400
|
disabled: r.busy || r.issueUploadBusy || !r.issueUploadedPath,
|
|
401
401
|
onClick: r.submitIssue
|
|
402
|
-
},
|
|
403
|
-
default:
|
|
404
|
-
|
|
405
|
-
t[10] ||=
|
|
406
|
-
|
|
402
|
+
}, j(r.issueMode === "replace" ? "Зберегти" : "Видати"), 9, be)])]),
|
|
403
|
+
default: L(() => [S("div", me, [
|
|
404
|
+
S("div", null, [
|
|
405
|
+
t[10] ||= S("label", { class: "mb-1.5 block text-xs font-medium text-slate-500" }, "Файл", -1),
|
|
406
|
+
w(r.FormFilePicker, {
|
|
407
407
|
"file-name": r.issueUploadBusy ? "Завантаження…" : r.issueFile?.name,
|
|
408
408
|
onChange: r.onIssueFileChange
|
|
409
409
|
}, null, 8, ["file-name"]),
|
|
410
|
-
r.issueUploadError ? (
|
|
410
|
+
r.issueUploadError ? (O(), x("p", he, j(r.issueUploadError), 1)) : r.issueUploadedPath ? (O(), x("p", ge, "Файл завантажено")) : b("", !0)
|
|
411
411
|
]),
|
|
412
|
-
r.issueMode === "issue" ? (
|
|
412
|
+
r.issueMode === "issue" ? (O(), x("div", _e, [t[11] ||= S("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Примітка", -1), R(S("textarea", {
|
|
413
413
|
"onUpdate:modelValue": t[0] ||= (e) => r.issueNote = e,
|
|
414
414
|
rows: "3",
|
|
415
415
|
class: "w-full rounded-lg border border-slate-200 px-3 py-2 text-sm shadow-sm focus:border-brand-300 focus:outline-none focus:ring-2 focus:ring-brand-100"
|
|
416
|
-
}, null, 512), [[
|
|
417
|
-
r.actionError ? (
|
|
416
|
+
}, null, 512), [[F, r.issueNote]])])) : b("", !0),
|
|
417
|
+
r.actionError ? (O(), x("p", ve, j(r.actionError), 1)) : b("", !0)
|
|
418
418
|
])]),
|
|
419
419
|
_: 1
|
|
420
420
|
}, 8, ["modelValue", "title"]),
|
|
421
|
-
|
|
421
|
+
w(r.BaseModal, {
|
|
422
422
|
modelValue: r.verifyOpen,
|
|
423
423
|
"onUpdate:modelValue": t[7] ||= (e) => r.verifyOpen = e,
|
|
424
424
|
title: "Перевірка матеріалів",
|
|
425
425
|
width: "max-w-xl"
|
|
426
426
|
}, {
|
|
427
|
-
footer:
|
|
427
|
+
footer: L(() => [S("div", ke, [S("button", {
|
|
428
428
|
type: "button",
|
|
429
429
|
class: "rounded-lg px-4 py-2 text-sm text-slate-600 hover:bg-slate-100",
|
|
430
430
|
onClick: t[6] ||= (e) => r.verifyOpen = !1
|
|
431
|
-
}, "Скасувати"),
|
|
431
|
+
}, "Скасувати"), S("button", {
|
|
432
432
|
type: "button",
|
|
433
433
|
class: "rounded-lg bg-brand-600 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-700 disabled:opacity-50",
|
|
434
434
|
disabled: r.busy || r.verifyUploadBusy,
|
|
435
435
|
onClick: r.submitVerify
|
|
436
|
-
}, " Зберегти ", 8,
|
|
437
|
-
default:
|
|
438
|
-
|
|
436
|
+
}, " Зберегти ", 8, Ae)])]),
|
|
437
|
+
default: L(() => [S("div", xe, [
|
|
438
|
+
S("div", Se, [S("label", Ce, [R(S("input", {
|
|
439
439
|
"onUpdate:modelValue": t[3] ||= (e) => r.verifyDecision = e,
|
|
440
440
|
type: "radio",
|
|
441
441
|
value: "verified"
|
|
442
|
-
}, null, 512), [[
|
|
442
|
+
}, null, 512), [[N, r.verifyDecision]]), t[12] ||= C(" Прийняти ", -1)]), S("label", we, [R(S("input", {
|
|
443
443
|
"onUpdate:modelValue": t[4] ||= (e) => r.verifyDecision = e,
|
|
444
444
|
type: "radio",
|
|
445
445
|
value: "dataIssued"
|
|
446
|
-
}, null, 512), [[
|
|
447
|
-
|
|
446
|
+
}, null, 512), [[N, r.verifyDecision]]), t[13] ||= C(" На доопрацювання ", -1)])]),
|
|
447
|
+
S("div", null, [S("label", Te, j(r.verifyDecision === "dataIssued" ? "Причина (обовʼязково)" : "Примітка"), 1), R(S("textarea", {
|
|
448
448
|
"onUpdate:modelValue": t[5] ||= (e) => r.verifyNote = e,
|
|
449
449
|
rows: "3",
|
|
450
450
|
class: "w-full rounded-lg border border-slate-200 px-3 py-2 text-sm"
|
|
451
|
-
}, null, 512), [[
|
|
452
|
-
|
|
453
|
-
t[14] ||=
|
|
454
|
-
|
|
451
|
+
}, null, 512), [[F, r.verifyNote]])]),
|
|
452
|
+
S("div", null, [
|
|
453
|
+
t[14] ||= S("label", { class: "mb-1.5 block text-xs font-medium text-slate-500" }, "Виправлений файл (за потреби)", -1),
|
|
454
|
+
w(r.FormFilePicker, {
|
|
455
455
|
"file-name": r.verifyUploadBusy ? "Завантаження…" : r.verifyFile?.name,
|
|
456
456
|
"button-label": "Додати файл",
|
|
457
457
|
onChange: r.onVerifyFileChange
|
|
458
458
|
}, null, 8, ["file-name"]),
|
|
459
|
-
r.verifyUploadError ? (
|
|
459
|
+
r.verifyUploadError ? (O(), x("p", Ee, j(r.verifyUploadError), 1)) : r.verifyUploadedPath ? (O(), x("p", De, "Файл завантажено")) : b("", !0)
|
|
460
460
|
]),
|
|
461
|
-
r.actionError ? (
|
|
461
|
+
r.actionError ? (O(), x("p", Oe, j(r.actionError), 1)) : b("", !0)
|
|
462
462
|
])]),
|
|
463
463
|
_: 1
|
|
464
464
|
}, 8, ["modelValue"]),
|
|
465
|
-
|
|
465
|
+
w(r.BaseModal, {
|
|
466
466
|
modelValue: r.completeOpen,
|
|
467
467
|
"onUpdate:modelValue": t[9] ||= (e) => r.completeOpen = e,
|
|
468
468
|
title: "Завершення заявки"
|
|
469
469
|
}, {
|
|
470
|
-
footer:
|
|
470
|
+
footer: L(() => [S("div", je, [S("button", {
|
|
471
471
|
type: "button",
|
|
472
472
|
class: "rounded-lg px-4 py-2 text-sm text-slate-600 hover:bg-slate-100",
|
|
473
473
|
onClick: t[8] ||= (e) => r.completeOpen = !1
|
|
474
|
-
}, "Скасувати"),
|
|
474
|
+
}, "Скасувати"), S("button", {
|
|
475
475
|
type: "button",
|
|
476
476
|
class: "rounded-lg bg-emerald-600 px-4 py-2 text-sm font-semibold text-white hover:bg-emerald-700 disabled:opacity-50",
|
|
477
477
|
disabled: r.busy,
|
|
478
478
|
onClick: r.submitComplete
|
|
479
|
-
}, " Підтвердити ", 8,
|
|
480
|
-
default:
|
|
479
|
+
}, " Підтвердити ", 8, Me)])]),
|
|
480
|
+
default: L(() => [t[15] ||= S("p", { class: "text-sm text-slate-600" }, "Підтвердити внесення результатів до ЄЦТО та завершення заявки?", -1)]),
|
|
481
481
|
_: 1
|
|
482
482
|
}, 8, ["modelValue"])
|
|
483
483
|
], 64);
|
|
484
484
|
}
|
|
485
|
-
var
|
|
485
|
+
var Pe = /*#__PURE__*/ e(pe, [["render", Ne], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/ApplicationWorkflowActions.vue"]]), Fe = "w-full rounded-lg border border-slate-200 px-3 py-2 text-sm shadow-sm focus:border-brand-300 focus:outline-none focus:ring-2 focus:ring-brand-100", Ie = "w-full appearance-none rounded-lg border border-slate-200 bg-white py-2 pl-3 pr-9 text-sm shadow-sm focus:border-brand-300 focus:outline-none focus:ring-2 focus:ring-brand-100 disabled:bg-slate-50 disabled:text-slate-400", Le = /*@__PURE__*/ T({
|
|
486
486
|
__name: "ApplicationVectorExportModal",
|
|
487
|
-
props: /*@__PURE__*/
|
|
487
|
+
props: /*@__PURE__*/ E({ applicationId: {
|
|
488
488
|
type: String,
|
|
489
489
|
required: !0
|
|
490
490
|
} }, {
|
|
@@ -497,7 +497,7 @@ var Ne = /*#__PURE__*/ e(fe, [["render", Me], ["__file", "D:/Softpro/surveyor/ad
|
|
|
497
497
|
emits: ["update:modelValue"],
|
|
498
498
|
setup(e, { expose: n }) {
|
|
499
499
|
n();
|
|
500
|
-
let r = e,
|
|
500
|
+
let r = e, i = M(e, "modelValue"), o = k(""), c = k(100), l = k("EPSG:4326"), d = k(!1), f = k(""), p = k(!1), m = k([]), h = [{
|
|
501
501
|
id: "EPSG:4326",
|
|
502
502
|
label: "EPSG:4326 (WGS 84)"
|
|
503
503
|
}, {
|
|
@@ -505,39 +505,39 @@ var Ne = /*#__PURE__*/ e(fe, [["render", Me], ["__file", "D:/Softpro/surveyor/ad
|
|
|
505
505
|
label: "EPSG:3857 (Web Mercator)"
|
|
506
506
|
}];
|
|
507
507
|
function g() {
|
|
508
|
-
|
|
508
|
+
o.value = "", c.value = 100, l.value = "EPSG:4326", f.value = "", d.value = !1;
|
|
509
509
|
}
|
|
510
510
|
async function _() {
|
|
511
511
|
p.value = !0, m.value = [];
|
|
512
512
|
try {
|
|
513
|
-
let e = new URLSearchParams({ q: "" }), t = await fetch(
|
|
513
|
+
let e = new URLSearchParams({ q: "" }), t = await fetch(s(`/api/suggest/gis-layers?${e}`), { credentials: "include" });
|
|
514
514
|
if (!t.ok) {
|
|
515
515
|
let e = await t.text();
|
|
516
|
-
throw Error(
|
|
516
|
+
throw Error(a(e, t.status));
|
|
517
517
|
}
|
|
518
518
|
let n = await t.json();
|
|
519
519
|
m.value = (n.data ?? []).map((e) => ({
|
|
520
520
|
id: String(e.id),
|
|
521
521
|
label: e.text
|
|
522
|
-
})), m.value.length === 1 && (
|
|
522
|
+
})), m.value.length === 1 && (o.value = m.value[0].id);
|
|
523
523
|
} catch (e) {
|
|
524
524
|
f.value = e instanceof Error ? e.message : "Не вдалося завантажити перелік шарів";
|
|
525
525
|
} finally {
|
|
526
526
|
p.value = !1;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
|
|
529
|
+
I(i, (e) => {
|
|
530
530
|
e && (g(), _());
|
|
531
|
-
}),
|
|
532
|
-
|
|
531
|
+
}), I([
|
|
532
|
+
o,
|
|
533
533
|
c,
|
|
534
|
-
|
|
534
|
+
l
|
|
535
535
|
], () => {
|
|
536
536
|
f.value = "";
|
|
537
537
|
});
|
|
538
538
|
async function v() {
|
|
539
539
|
f.value = "";
|
|
540
|
-
let e =
|
|
540
|
+
let e = o.value.trim();
|
|
541
541
|
if (!e) {
|
|
542
542
|
f.value = "Оберіть шар для експорту";
|
|
543
543
|
return;
|
|
@@ -549,11 +549,11 @@ var Ne = /*#__PURE__*/ e(fe, [["render", Me], ["__file", "D:/Softpro/surveyor/ad
|
|
|
549
549
|
}
|
|
550
550
|
d.value = !0;
|
|
551
551
|
try {
|
|
552
|
-
await
|
|
552
|
+
await ce(r.applicationId, {
|
|
553
553
|
layer_id: e,
|
|
554
554
|
buffer: t,
|
|
555
|
-
crs:
|
|
556
|
-
}),
|
|
555
|
+
crs: l.value
|
|
556
|
+
}), i.value = !1;
|
|
557
557
|
} catch (e) {
|
|
558
558
|
f.value = e instanceof Error ? e.message : "Не вдалося експортувати вектор";
|
|
559
559
|
} finally {
|
|
@@ -562,21 +562,21 @@ var Ne = /*#__PURE__*/ e(fe, [["render", Me], ["__file", "D:/Softpro/surveyor/ad
|
|
|
562
562
|
}
|
|
563
563
|
let y = {
|
|
564
564
|
props: r,
|
|
565
|
-
open:
|
|
566
|
-
layerId:
|
|
565
|
+
open: i,
|
|
566
|
+
layerId: o,
|
|
567
567
|
bufferMeters: c,
|
|
568
|
-
crs:
|
|
568
|
+
crs: l,
|
|
569
569
|
busy: d,
|
|
570
570
|
error: f,
|
|
571
571
|
layersLoading: p,
|
|
572
572
|
layerOptions: m,
|
|
573
573
|
CRS_OPTIONS: h,
|
|
574
|
-
fieldClass:
|
|
575
|
-
selectFieldClass:
|
|
574
|
+
fieldClass: Fe,
|
|
575
|
+
selectFieldClass: Ie,
|
|
576
576
|
resetForm: g,
|
|
577
577
|
loadLayers: _,
|
|
578
578
|
submit: v,
|
|
579
|
-
BaseModal:
|
|
579
|
+
BaseModal: u,
|
|
580
580
|
AppIcon: t
|
|
581
581
|
};
|
|
582
582
|
return Object.defineProperty(y, "__isScriptSetup", {
|
|
@@ -584,114 +584,114 @@ var Ne = /*#__PURE__*/ e(fe, [["render", Me], ["__file", "D:/Softpro/surveyor/ad
|
|
|
584
584
|
value: !0
|
|
585
585
|
}), y;
|
|
586
586
|
}
|
|
587
|
-
}),
|
|
587
|
+
}), Re = { class: "space-y-4" }, ze = { class: "relative" }, Be = ["disabled"], Ve = {
|
|
588
588
|
value: "",
|
|
589
589
|
disabled: ""
|
|
590
|
-
},
|
|
590
|
+
}, He = ["value"], Ue = {
|
|
591
591
|
key: 0,
|
|
592
592
|
class: "mt-1.5 text-xs text-slate-400"
|
|
593
|
-
},
|
|
593
|
+
}, We = ["disabled"], Ge = { class: "relative" }, Ke = ["disabled"], qe = ["value"], Je = {
|
|
594
594
|
key: 0,
|
|
595
595
|
class: "text-xs text-danger-700"
|
|
596
|
-
},
|
|
597
|
-
function
|
|
598
|
-
return
|
|
596
|
+
}, Ye = { class: "flex justify-end gap-2" }, Xe = ["disabled"], Ze = ["disabled"];
|
|
597
|
+
function Qe(e, t, n, r, i, a) {
|
|
598
|
+
return O(), y(r.BaseModal, {
|
|
599
599
|
modelValue: r.open,
|
|
600
600
|
"onUpdate:modelValue": t[4] ||= (e) => r.open = e,
|
|
601
601
|
title: "Експорт векторного шару",
|
|
602
602
|
width: "max-w-md"
|
|
603
603
|
}, {
|
|
604
|
-
footer:
|
|
604
|
+
footer: L(() => [S("div", Ye, [S("button", {
|
|
605
605
|
type: "button",
|
|
606
606
|
class: "rounded-lg px-4 py-2 text-sm text-slate-600 hover:bg-slate-100",
|
|
607
607
|
disabled: r.busy,
|
|
608
608
|
onClick: t[3] ||= (e) => r.open = !1
|
|
609
|
-
}, " Скасувати ", 8,
|
|
609
|
+
}, " Скасувати ", 8, Xe), S("button", {
|
|
610
610
|
type: "button",
|
|
611
611
|
class: "rounded-lg bg-brand-600 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-700 disabled:opacity-50",
|
|
612
612
|
disabled: r.busy || r.layersLoading || !r.layerId,
|
|
613
613
|
onClick: r.submit
|
|
614
|
-
},
|
|
615
|
-
default:
|
|
616
|
-
|
|
617
|
-
t[5] ||=
|
|
618
|
-
|
|
614
|
+
}, j(r.busy ? "Експорт…" : "Завантажити"), 9, Ze)])]),
|
|
615
|
+
default: L(() => [S("div", Re, [
|
|
616
|
+
S("div", null, [
|
|
617
|
+
t[5] ||= S("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Шар", -1),
|
|
618
|
+
S("div", ze, [R(S("select", {
|
|
619
619
|
"onUpdate:modelValue": t[0] ||= (e) => r.layerId = e,
|
|
620
|
-
class:
|
|
620
|
+
class: D(r.selectFieldClass),
|
|
621
621
|
disabled: r.layersLoading || r.busy || !r.layerOptions.length
|
|
622
|
-
}, [
|
|
622
|
+
}, [S("option", Ve, j(r.layersLoading ? "Завантаження…" : "Оберіть шар"), 1), (O(!0), x(_, null, A(r.layerOptions, (e) => (O(), x("option", {
|
|
623
623
|
key: e.id,
|
|
624
624
|
value: e.id
|
|
625
|
-
},
|
|
625
|
+
}, j(e.label), 9, He))), 128))], 8, Be), [[P, r.layerId]]), w(r.AppIcon, {
|
|
626
626
|
name: "chevron-down",
|
|
627
627
|
class: "pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-500"
|
|
628
628
|
})]),
|
|
629
|
-
!r.layersLoading && !r.layerOptions.length && !r.error ? (
|
|
629
|
+
!r.layersLoading && !r.layerOptions.length && !r.error ? (O(), x("p", Ue, " Шари не знайдено. ")) : b("", !0)
|
|
630
630
|
]),
|
|
631
|
-
|
|
631
|
+
S("div", null, [t[6] ||= S("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Буфер, м", -1), R(S("input", {
|
|
632
632
|
"onUpdate:modelValue": t[1] ||= (e) => r.bufferMeters = e,
|
|
633
633
|
type: "number",
|
|
634
634
|
min: "0",
|
|
635
635
|
step: "1",
|
|
636
|
-
class:
|
|
636
|
+
class: D(r.fieldClass),
|
|
637
637
|
disabled: r.busy
|
|
638
|
-
}, null, 8,
|
|
639
|
-
|
|
638
|
+
}, null, 8, We), [[
|
|
639
|
+
F,
|
|
640
640
|
r.bufferMeters,
|
|
641
641
|
void 0,
|
|
642
642
|
{ number: !0 }
|
|
643
643
|
]])]),
|
|
644
|
-
|
|
644
|
+
S("div", null, [t[7] ||= S("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Система координат", -1), S("div", Ge, [R(S("select", {
|
|
645
645
|
"onUpdate:modelValue": t[2] ||= (e) => r.crs = e,
|
|
646
|
-
class:
|
|
646
|
+
class: D(r.selectFieldClass),
|
|
647
647
|
disabled: r.busy
|
|
648
|
-
}, [(
|
|
648
|
+
}, [(O(), x(_, null, A(r.CRS_OPTIONS, (e) => S("option", {
|
|
649
649
|
key: e.id,
|
|
650
650
|
value: e.id
|
|
651
|
-
},
|
|
651
|
+
}, j(e.label), 9, qe)), 64))], 8, Ke), [[P, r.crs]]), w(r.AppIcon, {
|
|
652
652
|
name: "chevron-down",
|
|
653
653
|
class: "pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-500"
|
|
654
654
|
})])]),
|
|
655
|
-
r.error ? (
|
|
655
|
+
r.error ? (O(), x("p", Je, j(r.error), 1)) : b("", !0)
|
|
656
656
|
])]),
|
|
657
657
|
_: 1
|
|
658
658
|
}, 8, ["modelValue"]);
|
|
659
659
|
}
|
|
660
|
-
var
|
|
660
|
+
var $e = /*#__PURE__*/ e(Le, [["render", Qe], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/ApplicationVectorExportModal.vue"]]), et = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg bg-brand-50 px-2.5 py-1.5 text-xs font-medium text-brand-600 transition-colors hover:bg-brand-100", tt = "inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-lg border border-brand-300/50 bg-white px-2.5 py-1.5 text-xs font-medium text-brand-600 shadow-sm transition-colors hover:border-brand-400 hover:bg-brand-50/40 disabled:opacity-50", nt = /*@__PURE__*/ T({
|
|
661
661
|
__name: "card",
|
|
662
|
-
setup(e, { expose:
|
|
663
|
-
|
|
664
|
-
let
|
|
665
|
-
let e =
|
|
662
|
+
setup(e, { expose: a }) {
|
|
663
|
+
a();
|
|
664
|
+
let o = B(), { listPath: s } = n("number"), u = k(null), _ = k(""), y = k(!1), b = k(""), x = k(null), S = k(""), C = k(!1), w = k(!1), T = v(() => F(u.value?.organization)), E = v(() => F(u.value?.surveyor)), D = v(() => {
|
|
665
|
+
let e = E.value;
|
|
666
666
|
return e && [
|
|
667
667
|
e.last_name,
|
|
668
668
|
e.first_name,
|
|
669
669
|
e.middle_name
|
|
670
670
|
].filter(Boolean).join(" ") || "—";
|
|
671
|
-
}),
|
|
671
|
+
}), O = v(() => ({
|
|
672
672
|
name: "Адміністратор",
|
|
673
673
|
role: "Перевірка",
|
|
674
674
|
initials: "АД"
|
|
675
675
|
}));
|
|
676
|
-
function
|
|
677
|
-
let t =
|
|
676
|
+
function A(e) {
|
|
677
|
+
let t = D.value === "—" ? "Заявник" : D.value, n = {
|
|
678
678
|
name: t,
|
|
679
679
|
role: "Заявник",
|
|
680
|
-
initials:
|
|
680
|
+
initials: h(t)
|
|
681
681
|
};
|
|
682
682
|
if (!e.created_by) return n;
|
|
683
|
-
if (e.created_by ===
|
|
684
|
-
let
|
|
685
|
-
return
|
|
683
|
+
if (e.created_by === i.currentUser?.id) return O.value;
|
|
684
|
+
let r = E.value?.surveyor_id;
|
|
685
|
+
return r && e.created_by === r ? n : O.value;
|
|
686
686
|
}
|
|
687
|
-
let
|
|
688
|
-
let e =
|
|
687
|
+
let j = v(() => u.value?.address_id_data?.text || "—"), M = v(() => u.value?.is_found_address_id === !0 || !!u.value?.address_id_data?.text?.trim()), N = v(() => f(u.value?.geom)), P = v(() => {
|
|
688
|
+
let e = u.value;
|
|
689
689
|
if (!e) return [];
|
|
690
690
|
let t = [];
|
|
691
|
-
return
|
|
691
|
+
return f(e.geom) && (t.push({
|
|
692
692
|
id: "geometry",
|
|
693
693
|
label: "Межі заявки",
|
|
694
|
-
href:
|
|
694
|
+
href: se(e.app_id),
|
|
695
695
|
action: "download"
|
|
696
696
|
}), t.push({
|
|
697
697
|
id: "vector-export",
|
|
@@ -728,423 +728,424 @@ var Qe = /*#__PURE__*/ e(Ie, [["render", Ze], ["__file", "D:/Softpro/surveyor/ad
|
|
|
728
728
|
action: "complete"
|
|
729
729
|
}), t);
|
|
730
730
|
});
|
|
731
|
-
function
|
|
731
|
+
function F(e) {
|
|
732
732
|
return Array.isArray(e) ? e[0] ?? null : e ?? null;
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function L(e) {
|
|
735
735
|
if (!e) return "";
|
|
736
736
|
let t = e.match(/^(\d{4})-(\d{2})-(\d{2})/);
|
|
737
737
|
return t ? `${t[3]}.${t[2]}.${t[1]}` : e;
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function R(e) {
|
|
740
740
|
return `/api/file/${encodeURIComponent(e)}?download=true`;
|
|
741
741
|
}
|
|
742
|
-
async function
|
|
743
|
-
if (
|
|
744
|
-
let t = await
|
|
745
|
-
|
|
742
|
+
async function V(e) {
|
|
743
|
+
if (_.value = "", e) try {
|
|
744
|
+
let t = await r(`/api/resource/certificates/${encodeURIComponent(e)}`);
|
|
745
|
+
_.value = L(t.date_certificate);
|
|
746
746
|
} catch {
|
|
747
|
-
|
|
747
|
+
_.value = "";
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
async function
|
|
751
|
-
|
|
750
|
+
async function H(e) {
|
|
751
|
+
y.value = !0, b.value = "", u.value = null, _.value = "";
|
|
752
752
|
try {
|
|
753
|
-
|
|
753
|
+
u.value = await r(`/api/resource/applications/${encodeURIComponent(e)}?include=organization,surveyor,history&limit=100`), await V(F(u.value.surveyor)?.certificate_id);
|
|
754
754
|
} catch (e) {
|
|
755
|
-
|
|
755
|
+
u.value = null, b.value = e instanceof Error ? e.message : "Не вдалося завантажити звернення";
|
|
756
756
|
} finally {
|
|
757
|
-
|
|
757
|
+
y.value = !1;
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
|
-
|
|
761
|
-
e &&
|
|
760
|
+
I(() => String(o.params.number), (e) => {
|
|
761
|
+
e && H(e);
|
|
762
762
|
}, { immediate: !0 });
|
|
763
|
-
let
|
|
764
|
-
route:
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
763
|
+
let U = {
|
|
764
|
+
route: o,
|
|
765
|
+
listPath: s,
|
|
766
|
+
application: u,
|
|
767
|
+
certificateDate: _,
|
|
768
|
+
loading: y,
|
|
769
|
+
error: b,
|
|
770
|
+
workflowRef: x,
|
|
771
|
+
workflowError: S,
|
|
772
|
+
workflowBusy: C,
|
|
773
|
+
vectorExportOpen: w,
|
|
774
|
+
organization: T,
|
|
775
|
+
surveyor: E,
|
|
776
|
+
applicantName: D,
|
|
777
|
+
commentCurrentAuthor: O,
|
|
778
|
+
resolveNoteAuthor: A,
|
|
779
|
+
address: j,
|
|
780
|
+
showAddress: M,
|
|
781
|
+
showMap: N,
|
|
782
|
+
files: P,
|
|
783
|
+
fileDownloadBtnClass: et,
|
|
784
|
+
fileUploadBtnClass: tt,
|
|
785
|
+
firstRelation: F,
|
|
786
|
+
formatDate: L,
|
|
787
|
+
fileUrl: R,
|
|
788
|
+
loadCertificateDate: V,
|
|
789
|
+
loadApplication: H,
|
|
789
790
|
AppIcon: t,
|
|
790
791
|
get RouterLink() {
|
|
791
|
-
return
|
|
792
|
+
return z;
|
|
792
793
|
},
|
|
793
|
-
AppealStatusBadge:
|
|
794
|
-
AppealDetailSection:
|
|
795
|
-
AppealDetailField:
|
|
796
|
-
AppealDetailBoolean:
|
|
797
|
-
AppealDetailMap:
|
|
798
|
-
ApplicationCommentsSection:
|
|
799
|
-
ApplicationHistorySection:
|
|
800
|
-
ApplicationWorkflowActions:
|
|
801
|
-
ApplicationVectorExportModal:
|
|
794
|
+
AppealStatusBadge: d,
|
|
795
|
+
AppealDetailSection: c,
|
|
796
|
+
AppealDetailField: l,
|
|
797
|
+
AppealDetailBoolean: te,
|
|
798
|
+
AppealDetailMap: p,
|
|
799
|
+
ApplicationCommentsSection: m,
|
|
800
|
+
ApplicationHistorySection: g,
|
|
801
|
+
ApplicationWorkflowActions: Pe,
|
|
802
|
+
ApplicationVectorExportModal: $e
|
|
802
803
|
};
|
|
803
|
-
return Object.defineProperty(
|
|
804
|
+
return Object.defineProperty(U, "__isScriptSetup", {
|
|
804
805
|
enumerable: !1,
|
|
805
806
|
value: !0
|
|
806
|
-
}),
|
|
807
|
+
}), U;
|
|
807
808
|
}
|
|
808
|
-
}),
|
|
809
|
+
}), rt = {
|
|
809
810
|
key: 0,
|
|
810
811
|
class: "px-4 py-16 text-center text-sm text-slate-400"
|
|
811
|
-
},
|
|
812
|
+
}, it = { key: 1 }, at = { class: "mb-6 pl-8 lg:pl-0" }, ot = { class: "mb-4 flex items-center gap-1.5 text-sm" }, st = { class: "font-medium text-slate-700" }, ct = { class: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between" }, lt = { class: "flex flex-col gap-1.5" }, ut = { class: "text-xl font-bold tracking-tight text-slate-900" }, dt = { class: "text-sm font-medium text-slate-500" }, ft = { class: "grid grid-cols-1 items-start gap-5 xl:grid-cols-[minmax(0,1fr)_420px]" }, pt = { class: "flex flex-col gap-5" }, mt = { class: "grid grid-cols-2 gap-x-6 gap-y-4" }, ht = { class: "grid grid-cols-2 gap-x-6 gap-y-4" }, gt = { class: "grid grid-cols-2 gap-x-6 gap-y-4 sm:grid-cols-3" }, _t = { class: "grid grid-cols-1 gap-y-3" }, vt = { class: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2" }, yt = { class: "grid min-w-0 grid-cols-1 gap-x-5 gap-y-3.5 sm:grid-cols-2" }, bt = { class: "min-w-0 border-t border-slate-100 pt-6 xl:border-l xl:border-t-0 xl:pl-6 xl:pt-0" }, xt = { class: "grid min-w-0 grid-cols-1 gap-x-5 gap-y-3.5 sm:grid-cols-2" }, St = { key: 1 }, Ct = {
|
|
812
813
|
key: 0,
|
|
813
814
|
class: "mb-3 text-xs text-slate-500"
|
|
814
|
-
},
|
|
815
|
+
}, wt = {
|
|
815
816
|
key: 1,
|
|
816
817
|
class: "mb-3 text-xs text-danger-700"
|
|
817
|
-
},
|
|
818
|
+
}, Tt = {
|
|
818
819
|
key: 2,
|
|
819
820
|
class: "divide-y divide-slate-100"
|
|
820
|
-
},
|
|
821
|
+
}, Et = { class: "min-w-0" }, $ = { class: "break-words text-sm font-medium text-slate-800" }, Dt = {
|
|
821
822
|
key: 0,
|
|
822
823
|
class: "mt-0.5 text-xs text-slate-400"
|
|
823
|
-
},
|
|
824
|
+
}, Ot = {
|
|
824
825
|
key: 0,
|
|
825
826
|
class: "flex shrink-0 items-center gap-2"
|
|
826
|
-
},
|
|
827
|
+
}, kt = ["disabled"], At = ["href"], jt = ["disabled"], Mt = ["disabled"], Nt = ["disabled"], Pt = {
|
|
827
828
|
key: 3,
|
|
828
829
|
class: "text-sm text-slate-400"
|
|
829
|
-
},
|
|
830
|
+
}, Ft = { class: "xl:sticky xl:top-6 xl:self-start" }, It = { class: "h-[600px] xl:h-[calc(100vh-3rem)] xl:max-h-[760px]" }, Lt = {
|
|
830
831
|
key: 1,
|
|
831
832
|
class: "flex h-full min-h-[320px] flex-col items-center justify-center rounded-2xl border border-slate-200 bg-white p-8 text-center shadow-card"
|
|
832
|
-
},
|
|
833
|
+
}, Rt = {
|
|
833
834
|
key: 2,
|
|
834
835
|
class: "rounded-xl border border-slate-200 bg-white px-6 py-16 text-center shadow-card"
|
|
835
|
-
},
|
|
836
|
-
function
|
|
837
|
-
return r.loading ? (
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
to:
|
|
836
|
+
}, zt = { class: "text-sm text-slate-500" };
|
|
837
|
+
function Bt(e, t, n, r, i, a) {
|
|
838
|
+
return r.loading ? (O(), x("div", rt, " Завантаження… ")) : r.application ? (O(), x("div", it, [
|
|
839
|
+
S("div", at, [S("nav", ot, [
|
|
840
|
+
w(r.RouterLink, {
|
|
841
|
+
to: r.listPath,
|
|
841
842
|
class: "flex items-center gap-1 text-slate-400 transition-colors hover:text-brand-600"
|
|
842
843
|
}, {
|
|
843
|
-
default:
|
|
844
|
+
default: L(() => [w(r.AppIcon, {
|
|
844
845
|
name: "home",
|
|
845
846
|
class: "h-3.5 w-3.5"
|
|
846
|
-
}), t[8] ||=
|
|
847
|
+
}), t[8] ||= C(" Звернення ", -1)]),
|
|
847
848
|
_: 1
|
|
848
|
-
}),
|
|
849
|
-
|
|
849
|
+
}, 8, ["to"]),
|
|
850
|
+
w(r.AppIcon, {
|
|
850
851
|
name: "chevron-right",
|
|
851
852
|
class: "h-3.5 w-3.5 text-slate-300"
|
|
852
853
|
}),
|
|
853
|
-
|
|
854
|
-
]),
|
|
854
|
+
S("span", st, j(r.application.number || "—"), 1)
|
|
855
|
+
]), S("div", ct, [S("div", lt, [S("h1", ut, "Звернення " + j(r.application.number || "—"), 1), S("p", dt, j(r.organization?.name || "—"), 1)]), w(r.AppealStatusBadge, {
|
|
855
856
|
status: r.application.status || "",
|
|
856
857
|
label: r.application.status_data?.text || void 0
|
|
857
858
|
}, null, 8, ["status", "label"])])]),
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
icon:
|
|
859
|
+
S("div", ft, [S("div", pt, [
|
|
860
|
+
w(r.AppealDetailSection, { title: "Заявка" }, {
|
|
861
|
+
icon: L(() => [w(r.AppIcon, {
|
|
861
862
|
name: "file-check-2",
|
|
862
863
|
class: "h-[18px] w-[18px]"
|
|
863
864
|
})]),
|
|
864
|
-
default:
|
|
865
|
-
|
|
865
|
+
default: L(() => [S("dl", mt, [
|
|
866
|
+
w(r.AppealDetailField, {
|
|
866
867
|
label: "Номер звернення",
|
|
867
868
|
highlight: ""
|
|
868
869
|
}, {
|
|
869
|
-
default:
|
|
870
|
+
default: L(() => [C(j(r.application.number || "—"), 1)]),
|
|
870
871
|
_: 1
|
|
871
872
|
}),
|
|
872
|
-
|
|
873
|
+
S("div", null, [t[9] ||= S("dt", { class: "mb-1 text-xs font-medium text-slate-500" }, "Статус", -1), S("dd", null, [w(r.AppealStatusBadge, {
|
|
873
874
|
status: r.application.status || "",
|
|
874
875
|
label: r.application.status_data?.text || void 0,
|
|
875
876
|
size: "sm"
|
|
876
877
|
}, null, 8, ["status", "label"])])]),
|
|
877
|
-
|
|
878
|
+
w(r.AppealDetailBoolean, {
|
|
878
879
|
label: "Внесено в ЄЦТО",
|
|
879
880
|
value: r.application.status === "completed" || !!r.application.integrated_at
|
|
880
881
|
}, null, 8, ["value"]),
|
|
881
|
-
|
|
882
|
-
default:
|
|
882
|
+
w(r.AppealDetailField, { label: "Перевірив" }, {
|
|
883
|
+
default: L(() => [C(j(r.application.verified_by_data?.text || "—"), 1)]),
|
|
883
884
|
_: 1
|
|
884
885
|
}),
|
|
885
|
-
|
|
886
|
-
default:
|
|
886
|
+
w(r.AppealDetailField, { label: "Вид робіт" }, {
|
|
887
|
+
default: L(() => [C(j(r.application.work_type_data?.text || "—"), 1)]),
|
|
887
888
|
_: 1
|
|
888
889
|
}),
|
|
889
|
-
|
|
890
|
+
w(r.AppealDetailField, {
|
|
890
891
|
label: "Опис запиту",
|
|
891
892
|
full: ""
|
|
892
893
|
}, {
|
|
893
|
-
default:
|
|
894
|
+
default: L(() => [C(j(r.application.description || "—"), 1)]),
|
|
894
895
|
_: 1
|
|
895
896
|
}),
|
|
896
|
-
|
|
897
|
+
w(r.AppealDetailField, {
|
|
897
898
|
label: "Підстава виконання робіт",
|
|
898
899
|
full: ""
|
|
899
900
|
}, {
|
|
900
|
-
default:
|
|
901
|
+
default: L(() => [C(j(r.application.execution_basis || "—"), 1)]),
|
|
901
902
|
_: 1
|
|
902
903
|
}),
|
|
903
|
-
|
|
904
|
+
w(r.AppealDetailField, {
|
|
904
905
|
label: "Примітки",
|
|
905
906
|
full: ""
|
|
906
907
|
}, {
|
|
907
|
-
default:
|
|
908
|
+
default: L(() => [C(j(r.application.notes || "—"), 1)]),
|
|
908
909
|
_: 1
|
|
909
910
|
})
|
|
910
911
|
])]),
|
|
911
912
|
_: 1
|
|
912
913
|
}),
|
|
913
|
-
|
|
914
|
-
icon:
|
|
914
|
+
w(r.AppealDetailSection, { title: "Об'єкт робіт" }, {
|
|
915
|
+
icon: L(() => [w(r.AppIcon, {
|
|
915
916
|
name: "building-2",
|
|
916
917
|
class: "h-[18px] w-[18px]"
|
|
917
918
|
})]),
|
|
918
|
-
default:
|
|
919
|
-
|
|
919
|
+
default: L(() => [S("dl", ht, [
|
|
920
|
+
w(r.AppealDetailField, {
|
|
920
921
|
label: "Площа, га",
|
|
921
922
|
highlight: ""
|
|
922
923
|
}, {
|
|
923
|
-
default:
|
|
924
|
+
default: L(() => [C(j(r.application.area ?? "—"), 1)]),
|
|
924
925
|
_: 1
|
|
925
926
|
}),
|
|
926
|
-
r.showAddress ? (
|
|
927
|
+
r.showAddress ? (O(), y(r.AppealDetailField, {
|
|
927
928
|
key: 0,
|
|
928
929
|
label: "Адреса",
|
|
929
930
|
full: ""
|
|
930
931
|
}, {
|
|
931
|
-
default:
|
|
932
|
+
default: L(() => [C(j(r.address), 1)]),
|
|
932
933
|
_: 1
|
|
933
|
-
})) :
|
|
934
|
-
r.application?.location ? (
|
|
934
|
+
})) : b("", !0),
|
|
935
|
+
r.application?.location ? (O(), y(r.AppealDetailField, {
|
|
935
936
|
key: 1,
|
|
936
937
|
label: "Місцезнаходження",
|
|
937
938
|
full: ""
|
|
938
939
|
}, {
|
|
939
|
-
default:
|
|
940
|
+
default: L(() => [C(j(r.application.location || "—"), 1)]),
|
|
940
941
|
_: 1
|
|
941
|
-
})) :
|
|
942
|
+
})) : b("", !0)
|
|
942
943
|
])]),
|
|
943
944
|
_: 1
|
|
944
945
|
}),
|
|
945
|
-
|
|
946
|
-
icon:
|
|
946
|
+
w(r.AppealDetailSection, { title: "Дати та етапи" }, {
|
|
947
|
+
icon: L(() => [w(r.AppIcon, {
|
|
947
948
|
name: "calendar-days",
|
|
948
949
|
class: "h-[18px] w-[18px]"
|
|
949
950
|
})]),
|
|
950
|
-
default:
|
|
951
|
-
|
|
951
|
+
default: L(() => [S("dl", gt, [
|
|
952
|
+
w(r.AppealDetailField, {
|
|
952
953
|
label: "Дата прийому заявки",
|
|
953
954
|
highlight: ""
|
|
954
955
|
}, {
|
|
955
|
-
default:
|
|
956
|
+
default: L(() => [C(j(r.formatDate(r.application.created_at) || "—"), 1)]),
|
|
956
957
|
_: 1
|
|
957
958
|
}),
|
|
958
|
-
|
|
959
|
-
default:
|
|
959
|
+
w(r.AppealDetailField, { label: "Дата видачі даних" }, {
|
|
960
|
+
default: L(() => [C(j(r.formatDate(r.application.source_data_issued_at) || "—"), 1)]),
|
|
960
961
|
_: 1
|
|
961
962
|
}),
|
|
962
|
-
|
|
963
|
-
default:
|
|
963
|
+
w(r.AppealDetailField, { label: "Дата скасування" }, {
|
|
964
|
+
default: L(() => [C(j(r.formatDate(r.application.cancelled_at) || "—"), 1)]),
|
|
964
965
|
_: 1
|
|
965
966
|
}),
|
|
966
|
-
|
|
967
|
-
default:
|
|
967
|
+
w(r.AppealDetailField, { label: "Дата прийому даних" }, {
|
|
968
|
+
default: L(() => [C(j(r.formatDate(r.application.survey_uploaded_at) || "—"), 1)]),
|
|
968
969
|
_: 1
|
|
969
970
|
}),
|
|
970
|
-
|
|
971
|
-
default:
|
|
971
|
+
w(r.AppealDetailField, { label: "Дата внесення в ЄЦТО" }, {
|
|
972
|
+
default: L(() => [C(j(r.formatDate(r.application.integrated_at) || "—"), 1)]),
|
|
972
973
|
_: 1
|
|
973
974
|
}),
|
|
974
|
-
|
|
975
|
-
default:
|
|
975
|
+
w(r.AppealDetailField, { label: "Дата перевірки" }, {
|
|
976
|
+
default: L(() => [C(j(r.formatDate(r.application.verified_at) || "—"), 1)]),
|
|
976
977
|
_: 1
|
|
977
978
|
})
|
|
978
979
|
])]),
|
|
979
980
|
_: 1
|
|
980
981
|
}),
|
|
981
|
-
r.application.cancel_reason || r.application.status === "cancelled" ? (
|
|
982
|
+
r.application.cancel_reason || r.application.status === "cancelled" ? (O(), y(r.AppealDetailSection, {
|
|
982
983
|
key: 0,
|
|
983
984
|
title: "Скасування",
|
|
984
985
|
danger: ""
|
|
985
986
|
}, {
|
|
986
|
-
icon:
|
|
987
|
+
icon: L(() => [w(r.AppIcon, {
|
|
987
988
|
name: "ban",
|
|
988
989
|
class: "h-[18px] w-[18px]"
|
|
989
990
|
})]),
|
|
990
|
-
default:
|
|
991
|
+
default: L(() => [S("dl", _t, [w(r.AppealDetailField, {
|
|
991
992
|
label: "Причина скасування заявки",
|
|
992
993
|
full: "",
|
|
993
994
|
highlight: ""
|
|
994
995
|
}, {
|
|
995
|
-
default:
|
|
996
|
+
default: L(() => [C(j(r.application.cancel_reason || "Причину не вказано"), 1)]),
|
|
996
997
|
_: 1
|
|
997
998
|
})])]),
|
|
998
999
|
_: 1
|
|
999
|
-
})) :
|
|
1000
|
-
|
|
1001
|
-
icon:
|
|
1000
|
+
})) : b("", !0),
|
|
1001
|
+
w(r.AppealDetailSection, { title: "Інформація про заявника" }, {
|
|
1002
|
+
icon: L(() => [w(r.AppIcon, {
|
|
1002
1003
|
name: "user",
|
|
1003
1004
|
class: "h-[18px] w-[18px]"
|
|
1004
1005
|
})]),
|
|
1005
|
-
default:
|
|
1006
|
-
|
|
1006
|
+
default: L(() => [S("div", vt, [S("dl", yt, [
|
|
1007
|
+
w(r.AppealDetailField, {
|
|
1007
1008
|
label: "ПІБ",
|
|
1008
1009
|
highlight: "",
|
|
1009
1010
|
full: ""
|
|
1010
1011
|
}, {
|
|
1011
|
-
default:
|
|
1012
|
+
default: L(() => [C(j(r.applicantName), 1)]),
|
|
1012
1013
|
_: 1
|
|
1013
1014
|
}),
|
|
1014
|
-
|
|
1015
|
-
default:
|
|
1015
|
+
w(r.AppealDetailField, { label: "Номер сертифікату" }, {
|
|
1016
|
+
default: L(() => [C(j(r.surveyor?.certificate_id_data?.text || "—"), 1)]),
|
|
1016
1017
|
_: 1
|
|
1017
1018
|
}),
|
|
1018
|
-
|
|
1019
|
-
default:
|
|
1019
|
+
w(r.AppealDetailField, { label: "Дата сертифікату" }, {
|
|
1020
|
+
default: L(() => [C(j(r.certificateDate || "—"), 1)]),
|
|
1020
1021
|
_: 1
|
|
1021
1022
|
}),
|
|
1022
|
-
|
|
1023
|
-
default:
|
|
1023
|
+
w(r.AppealDetailField, { label: "Номер телефону" }, {
|
|
1024
|
+
default: L(() => [C(j(r.surveyor?.phone || "—"), 1)]),
|
|
1024
1025
|
_: 1
|
|
1025
1026
|
}),
|
|
1026
|
-
|
|
1027
|
-
default:
|
|
1027
|
+
w(r.AppealDetailField, { label: "Email" }, {
|
|
1028
|
+
default: L(() => [C(j(r.surveyor?.email || "—"), 1)]),
|
|
1028
1029
|
_: 1
|
|
1029
1030
|
})
|
|
1030
|
-
]),
|
|
1031
|
-
|
|
1031
|
+
]), S("div", bt, [t[10] ||= S("h3", { class: "mb-3 text-xs font-semibold uppercase tracking-wide text-slate-400" }, "Організація", -1), S("dl", xt, [
|
|
1032
|
+
w(r.AppealDetailField, {
|
|
1032
1033
|
label: "Назва організації",
|
|
1033
1034
|
highlight: "",
|
|
1034
1035
|
full: ""
|
|
1035
1036
|
}, {
|
|
1036
|
-
default:
|
|
1037
|
+
default: L(() => [r.organization?.org_id ? (O(), y(r.RouterLink, {
|
|
1037
1038
|
key: 0,
|
|
1038
1039
|
to: `/organizations/${r.organization.org_id}`,
|
|
1039
1040
|
class: "break-words text-brand-600 hover:text-brand-800 hover:underline"
|
|
1040
1041
|
}, {
|
|
1041
|
-
default:
|
|
1042
|
+
default: L(() => [C(j(r.organization.name || "—"), 1)]),
|
|
1042
1043
|
_: 1
|
|
1043
|
-
}, 8, ["to"])) : (
|
|
1044
|
+
}, 8, ["to"])) : (O(), x("span", St, "—"))]),
|
|
1044
1045
|
_: 1
|
|
1045
1046
|
}),
|
|
1046
|
-
|
|
1047
|
-
default:
|
|
1047
|
+
w(r.AppealDetailField, { label: "Телефон організації" }, {
|
|
1048
|
+
default: L(() => [C(j(r.organization?.phone || "—"), 1)]),
|
|
1048
1049
|
_: 1
|
|
1049
1050
|
}),
|
|
1050
|
-
|
|
1051
|
-
default:
|
|
1051
|
+
w(r.AppealDetailField, { label: "Email організації" }, {
|
|
1052
|
+
default: L(() => [C(j(r.organization?.email || "—"), 1)]),
|
|
1052
1053
|
_: 1
|
|
1053
1054
|
}),
|
|
1054
|
-
|
|
1055
|
+
w(r.AppealDetailField, {
|
|
1055
1056
|
label: "Юридична адреса",
|
|
1056
1057
|
full: ""
|
|
1057
1058
|
}, {
|
|
1058
|
-
default:
|
|
1059
|
+
default: L(() => [C(j(r.organization?.legal_address || "—"), 1)]),
|
|
1059
1060
|
_: 1
|
|
1060
1061
|
})
|
|
1061
1062
|
])])])]),
|
|
1062
1063
|
_: 1
|
|
1063
1064
|
}),
|
|
1064
|
-
|
|
1065
|
-
icon:
|
|
1065
|
+
w(r.AppealDetailSection, { title: "Файли" }, {
|
|
1066
|
+
icon: L(() => [w(r.AppIcon, {
|
|
1066
1067
|
name: "file-text",
|
|
1067
1068
|
class: "h-[18px] w-[18px]"
|
|
1068
1069
|
})]),
|
|
1069
|
-
default:
|
|
1070
|
-
r.application.status === "reserve" ? (
|
|
1071
|
-
r.workflowError ? (
|
|
1072
|
-
r.files.length ? (
|
|
1070
|
+
default: L(() => [
|
|
1071
|
+
r.application.status === "reserve" ? (O(), x("p", Ct, " Заявка в резерві: доступні лише межі території до зняття просторового конфлікту. ")) : b("", !0),
|
|
1072
|
+
r.workflowError ? (O(), x("p", wt, j(r.workflowError), 1)) : b("", !0),
|
|
1073
|
+
r.files.length ? (O(), x("ul", Tt, [(O(!0), x(_, null, A(r.files, (e) => (O(), x("li", {
|
|
1073
1074
|
key: e.id,
|
|
1074
1075
|
class: "flex items-center justify-between gap-4 py-3 first:pt-0 last:pb-0"
|
|
1075
|
-
}, [
|
|
1076
|
+
}, [S("div", Et, [S("p", $, j(e.label), 1), e.note ? (O(), x("p", Dt, "Примітка: " + j(e.note), 1)) : b("", !0)]), e.action === "download" && (e.href || e.token) ? (O(), x("div", Ot, [e.replaceable ? (O(), x("button", {
|
|
1076
1077
|
key: 0,
|
|
1077
1078
|
type: "button",
|
|
1078
|
-
class:
|
|
1079
|
+
class: D(r.fileUploadBtnClass),
|
|
1079
1080
|
disabled: r.workflowBusy,
|
|
1080
1081
|
onClick: t[0] ||= (e) => {
|
|
1081
1082
|
r.workflowError = "", r.workflowRef?.openReplaceOutput();
|
|
1082
1083
|
}
|
|
1083
|
-
}, [
|
|
1084
|
+
}, [w(r.AppIcon, {
|
|
1084
1085
|
name: "upload",
|
|
1085
1086
|
class: "h-3 w-3"
|
|
1086
|
-
}), t[11] ||=
|
|
1087
|
+
}), t[11] ||= C(" Замінити ", -1)], 8, kt)) : b("", !0), S("a", {
|
|
1087
1088
|
href: e.href || (e.token ? r.fileUrl(e.token) : void 0),
|
|
1088
|
-
class:
|
|
1089
|
-
}, [
|
|
1089
|
+
class: D(r.fileDownloadBtnClass)
|
|
1090
|
+
}, [w(r.AppIcon, {
|
|
1090
1091
|
name: "download",
|
|
1091
1092
|
class: "h-3 w-3"
|
|
1092
|
-
}), t[12] ||=
|
|
1093
|
+
}), t[12] ||= C(" Завантажити ", -1)], 8, At)])) : e.action === "issue" ? (O(), x("button", {
|
|
1093
1094
|
key: 1,
|
|
1094
1095
|
type: "button",
|
|
1095
|
-
class:
|
|
1096
|
+
class: D(r.fileUploadBtnClass),
|
|
1096
1097
|
disabled: r.workflowBusy,
|
|
1097
1098
|
onClick: t[1] ||= (e) => {
|
|
1098
1099
|
r.workflowError = "", r.workflowRef?.openIssue();
|
|
1099
1100
|
}
|
|
1100
|
-
}, [
|
|
1101
|
+
}, [w(r.AppIcon, {
|
|
1101
1102
|
name: "upload",
|
|
1102
1103
|
class: "h-3 w-3"
|
|
1103
|
-
}), t[13] ||=
|
|
1104
|
+
}), t[13] ||= C(" Надіслати ", -1)], 8, jt)) : e.action === "verify" ? (O(), x("button", {
|
|
1104
1105
|
key: 2,
|
|
1105
1106
|
type: "button",
|
|
1106
|
-
class:
|
|
1107
|
+
class: D(r.fileUploadBtnClass),
|
|
1107
1108
|
disabled: r.workflowBusy,
|
|
1108
1109
|
onClick: t[2] ||= (e) => r.workflowRef?.openVerify()
|
|
1109
|
-
}, [
|
|
1110
|
+
}, [w(r.AppIcon, {
|
|
1110
1111
|
name: "file-check-2",
|
|
1111
1112
|
class: "h-3 w-3"
|
|
1112
|
-
}), t[14] ||=
|
|
1113
|
+
}), t[14] ||= C(" Перевірити ", -1)], 8, Mt)) : e.action === "complete" ? (O(), x("button", {
|
|
1113
1114
|
key: 3,
|
|
1114
1115
|
type: "button",
|
|
1115
|
-
class:
|
|
1116
|
+
class: D(r.fileUploadBtnClass),
|
|
1116
1117
|
disabled: r.workflowBusy,
|
|
1117
1118
|
onClick: t[3] ||= (e) => r.workflowRef?.openComplete()
|
|
1118
|
-
}, [
|
|
1119
|
+
}, [w(r.AppIcon, {
|
|
1119
1120
|
name: "circle-check",
|
|
1120
1121
|
class: "h-3 w-3"
|
|
1121
|
-
}), t[15] ||=
|
|
1122
|
+
}), t[15] ||= C(" Підтвердити ", -1)], 8, Nt)) : e.action === "exportVector" ? (O(), x("button", {
|
|
1122
1123
|
key: 4,
|
|
1123
1124
|
type: "button",
|
|
1124
|
-
class:
|
|
1125
|
+
class: D(r.fileDownloadBtnClass),
|
|
1125
1126
|
onClick: t[4] ||= (e) => {
|
|
1126
1127
|
r.workflowError = "", r.vectorExportOpen = !0;
|
|
1127
1128
|
}
|
|
1128
|
-
}, [
|
|
1129
|
+
}, [w(r.AppIcon, {
|
|
1129
1130
|
name: "download",
|
|
1130
1131
|
class: "h-3 w-3"
|
|
1131
|
-
}), t[16] ||=
|
|
1132
|
+
}), t[16] ||= C(" Завантажити ", -1)])) : b("", !0)]))), 128))])) : (O(), x("p", Pt, "Файли відсутні."))
|
|
1132
1133
|
]),
|
|
1133
1134
|
_: 1
|
|
1134
1135
|
}),
|
|
1135
|
-
r.application.app_id ? (
|
|
1136
|
+
r.application.app_id ? (O(), y(r.ApplicationCommentsSection, {
|
|
1136
1137
|
key: 1,
|
|
1137
1138
|
"application-id": r.application.app_id,
|
|
1138
1139
|
resource: "applications",
|
|
1139
1140
|
variant: "admin",
|
|
1140
1141
|
"current-author": r.commentCurrentAuthor,
|
|
1141
1142
|
"resolve-author": r.resolveNoteAuthor
|
|
1142
|
-
}, null, 8, ["application-id", "current-author"])) :
|
|
1143
|
-
|
|
1143
|
+
}, null, 8, ["application-id", "current-author"])) : b("", !0),
|
|
1144
|
+
w(r.ApplicationHistorySection, {
|
|
1144
1145
|
items: r.application.history,
|
|
1145
1146
|
variant: "admin"
|
|
1146
1147
|
}, null, 8, ["items"])
|
|
1147
|
-
]),
|
|
1148
|
+
]), S("div", Ft, [S("div", It, [r.showMap && r.application ? (O(), y(r.AppealDetailMap, {
|
|
1148
1149
|
key: r.application.app_id,
|
|
1149
1150
|
geom: r.application.geom,
|
|
1150
1151
|
address: r.address,
|
|
@@ -1156,11 +1157,11 @@ function zt(e, t, n, r, i, a) {
|
|
|
1156
1157
|
"address",
|
|
1157
1158
|
"area",
|
|
1158
1159
|
"location"
|
|
1159
|
-
])) : (
|
|
1160
|
+
])) : (O(), x("div", Lt, [w(r.AppIcon, {
|
|
1160
1161
|
name: "map",
|
|
1161
1162
|
class: "mb-3 h-8 w-8 text-slate-300"
|
|
1162
|
-
}), t[17] ||=
|
|
1163
|
-
r.application.app_id ? (
|
|
1163
|
+
}), t[17] ||= S("p", { class: "text-sm text-slate-500" }, "Геометрію заявки не вдалося відобразити", -1)]))])])]),
|
|
1164
|
+
r.application.app_id ? (O(), y(r.ApplicationWorkflowActions, {
|
|
1164
1165
|
key: 0,
|
|
1165
1166
|
ref: "workflowRef",
|
|
1166
1167
|
"application-id": r.application.app_id,
|
|
@@ -1169,21 +1170,21 @@ function zt(e, t, n, r, i, a) {
|
|
|
1169
1170
|
r.workflowError = "", r.workflowBusy = !1, r.loadApplication(r.application.app_id);
|
|
1170
1171
|
},
|
|
1171
1172
|
onError: t[6] ||= (e) => r.workflowError = e
|
|
1172
|
-
}, null, 8, ["application-id", "status"])) :
|
|
1173
|
-
r.application.app_id ? (
|
|
1173
|
+
}, null, 8, ["application-id", "status"])) : b("", !0),
|
|
1174
|
+
r.application.app_id ? (O(), y(r.ApplicationVectorExportModal, {
|
|
1174
1175
|
key: 1,
|
|
1175
1176
|
modelValue: r.vectorExportOpen,
|
|
1176
1177
|
"onUpdate:modelValue": t[7] ||= (e) => r.vectorExportOpen = e,
|
|
1177
1178
|
"application-id": r.application.app_id
|
|
1178
|
-
}, null, 8, ["modelValue", "application-id"])) :
|
|
1179
|
-
])) : (
|
|
1180
|
-
to:
|
|
1179
|
+
}, null, 8, ["modelValue", "application-id"])) : b("", !0)
|
|
1180
|
+
])) : (O(), x("div", Rt, [S("p", zt, j(r.error || "Звернення не знайдено."), 1), w(r.RouterLink, {
|
|
1181
|
+
to: r.listPath,
|
|
1181
1182
|
class: "mt-3 inline-block text-sm font-medium text-brand-600 hover:text-brand-700"
|
|
1182
1183
|
}, {
|
|
1183
|
-
default:
|
|
1184
|
+
default: L(() => [...t[18] ||= [C(" Повернутися до реєстру ", -1)]]),
|
|
1184
1185
|
_: 1
|
|
1185
|
-
})]));
|
|
1186
|
+
}, 8, ["to"])]));
|
|
1186
1187
|
}
|
|
1187
|
-
var
|
|
1188
|
+
var Vt = /*#__PURE__*/ e(nt, [["render", Bt], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/card.vue"]]);
|
|
1188
1189
|
//#endregion
|
|
1189
|
-
export {
|
|
1190
|
+
export { Vt as default };
|