xyvcard-itsmsys 0.0.3 → 0.0.4

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 (70) hide show
  1. package/dist/common-B2PCBCJ2.mjs +13 -0
  2. package/dist/edit-BhRXuYku.mjs +342 -0
  3. package/dist/edit-CIm8Y0Be.mjs +4 -0
  4. package/dist/edit-CWVYUzgf.mjs +369 -0
  5. package/dist/edit-CkaU_6vk.mjs +342 -0
  6. package/dist/edit-D82hX9if.mjs +4 -0
  7. package/dist/edit-DPM0jGQT.mjs +4 -0
  8. package/dist/edit-DZJU5ZPt.mjs +4 -0
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs +437 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs +439 -0
  11. package/dist/{invoiceEdit-Chsj8_aC.mjs → edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs} +58 -63
  12. package/dist/edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs +439 -0
  13. package/dist/index-B_cot8iN.mjs +439 -0
  14. package/dist/index-BkHGzL0R.mjs +358 -0
  15. package/dist/index-C6KvLUoL.mjs +4 -0
  16. package/dist/index-CEUyLrKg.mjs +404 -0
  17. package/dist/index-ChTssr8-.mjs +123 -0
  18. package/dist/{index-B02UvpyC.mjs → index-ClU157bA.mjs} +103 -113
  19. package/dist/{index-Cskg0LGf.mjs → index-CogdeN09.mjs} +101 -111
  20. package/dist/{index-CUjT3FVb.mjs → index-i7X9N_rj.mjs} +107 -117
  21. package/dist/index.mjs +2765 -126
  22. package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +180 -0
  23. package/dist/info-70H0sycC.mjs +187 -0
  24. package/dist/info-BWgVN2mJ.mjs +176 -0
  25. package/dist/info-CE-ZnFj5.mjs +179 -0
  26. package/dist/info-Kf11Ye-N.mjs +187 -0
  27. package/dist/info-MYJGcyMX.mjs +179 -0
  28. package/dist/info-Z5LuCRmr.mjs +187 -0
  29. package/dist/style.css +1 -1
  30. package/dts/src/api/dict.d.ts +4 -1
  31. package/dts/src/api/index.d.ts +4 -1
  32. package/dts/src/api/itsm-sys-org/index.d.ts +1 -0
  33. package/dts/src/api/itsm-sys-org/types.d.ts +2 -2
  34. package/dts/src/api/itsm-sys-user-ext/types.d.ts +18 -3
  35. package/dts/src/constant.d.ts +7 -0
  36. package/dts/src/lang/itsmsys/zh-cn.d.ts +27 -11
  37. package/dts/src/router/index.d.ts +6 -4
  38. package/dts/src/utils/common.d.ts +1 -0
  39. package/dts/src/utils/momentPlugin.d.ts +5 -0
  40. package/dts/src/views/itsmsys/{itsm-sys-gov/invoiceEdit.vue.d.ts → itsm-sys-org-invoice/edit.vue.d.ts} +3 -12
  41. package/dts/src/views/itsmsys/itsm-sys-user-ops/index.vue.d.ts +2 -0
  42. package/dts/src/views/itsmsys/itsm-sys-user-ops/info.vue.d.ts +2 -0
  43. package/dts/src/views/itsmsys/{itsm-sys-org/invoiceEdit.vue.d.ts → itsm-sys-user-out/edit.vue.d.ts} +6 -15
  44. package/dts/src/views/itsmsys/itsm-sys-user-out/index.vue.d.ts +2 -0
  45. package/dts/src/views/itsmsys/itsm-sys-user-out/info.vue.d.ts +2 -0
  46. package/package.json +3 -3
  47. package/dist/edit-BeMy_aOl.mjs +0 -548
  48. package/dist/edit-BhXrnHr7.mjs +0 -520
  49. package/dist/edit-BsLAy2-H.mjs +0 -276
  50. package/dist/edit-D7n1rZY2.mjs +0 -240
  51. package/dist/edit-l4-w6Psd.mjs +0 -520
  52. package/dist/index-Bw3EuEs9.mjs +0 -345
  53. package/dist/index-COPul57Z.mjs +0 -84
  54. package/dist/index-CRlIL96y.mjs +0 -334
  55. package/dist/info-7Rre3Mm0.mjs +0 -198
  56. package/dist/info-CYKiOMB6.mjs +0 -198
  57. package/dist/info-Dub2j7gN.mjs +0 -198
  58. package/dist/info-O3dKVGmT.mjs +0 -10
  59. package/dist/invoiceEdit-C5dQG8ZJ.mjs +0 -253
  60. package/dist/invoiceEdit-DuSCNiDz.mjs +0 -253
  61. package/dts/src/api/itsm-sys-gov/index.d.ts +0 -15
  62. package/dts/src/api/itsm-sys-gov/types.d.ts +0 -87
  63. package/dts/src/api/itsm-sys-gov-invoice/index.d.ts +0 -13
  64. package/dts/src/api/itsm-sys-gov-invoice/types.d.ts +0 -48
  65. package/dts/src/views/itsmsys/itsm-sys-out/invoiceEdit.vue.d.ts +0 -31
  66. /package/dts/src/views/{itsmsys-user/itsm-sys-user-man → itsmsys/itsm-sys-org-invoice}/index.vue.d.ts +0 -0
  67. /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-man/edit.vue.d.ts +0 -0
  68. /package/dts/src/views/{itsmsys-user/itsm-sys-user-ops → itsmsys/itsm-sys-user-man}/index.vue.d.ts +0 -0
  69. /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-man/info.vue.d.ts +0 -0
  70. /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-ops/edit.vue.d.ts +0 -0
