PageSourceSearch

https://intranet.westliches-weserbergland.de/dist/js/CustomerAgentView_DWG9WRlT.min.js

js westliches-weserbergland.de collected 2026-09-24 22:50:19 UTC 14,575 bytes, 418 lines download raw bytes

1(function() {
2	try {
3		var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4		e.SENTRY_RELEASE = { id: "live_2026-09-24-1148" };
5		var t = new e.Error().stack;
6		t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "50164a4e-f20d-4057-8dd9-af62d5638952", e._sentryDebugIdIdentifier = "sentry-dbid-50164a4e-f20d-4057-8dd9-af62d5638952");
7	} catch (e) {}
8})();
9import { Ac as e, Dn as t, Ha as n, Yt as r, bi as i, os as a, pc as o, qc as s, sc as c, zo as l } from "./topMessageHandler_BfquHqnZ.min.js";
10import { $ as u, F as d, L as f, N as p, R as m, T as h, X as g, Y as _, _ as v, c as y, d as b, f as x, g as S, i as C, jt as w, l as T, lt as E, m as D, nt as O, q as k, u as A, y as j } from "./runtime-core.esm-bundler_Bi-f_fgM.min.js";
11import { n as M, t as N } from "./asyncToGenerator_SUcgKOYT.min.js";
12import { t as P } from "./PhoneNumber_CJ2fyASo.min.js";
13import { r as F } from "./vuex.esm-bundler_BYiu1CGj.min.js";
14import { s as I } from "./addresses_BSoHW556.min.js";
15import { t as L } from "./ListPager_CDbzRUPQ.min.js";
16import { t as R } from "./EntryHistory_C03OEVXk.min.js";
17import { t as z } from "./searchAbstract_D4oRJGb4.min.js";
18import { t as B } from "./AppContent_CRi7sAir.min.js";
19import { t as V } from "./ContactAddressDisplay_Cg0QA609.min.js";
20import { t as H } from "./customer_CxIVf7p6.min.js";
21import { t as ee } from "./ContactContractList_DDFdzZM2.min.js";
22//#region src/views/customer/agent/CustomerAgentMonthList.vue?vue&type=script&setup=true&lang.ts
23M();
24var U = { class: "portuna-table portuna-table-bordered contract-list-table" }, W = { key: 0 }, G = ["colspan"], K = { key: 1 }, q = ["colspan"], J = { class: "text-overflow" }, Y = { class: "text-overflow no-print hidden-md-down" }, X = { class: "no-print hidden-md-down" }, Z = { class: "text-overflow" }, Q = ["onMouseleave", "onMouseover"], te = { class: "padding-small" }, ne = { class: "no-margin-top margin-bottom-5 intranet-headline-color" }, re = { class: "margin-bottom-5 font-size-12" }, ie = { class: "break-spaces" }, ae = /* @__PURE__ */ j({
25	__name: "CustomerAgentMonthList",
26	props: {
27		id: { default: 0 },
28		date: {}
29	},
30	setup(t, { expose: r }) {
31		let i = s(), u = H(), b = t, D = y(() => 7), k = [{
32			label: "Kunden",
33			href: { name: "customer-index" }
34		}], j = y(() => "customer-agent-month-list-" + b.id), M = O(), N = O([]), P = y(() => ({
35			headline: "Handelsvertreter",
36			breadcrumb: k
37		}));
38		u.loadAll({
39			promises: [u.fetchResourceData(), e.get(`/customer/agent/fetch-invoice-list/id/${b.id}/date/${b.date}`).then(({ data: { data: e } }) => {
40				N.value = e.entries;
41			}).catch((e) => {
42				o(e);
43			})],
44			setLoading: !1
45		});
46		let F = z({
47			emitter: i.emitter,
48			searchStorageScope: j
49		});
50		return r(Object.assign({}, i, F.expose)), (e, t) => {
51			let r = f("router-link"), i = m("tooltip");
52			return p(), A(B, h(P.value, { class: "module-customer" }), {
53				default: _(() => [v(L, h({
54					ref_key: "listPager",
55					ref: M
56				}, E(F).properties, { entries: N.value }), {
57					default: _(({ listEntries: e, loading: o }) => [T("table", U, [
58						t[10] || (t[10] = T("colgroup", null, [
59							T("col", { style: { width: "45px" } }),
60							S(),
61							T("col", { style: { width: "110px" } }),
62							S(),
63							T("col", {
64								class: "no-print hidden-md-down",
65								style: { width: "auto" }
66							}),
67							S(),
68							T("col", {
69								class: "no-print hidden-md-down",
70								style: { width: "200px" }
71							}),
72							S(),
73							T("col", {
74								class: "no-print",
75								style: { width: "200px" }
76							}),
77							S(),
78							T("col", {
79								class: "no-print hidden-md-down",
80								style: { width: "200px" }
81							}),
82							S(),
83							T("col", { style: { width: "auto" } })
84						], -1)),
85						t[11] || (t[11] = S()),
86						t[12] || (t[12] = T("thead", null, [T("tr", null, [
87							T("th", { class: "text-center background-dark" }, [T("i", {
88								"aria-hidden": "true",
89								class: "material-icons md-18",
90								role: "img"
91							}, "list")]),
92							S(),
93							T("th", null, "Knd-Nr."),
94							S(),
95							T("th", null, "Kunde"),
96							S(),
97							T("th", null, "Datum"),
98							S(),
99							T("th", null, "Provision Netto"),
100							S(),
101							T("th", null, "Provision Brutto"),
102							S(),
103							T("th", null, "Produkte")
104						])], -1)),
105						t[13] || (t[13] = S()),
106						T("tbody", null, [o ? (p(), x("tr", W, [T("td", { colspan: D.value }, [v(I)], 8, G)])) : e.length === 0 ? (p(), x("tr", K, [T("td", { colspan: D.value }, "\n                        Es wurden keine Einträge gefunden.\n                    ", 8, q)])) : (p(!0), x(C, { key: 2 }, d(e, (e) => (p(), x("tr", null, [
107							t[3] || (t[3] = T("td", null, null, -1)),
108							t[4] || (t[4] = S()),
109							T("td", J, [v(r, {
110								to: {
111									name: "contact-entry-view",
112									params: { id: e.institution_id }
113								},
114								target: "_blank"
115							}, {
116								default: _(() => [S("\n                                #" + w(e.institution_id), 1)]),
117								_: 2
118							}, 1032, ["to"])]),
119							t[5] || (t[5] = S()),
120							T("td", Y, [g((p(), A(r, {
121								to: {
122									name: "contact-entry-view",
123									params: { id: e.institution_id }
124								},
125								target: "_blank"
126							}, {
127								default: _(() => [S(w(e.institution_name), 1)]),
128								_: 2
129							}, 1032, ["to"])), [[i, `${e.institution_name} (${e.institution_id})`]])]),
130							t[6] || (t[6] = S()),
131							T("td", X, w(E(l)("d.m.Y", e.date)), 1),
132							t[7] || (t[7] = S()),
133							T("td", null, w(E(a)(e.total_provision_net)), 1),
134							t[8] || (t[8] = S()),
135							T("td", null, w(E(a)(e.total_provision_gross)), 1),
136							t[9] || (t[9] = S()),
137							T("td", Z, [(p(!0), x(C, null, d(e.product, (e) => (p(), x("span", null, [v(c, {
138								"max-width": 400,
139								class: "label"
140							}, {
141								default: _(({ open: t, mouseleave: n }) => [T("span", {
142									onMouseleave: n,
143									onMouseover: t
144								}, w(e.matchcode), 41, Q)]),
145								container: _(() => [T("div", te, [
146									T("h4", ne, w(e.title), 1),
147									t[0] || (t[0] = S()),
148									T("div", re, "Verkäufer: " + w(E(n)(e.seller, "employee")), 1),
149									t[1] || (t[1] = S()),
150									T("div", ie, w(e.description.length > 350 ? e.description.substring(0, 350) + "..." : e.description), 1)
151								])]),
152								_: 2
153							}, 1024)]))), 256))])
154						]))), 256))])
155					])]),
156					_: 1
157				}, 16, ["entries"])]),
158				_: 1
159			}, 16);
160		};
161	}
162}), oe = { class: "row" }, se = { class: "col-lg-6" }, ce = ["href"], le = ["href"], ue = { class: "col-lg-6" }, de = { class: "portuna-table portuna-table-bordered" }, $ = { key: 0 }, fe = { colspan: "4" }, pe = { key: 1 }, me = { class: "text-right" }, he = { class: "text-right" }, ge = { class: "entry-history" }, _e = /* @__PURE__ */ j({
163	__name: "CustomerAgentView",
164	props: { id: { default: 0 } },
165	setup(n) {
166		let o = n, s = F(), c = y(() => [{
167			label: "Kunden",
168			href: { name: "customer-index" }
169		}, {
170			label: "Handelsvertreter",
171			href: { name: "customer-agent-list" }
172		}]), h = function() {
173			var e = N(function* (e) {
174				return s.dispatch("errorPage", e);
175			});
176			return function(t) {
177				return e.apply(this, arguments);
178			};
179		}(), j = function() {
180			var e = N(function* (e) {
181				return s.dispatch("getPage", e);
182			});
183			return function(t) {
184				return e.apply(this, arguments);
185			};
186		}(), M = O({}), L = O(null), z = O(!1), H = y(() => ({
187			headline: `${M.value.institution_name} (${M.value.institution_id})`,
188			breadcrumb: c.value
189		})), U = () => {
190			e.get("/customer/agent/fetch-invoice-list/id/" + o.id).then(({ data: { data: e } }) => {
191				L.value = e.entries;
192			});
193		}, W = (e) => {
194			s.dispatch("createPopup", {
195				title: `${M.value.institution_name} (${M.value.institution_id})`,
196				titleIcon: "info",
197				component: u(ae),
198				componentProps: {
199					id: M.value.id,
200					date: e.date
201				},
202				id: "customer-agent-month-list"
203			}).then((e) => {
204				e.open();
205			});
206		}, G = () => {
207			j({ url: "/customer/agent/fetch/type/view/id/" + o.id }).then(({ data: e }) => {
208				if (e.status !== "OK") throw e;
209				M.value = e.data.entry, U();
210			}).catch(h);
211		};
212		return G(), k(() => o.id, () => {
213			G();
214		}), (e, o) => {
215			let s = f("router-link"), c = m("tooltip"), u = m("interact");
216			return p(), A(B, {
217				breadcrumb: H.value.breadcrumb,
218				headline: H.value.headline
219			}, D({
220				sidebar: _(() => [
221					v(t, {
222						title: "Weitere Informationen",
223						"title-icon": "info",
224						"title-type": "light"
225					}, {
226						default: _(() => [T("div", ge, [v(R, {
227							"entry-id": M.value.id,
228							history: M.value,
229							module: "skeleton",
230							namespace: "skeleton"
231						}, null, 8, ["entry-id", "history"])])]),
232						_: 1
233					}),
234					o[21] || (o[21] = S()),
235					v(t, {
236						title: "Verträge",
237						"title-icon": "info",
238						"title-type": "light"
239					}, {
240						default: _(() => [v(ee, { "agent-id": n.id }, null, 8, ["agent-id"])]),
241						_: 1
242					})
243				]),
244				default: _(() => [
245					o[22] || (o[22] = S()),
246					T("div", oe, [
247						T("div", se, [v(t, {
248							title: "Allgemeine Informationen",
249							"title-icon": "info"
250						}, {
251							default: _(() => [
252								v(r, { label: "Handelsvertreter" }, {
253									default: _(() => [g((p(), A(s, { to: {
254										name: "customer-entry-view",
255										params: { id: M.value.institution_id }
256									} }, {
257										default: _(() => [S(w(M.value.institution_name) + " (" + w(M.value.institution_id) + ")\n                        ", 1)]),
258										_: 1
259									}, 8, ["to"])), [[c, `${M.value.institution_name} (${M.value.institution_id})`]])]),
260									_: 1
261								}),
262								o[1] || (o[1] = S()),
263								v(r, { label: "Adresse" }, {
264									default: _(() => [v(V, { address: M.value }, null, 8, ["address"])]),
265									_: 1
266								}),
267								o[2] || (o[2] = S()),
268								v(r, { label: "E-Mail" }, {
269									default: _(() => [T("a", { href: `mailto:${M.value.mail.address}` }, w(M.value.mail.address), 9, ce)]),
270									_: 1
271								}),
272								o[3] || (o[3] = S()),
273								v(r, { label: "Telefon" }, {
274									default: _(() => [v(P, {
275										number: M.value.phone.number,
276										prefix: M.value.phone.prefix,
277										type: M.value.phone.type
278									}, null, 8, [
279										"number",
280										"prefix",
281										"type"
282									])]),
283									_: 1
284								}),
285								o[4] || (o[4] = S()),
286								M.value.fax.number ? (p(), A(r, {
287									key: 0,
288									label: "Fax"
289								}, {
290									default: _(() => [v(P, {
291										number: M.value.fax.number,
292										prefix: M.value.fax.prefix,
293										type: M.value.fax.type
294									}, null, 8, [
295										"number",
296										"prefix",
297										"type"
298									])]),
299									_: 1
300								})) : b("", !0),
301								o[5] || (o[5] = S()),
302								M.value.homepage.url ? (p(), A(r, {
303									key: 1,
304									label: "Webseite"
305								}, {
306									default: _(() => [T("a", {
307										href: M.value.homepage.url,
308										target: "_blank"
309									}, w(M.value.homepage.url), 9, le)]),
310									_: 1
311								})) : b("", !0)
312							]),
313							_: 1
314						})]),
315						o[12] || (o[12] = S()),
316						T("div", ue, [v(t, {
317							title: "Bankdaten",
318							"title-icon": "account_balance"
319						}, {
320							default: _(() => [
321								M.value.creditor_identifier ? (p(), x(C, { key: 0 }, [
322									v(r, { label: "Gläubiger-Id" }, {
323										default: _(() => [S(w(M.value.creditor_identifier), 1)]),
324										_: 1
325									}),
326									o[6] || (o[6] = S()),
327									o[7] || (o[7] = T("hr", null, null, -1))
328								], 64)) : b("", !0),
329								o[8] || (o[8] = S()),
330								v(r, { label: "Name des Kontoinhabers" }, {
331									default: _(() => [S(w(M.value.bank_account.depositor), 1)]),
332									_: 1
333								}),
334								o[9] || (o[9] = S()),
335								v(r, { label: "IBAN" }, {
336									default: _(() => [S(w(M.value.bank_account.iban), 1)]),
337									_: 1
338								}),
339								o[10] || (o[10] = S()),
340								v(r, { label: "Kreditinstitut" }, {
341									default: _(() => [S(w(M.value.bank_account.bank), 1)]),
342									_: 1
343								}),
344								o[11] || (o[11] = S()),
345								v(r, { label: "BIC" }, {
346									default: _(() => [S(w(M.value.bank_account.bic), 1)]),
347									_: 1
348								})
349							]),
350							_: 1
351						})])
352					]),
353					o[23] || (o[23] = S()),
354					v(t, {
355						title: "Rechnungen der letzten 12 Monate",
356						"title-icon": "receipt"
357					}, {
358						default: _(() => [T("table", de, [
359							o[17] || (o[17] = T("colgroup", null, [
360								T("col", { style: { width: "auto" } }),
361								S(),
362								T("col", { style: { width: "40px" } }),
363								S(),
364								T("col", { style: { width: "auto" } }),
365								S(),
366								T("col", { style: { width: "auto" } })
367							], -1)),
368							o[18] || (o[18] = S()),
369							o[19] || (o[19] = T("thead", null, [T("tr", null, [
370								T("th", null, "Monat"),
371								S(),
372								T("th", null, "#"),
373								S(),
374								T("th", null, "Netto"),
375								S(),
376								T("th", null, "Brutto")
377							])], -1)),
378							o[20] || (o[20] = S()),
379							T("tbody", null, [L.value === null ? (p(), x("tr", $, [T("td", fe, [v(I)])])) : L.value.length ? (p(!0), x(C, { key: 2 }, d(L.value, (e) => (p(), x("tr", null, [
380								T("td", null, [g((p(), x("a", null, [S(w(E(l)("m.Y", e.date + "-01")), 1)])), [[u, () => W(e)]])]),
381								o[14] || (o[14] = S()),
382								T("td", null, w(e.count_invoices), 1),
383								o[15] || (o[15] = S()),
384								T("td", me, w(E(a)(e.total_provision_net)), 1),
385								o[16] || (o[16] = S()),
386								T("td", he, w(E(a)(e.total_provision_gross)), 1)
387							]))), 256)) : (p(), x("tr", pe, [...o[13] || (o[13] = [T("td", { colspan: "4" }, "Keine Rechnungen gefunden.", -1)])]))])
388						])]),
389						_: 1
390					}),
391					o[24] || (o[24] = S())
392				]),
393				_: 2
394			}, [z.value ? {
395				name: "action-menu",
396				fn: _(() => [v(i, null, {
397					default: _(() => [T("li", null, [v(s, { to: {
398						name: "customer-agent-edit",
399						params: { id: M.value.id }
400					} }, {
401						default: _(() => [...o[0] || (o[0] = [T("i", {
402							"aria-hidden": "true",
403							class: "material-icons no-select",
404							role: "img"
405						}, "edit", -1), T("span", null, "Bearbeiten", -1)])]),
406						_: 1
407					}, 8, ["to"])])]),
408					_: 1
409				})]),
410				key: "0"
411			} : void 0]), 1032, ["breadcrumb", "headline"]);
412		};
413	}
414});
415//#endregion
416export { _e as default };
417
418//# sourceMappingURL=CustomerAgentView_DWG9WRlT.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.