xyvcard-itsmsys 0.0.18 → 0.0.20

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 (44) hide show
  1. package/README.md +51 -51
  2. package/dist/{edit-C1zg8B0y.mjs → edit-BrHOGUbU.mjs} +1 -1
  3. package/dist/{edit-Cs3KIwaz.mjs → edit-CNEVornb.mjs} +100 -100
  4. package/dist/{edit-CxRGbAP_.mjs → edit-COKceKzl.mjs} +87 -87
  5. package/dist/{edit-DLN1WFrt.mjs → edit-Czi-Vkbf.mjs} +1 -1
  6. package/dist/{edit-CNFS8ehW.mjs → edit-DYqAdRsK.mjs} +99 -99
  7. package/dist/{edit-DlEW6lB8.mjs → edit-DybO5r3p.mjs} +1 -1
  8. package/dist/{edit-Dmxyf_Gp.mjs → edit-_QJnKCdq.mjs} +1 -1
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-jsZCbrsm.mjs → edit.vue_vue_type_script_setup_true_lang-BOvUiQbv.mjs} +136 -136
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-MQ4ZtR6S.mjs → edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs} +172 -173
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-eMXMvSnV.mjs → edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs} +53 -53
  12. package/dist/{edit.vue_vue_type_script_setup_true_lang-BKQkhngP.mjs → edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs} +108 -108
  13. package/dist/{import-upload-BvBtwEbI.mjs → import-upload-BaJGVcNb.mjs} +6 -6
  14. package/dist/{import-upload-BM5kcXdg.mjs → import-upload-CC1Ho43e.mjs} +2 -2
  15. package/dist/{index-D2e-NU3E.mjs → index-BV5uRZXE.mjs} +24 -22
  16. package/dist/{index-nhzVBt2y.mjs → index-CAzxJ_Vp.mjs} +38 -38
  17. package/dist/{index-D2BUGsak.mjs → index-Di1yx94g.mjs} +32 -30
  18. package/dist/{index-Dsf1qOUx.mjs → index-IpHv0Vzi.mjs} +1 -1
  19. package/dist/{index-Bxg8G8aA.mjs → index-WHNNztBg.mjs} +30 -28
  20. package/dist/{index-BzqZLipq.mjs → index-cpyRUYdS.mjs} +57 -55
  21. package/dist/{index-EhejgmO6.mjs → index-dIcRC4jE.mjs} +7 -13
  22. package/dist/{index-CdQGs3Vu.mjs → index-q_wZjCJN.mjs} +30 -28
  23. package/dist/index.mjs +1021 -936
  24. package/dist/{index.vue_vue_type_script_setup_true_lang-DhcyCvVN.mjs → index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs} +2 -2
  25. package/dist/{info-rnc-sgQt.mjs → info-BUKhtcuu.mjs} +2 -2
  26. package/dist/{info-DBObKyIh.mjs → info-Bn5mhJtq.mjs} +2 -2
  27. package/dist/{info-BZ7IZet8.mjs → info-Dx5fzSIP.mjs} +2 -2
  28. package/dist/{info-B2d8xPwW.mjs → info-EodyqiPm.mjs} +2 -2
  29. package/dist/{info-CoizfoOq.mjs → info-G1z1-aeX.mjs} +2 -2
  30. package/dist/{info-CCfX-q4c.mjs → info-bYWisCey.mjs} +2 -2
  31. package/dist/style.css +1 -1
  32. package/dts/api/itsm-sys-org/index.d.ts +5 -0
  33. package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -3
  34. package/dts/api/itsm-sys-user-ext/types.d.ts +8 -0
  35. package/dts/constant.d.ts +0 -4
  36. package/dts/index.d.ts +0 -1
  37. package/dts/lang/itsmsys/en.d.ts +130 -49
  38. package/dts/lang/itsmsys/zh-cn.d.ts +0 -3
  39. package/dts/views/itsmsys/itsm-sys-org-invoice/edit.vue.d.ts +8 -2
  40. package/dts/views/itsmsys/itsm-sys-user-man/edit.vue.d.ts +8 -2
  41. package/dts/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +8 -2
  42. package/dts/views/itsmsys/itsm-sys-user-out/edit.vue.d.ts +8 -2
  43. package/package.json +58 -60
  44. package/dist/import-upload-CjeTCQBx.mjs +0 -161
