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,26 +1,28 @@
1
- import { defineComponent as I, ref as g, reactive as O, resolveComponent as i, openBlock as f, createElementBlock as K, createVNode as e, withCtx as l, unref as a, createTextVNode as A, toDisplayString as F, createBlock as q, createCommentVNode as w } from "vue";
1
+ import { defineComponent as K, ref as g, reactive as w, resolveComponent as i, openBlock as f, createElementBlock as A, createVNode as e, withCtx as l, unref as s, createTextVNode as E, toDisplayString as F, createBlock as q, createCommentVNode as v } from "vue";
2
2
  import { ElMessage as $ } from "element-plus";
3
- import { s as E } from "./index-B2xwBTw-.mjs";
4
- import { useI18n as D } from "vue-i18n";
5
- import { useRoute as J, useRouter as z } from "vue-router";
6
- import { routerUtil as v } from "jmash-core";
7
- import { C as b } from "./index-EhejgmO6.mjs";
3
+ import { s as D } from "./index-B2xwBTw-.mjs";
4
+ import { useI18n as J } from "vue-i18n";
5
+ import { useRoute as z, useRouter as H } from "vue-router";
6
+ import { validatePhoneOrLandline as Q, routerUtil as R } from "jmash-core";
7
+ import { C as b } from "./index-dIcRC4jE.mjs";
8
8
  import { sysOrgApi as y } from "./index.mjs";
