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,276 @@
1
+ import { defineComponent as K, mergeModels as v, ref as f, useModel as O, reactive as q, resolveComponent as u, openBlock as S, createBlock as Z, withCtx as o, createElementVNode as x, createVNode as e, createTextVNode as I, toDisplayString as R, unref as d } from "vue";
2
+ import { ElMessage as w } from "element-plus";
3
+ import { useI18n as D } from "vue-i18n";
4
+ import { sysUserExtApi as c } from "./index.mjs";
5
+ import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
+ const T = { class: "dialog-footer" }, H = /* @__PURE__ */ K({
7
+ __name: "edit",
8
+ props: /* @__PURE__ */ v({
9
+ entityKey: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ }
14
+ }, {
15
+ modelValue: { type: Boolean },
16
+ modelModifiers: {}
17
+ }),
18
+ emits: /* @__PURE__ */ v(["refresh"], ["update:modelValue"]),
19
+ setup(b, { emit: $ }) {
20
+ const { t: n } = D(), j = f(), N = f(), y = f(), m = O(b, "modelValue"), g = $;
21
+ let t = q({
22
+ requestId: Math.random() * 10 + "",
23
+ updateMask: "realName"
24
+ });
25
+ const k = (l, a, s) => {
26
+ a === void 0 && s(new Error(n("sysUserMan.mobilePhoneRequired"))), /^1[3-9]\d{9}$/.test(a) || s(new Error(n("sysUserMan.mobilePhoneRequireds"))), s();
27
+ }, E = q({
28
+ realName: [
29
+ {
30
+ required: !0,
31
+ message: n("sysUserMan.realNameRequired"),
32
+ trigger: "blur"
33
+ }
34
+ ],
35
+ gender: [
36
+ {
37
+ required: !0,
38
+ message: n("sysUserMan.genderRequired"),
39
+ trigger: "change"
40
+ }
41
+ ],
42
+ mobilePhone: [
43
+ {
44
+ required: !0,
45
+ trigger: "blur",
46
+ validator: k
47
+ }
48
+ ],
49
+ email: [
50
+ {
51
+ pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
52
+ message: n("sysUserMan.emailRequireds"),
53
+ trigger: "blur"
54
+ }
55
+ ],
56
+ deptId: [
57
+ {
58
+ required: !0,
59
+ message: n("sysUserMan.deptIdRequired"),
60
+ trigger: "change"
61
+ }
62
+ ],
63
+ jobId: [
64
+ {
65
+ required: !0,
66
+ message: n("sysUserMan.jobIdRequired"),
67
+ trigger: "change"
68
+ }
69
+ ]
70
+ }), h = b, P = Object.keys(h.entityKey), _ = f(P.length >= 1);
71
+ _.value && c.findById(h.entityKey).then(({ data: l }) => {
72
+ Object.assign(t, l);
73
+ });
74
+ const A = async () => {
75
+ var l;
76
+ await ((l = y.value) == null ? void 0 : l.validate((a) => {
77
+ a && (_.value ? c.update(t).then((s) => {
78
+ console.log(s), s.status === 200 && (w({
79
+ message: n("common.submitSuccess"),
80
+ type: "success"
81
+ }), m.value && (m.value = !1), g("refresh", s.status === 200));
82
+ }) : c.create(t).then((s) => {
83
+ console.log(s), s.status === 200 && (w({
84
+ message: n("common.submitSuccess"),
85
+ type: "success"
86
+ }), m.value && (m.value = !1), g("refresh", s.status === 200));
87
+ }));
88
+ }));
89
+ };
90
+ function U() {
91
+ m.value && (m.value = !1);
92
+ }
93
+ return (l, a) => {
94
+ const s = u("el-input"), i = u("el-form-item"), p = u("el-col"), C = u("jmash-enum-select"), M = u("el-tree-select"), B = u("el-row"), z = u("el-form"), V = u("el-button"), F = u("el-dialog");
95
+ return S(), Z(F, {
96
+ modelValue: m.value,
97
+ "onUpdate:modelValue": a[6] || (a[6] = (r) => m.value = r),
98
+ onClose: U
99
+ }, {
100
+ footer: o(() => [
101
+ x("div", T, [
102
+ e(V, { onClick: U }, {
103
+ default: o(() => [
104
+ I(R(l.$t("common.cancel")), 1)
105
+ ]),
106
+ _: 1
107
+ }),
108
+ e(V, {
109
+ type: "primary",
110
+ onClick: A
111
+ }, {
112
+ default: o(() => [
113
+ I(R(l.$t("common.confirm")), 1)
114
+ ]),
115
+ _: 1
116
+ })
117
+ ])
118
+ ]),
119
+ default: o(() => [
120
+ e(z, {
121
+ ref_key: "sysUserExtFormRef",
122
+ ref: y,
123
+ model: d(t),
124
+ "label-width": "80px",
125
+ rules: E
126
+ }, {
127
+ default: o(() => [
128
+ e(B, null, {
129
+ default: o(() => [
130
+ e(p, { span: 12 }, {
131
+ default: o(() => [
132
+ e(i, {
133
+ label: l.$t("sysUserMan.realName"),
134
+ prop: "realName"
135
+ }, {
136
+ default: o(() => [
137
+ e(s, {
138
+ modelValue: d(t).realName,
139
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => d(t).realName = r),
140
+ placeholder: l.$t("sysUserMan.realNameRequired"),
141
+ maxlength: "8",
142
+ "show-word-limit": "",
143
+ clearable: ""
144
+ }, null, 8, ["modelValue", "placeholder"])
145
+ ]),
146
+ _: 1
147
+ }, 8, ["label"])
148
+ ]),
149
+ _: 1
150
+ }),
151
+ e(p, { span: 12 }, {
152
+ default: o(() => [
153
+ e(i, {
154
+ label: l.$t("sysUserMan.gender"),
155
+ prop: "gender"
156
+ }, {
157
+ default: o(() => [
158
+ e(C, {
159
+ modelValue: d(t).gender,
160
+ "onUpdate:modelValue": a[1] || (a[1] = (r) => d(t).gender = r),
161
+ clearable: "",
162
+ placeholder: l.$t("sysUserMan.genderRequired"),
163
+ "enum-type": "jmash.protobuf.Gender",
164
+ class: "w-full"
165
+ }, null, 8, ["modelValue", "placeholder"])
166
+ ]),
167
+ _: 1
168
+ }, 8, ["label"])
169
+ ]),
170
+ _: 1
171
+ }),
172
+ e(p, { span: 12 }, {
173
+ default: o(() => [
174
+ e(i, {
175
+ label: l.$t("sysUserMan.mobilePhone"),
176
+ prop: "mobilePhone"
177
+ }, {
178
+ default: o(() => [
179
+ e(s, {
180
+ modelValue: d(t).mobilePhone,
181
+ "onUpdate:modelValue": a[2] || (a[2] = (r) => d(t).mobilePhone = r),
182
+ placeholder: l.$t("sysUserMan.mobilePhoneRequired"),
183
+ maxlength: "11",
184
+ "show-word-limit": "",
185
+ clearable: ""
186
+ }, null, 8, ["modelValue", "placeholder"])
187
+ ]),
188
+ _: 1
189
+ }, 8, ["label"])
190
+ ]),
191
+ _: 1
192
+ }),
193
+ e(p, { span: 12 }, {
194
+ default: o(() => [
195
+ e(i, {
196
+ label: l.$t("sysUserMan.email"),
197
+ prop: "email"
198
+ }, {
199
+ default: o(() => [
200
+ e(s, {
201
+ modelValue: d(t).email,
202
+ "onUpdate:modelValue": a[3] || (a[3] = (r) => d(t).email = r),
203
+ placeholder: l.$t("sysUserMan.emailRequired"),
204
+ maxlength: "30",
205
+ "show-word-limit": "",
206
+ clearable: ""
207
+ }, null, 8, ["modelValue", "placeholder"])
208
+ ]),
209
+ _: 1
210
+ }, 8, ["label"])
211
+ ]),
212
+ _: 1
213
+ }),
214
+ e(p, { span: 12 }, {
215
+ default: o(() => [
216
+ e(i, {
217
+ label: l.$t("sysUserMan.deptId"),
218
+ prop: "deptId"
219
+ }, {
220
+ default: o(() => [
221
+ e(M, {
222
+ modelValue: d(t).deptId,
223
+ "onUpdate:modelValue": a[4] || (a[4] = (r) => d(t).deptId = r),
224
+ data: j.value,
225
+ "render-after-expand": !1,
226
+ filterable: "",
227
+ clearable: "",
228
+ "check-strictly": "",
229
+ placeholder: l.$t("sysUserMan.deptIdRequired"),
230
+ style: { width: "100%" }
231
+ }, null, 8, ["modelValue", "data", "placeholder"])
232
+ ]),
233
+ _: 1
234
+ }, 8, ["label"])
235
+ ]),
236
+ _: 1
237
+ }),
238
+ e(p, { span: 12 }, {
239
+ default: o(() => [
240
+ e(i, {
241
+ label: l.$t("sysUserMan.jobId"),
242
+ prop: "jobId"
243
+ }, {
244
+ default: o(() => [
245
+ e(M, {
246
+ modelValue: d(t).jobId,
247
+ "onUpdate:modelValue": a[5] || (a[5] = (r) => d(t).jobId = r),
248
+ data: N.value,
249
+ "render-after-expand": !1,
250
+ filterable: "",
251
+ clearable: "",
252
+ "check-strictly": "",
253
+ placeholder: l.$t("sysUserMan.jobIdRequired"),
254
+ style: { width: "100%" }
255
+ }, null, 8, ["modelValue", "data", "placeholder"])
256
+ ]),
257
+ _: 1
258
+ }, 8, ["label"])
259
+ ]),
260
+ _: 1
261
+ })
262
+ ]),
263
+ _: 1
264
+ })
265
+ ]),
266
+ _: 1
267
+ }, 8, ["model", "rules"])
268
+ ]),
269
+ _: 1
270
+ }, 8, ["modelValue"]);
271
+ };
272
+ }
273
+ }), Y = /* @__PURE__ */ G(H, [["__scopeId", "data-v-700da06a"]]);
274
+ export {
275
+ Y as default
276
+ };
@@ -0,0 +1,240 @@
1
+ import { defineComponent as M, mergeModels as V, ref as E, reactive as x, useModel as B, resolveComponent as i, openBlock as O, createBlock as F, withCtx as t, createElementVNode as K, createVNode as e, createTextVNode as S, toDisplayString as v, unref as n } from "vue";
2
+ import { ElMessage as w } from "element-plus";
3
+ import { useI18n as N } from "vue-i18n";
4
+ import { sysUserExtApi as c } from "./index.mjs";
5
+ import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
+ const R = { class: "dialog-footer" }, A = /* @__PURE__ */ M({
7
+ __name: "edit",
8
+ props: /* @__PURE__ */ V({
9
+ entityKey: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ }
14
+ }, {
15
+ modelValue: { type: Boolean },
16
+ modelModifiers: {}
17
+ }),
18
+ emits: /* @__PURE__ */ V(["refresh"], ["update:modelValue"]),
19
+ setup(y, { emit: T }) {
20
+ const { t: d } = N(), f = E();
21
+ let s = x({
22
+ requestId: Math.random() * 10 + "",
23
+ updateMask: ""
24
+ });
25
+ const $ = x({
26
+ userId: [
27
+ {
28
+ required: !0,
29
+ message: d("sysUserExt.userId"),
30
+ trigger: "change"
31
+ }
32
+ ],
33
+ userType: [
34
+ {
35
+ required: !0,
36
+ message: d("sysUserExt.userType"),
37
+ trigger: "change"
38
+ }
39
+ ],
40
+ jobStatus: [
41
+ {
42
+ required: !0,
43
+ message: d("sysUserExt.jobStatus"),
44
+ trigger: "change"
45
+ }
46
+ ],
47
+ engineeType: [
48
+ {
49
+ required: !0,
50
+ message: d("sysUserExt.engineeType"),
51
+ trigger: "change"
52
+ }
53
+ ],
54
+ engineeSpecialty: [
55
+ {
56
+ required: !0,
57
+ message: d("sysUserExt.engineeSpecialty"),
58
+ trigger: "change"
59
+ }
60
+ ]
61
+ }), u = B(y, "modelValue"), g = y, b = T, I = Object.keys(g.entityKey), h = E(I.length >= 1);
62
+ h.value && c.findById(g.entityKey).then(({ data: l }) => {
63
+ Object.assign(s, l);
64
+ });
65
+ const j = async () => {
66
+ var l;
67
+ await ((l = f.value) == null ? void 0 : l.validate((o) => {
68
+ o && (h.value ? c.update(s).then((a) => {
69
+ console.log(a), a.status === 200 && (w({
70
+ message: d("common.submitSuccess"),
71
+ type: "success"
72
+ }), u.value && (u.value = !1), b("refresh", a.status === 200));
73
+ }) : c.create(s).then((a) => {
74
+ console.log(a), a.status === 200 && (w({
75
+ message: d("common.submitSuccess"),
76
+ type: "success"
77
+ }), u.value && (u.value = !1), b("refresh", a.status === 200));
78
+ }));
79
+ }));
80
+ };
81
+ function U() {
82
+ u.value && (u.value = !1);
83
+ }
84
+ return (l, o) => {
85
+ const a = i("el-input"), m = i("el-form-item"), p = i("el-col"), k = i("el-row"), q = i("el-form"), _ = i("el-button"), C = i("el-dialog");
86
+ return O(), F(C, {
87
+ modelValue: u.value,
88
+ "onUpdate:modelValue": o[5] || (o[5] = (r) => u.value = r),
89
+ onClose: U
90
+ }, {
91
+ footer: t(() => [
92
+ K("div", R, [
93
+ e(_, { onClick: U }, {
94
+ default: t(() => [
95
+ S(v(l.$t("common.cancel")), 1)
96
+ ]),
97
+ _: 1
98
+ }),
99
+ e(_, {
100
+ type: "primary",
101
+ onClick: j
102
+ }, {
103
+ default: t(() => [
104
+ S(v(l.$t("common.confirm")), 1)
105
+ ]),
106
+ _: 1
107
+ })
108
+ ])
109
+ ]),
110
+ default: t(() => [
111
+ e(q, {
112
+ ref_key: "sysUserExtFormRef",
113
+ ref: f,
114
+ model: n(s),
115
+ "label-width": "120px",
116
+ rules: $
117
+ }, {
118
+ default: t(() => [
119
+ e(k, null, {
120
+ default: t(() => [
121
+ e(p, { span: 12 }, {
122
+ default: t(() => [
123
+ e(m, {
124
+ label: l.$t("sysUserExt.userId"),
125
+ prop: "userId"
126
+ }, {
127
+ default: t(() => [
128
+ e(a, {
129
+ modelValue: n(s).userId,
130
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => n(s).userId = r),
131
+ placeholder: l.$t("sysUserExt.userId"),
132
+ maxlength: "8",
133
+ "show-word-limit": "",
134
+ clearable: ""
135
+ }, null, 8, ["modelValue", "placeholder"])
136
+ ]),
137
+ _: 1
138
+ }, 8, ["label"])
139
+ ]),
140
+ _: 1
141
+ }),
142
+ e(p, { span: 12 }, {
143
+ default: t(() => [
144
+ e(m, {
145
+ label: l.$t("sysUserExt.userType"),
146
+ prop: "userType"
147
+ }, {
148
+ default: t(() => [
149
+ e(a, {
150
+ modelValue: n(s).userType,
151
+ "onUpdate:modelValue": o[1] || (o[1] = (r) => n(s).userType = r),
152
+ placeholder: l.$t("sysUserExt.userType"),
153
+ maxlength: "15",
154
+ "show-word-limit": "",
155
+ clearable: ""
156
+ }, null, 8, ["modelValue", "placeholder"])
157
+ ]),
158
+ _: 1
159
+ }, 8, ["label"])
160
+ ]),
161
+ _: 1
162
+ }),
163
+ e(p, { span: 12 }, {
164
+ default: t(() => [
165
+ e(m, {
166
+ label: l.$t("sysUserExt.jobStatus"),
167
+ prop: "jobStatus"
168
+ }, {
169
+ default: t(() => [
170
+ e(a, {
171
+ modelValue: n(s).jobStatus,
172
+ "onUpdate:modelValue": o[2] || (o[2] = (r) => n(s).jobStatus = r),
173
+ placeholder: l.$t("sysUserExt.jobStatus"),
174
+ maxlength: "15",
175
+ "show-word-limit": "",
176
+ clearable: ""
177
+ }, null, 8, ["modelValue", "placeholder"])
178
+ ]),
179
+ _: 1
180
+ }, 8, ["label"])
181
+ ]),
182
+ _: 1
183
+ }),
184
+ e(p, { span: 12 }, {
185
+ default: t(() => [
186
+ e(m, {
187
+ label: l.$t("sysUserExt.engineeType"),
188
+ prop: "engineeType"
189
+ }, {
190
+ default: t(() => [
191
+ e(a, {
192
+ modelValue: n(s).engineeType,
193
+ "onUpdate:modelValue": o[3] || (o[3] = (r) => n(s).engineeType = r),
194
+ placeholder: l.$t("sysUserExt.engineeType"),
195
+ maxlength: "16",
196
+ "show-word-limit": "",
197
+ clearable: ""
198
+ }, null, 8, ["modelValue", "placeholder"])
199
+ ]),
200
+ _: 1
201
+ }, 8, ["label"])
202
+ ]),
203
+ _: 1
204
+ }),
205
+ e(p, { span: 12 }, {
206
+ default: t(() => [
207
+ e(m, {
208
+ label: l.$t("sysUserExt.engineeSpecialty"),
209
+ prop: "engineeSpecialty"
210
+ }, {
211
+ default: t(() => [
212
+ e(a, {
213
+ modelValue: n(s).engineeSpecialty,
214
+ "onUpdate:modelValue": o[4] || (o[4] = (r) => n(s).engineeSpecialty = r),
215
+ placeholder: l.$t("sysUserExt.engineeSpecialty"),
216
+ maxlength: "512",
217
+ "show-word-limit": "",
218
+ clearable: ""
219
+ }, null, 8, ["modelValue", "placeholder"])
220
+ ]),
221
+ _: 1
222
+ }, 8, ["label"])
223
+ ]),
224
+ _: 1
225
+ })
226
+ ]),
227
+ _: 1
228
+ })
229
+ ]),
230
+ _: 1
231
+ }, 8, ["model", "rules"])
232
+ ]),
233
+ _: 1
234
+ }, 8, ["modelValue"]);
235
+ };
236
+ }
237
+ }), P = /* @__PURE__ */ D(A, [["__scopeId", "data-v-725ac381"]]);
238
+ export {
239
+ P as default
240
+ };