@@ -1,11 +1,12 @@
1
- import { defineComponent as B, mergeModels as R, ref as $, useModel as A, reactive as q, resolveComponent as u, openBlock as F, createBlock as G, withCtx as s, createElementVNode as K, createVNode as e, createTextVNode as v, toDisplayString as N, unref as r } from "vue";
1
+ import { defineComponent as z, mergeModels as q, ref as N, useModel as F, reactive as R, resolveComponent as m, openBlock as K, createBlock as A, withCtx as s, createElementVNode as G, createVNode as e, createTextVNode as $, toDisplayString as E, unref as o } from "vue";
2
2
  import { ElMessage as j } from "element-plus";
3
- import { useI18n as Z } from "vue-i18n";
3
+ import { useI18n as L } from "vue-i18n";
4
+ import { validatePhoneNumber as H, validateEmail as Q, validateIDCard as W } from "jmash-core";
5
+ import { D as g, C as y } from "./index-dIcRC4jE.mjs";
4
6
  import { sysUserExtApi as b } from "./index.mjs";
5
- import { D as f, C as y } from "./index-EhejgmO6.mjs";
6
- const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
7
+ const X = { class: "dialog-footer" }, oe = /* @__PURE__ */ z({
7
8
  __name: "edit",
8
- props: /* @__PURE__ */ R({
9
+ props: /* @__PURE__ */ q({
9
10
  entityKey: {
10
11
  type: Object,
11
12
  default: () => {
@@ -15,11 +16,11 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
15
16
  modelValue: { type: Boolean },
16
17
  modelModifiers: {}
17
18
  }),
18
- emits: /* @__PURE__ */ R(["refresh"], ["update:modelValue"]),
19
- setup(c, { emit: M }) {
20
- const { t: m } = Z(), U = $(), p = A(c, "modelValue"), V = M;
21
- f.sysOrgBizDict.useValues();
22
- let o = q({
19
+ emits: /* @__PURE__ */ q(["refresh"], ["update:modelValue"]),
20
+ setup(c, { emit: C }) {
21
+ const { t: u } = L(), U = N(), p = F(c, "modelValue"), V = C;
22
+ g.sysOrgBizDict.useValues();
23
+ let r = R({
23
24
  requestId: Math.random() * 10 + "",
24
25
  updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineerType,engineerJobMode,engineerSpecialty,engineerCertificate",
25
26
  userType: y.userType.companyOps,
@@ -27,102 +28,104 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
27
28
  engineerType: y.engineerType.ease_test,
28
29
  engineerJobMode: y.engineerJobMode.resident
29
30
  });
30
- const S = (l, a, n) => {
31
- a === void 0 && n(new Error(m("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(a) || n(new Error(m("sysUserOps.mobilePhoneRequireds"))), n();
32
- }, C = q({
31
+ const M = (a, l, n) => {
32
+ l && (Q(l) || n(new Error(u("sysUserOps.emailRequireds")))), n();
33
+ }, S = (a, l, n) => {
34
+ l && (W(l) || n(new Error(u("sysUserOps.idNoLengthRequired")))), n();
35
+ }, I = R({
33
36
  realName: [
34
37
  {
35
38
  required: !0,
36
- message: m("sysUserOps.realNameRequired"),
39
+ message: u("sysUserOps.realNameRequired"),
37
40
  trigger: "blur"
38
41
  }
39
42
  ],
40
43
  mobilePhone: [
41
44
  {
42
45
  required: !0,
43
- trigger: "blur",
44
- validator: S
46
+ validator: (a, l, n) => {
47
+ l ? H(l) ? n() : n(new Error(u("sysUserOps.mobilePhoneRequireds"))) : n(new Error(u("sysUserOps.mobilePhoneRequired")));
48
+ },
49
+ trigger: "blur"
45
50
  }
46
51
  ],
47
52
  email: [
48
53
  {
49
- pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
50
- message: m("sysUserOps.emailRequireds"),
54
+ validator: M,
51
55
  trigger: "blur"
52
56
  }
53
57
  ],
54
58
  idNo: [
55
59
  {
56
- pattern: /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2]\d|3[0-1])\d{3}(\d|X)$/,
57
- message: m("sysUserOps.idNoLengthRequired"),
60
+ validator: S,
58
61
  trigger: "blur"
59
62
  }
60
63
  ],
61
64
  engineerType: [
62
65
  {
63
66
  required: !0,
64
- message: m("sysUserOps.engineerTypeRequired"),
67
+ message: u("sysUserOps.engineerTypeRequired"),
65
68
  trigger: "change"
66
69
  }
67
70
  ],
68
71
  engineerJobMode: [
69
72
  {
70
73
  required: !0,
71
- message: m("sysUserOps.engineerJobModeRequired"),
74
+ message: u("sysUserOps.engineerJobModeRequired"),
72
75
  trigger: "change"
73
76
  }
74
77
  ],
75
78
  orgId: [
76
79
  {
77
80
  required: !0,
78
- message: m("sysUserOps.orgIdRequired"),
81
+ message: u("sysUserOps.orgIdRequired"),
79
82
  trigger: "change"
80
83
  }
81
84
  ]
82
- }), h = c, T = Object.keys(h.entityKey), O = $(T.length >= 1);
83
- O.value && b.findById(h.entityKey).then(({ data: l }) => {
84
- Object.assign(o, l), o.gender === "unknown" && (o.gender = "");
85
+ }), h = c, T = Object.keys(h.entityKey), O = N(T.length >= 1);
86
+ O.value && b.findById(h.entityKey).then(({ data: a }) => {
87
+ Object.assign(r, a), r.gender === "unknown" && (r.gender = "");
85
88
  });
86
- const E = async () => {
87
- var l;
88
- await ((l = U.value) == null ? void 0 : l.validate((a) => {
89
- a && (O.value ? b.update(o).then((n) => {
89
+ const D = async () => {
90
+ var a;
91
+ await ((a = U.value) == null ? void 0 : a.validate((l) => {
92
+ l && (O.value ? b.update(r).then((n) => {
90
93
  n.status === 200 && (j({
91
- message: m("common.submitSuccess"),
94
+ message: u("common.submitSuccess"),
92
95
  type: "success"
93
96
  }), p.value && (p.value = !1), V("refresh", n.status === 200));
94
- }) : b.create(o).then((n) => {
97
+ }) : b.create(r).then((n) => {
95
98
  n.status === 200 && (j({
96
- message: m("common.submitSuccess"),
99
+ message: u("common.submitSuccess"),
97
100
  type: "success"
98
101
  }), p.value && (p.value = !1), V("refresh", n.status === 200));
99
102
  }));
100
103
  }));
101
104
  };
102
- function _() {
105
+ function w() {
103
106
  p.value && (p.value = !1);
104
107
  }
105
- return (l, a) => {
106
- const n = u("jmash-select"), d = u("el-form-item"), i = u("el-col"), g = u("el-input"), I = u("jmash-enum-select"), D = u("jmash-dict-select"), J = u("jmash-enum-radio"), P = u("el-row"), k = u("el-form"), w = u("el-button"), z = u("el-dialog");
107
- return F(), G(z, {
108
+ return (a, l) => {
109
+ const n = m("jmash-select"), d = m("el-form-item"), i = m("el-col"), f = m("el-input"), v = m("jmash-enum-radio"), J = m("jmash-dict-select"), P = m("el-row"), k = m("el-form"), _ = m("el-button"), B = m("el-dialog");
110
+ return K(), A(B, {
108
111
  modelValue: p.value,
109
- "onUpdate:modelValue": a[11] || (a[11] = (t) => p.value = t),
110
- onClose: _
112
+ "onUpdate:modelValue": l[11] || (l[11] = (t) => p.value = t),
113
+ onClose: w
111
114
  }, {
112
115
  footer: s(() => [
113
- K("div", L, [
114
- e(w, { onClick: _ }, {
116
+ G("div", X, [
117
+ e(_, { onClick: w }, {
115
118
  default: s(() => [
116
- v(N(l.$t("common.cancel")), 1)
119
+ $(E(a.$t("common.cancel")), 1)
117
120
  ]),
118
121
  _: 1
119
122
  }),
120
- e(w, {
123
+ e(_, {
121
124
  type: "primary",
122
- onClick: E
125
+ onClick: D
123
126
  }, {
124
127
  default: s(() => [
125
- v(N(l.$t("common.confirm")), 1)
128
+ $(E(a.$t("common.confirm")), 1)
126
129
  ]),
127
130
  _: 1
128
131
  })
@@ -132,9 +135,9 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
132
135
  e(k, {
133
136
  ref_key: "sysUserExtFormRef",
134
137
  ref: U,
135
- model: r(o),
138
+ model: o(r),
136
139
  "label-width": "100px",
137
- rules: C
140
+ rules: I
138
141
  }, {
139
142
  default: s(() => [
140
143
  e(P, null, {
@@ -142,15 +145,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
142
145
  e(i, { span: 12 }, {
143
146
  default: s(() => [
144
147
  e(d, {
145
- label: l.$t("sysUserOps.orgId"),
148
+ label: a.$t("sysUserOps.orgId"),
146
149
  prop: "orgId"
147
150
  }, {
148
151
  default: s(() => [
149
152
  e(n, {
150
- modelValue: r(o).orgId,
151
- "onUpdate:modelValue": a[0] || (a[0] = (t) => r(o).orgId = t),
152
- placeholder: l.$t("sysUserOps.orgIdRequired"),
153
- data: r(f).sysOrgBizDict.values,
153
+ modelValue: o(r).orgId,
154
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => o(r).orgId = t),
155
+ placeholder: a.$t("sysUserOps.orgIdRequired"),
156
+ data: o(g).sysOrgBizDict.values,
154
157
  clearable: "",
155
158
  class: "w-full"
156
159
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -163,14 +166,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
163
166
  e(i, { span: 12 }, {
164
167
  default: s(() => [
165
168
  e(d, {
166
- label: l.$t("sysUserOps.realName"),
169
+ label: a.$t("sysUserOps.realName"),
167
170
  prop: "realName"
168
171
  }, {
169
172
  default: s(() => [
170
- e(g, {
171
- modelValue: r(o).realName,
172
- "onUpdate:modelValue": a[1] || (a[1] = (t) => r(o).realName = t),
173
- placeholder: l.$t("sysUserOps.realNameRequired"),
173
+ e(f, {
174
+ modelValue: o(r).realName,
175
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => o(r).realName = t),
176
+ placeholder: a.$t("sysUserOps.realNameRequired"),
174
177
  maxlength: "8",
175
178
  "show-word-limit": "",
176
179
  clearable: ""
@@ -184,18 +187,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
184
187
  e(i, { span: 12 }, {
185
188
  default: s(() => [
186
189
  e(d, {
187
- label: l.$t("sysUserOps.gender"),
190
+ label: a.$t("sysUserOps.gender"),
188
191
  prop: "gender"
189
192
  }, {
190
193
  default: s(() => [
191
- e(I, {
192
- modelValue: r(o).gender,
193
- "onUpdate:modelValue": a[2] || (a[2] = (t) => r(o).gender = t),
194
- clearable: "",
195
- placeholder: l.$t("sysUserOps.genderRequired"),
196
- "enum-type": "jmash.protobuf.Gender",
197
- class: "w-full"
198
- }, null, 8, ["modelValue", "placeholder"])
194
+ e(v, {
195
+ modelValue: o(r).gender,
196
+ "onUpdate:modelValue": l[2] || (l[2] = (t) => o(r).gender = t),
197
+ data: o(g).genderDict.values
198
+ }, null, 8, ["modelValue", "data"])
199
199
  ]),
200
200
  _: 1
201
201
  }, 8, ["label"])
@@ -205,14 +205,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
205
205
  e(i, { span: 12 }, {
206
206
  default: s(() => [
207
207
  e(d, {
208
- label: l.$t("sysUserOps.mobilePhone"),
208
+ label: a.$t("sysUserOps.mobilePhone"),
209
209
  prop: "mobilePhone"
210
210
  }, {
211
211
  default: s(() => [
212
- e(g, {
213
- modelValue: r(o).mobilePhone,
214
- "onUpdate:modelValue": a[3] || (a[3] = (t) => r(o).mobilePhone = t),
215
- placeholder: l.$t("sysUserOps.mobilePhoneRequired"),
212
+ e(f, {
213
+ modelValue: o(r).mobilePhone,
214
+ "onUpdate:modelValue": l[3] || (l[3] = (t) => o(r).mobilePhone = t),
215
+ placeholder: a.$t("sysUserOps.mobilePhoneRequired"),
216
216
  maxlength: "11",
217
217
  "show-word-limit": "",
218
218
  clearable: ""
@@ -226,14 +226,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
226
226
  e(i, { span: 12 }, {
227
227
  default: s(() => [
228
228
  e(d, {
229
- label: l.$t("sysUserOps.email"),
229
+ label: a.$t("sysUserOps.email"),
230
230
  prop: "email"
231
231
  }, {
232
232
  default: s(() => [
233
- e(g, {
234
- modelValue: r(o).email,
235
- "onUpdate:modelValue": a[4] || (a[4] = (t) => r(o).email = t),
236
- placeholder: l.$t("sysUserOps.emailRequired"),
233
+ e(f, {
234
+ modelValue: o(r).email,
235
+ "onUpdate:modelValue": l[4] || (l[4] = (t) => o(r).email = t),
236
+ placeholder: a.$t("sysUserOps.emailRequired"),
237
237
  maxlength: "30",
238
238
  "show-word-limit": "",
239
239
  clearable: ""
@@ -247,14 +247,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
247
247
  e(i, { span: 12 }, {
248
248
  default: s(() => [
249
249
  e(d, {
250
- label: l.$t("sysUserOps.idNo"),
250
+ label: a.$t("sysUserOps.idNo"),
251
251
  prop: "idNo"
252
252
  }, {
253
253
  default: s(() => [
254
- e(g, {
255
- modelValue: r(o).idNo,
256
- "onUpdate:modelValue": a[5] || (a[5] = (t) => r(o).idNo = t),
257
- placeholder: l.$t("sysUserOps.idNoRequired"),
254
+ e(f, {
255
+ modelValue: o(r).idNo,
256
+ "onUpdate:modelValue": l[5] || (l[5] = (t) => o(r).idNo = t),
257
+ placeholder: a.$t("sysUserOps.idNoRequired"),
258
258
  maxlength: "18",
259
259
  "show-word-limit": "",
260
260
  clearable: ""
@@ -268,15 +268,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
268
268
  e(i, { span: 12 }, {
269
269
  default: s(() => [
270
270
  e(d, {
271
- label: l.$t("sysUserOps.engineerType"),
271
+ label: a.$t("sysUserOps.engineerType"),
272
272
  prop: "engineerType"
273
273
  }, {
274
274
  default: s(() => [
275
275
  e(n, {
276
- modelValue: r(o).engineerType,
277
- "onUpdate:modelValue": a[6] || (a[6] = (t) => r(o).engineerType = t),
278
- placeholder: l.$t("sysUserOps.engineerTypeRequired"),
279
- data: r(f).engineerTypeDictEnum.values,
276
+ modelValue: o(r).engineerType,
277
+ "onUpdate:modelValue": l[6] || (l[6] = (t) => o(r).engineerType = t),
278
+ placeholder: a.$t("sysUserOps.engineerTypeRequired"),
279
+ data: o(g).engineerTypeDictEnum.values,
280
280
  clearable: "",
281
281
  class: "w-full"
282
282
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -289,15 +289,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
289
289
  e(i, { span: 12 }, {
290
290
  default: s(() => [
291
291
  e(d, {
292
- label: l.$t("sysUserOps.engineerCertificate"),
292
+ label: a.$t("sysUserOps.engineerCertificate"),
293
293
  prop: "engineerCertificate"
294
294
  }, {
295
295
  default: s(() => [
296
- e(D, {
297
- modelValue: r(o).engineerCertificate,
298
- "onUpdate:modelValue": a[7] || (a[7] = (t) => r(o).engineerCertificate = t),
299
- placeholder: l.$t("sysUserOps.engineerCertificateRequired"),
300
- "type-code": r(y).DICT_ENGINEER_GRADE,
296
+ e(J, {
297
+ modelValue: o(r).engineerCertificate,
298
+ "onUpdate:modelValue": l[7] || (l[7] = (t) => o(r).engineerCertificate = t),
299
+ placeholder: a.$t("sysUserOps.engineerCertificateRequired"),
300
+ "type-code": o(y).DICT_ENGINEER_GRADE,
301
301
  clearable: "",
302
302
  filterable: "",
303
303
  class: "w-full"
@@ -311,15 +311,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
311
311
  e(i, { span: 12 }, {
312
312
  default: s(() => [
313
313
  e(d, {
314
- label: l.$t("sysUserOps.engineerJobMode"),
314
+ label: a.$t("sysUserOps.engineerJobMode"),
315
315
  prop: "engineerJobMode"
316
316
  }, {
317
317
  default: s(() => [
318
318
  e(n, {
319
- modelValue: r(o).engineerJobMode,
320
- "onUpdate:modelValue": a[8] || (a[8] = (t) => r(o).engineerJobMode = t),
321
- placeholder: l.$t("sysUserOps.engineerJobModeRequired"),
322
- data: r(f).engineerJobModeDictEnum.values,
319
+ modelValue: o(r).engineerJobMode,
320
+ "onUpdate:modelValue": l[8] || (l[8] = (t) => o(r).engineerJobMode = t),
321
+ placeholder: a.$t("sysUserOps.engineerJobModeRequired"),
322
+ data: o(g).engineerJobModeDictEnum.values,
323
323
  clearable: "",
324
324
  class: "w-full"
325
325
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -332,14 +332,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
332
332
  e(i, { span: 12 }, {
333
333
  default: s(() => [
334
334
  e(d, {
335
- label: l.$t("sysUserOps.jobStatus"),
335
+ label: a.$t("sysUserOps.jobStatus"),
336
336
  prop: "jobStatus"
337
337
  }, {
338
338
  default: s(() => [
339
- e(J, {
340
- modelValue: r(o).jobStatus,
341
- "onUpdate:modelValue": a[9] || (a[9] = (t) => r(o).jobStatus = t),
342
- data: r(f).jobStatusDictEnum.values
339
+ e(v, {
340
+ modelValue: o(r).jobStatus,
341
+ "onUpdate:modelValue": l[9] || (l[9] = (t) => o(r).jobStatus = t),
342
+ data: o(g).jobStatusDictEnum.values
343
343
  }, null, 8, ["modelValue", "data"])
344
344
  ]),
345
345
  _: 1
@@ -350,14 +350,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
350
350
  e(i, { span: 24 }, {
351
351
  default: s(() => [
352
352
  e(d, {
353
- label: l.$t("sysUserOps.engineerSpecialty"),
353
+ label: a.$t("sysUserOps.engineerSpecialty"),
354
354
  prop: "engineerSpecialty"
355
355
  }, {
356
356
  default: s(() => [
357
- e(g, {
358
- modelValue: r(o).engineerSpecialty,
359
- "onUpdate:modelValue": a[10] || (a[10] = (t) => r(o).engineerSpecialty = t),
360
- placeholder: l.$t("sysUserOps.engineerSpecialtyRequired"),
357
+ e(f, {
358
+ modelValue: o(r).engineerSpecialty,
359
+ "onUpdate:modelValue": l[10] || (l[10] = (t) => o(r).engineerSpecialty = t),
360
+ placeholder: a.$t("sysUserOps.engineerSpecialtyRequired"),
361
361
  type: "textarea",
362
362
  autosize: { minRows: 2 },
363
363
  maxlength: "200",
@@ -383,5 +383,5 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
383
383
  }
384
384
  });
385
385
  export {
386
- x as _
386
+ oe as _
387
387
  };
@@ -2,7 +2,7 @@ import { defineComponent as A, ref as i, reactive as C, toRefs as H, resolveComp
2
2
  import { useI18n as L } from "vue-i18n";
3
3
  import { ElMessage as f } from "element-plus";
4
4
  import { fileApi as w, useUserStore as D } from "jmash-core";
5
- import { D as I } from "./index-EhejgmO6.mjs";
5
+ import { D as I } from "./index-dIcRC4jE.mjs";
6
6
  import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-primary)" } }, X = { class: "dialog-footer" }, Y = /* @__PURE__ */ A({
8
8
  __name: "import-upload",
@@ -18,7 +18,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
18
18
  },
19
19
  emits: ["templateDown", "importEvents", "uploadClosed"],
20
20
  setup(_, { emit: U }) {
21
- const { t: g } = L(), b = i(w.uploadUrl()), k = i(w.authHeader()), $ = C({
21
+ const { t: g } = L(), k = i(w.uploadUrl()), $ = i(w.authHeader()), b = C({
22
22
  tenant: D().user.tenant
23
23
  }), E = i(), d = C({
24
24
  tenant: D().user.tenant,
@@ -120,9 +120,9 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
120
120
  ref_key: "uploadRef",
121
121
  ref: E,
122
122
  drag: "",
123
- action: b.value,
124
- headers: k.value,
125
- data: $,
123
+ action: k.value,
124
+ headers: $.value,
125
+ data: b,
126
126
  limit: 1,
127
127
  "on-success": q,
128
128
  "on-exceed": B,
@@ -155,7 +155,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
155
155
  }, 8, ["modelValue", "title"]);
156
156
  };
157
157
  }
158
- }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-bbd878f7"]]);
158
+ }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-2d832d04"]]);
159
159
  export {
160
160
  se as default
161
161
  };
@@ -2,7 +2,7 @@ import { defineComponent as A, ref as i, reactive as C, toRefs as H, resolveComp
2
2
  import { useI18n as L } from "vue-i18n";
3
3
  import { ElMessage as f } from "element-plus";
4
4
  import { fileApi as w, useUserStore as D } from "jmash-core";
5
- import { D as I } from "./index-EhejgmO6.mjs";
5
+ import { D as I } from "./index-dIcRC4jE.mjs";
6
6
  import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-primary)" } }, X = { class: "dialog-footer" }, Y = /* @__PURE__ */ A({
8
8
  __name: "import-upload",
@@ -155,7 +155,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
155
155
  }, 8, ["modelValue", "title"]);
156
156
  };
157
157
  }
158
- }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-3072267a"]]);
158
+ }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-96565565"]]);
159
159
  export {
160
160
  se as default
161
161
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as W, ref as $, resolveComponent as s, resolveDirective as X, openBlock as i, createElementBlock as h, createElementVNode as V, createVNode as n, withCtx as l, withKeys as N, unref as a, createTextVNode as m, toDisplayString as d, withDirectives as _, createBlock as C, isRef as O, createCommentVNode as Y } from "vue";
2
- import { useTableHooks as Z } from "jmash-core";
3
- import { useI18n as x } from "vue-i18n";
4
- import { useRouter as ee } from "vue-router";
5
- import { C as k, D as te } from "./index-EhejgmO6.mjs";
6
- import { sysOrgApi as oe } from "./index.mjs";
7
- const le = { class: "app-container" }, ne = { class: "search-container" }, ae = ["onClick"], se = ["onClick"], re = ["onClick"], be = /* @__PURE__ */ W({
1
+ import { defineComponent as W, ref as $, onActivated as X, resolveComponent as s, resolveDirective as Y, openBlock as i, createElementBlock as h, createElementVNode as V, createVNode as n, withCtx as l, withKeys as N, unref as a, createTextVNode as m, toDisplayString as d, withDirectives as _, createBlock as C, isRef as O, createCommentVNode as Z } from "vue";
2
+ import { useTableHooks as x } from "jmash-core";
3
+ import { useI18n as ee } from "vue-i18n";
4
+ import { useRouter as te } from "vue-router";
5
+ import { C as k, D as oe } from "./index-dIcRC4jE.mjs";
6
+ import { sysOrgApi as le } from "./index.mjs";
7
+ const ne = { class: "app-container" }, ae = { class: "search-container" }, se = ["onClick"], re = ["onClick"], ue = ["onClick"], _e = /* @__PURE__ */ W({
8
8
  __name: "index",
9
- setup(ue) {
10
- const { t: T } = x(), v = ee(), u = $({
9
+ setup(ie) {
10
+ const { t: T } = ee(), v = te(), u = $({
11
11
  orgType: k.orgType.outsource,
12
12
  orderName: k.orderBy.orderName,
13
13
  orderAsc: k.orderBy.orderAsc
@@ -18,7 +18,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
18
18
  listLoading: R,
19
19
  tableData: j,
20
20
  total: f
21
- } = Z(T, oe, u);
21
+ } = x(T, le, u);
22
22
  let c = $([
23
23
  {
24
24
  label: "sysOut.orgName",
@@ -92,10 +92,12 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
92
92
  function z(o) {
93
93
  r.handleSort(o.prop, o.order);
94
94
  }
95
- return r.getList(), (o, t) => {
96
- const B = s("el-input"), w = s("el-form-item"), y = s("el-col"), A = s("jmash-select"), g = s("el-button"), P = s("el-row"), K = s("el-form"), L = s("jmash-column-select"), Q = s("jmash-mobileIns-component"), F = s("el-switch"), H = s("jmash-table"), G = s("jmash-pagination"), J = s("el-card"), b = X("hasPerm");
97
- return i(), h("div", le, [
98
- V("div", ne, [
95
+ return X(() => {
96
+ r.getList();
97
+ }), (o, t) => {
98
+ const A = s("el-input"), w = s("el-form-item"), y = s("el-col"), B = s("jmash-select"), g = s("el-button"), P = s("el-row"), K = s("el-form"), L = s("jmash-column-select"), Q = s("jmash-mobileIns-component"), F = s("el-switch"), H = s("jmash-table"), G = s("jmash-pagination"), J = s("el-card"), b = Y("hasPerm");
99
+ return i(), h("div", ne, [
100
+ V("div", ae, [
99
101
  n(K, {
100
102
  ref_key: "queryFormRef",
101
103
  ref: I,
@@ -112,7 +114,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
112
114
  prop: "likeOrgName"
113
115
  }, {
114
116
  default: l(() => [
115
- n(B, {
117
+ n(A, {
116
118
  modelValue: u.value.likeOrgName,
117
119
  "onUpdate:modelValue": t[0] || (t[0] = (e) => u.value.likeOrgName = e),
118
120
  placeholder: o.$t("sysOut.orgNameRequired"),
@@ -133,11 +135,11 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
133
135
  prop: "status"
134
136
  }, {
135
137
  default: l(() => [
136
- n(A, {
138
+ n(B, {
137
139
  modelValue: u.value.status,
138
140
  "onUpdate:modelValue": t[2] || (t[2] = (e) => u.value.status = e),
139
141
  placeholder: o.$t("sysOut.statusRequired"),
140
- data: a(te).hasStatusDict.values,
142
+ data: a(oe).hasStatusDict.values,
141
143
  clearable: "",
142
144
  onKeyup: t[3] || (t[3] = N((e) => a(r).handleQuery(), ["enter"]))
143
145
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -243,7 +245,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
243
245
  "page-size": u.value.pageSize,
244
246
  "onUpdate:pageSize": t[10] || (t[10] = (e) => u.value.pageSize = e),
245
247
  onPagination: t[11] || (t[11] = (e) => a(r).getList())
246
- }, null, 8, ["total", "current-page", "page-size"])) : Y("", !0)
248
+ }, null, 8, ["total", "current-page", "page-size"])) : Z("", !0)
247
249
  ]),
248
250
  default: l(() => [
249
251
  n(H, {
@@ -277,7 +279,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
277
279
  onClick: (p) => U(e.data.row)
278
280
  }, [
279
281
  m(d(o.$t("common.edit")), 1)
280
- ], 8, ae)), [
282
+ ], 8, se)), [
281
283
  [b, ["itsmsys:sys_org_out:update"]]
282
284
  ]),
283
285
  _((i(), h("span", {
@@ -285,7 +287,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
285
287
  onClick: (p) => a(r).deleteRecord(e.data.row)
286
288
  }, [
287
289
  m(d(o.$t("common.delete")), 1)
288
- ], 8, se)), [
290
+ ], 8, re)), [
289
291
  [b, ["itsmsys:sys_org_out:delete"]]
290
292
  ]),
291
293
  _((i(), h("span", {
@@ -293,7 +295,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
293
295
  onClick: (p) => q(e.data.row)
294
296
  }, [
295
297
  m(d(o.$t("common.view")), 1)
296
- ], 8, re)), [
298
+ ], 8, ue)), [
297
299
  [b, ["itsmsys:sys_org_out:view"]]
298
300
  ])
299
301
  ]),
@@ -307,5 +309,5 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
307
309
  }
308
310
  });
309
311
  export {
310
- be as default
312
+ _e as default
311
313
  };