@@ -1,520 +0,0 @@
1
- import { _ as re } from "./index-BRupqW34.mjs";
2
- import { defineComponent as ie, ref as p, reactive as h, resolveComponent as c, resolveDirective as ue, openBlock as b, createElementBlock as T, createVNode as o, withCtx as t, unref as s, createTextVNode as P, toDisplayString as _, createBlock as R, withDirectives as q, isRef as de, createElementVNode as ce, createCommentVNode as D } from "vue";
3
- import { ElMessage as k, ElMessageBox as me } from "element-plus";
4
- import { useI18n as pe } from "vue-i18n";
5
- import { useRoute as ge } from "vue-router";
6
- import { sysOrgApi as C } from "./index.mjs";
7
- import { useTableHooks as fe } from "jmash-core";
8
- import { s as L } from "./index-DOXuGEyW.mjs";
9
- import be from "./invoiceEdit-Chsj8_aC.mjs";
10
- import { D as ye } from "./index-COPul57Z.mjs";
11
- const ve = { class: "app-container" }, _e = ["onClick"], he = ["onClick"], $e = /* @__PURE__ */ ie({
12
- __name: "edit",
13
- setup(Pe) {
14
- const { t: r } = pe(), V = ge(), j = p({}), { tableHooks: N, multipleTableRef: B, listLoading: x } = fe(
15
- r,
16
- L,
17
- j
18
- ), $ = p(), I = p([]), g = p("first"), f = p("");
19
- f.value = V.query.entityKey;
20
- function A(e) {
21
- g.value = e.props.name, g.value === "second" ? v() : a.requestId = Math.random() * 10 + "";
22
- }
23
- let a = h({
24
- requestId: Math.random() * 10 + "",
25
- updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile",
26
- orgType: "OUTSOURCE"
27
- });
28
- const F = (e, l, i) => {
29
- (l === void 0 || l === "") && i(new Error(r("sysOut.contactPersonTelRequired"))), /^0\d{2,3}-\d{7,8}$/.test(l) || i(new Error(r("sysOut.contactPersonTelRequireds"))), i();
30
- }, K = (e, l, i) => {
31
- l === void 0 && i(new Error(r("sysOut.contactPersonMobileRequired"))), /^1[3-9]\d{9}$/.test(l) || i(new Error(r("sysOut.contactPersonMobileRequireds"))), i();
32
- }, G = h({
33
- orgName: [
34
- {
35
- required: !0,
36
- message: r("sysOut.orgNameRequired"),
37
- trigger: "blur"
38
- }
39
- ],
40
- address: [
41
- {
42
- required: !0,
43
- message: r("sysOut.addressRequired"),
44
- trigger: "blur"
45
- }
46
- ],
47
- contactPerson: [
48
- {
49
- required: !0,
50
- message: r("sysOut.contactPersonRequired"),
51
- trigger: "blur"
52
- }
53
- ],
54
- contactPersonPosi: [
55
- {
56
- required: !0,
57
- message: r("sysOut.contactPersonPosiRequired"),
58
- trigger: "blur"
59
- }
60
- ],
61
- contactPersonMobile: [
62
- {
63
- required: !0,
64
- trigger: "blur",
65
- validator: K
66
- }
67
- ],
68
- contactPersonTel: [
69
- {
70
- required: !0,
71
- trigger: "blur",
72
- validator: F
73
- }
74
- ]
75
- });
76
- function H(e) {
77
- a.geoLatitude = e[0], a.geoLongitude = e[1];
78
- }
79
- function W(e) {
80
- a.address = e;
81
- }
82
- V.query.entityKey && C.findById({ orgId: V.query.entityKey }).then(({ data: e }) => {
83
- Object.assign(a, e);
84
- });
85
- const z = async () => {
86
- var e;
87
- await ((e = $.value) == null ? void 0 : e.validate((l) => {
88
- var i, d;
89
- l && (a.geoLongitude = (i = a.geoLongitude) == null ? void 0 : i.toString(), a.geoLatitude = (d = a.geoLatitude) == null ? void 0 : d.toString(), a.orgId = f.value, a.orgId ? C.update(a).then((u) => {
90
- u.status === 200 && (k({
91
- message: r("common.submitSuccess"),
92
- type: "success"
93
- }), g.value = "second", v());
94
- }) : C.create(a).then((u) => {
95
- u.status === 200 && (k({
96
- message: r("common.submitSuccess"),
97
- type: "success"
98
- }), f.value = u.data.orgId, g.value = "second", v());
99
- }));
100
- }));
101
- };
102
- let y = p([
103
- {
104
- label: "sysOrgInvoice.invoiceType",
105
- prop: "invoiceType",
106
- width: "150",
107
- isColumn: !0,
108
- slotName: "invoiceType",
109
- columnType: "slot"
110
- },
111
- {
112
- label: "sysOrgInvoice.invoiceTitle",
113
- prop: "invoiceTitle",
114
- width: "150",
115
- isColumn: !0
116
- },
117
- {
118
- label: "sysOrgInvoice.taxNumber",
119
- prop: "taxNumber",
120
- isColumn: !0
121
- },
122
- {
123
- label: "sysOrgInvoice.bankName",
124
- prop: "bankName",
125
- isColumn: !0
126
- },
127
- {
128
- label: "sysOrgInvoice.backNumber",
129
- prop: "backNumber",
130
- isColumn: !0
131
- },
132
- {
133
- label: "common.operate",
134
- width: "200",
135
- slotName: "operation",
136
- columnType: "slot",
137
- fixed: "right",
138
- isColumn: !0
139
- }
140
- ]);
141
- const m = p({
142
- title: r("common.edit"),
143
- visible: !1
144
- });
145
- let O = h({});
146
- function J() {
147
- O = h({}), m.value.title = r("common.add"), m.value.visible = !0;
148
- }
149
- function Q(e) {
150
- O.invoiceId = e.invoiceId, m.value.title = r("common.edit"), m.value.visible = !0;
151
- }
152
- function X(e) {
153
- me.confirm(r("common.confirmDelete"), r("common.delete"), {
154
- cancelButtonText: r("common.cancel"),
155
- confirmButtonText: r("common.confirm"),
156
- type: "warning"
157
- }).then(() => {
158
- L.delete(e).then((l) => {
159
- l.status === 200 && (k({
160
- message: r("common.deleteSuccess"),
161
- type: "success"
162
- }), v());
163
- });
164
- }).catch(() => {
165
- });
166
- }
167
- function v() {
168
- L.findList({ orgId: f.value }).then(({ data: e }) => {
169
- I.value = e.results;
170
- });
171
- }
172
- function Y(e) {
173
- e && v();
174
- }
175
- function Z(e) {
176
- N.selectionRows.value = e;
177
- }
178
- function ee(e) {
179
- N.handleSort(e.prop, e.order);
180
- }
181
- return (e, l) => {
182
- const i = c("el-input"), d = c("el-form-item"), u = c("el-col"), oe = re, M = c("el-row"), E = c("el-button"), te = c("el-form"), U = c("el-tab-pane"), le = c("jmash-column-select"), ae = c("jmash-table"), S = c("el-card"), ne = c("el-tabs"), w = ue("hasPerm");
183
- return b(), T("div", ve, [
184
- o(S, { shadow: "never" }, {
185
- default: t(() => [
186
- o(ne, {
187
- modelValue: g.value,
188
- "onUpdate:modelValue": l[10] || (l[10] = (n) => g.value = n),
189
- onTabClick: A
190
- }, {
191
- default: t(() => [
192
- o(U, {
193
- label: "外协单位信息",
194
- name: "first"
195
- }, {
196
- default: t(() => [
197
- o(te, {
198
- ref_key: "sysOutFormRef",
199
- ref: $,
200
- model: s(a),
201
- "label-width": "135px",
202
- rules: G
203
- }, {
204
- default: t(() => [
205
- o(M, null, {
206
- default: t(() => [
207
- o(u, { span: 24 }, {
208
- default: t(() => [
209
- o(d, {
210
- label: e.$t("sysOut.orgName"),
211
- prop: "orgName"
212
- }, {
213
- default: t(() => [
214
- o(i, {
215
- modelValue: s(a).orgName,
216
- "onUpdate:modelValue": l[0] || (l[0] = (n) => s(a).orgName = n),
217
- placeholder: e.$t("sysOut.orgNameRequired"),
218
- maxlength: "50",
219
- "show-word-limit": "",
220
- clearable: ""
221
- }, null, 8, ["modelValue", "placeholder"])
222
- ]),
223
- _: 1
224
- }, 8, ["label"])
225
- ]),
226
- _: 1
227
- }),
228
- o(u, { span: 24 }, {
229
- default: t(() => [
230
- o(d, {
231
- label: e.$t("sysOut.address"),
232
- prop: "address"
233
- }, {
234
- default: t(() => [
235
- o(i, {
236
- modelValue: s(a).address,
237
- "onUpdate:modelValue": l[1] || (l[1] = (n) => s(a).address = n),
238
- placeholder: e.$t("sysOut.addressRequired"),
239
- maxlength: "120",
240
- "show-word-limit": "",
241
- clearable: ""
242
- }, null, 8, ["modelValue", "placeholder"])
243
- ]),
244
- _: 1
245
- }, 8, ["label"])
246
- ]),
247
- _: 1
248
- }),
249
- o(u, { span: 24 }, {
250
- default: t(() => [
251
- o(d, null, {
252
- default: t(() => [
253
- o(oe, {
254
- address: s(a).address,
255
- onGetLatLng: H,
256
- onGetAddress: W
257
- }, null, 8, ["address"])
258
- ]),
259
- _: 1
260
- })
261
- ]),
262
- _: 1
263
- }),
264
- o(u, { span: 12 }, {
265
- default: t(() => [
266
- o(d, {
267
- label: e.$t("sysOut.geoLongitude"),
268
- prop: "geoLongitude"
269
- }, {
270
- default: t(() => [
271
- o(i, {
272
- modelValue: s(a).geoLongitude,
273
- "onUpdate:modelValue": l[2] || (l[2] = (n) => s(a).geoLongitude = n),
274
- clearable: "",
275
- disabled: !0
276
- }, null, 8, ["modelValue"])
277
- ]),
278
- _: 1
279
- }, 8, ["label"])
280
- ]),
281
- _: 1
282
- }),
283
- o(u, { span: 12 }, {
284
- default: t(() => [
285
- o(d, {
286
- label: e.$t("sysOut.geoLatitude"),
287
- prop: "geoLatitude"
288
- }, {
289
- default: t(() => [
290
- o(i, {
291
- modelValue: s(a).geoLatitude,
292
- "onUpdate:modelValue": l[3] || (l[3] = (n) => s(a).geoLatitude = n),
293
- clearable: "",
294
- disabled: !0
295
- }, null, 8, ["modelValue"])
296
- ]),
297
- _: 1
298
- }, 8, ["label"])
299
- ]),
300
- _: 1
301
- }),
302
- o(u, { span: 12 }, {
303
- default: t(() => [
304
- o(d, {
305
- label: e.$t("sysOut.contactPerson"),
306
- prop: "contactPerson"
307
- }, {
308
- default: t(() => [
309
- o(i, {
310
- modelValue: s(a).contactPerson,
311
- "onUpdate:modelValue": l[4] || (l[4] = (n) => s(a).contactPerson = n),
312
- placeholder: e.$t("sysOut.contactPersonRequired"),
313
- maxlength: "20",
314
- "show-word-limit": "",
315
- clearable: ""
316
- }, null, 8, ["modelValue", "placeholder"])
317
- ]),
318
- _: 1
319
- }, 8, ["label"])
320
- ]),
321
- _: 1
322
- }),
323
- o(u, { span: 12 }, {
324
- default: t(() => [
325
- o(d, {
326
- label: e.$t("sysOut.contactPersonPosi"),
327
- prop: "contactPersonPosi"
328
- }, {
329
- default: t(() => [
330
- o(i, {
331
- modelValue: s(a).contactPersonPosi,
332
- "onUpdate:modelValue": l[5] || (l[5] = (n) => s(a).contactPersonPosi = n),
333
- placeholder: e.$t("sysOut.contactPersonPosiRequired"),
334
- maxlength: "30",
335
- "show-word-limit": "",
336
- clearable: ""
337
- }, null, 8, ["modelValue", "placeholder"])
338
- ]),
339
- _: 1
340
- }, 8, ["label"])
341
- ]),
342
- _: 1
343
- }),
344
- o(u, { span: 12 }, {
345
- default: t(() => [
346
- o(d, {
347
- label: e.$t("sysOut.contactPersonTel"),
348
- prop: "contactPersonTel"
349
- }, {
350
- default: t(() => [
351
- o(i, {
352
- modelValue: s(a).contactPersonTel,
353
- "onUpdate:modelValue": l[6] || (l[6] = (n) => s(a).contactPersonTel = n),
354
- placeholder: e.$t("sysOut.contactPersonTels"),
355
- maxlength: "15",
356
- "show-word-limit": "",
357
- clearable: ""
358
- }, null, 8, ["modelValue", "placeholder"])
359
- ]),
360
- _: 1
361
- }, 8, ["label"])
362
- ]),
363
- _: 1
364
- }),
365
- o(u, { span: 12 }, {
366
- default: t(() => [
367
- o(d, {
368
- label: e.$t("sysOut.contactPersonMobile"),
369
- prop: "contactPersonMobile"
370
- }, {
371
- default: t(() => [
372
- o(i, {
373
- modelValue: s(a).contactPersonMobile,
374
- "onUpdate:modelValue": l[7] || (l[7] = (n) => s(a).contactPersonMobile = n),
375
- placeholder: e.$t("sysOut.contactPersonMobileRequired"),
376
- maxlength: "11",
377
- "show-word-limit": "",
378
- clearable: ""
379
- }, null, 8, ["modelValue", "placeholder"])
380
- ]),
381
- _: 1
382
- }, 8, ["label"])
383
- ]),
384
- _: 1
385
- })
386
- ]),
387
- _: 1
388
- }),
389
- o(d, null, {
390
- default: t(() => [
391
- o(E, {
392
- type: "primary",
393
- onClick: z
394
- }, {
395
- default: t(() => [
396
- P(_(e.$t("common.save")), 1)
397
- ]),
398
- _: 1
399
- })
400
- ]),
401
- _: 1
402
- })
403
- ]),
404
- _: 1
405
- }, 8, ["model", "rules"])
406
- ]),
407
- _: 1
408
- }),
409
- f.value ? (b(), R(U, {
410
- key: 0,
411
- label: "发票信息",
412
- name: "second"
413
- }, {
414
- default: t(() => [
415
- o(S, {
416
- shadow: "never",
417
- class: "table-container"
418
- }, {
419
- header: t(() => [
420
- o(M, null, {
421
- default: t(() => [
422
- o(u, { span: 17 }, {
423
- default: t(() => [
424
- q((b(), R(E, {
425
- type: "primary",
426
- onClick: J
427
- }, {
428
- default: t(() => [
429
- P(_(e.$t("common.add")), 1)
430
- ]),
431
- _: 1
432
- })), [
433
- [w, ["itsmsys:sys_org_invoice:add"]]
434
- ])
435
- ]),
436
- _: 1
437
- }),
438
- o(u, {
439
- span: 7,
440
- class: "container-float"
441
- }, {
442
- default: t(() => [
443
- o(le, {
444
- modelValue: s(y),
445
- "onUpdate:modelValue": l[8] || (l[8] = (n) => de(y) ? y.value = n : y = n),
446
- "label-name": "jobs/job-trigger"
447
- }, null, 8, ["modelValue"])
448
- ]),
449
- _: 1
450
- })
451
- ]),
452
- _: 1
453
- })
454
- ]),
455
- default: t(() => [
456
- o(ae, {
457
- ref_key: "multipleTableRef",
458
- ref: B,
459
- class: "table-top",
460
- "row-key": "triggerId",
461
- "list-loading": s(x),
462
- data: I.value,
463
- "table-label": s(y),
464
- onSelectionChange: Z,
465
- onSortChange: ee
466
- }, {
467
- invoiceType: t((n) => [
468
- ce("span", null, _(s(ye).invoiceTypeDictEnum.getEnumValue(
469
- n.data.row.invoiceType
470
- )), 1)
471
- ]),
472
- operation: t((n) => [
473
- q((b(), T("span", {
474
- class: "el-button-color",
475
- onClick: (se) => Q(n.data.row)
476
- }, [
477
- P(_(e.$t("common.edit")), 1)
478
- ], 8, _e)), [
479
- [w, ["itsmsys:sys_org_invoice:update"]]
480
- ]),
481
- q((b(), T("span", {
482
- class: "el-button-color dropdown-left",
483
- onClick: (se) => X(n.data.row)
484
- }, [
485
- P(_(e.$t("common.delete")), 1)
486
- ], 8, he)), [
487
- [w, ["itsmsys:sys_org_invoice:delete"]]
488
- ])
489
- ]),
490
- _: 1
491
- }, 8, ["list-loading", "data", "table-label"])
492
- ]),
493
- _: 1
494
- }),
495
- m.value.visible ? (b(), R(be, {
496
- key: 0,
497
- modelValue: m.value.visible,
498
- "onUpdate:modelValue": l[9] || (l[9] = (n) => m.value.visible = n),
499
- title: m.value.title,
500
- "org-key": f.value,
501
- "invoice-key": s(O),
502
- onRefresh: Y,
503
- width: "700px"
504
- }, null, 8, ["modelValue", "title", "org-key", "invoice-key"])) : D("", !0)
505
- ]),
506
- _: 1
507
- })) : D("", !0)
508
- ]),
509
- _: 1
510
- }, 8, ["modelValue"])
511
- ]),
512
- _: 1
513
- })
514
- ]);
515
- };
516
- }
517
- });
518
- export {
519
- $e as default
520
- };