@opengis/surveyor 0.0.18 → 0.0.20
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/{AppIcon-CO70tpMX.js → AppIcon-Di5F4Bu_.js} +1 -1
- package/dist/chunks/{AppealDetailField-ByK9ZqR4.js → AppealDetailField-CWayoaII.js} +2 -2
- package/dist/chunks/AppealStatusBadge-DRWZst3M.js +430 -0
- package/dist/chunks/{AppealStatusBadge-BlAaNUSK.js → AppealStatusBadge-z77wwkFD.js} +2 -2
- package/dist/chunks/{ApplicationGeometryExportModal-DMPn9bkq.js → ApplicationGeometryExportModal-CH9VrqxO.js} +320 -339
- package/dist/chunks/{BaseModal-BJxKuONh.js → BaseModal-X-hzV_I2.js} +2 -2
- package/dist/chunks/{FormFilePicker-DxPQlxgy.js → FormFilePicker-D5fAUE0Z.js} +2 -2
- package/dist/chunks/{MapLayerMenu-B0TEoCJm.js → MapLayerMenu-CyVxRSNX.js} +1 -1
- package/dist/chunks/{RegistryForm-Dpis_ncj.js → RegistryForm-J7R4RWO3.js} +1 -1
- package/dist/chunks/{RegistryFormModal-CH4DbTvC.js → RegistryFormModal-B_EDwu9O.js} +3 -3
- package/dist/chunks/{RegistryToolbar-DisEejvi.js → RegistryToolbar-BDVaZ2Rf.js} +5 -5
- package/dist/chunks/{SurveyorTeleport-Cd6D92mo.js → SurveyorTeleport-Y-NJhfsb.js} +1 -1
- package/dist/chunks/{TablePagination-thQkE5iA.js → TablePagination-CZhRgCVr.js} +2 -2
- package/dist/chunks/{UserAccessBadge-DyZDv7Oo.js → UserAccessBadge-B5Q1LvNv.js} +1 -1
- package/dist/chunks/{UserTypeBadge-LvnMuKGo.js → UserTypeBadge-CuAMctTK.js} +1 -1
- package/dist/chunks/{VerifiedBadge-bk0n-rlC.js → VerifiedBadge-D6L7mCdp.js} +2 -2
- package/dist/chunks/{card-n83dNORm.js → card-BMe6jQRR.js} +10 -10
- package/dist/chunks/{card-DVuqR0rL.js → card-Bw_EXY3D.js} +4 -4
- package/dist/chunks/{card-Cs8_8A8i.js → card-Cll0FQ0z.js} +6 -6
- package/dist/chunks/{card-u5I--_Gb.js → card-DMt5SAoD.js} +5 -5
- package/dist/chunks/{card-BP4nulPr.js → card-Dy333mEd.js} +9 -9
- package/dist/chunks/card-VMoiAe7V.js +1258 -0
- package/dist/chunks/{certificates-CDunSANR.js → certificates-URuwsRqg.js} +6 -6
- package/dist/chunks/{create-DQPxIZMW.js → create-CJXITPL0.js} +9 -9
- package/dist/chunks/downloadAttachmentFilename-B_4jZuOa.js +11 -0
- package/dist/chunks/{forgot-DfsFu-yY.js → forgot-JFlAKndO.js} +2 -2
- package/dist/chunks/{login-Dl0nTWs9.js → login-Bd6krLDP.js} +2 -2
- package/dist/chunks/{map-BoHEgBCw.js → map-CNPzf0wE.js} +44 -44
- package/dist/chunks/{map-layers-CRE8lZzH.js → map-layers-BgK6h6AD.js} +6 -6
- package/dist/chunks/{organizations-D6aazMAe.js → organizations-BLYhVQwf.js} +7 -7
- package/dist/chunks/{profile-CkwMFh82.js → profile-F7mr0poI.js} +3 -3
- package/dist/chunks/{registration-BSz1iLbO.js → registration-DIA4xV-t.js} +2 -2
- package/dist/chunks/{requests-D1ix8U5f.js → requests-CPVQ1Yy_.js} +5 -5
- package/dist/chunks/{requests-B9Ejt4av.js → requests-D-QPPUe4.js} +9 -9
- package/dist/chunks/{reset-D5G0x5Zi.js → reset-DR3GXwrH.js} +2 -2
- package/dist/chunks/{useEntityPath-C5Owtidc.js → useEntityPath-8s0Y1tjA.js} +1 -1
- package/dist/chunks/{users-DMe6JYI0.js → users-BsWV3iTt.js} +7 -7
- package/dist/index.js +40 -40
- package/migrations/20261016120000_map_layers.sql +156 -156
- package/migrations/20261016150000_password_reset.sql +15 -15
- package/migrations/20261016180000_settlement_lookup.sql +16 -16
- package/package.json +80 -80
- package/server/dictionaries/index.ts +17 -17
- package/server/dictionaries/surveyor/map_layer_components.ts +11 -11
- package/server/dictionaries/surveyor/map_layer_groups.ts +10 -10
- package/server/dictionaries/surveyor/map_layer_types.ts +11 -11
- package/server/modules/surveyor/route.ts +20 -0
- package/server/modules/surveyor/schema.ts +11 -0
- package/server/modules/surveyor/services/changeApplicationStatus.ts +100 -0
- package/server/modules/surveyor/services/mapLayers.ts +61 -61
- package/server/modules/surveyor/utils/templates/ds.surveyor_password_reset.pt.hbs +79 -79
- package/server/resources/helpers/settlement_lookup.ts +7 -7
- package/server/resources/surveyor-admin/applications.ts +126 -126
- package/server/resources/surveyor-admin/certificates.ts +113 -113
- package/server/resources/surveyor-admin/organization_surveyors.ts +31 -31
- package/dist/chunks/AppealStatusBadge-DzMn4RVy.js +0 -295
- package/dist/chunks/card-CBOQibhl.js +0 -1327
|
@@ -90,6 +90,6 @@ var ce = /*@__PURE__*/ r({
|
|
|
90
90
|
function le(e, t, r, o, ee, s) {
|
|
91
91
|
return i(), n(a(o.icon), { "stroke-width": r.strokeWidth }, null, 8, ["stroke-width"]);
|
|
92
92
|
}
|
|
93
|
-
var ue = /*#__PURE__*/ e(ce, [["render", le], ["__file", "
|
|
93
|
+
var ue = /*#__PURE__*/ e(ce, [["render", le], ["__file", "D:/softpro/surveyor/cabinet/src/components/ui/AppIcon.vue"]]);
|
|
94
94
|
//#endregion
|
|
95
95
|
export { ue as t };
|
|
@@ -25,7 +25,7 @@ var l = /*@__PURE__*/ i({
|
|
|
25
25
|
function g(e, i, l, g, _, v) {
|
|
26
26
|
return o(), n("section", { class: a(["rounded-xl border bg-white shadow-[0_1px_2px_0_rgb(15_23_42/0.04),0_1px_3px_0_rgb(15_23_42/0.06)]", l.danger ? "border-red-200" : "border-slate-200"]) }, [r("header", u, [r("div", d, [r("span", f, [s(e.$slots, "icon")]), r("h2", p, c(l.title), 1)]), e.$slots.actions ? (o(), n("div", m, [s(e.$slots, "actions")])) : t("", !0)]), r("div", h, [s(e.$slots, "default")])], 2);
|
|
27
27
|
}
|
|
28
|
-
var _ = /*#__PURE__*/ e(l, [["render", g], ["__file", "
|
|
28
|
+
var _ = /*#__PURE__*/ e(l, [["render", g], ["__file", "D:/softpro/surveyor/admin/src/pages/requests/components/AppealDetailSection.vue"]]), v = /*@__PURE__*/ i({
|
|
29
29
|
__name: "AppealDetailField",
|
|
30
30
|
props: {
|
|
31
31
|
label: {
|
|
@@ -53,6 +53,6 @@ var _ = /*#__PURE__*/ e(l, [["render", g], ["__file", "C:/softpro/surveyor/admin
|
|
|
53
53
|
function b(e, t, i, l, u, d) {
|
|
54
54
|
return o(), n("div", { class: a(["min-w-0", i.full ? "col-span-full" : ""]) }, [r("dt", y, c(i.label), 1), r("dd", { class: a(["break-words text-[14px] text-slate-700", i.highlight ? "font-semibold text-slate-800" : "font-medium"]) }, [s(e.$slots, "default")], 2)], 2);
|
|
55
55
|
}
|
|
56
|
-
var x = /*#__PURE__*/ e(v, [["render", b], ["__file", "
|
|
56
|
+
var x = /*#__PURE__*/ e(v, [["render", b], ["__file", "D:/softpro/surveyor/admin/src/pages/requests/components/AppealDetailField.vue"]]);
|
|
57
57
|
//#endregion
|
|
58
58
|
export { _ as n, x as t };
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
+
import { c as n, l as r, s as i, u as a } from "./resources-Cj8BzrBX.js";
|
|
4
|
+
import { t as o } from "./application_status-BhNGiY2I.js";
|
|
5
|
+
import { t as s } from "./work_types-Hwme-FEX.js";
|
|
6
|
+
import { t as c } from "./downloadAttachmentFilename-B_4jZuOa.js";
|
|
7
|
+
import { computed as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, defineComponent as p, normalizeClass as m, openBlock as h, toDisplayString as g } from "vue";
|
|
8
|
+
//#region admin/src/static/registry/requests/resource.ts
|
|
9
|
+
var _ = "applications", v = {
|
|
10
|
+
awaitingData: {
|
|
11
|
+
classes: "bg-slate-100 text-slate-600 border-slate-200",
|
|
12
|
+
dot: "bg-slate-400"
|
|
13
|
+
},
|
|
14
|
+
dataIssued: {
|
|
15
|
+
classes: "bg-amber-50 text-amber-700 border-amber-200",
|
|
16
|
+
dot: "bg-amber-500"
|
|
17
|
+
},
|
|
18
|
+
reserve: {
|
|
19
|
+
classes: "bg-rose-50 text-rose-800 border-rose-200",
|
|
20
|
+
dot: "bg-rose-700"
|
|
21
|
+
},
|
|
22
|
+
underReview: {
|
|
23
|
+
classes: "bg-sky-50 text-sky-700 border-sky-200",
|
|
24
|
+
dot: "bg-sky-500"
|
|
25
|
+
},
|
|
26
|
+
verified: {
|
|
27
|
+
classes: "bg-[#eef6ff] text-[#1a46b8] border-[#bcd9ff]",
|
|
28
|
+
dot: "bg-[#3479f6]"
|
|
29
|
+
},
|
|
30
|
+
completed: {
|
|
31
|
+
classes: "bg-emerald-50 text-emerald-700 border-emerald-200",
|
|
32
|
+
dot: "bg-emerald-500"
|
|
33
|
+
},
|
|
34
|
+
cancelled: {
|
|
35
|
+
classes: "bg-red-50 text-red-700 border-red-200",
|
|
36
|
+
dot: "bg-red-500"
|
|
37
|
+
}
|
|
38
|
+
}, y = {
|
|
39
|
+
classes: "bg-slate-100 text-slate-600 border-slate-200",
|
|
40
|
+
dot: "bg-slate-400"
|
|
41
|
+
}, b = {
|
|
42
|
+
awaitingData: "brand",
|
|
43
|
+
dataIssued: "success",
|
|
44
|
+
reserve: "slate",
|
|
45
|
+
underReview: "warning",
|
|
46
|
+
verified: "brand",
|
|
47
|
+
completed: "accent",
|
|
48
|
+
cancelled: "danger"
|
|
49
|
+
}, x = o.items.map((e) => e.code), S = Object.fromEntries(o.items.map((e) => [e.code, {
|
|
50
|
+
label: e.name,
|
|
51
|
+
...v[e.code] ?? y
|
|
52
|
+
}])), C = Object.fromEntries(o.items.map((e) => [e.code, e.name])), w = Object.fromEntries(o.items.map((e) => [e.code, e.color ?? "#64748b"])), T = Object.fromEntries(o.items.map((e) => [e.code, e.name]));
|
|
53
|
+
o.items.map((e) => ({
|
|
54
|
+
status: e.code,
|
|
55
|
+
label: e.name,
|
|
56
|
+
tone: b[e.code] ?? "slate"
|
|
57
|
+
}));
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region admin/src/lib/work-types.ts
|
|
60
|
+
var E = s.items.map((e) => ({
|
|
61
|
+
code: e.code,
|
|
62
|
+
label: e.name
|
|
63
|
+
})), D = Object.fromEntries(s.items.map((e) => [e.code, e.name])), O = {
|
|
64
|
+
resource: _,
|
|
65
|
+
pageSize: 10,
|
|
66
|
+
sort: "-created_at",
|
|
67
|
+
columns: [
|
|
68
|
+
{
|
|
69
|
+
key: "number",
|
|
70
|
+
label: "Номер",
|
|
71
|
+
sort: "number"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
key: "organization",
|
|
75
|
+
label: "Організація/особа"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
key: "address",
|
|
79
|
+
label: "Адреса"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
key: "status",
|
|
83
|
+
label: "Статус"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
key: "workType",
|
|
87
|
+
label: "Вид робіт"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
key: "createdAt",
|
|
91
|
+
label: "Дата подачі",
|
|
92
|
+
sort: "created_at"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
key: "checkedBy",
|
|
96
|
+
label: "Перевірив"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
key: "actions",
|
|
100
|
+
label: "Дії"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}, k = {
|
|
104
|
+
resource: _,
|
|
105
|
+
view: "inline",
|
|
106
|
+
fields: {
|
|
107
|
+
status: {
|
|
108
|
+
component: "select",
|
|
109
|
+
label: "Статус",
|
|
110
|
+
placeholder: "Статус",
|
|
111
|
+
width: 180,
|
|
112
|
+
api: "/api/suggest/applications/status"
|
|
113
|
+
},
|
|
114
|
+
year: {
|
|
115
|
+
component: "select",
|
|
116
|
+
label: "Рік",
|
|
117
|
+
placeholder: "Рік",
|
|
118
|
+
width: 120,
|
|
119
|
+
options: [{
|
|
120
|
+
id: "2026",
|
|
121
|
+
text: "2026"
|
|
122
|
+
}]
|
|
123
|
+
},
|
|
124
|
+
organization: {
|
|
125
|
+
component: "select",
|
|
126
|
+
label: "Організація",
|
|
127
|
+
placeholder: "Організація",
|
|
128
|
+
width: 220,
|
|
129
|
+
api: "/api/suggest/organizations/org_id"
|
|
130
|
+
},
|
|
131
|
+
address: {
|
|
132
|
+
component: "select",
|
|
133
|
+
label: "Адреса",
|
|
134
|
+
placeholder: "Адреса",
|
|
135
|
+
width: 260,
|
|
136
|
+
api: "/api/suggest/applications/address_id"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}, A = "applications";
|
|
140
|
+
async function j(e, t) {
|
|
141
|
+
let n = new FormData();
|
|
142
|
+
n.append("file", t, t.name);
|
|
143
|
+
let i = await fetch(r(`/api/resource/${A}/${encodeURIComponent(e)}/upload`), {
|
|
144
|
+
method: "POST",
|
|
145
|
+
credentials: "include",
|
|
146
|
+
body: n
|
|
147
|
+
});
|
|
148
|
+
if (!i.ok) {
|
|
149
|
+
let e = await i.text();
|
|
150
|
+
try {
|
|
151
|
+
let t = JSON.parse(e);
|
|
152
|
+
throw Error(t.message || e || `HTTP ${i.status}`);
|
|
153
|
+
} catch (t) {
|
|
154
|
+
throw t instanceof Error && t.message !== e ? t : Error(e || `HTTP ${i.status}`);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
let a = await i.json(), o = a.file_path ?? a.path;
|
|
158
|
+
if (!o) throw Error("Сервер не повернув шлях до файлу");
|
|
159
|
+
return {
|
|
160
|
+
file_path: o,
|
|
161
|
+
token: a.token
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
async function M(e, t) {
|
|
165
|
+
let n = await fetch(r(`/api/surveyor/applications/${encodeURIComponent(e)}/export/vector`), {
|
|
166
|
+
method: "POST",
|
|
167
|
+
credentials: "include",
|
|
168
|
+
headers: { "Content-Type": "application/json" },
|
|
169
|
+
body: JSON.stringify(t)
|
|
170
|
+
});
|
|
171
|
+
if (!n.ok) {
|
|
172
|
+
let e = await n.text();
|
|
173
|
+
try {
|
|
174
|
+
let t = JSON.parse(e);
|
|
175
|
+
throw Error(t.message || e || `HTTP ${n.status}`);
|
|
176
|
+
} catch (t) {
|
|
177
|
+
throw t instanceof Error && t.message !== e ? t : Error(e || `HTTP ${n.status}`);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
let i = await n.blob(), a = n.headers.get("Content-Disposition") ?? "", o = c(a, `vector_${e}.geojson`), s = URL.createObjectURL(i), l = document.createElement("a");
|
|
181
|
+
l.href = s, l.download = o, l.click(), URL.revokeObjectURL(s);
|
|
182
|
+
}
|
|
183
|
+
async function N(e, t, n) {
|
|
184
|
+
return i(`/api/surveyor/applications/${encodeURIComponent(e)}/upload-source-data`, {
|
|
185
|
+
method: "POST",
|
|
186
|
+
body: JSON.stringify({
|
|
187
|
+
file_path: t,
|
|
188
|
+
...n?.trim() ? { note: n.trim() } : {}
|
|
189
|
+
})
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
async function P(e, t) {
|
|
193
|
+
return n(A, e, { file_output: t });
|
|
194
|
+
}
|
|
195
|
+
async function F(e, t) {
|
|
196
|
+
return i(`/api/surveyor/applications/${encodeURIComponent(e)}/verify`, {
|
|
197
|
+
method: "POST",
|
|
198
|
+
body: JSON.stringify(t)
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
async function I(e) {
|
|
202
|
+
return i(`/api/surveyor/applications/${encodeURIComponent(e)}/complete`, { method: "POST" });
|
|
203
|
+
}
|
|
204
|
+
async function L(e, t) {
|
|
205
|
+
return i(`/api/surveyor/applications/${encodeURIComponent(e)}/status`, {
|
|
206
|
+
method: "POST",
|
|
207
|
+
body: JSON.stringify(t)
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region admin/src/static/registry/requests/form.ts
|
|
212
|
+
var R = [
|
|
213
|
+
"reserve",
|
|
214
|
+
"awaitingData",
|
|
215
|
+
"dataIssued"
|
|
216
|
+
], z = E.map((e) => ({
|
|
217
|
+
id: e.code,
|
|
218
|
+
text: e.label
|
|
219
|
+
}));
|
|
220
|
+
function B(e) {
|
|
221
|
+
return e == null ? "" : String(e).trim();
|
|
222
|
+
}
|
|
223
|
+
function V(e) {
|
|
224
|
+
return B(e) || null;
|
|
225
|
+
}
|
|
226
|
+
function H(e) {
|
|
227
|
+
let t = !!e.is_found_address_id, n = {
|
|
228
|
+
work_type: B(e.work_type),
|
|
229
|
+
description: V(e.description),
|
|
230
|
+
execution_basis: V(e.execution_basis),
|
|
231
|
+
settlement_id: B(e.settlement_id),
|
|
232
|
+
is_found_address_id: t,
|
|
233
|
+
notes: V(e.notes)
|
|
234
|
+
};
|
|
235
|
+
return t ? (n.address_id = B(e.address_id) || null, n.location = null) : (n.address_id = null, n.location = V(e.location)), n;
|
|
236
|
+
}
|
|
237
|
+
var U = (e) => ({
|
|
238
|
+
id: e,
|
|
239
|
+
text: C[e] ?? e
|
|
240
|
+
});
|
|
241
|
+
function W(e) {
|
|
242
|
+
return a.currentUser?.type === "admin" ? x.map(U) : R.includes(e) ? [U(e), U("cancelled")] : [];
|
|
243
|
+
}
|
|
244
|
+
async function G(e, t, n) {
|
|
245
|
+
if (!("status" in t)) return;
|
|
246
|
+
let r = B(t.status);
|
|
247
|
+
if (!r || r === B(n?.status)) return;
|
|
248
|
+
let i = V(t.cancel_reason);
|
|
249
|
+
if (r === "cancelled" && !i) throw Error("Вкажіть причину скасування");
|
|
250
|
+
await L(e, {
|
|
251
|
+
status: r,
|
|
252
|
+
reason: r === "cancelled" ? i : null
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
var K = {
|
|
256
|
+
resource: _,
|
|
257
|
+
recordToValues: (e) => ({
|
|
258
|
+
work_type: B(e.work_type ?? e.work_type_data?.id),
|
|
259
|
+
description: B(e.description),
|
|
260
|
+
execution_basis: B(e.execution_basis),
|
|
261
|
+
settlement_id: B(e.settlement_id ?? e.settlement_id_data?.id),
|
|
262
|
+
is_found_address_id: e.is_found_address_id !== !1,
|
|
263
|
+
address_id: B(e.address_id ?? e.address_id_data?.id),
|
|
264
|
+
location: B(e.location),
|
|
265
|
+
notes: B(e.notes)
|
|
266
|
+
}),
|
|
267
|
+
save: async (e, t, r) => {
|
|
268
|
+
if (!e) throw Error("Ідентифікатор звернення не знайдено");
|
|
269
|
+
let i = await n(_, e, H(t));
|
|
270
|
+
return await G(e, t, r), i;
|
|
271
|
+
},
|
|
272
|
+
fields: {
|
|
273
|
+
work_type: {
|
|
274
|
+
component: "select",
|
|
275
|
+
label: "Вид робіт",
|
|
276
|
+
col: 12,
|
|
277
|
+
validators: ["required"],
|
|
278
|
+
options: z
|
|
279
|
+
},
|
|
280
|
+
description: {
|
|
281
|
+
component: "textarea",
|
|
282
|
+
label: "Опис запиту",
|
|
283
|
+
col: 12
|
|
284
|
+
},
|
|
285
|
+
execution_basis: {
|
|
286
|
+
component: "textarea",
|
|
287
|
+
label: "Підстава виконання робіт",
|
|
288
|
+
col: 12
|
|
289
|
+
},
|
|
290
|
+
settlement_id: {
|
|
291
|
+
component: "autocomplete",
|
|
292
|
+
label: "Населений пункт",
|
|
293
|
+
col: 12,
|
|
294
|
+
validators: ["required"],
|
|
295
|
+
api: "/api/suggest/applications/settlement_id"
|
|
296
|
+
},
|
|
297
|
+
is_found_address_id: {
|
|
298
|
+
component: "switcher",
|
|
299
|
+
label: "Адреса з довідника",
|
|
300
|
+
col: 12,
|
|
301
|
+
view: "checkbox",
|
|
302
|
+
info: "Увімкніть, щоб обрати адресу з реєстру; вимкніть для вільного опису місцезнаходження"
|
|
303
|
+
},
|
|
304
|
+
address_id: {
|
|
305
|
+
component: "autocomplete",
|
|
306
|
+
label: "Адреса",
|
|
307
|
+
col: 12,
|
|
308
|
+
api: "/api/suggest/applications/address_id",
|
|
309
|
+
conditions: [[
|
|
310
|
+
"is_found_address_id",
|
|
311
|
+
"==",
|
|
312
|
+
!0
|
|
313
|
+
]],
|
|
314
|
+
props: (e) => {
|
|
315
|
+
let t = B(e.settlement_id);
|
|
316
|
+
return t ? { filter: { settlement_id: t } } : {};
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
location: {
|
|
320
|
+
component: "textarea",
|
|
321
|
+
label: "Місцезнаходження",
|
|
322
|
+
col: 12,
|
|
323
|
+
conditions: [[
|
|
324
|
+
"is_found_address_id",
|
|
325
|
+
"==",
|
|
326
|
+
!1
|
|
327
|
+
]]
|
|
328
|
+
},
|
|
329
|
+
notes: {
|
|
330
|
+
component: "textarea",
|
|
331
|
+
label: "Примітки",
|
|
332
|
+
col: 12
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
function q(e) {
|
|
337
|
+
let t = W(B(e?.status));
|
|
338
|
+
if (!t.length) return K;
|
|
339
|
+
let n = {
|
|
340
|
+
status: {
|
|
341
|
+
component: "select",
|
|
342
|
+
label: "Статус",
|
|
343
|
+
col: 12,
|
|
344
|
+
validators: ["required"],
|
|
345
|
+
options: t
|
|
346
|
+
},
|
|
347
|
+
cancel_reason: {
|
|
348
|
+
component: "textarea",
|
|
349
|
+
label: "Причина скасування",
|
|
350
|
+
col: 12,
|
|
351
|
+
conditions: [[
|
|
352
|
+
"status",
|
|
353
|
+
"==",
|
|
354
|
+
"cancelled"
|
|
355
|
+
]]
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
return {
|
|
359
|
+
...K,
|
|
360
|
+
recordToValues: (e) => ({
|
|
361
|
+
...K.recordToValues(e),
|
|
362
|
+
status: B(e.status),
|
|
363
|
+
cancel_reason: B(e.cancel_reason)
|
|
364
|
+
}),
|
|
365
|
+
fields: {
|
|
366
|
+
...n,
|
|
367
|
+
...K.fields
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
//#endregion
|
|
372
|
+
//#region admin/src/static/registry/requests/index.ts
|
|
373
|
+
var J = /* @__PURE__ */ e({
|
|
374
|
+
APPEAL_STATUS: () => S,
|
|
375
|
+
APPEAL_STATUS_SHORT: () => C,
|
|
376
|
+
APPLICATION_STATUS_CODES: () => x,
|
|
377
|
+
MAP_STATUS_COLORS: () => w,
|
|
378
|
+
MAP_STATUS_LABELS: () => T,
|
|
379
|
+
filter: () => k,
|
|
380
|
+
form: () => K,
|
|
381
|
+
resource: () => _,
|
|
382
|
+
table: () => O
|
|
383
|
+
}), Y = /*@__PURE__*/ p({
|
|
384
|
+
__name: "AppealStatusBadge",
|
|
385
|
+
props: {
|
|
386
|
+
status: {
|
|
387
|
+
type: String,
|
|
388
|
+
required: !0
|
|
389
|
+
},
|
|
390
|
+
label: {
|
|
391
|
+
type: String,
|
|
392
|
+
required: !1
|
|
393
|
+
},
|
|
394
|
+
size: {
|
|
395
|
+
type: String,
|
|
396
|
+
required: !1,
|
|
397
|
+
default: "md"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
setup(e, { expose: t }) {
|
|
401
|
+
t();
|
|
402
|
+
let n = e, r = {
|
|
403
|
+
props: n,
|
|
404
|
+
config: l(() => {
|
|
405
|
+
let e = S[n.status], t = {
|
|
406
|
+
label: n.label || n.status || "—",
|
|
407
|
+
classes: "bg-slate-100 text-slate-600 border-slate-200",
|
|
408
|
+
dot: "bg-slate-400"
|
|
409
|
+
};
|
|
410
|
+
return e ? n.label ? {
|
|
411
|
+
...e,
|
|
412
|
+
label: n.label
|
|
413
|
+
} : e : t;
|
|
414
|
+
}),
|
|
415
|
+
pad: l(() => n.size === "sm" ? "px-2 py-0.5 text-xs" : "px-2.5 py-1 text-[13px]")
|
|
416
|
+
};
|
|
417
|
+
return Object.defineProperty(r, "__isScriptSetup", {
|
|
418
|
+
enumerable: !1,
|
|
419
|
+
value: !0
|
|
420
|
+
}), r;
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
//#endregion
|
|
424
|
+
//#region admin/src/components/ui/AppealStatusBadge.vue
|
|
425
|
+
function X(e, t, n, r, i, a) {
|
|
426
|
+
return h(), u("span", { class: m(["inline-flex items-center gap-1.5 rounded-full border font-medium", [r.config.classes, r.pad]]) }, [d("span", { class: m(["h-1.5 w-1.5 rounded-full", r.config.dot]) }, null, 2), f(" " + g(r.config.label), 1)], 2);
|
|
427
|
+
}
|
|
428
|
+
var Z = /*#__PURE__*/ t(Y, [["render", X], ["__file", "D:/softpro/surveyor/admin/src/components/ui/AppealStatusBadge.vue"]]);
|
|
429
|
+
//#endregion
|
|
430
|
+
export { M as a, j as c, D as d, E as f, _ as g, T as h, I as i, F as l, w as m, J as n, N as o, x as p, q as r, P as s, Z as t, O as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { t } from "./AppIcon-
|
|
2
|
+
import { t } from "./AppIcon-Di5F4Bu_.js";
|
|
3
3
|
import { t as n } from "./account_types-DLL1w122.js";
|
|
4
4
|
import { t as r } from "./application_status-BhNGiY2I.js";
|
|
5
5
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, toDisplayString as p } from "vue";
|
|
@@ -127,6 +127,6 @@ function x(e, t, n, r, i, u) {
|
|
|
127
127
|
})) : o("", !0)
|
|
128
128
|
], 2);
|
|
129
129
|
}
|
|
130
|
-
var S = /*#__PURE__*/ e(b, [["render", x], ["__file", "
|
|
130
|
+
var S = /*#__PURE__*/ e(b, [["render", x], ["__file", "D:/softpro/surveyor/cabinet/src/components/ui/AppealStatusBadge.vue"]]);
|
|
131
131
|
//#endregion
|
|
132
132
|
export { g as n, _ as r, S as t };
|