xyvcard-itsmsys 0.0.2 → 0.0.3

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.
Files changed (51) hide show
  1. package/dist/edit-BeMy_aOl.mjs +548 -0
  2. package/dist/edit-BhXrnHr7.mjs +520 -0
  3. package/dist/edit-BsLAy2-H.mjs +276 -0
  4. package/dist/edit-D7n1rZY2.mjs +240 -0
  5. package/dist/edit-l4-w6Psd.mjs +520 -0
  6. package/dist/index-B02UvpyC.mjs +334 -0
  7. package/dist/index-BRupqW34.mjs +96 -0
  8. package/dist/index-Bw3EuEs9.mjs +345 -0
  9. package/dist/index-COPul57Z.mjs +84 -0
  10. package/dist/index-CRlIL96y.mjs +334 -0
  11. package/dist/index-CUjT3FVb.mjs +351 -0
  12. package/dist/index-Cskg0LGf.mjs +341 -0
  13. package/dist/{index-B-FkgFqA.mjs → index-DOXuGEyW.mjs} +6 -6
  14. package/dist/index.mjs +236 -42
  15. package/dist/info-7Rre3Mm0.mjs +198 -0
  16. package/dist/info-CYKiOMB6.mjs +198 -0
  17. package/dist/info-Dub2j7gN.mjs +198 -0
  18. package/dist/info-O3dKVGmT.mjs +10 -0
  19. package/dist/invoiceEdit-C5dQG8ZJ.mjs +253 -0
  20. package/dist/invoiceEdit-Chsj8_aC.mjs +253 -0
  21. package/dist/invoiceEdit-DuSCNiDz.mjs +253 -0
  22. package/dist/style.css +1 -1
  23. package/dts/src/api/dict.d.ts +6 -1
  24. package/dts/src/api/index.d.ts +5 -1
  25. package/dts/src/api/itsm-sys-org/index.d.ts +1 -0
  26. package/dts/src/api/itsm-sys-org/types.d.ts +13 -5
  27. package/dts/src/api/itsm-sys-user-ext/index.d.ts +14 -0
  28. package/dts/src/api/itsm-sys-user-ext/types.d.ts +76 -0
  29. package/dts/src/constant.d.ts +4 -0
  30. package/dts/src/index.d.ts +2 -0
  31. package/dts/src/lang/itsmsys/zh-cn.d.ts +65 -4
  32. package/dts/src/router/index.d.ts +5 -0
  33. package/dts/src/views/itsmsys/itsm-sys-gov/edit.vue.d.ts +1 -21
  34. package/dts/src/views/itsmsys/itsm-sys-gov/info.vue.d.ts +2 -0
  35. package/dts/src/views/itsmsys/itsm-sys-gov/invoiceEdit.vue.d.ts +31 -0
  36. package/dts/src/views/itsmsys/itsm-sys-out/edit.vue.d.ts +2 -0
  37. package/dts/src/views/itsmsys/itsm-sys-out/index.vue.d.ts +2 -0
  38. package/dts/src/views/itsmsys/itsm-sys-out/info.vue.d.ts +2 -0
  39. package/dts/src/views/itsmsys/itsm-sys-out/invoiceEdit.vue.d.ts +31 -0
  40. package/dts/src/views/itsmsys-user/itsm-sys-user-man/edit.vue.d.ts +22 -0
  41. package/dts/src/views/itsmsys-user/itsm-sys-user-man/index.vue.d.ts +2 -0
  42. package/dts/src/views/itsmsys-user/itsm-sys-user-man/info.vue.d.ts +2 -0
  43. package/dts/src/views/itsmsys-user/itsm-sys-user-ops/edit.vue.d.ts +22 -0
  44. package/dts/src/views/itsmsys-user/itsm-sys-user-ops/index.vue.d.ts +2 -0
  45. package/package.json +2 -2
  46. package/dist/edit-BKMLirl4.mjs +0 -602
  47. package/dist/edit-ccGk5679.mjs +0 -610
  48. package/dist/index-BGwm5W6z.mjs +0 -343
  49. package/dist/index-CSDhKMEP.mjs +0 -332
  50. package/dist/info-CSOdbuvm.mjs +0 -192
  51. package/dist/invoiceEdit-D9zxwIoM.mjs +0 -288
