@opengis/surveyor 0.0.6 → 0.0.7
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/{card-B_SfARf7.js → card-9r6Si3cz.js} +315 -315
- package/dist/chunks/{card-BDqeihxR.js → card-rXkTqZqA.js} +72 -72
- package/dist/chunks/create-BAsyL76t.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/index.css +1 -1
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/dist/chunks/create-BPWuoys6.js +0 -1047
|
@@ -5,11 +5,11 @@ import { n as c, t as l } from "./AppealDetailField-DNRGpnyD.js";
|
|
|
5
5
|
import { t as u } from "./BaseModal-SQXvRRNW.js";
|
|
6
6
|
import { t as d } from "./AppealStatusBadge-Cu-UzdzA.js";
|
|
7
7
|
import { r as f } from "./geometry-DyhIVRcw.js";
|
|
8
|
-
import {
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { RouterLink as
|
|
8
|
+
import { a as p, i as m, n as h, r as g, t as _ } from "./ApplicationHistorySection-Cwq0-Frd.js";
|
|
9
|
+
import { Fragment as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createTextVNode as w, createVNode as T, defineComponent as E, mergeModels as D, normalizeClass as O, openBlock as k, ref as A, renderList as j, toDisplayString as M, useModel as N, vModelRadio as P, vModelSelect as F, vModelText as I, watch as L, withCtx as R, withDirectives as z } from "vue";
|
|
10
|
+
import { RouterLink as B, useRoute as V } from "vue-router";
|
|
11
11
|
//#region admin/src/pages/requests/components/AppealDetailBoolean.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var
|
|
12
|
+
var H = /*@__PURE__*/ E({
|
|
13
13
|
__name: "AppealDetailBoolean",
|
|
14
14
|
props: {
|
|
15
15
|
label: {
|
|
@@ -29,23 +29,23 @@ var V = /*@__PURE__*/ T({
|
|
|
29
29
|
value: !0
|
|
30
30
|
}), r;
|
|
31
31
|
}
|
|
32
|
-
}),
|
|
32
|
+
}), U = { class: "mb-1 text-xs font-medium text-slate-500" }, W = {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "inline-flex items-center gap-1.5 text-[14px] font-medium text-success-700"
|
|
35
|
-
},
|
|
35
|
+
}, ee = {
|
|
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 te(e, t, n, r, i, a) {
|
|
40
|
+
return k(), S("div", null, [C("dt", U, M(n.label), 1), C("dd", null, [n.value ? (k(), S("span", W, [T(r.AppIcon, {
|
|
41
41
|
name: "circle-check",
|
|
42
42
|
class: "h-4 w-4"
|
|
43
|
-
}), t[0] ||=
|
|
43
|
+
}), t[0] ||= w(" Так ", -1)])) : (k(), S("span", ee, [T(r.AppIcon, {
|
|
44
44
|
name: "circle-x",
|
|
45
45
|
class: "h-4 w-4"
|
|
46
|
-
}), t[1] ||=
|
|
46
|
+
}), t[1] ||= w(" Ні ", -1)]))])]);
|
|
47
47
|
}
|
|
48
|
-
var
|
|
48
|
+
var ne = /*#__PURE__*/ e(H, [["render", te], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/AppealDetailBoolean.vue"]]), re = /*@__PURE__*/ E({
|
|
49
49
|
__name: "FormFilePicker",
|
|
50
50
|
props: {
|
|
51
51
|
fileName: {
|
|
@@ -64,7 +64,7 @@ var te = /*#__PURE__*/ e(V, [["render", ee], ["__file", "C:/softpro/surveyor/adm
|
|
|
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 = A(null);
|
|
68
68
|
function s() {
|
|
69
69
|
o.value?.click();
|
|
70
70
|
}
|
|
@@ -72,7 +72,7 @@ var te = /*#__PURE__*/ e(V, [["render", ee], ["__file", "C:/softpro/surveyor/adm
|
|
|
72
72
|
let t = e.target.files?.[0] ?? null;
|
|
73
73
|
a("change", t);
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
L(() => i.fileName, (e) => {
|
|
76
76
|
!e && o.value && (o.value.value = "");
|
|
77
77
|
});
|
|
78
78
|
let l = {
|
|
@@ -88,33 +88,33 @@ var te = /*#__PURE__*/ e(V, [["render", ee], ["__file", "C:/softpro/surveyor/adm
|
|
|
88
88
|
value: !0
|
|
89
89
|
}), l;
|
|
90
90
|
}
|
|
91
|
-
}),
|
|
91
|
+
}), G = { 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" }, K = { class: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between" }, q = { class: "flex min-w-0 flex-1 items-center gap-3" }, J = { 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" }, Y = { class: "min-w-0" }, X = {
|
|
92
92
|
key: 0,
|
|
93
93
|
class: "truncate text-sm font-medium text-slate-800"
|
|
94
|
-
},
|
|
94
|
+
}, ie = {
|
|
95
95
|
key: 1,
|
|
96
96
|
class: "text-sm text-slate-400"
|
|
97
|
-
},
|
|
98
|
-
function
|
|
99
|
-
return
|
|
97
|
+
}, ae = ["accept"];
|
|
98
|
+
function oe(e, t, n, r, i, a) {
|
|
99
|
+
return k(), S("div", G, [C("div", K, [C("div", q, [C("span", J, [T(r.AppIcon, {
|
|
100
100
|
name: "file-text",
|
|
101
101
|
class: "h-[18px] w-[18px]"
|
|
102
|
-
})]),
|
|
102
|
+
})]), C("div", Y, [n.fileName ? (k(), S("p", X, M(n.fileName), 1)) : (k(), S("p", ie, "Файл не обрано")), t[0] ||= C("p", { class: "mt-0.5 text-xs text-slate-400" }, "ZIP, GeoJSON або інший дозволений формат", -1)])]), C("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
|
+
}, [T(r.AppIcon, {
|
|
107
107
|
name: "upload",
|
|
108
108
|
class: "h-4 w-4 text-brand-500"
|
|
109
|
-
}),
|
|
109
|
+
}), w(" " + M(n.buttonLabel ?? "Обрати файл"), 1)])]), C("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, ae)]);
|
|
116
116
|
}
|
|
117
|
-
var
|
|
117
|
+
var se = /*#__PURE__*/ e(re, [["render", oe], ["__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);
|
|
@@ -139,10 +139,10 @@ async function Q(e, t) {
|
|
|
139
139
|
token: i.token
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function ce(e) {
|
|
143
143
|
return s(`/api/surveyor/applications/${encodeURIComponent(e)}/export/geometry`);
|
|
144
144
|
}
|
|
145
|
-
async function
|
|
145
|
+
async function le(e, t) {
|
|
146
146
|
let n = await fetch(s(`/api/surveyor/applications/${encodeURIComponent(e)}/export/vector`), {
|
|
147
147
|
method: "POST",
|
|
148
148
|
credentials: "include",
|
|
@@ -161,7 +161,7 @@ async function ce(e, t) {
|
|
|
161
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
162
|
c.href = o, c.download = a, c.click(), URL.revokeObjectURL(o);
|
|
163
163
|
}
|
|
164
|
-
async function
|
|
164
|
+
async function ue(e, t, n) {
|
|
165
165
|
return r(`/api/surveyor/applications/${encodeURIComponent(e)}/upload-source-data`, {
|
|
166
166
|
method: "POST",
|
|
167
167
|
body: JSON.stringify({
|
|
@@ -170,21 +170,21 @@ async function le(e, t, n) {
|
|
|
170
170
|
})
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
async function
|
|
173
|
+
async function de(e, t) {
|
|
174
174
|
return o(Z, e, { file_output: t });
|
|
175
175
|
}
|
|
176
|
-
async function
|
|
176
|
+
async function fe(e, t) {
|
|
177
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
|
|
182
|
+
async function pe(e) {
|
|
183
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 me = /*@__PURE__*/ E({
|
|
188
188
|
__name: "ApplicationWorkflowActions",
|
|
189
189
|
props: {
|
|
190
190
|
applicationId: {
|
|
@@ -198,19 +198,19 @@ var pe = /*@__PURE__*/ T({
|
|
|
198
198
|
},
|
|
199
199
|
emits: ["done", "error"],
|
|
200
200
|
setup(e, { expose: t, emit: n }) {
|
|
201
|
-
let r = e, i = n, a =
|
|
202
|
-
function
|
|
201
|
+
let r = e, i = n, a = A(!1), o = A(""), s = A(!1), c = A("issue"), l = A(""), d = A(null), f = A(""), p = A(!1), m = A(""), h = 0, g = A(!1), _ = A("verified"), v = A(""), b = A(null), x = A(""), S = A(!1), C = A(""), w = 0, T = A(!1), E = y(() => r.status === "awaitingData"), D = y(() => r.status === "underReview"), O = y(() => r.status === "verified");
|
|
202
|
+
function k() {
|
|
203
203
|
o.value = "";
|
|
204
204
|
}
|
|
205
205
|
function j() {
|
|
206
206
|
d.value = null, f.value = "", m.value = "", p.value = !1, l.value = "", h += 1;
|
|
207
207
|
}
|
|
208
208
|
function M() {
|
|
209
|
-
b.value = null, x.value = "", C.value = "", S.value = !1,
|
|
209
|
+
b.value = null, x.value = "", C.value = "", S.value = !1, v.value = "", w += 1;
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
L(s, (e) => {
|
|
212
212
|
e || j();
|
|
213
|
-
}),
|
|
213
|
+
}), L(g, (e) => {
|
|
214
214
|
e || M();
|
|
215
215
|
});
|
|
216
216
|
async function N(e) {
|
|
@@ -225,16 +225,16 @@ var pe = /*@__PURE__*/ T({
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
function P() {
|
|
228
|
-
|
|
228
|
+
k(), j(), c.value = "issue", s.value = !0;
|
|
229
229
|
}
|
|
230
230
|
function F() {
|
|
231
|
-
|
|
231
|
+
k(), j(), c.value = "replace", s.value = !0;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
233
|
+
function I() {
|
|
234
|
+
k(), M(), g.value = !0;
|
|
235
235
|
}
|
|
236
236
|
function R() {
|
|
237
|
-
|
|
237
|
+
k(), T.value = !0;
|
|
238
238
|
}
|
|
239
239
|
async function z(e) {
|
|
240
240
|
if (d.value = e, f.value = "", m.value = "", !e) return;
|
|
@@ -272,11 +272,11 @@ var pe = /*@__PURE__*/ T({
|
|
|
272
272
|
return;
|
|
273
273
|
}
|
|
274
274
|
await N(async () => {
|
|
275
|
-
c.value === "replace" ? await
|
|
275
|
+
c.value === "replace" ? await de(r.applicationId, f.value) : await ue(r.applicationId, f.value, l.value), s.value = !1;
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
278
|
async function H() {
|
|
279
|
-
if (_.value === "dataIssued" && !
|
|
279
|
+
if (_.value === "dataIssued" && !v.value.trim()) {
|
|
280
280
|
o.value = "Вкажіть причину повернення на доопрацювання";
|
|
281
281
|
return;
|
|
282
282
|
}
|
|
@@ -285,22 +285,22 @@ var pe = /*@__PURE__*/ T({
|
|
|
285
285
|
return;
|
|
286
286
|
}
|
|
287
287
|
await N(async () => {
|
|
288
|
-
await
|
|
288
|
+
await fe(r.applicationId, {
|
|
289
289
|
status: _.value,
|
|
290
290
|
...x.value ? { file_path: x.value } : {},
|
|
291
|
-
..._.value === "dataIssued" ||
|
|
291
|
+
..._.value === "dataIssued" || v.value.trim() ? { note_4_file_corrected_geodetic_survey: v.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 pe(r.applicationId), T.value = !1;
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
300
|
t({
|
|
301
301
|
openIssue: P,
|
|
302
302
|
openReplaceOutput: F,
|
|
303
|
-
openVerify:
|
|
303
|
+
openVerify: I,
|
|
304
304
|
openComplete: R,
|
|
305
305
|
canIssue: E,
|
|
306
306
|
canVerify: D,
|
|
@@ -328,7 +328,7 @@ var pe = /*@__PURE__*/ T({
|
|
|
328
328
|
},
|
|
329
329
|
verifyOpen: g,
|
|
330
330
|
verifyDecision: _,
|
|
331
|
-
verifyNote:
|
|
331
|
+
verifyNote: v,
|
|
332
332
|
verifyFile: b,
|
|
333
333
|
verifyUploadedPath: x,
|
|
334
334
|
verifyUploadBusy: S,
|
|
@@ -343,13 +343,13 @@ var pe = /*@__PURE__*/ T({
|
|
|
343
343
|
canIssue: E,
|
|
344
344
|
canVerify: D,
|
|
345
345
|
canComplete: O,
|
|
346
|
-
resetErrors:
|
|
346
|
+
resetErrors: k,
|
|
347
347
|
resetIssueModal: j,
|
|
348
348
|
resetVerifyModal: M,
|
|
349
349
|
runAction: N,
|
|
350
350
|
openIssue: P,
|
|
351
351
|
openReplaceOutput: F,
|
|
352
|
-
openVerify:
|
|
352
|
+
openVerify: I,
|
|
353
353
|
openComplete: R,
|
|
354
354
|
onIssueFileChange: z,
|
|
355
355
|
onVerifyFileChange: B,
|
|
@@ -357,134 +357,134 @@ var pe = /*@__PURE__*/ T({
|
|
|
357
357
|
submitVerify: H,
|
|
358
358
|
submitComplete: U,
|
|
359
359
|
BaseModal: u,
|
|
360
|
-
FormFilePicker:
|
|
360
|
+
FormFilePicker: se
|
|
361
361
|
};
|
|
362
362
|
return Object.defineProperty(W, "__isScriptSetup", {
|
|
363
363
|
enumerable: !1,
|
|
364
364
|
value: !0
|
|
365
365
|
}), W;
|
|
366
366
|
}
|
|
367
|
-
}),
|
|
367
|
+
}), he = { class: "space-y-4" }, ge = {
|
|
368
368
|
key: 0,
|
|
369
369
|
class: "mt-1.5 text-xs text-danger-700"
|
|
370
|
-
},
|
|
370
|
+
}, _e = {
|
|
371
371
|
key: 1,
|
|
372
372
|
class: "mt-1.5 text-xs text-emerald-700"
|
|
373
|
-
},
|
|
373
|
+
}, ve = { key: 0 }, ye = {
|
|
374
374
|
key: 1,
|
|
375
375
|
class: "text-xs text-danger-700"
|
|
376
|
-
},
|
|
376
|
+
}, be = { class: "flex justify-end gap-2" }, xe = ["disabled"], Se = { class: "space-y-4" }, Ce = { class: "flex gap-4 text-sm" }, we = { class: "flex items-center gap-2" }, Te = { class: "flex items-center gap-2" }, Ee = { class: "mb-1 block text-xs font-medium text-slate-500" }, De = {
|
|
377
377
|
key: 0,
|
|
378
378
|
class: "mt-1.5 text-xs text-danger-700"
|
|
379
|
-
},
|
|
379
|
+
}, Oe = {
|
|
380
380
|
key: 1,
|
|
381
381
|
class: "mt-1.5 text-xs text-emerald-700"
|
|
382
|
-
},
|
|
382
|
+
}, ke = {
|
|
383
383
|
key: 0,
|
|
384
384
|
class: "text-xs text-danger-700"
|
|
385
|
-
},
|
|
386
|
-
function
|
|
387
|
-
return
|
|
388
|
-
|
|
385
|
+
}, Ae = { class: "flex justify-end gap-2" }, je = ["disabled"], Me = { class: "flex justify-end gap-2" }, Ne = ["disabled"];
|
|
386
|
+
function Pe(e, t, n, r, i, a) {
|
|
387
|
+
return k(), S(v, null, [
|
|
388
|
+
T(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: R(() => [C("div", be, [C("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
|
+
}, "Скасувати"), C("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
|
+
}, M(r.issueMode === "replace" ? "Зберегти" : "Видати"), 9, xe)])]),
|
|
403
|
+
default: R(() => [C("div", he, [
|
|
404
|
+
C("div", null, [
|
|
405
|
+
t[10] ||= C("label", { class: "mb-1.5 block text-xs font-medium text-slate-500" }, "Файл", -1),
|
|
406
|
+
T(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 ? (k(), S("p", ge, M(r.issueUploadError), 1)) : r.issueUploadedPath ? (k(), S("p", _e, "Файл завантажено")) : x("", !0)
|
|
411
411
|
]),
|
|
412
|
-
r.issueMode === "issue" ? (
|
|
412
|
+
r.issueMode === "issue" ? (k(), S("div", ve, [t[11] ||= C("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Примітка", -1), z(C("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), [[I, r.issueNote]])])) : x("", !0),
|
|
417
|
+
r.actionError ? (k(), S("p", ye, M(r.actionError), 1)) : x("", !0)
|
|
418
418
|
])]),
|
|
419
419
|
_: 1
|
|
420
420
|
}, 8, ["modelValue", "title"]),
|
|
421
|
-
|
|
421
|
+
T(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: R(() => [C("div", Ae, [C("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
|
+
}, "Скасувати"), C("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, je)])]),
|
|
437
|
+
default: R(() => [C("div", Se, [
|
|
438
|
+
C("div", Ce, [C("label", we, [z(C("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), [[P, r.verifyDecision]]), t[12] ||= w(" Прийняти ", -1)]), C("label", Te, [z(C("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), [[P, r.verifyDecision]]), t[13] ||= w(" На доопрацювання ", -1)])]),
|
|
447
|
+
C("div", null, [C("label", Ee, M(r.verifyDecision === "dataIssued" ? "Причина (обовʼязково)" : "Примітка"), 1), z(C("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), [[I, r.verifyNote]])]),
|
|
452
|
+
C("div", null, [
|
|
453
|
+
t[14] ||= C("label", { class: "mb-1.5 block text-xs font-medium text-slate-500" }, "Виправлений файл (за потреби)", -1),
|
|
454
|
+
T(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 ? (k(), S("p", De, M(r.verifyUploadError), 1)) : r.verifyUploadedPath ? (k(), S("p", Oe, "Файл завантажено")) : x("", !0)
|
|
460
460
|
]),
|
|
461
|
-
r.actionError ? (
|
|
461
|
+
r.actionError ? (k(), S("p", ke, M(r.actionError), 1)) : x("", !0)
|
|
462
462
|
])]),
|
|
463
463
|
_: 1
|
|
464
464
|
}, 8, ["modelValue"]),
|
|
465
|
-
|
|
465
|
+
T(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: R(() => [C("div", Me, [C("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
|
+
}, "Скасувати"), C("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, Ne)])]),
|
|
480
|
+
default: R(() => [t[15] ||= C("p", { class: "text-sm text-slate-600" }, "Підтвердити внесення результатів до ЄЦТО та завершення заявки?", -1)]),
|
|
481
481
|
_: 1
|
|
482
482
|
}, 8, ["modelValue"])
|
|
483
483
|
], 64);
|
|
484
484
|
}
|
|
485
|
-
var
|
|
485
|
+
var Fe = /*#__PURE__*/ e(me, [["render", Pe], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/ApplicationWorkflowActions.vue"]]), Ie = "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", Le = "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", Re = /*@__PURE__*/ E({
|
|
486
486
|
__name: "ApplicationVectorExportModal",
|
|
487
|
-
props: /*@__PURE__*/
|
|
487
|
+
props: /*@__PURE__*/ D({ applicationId: {
|
|
488
488
|
type: String,
|
|
489
489
|
required: !0
|
|
490
490
|
} }, {
|
|
@@ -497,7 +497,7 @@ var Pe = /*#__PURE__*/ e(pe, [["render", Ne], ["__file", "C:/softpro/surveyor/ad
|
|
|
497
497
|
emits: ["update:modelValue"],
|
|
498
498
|
setup(e, { expose: n }) {
|
|
499
499
|
n();
|
|
500
|
-
let r = e, i =
|
|
500
|
+
let r = e, i = N(e, "modelValue"), o = A(""), c = A(100), l = A("EPSG:4326"), d = A(!1), f = A(""), p = A(!1), m = A([]), h = [{
|
|
501
501
|
id: "EPSG:4326",
|
|
502
502
|
label: "EPSG:4326 (WGS 84)"
|
|
503
503
|
}, {
|
|
@@ -526,9 +526,9 @@ var Pe = /*#__PURE__*/ e(pe, [["render", Ne], ["__file", "C:/softpro/surveyor/ad
|
|
|
526
526
|
p.value = !1;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
|
|
529
|
+
L(i, (e) => {
|
|
530
530
|
e && (g(), _());
|
|
531
|
-
}),
|
|
531
|
+
}), L([
|
|
532
532
|
o,
|
|
533
533
|
c,
|
|
534
534
|
l
|
|
@@ -549,7 +549,7 @@ var Pe = /*#__PURE__*/ e(pe, [["render", Ne], ["__file", "C:/softpro/surveyor/ad
|
|
|
549
549
|
}
|
|
550
550
|
d.value = !0;
|
|
551
551
|
try {
|
|
552
|
-
await
|
|
552
|
+
await le(r.applicationId, {
|
|
553
553
|
layer_id: e,
|
|
554
554
|
buffer: t,
|
|
555
555
|
crs: l.value
|
|
@@ -571,8 +571,8 @@ var Pe = /*#__PURE__*/ e(pe, [["render", Ne], ["__file", "C:/softpro/surveyor/ad
|
|
|
571
571
|
layersLoading: p,
|
|
572
572
|
layerOptions: m,
|
|
573
573
|
CRS_OPTIONS: h,
|
|
574
|
-
fieldClass:
|
|
575
|
-
selectFieldClass:
|
|
574
|
+
fieldClass: Ie,
|
|
575
|
+
selectFieldClass: Le,
|
|
576
576
|
resetForm: g,
|
|
577
577
|
loadLayers: _,
|
|
578
578
|
submit: v,
|
|
@@ -584,114 +584,114 @@ var Pe = /*#__PURE__*/ e(pe, [["render", Ne], ["__file", "C:/softpro/surveyor/ad
|
|
|
584
584
|
value: !0
|
|
585
585
|
}), y;
|
|
586
586
|
}
|
|
587
|
-
}),
|
|
587
|
+
}), ze = { class: "space-y-4" }, Be = { class: "relative" }, Ve = ["disabled"], He = {
|
|
588
588
|
value: "",
|
|
589
589
|
disabled: ""
|
|
590
|
-
},
|
|
590
|
+
}, Ue = ["value"], We = {
|
|
591
591
|
key: 0,
|
|
592
592
|
class: "mt-1.5 text-xs text-slate-400"
|
|
593
|
-
},
|
|
593
|
+
}, Ge = ["disabled"], Ke = { class: "relative" }, qe = ["disabled"], Je = ["value"], Ye = {
|
|
594
594
|
key: 0,
|
|
595
595
|
class: "text-xs text-danger-700"
|
|
596
|
-
},
|
|
597
|
-
function
|
|
598
|
-
return
|
|
596
|
+
}, Xe = { class: "flex justify-end gap-2" }, Ze = ["disabled"], Qe = ["disabled"];
|
|
597
|
+
function $e(e, t, n, r, i, a) {
|
|
598
|
+
return k(), b(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: R(() => [C("div", Xe, [C("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, Ze), C("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
|
+
}, M(r.busy ? "Експорт…" : "Завантажити"), 9, Qe)])]),
|
|
615
|
+
default: R(() => [C("div", ze, [
|
|
616
|
+
C("div", null, [
|
|
617
|
+
t[5] ||= C("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Шар", -1),
|
|
618
|
+
C("div", Be, [z(C("select", {
|
|
619
619
|
"onUpdate:modelValue": t[0] ||= (e) => r.layerId = e,
|
|
620
|
-
class:
|
|
620
|
+
class: O(r.selectFieldClass),
|
|
621
621
|
disabled: r.layersLoading || r.busy || !r.layerOptions.length
|
|
622
|
-
}, [
|
|
622
|
+
}, [C("option", He, M(r.layersLoading ? "Завантаження…" : "Оберіть шар"), 1), (k(!0), S(v, null, j(r.layerOptions, (e) => (k(), S("option", {
|
|
623
623
|
key: e.id,
|
|
624
624
|
value: e.id
|
|
625
|
-
},
|
|
625
|
+
}, M(e.label), 9, Ue))), 128))], 8, Ve), [[F, r.layerId]]), T(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 ? (k(), S("p", We, " Шари не знайдено. ")) : x("", !0)
|
|
630
630
|
]),
|
|
631
|
-
|
|
631
|
+
C("div", null, [t[6] ||= C("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Буфер, м", -1), z(C("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: O(r.fieldClass),
|
|
637
637
|
disabled: r.busy
|
|
638
|
-
}, null, 8,
|
|
639
|
-
|
|
638
|
+
}, null, 8, Ge), [[
|
|
639
|
+
I,
|
|
640
640
|
r.bufferMeters,
|
|
641
641
|
void 0,
|
|
642
642
|
{ number: !0 }
|
|
643
643
|
]])]),
|
|
644
|
-
|
|
644
|
+
C("div", null, [t[7] ||= C("label", { class: "mb-1 block text-xs font-medium text-slate-500" }, "Система координат", -1), C("div", Ke, [z(C("select", {
|
|
645
645
|
"onUpdate:modelValue": t[2] ||= (e) => r.crs = e,
|
|
646
|
-
class:
|
|
646
|
+
class: O(r.selectFieldClass),
|
|
647
647
|
disabled: r.busy
|
|
648
|
-
}, [(
|
|
648
|
+
}, [(k(), S(v, null, j(r.CRS_OPTIONS, (e) => C("option", {
|
|
649
649
|
key: e.id,
|
|
650
650
|
value: e.id
|
|
651
|
-
},
|
|
651
|
+
}, M(e.label), 9, Je)), 64))], 8, qe), [[F, r.crs]]), T(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 ? (k(), S("p", Ye, M(r.error), 1)) : x("", !0)
|
|
656
656
|
])]),
|
|
657
657
|
_: 1
|
|
658
658
|
}, 8, ["modelValue"]);
|
|
659
659
|
}
|
|
660
|
-
var
|
|
660
|
+
var et = /*#__PURE__*/ e(Re, [["render", $e], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/components/ApplicationVectorExportModal.vue"]]), tt = "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", nt = "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", rt = /*@__PURE__*/ E({
|
|
661
661
|
__name: "card",
|
|
662
662
|
setup(e, { expose: a }) {
|
|
663
663
|
a();
|
|
664
|
-
let o =
|
|
665
|
-
let e =
|
|
664
|
+
let o = V(), { listPath: s } = n("number"), u = A(null), v = A(""), b = A(!1), x = A(""), S = A(null), C = A(""), w = A(!1), T = A(!1), E = y(() => I(u.value?.organization)), D = y(() => I(u.value?.surveyor)), O = y(() => {
|
|
665
|
+
let e = D.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
|
+
}), k = y(() => ({
|
|
672
672
|
name: "Адміністратор",
|
|
673
673
|
role: "Перевірка",
|
|
674
674
|
initials: "АД"
|
|
675
675
|
}));
|
|
676
|
-
function
|
|
677
|
-
let t =
|
|
676
|
+
function j(e) {
|
|
677
|
+
let t = O.value === "—" ? "Заявник" : O.value, n = {
|
|
678
678
|
name: t,
|
|
679
679
|
role: "Заявник",
|
|
680
|
-
initials:
|
|
680
|
+
initials: g(t)
|
|
681
681
|
};
|
|
682
|
-
if (!e.created_by) return
|
|
683
|
-
if (e.created_by === i.currentUser?.id) return
|
|
684
|
-
let r =
|
|
685
|
-
return r && e.created_by === r ? n :
|
|
682
|
+
if (!e.created_by) return m;
|
|
683
|
+
if (e.created_by === i.currentUser?.id) return k.value;
|
|
684
|
+
let r = D.value?.surveyor_id;
|
|
685
|
+
return r && e.created_by === r ? n : k.value;
|
|
686
686
|
}
|
|
687
|
-
let
|
|
687
|
+
let M = y(() => u.value?.address_id_data?.text || "—"), N = y(() => u.value?.is_found_address_id === !0 || !!u.value?.address_id_data?.text?.trim()), P = y(() => f(u.value?.geom)), F = y(() => {
|
|
688
688
|
let e = u.value;
|
|
689
689
|
if (!e) return [];
|
|
690
690
|
let t = [];
|
|
691
691
|
return f(e.geom) && (t.push({
|
|
692
692
|
id: "geometry",
|
|
693
693
|
label: "Межі заявки",
|
|
694
|
-
href:
|
|
694
|
+
href: ce(e.app_id),
|
|
695
695
|
action: "download"
|
|
696
696
|
}), t.push({
|
|
697
697
|
id: "vector-export",
|
|
@@ -728,424 +728,424 @@ var $e = /*#__PURE__*/ e(Le, [["render", Qe], ["__file", "C:/softpro/surveyor/ad
|
|
|
728
728
|
action: "complete"
|
|
729
729
|
}), t);
|
|
730
730
|
});
|
|
731
|
-
function
|
|
731
|
+
function I(e) {
|
|
732
732
|
return Array.isArray(e) ? e[0] ?? null : e ?? null;
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function R(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 z(e) {
|
|
740
740
|
return `/api/file/${encodeURIComponent(e)}?download=true`;
|
|
741
741
|
}
|
|
742
|
-
async function
|
|
743
|
-
if (
|
|
742
|
+
async function H(e) {
|
|
743
|
+
if (v.value = "", e) try {
|
|
744
744
|
let t = await r(`/api/resource/certificates/${encodeURIComponent(e)}`);
|
|
745
|
-
|
|
745
|
+
v.value = R(t.date_certificate);
|
|
746
746
|
} catch {
|
|
747
|
-
|
|
747
|
+
v.value = "";
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
async function
|
|
751
|
-
|
|
750
|
+
async function U(e) {
|
|
751
|
+
b.value = !0, x.value = "", u.value = null, v.value = "";
|
|
752
752
|
try {
|
|
753
|
-
u.value = await r(`/api/resource/applications/${encodeURIComponent(e)}?include=organization,surveyor,history&limit=100`), await
|
|
753
|
+
u.value = await r(`/api/resource/applications/${encodeURIComponent(e)}?include=organization,surveyor,history&limit=100`), await H(I(u.value.surveyor)?.certificate_id);
|
|
754
754
|
} catch (e) {
|
|
755
|
-
u.value = null,
|
|
755
|
+
u.value = null, x.value = e instanceof Error ? e.message : "Не вдалося завантажити звернення";
|
|
756
756
|
} finally {
|
|
757
|
-
|
|
757
|
+
b.value = !1;
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
|
-
|
|
761
|
-
e &&
|
|
760
|
+
L(() => String(o.params.number), (e) => {
|
|
761
|
+
e && U(e);
|
|
762
762
|
}, { immediate: !0 });
|
|
763
|
-
let
|
|
763
|
+
let W = {
|
|
764
764
|
route: o,
|
|
765
765
|
listPath: s,
|
|
766
766
|
application: u,
|
|
767
|
-
certificateDate:
|
|
768
|
-
loading:
|
|
769
|
-
error:
|
|
770
|
-
workflowRef:
|
|
771
|
-
workflowError:
|
|
772
|
-
workflowBusy:
|
|
773
|
-
vectorExportOpen:
|
|
774
|
-
organization:
|
|
775
|
-
surveyor:
|
|
776
|
-
applicantName:
|
|
777
|
-
commentCurrentAuthor:
|
|
778
|
-
resolveNoteAuthor:
|
|
779
|
-
address:
|
|
780
|
-
showAddress:
|
|
781
|
-
showMap:
|
|
782
|
-
files:
|
|
783
|
-
fileDownloadBtnClass:
|
|
784
|
-
fileUploadBtnClass:
|
|
785
|
-
firstRelation:
|
|
786
|
-
formatDate:
|
|
787
|
-
fileUrl:
|
|
788
|
-
loadCertificateDate:
|
|
789
|
-
loadApplication:
|
|
767
|
+
certificateDate: v,
|
|
768
|
+
loading: b,
|
|
769
|
+
error: x,
|
|
770
|
+
workflowRef: S,
|
|
771
|
+
workflowError: C,
|
|
772
|
+
workflowBusy: w,
|
|
773
|
+
vectorExportOpen: T,
|
|
774
|
+
organization: E,
|
|
775
|
+
surveyor: D,
|
|
776
|
+
applicantName: O,
|
|
777
|
+
commentCurrentAuthor: k,
|
|
778
|
+
resolveNoteAuthor: j,
|
|
779
|
+
address: M,
|
|
780
|
+
showAddress: N,
|
|
781
|
+
showMap: P,
|
|
782
|
+
files: F,
|
|
783
|
+
fileDownloadBtnClass: tt,
|
|
784
|
+
fileUploadBtnClass: nt,
|
|
785
|
+
firstRelation: I,
|
|
786
|
+
formatDate: R,
|
|
787
|
+
fileUrl: z,
|
|
788
|
+
loadCertificateDate: H,
|
|
789
|
+
loadApplication: U,
|
|
790
790
|
AppIcon: t,
|
|
791
791
|
get RouterLink() {
|
|
792
|
-
return
|
|
792
|
+
return B;
|
|
793
793
|
},
|
|
794
794
|
AppealStatusBadge: d,
|
|
795
795
|
AppealDetailSection: c,
|
|
796
796
|
AppealDetailField: l,
|
|
797
|
-
AppealDetailBoolean:
|
|
797
|
+
AppealDetailBoolean: ne,
|
|
798
798
|
AppealDetailMap: p,
|
|
799
|
-
ApplicationCommentsSection:
|
|
800
|
-
ApplicationHistorySection:
|
|
801
|
-
ApplicationWorkflowActions:
|
|
802
|
-
ApplicationVectorExportModal:
|
|
799
|
+
ApplicationCommentsSection: h,
|
|
800
|
+
ApplicationHistorySection: _,
|
|
801
|
+
ApplicationWorkflowActions: Fe,
|
|
802
|
+
ApplicationVectorExportModal: et
|
|
803
803
|
};
|
|
804
|
-
return Object.defineProperty(
|
|
804
|
+
return Object.defineProperty(W, "__isScriptSetup", {
|
|
805
805
|
enumerable: !1,
|
|
806
806
|
value: !0
|
|
807
|
-
}),
|
|
807
|
+
}), W;
|
|
808
808
|
}
|
|
809
|
-
}),
|
|
809
|
+
}), it = {
|
|
810
810
|
key: 0,
|
|
811
811
|
class: "px-4 py-16 text-center text-sm text-slate-400"
|
|
812
|
-
},
|
|
812
|
+
}, at = { key: 1 }, ot = { class: "mb-6 pl-8 lg:pl-0" }, st = { class: "mb-4 flex items-center gap-1.5 text-sm" }, ct = { class: "font-medium text-slate-700" }, lt = { class: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between" }, ut = { class: "flex flex-col gap-1.5" }, dt = { class: "text-xl font-bold tracking-tight text-slate-900" }, ft = { class: "text-sm font-medium text-slate-500" }, pt = { class: "grid grid-cols-1 items-start gap-5 xl:grid-cols-[minmax(0,1fr)_420px]" }, mt = { class: "flex flex-col gap-5" }, ht = { class: "grid grid-cols-2 gap-x-6 gap-y-4" }, gt = { class: "grid grid-cols-2 gap-x-6 gap-y-4" }, _t = { class: "grid grid-cols-2 gap-x-6 gap-y-4 sm:grid-cols-3" }, vt = { class: "grid grid-cols-1 gap-y-3" }, yt = { class: "grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-2" }, bt = { class: "grid min-w-0 grid-cols-1 gap-x-5 gap-y-3.5 sm:grid-cols-2" }, xt = { class: "min-w-0 border-t border-slate-100 pt-6 xl:border-l xl:border-t-0 xl:pl-6 xl:pt-0" }, St = { class: "grid min-w-0 grid-cols-1 gap-x-5 gap-y-3.5 sm:grid-cols-2" }, Ct = { key: 1 }, wt = {
|
|
813
813
|
key: 0,
|
|
814
814
|
class: "mb-3 text-xs text-slate-500"
|
|
815
|
-
},
|
|
815
|
+
}, Tt = {
|
|
816
816
|
key: 1,
|
|
817
817
|
class: "mb-3 text-xs text-danger-700"
|
|
818
|
-
},
|
|
818
|
+
}, Et = {
|
|
819
819
|
key: 2,
|
|
820
820
|
class: "divide-y divide-slate-100"
|
|
821
|
-
},
|
|
821
|
+
}, $ = { class: "min-w-0" }, Dt = { class: "break-words text-sm font-medium text-slate-800" }, Ot = {
|
|
822
822
|
key: 0,
|
|
823
823
|
class: "mt-0.5 text-xs text-slate-400"
|
|
824
|
-
},
|
|
824
|
+
}, kt = {
|
|
825
825
|
key: 0,
|
|
826
826
|
class: "flex shrink-0 items-center gap-2"
|
|
827
|
-
},
|
|
827
|
+
}, At = ["disabled"], jt = ["href"], Mt = ["disabled"], Nt = ["disabled"], Pt = ["disabled"], Ft = {
|
|
828
828
|
key: 3,
|
|
829
829
|
class: "text-sm text-slate-400"
|
|
830
|
-
},
|
|
830
|
+
}, It = { class: "xl:sticky xl:top-6 xl:self-start" }, Lt = { class: "h-[600px] xl:h-[calc(100vh-3rem)] xl:max-h-[760px]" }, Rt = {
|
|
831
831
|
key: 1,
|
|
832
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"
|
|
833
|
-
},
|
|
833
|
+
}, zt = {
|
|
834
834
|
key: 2,
|
|
835
835
|
class: "rounded-xl border border-slate-200 bg-white px-6 py-16 text-center shadow-card"
|
|
836
|
-
},
|
|
837
|
-
function
|
|
838
|
-
return r.loading ? (
|
|
839
|
-
|
|
840
|
-
|
|
836
|
+
}, Bt = { class: "text-sm text-slate-500" };
|
|
837
|
+
function Vt(e, t, n, r, i, a) {
|
|
838
|
+
return r.loading ? (k(), S("div", it, " Завантаження… ")) : r.application ? (k(), S("div", at, [
|
|
839
|
+
C("div", ot, [C("nav", st, [
|
|
840
|
+
T(r.RouterLink, {
|
|
841
841
|
to: r.listPath,
|
|
842
842
|
class: "flex items-center gap-1 text-slate-400 transition-colors hover:text-brand-600"
|
|
843
843
|
}, {
|
|
844
|
-
default:
|
|
844
|
+
default: R(() => [T(r.AppIcon, {
|
|
845
845
|
name: "home",
|
|
846
846
|
class: "h-3.5 w-3.5"
|
|
847
|
-
}), t[8] ||=
|
|
847
|
+
}), t[8] ||= w(" Звернення ", -1)]),
|
|
848
848
|
_: 1
|
|
849
849
|
}, 8, ["to"]),
|
|
850
|
-
|
|
850
|
+
T(r.AppIcon, {
|
|
851
851
|
name: "chevron-right",
|
|
852
852
|
class: "h-3.5 w-3.5 text-slate-300"
|
|
853
853
|
}),
|
|
854
|
-
|
|
855
|
-
]),
|
|
854
|
+
C("span", ct, M(r.application.number || "—"), 1)
|
|
855
|
+
]), C("div", lt, [C("div", ut, [C("h1", dt, "Звернення " + M(r.application.number || "—"), 1), C("p", ft, M(r.organization?.name || "—"), 1)]), T(r.AppealStatusBadge, {
|
|
856
856
|
status: r.application.status || "",
|
|
857
857
|
label: r.application.status_data?.text || void 0
|
|
858
858
|
}, null, 8, ["status", "label"])])]),
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
icon:
|
|
859
|
+
C("div", pt, [C("div", mt, [
|
|
860
|
+
T(r.AppealDetailSection, { title: "Заявка" }, {
|
|
861
|
+
icon: R(() => [T(r.AppIcon, {
|
|
862
862
|
name: "file-check-2",
|
|
863
863
|
class: "h-[18px] w-[18px]"
|
|
864
864
|
})]),
|
|
865
|
-
default:
|
|
866
|
-
|
|
865
|
+
default: R(() => [C("dl", ht, [
|
|
866
|
+
T(r.AppealDetailField, {
|
|
867
867
|
label: "Номер звернення",
|
|
868
868
|
highlight: ""
|
|
869
869
|
}, {
|
|
870
|
-
default:
|
|
870
|
+
default: R(() => [w(M(r.application.number || "—"), 1)]),
|
|
871
871
|
_: 1
|
|
872
872
|
}),
|
|
873
|
-
|
|
873
|
+
C("div", null, [t[9] ||= C("dt", { class: "mb-1 text-xs font-medium text-slate-500" }, "Статус", -1), C("dd", null, [T(r.AppealStatusBadge, {
|
|
874
874
|
status: r.application.status || "",
|
|
875
875
|
label: r.application.status_data?.text || void 0,
|
|
876
876
|
size: "sm"
|
|
877
877
|
}, null, 8, ["status", "label"])])]),
|
|
878
|
-
|
|
878
|
+
T(r.AppealDetailBoolean, {
|
|
879
879
|
label: "Внесено в ЄЦТО",
|
|
880
880
|
value: r.application.status === "completed" || !!r.application.integrated_at
|
|
881
881
|
}, null, 8, ["value"]),
|
|
882
|
-
|
|
883
|
-
default:
|
|
882
|
+
T(r.AppealDetailField, { label: "Перевірив" }, {
|
|
883
|
+
default: R(() => [w(M(r.application.verified_by_data?.text || "—"), 1)]),
|
|
884
884
|
_: 1
|
|
885
885
|
}),
|
|
886
|
-
|
|
887
|
-
default:
|
|
886
|
+
T(r.AppealDetailField, { label: "Вид робіт" }, {
|
|
887
|
+
default: R(() => [w(M(r.application.work_type_data?.text || "—"), 1)]),
|
|
888
888
|
_: 1
|
|
889
889
|
}),
|
|
890
|
-
|
|
890
|
+
T(r.AppealDetailField, {
|
|
891
891
|
label: "Опис запиту",
|
|
892
892
|
full: ""
|
|
893
893
|
}, {
|
|
894
|
-
default:
|
|
894
|
+
default: R(() => [w(M(r.application.description || "—"), 1)]),
|
|
895
895
|
_: 1
|
|
896
896
|
}),
|
|
897
|
-
|
|
897
|
+
T(r.AppealDetailField, {
|
|
898
898
|
label: "Підстава виконання робіт",
|
|
899
899
|
full: ""
|
|
900
900
|
}, {
|
|
901
|
-
default:
|
|
901
|
+
default: R(() => [w(M(r.application.execution_basis || "—"), 1)]),
|
|
902
902
|
_: 1
|
|
903
903
|
}),
|
|
904
|
-
|
|
904
|
+
T(r.AppealDetailField, {
|
|
905
905
|
label: "Примітки",
|
|
906
906
|
full: ""
|
|
907
907
|
}, {
|
|
908
|
-
default:
|
|
908
|
+
default: R(() => [w(M(r.application.notes || "—"), 1)]),
|
|
909
909
|
_: 1
|
|
910
910
|
})
|
|
911
911
|
])]),
|
|
912
912
|
_: 1
|
|
913
913
|
}),
|
|
914
|
-
|
|
915
|
-
icon:
|
|
914
|
+
T(r.AppealDetailSection, { title: "Об'єкт робіт" }, {
|
|
915
|
+
icon: R(() => [T(r.AppIcon, {
|
|
916
916
|
name: "building-2",
|
|
917
917
|
class: "h-[18px] w-[18px]"
|
|
918
918
|
})]),
|
|
919
|
-
default:
|
|
920
|
-
|
|
919
|
+
default: R(() => [C("dl", gt, [
|
|
920
|
+
T(r.AppealDetailField, {
|
|
921
921
|
label: "Площа, га",
|
|
922
922
|
highlight: ""
|
|
923
923
|
}, {
|
|
924
|
-
default:
|
|
924
|
+
default: R(() => [w(M(r.application.area ?? "—"), 1)]),
|
|
925
925
|
_: 1
|
|
926
926
|
}),
|
|
927
|
-
r.showAddress ? (
|
|
927
|
+
r.showAddress ? (k(), b(r.AppealDetailField, {
|
|
928
928
|
key: 0,
|
|
929
929
|
label: "Адреса",
|
|
930
930
|
full: ""
|
|
931
931
|
}, {
|
|
932
|
-
default:
|
|
932
|
+
default: R(() => [w(M(r.address), 1)]),
|
|
933
933
|
_: 1
|
|
934
|
-
})) :
|
|
935
|
-
r.application?.location ? (
|
|
934
|
+
})) : x("", !0),
|
|
935
|
+
r.application?.location ? (k(), b(r.AppealDetailField, {
|
|
936
936
|
key: 1,
|
|
937
937
|
label: "Місцезнаходження",
|
|
938
938
|
full: ""
|
|
939
939
|
}, {
|
|
940
|
-
default:
|
|
940
|
+
default: R(() => [w(M(r.application.location || "—"), 1)]),
|
|
941
941
|
_: 1
|
|
942
|
-
})) :
|
|
942
|
+
})) : x("", !0)
|
|
943
943
|
])]),
|
|
944
944
|
_: 1
|
|
945
945
|
}),
|
|
946
|
-
|
|
947
|
-
icon:
|
|
946
|
+
T(r.AppealDetailSection, { title: "Дати та етапи" }, {
|
|
947
|
+
icon: R(() => [T(r.AppIcon, {
|
|
948
948
|
name: "calendar-days",
|
|
949
949
|
class: "h-[18px] w-[18px]"
|
|
950
950
|
})]),
|
|
951
|
-
default:
|
|
952
|
-
|
|
951
|
+
default: R(() => [C("dl", _t, [
|
|
952
|
+
T(r.AppealDetailField, {
|
|
953
953
|
label: "Дата прийому заявки",
|
|
954
954
|
highlight: ""
|
|
955
955
|
}, {
|
|
956
|
-
default:
|
|
956
|
+
default: R(() => [w(M(r.formatDate(r.application.created_at) || "—"), 1)]),
|
|
957
957
|
_: 1
|
|
958
958
|
}),
|
|
959
|
-
|
|
960
|
-
default:
|
|
959
|
+
T(r.AppealDetailField, { label: "Дата видачі даних" }, {
|
|
960
|
+
default: R(() => [w(M(r.formatDate(r.application.source_data_issued_at) || "—"), 1)]),
|
|
961
961
|
_: 1
|
|
962
962
|
}),
|
|
963
|
-
|
|
964
|
-
default:
|
|
963
|
+
T(r.AppealDetailField, { label: "Дата скасування" }, {
|
|
964
|
+
default: R(() => [w(M(r.formatDate(r.application.cancelled_at) || "—"), 1)]),
|
|
965
965
|
_: 1
|
|
966
966
|
}),
|
|
967
|
-
|
|
968
|
-
default:
|
|
967
|
+
T(r.AppealDetailField, { label: "Дата прийому даних" }, {
|
|
968
|
+
default: R(() => [w(M(r.formatDate(r.application.survey_uploaded_at) || "—"), 1)]),
|
|
969
969
|
_: 1
|
|
970
970
|
}),
|
|
971
|
-
|
|
972
|
-
default:
|
|
971
|
+
T(r.AppealDetailField, { label: "Дата внесення в ЄЦТО" }, {
|
|
972
|
+
default: R(() => [w(M(r.formatDate(r.application.integrated_at) || "—"), 1)]),
|
|
973
973
|
_: 1
|
|
974
974
|
}),
|
|
975
|
-
|
|
976
|
-
default:
|
|
975
|
+
T(r.AppealDetailField, { label: "Дата перевірки" }, {
|
|
976
|
+
default: R(() => [w(M(r.formatDate(r.application.verified_at) || "—"), 1)]),
|
|
977
977
|
_: 1
|
|
978
978
|
})
|
|
979
979
|
])]),
|
|
980
980
|
_: 1
|
|
981
981
|
}),
|
|
982
|
-
r.application.cancel_reason || r.application.status === "cancelled" ? (
|
|
982
|
+
r.application.cancel_reason || r.application.status === "cancelled" ? (k(), b(r.AppealDetailSection, {
|
|
983
983
|
key: 0,
|
|
984
984
|
title: "Скасування",
|
|
985
985
|
danger: ""
|
|
986
986
|
}, {
|
|
987
|
-
icon:
|
|
987
|
+
icon: R(() => [T(r.AppIcon, {
|
|
988
988
|
name: "ban",
|
|
989
989
|
class: "h-[18px] w-[18px]"
|
|
990
990
|
})]),
|
|
991
|
-
default:
|
|
991
|
+
default: R(() => [C("dl", vt, [T(r.AppealDetailField, {
|
|
992
992
|
label: "Причина скасування заявки",
|
|
993
993
|
full: "",
|
|
994
994
|
highlight: ""
|
|
995
995
|
}, {
|
|
996
|
-
default:
|
|
996
|
+
default: R(() => [w(M(r.application.cancel_reason || "Причину не вказано"), 1)]),
|
|
997
997
|
_: 1
|
|
998
998
|
})])]),
|
|
999
999
|
_: 1
|
|
1000
|
-
})) :
|
|
1001
|
-
|
|
1002
|
-
icon:
|
|
1000
|
+
})) : x("", !0),
|
|
1001
|
+
T(r.AppealDetailSection, { title: "Інформація про заявника" }, {
|
|
1002
|
+
icon: R(() => [T(r.AppIcon, {
|
|
1003
1003
|
name: "user",
|
|
1004
1004
|
class: "h-[18px] w-[18px]"
|
|
1005
1005
|
})]),
|
|
1006
|
-
default:
|
|
1007
|
-
|
|
1006
|
+
default: R(() => [C("div", yt, [C("dl", bt, [
|
|
1007
|
+
T(r.AppealDetailField, {
|
|
1008
1008
|
label: "ПІБ",
|
|
1009
1009
|
highlight: "",
|
|
1010
1010
|
full: ""
|
|
1011
1011
|
}, {
|
|
1012
|
-
default:
|
|
1012
|
+
default: R(() => [w(M(r.applicantName), 1)]),
|
|
1013
1013
|
_: 1
|
|
1014
1014
|
}),
|
|
1015
|
-
|
|
1016
|
-
default:
|
|
1015
|
+
T(r.AppealDetailField, { label: "Номер сертифікату" }, {
|
|
1016
|
+
default: R(() => [w(M(r.surveyor?.certificate_id_data?.text || "—"), 1)]),
|
|
1017
1017
|
_: 1
|
|
1018
1018
|
}),
|
|
1019
|
-
|
|
1020
|
-
default:
|
|
1019
|
+
T(r.AppealDetailField, { label: "Дата сертифікату" }, {
|
|
1020
|
+
default: R(() => [w(M(r.certificateDate || "—"), 1)]),
|
|
1021
1021
|
_: 1
|
|
1022
1022
|
}),
|
|
1023
|
-
|
|
1024
|
-
default:
|
|
1023
|
+
T(r.AppealDetailField, { label: "Номер телефону" }, {
|
|
1024
|
+
default: R(() => [w(M(r.surveyor?.phone || "—"), 1)]),
|
|
1025
1025
|
_: 1
|
|
1026
1026
|
}),
|
|
1027
|
-
|
|
1028
|
-
default:
|
|
1027
|
+
T(r.AppealDetailField, { label: "Email" }, {
|
|
1028
|
+
default: R(() => [w(M(r.surveyor?.email || "—"), 1)]),
|
|
1029
1029
|
_: 1
|
|
1030
1030
|
})
|
|
1031
|
-
]),
|
|
1032
|
-
|
|
1031
|
+
]), C("div", xt, [t[10] ||= C("h3", { class: "mb-3 text-xs font-semibold uppercase tracking-wide text-slate-400" }, "Організація", -1), C("dl", St, [
|
|
1032
|
+
T(r.AppealDetailField, {
|
|
1033
1033
|
label: "Назва організації",
|
|
1034
1034
|
highlight: "",
|
|
1035
1035
|
full: ""
|
|
1036
1036
|
}, {
|
|
1037
|
-
default:
|
|
1037
|
+
default: R(() => [r.organization?.org_id ? (k(), b(r.RouterLink, {
|
|
1038
1038
|
key: 0,
|
|
1039
1039
|
to: `/organizations/${r.organization.org_id}`,
|
|
1040
1040
|
class: "break-words text-brand-600 hover:text-brand-800 hover:underline"
|
|
1041
1041
|
}, {
|
|
1042
|
-
default:
|
|
1042
|
+
default: R(() => [w(M(r.organization.name || "—"), 1)]),
|
|
1043
1043
|
_: 1
|
|
1044
|
-
}, 8, ["to"])) : (
|
|
1044
|
+
}, 8, ["to"])) : (k(), S("span", Ct, "—"))]),
|
|
1045
1045
|
_: 1
|
|
1046
1046
|
}),
|
|
1047
|
-
|
|
1048
|
-
default:
|
|
1047
|
+
T(r.AppealDetailField, { label: "Телефон організації" }, {
|
|
1048
|
+
default: R(() => [w(M(r.organization?.phone || "—"), 1)]),
|
|
1049
1049
|
_: 1
|
|
1050
1050
|
}),
|
|
1051
|
-
|
|
1052
|
-
default:
|
|
1051
|
+
T(r.AppealDetailField, { label: "Email організації" }, {
|
|
1052
|
+
default: R(() => [w(M(r.organization?.email || "—"), 1)]),
|
|
1053
1053
|
_: 1
|
|
1054
1054
|
}),
|
|
1055
|
-
|
|
1055
|
+
T(r.AppealDetailField, {
|
|
1056
1056
|
label: "Юридична адреса",
|
|
1057
1057
|
full: ""
|
|
1058
1058
|
}, {
|
|
1059
|
-
default:
|
|
1059
|
+
default: R(() => [w(M(r.organization?.legal_address || "—"), 1)]),
|
|
1060
1060
|
_: 1
|
|
1061
1061
|
})
|
|
1062
1062
|
])])])]),
|
|
1063
1063
|
_: 1
|
|
1064
1064
|
}),
|
|
1065
|
-
|
|
1066
|
-
icon:
|
|
1065
|
+
T(r.AppealDetailSection, { title: "Файли" }, {
|
|
1066
|
+
icon: R(() => [T(r.AppIcon, {
|
|
1067
1067
|
name: "file-text",
|
|
1068
1068
|
class: "h-[18px] w-[18px]"
|
|
1069
1069
|
})]),
|
|
1070
|
-
default:
|
|
1071
|
-
r.application.status === "reserve" ? (
|
|
1072
|
-
r.workflowError ? (
|
|
1073
|
-
r.files.length ? (
|
|
1070
|
+
default: R(() => [
|
|
1071
|
+
r.application.status === "reserve" ? (k(), S("p", wt, " Заявка в резерві: доступні лише межі території до зняття просторового конфлікту. ")) : x("", !0),
|
|
1072
|
+
r.workflowError ? (k(), S("p", Tt, M(r.workflowError), 1)) : x("", !0),
|
|
1073
|
+
r.files.length ? (k(), S("ul", Et, [(k(!0), S(v, null, j(r.files, (e) => (k(), S("li", {
|
|
1074
1074
|
key: e.id,
|
|
1075
1075
|
class: "flex items-center justify-between gap-4 py-3 first:pt-0 last:pb-0"
|
|
1076
|
-
}, [
|
|
1076
|
+
}, [C("div", $, [C("p", Dt, M(e.label), 1), e.note ? (k(), S("p", Ot, "Примітка: " + M(e.note), 1)) : x("", !0)]), e.action === "download" && (e.href || e.token) ? (k(), S("div", kt, [e.replaceable ? (k(), S("button", {
|
|
1077
1077
|
key: 0,
|
|
1078
1078
|
type: "button",
|
|
1079
|
-
class:
|
|
1079
|
+
class: O(r.fileUploadBtnClass),
|
|
1080
1080
|
disabled: r.workflowBusy,
|
|
1081
1081
|
onClick: t[0] ||= (e) => {
|
|
1082
1082
|
r.workflowError = "", r.workflowRef?.openReplaceOutput();
|
|
1083
1083
|
}
|
|
1084
|
-
}, [
|
|
1084
|
+
}, [T(r.AppIcon, {
|
|
1085
1085
|
name: "upload",
|
|
1086
1086
|
class: "h-3 w-3"
|
|
1087
|
-
}), t[11] ||=
|
|
1087
|
+
}), t[11] ||= w(" Замінити ", -1)], 8, At)) : x("", !0), C("a", {
|
|
1088
1088
|
href: e.href || (e.token ? r.fileUrl(e.token) : void 0),
|
|
1089
|
-
class:
|
|
1090
|
-
}, [
|
|
1089
|
+
class: O(r.fileDownloadBtnClass)
|
|
1090
|
+
}, [T(r.AppIcon, {
|
|
1091
1091
|
name: "download",
|
|
1092
1092
|
class: "h-3 w-3"
|
|
1093
|
-
}), t[12] ||=
|
|
1093
|
+
}), t[12] ||= w(" Завантажити ", -1)], 8, jt)])) : e.action === "issue" ? (k(), S("button", {
|
|
1094
1094
|
key: 1,
|
|
1095
1095
|
type: "button",
|
|
1096
|
-
class:
|
|
1096
|
+
class: O(r.fileUploadBtnClass),
|
|
1097
1097
|
disabled: r.workflowBusy,
|
|
1098
1098
|
onClick: t[1] ||= (e) => {
|
|
1099
1099
|
r.workflowError = "", r.workflowRef?.openIssue();
|
|
1100
1100
|
}
|
|
1101
|
-
}, [
|
|
1101
|
+
}, [T(r.AppIcon, {
|
|
1102
1102
|
name: "upload",
|
|
1103
1103
|
class: "h-3 w-3"
|
|
1104
|
-
}), t[13] ||=
|
|
1104
|
+
}), t[13] ||= w(" Надіслати ", -1)], 8, Mt)) : e.action === "verify" ? (k(), S("button", {
|
|
1105
1105
|
key: 2,
|
|
1106
1106
|
type: "button",
|
|
1107
|
-
class:
|
|
1107
|
+
class: O(r.fileUploadBtnClass),
|
|
1108
1108
|
disabled: r.workflowBusy,
|
|
1109
1109
|
onClick: t[2] ||= (e) => r.workflowRef?.openVerify()
|
|
1110
|
-
}, [
|
|
1110
|
+
}, [T(r.AppIcon, {
|
|
1111
1111
|
name: "file-check-2",
|
|
1112
1112
|
class: "h-3 w-3"
|
|
1113
|
-
}), t[14] ||=
|
|
1113
|
+
}), t[14] ||= w(" Перевірити ", -1)], 8, Nt)) : e.action === "complete" ? (k(), S("button", {
|
|
1114
1114
|
key: 3,
|
|
1115
1115
|
type: "button",
|
|
1116
|
-
class:
|
|
1116
|
+
class: O(r.fileUploadBtnClass),
|
|
1117
1117
|
disabled: r.workflowBusy,
|
|
1118
1118
|
onClick: t[3] ||= (e) => r.workflowRef?.openComplete()
|
|
1119
|
-
}, [
|
|
1119
|
+
}, [T(r.AppIcon, {
|
|
1120
1120
|
name: "circle-check",
|
|
1121
1121
|
class: "h-3 w-3"
|
|
1122
|
-
}), t[15] ||=
|
|
1122
|
+
}), t[15] ||= w(" Підтвердити ", -1)], 8, Pt)) : e.action === "exportVector" ? (k(), S("button", {
|
|
1123
1123
|
key: 4,
|
|
1124
1124
|
type: "button",
|
|
1125
|
-
class:
|
|
1125
|
+
class: O(r.fileDownloadBtnClass),
|
|
1126
1126
|
onClick: t[4] ||= (e) => {
|
|
1127
1127
|
r.workflowError = "", r.vectorExportOpen = !0;
|
|
1128
1128
|
}
|
|
1129
|
-
}, [
|
|
1129
|
+
}, [T(r.AppIcon, {
|
|
1130
1130
|
name: "download",
|
|
1131
1131
|
class: "h-3 w-3"
|
|
1132
|
-
}), t[16] ||=
|
|
1132
|
+
}), t[16] ||= w(" Завантажити ", -1)])) : x("", !0)]))), 128))])) : (k(), S("p", Ft, "Файли відсутні."))
|
|
1133
1133
|
]),
|
|
1134
1134
|
_: 1
|
|
1135
1135
|
}),
|
|
1136
|
-
r.application.app_id ? (
|
|
1136
|
+
r.application.app_id ? (k(), b(r.ApplicationCommentsSection, {
|
|
1137
1137
|
key: 1,
|
|
1138
1138
|
"application-id": r.application.app_id,
|
|
1139
1139
|
resource: "applications",
|
|
1140
1140
|
variant: "admin",
|
|
1141
1141
|
"current-author": r.commentCurrentAuthor,
|
|
1142
1142
|
"resolve-author": r.resolveNoteAuthor
|
|
1143
|
-
}, null, 8, ["application-id", "current-author"])) :
|
|
1144
|
-
|
|
1143
|
+
}, null, 8, ["application-id", "current-author"])) : x("", !0),
|
|
1144
|
+
T(r.ApplicationHistorySection, {
|
|
1145
1145
|
items: r.application.history,
|
|
1146
1146
|
variant: "admin"
|
|
1147
1147
|
}, null, 8, ["items"])
|
|
1148
|
-
]),
|
|
1148
|
+
]), C("div", It, [C("div", Lt, [r.showMap && r.application ? (k(), b(r.AppealDetailMap, {
|
|
1149
1149
|
key: r.application.app_id,
|
|
1150
1150
|
geom: r.application.geom,
|
|
1151
1151
|
address: r.address,
|
|
@@ -1157,11 +1157,11 @@ function Bt(e, t, n, r, i, a) {
|
|
|
1157
1157
|
"address",
|
|
1158
1158
|
"area",
|
|
1159
1159
|
"location"
|
|
1160
|
-
])) : (
|
|
1160
|
+
])) : (k(), S("div", Rt, [T(r.AppIcon, {
|
|
1161
1161
|
name: "map",
|
|
1162
1162
|
class: "mb-3 h-8 w-8 text-slate-300"
|
|
1163
|
-
}), t[17] ||=
|
|
1164
|
-
r.application.app_id ? (
|
|
1163
|
+
}), t[17] ||= C("p", { class: "text-sm text-slate-500" }, "Геометрію заявки не вдалося відобразити", -1)]))])])]),
|
|
1164
|
+
r.application.app_id ? (k(), b(r.ApplicationWorkflowActions, {
|
|
1165
1165
|
key: 0,
|
|
1166
1166
|
ref: "workflowRef",
|
|
1167
1167
|
"application-id": r.application.app_id,
|
|
@@ -1170,21 +1170,21 @@ function Bt(e, t, n, r, i, a) {
|
|
|
1170
1170
|
r.workflowError = "", r.workflowBusy = !1, r.loadApplication(r.application.app_id);
|
|
1171
1171
|
},
|
|
1172
1172
|
onError: t[6] ||= (e) => r.workflowError = e
|
|
1173
|
-
}, null, 8, ["application-id", "status"])) :
|
|
1174
|
-
r.application.app_id ? (
|
|
1173
|
+
}, null, 8, ["application-id", "status"])) : x("", !0),
|
|
1174
|
+
r.application.app_id ? (k(), b(r.ApplicationVectorExportModal, {
|
|
1175
1175
|
key: 1,
|
|
1176
1176
|
modelValue: r.vectorExportOpen,
|
|
1177
1177
|
"onUpdate:modelValue": t[7] ||= (e) => r.vectorExportOpen = e,
|
|
1178
1178
|
"application-id": r.application.app_id
|
|
1179
|
-
}, null, 8, ["modelValue", "application-id"])) :
|
|
1180
|
-
])) : (
|
|
1179
|
+
}, null, 8, ["modelValue", "application-id"])) : x("", !0)
|
|
1180
|
+
])) : (k(), S("div", zt, [C("p", Bt, M(r.error || "Звернення не знайдено."), 1), T(r.RouterLink, {
|
|
1181
1181
|
to: r.listPath,
|
|
1182
1182
|
class: "mt-3 inline-block text-sm font-medium text-brand-600 hover:text-brand-700"
|
|
1183
1183
|
}, {
|
|
1184
|
-
default:
|
|
1184
|
+
default: R(() => [...t[18] ||= [w(" Повернутися до реєстру ", -1)]]),
|
|
1185
1185
|
_: 1
|
|
1186
1186
|
}, 8, ["to"])]));
|
|
1187
1187
|
}
|
|
1188
|
-
var
|
|
1188
|
+
var Ht = /*#__PURE__*/ e(rt, [["render", Vt], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/card.vue"]]);
|
|
1189
1189
|
//#endregion
|
|
1190
|
-
export {
|
|
1190
|
+
export { Ht as default };
|