xyvcard-itsmsys 0.0.2 → 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/edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs +248 -0
  12. package/dist/edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs +439 -0
  13. package/dist/index-BRupqW34.mjs +96 -0
  14. package/dist/index-B_cot8iN.mjs +439 -0
  15. package/dist/index-BkHGzL0R.mjs +358 -0
  16. package/dist/index-C6KvLUoL.mjs +4 -0
  17. package/dist/index-CEUyLrKg.mjs +404 -0
  18. package/dist/index-ChTssr8-.mjs +123 -0
  19. package/dist/index-ClU157bA.mjs +324 -0
  20. package/dist/index-CogdeN09.mjs +331 -0
  21. package/dist/{index-B-FkgFqA.mjs → index-DOXuGEyW.mjs} +6 -6
  22. package/dist/index-i7X9N_rj.mjs +341 -0
  23. package/dist/index.mjs +2903 -70
  24. package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +180 -0
  25. package/dist/info-70H0sycC.mjs +187 -0
  26. package/dist/info-BWgVN2mJ.mjs +176 -0
  27. package/dist/info-CE-ZnFj5.mjs +179 -0
  28. package/dist/info-Kf11Ye-N.mjs +187 -0
  29. package/dist/info-MYJGcyMX.mjs +179 -0
  30. package/dist/info-Z5LuCRmr.mjs +187 -0
  31. package/dist/style.css +1 -1
  32. package/dts/src/api/dict.d.ts +9 -1
  33. package/dts/src/api/index.d.ts +8 -1
  34. package/dts/src/api/itsm-sys-org/index.d.ts +2 -0
  35. package/dts/src/api/itsm-sys-org/types.d.ts +14 -6
  36. package/dts/src/api/itsm-sys-user-ext/index.d.ts +14 -0
  37. package/dts/src/api/itsm-sys-user-ext/types.d.ts +91 -0
  38. package/dts/src/constant.d.ts +11 -0
  39. package/dts/src/index.d.ts +2 -0
  40. package/dts/src/lang/itsmsys/zh-cn.d.ts +87 -10
  41. package/dts/src/router/index.d.ts +8 -1
  42. package/dts/src/utils/common.d.ts +1 -0
  43. package/dts/src/utils/momentPlugin.d.ts +5 -0
  44. package/dts/src/views/itsmsys/itsm-sys-gov/edit.vue.d.ts +1 -21
  45. package/dts/src/views/itsmsys/itsm-sys-gov/info.vue.d.ts +2 -0
  46. package/dts/src/views/itsmsys/{itsm-sys-org/invoiceEdit.vue.d.ts → itsm-sys-org-invoice/edit.vue.d.ts} +3 -12
  47. package/dts/src/views/itsmsys/itsm-sys-org-invoice/index.vue.d.ts +2 -0
  48. package/dts/src/views/itsmsys/itsm-sys-out/edit.vue.d.ts +2 -0
  49. package/dts/src/views/itsmsys/itsm-sys-out/index.vue.d.ts +2 -0
  50. package/dts/src/views/itsmsys/itsm-sys-out/info.vue.d.ts +2 -0
  51. package/dts/src/views/itsmsys/itsm-sys-user-man/edit.vue.d.ts +22 -0
  52. package/dts/src/views/itsmsys/itsm-sys-user-man/index.vue.d.ts +2 -0
  53. package/dts/src/views/itsmsys/itsm-sys-user-man/info.vue.d.ts +2 -0
  54. package/dts/src/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +22 -0
  55. package/dts/src/views/itsmsys/itsm-sys-user-ops/index.vue.d.ts +2 -0
  56. package/dts/src/views/itsmsys/itsm-sys-user-ops/info.vue.d.ts +2 -0
  57. package/dts/src/views/itsmsys/itsm-sys-user-out/edit.vue.d.ts +22 -0
  58. package/dts/src/views/itsmsys/itsm-sys-user-out/index.vue.d.ts +2 -0
  59. package/dts/src/views/itsmsys/itsm-sys-user-out/info.vue.d.ts +2 -0
  60. package/package.json +3 -3
  61. package/dist/edit-BKMLirl4.mjs +0 -602
  62. package/dist/edit-ccGk5679.mjs +0 -610
  63. package/dist/index-BGwm5W6z.mjs +0 -343
  64. package/dist/index-CSDhKMEP.mjs +0 -332
  65. package/dist/info-CSOdbuvm.mjs +0 -192
  66. package/dist/invoiceEdit-D9zxwIoM.mjs +0 -288
  67. package/dts/src/api/itsm-sys-gov/index.d.ts +0 -15
  68. package/dts/src/api/itsm-sys-gov/types.d.ts +0 -87
  69. package/dts/src/api/itsm-sys-gov-invoice/index.d.ts +0 -13
  70. package/dts/src/api/itsm-sys-gov-invoice/types.d.ts +0 -48