@@ -0,0 +1,334 @@
1
+ import { defineComponent as X, ref as O, resolveComponent as s, resolveDirective as Y, openBlock as d, createElementBlock as c, createElementVNode as R, createVNode as l, withCtx as n, withKeys as C, unref as a, createTextVNode as p, toDisplayString as u, withDirectives as y, createBlock as P, isRef as M, createCommentVNode as I, vShow as S } from "vue";
2
+ import { useTableHooks as Z } from "jmash-core";
3
+ import { useI18n as x } from "vue-i18n";
4
+ import { sysOrgApi as ee } from "./index.mjs";
5
+ import { useRouter as te } from "vue-router";
6
+ import { D as oe } from "./index-COPul57Z.mjs";
7
+ const le = { class: "app-container" }, ne = { class: "search-container" }, ae = { key: 0 }, se = { key: 1 }, re = {
8
+ key: 2,
9
+ class: "distance-left"
10
+ }, ie = ["onClick"], de = ["onClick"], ue = ["onClick"], _e = /* @__PURE__ */ X({
11
+ __name: "index",
12
+ setup(me) {
13
+ const { t: E } = x(), h = te(), r = O({
14
+ orgType: "CLOUD"
15
+ }), {
16
+ tableHooks: i,
17
+ multipleTableRef: T,
18
+ queryFormRef: U,
19
+ listLoading: D,
20
+ tableData: j,
21
+ total: _
22
+ } = Z(E, ee, r);
23
+ let f = O([
24
+ {
25
+ label: "sysOrg.orgName",
26
+ prop: "orgName",
27
+ isColumn: !0
28
+ },
29
+ {
30
+ label: "sysOrg.contactPerson",
31
+ prop: "contactPerson",
32
+ width: "200",
33
+ isColumn: !0
34
+ },
35
+ {
36
+ label: "sysOrg.contactPersonMobile",
37
+ prop: "contactPersonMobile",
38
+ width: "200",
39
+ isColumn: !0,
40
+ slotName: "contactPersonMobile",
41
+ columnType: "slot"
42
+ },
43
+ {
44
+ label: "sysOrg.contactPersonTel",
45
+ prop: "contactPersonTel",
46
+ width: "200",
47
+ isColumn: !0
48
+ },
49
+ {
50
+ label: "sysOrg.status",
51
+ prop: "status",
52
+ width: "150",
53
+ isColumn: !0,
54
+ slotName: "status",
55
+ columnType: "slot"
56
+ },
57
+ {
58
+ label: "common.operate",
59
+ width: "200",
60
+ slotName: "operation",
61
+ columnType: "slot",
62
+ fixed: "right",
63
+ isColumn: !0
64
+ }
65
+ ]);
66
+ function k(o) {
67
+ o.contactPersonMobileEncrypt = !o.contactPersonMobileEncrypt;
68
+ }
69
+ function q() {
70
+ h.push({ path: "/itsmsys/itsm-sys-org/editInfo" });
71
+ }
72
+ function z(o) {
73
+ h.push({
74
+ path: "/itsmsys/itsm-sys-org/editInfo",
75
+ query: { entityKey: o.orgId }
76
+ });
77
+ }
78
+ function K(o) {
79
+ h.push({
80
+ path: "/itsmsys/itsm-sys-org/orgInfo",
81
+ query: { orgId: o.orgId }
82
+ });
83
+ }
84
+ function L(o) {
85
+ i.selectionRows.value = o;
86
+ }
87
+ function Q(o) {
88
+ i.handleSort(o.prop, o.order);
89
+ }
90
+ return i.getList(), (o, t) => {
91
+ const $ = s("el-input"), v = s("el-form-item"), g = s("el-col"), B = s("jmash-select"), w = s("el-button"), V = s("el-row"), A = s("el-form"), F = s("jmash-column-select"), N = s("svg-icon"), H = s("el-switch"), G = s("jmash-table"), J = s("jmash-pagination"), W = s("el-card"), b = Y("hasPerm");
92
+ return d(), c("div", le, [
93
+ R("div", ne, [
94
+ l(A, {
95
+ ref_key: "queryFormRef",
96
+ ref: U,
97
+ model: r.value,
98
+ inline: !0
99
+ }, {
100
+ default: n(() => [
101
+ l(V, null, {
102
+ default: n(() => [
103
+ l(g, { span: 6 }, {
104
+ default: n(() => [
105
+ l(v, {
106
+ label: o.$t("sysOrg.orgName"),
107
+ prop: "orgName"
108
+ }, {
109
+ default: n(() => [
110
+ l($, {
111
+ modelValue: r.value.orgName,
112
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.orgName = e),
113
+ placeholder: o.$t("sysOrg.orgNameRequired"),
114
+ onKeyup: t[1] || (t[1] = C((e) => a(i).handleQuery(), ["enter"])),
115
+ class: "!w-[203px]"
116
+ }, null, 8, ["modelValue", "placeholder"])
117
+ ]),
118
+ _: 1
119
+ }, 8, ["label"])
120
+ ]),
121
+ _: 1
122
+ }),
123
+ l(g, { span: 6 }, {
124
+ default: n(() => [
125
+ l(v, {
126
+ label: o.$t("sysOrg.contactPerson"),
127
+ prop: "contactPerson"
128
+ }, {
129
+ default: n(() => [
130
+ l($, {
131
+ modelValue: r.value.contactPerson,
132
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.contactPerson = e),
133
+ placeholder: o.$t("sysOrg.contactPersonRequired"),
134
+ onKeyup: t[3] || (t[3] = C((e) => a(i).handleQuery(), ["enter"])),
135
+ class: "!w-[203px]"
136
+ }, null, 8, ["modelValue", "placeholder"])
137
+ ]),
138
+ _: 1
139
+ }, 8, ["label"])
140
+ ]),
141
+ _: 1
142
+ }),
143
+ l(g, { span: 6 }, {
144
+ default: n(() => [
145
+ l(v, {
146
+ label: o.$t("sysOrg.status"),
147
+ prop: "status"
148
+ }, {
149
+ default: n(() => [
150
+ l(B, {
151
+ modelValue: r.value.status,
152
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.status = e),
153
+ placeholder: o.$t("sysOrg.statusRequired"),
154
+ data: a(oe).hasStatusDict.values,
155
+ clearable: "",
156
+ onKeyup: t[5] || (t[5] = C((e) => a(i).handleQuery(), ["enter"]))
157
+ }, null, 8, ["modelValue", "placeholder", "data"])
158
+ ]),
159
+ _: 1
160
+ }, 8, ["label"])
161
+ ]),
162
+ _: 1
163
+ }),
164
+ l(g, { span: 6 }, {
165
+ default: n(() => [
166
+ l(v, { class: "search-btn" }, {
167
+ default: n(() => [
168
+ l(w, {
169
+ type: "primary",
170
+ onClick: t[6] || (t[6] = (e) => a(i).handleQuery())
171
+ }, {
172
+ default: n(() => [
173
+ p(u(o.$t("common.search")), 1)
174
+ ]),
175
+ _: 1
176
+ }),
177
+ l(w, {
178
+ onClick: t[7] || (t[7] = (e) => a(i).resetQuery())
179
+ }, {
180
+ default: n(() => [
181
+ p(u(o.$t("common.reset")), 1)
182
+ ]),
183
+ _: 1
184
+ })
185
+ ]),
186
+ _: 1
187
+ })
188
+ ]),
189
+ _: 1
190
+ })
191
+ ]),
192
+ _: 1
193
+ })
194
+ ]),
195
+ _: 1
196
+ }, 8, ["model"]),
197
+ t[14] || (t[14] = R("div", { class: "clear" }, null, -1))
198
+ ]),
199
+ l(W, {
200
+ shadow: "never",
201
+ class: "table-container"
202
+ }, {
203
+ header: n(() => [
204
+ l(V, null, {
205
+ default: n(() => [
206
+ l(g, { span: 17 }, {
207
+ default: n(() => [
208
+ y((d(), P(w, {
209
+ type: "primary",
210
+ onClick: q
211
+ }, {
212
+ default: n(() => [
213
+ p(u(o.$t("common.add")), 1)
214
+ ]),
215
+ _: 1
216
+ })), [
217
+ [b, ["itsmsys:sys_org:add"]]
218
+ ]),
219
+ y((d(), P(w, {
220
+ type: "primary",
221
+ onClick: t[8] || (t[8] = (e) => a(i).deleteRecords())
222
+ }, {
223
+ default: n(() => [
224
+ p(u(o.$t("common.batchDelete")), 1)
225
+ ]),
226
+ _: 1
227
+ })), [
228
+ [b, ["itsmsys:sys_org:delete"]]
229
+ ])
230
+ ]),
231
+ _: 1
232
+ }),
233
+ l(g, {
234
+ span: 7,
235
+ class: "container-float"
236
+ }, {
237
+ default: n(() => [
238
+ l(F, {
239
+ modelValue: a(f),
240
+ "onUpdate:modelValue": t[9] || (t[9] = (e) => M(f) ? f.value = e : f = e),
241
+ "label-name": "itsmsys/itsm-sys-org"
242
+ }, null, 8, ["modelValue"])
243
+ ]),
244
+ _: 1
245
+ })
246
+ ]),
247
+ _: 1
248
+ })
249
+ ]),
250
+ footer: n(() => [
251
+ a(_) > 0 ? (d(), P(J, {
252
+ key: 0,
253
+ total: a(_),
254
+ "onUpdate:total": t[10] || (t[10] = (e) => M(_) ? _.value = e : null),
255
+ "current-page": r.value.curPage,
256
+ "onUpdate:currentPage": t[11] || (t[11] = (e) => r.value.curPage = e),
257
+ "page-size": r.value.pageSize,
258
+ "onUpdate:pageSize": t[12] || (t[12] = (e) => r.value.pageSize = e),
259
+ onPagination: t[13] || (t[13] = (e) => a(i).getList())
260
+ }, null, 8, ["total", "current-page", "page-size"])) : I("", !0)
261
+ ]),
262
+ default: n(() => [
263
+ l(G, {
264
+ ref_key: "multipleTableRef",
265
+ ref: T,
266
+ "row-key": "orgId",
267
+ "list-loading": a(D),
268
+ data: a(j),
269
+ "table-label": a(f),
270
+ onSelectionChange: L,
271
+ onSortChange: Q
272
+ }, {
273
+ contactPersonMobile: n((e) => [
274
+ e.data.row.contactPersonMobileEncrypt ? (d(), c("span", se, u(e.data.row.contactPersonMobile), 1)) : (d(), c("span", ae, u(e.data.row.contactPersonMobileIns), 1)),
275
+ e.data.row.contactPersonMobileIns ? (d(), c("span", re, [
276
+ y(l(N, {
277
+ "icon-class": "close-eye",
278
+ onClick: (m) => k(e.data.row)
279
+ }, null, 8, ["onClick"]), [
280
+ [S, !e.data.row.contactPersonMobileEncrypt]
281
+ ]),
282
+ y(l(N, {
283
+ "icon-class": "eye-open",
284
+ onClick: (m) => k(e.data.row)
285
+ }, null, 8, ["onClick"]), [
286
+ [S, e.data.row.contactPersonMobileEncrypt]
287
+ ])
288
+ ])) : I("", !0)
289
+ ]),
290
+ status: n((e) => [
291
+ l(H, {
292
+ modelValue: e.data.row.status,
293
+ "onUpdate:modelValue": (m) => e.data.row.status = m,
294
+ onChange: (m) => a(i).enableRecord(e.data.row, e.data.row.status)
295
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
296
+ ]),
297
+ operation: n((e) => [
298
+ y((d(), c("span", {
299
+ class: "el-button-color",
300
+ onClick: (m) => z(e.data.row)
301
+ }, [
302
+ p(u(o.$t("common.edit")), 1)
303
+ ], 8, ie)), [
304
+ [b, ["itsmsys:sys_org:update"]]
305
+ ]),
306
+ y((d(), c("span", {
307
+ class: "el-button-color dropdown-left",
308
+ onClick: (m) => a(i).deleteRecord(e.data.row)
309
+ }, [
310
+ p(u(o.$t("common.delete")), 1)
311
+ ], 8, de)), [
312
+ [b, ["itsmsys:sys_org:delete"]]
313
+ ]),
314
+ y((d(), c("span", {
315
+ class: "el-button-color dropdown-left",
316
+ onClick: (m) => K(e.data.row)
317
+ }, [
318
+ p(u(o.$t("common.view")), 1)
319
+ ], 8, ue)), [
320
+ [b, ["itsmsys:sys_org:view"]]
321
+ ])
322
+ ]),
323
+ _: 1
324
+ }, 8, ["list-loading", "data", "table-label"])
325
+ ]),
326
+ _: 1
327
+ })
328
+ ]);
329
+ };
330
+ }
331
+ });
332
+ export {
333
+ _e as default
334
+ };
@@ -0,0 +1,96 @@
1
+ import { defineComponent as L, watch as M, onMounted as _, openBlock as f, createElementBlock as k } from "vue";
2
+ import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
3
+ async function y() {
4
+ return new Promise((r, s) => {
5
+ const o = document.createElement("script");
6
+ o.type = "text/javascript", o.src = "https://map.qq.com/api/gljs?v=1.exp&key=OBWBZ-L62CW-2B7RQ-YKOOO-P4LR3-4PFXQ&callback=initMap&libraries=service", o.onload = () => {
7
+ r(!0);
8
+ }, o.onerror = (c) => {
9
+ s(c);
10
+ }, document.head.appendChild(o);
11
+ });
12
+ }
13
+ const h = {
14
+ id: "container",
15
+ class: "container"
16
+ }, T = /* @__PURE__ */ L({
17
+ __name: "index",
18
+ props: {
19
+ address: {
20
+ type: String,
21
+ default: ""
22
+ }
23
+ },
24
+ emits: ["getAddress", "getLatLng"],
25
+ setup(r, { emit: s }) {
26
+ const o = r, c = s;
27
+ let l, a;
28
+ M(
29
+ () => o.address,
30
+ (t) => {
31
+ u(t);
32
+ }
33
+ );
34
+ async function p() {
35
+ const t = new TMap.LatLng(37.870451, 112.549656), n = {
36
+ zoom: 16,
37
+ center: t
38
+ };
39
+ l = new TMap.Map(document.getElementById("container"), n), i(t);
40
+ }
41
+ function i(t) {
42
+ console.log("center.....", t), a = new TMap.MultiMarker({
43
+ map: l,
44
+ styles: {
45
+ // 点标记样式
46
+ marker: new TMap.MarkerStyle({
47
+ width: 20,
48
+ // 样式宽
49
+ height: 30,
50
+ // 样式高
51
+ anchor: { x: 10, y: 30 }
52
+ // 描点位置
53
+ })
54
+ },
55
+ geometries: [
56
+ // 点标记数据数组
57
+ {
58
+ // 标记位置(纬度,经度,高度)
59
+ position: t,
60
+ styleId: "marker"
61
+ }
62
+ ]
63
+ }), d();
64
+ }
65
+ function d() {
66
+ l.on("click", (t) => {
67
+ console.log("evt.....", t), a.add({
68
+ position: t.latLng,
69
+ styleId: "marker"
70
+ }), new TMap.service.Geocoder().getAddress({ location: new TMap.LatLng(t.latLng.lat, t.latLng.lng) }).then((e) => {
71
+ console.log(e), e.status === 0 && (c("getLatLng", [t.latLng.lat, t.latLng.lng]), c("getAddress", e.result.address));
72
+ });
73
+ });
74
+ }
75
+ function g() {
76
+ a && (console.log("......", a), a.setMap(null), a = null);
77
+ }
78
+ function u(t) {
79
+ const n = new TMap.service.Geocoder();
80
+ console.log(n, t), n.getLocation({ address: t }).then((e) => {
81
+ console.log(e), e.status === 0 && (g(), i(
82
+ new TMap.LatLng(e.result.location.lat, e.result.location.lng)
83
+ ), m(e.result.location.lat, e.result.location.lng), c("getLatLng", [e.result.location.lat, e.result.location.lng]));
84
+ });
85
+ }
86
+ function m(t, n) {
87
+ l.setCenter(new TMap.LatLng(t, n));
88
+ }
89
+ return _(async () => {
90
+ await y(), await p();
91
+ }), (t, n) => (f(), k("div", h));
92
+ }
93
+ }), O = /* @__PURE__ */ w(T, [["__scopeId", "data-v-a3650af5"]]);
94
+ export {
95
+ O as _
96
+ };