9
- import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-DhcyCvVN.mjs";
10
- const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
9
+ import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs";
10
+ const X = { class: "app-container" }, re = /* @__PURE__ */ K({
11
11
  __name: "edit",
12
- setup(W) {
13
- const { t: m } = D(), c = J(), _ = z(), P = g(), p = g("first");
14
- let o = O({
12
+ setup(Y) {
13
+ const { t: m } = J(), c = z(), _ = H(), P = g(), p = g("first");
14
+ let o = w({
15
15
  requestId: Math.random() * 10 + "",
16
16
  updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,geoLongitude,geoLatitude",
17
17
  orgType: b.orgType.outsource
18
18
  });
19
19
  const V = g("");
20
- function R(t) {
20
+ function T(t) {
21
21
  p.value = t.props.name;
22
22
  }
23
- const T = O({
23
+ const h = (t, a, r) => {
24
+ a && (Q(a) || r(new Error(m("sysOut.contactPersonMobileRequireds")))), r();
25
+ }, C = w({
24
26
  orgName: [
25
27
  {
26
28
  required: !0,
@@ -51,15 +53,13 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
51
53
  ],
52
54
  contactPersonMobile: [
53
55
  {
54
- pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
55
- message: m("sysOut.contactPersonMobileRequireds"),
56
+ validator: h,
56
57
  trigger: "blur"
57
58
  }
58
59
  ],
59
60
  contactPersonTel: [
60
61
  {
61
- pattern: /^((\d{3,4}-)?[0-9]{7,8})/,
62
- message: m("sysOut.contactPersonTelRequireds"),
62
+ validator: h,
63
63
  trigger: "blur"
64
64
  }
65
65
  ]
@@ -67,68 +67,68 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
67
67
  function k() {
68
68
  V.value = o.address;
69
69
  }
70
- function C(t) {
70
+ function N(t) {
71
71
  o.geoLatitude = t[0], o.geoLongitude = t[1];
72
72
  }
73
- function N(t) {
73
+ function M(t) {
74
74
  o.address = t;
75
75
  }
76
76
  c.query.entityKey && y.findById({ orgId: c.query.entityKey }).then(({ data: t }) => {
77
77
  Object.assign(o, t);
78
78
  });
79
- const M = async () => {
79
+ const U = async () => {
80
80
  var t;
81
- await ((t = P.value) == null ? void 0 : t.validate((s) => {
82
- var d, r;
83
- s && (o.geoLongitude = (d = o.geoLongitude) == null ? void 0 : d.toString(), o.geoLatitude = (r = o.geoLatitude) == null ? void 0 : r.toString(), o.orgId ? y.update(o).then((u) => {
81
+ await ((t = P.value) == null ? void 0 : t.validate((a) => {
82
+ var r, d;
83
+ a && (o.geoLongitude = (r = o.geoLongitude) == null ? void 0 : r.toString(), o.geoLatitude = (d = o.geoLatitude) == null ? void 0 : d.toString(), o.orgId ? y.update(o).then((u) => {
84
84
  u.status === 200 && ($({
85
85
  message: m("common.submitSuccess"),
86
86
  type: "success"
87
- }), v.closeTagView(c.fullPath, _, !1));
87
+ }), R.closeTagView(c.fullPath, _, !1));
88
88
  }) : y.create(o).then((u) => {
89
89
  u.status === 200 && ($({
90
90
  message: m("common.submitSuccess"),
91
91
  type: "success"
92
- }), v.closeTagView(c.fullPath, _, !1));
92
+ }), R.closeTagView(c.fullPath, _, !1));
93
93
  }));
94
94
  }));
95
95
  };
96
- return (t, s) => {
97
- const d = i("el-input"), r = i("el-form-item"), u = i("el-col"), h = i("el-button"), U = i("jmash-amap"), S = i("el-row"), j = i("el-form"), L = i("el-tab-pane"), B = i("el-tabs"), G = i("el-card");
98
- return f(), K("div", Q, [
99
- e(G, { shadow: "never" }, {
96
+ return (t, a) => {
97
+ const r = i("el-input"), d = i("el-form-item"), u = i("el-col"), L = i("el-button"), S = i("jmash-amap"), j = i("el-row"), B = i("el-form"), O = i("el-tab-pane"), G = i("el-tabs"), I = i("el-card");
98
+ return f(), A("div", X, [
99
+ e(I, { shadow: "never" }, {
100
100
  default: l(() => [
101
- e(B, {
101
+ e(G, {
102
102
  modelValue: p.value,
103
- "onUpdate:modelValue": s[8] || (s[8] = (n) => p.value = n),
104
- onTabClick: R
103
+ "onUpdate:modelValue": a[8] || (a[8] = (n) => p.value = n),
104
+ onTabClick: T
105
105
  }, {
106
106
  default: l(() => [
107
- e(L, {
107
+ e(O, {
108
108
  label: "外协单位信息",
109
109
  name: "first"
110
110
  }, {
111
111
  default: l(() => [
112
- e(j, {
112
+ e(B, {
113
113
  ref_key: "sysOutFormRef",
114
114
  ref: P,
115
- model: a(o),
115
+ model: s(o),
116
116
  "label-width": "135px",
117
- rules: T
117
+ rules: C
118
118
  }, {
119
119
  default: l(() => [
120
- e(S, null, {
120
+ e(j, null, {
121
121
  default: l(() => [
122
122
  e(u, { span: 24 }, {
123
123
  default: l(() => [
124
- e(r, {
124
+ e(d, {
125
125
  label: t.$t("sysOut.orgName"),
126
126
  prop: "orgName"
127
127
  }, {
128
128
  default: l(() => [
129
- e(d, {
130
- modelValue: a(o).orgName,
131
- "onUpdate:modelValue": s[0] || (s[0] = (n) => a(o).orgName = n),
129
+ e(r, {
130
+ modelValue: s(o).orgName,
131
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => s(o).orgName = n),
132
132
  placeholder: t.$t("sysOut.orgNameRequired"),
133
133
  maxlength: "50",
134
134
  "show-word-limit": "",
@@ -142,14 +142,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
142
142
  }),
143
143
  e(u, { span: 12 }, {
144
144
  default: l(() => [
145
- e(r, {
145
+ e(d, {
146
146
  label: t.$t("sysOut.contactPerson"),
147
147
  prop: "contactPerson"
148
148
  }, {
149
149
  default: l(() => [
150
- e(d, {
151
- modelValue: a(o).contactPerson,
152
- "onUpdate:modelValue": s[1] || (s[1] = (n) => a(o).contactPerson = n),
150
+ e(r, {
151
+ modelValue: s(o).contactPerson,
152
+ "onUpdate:modelValue": a[1] || (a[1] = (n) => s(o).contactPerson = n),
153
153
  placeholder: t.$t("sysOut.contactPersonRequired"),
154
154
  maxlength: "20",
155
155
  "show-word-limit": "",
@@ -163,14 +163,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
163
163
  }),
164
164
  e(u, { span: 12 }, {
165
165
  default: l(() => [
166
- e(r, {
166
+ e(d, {
167
167
  label: t.$t("sysOut.contactPersonPosi"),
168
168
  prop: "contactPersonPosi"
169
169
  }, {
170
170
  default: l(() => [
171
- e(d, {
172
- modelValue: a(o).contactPersonPosi,
173
- "onUpdate:modelValue": s[2] || (s[2] = (n) => a(o).contactPersonPosi = n),
171
+ e(r, {
172
+ modelValue: s(o).contactPersonPosi,
173
+ "onUpdate:modelValue": a[2] || (a[2] = (n) => s(o).contactPersonPosi = n),
174
174
  placeholder: t.$t("sysOut.contactPersonPosiRequired"),
175
175
  maxlength: "30",
176
176
  "show-word-limit": "",
@@ -184,14 +184,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
184
184
  }),
185
185
  e(u, { span: 12 }, {
186
186
  default: l(() => [
187
- e(r, {
187
+ e(d, {
188
188
  label: t.$t("sysOut.contactPersonTel"),
189
189
  prop: "contactPersonTel"
190
190
  }, {
191
191
  default: l(() => [
192
- e(d, {
193
- modelValue: a(o).contactPersonTel,
194
- "onUpdate:modelValue": s[3] || (s[3] = (n) => a(o).contactPersonTel = n),
192
+ e(r, {
193
+ modelValue: s(o).contactPersonTel,
194
+ "onUpdate:modelValue": a[3] || (a[3] = (n) => s(o).contactPersonTel = n),
195
195
  placeholder: t.$t("sysOut.contactPersonTelRequired"),
196
196
  maxlength: "12",
197
197
  "show-word-limit": "",
@@ -205,14 +205,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
205
205
  }),
206
206
  e(u, { span: 12 }, {
207
207
  default: l(() => [
208
- e(r, {
208
+ e(d, {
209
209
  label: t.$t("sysOut.contactPersonMobile"),
210
210
  prop: "contactPersonMobile"
211
211
  }, {
212
212
  default: l(() => [
213
- e(d, {
214
- modelValue: a(o).contactPersonMobile,
215
- "onUpdate:modelValue": s[4] || (s[4] = (n) => a(o).contactPersonMobile = n),
213
+ e(r, {
214
+ modelValue: s(o).contactPersonMobile,
215
+ "onUpdate:modelValue": a[4] || (a[4] = (n) => s(o).contactPersonMobile = n),
216
216
  placeholder: t.$t("sysOut.contactPersonMobileRequired"),
217
217
  maxlength: "11",
218
218
  "show-word-limit": "",
@@ -226,22 +226,22 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
226
226
  }),
227
227
  e(u, { span: 24 }, {
228
228
  default: l(() => [
229
- e(r, {
229
+ e(d, {
230
230
  label: t.$t("sysOut.address"),
231
231
  prop: "address"
232
232
  }, {
233
233
  default: l(() => [
234
- e(d, {
235
- modelValue: a(o).address,
236
- "onUpdate:modelValue": s[5] || (s[5] = (n) => a(o).address = n),
234
+ e(r, {
235
+ modelValue: s(o).address,
236
+ "onUpdate:modelValue": a[5] || (a[5] = (n) => s(o).address = n),
237
237
  placeholder: t.$t("sysOut.addressRequired"),
238
238
  maxlength: "120",
239
239
  "show-word-limit": "",
240
240
  clearable: ""
241
241
  }, {
242
242
  append: l(() => [
243
- e(h, {
244
- icon: a(E),
243
+ e(L, {
244
+ icon: s(D),
245
245
  onClick: k
246
246
  }, null, 8, ["icon"])
247
247
  ]),
@@ -255,16 +255,16 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
255
255
  }),
256
256
  e(u, { span: 24 }, {
257
257
  default: l(() => [
258
- e(r, null, {
258
+ e(d, null, {
259
259
  default: l(() => [
260
- e(U, {
261
- "security-js-code": a(b).amapConfig.securityJsCode,
262
- "api-key": a(b).amapConfig.apiKey,
260
+ e(S, {
261
+ "security-js-code": s(b).amapConfig.securityJsCode,
262
+ "api-key": s(b).amapConfig.apiKey,
263
263
  address: V.value,
264
- lat: a(o).geoLatitude,
265
- lng: a(o).geoLongitude,
266
- onGetLatLng: C,
267
- onGetAddress: N
264
+ lat: s(o).geoLatitude,
265
+ lng: s(o).geoLongitude,
266
+ onGetLatLng: N,
267
+ onGetAddress: M
268
268
  }, null, 8, ["security-js-code", "api-key", "address", "lat", "lng"])
269
269
  ]),
270
270
  _: 1
@@ -274,14 +274,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
274
274
  }),
275
275
  e(u, { span: 12 }, {
276
276
  default: l(() => [
277
- e(r, {
277
+ e(d, {
278
278
  label: t.$t("sysOut.geoLongitude"),
279
279
  prop: "geoLongitude"
280
280
  }, {
281
281
  default: l(() => [
282
- e(d, {
283
- modelValue: a(o).geoLongitude,
284
- "onUpdate:modelValue": s[6] || (s[6] = (n) => a(o).geoLongitude = n),
282
+ e(r, {
283
+ modelValue: s(o).geoLongitude,
284
+ "onUpdate:modelValue": a[6] || (a[6] = (n) => s(o).geoLongitude = n),
285
285
  clearable: "",
286
286
  disabled: !0
287
287
  }, null, 8, ["modelValue"])
@@ -293,14 +293,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
293
293
  }),
294
294
  e(u, { span: 12 }, {
295
295
  default: l(() => [
296
- e(r, {
296
+ e(d, {
297
297
  label: t.$t("sysOut.geoLatitude"),
298
298
  prop: "geoLatitude"
299
299
  }, {
300
300
  default: l(() => [
301
- e(d, {
302
- modelValue: a(o).geoLatitude,
303
- "onUpdate:modelValue": s[7] || (s[7] = (n) => a(o).geoLatitude = n),
301
+ e(r, {
302
+ modelValue: s(o).geoLatitude,
303
+ "onUpdate:modelValue": a[7] || (a[7] = (n) => s(o).geoLatitude = n),
304
304
  clearable: "",
305
305
  disabled: !0
306
306
  }, null, 8, ["modelValue"])
@@ -313,14 +313,14 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
313
313
  ]),
314
314
  _: 1
315
315
  }),
316
- e(r, null, {
316
+ e(d, null, {
317
317
  default: l(() => [
318
- e(h, {
318
+ e(L, {
319
319
  type: "primary",
320
- onClick: M
320
+ onClick: U
321
321
  }, {
322
322
  default: l(() => [
323
- A(F(t.$t("common.save")), 1)
323
+ E(F(t.$t("common.save")), 1)
324
324
  ]),
325
325
  _: 1
326
326
  })
@@ -333,16 +333,16 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
333
333
  ]),
334
334
  _: 1
335
335
  }),
336
- a(c).query.entityKey ? (f(), q(L, {
336
+ s(c).query.entityKey ? (f(), q(O, {
337
337
  key: 0,
338
338
  label: "发票信息",
339
339
  name: "second"
340
340
  }, {
341
341
  default: l(() => [
342
- p.value === "second" ? (f(), q(H, { key: 0 })) : w("", !0)
342
+ p.value === "second" ? (f(), q(W, { key: 0 })) : v("", !0)
343
343
  ]),
344
344
  _: 1
345
- })) : w("", !0)
345
+ })) : v("", !0)
346
346
  ]),
347
347
  _: 1
348
348
  }, 8, ["modelValue"])
@@ -354,5 +354,5 @@ const Q = { class: "app-container" }, se = /* @__PURE__ */ I({
354
354
  }
355
355
  });
356
356
  export {
357
- se as default
357
+ re as default
358
358
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BKQkhngP.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs";
2
2
  export {
3
3
  f as default
4
4
  };