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
@@ -1,610 +0,0 @@
1
- import { defineComponent as O, mergeModels as I, ref as M, reactive as T, useModel as j, resolveComponent as h, openBlock as E, createBlock as K, withCtx as t, createElementVNode as D, createVNode as e, createTextVNode as U, toDisplayString as N, unref as r } from "vue";
2
- import { ElMessage as L } from "element-plus";
3
- import { useI18n as F } from "vue-i18n";
4
- import { useUserStore as c, clearEmpty as y, request as f } from "jmash-core";
5
- import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
- class R {
7
- getKey(n) {
8
- return {
9
- orgId: n.orgId
10
- };
11
- }
12
- // 查询列表信息厅局单位信息
13
- findList(n) {
14
- const d = c().user.tenant;
15
- return n && (n.hasStatus = n.status != null, n.hasOrgType = n.orgType != null), y(n), f({
16
- url: "/v1/itsmsys/sys_org/list/" + d,
17
- method: "get",
18
- params: n
19
- });
20
- }
21
- // 查询厅局单位信息
22
- findById(n) {
23
- const d = c().user.tenant;
24
- return y(n), f({
25
- url: "/v1/itsmsys/sys_org/id/" + d + "/" + n.orgId,
26
- method: "get"
27
- });
28
- }
29
- // 创建实体厅局单位信息
30
- create(n) {
31
- return n.tenant = c().user.tenant, y(n), f({
32
- url: "/v1/itsmsys/sys_org",
33
- method: "post",
34
- data: n
35
- });
36
- }
37
- // 修改实体厅局单位信息
38
- update(n) {
39
- return n.tenant = c().user.tenant, y(n), f({
40
- url: "/v1/itsmsys/sys_org",
41
- method: "patch",
42
- data: n
43
- });
44
- }
45
- // 上移下移
46
- move(n, d) {
47
- const p = { ...n };
48
- return p.tenant = c().user.tenant, p.up = d, y(p), f({
49
- url: "/v1/itsmsys/sys_org/move",
50
- method: "put",
51
- data: p
52
- });
53
- }
54
- // 启用/禁用
55
- enable(n, d) {
56
- const p = { ...n };
57
- return p.tenant = c().user.tenant, p.enable = d, y(p), f({
58
- url: "/v1/itsmsys/sys_org/enable",
59
- method: "put",
60
- data: p
61
- });
62
- }
63
- // 删除厅局单位信息
64
- delete(n) {
65
- return n.tenant = c().user.tenant, y(n), f({
66
- url: "/v1/itsmsys/sys_org/id",
67
- method: "delete",
68
- params: n
69
- });
70
- }
71
- // 批量删除厅局单位信息
72
- batchDelete(n) {
73
- const d = n.map((l) => l.orgId), p = {
74
- tenant: c().user.tenant,
75
- orgId: d
76
- };
77
- return y(p), f({
78
- url: "/v1/itsmsys/sys_org/batch",
79
- method: "put",
80
- data: p
81
- });
82
- }
83
- }
84
- const b = new R(), z = { class: "dialog-footer" }, H = /* @__PURE__ */ O({
85
- __name: "edit",
86
- props: /* @__PURE__ */ I({
87
- entityKey: {
88
- type: Object,
89
- default: () => {
90
- }
91
- }
92
- }, {
93
- modelValue: { type: Boolean },
94
- modelModifiers: {}
95
- }),
96
- emits: /* @__PURE__ */ I(["refresh"], ["update:modelValue"]),
97
- setup(v, { emit: n }) {
98
- const { t: d } = F(), p = M();
99
- let l = T({
100
- requestId: Math.random() * 10 + "",
101
- updateMask: ""
102
- });
103
- const _ = T({
104
- orgId: [
105
- {
106
- required: !0,
107
- message: d("sysGov.orgId"),
108
- trigger: "change"
109
- }
110
- ],
111
- orgName: [
112
- {
113
- required: !0,
114
- message: d("sysGov.orgName"),
115
- trigger: "change"
116
- }
117
- ],
118
- shortName: [
119
- {
120
- required: !0,
121
- message: d("sysGov.shortName"),
122
- trigger: "change"
123
- }
124
- ],
125
- orgType: [
126
- {
127
- required: !0,
128
- message: d("sysGov.orgType"),
129
- trigger: "change"
130
- }
131
- ],
132
- address: [
133
- {
134
- required: !0,
135
- message: d("sysGov.address"),
136
- trigger: "change"
137
- }
138
- ],
139
- geoLongitude: [
140
- {
141
- required: !0,
142
- message: d("sysGov.geoLongitude"),
143
- trigger: "change"
144
- }
145
- ],
146
- geoLatitude: [
147
- {
148
- required: !0,
149
- message: d("sysGov.geoLatitude"),
150
- trigger: "change"
151
- }
152
- ],
153
- contactPerson: [
154
- {
155
- required: !0,
156
- message: d("sysGov.contactPerson"),
157
- trigger: "change"
158
- }
159
- ],
160
- contactPersonPosi: [
161
- {
162
- required: !0,
163
- message: d("sysGov.contactPersonPosi"),
164
- trigger: "change"
165
- }
166
- ],
167
- contactPersonMobile: [
168
- {
169
- required: !0,
170
- message: d("sysGov.contactPersonMobile"),
171
- trigger: "change"
172
- }
173
- ],
174
- contactPersonTel: [
175
- {
176
- required: !0,
177
- message: d("sysGov.contactPersonTel"),
178
- trigger: "change"
179
- }
180
- ],
181
- status: [
182
- {
183
- required: !0,
184
- message: d("sysGov.status"),
185
- trigger: "change"
186
- }
187
- ],
188
- parentId: [
189
- {
190
- required: !0,
191
- message: d("sysGov.parentId"),
192
- trigger: "change"
193
- }
194
- ]
195
- }), g = j(v, "modelValue"), V = v, G = n, B = Object.keys(V.entityKey), P = M(B.length >= 1);
196
- P.value && b.findById(V.entityKey).then(({ data: o }) => {
197
- Object.assign(l, o);
198
- });
199
- const k = async () => {
200
- var o;
201
- await ((o = p.value) == null ? void 0 : o.validate((a) => {
202
- a && (P.value ? b.update(l).then((u) => {
203
- console.log(u), u.status === 200 && (L({
204
- message: d("common.submitSuccess"),
205
- type: "success"
206
- }), g.value && (g.value = !1), G("refresh", u.status === 200));
207
- }) : b.create(l).then((u) => {
208
- console.log(u), u.status === 200 && (L({
209
- message: d("common.submitSuccess"),
210
- type: "success"
211
- }), g.value && (g.value = !1), G("refresh", u.status === 200));
212
- }));
213
- }));
214
- };
215
- function w() {
216
- g.value && (g.value = !1);
217
- }
218
- return (o, a) => {
219
- const u = h("el-input"), m = h("el-form-item"), i = h("el-col"), S = h("el-row"), q = h("el-form"), $ = h("el-button"), C = h("el-dialog");
220
- return E(), K(C, {
221
- modelValue: g.value,
222
- "onUpdate:modelValue": a[16] || (a[16] = (s) => g.value = s),
223
- onClose: w
224
- }, {
225
- footer: t(() => [
226
- D("div", z, [
227
- e($, { onClick: w }, {
228
- default: t(() => [
229
- U(N(o.$t("common.cancel")), 1)
230
- ]),
231
- _: 1
232
- }),
233
- e($, {
234
- type: "primary",
235
- onClick: k
236
- }, {
237
- default: t(() => [
238
- U(N(o.$t("common.confirm")), 1)
239
- ]),
240
- _: 1
241
- })
242
- ])
243
- ]),
244
- default: t(() => [
245
- e(q, {
246
- ref_key: "sysGovFormRef",
247
- ref: p,
248
- model: r(l),
249
- "label-width": "120px",
250
- rules: _
251
- }, {
252
- default: t(() => [
253
- e(S, null, {
254
- default: t(() => [
255
- e(i, { span: 12 }, {
256
- default: t(() => [
257
- e(m, {
258
- label: o.$t("sysGov.orgId"),
259
- prop: "orgId"
260
- }, {
261
- default: t(() => [
262
- e(u, {
263
- modelValue: r(l).orgId,
264
- "onUpdate:modelValue": a[0] || (a[0] = (s) => r(l).orgId = s),
265
- placeholder: o.$t("sysGov.orgId"),
266
- maxlength: "8",
267
- "show-word-limit": "",
268
- clearable: ""
269
- }, null, 8, ["modelValue", "placeholder"])
270
- ]),
271
- _: 1
272
- }, 8, ["label"])
273
- ]),
274
- _: 1
275
- }),
276
- e(i, { span: 12 }, {
277
- default: t(() => [
278
- e(m, {
279
- label: o.$t("sysGov.orgName"),
280
- prop: "orgName"
281
- }, {
282
- default: t(() => [
283
- e(u, {
284
- modelValue: r(l).orgName,
285
- "onUpdate:modelValue": a[1] || (a[1] = (s) => r(l).orgName = s),
286
- placeholder: o.$t("sysGov.orgName"),
287
- maxlength: "50",
288
- "show-word-limit": "",
289
- clearable: ""
290
- }, null, 8, ["modelValue", "placeholder"])
291
- ]),
292
- _: 1
293
- }, 8, ["label"])
294
- ]),
295
- _: 1
296
- }),
297
- e(i, { span: 12 }, {
298
- default: t(() => [
299
- e(m, {
300
- label: o.$t("sysGov.shortName"),
301
- prop: "shortName"
302
- }, {
303
- default: t(() => [
304
- e(u, {
305
- modelValue: r(l).shortName,
306
- "onUpdate:modelValue": a[2] || (a[2] = (s) => r(l).shortName = s),
307
- placeholder: o.$t("sysGov.shortName"),
308
- maxlength: "30",
309
- "show-word-limit": "",
310
- clearable: ""
311
- }, null, 8, ["modelValue", "placeholder"])
312
- ]),
313
- _: 1
314
- }, 8, ["label"])
315
- ]),
316
- _: 1
317
- }),
318
- e(i, { span: 12 }, {
319
- default: t(() => [
320
- e(m, {
321
- label: o.$t("sysGov.orgType"),
322
- prop: "orgType"
323
- }, {
324
- default: t(() => [
325
- e(u, {
326
- modelValue: r(l).orgType,
327
- "onUpdate:modelValue": a[3] || (a[3] = (s) => r(l).orgType = s),
328
- placeholder: o.$t("sysGov.orgType"),
329
- maxlength: "15",
330
- "show-word-limit": "",
331
- clearable: ""
332
- }, null, 8, ["modelValue", "placeholder"])
333
- ]),
334
- _: 1
335
- }, 8, ["label"])
336
- ]),
337
- _: 1
338
- }),
339
- e(i, { span: 12 }, {
340
- default: t(() => [
341
- e(m, {
342
- label: o.$t("sysGov.address"),
343
- prop: "address"
344
- }, {
345
- default: t(() => [
346
- e(u, {
347
- modelValue: r(l).address,
348
- "onUpdate:modelValue": a[4] || (a[4] = (s) => r(l).address = s),
349
- placeholder: o.$t("sysGov.address"),
350
- maxlength: "127",
351
- "show-word-limit": "",
352
- clearable: ""
353
- }, null, 8, ["modelValue", "placeholder"])
354
- ]),
355
- _: 1
356
- }, 8, ["label"])
357
- ]),
358
- _: 1
359
- }),
360
- e(i, { span: 12 }, {
361
- default: t(() => [
362
- e(m, {
363
- label: o.$t("sysGov.geoLongitude"),
364
- prop: "geoLongitude"
365
- }, {
366
- default: t(() => [
367
- e(u, {
368
- modelValue: r(l).geoLongitude,
369
- "onUpdate:modelValue": a[5] || (a[5] = (s) => r(l).geoLongitude = s),
370
- placeholder: o.$t("sysGov.geoLongitude"),
371
- maxlength: "30",
372
- "show-word-limit": "",
373
- clearable: ""
374
- }, null, 8, ["modelValue", "placeholder"])
375
- ]),
376
- _: 1
377
- }, 8, ["label"])
378
- ]),
379
- _: 1
380
- }),
381
- e(i, { span: 12 }, {
382
- default: t(() => [
383
- e(m, {
384
- label: o.$t("sysGov.geoLatitude"),
385
- prop: "geoLatitude"
386
- }, {
387
- default: t(() => [
388
- e(u, {
389
- modelValue: r(l).geoLatitude,
390
- "onUpdate:modelValue": a[6] || (a[6] = (s) => r(l).geoLatitude = s),
391
- placeholder: o.$t("sysGov.geoLatitude"),
392
- maxlength: "30",
393
- "show-word-limit": "",
394
- clearable: ""
395
- }, null, 8, ["modelValue", "placeholder"])
396
- ]),
397
- _: 1
398
- }, 8, ["label"])
399
- ]),
400
- _: 1
401
- }),
402
- e(i, { span: 12 }, {
403
- default: t(() => [
404
- e(m, {
405
- label: o.$t("sysGov.contactPerson"),
406
- prop: "contactPerson"
407
- }, {
408
- default: t(() => [
409
- e(u, {
410
- modelValue: r(l).contactPerson,
411
- "onUpdate:modelValue": a[7] || (a[7] = (s) => r(l).contactPerson = s),
412
- placeholder: o.$t("sysGov.contactPerson"),
413
- maxlength: "30",
414
- "show-word-limit": "",
415
- clearable: ""
416
- }, null, 8, ["modelValue", "placeholder"])
417
- ]),
418
- _: 1
419
- }, 8, ["label"])
420
- ]),
421
- _: 1
422
- }),
423
- e(i, { span: 12 }, {
424
- default: t(() => [
425
- e(m, {
426
- label: o.$t("sysGov.contactPersonPosi"),
427
- prop: "contactPersonPosi"
428
- }, {
429
- default: t(() => [
430
- e(u, {
431
- modelValue: r(l).contactPersonPosi,
432
- "onUpdate:modelValue": a[8] || (a[8] = (s) => r(l).contactPersonPosi = s),
433
- placeholder: o.$t("sysGov.contactPersonPosi"),
434
- maxlength: "50",
435
- "show-word-limit": "",
436
- clearable: ""
437
- }, null, 8, ["modelValue", "placeholder"])
438
- ]),
439
- _: 1
440
- }, 8, ["label"])
441
- ]),
442
- _: 1
443
- }),
444
- e(i, { span: 12 }, {
445
- default: t(() => [
446
- e(m, {
447
- label: o.$t("sysGov.contactPersonMobile"),
448
- prop: "contactPersonMobile"
449
- }, {
450
- default: t(() => [
451
- e(u, {
452
- modelValue: r(l).contactPersonMobile,
453
- "onUpdate:modelValue": a[9] || (a[9] = (s) => r(l).contactPersonMobile = s),
454
- placeholder: o.$t("sysGov.contactPersonMobile"),
455
- maxlength: "127",
456
- "show-word-limit": "",
457
- clearable: ""
458
- }, null, 8, ["modelValue", "placeholder"])
459
- ]),
460
- _: 1
461
- }, 8, ["label"])
462
- ]),
463
- _: 1
464
- }),
465
- e(i, { span: 12 }, {
466
- default: t(() => [
467
- e(m, {
468
- label: o.$t("sysGov.contactPersonMobileIns"),
469
- prop: "contactPersonMobileIns"
470
- }, {
471
- default: t(() => [
472
- e(u, {
473
- modelValue: r(l).contactPersonMobileIns,
474
- "onUpdate:modelValue": a[10] || (a[10] = (s) => r(l).contactPersonMobileIns = s),
475
- placeholder: o.$t("sysGov.contactPersonMobileIns"),
476
- maxlength: "15",
477
- "show-word-limit": "",
478
- clearable: ""
479
- }, null, 8, ["modelValue", "placeholder"])
480
- ]),
481
- _: 1
482
- }, 8, ["label"])
483
- ]),
484
- _: 1
485
- }),
486
- e(i, { span: 12 }, {
487
- default: t(() => [
488
- e(m, {
489
- label: o.$t("sysGov.contactPersonTel"),
490
- prop: "contactPersonTel"
491
- }, {
492
- default: t(() => [
493
- e(u, {
494
- modelValue: r(l).contactPersonTel,
495
- "onUpdate:modelValue": a[11] || (a[11] = (s) => r(l).contactPersonTel = s),
496
- placeholder: o.$t("sysGov.contactPersonTel"),
497
- maxlength: "15",
498
- "show-word-limit": "",
499
- clearable: ""
500
- }, null, 8, ["modelValue", "placeholder"])
501
- ]),
502
- _: 1
503
- }, 8, ["label"])
504
- ]),
505
- _: 1
506
- }),
507
- e(i, { span: 12 }, {
508
- default: t(() => [
509
- e(m, {
510
- label: o.$t("sysGov.status"),
511
- prop: "status"
512
- }, {
513
- default: t(() => [
514
- e(u, {
515
- modelValue: r(l).status,
516
- "onUpdate:modelValue": a[12] || (a[12] = (s) => r(l).status = s),
517
- placeholder: o.$t("sysGov.status"),
518
- maxlength: "1",
519
- "show-word-limit": "",
520
- clearable: ""
521
- }, null, 8, ["modelValue", "placeholder"])
522
- ]),
523
- _: 1
524
- }, 8, ["label"])
525
- ]),
526
- _: 1
527
- }),
528
- e(i, { span: 12 }, {
529
- default: t(() => [
530
- e(m, {
531
- label: o.$t("sysGov.parentId"),
532
- prop: "parentId"
533
- }, {
534
- default: t(() => [
535
- e(u, {
536
- modelValue: r(l).parentId,
537
- "onUpdate:modelValue": a[13] || (a[13] = (s) => r(l).parentId = s),
538
- placeholder: o.$t("sysGov.parentId"),
539
- maxlength: "8",
540
- "show-word-limit": "",
541
- clearable: ""
542
- }, null, 8, ["modelValue", "placeholder"])
543
- ]),
544
- _: 1
545
- }, 8, ["label"])
546
- ]),
547
- _: 1
548
- }),
549
- e(i, { span: 12 }, {
550
- default: t(() => [
551
- e(m, {
552
- label: o.$t("sysGov.depth"),
553
- prop: "depth"
554
- }, {
555
- default: t(() => [
556
- e(u, {
557
- modelValue: r(l).depth,
558
- "onUpdate:modelValue": a[14] || (a[14] = (s) => r(l).depth = s),
559
- placeholder: o.$t("sysGov.depth"),
560
- maxlength: "5",
561
- "show-word-limit": "",
562
- clearable: ""
563
- }, null, 8, ["modelValue", "placeholder"])
564
- ]),
565
- _: 1
566
- }, 8, ["label"])
567
- ]),
568
- _: 1
569
- }),
570
- e(i, { span: 12 }, {
571
- default: t(() => [
572
- e(m, {
573
- label: o.$t("sysGov.orderBy"),
574
- prop: "orderBy"
575
- }, {
576
- default: t(() => [
577
- e(u, {
578
- modelValue: r(l).orderBy,
579
- "onUpdate:modelValue": a[15] || (a[15] = (s) => r(l).orderBy = s),
580
- placeholder: o.$t("sysGov.orderBy"),
581
- maxlength: "5",
582
- "show-word-limit": "",
583
- clearable: ""
584
- }, null, 8, ["modelValue", "placeholder"])
585
- ]),
586
- _: 1
587
- }, 8, ["label"])
588
- ]),
589
- _: 1
590
- })
591
- ]),
592
- _: 1
593
- })
594
- ]),
595
- _: 1
596
- }, 8, ["model", "rules"])
597
- ]),
598
- _: 1
599
- }, 8, ["modelValue"]);
600
- };
601
- }
602
- }), J = /* @__PURE__ */ A(H, [["__scopeId", "data-v-a7fd2233"]]), x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
603
- __proto__: null,
604
- default: J
605
- }, Symbol.toStringTag, { value: "Module" }));
606
- export {
607
- J as a,
608
- x as e,
609
- b as s
610
- };