@@ -0,0 +1,369 @@
1
+ import { _ as S } from "./index-BRupqW34.mjs";
2
+ import { defineComponent as E, ref as f, reactive as V, resolveComponent as i, openBlock as b, createElementBlock as K, createVNode as e, withCtx as l, unref as r, createTextVNode as A, toDisplayString as F, createBlock as G, createCommentVNode as q } from "vue";
3
+ import { ElMessage as h } from "element-plus";
4
+ import { useI18n as z } from "vue-i18n";
5
+ import { useRoute as O } from "vue-router";
6
+ import { D as w, C as j } from "./index-ChTssr8-.mjs";
7
+ import { sysOrgApi as y } from "./index.mjs";
8
+ import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs";
9
+ const J = { class: "app-container" }, le = /* @__PURE__ */ E({
10
+ __name: "edit",
11
+ setup(Q) {
12
+ const { t: m } = z(), g = O();
13
+ w.parentIdBizDict.useValues();
14
+ const v = f(), c = f("first"), p = f("");
15
+ p.value = g.query.entityKey;
16
+ function L(t) {
17
+ c.value = t.paneName;
18
+ }
19
+ let o = V({
20
+ requestId: Math.random() * 10 + "",
21
+ updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,parentId,geoLongitude,geoLatitude",
22
+ orgType: j.orgType.hall
23
+ });
24
+ const _ = (t, a, s) => {
25
+ a === void 0 && s(new Error(m("sysGov.mobileRequired"))), /^(((\d{3,4}-)?[0-9]{7,8})|(1(3|4|5|6|7|8|9)\d{9}))$/.test(a) || s(new Error(m("sysGov.mobileRequireds"))), s();
26
+ }, $ = V({
27
+ orgName: [
28
+ {
29
+ required: !0,
30
+ message: m("sysGov.orgNameRequired"),
31
+ trigger: "blur"
32
+ }
33
+ ],
34
+ address: [
35
+ {
36
+ required: !0,
37
+ message: m("sysGov.addressRequired"),
38
+ trigger: "blur"
39
+ }
40
+ ],
41
+ contactPerson: [
42
+ {
43
+ required: !0,
44
+ message: m("sysGov.contactPersonRequired"),
45
+ trigger: "blur"
46
+ }
47
+ ],
48
+ contactPersonPosi: [
49
+ {
50
+ required: !0,
51
+ message: m("sysGov.contactPersonPosiRequired"),
52
+ trigger: "blur"
53
+ }
54
+ ],
55
+ contactPersonMobile: [
56
+ {
57
+ required: !0,
58
+ trigger: "blur",
59
+ validator: _
60
+ }
61
+ ],
62
+ contactPersonTel: [
63
+ {
64
+ required: !0,
65
+ trigger: "blur",
66
+ validator: _
67
+ }
68
+ ]
69
+ });
70
+ function I(t) {
71
+ o.geoLatitude = t[0], o.geoLongitude = t[1];
72
+ }
73
+ function R(t) {
74
+ o.address = t;
75
+ }
76
+ g.query.entityKey && y.findById({ orgId: g.query.entityKey }).then(({ data: t }) => {
77
+ Object.assign(o, t), o.parentId === "00000000-0000-0000-0000-000000000000" && (o.parentId = "");
78
+ });
79
+ const M = async () => {
80
+ var t;
81
+ await ((t = v.value) == null ? void 0 : t.validate((a) => {
82
+ var s, d;
83
+ a && (o.geoLongitude = (s = o.geoLongitude) == null ? void 0 : s.toString(), o.geoLatitude = (d = o.geoLatitude) == null ? void 0 : d.toString(), o.orgId = p.value, o.requestId = Math.random() * 10 + "", o.orgId ? y.update(o).then((u) => {
84
+ u.status === 200 && (h({
85
+ message: m("common.submitSuccess"),
86
+ type: "success"
87
+ }), c.value = "second");
88
+ }) : y.create(o).then((u) => {
89
+ u.status === 200 && (h({
90
+ message: m("common.submitSuccess"),
91
+ type: "success"
92
+ }), p.value = u.data.orgId, c.value = "second");
93
+ }));
94
+ }));
95
+ };
96
+ return (t, a) => {
97
+ const s = i("el-input"), d = i("el-form-item"), u = i("el-col"), N = i("el-tree-select"), T = S, U = i("el-row"), k = i("el-button"), C = i("el-form"), P = i("el-tab-pane"), B = i("el-tabs"), D = i("el-card");
98
+ return b(), K("div", J, [
99
+ e(D, { shadow: "never" }, {
100
+ default: l(() => [
101
+ e(B, {
102
+ modelValue: c.value,
103
+ "onUpdate:modelValue": a[9] || (a[9] = (n) => c.value = n),
104
+ onTabClick: L
105
+ }, {
106
+ default: l(() => [
107
+ e(P, {
108
+ label: "厅局信息",
109
+ name: "first"
110
+ }, {
111
+ default: l(() => [
112
+ e(C, {
113
+ ref_key: "sysGovFormRef",
114
+ ref: v,
115
+ model: r(o),
116
+ "label-width": "120px",
117
+ rules: $
118
+ }, {
119
+ default: l(() => [
120
+ e(U, null, {
121
+ default: l(() => [
122
+ e(u, { span: 12 }, {
123
+ default: l(() => [
124
+ e(d, {
125
+ label: t.$t("sysGov.orgName"),
126
+ prop: "orgName"
127
+ }, {
128
+ default: l(() => [
129
+ e(s, {
130
+ modelValue: r(o).orgName,
131
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => r(o).orgName = n),
132
+ placeholder: t.$t("sysGov.orgNameRequired"),
133
+ maxlength: "50",
134
+ "show-word-limit": "",
135
+ clearable: ""
136
+ }, null, 8, ["modelValue", "placeholder"])
137
+ ]),
138
+ _: 1
139
+ }, 8, ["label"])
140
+ ]),
141
+ _: 1
142
+ }),
143
+ e(u, { span: 12 }, {
144
+ default: l(() => [
145
+ e(d, {
146
+ label: t.$t("sysGov.parentId"),
147
+ prop: "parentId"
148
+ }, {
149
+ default: l(() => [
150
+ e(N, {
151
+ modelValue: r(o).parentId,
152
+ "onUpdate:modelValue": a[1] || (a[1] = (n) => r(o).parentId = n),
153
+ data: r(w).parentIdBizDict.values,
154
+ filterable: "",
155
+ clearable: "",
156
+ "check-strictly": "",
157
+ "allow-create": "",
158
+ "render-after-expand": !1,
159
+ style: { width: "100%" },
160
+ placeholder: t.$t("sysGov.parentIdRequired")
161
+ }, null, 8, ["modelValue", "data", "placeholder"])
162
+ ]),
163
+ _: 1
164
+ }, 8, ["label"])
165
+ ]),
166
+ _: 1
167
+ }),
168
+ e(u, { span: 12 }, {
169
+ default: l(() => [
170
+ e(d, {
171
+ label: t.$t("sysGov.contactPerson"),
172
+ prop: "contactPerson"
173
+ }, {
174
+ default: l(() => [
175
+ e(s, {
176
+ modelValue: r(o).contactPerson,
177
+ "onUpdate:modelValue": a[2] || (a[2] = (n) => r(o).contactPerson = n),
178
+ placeholder: t.$t("sysGov.contactPersonRequired"),
179
+ maxlength: "20",
180
+ "show-word-limit": "",
181
+ clearable: ""
182
+ }, null, 8, ["modelValue", "placeholder"])
183
+ ]),
184
+ _: 1
185
+ }, 8, ["label"])
186
+ ]),
187
+ _: 1
188
+ }),
189
+ e(u, { span: 12 }, {
190
+ default: l(() => [
191
+ e(d, {
192
+ label: t.$t("sysGov.contactPersonPosi"),
193
+ prop: "contactPersonPosi"
194
+ }, {
195
+ default: l(() => [
196
+ e(s, {
197
+ modelValue: r(o).contactPersonPosi,
198
+ "onUpdate:modelValue": a[3] || (a[3] = (n) => r(o).contactPersonPosi = n),
199
+ placeholder: t.$t("sysGov.contactPersonPosiRequired"),
200
+ maxlength: "30",
201
+ "show-word-limit": "",
202
+ clearable: ""
203
+ }, null, 8, ["modelValue", "placeholder"])
204
+ ]),
205
+ _: 1
206
+ }, 8, ["label"])
207
+ ]),
208
+ _: 1
209
+ }),
210
+ e(u, { span: 12 }, {
211
+ default: l(() => [
212
+ e(d, {
213
+ label: t.$t("sysGov.contactPersonTel"),
214
+ prop: "contactPersonTel"
215
+ }, {
216
+ default: l(() => [
217
+ e(s, {
218
+ modelValue: r(o).contactPersonTel,
219
+ "onUpdate:modelValue": a[4] || (a[4] = (n) => r(o).contactPersonTel = n),
220
+ placeholder: t.$t("sysGov.contactPersonTels"),
221
+ maxlength: "15",
222
+ "show-word-limit": "",
223
+ clearable: ""
224
+ }, null, 8, ["modelValue", "placeholder"])
225
+ ]),
226
+ _: 1
227
+ }, 8, ["label"])
228
+ ]),
229
+ _: 1
230
+ }),
231
+ e(u, { span: 12 }, {
232
+ default: l(() => [
233
+ e(d, {
234
+ label: t.$t("sysGov.contactPersonMobile"),
235
+ prop: "contactPersonMobile"
236
+ }, {
237
+ default: l(() => [
238
+ e(s, {
239
+ modelValue: r(o).contactPersonMobile,
240
+ "onUpdate:modelValue": a[5] || (a[5] = (n) => r(o).contactPersonMobile = n),
241
+ placeholder: t.$t("sysGov.contactPersonMobileRequired"),
242
+ maxlength: "11",
243
+ "show-word-limit": "",
244
+ clearable: ""
245
+ }, null, 8, ["modelValue", "placeholder"])
246
+ ]),
247
+ _: 1
248
+ }, 8, ["label"])
249
+ ]),
250
+ _: 1
251
+ }),
252
+ e(u, { span: 24 }, {
253
+ default: l(() => [
254
+ e(d, {
255
+ label: t.$t("sysGov.address"),
256
+ prop: "address"
257
+ }, {
258
+ default: l(() => [
259
+ e(s, {
260
+ modelValue: r(o).address,
261
+ "onUpdate:modelValue": a[6] || (a[6] = (n) => r(o).address = n),
262
+ placeholder: t.$t("sysGov.addressRequired"),
263
+ maxlength: "120",
264
+ "show-word-limit": "",
265
+ clearable: ""
266
+ }, null, 8, ["modelValue", "placeholder"])
267
+ ]),
268
+ _: 1
269
+ }, 8, ["label"])
270
+ ]),
271
+ _: 1
272
+ }),
273
+ e(u, { span: 24 }, {
274
+ default: l(() => [
275
+ e(d, null, {
276
+ default: l(() => [
277
+ e(T, {
278
+ address: r(o).address,
279
+ onGetLatLng: I,
280
+ onGetAddress: R
281
+ }, null, 8, ["address"])
282
+ ]),
283
+ _: 1
284
+ })
285
+ ]),
286
+ _: 1
287
+ }),
288
+ e(u, { span: 12 }, {
289
+ default: l(() => [
290
+ e(d, {
291
+ label: t.$t("sysGov.geoLongitude"),
292
+ prop: "geoLongitude"
293
+ }, {
294
+ default: l(() => [
295
+ e(s, {
296
+ modelValue: r(o).geoLongitude,
297
+ "onUpdate:modelValue": a[7] || (a[7] = (n) => r(o).geoLongitude = n),
298
+ clearable: ""
299
+ }, null, 8, ["modelValue"])
300
+ ]),
301
+ _: 1
302
+ }, 8, ["label"])
303
+ ]),
304
+ _: 1
305
+ }),
306
+ e(u, { span: 12 }, {
307
+ default: l(() => [
308
+ e(d, {
309
+ label: t.$t("sysGov.geoLatitude"),
310
+ prop: "geoLatitude"
311
+ }, {
312
+ default: l(() => [
313
+ e(s, {
314
+ modelValue: r(o).geoLatitude,
315
+ "onUpdate:modelValue": a[8] || (a[8] = (n) => r(o).geoLatitude = n),
316
+ clearable: ""
317
+ }, null, 8, ["modelValue"])
318
+ ]),
319
+ _: 1
320
+ }, 8, ["label"])
321
+ ]),
322
+ _: 1
323
+ })
324
+ ]),
325
+ _: 1
326
+ }),
327
+ e(d, null, {
328
+ default: l(() => [
329
+ e(k, {
330
+ type: "primary",
331
+ onClick: M
332
+ }, {
333
+ default: l(() => [
334
+ A(F(t.$t("common.save")), 1)
335
+ ]),
336
+ _: 1
337
+ })
338
+ ]),
339
+ _: 1
340
+ })
341
+ ]),
342
+ _: 1
343
+ }, 8, ["model", "rules"])
344
+ ]),
345
+ _: 1
346
+ }),
347
+ p.value ? (b(), G(P, {
348
+ key: 0,
349
+ label: "发票信息",
350
+ name: "second"
351
+ }, {
352
+ default: l(() => [
353
+ c.value === "second" ? (b(), G(H, { key: 0 })) : q("", !0)
354
+ ]),
355
+ _: 1
356
+ })) : q("", !0)
357
+ ]),
358
+ _: 1
359
+ }, 8, ["modelValue"])
360
+ ]),
361
+ _: 1
362
+ })
363
+ ]);
364
+ };
365
+ }
366
+ });
367
+ export {
368
+ le as default
369
+ };