@opengis/surveyor 0.0.14 → 0.0.16
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/AppealStatusBadge-7KruOSVI.js +295 -0
- package/dist/chunks/ApplicationGeometryExportModal-DJbnKPm6.js +1245 -0
- package/dist/chunks/{BaseModal-SjP521X9.js → BaseModal-BJxKuONh.js} +1 -1
- package/dist/chunks/{RegistryFormModal-DhzEpxys.js → RegistryFormModal-BmBsUOF3.js} +1 -1
- package/dist/chunks/SurveyorTeleport-Cd6D92mo.js +30 -0
- package/dist/chunks/{applications-D6pHAQaK.js → applications-B6GAxopO.js} +16 -19
- package/dist/chunks/card-B113dNzv.js +1327 -0
- package/dist/chunks/card-COmcUdms.js +639 -0
- package/dist/chunks/{card-BBx1zR0E.js → card-Deae73xd.js} +2 -2
- package/dist/chunks/{certificates-DtfZTFN9.js → certificates-DHf1zGQs.js} +18 -8
- package/dist/chunks/{create-Cgeu7aKO.js → create-BVPqfJOb.js} +10 -10
- package/dist/chunks/{map-DkKsEnCM.js → map-BZi4eVl3.js} +893 -897
- package/dist/chunks/{map-layers-BmuIMLHa.js → map-layers-CKZK50de.js} +2 -2
- package/dist/chunks/{organizations-BO1dIl7v.js → organizations-DYGfYfHS.js} +2 -2
- package/dist/chunks/{requests-rWq8ok3C.js → requests-D1ix8U5f.js} +1 -1
- package/dist/chunks/requests-v1jHarHb.js +303 -0
- package/dist/chunks/{users-DOiQeVwn.js → users-frk3gmmd.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +21 -21
- package/package.json +1 -1
- package/server/modules/surveyor/route.ts +13 -12
- package/server/modules/surveyor/services/applicationTile.ts +3 -3
- package/server/modules/surveyor/services/cancelApplication.ts +2 -1
- package/server/modules/surveyor/services/changeSurveyorPasswordByAdmin.ts +1 -1
- package/server/modules/surveyor/services/completeApplication.ts +1 -1
- package/server/modules/surveyor/services/identifyApplications.ts +2 -2
- package/server/modules/surveyor/services/issueSourceData.ts +1 -1
- package/server/modules/surveyor/services/registerSurveyor.ts +1 -1
- package/server/modules/surveyor/services/resendRegistration.ts +1 -1
- package/server/modules/surveyor/services/searchApplications.ts +2 -2
- package/server/modules/surveyor/services/updateSurveyorAccountStatus.ts +1 -1
- package/server/modules/surveyor/services/updateSurveyorStatus.ts +1 -1
- package/server/modules/surveyor/services/verifyApplication.ts +1 -1
- package/server/modules/surveyor/utils/shared.ts +28 -6
- package/server/resources/surveyor-admin/application_comments.ts +1 -1
- package/server/resources/surveyor-admin/application_status_history.ts +1 -1
- package/server/resources/surveyor-admin/applications.ts +12 -11
- package/server/resources/surveyor-admin/certificates.ts +26 -26
- package/server/resources/surveyor-admin/map_layers.ts +1 -1
- package/server/resources/surveyor-admin/organizations.ts +1 -1
- package/server/resources/surveyor-admin/surveyors.ts +1 -1
- package/server/suggests/index.ts +18 -1
- package/dist/chunks/AppealStatusBadge-Ct3EcB4_.js +0 -185
- package/dist/chunks/ApplicationHistorySection-D7KPV2cX.js +0 -788
- package/dist/chunks/SurveyorTeleport-CnSF0Ptl.js +0 -23
- package/dist/chunks/card-Bj4zFzbe.js +0 -1193
- package/dist/chunks/card-C-ohjNkC.js +0 -609
- package/dist/chunks/requests-BZ2jrt5J.js +0 -234
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { n as t, t as n } from "./useEntityPath-C5Owtidc.js";
|
|
3
|
-
import { a as r } from "./resources-Cj8BzrBX.js";
|
|
4
|
-
import { t as i } from "./filterQuery-Dka-mIso.js";
|
|
5
|
-
import { i as a, n as o, r as s, t as c } from "./RegistryToolbar-DXOEcD84.js";
|
|
6
|
-
import { t as l } from "./TablePagination-CUtnDQQ_.js";
|
|
7
|
-
import { n as u, r as d, s as f, t as p } from "./AppealStatusBadge-Ct3EcB4_.js";
|
|
8
|
-
import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, openBlock as C, ref as w, renderList as T, toDisplayString as E, vModelText as D, withCtx as O, withDirectives as k } from "vue";
|
|
9
|
-
import { RouterLink as A } from "vue-router";
|
|
10
|
-
//#region admin/src/pages/requests/index.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var j = /*@__PURE__*/ S({
|
|
12
|
-
__name: "index",
|
|
13
|
-
setup(e, { expose: m }) {
|
|
14
|
-
m();
|
|
15
|
-
let g = d.columns, _ = g.flatMap((e) => e.sort ? [e.sort] : []), { query: v, filterValues: y, page: b, pageSize: x, sort: S, listFilters: C, bindListLoader: T } = a({
|
|
16
|
-
arrayFilterKeys: ["status", "year"],
|
|
17
|
-
defaultSort: d.sort,
|
|
18
|
-
sortFields: _,
|
|
19
|
-
buildFilters: i
|
|
20
|
-
}), { detailPath: E } = n("number"), D = w(!1), O = w([
|
|
21
|
-
"number",
|
|
22
|
-
"organization",
|
|
23
|
-
"address",
|
|
24
|
-
"status",
|
|
25
|
-
"workType",
|
|
26
|
-
"createdAt"
|
|
27
|
-
]), k = w([]), j = w(0), M = w(!1), N = w("");
|
|
28
|
-
function P(e) {
|
|
29
|
-
if (!e) return "—";
|
|
30
|
-
let t = e.match(/^(\d{4})-(\d{2})-(\d{2})/);
|
|
31
|
-
return t ? `${t[3]}.${t[2]}.${t[1]}` : e;
|
|
32
|
-
}
|
|
33
|
-
function F(e) {
|
|
34
|
-
return e.address_id_data?.text || e.location || "—";
|
|
35
|
-
}
|
|
36
|
-
let I = 0, L = h(() => M.value ? "Завантаження…" : N.value ? N.value : "За заданими фільтрами звернень не знайдено.");
|
|
37
|
-
async function R() {
|
|
38
|
-
let e = ++I;
|
|
39
|
-
M.value = !0, N.value = "";
|
|
40
|
-
try {
|
|
41
|
-
let t = await r(f, {
|
|
42
|
-
page: b.value,
|
|
43
|
-
limit: x.value,
|
|
44
|
-
sort: S.value,
|
|
45
|
-
search: v.value.trim() || void 0,
|
|
46
|
-
filters: C.value
|
|
47
|
-
});
|
|
48
|
-
if (e !== I) return;
|
|
49
|
-
k.value = t.rows ?? [], j.value = Number(t.total) || 0;
|
|
50
|
-
} catch (t) {
|
|
51
|
-
if (e !== I) return;
|
|
52
|
-
k.value = [], j.value = 0, N.value = t instanceof Error ? t.message : "Не вдалося завантажити звернення";
|
|
53
|
-
} finally {
|
|
54
|
-
e === I && (M.value = !1);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
T(() => {
|
|
58
|
-
R();
|
|
59
|
-
});
|
|
60
|
-
function z(e) {
|
|
61
|
-
y.value = e;
|
|
62
|
-
}
|
|
63
|
-
function B(e) {
|
|
64
|
-
S.value !== e && (b.value !== 1 && (b.value = 1), S.value = e);
|
|
65
|
-
}
|
|
66
|
-
function V(e) {
|
|
67
|
-
O.value = O.value.includes(e) ? O.value.length > 1 ? O.value.filter((t) => t !== e) : O.value : O.value.length < 7 ? [...O.value, e] : O.value;
|
|
68
|
-
}
|
|
69
|
-
let H = {
|
|
70
|
-
columns: g,
|
|
71
|
-
sortableFields: _,
|
|
72
|
-
query: v,
|
|
73
|
-
filterValues: y,
|
|
74
|
-
page: b,
|
|
75
|
-
pageSize: x,
|
|
76
|
-
sort: S,
|
|
77
|
-
listFilters: C,
|
|
78
|
-
bindListLoader: T,
|
|
79
|
-
detailPath: E,
|
|
80
|
-
columnsOpen: D,
|
|
81
|
-
visibleColumns: O,
|
|
82
|
-
rows: k,
|
|
83
|
-
total: j,
|
|
84
|
-
loading: M,
|
|
85
|
-
error: N,
|
|
86
|
-
formatDate: P,
|
|
87
|
-
addressLabel: F,
|
|
88
|
-
get requestId() {
|
|
89
|
-
return I;
|
|
90
|
-
},
|
|
91
|
-
set requestId(e) {
|
|
92
|
-
I = e;
|
|
93
|
-
},
|
|
94
|
-
emptyText: L,
|
|
95
|
-
loadRows: R,
|
|
96
|
-
onFilterValuesUpdate: z,
|
|
97
|
-
onSort: B,
|
|
98
|
-
toggleColumn: V,
|
|
99
|
-
AppIcon: t,
|
|
100
|
-
get RouterLink() {
|
|
101
|
-
return A;
|
|
102
|
-
},
|
|
103
|
-
AppealStatusBadge: p,
|
|
104
|
-
PageHeader: s,
|
|
105
|
-
RegistryTable: o,
|
|
106
|
-
TablePagination: l,
|
|
107
|
-
RegistryToolbar: c,
|
|
108
|
-
get config() {
|
|
109
|
-
return u;
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
return Object.defineProperty(H, "__isScriptSetup", {
|
|
113
|
-
enumerable: !1,
|
|
114
|
-
value: !0
|
|
115
|
-
}), H;
|
|
116
|
-
}
|
|
117
|
-
}), M = { class: "px-4" }, N = { class: "relative block" }, P = {
|
|
118
|
-
type: "button",
|
|
119
|
-
class: "inline-flex h-10 w-10 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-600 transition-colors hover:border-brand-300 hover:text-brand-700",
|
|
120
|
-
"aria-label": "Експорт"
|
|
121
|
-
}, F = { class: "relative" }, I = {
|
|
122
|
-
key: 0,
|
|
123
|
-
class: "absolute right-0 top-12 z-20 w-56 rounded-lg border border-slate-200 bg-white p-2 shadow-card-hover"
|
|
124
|
-
}, L = ["checked", "onChange"], R = { class: "mt-3 flex items-center justify-between border-t border-slate-100 pt-3 text-xs text-slate-400" }, z = { class: "font-semibold text-slate-600" }, B = {
|
|
125
|
-
key: 1,
|
|
126
|
-
class: "min-w-0"
|
|
127
|
-
}, V = { class: "break-words font-semibold text-slate-700" }, H = { class: "break-words text-xs text-slate-400" }, U = {
|
|
128
|
-
key: 2,
|
|
129
|
-
class: "text-slate-600"
|
|
130
|
-
}, W = {
|
|
131
|
-
key: 4,
|
|
132
|
-
class: "text-slate-600"
|
|
133
|
-
}, G = {
|
|
134
|
-
key: 5,
|
|
135
|
-
class: "whitespace-nowrap text-slate-600"
|
|
136
|
-
}, K = {
|
|
137
|
-
key: 6,
|
|
138
|
-
class: "text-slate-600"
|
|
139
|
-
};
|
|
140
|
-
function q(e, t, n, r, i, a) {
|
|
141
|
-
return C(), v("div", null, [x(r.PageHeader, {
|
|
142
|
-
title: "Звернення на видачу та прийом матеріалів",
|
|
143
|
-
subtitle: "Реєстр звернень геодезичного кабінету"
|
|
144
|
-
}), y("section", M, [
|
|
145
|
-
x(r.RegistryToolbar, {
|
|
146
|
-
nowrap: "",
|
|
147
|
-
"search-min": "min-w-[160px] max-w-[300px]",
|
|
148
|
-
"filter-config": r.config.filter,
|
|
149
|
-
"filter-values": r.filterValues,
|
|
150
|
-
"onUpdate:filterValues": r.onFilterValuesUpdate
|
|
151
|
-
}, {
|
|
152
|
-
search: O(() => [y("label", N, [x(r.AppIcon, {
|
|
153
|
-
name: "search",
|
|
154
|
-
class: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400"
|
|
155
|
-
}), k(y("input", {
|
|
156
|
-
"onUpdate:modelValue": t[0] ||= (e) => r.query = e,
|
|
157
|
-
type: "search",
|
|
158
|
-
placeholder: "Пошук…",
|
|
159
|
-
class: "h-10 w-full rounded-lg border border-slate-200 bg-white pl-9 pr-3 text-sm text-slate-700 outline-none transition-colors placeholder:text-slate-400 focus:border-brand-400 focus:ring-1 focus:ring-brand-400"
|
|
160
|
-
}, null, 512), [[D, r.query]])])]),
|
|
161
|
-
actions: O(() => [y("button", P, [x(r.AppIcon, {
|
|
162
|
-
name: "download",
|
|
163
|
-
class: "h-4 w-4"
|
|
164
|
-
})]), y("div", F, [y("button", {
|
|
165
|
-
type: "button",
|
|
166
|
-
class: "inline-flex h-10 w-10 items-center justify-center rounded-lg border border-slate-200 bg-white text-slate-600 transition-colors hover:border-brand-300 hover:text-brand-700",
|
|
167
|
-
onClick: t[1] ||= (e) => r.columnsOpen = !r.columnsOpen
|
|
168
|
-
}, [x(r.AppIcon, {
|
|
169
|
-
name: "columns-3",
|
|
170
|
-
class: "h-4 w-4"
|
|
171
|
-
})]), r.columnsOpen ? (C(), v("div", I, [
|
|
172
|
-
t[4] ||= y("p", { class: "px-2 py-1 text-xs font-semibold uppercase tracking-wide text-slate-400" }, "Налаштувати колонки", -1),
|
|
173
|
-
(C(!0), v(m, null, T(r.columns, (e) => (C(), v("label", {
|
|
174
|
-
key: e.key,
|
|
175
|
-
class: "flex cursor-pointer items-center gap-2 rounded-md px-2 py-2 text-sm text-slate-600 hover:bg-slate-50"
|
|
176
|
-
}, [y("input", {
|
|
177
|
-
type: "checkbox",
|
|
178
|
-
checked: r.visibleColumns.includes(e.key),
|
|
179
|
-
class: "h-4 w-4 accent-brand-600",
|
|
180
|
-
onChange: (t) => r.toggleColumn(e.key)
|
|
181
|
-
}, null, 40, L), b(" " + E(e.label), 1)]))), 128)),
|
|
182
|
-
t[5] ||= y("p", { class: "px-2 pt-1 text-[11px] text-slate-400" }, "До 7 колонок одночасно", -1)
|
|
183
|
-
])) : _("", !0)])]),
|
|
184
|
-
_: 1
|
|
185
|
-
}, 8, ["filter-config", "filter-values"]),
|
|
186
|
-
y("div", R, [y("span", null, [t[6] ||= b("Знайдено звернень: ", -1), y("strong", z, E(r.total), 1)])]),
|
|
187
|
-
x(r.RegistryTable, {
|
|
188
|
-
class: "mt-3",
|
|
189
|
-
rows: r.rows,
|
|
190
|
-
columns: r.columns,
|
|
191
|
-
"visible-keys": r.visibleColumns,
|
|
192
|
-
"row-key": "app_id",
|
|
193
|
-
sort: r.sort,
|
|
194
|
-
"empty-text": r.emptyText,
|
|
195
|
-
onSort: r.onSort
|
|
196
|
-
}, {
|
|
197
|
-
cell: O(({ row: e, column: t }) => [t === "number" ? (C(), g(r.RouterLink, {
|
|
198
|
-
key: 0,
|
|
199
|
-
to: r.detailPath(e.app_id),
|
|
200
|
-
class: "font-semibold text-brand-700 underline-offset-4 transition-colors hover:text-brand-900 hover:underline"
|
|
201
|
-
}, {
|
|
202
|
-
default: O(() => [b(E(e.number || "—"), 1)]),
|
|
203
|
-
_: 2
|
|
204
|
-
}, 1032, ["to"])) : t === "organization" ? (C(), v("div", B, [y("p", V, E(e.org_id_data?.text || "—"), 1), y("p", H, E(e.surveyor_id_data?.text || "—"), 1)])) : t === "address" ? (C(), v("span", U, E(r.addressLabel(e)), 1)) : t === "status" ? (C(), g(r.AppealStatusBadge, {
|
|
205
|
-
key: 3,
|
|
206
|
-
status: e.status || "",
|
|
207
|
-
label: e.status_data?.text || void 0,
|
|
208
|
-
size: "sm"
|
|
209
|
-
}, null, 8, ["status", "label"])) : t === "workType" ? (C(), v("span", W, E(e.work_type_data?.text || "—"), 1)) : t === "createdAt" ? (C(), v("span", G, E(r.formatDate(e.created_at)), 1)) : t === "checkedBy" ? (C(), v("span", K, E(e.verified_by_data?.text || "—"), 1)) : _("", !0)]),
|
|
210
|
-
_: 1
|
|
211
|
-
}, 8, [
|
|
212
|
-
"rows",
|
|
213
|
-
"columns",
|
|
214
|
-
"visible-keys",
|
|
215
|
-
"sort",
|
|
216
|
-
"empty-text"
|
|
217
|
-
]),
|
|
218
|
-
r.total > 0 ? (C(), g(r.TablePagination, {
|
|
219
|
-
key: 0,
|
|
220
|
-
page: r.page,
|
|
221
|
-
"onUpdate:page": t[2] ||= (e) => r.page = e,
|
|
222
|
-
"page-size": r.pageSize,
|
|
223
|
-
"onUpdate:pageSize": t[3] ||= (e) => r.pageSize = e,
|
|
224
|
-
total: r.total
|
|
225
|
-
}, null, 8, [
|
|
226
|
-
"page",
|
|
227
|
-
"page-size",
|
|
228
|
-
"total"
|
|
229
|
-
])) : _("", !0)
|
|
230
|
-
])]);
|
|
231
|
-
}
|
|
232
|
-
var J = /*#__PURE__*/ e(j, [["render", q], ["__file", "C:/softpro/surveyor/admin/src/pages/requests/index.vue"]]);
|
|
233
|
-
//#endregion
|
|
234
|
-
export { J as default };
|