xyvcard-itsmsys 0.0.11 → 0.0.13

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 (52) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/{edit-Dxs-2AFY.mjs → edit-B7N9QLYv.mjs} +104 -87
  3. package/dist/{edit-BSIP_9Mq.mjs → edit-CBnnqc6q.mjs} +104 -86
  4. package/dist/{edit-CiCHPkRg.mjs → edit-CuD0yKla.mjs} +1 -1
  5. package/dist/{edit-BcE5qrWo.mjs → edit-D2lhB7lU.mjs} +1 -1
  6. package/dist/{edit-BsUWSNnA.mjs → edit-DQ04LbhC.mjs} +96 -79
  7. package/dist/{edit-znznl9Td.mjs → edit-IRLCMnWT.mjs} +1 -1
  8. package/dist/{edit-CW0kqOpj.mjs → edit-g4L03h6h.mjs} +1 -1
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-CEzM2X-C.mjs +463 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-DD9BucLK.mjs +463 -0
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-DjrTJAzO.mjs → edit.vue_vue_type_script_setup_true_lang-Daxe3FpV.mjs} +98 -68
  12. package/dist/edit.vue_vue_type_script_setup_true_lang-SzJApeB-.mjs +482 -0
  13. package/dist/import-upload-Bsl-7w0B.mjs +161 -0
  14. package/dist/import-upload-COLdGpcs.mjs +161 -0
  15. package/dist/index-B4M6ZC7N.mjs +196 -0
  16. package/dist/{index-BV3Je3Rq.mjs → index-BBPQd1dS.mjs} +139 -128
  17. package/dist/{index-BIvJ7rs4.mjs → index-BxX1lrD5.mjs} +64 -62
  18. package/dist/{index-CzE5REdf.mjs → index-CzVhcXfx.mjs} +57 -55
  19. package/dist/index-DNpEXtyQ.mjs +423 -0
  20. package/dist/index-Dh_kNwqv.mjs +470 -0
  21. package/dist/{index-CNRO77Xg.mjs → index-Dih4mOx4.mjs} +1 -1
  22. package/dist/{index-4qnVgDwe.mjs → index-n4FekcLF.mjs} +210 -138
  23. package/dist/index.mjs +293 -256
  24. package/dist/{index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs → index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs} +41 -34
  25. package/dist/info-BHylKqOX.mjs +186 -0
  26. package/dist/info-BZOWTNSd.mjs +209 -0
  27. package/dist/{info-BP7wPWFZ.mjs → info-CDtqpKVD.mjs} +80 -58
  28. package/dist/{info-DRYPl2T-.mjs → info-XDDe5ve6.mjs} +58 -47
  29. package/dist/{info-DCRqBi8M.mjs → info-bwhmPzeG.mjs} +71 -60
  30. package/dist/info-dBqoxL-p.mjs +209 -0
  31. package/dist/style.css +1 -1
  32. package/dts/api/dict.d.ts +7 -7
  33. package/dts/api/index.d.ts +6 -2
  34. package/dts/api/itsm-sys-org/types.d.ts +1 -0
  35. package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -0
  36. package/dts/api/itsm-sys-user-ext/index.d.ts +3 -1
  37. package/dts/api/itsm-sys-user-ext/types.d.ts +19 -1
  38. package/dts/constant.d.ts +9 -0
  39. package/dts/index.d.ts +1 -0
  40. package/dts/lang/itsmsys/zh-cn.d.ts +17 -0
  41. package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +31 -0
  42. package/dts/views/itsmsys/itsm-sys-user-out/import-upload.vue.d.ts +31 -0
  43. package/package.json +3 -3
  44. package/dist/edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs +0 -422
  45. package/dist/edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs +0 -422
  46. package/dist/edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs +0 -404
  47. package/dist/index-BTO0NHK6.mjs +0 -397
  48. package/dist/index-Hh4b5GAI.mjs +0 -351
  49. package/dist/index-cBbN-uY2.mjs +0 -155
  50. package/dist/info-BCPme1g5.mjs +0 -187
  51. package/dist/info-CtGMbfQJ.mjs +0 -187
  52. package/dist/info-Dk3RzCIp.mjs +0 -176
@@ -1,25 +1,26 @@
1
- import { defineComponent as K, ref as g, reactive as h, resolveComponent as i, openBlock as f, createElementBlock as A, createVNode as e, withCtx as l, unref as a, createTextVNode as B, toDisplayString as j, createBlock as L, createCommentVNode as q } from "vue";
2
- import { ElMessage as w } from "element-plus";
3
- import { s as F } from "./index-B2xwBTw-.mjs";
4
- import { useI18n as E } from "vue-i18n";
5
- import { useRoute as G } from "vue-router";
6
- import { C as y } from "./index-cBbN-uY2.mjs";
7
- import { sysOrgApi as b } from "./index.mjs";
8
- import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs";
9
- const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
1
+ import { defineComponent as I, ref as p, 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";
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 { C as b } from "./index-B4M6ZC7N.mjs";
7
+ import { sysOrgApi as y } from "./index.mjs";
8
+ import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs";
9
+ import { routerUtil as v } from "jmash-core";
10
+ const Q = { class: "app-container" }, re = /* @__PURE__ */ I({
10
11
  __name: "edit",
11
- setup(z) {
12
- const { t: m } = E(), p = G(), _ = g(), c = g("first");
13
- let o = h({
12
+ setup(W) {
13
+ const { t: m } = D(), c = J(), _ = z(), P = p(), g = p("first");
14
+ let o = O({
14
15
  requestId: Math.random() * 10 + "",
15
16
  updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,geoLongitude,geoLatitude",
16
- orgType: y.orgType.cloud
17
+ orgType: b.orgType.cloud
17
18
  });
18
- const P = g("");
19
- function $(t) {
20
- c.value = t.props.name, o.requestId = Math.random() * 10 + "", o.orgId = p.query.entityKey;
19
+ const V = p("");
20
+ function R(t) {
21
+ g.value = t.props.name;
21
22
  }
22
- const v = h({
23
+ const T = O({
23
24
  orgName: [
24
25
  {
25
26
  required: !0,
@@ -34,6 +35,20 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
34
35
  trigger: "blur"
35
36
  }
36
37
  ],
38
+ geoLongitude: [
39
+ {
40
+ required: !0,
41
+ message: m("sysGov.geoLongitudeRequired"),
42
+ trigger: "change"
43
+ }
44
+ ],
45
+ geoLatitude: [
46
+ {
47
+ required: !0,
48
+ message: m("sysGov.geoLatitudeRequired"),
49
+ trigger: "change"
50
+ }
51
+ ],
37
52
  contactPersonMobile: [
38
53
  {
39
54
  pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
@@ -49,64 +64,64 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
49
64
  }
50
65
  ]
51
66
  });
52
- function M() {
53
- P.value = o.address;
67
+ function k() {
68
+ V.value = o.address;
54
69
  }
55
- function k(t) {
70
+ function C(t) {
56
71
  o.geoLatitude = t[0], o.geoLongitude = t[1];
57
72
  }
58
- function C(t) {
73
+ function N(t) {
59
74
  o.address = t;
60
75
  }
61
- p.query.entityKey && b.findById({ orgId: p.query.entityKey }).then(({ data: t }) => {
76
+ c.query.entityKey && y.findById({ orgId: c.query.entityKey }).then(({ data: t }) => {
62
77
  Object.assign(o, t);
63
78
  });
64
- const R = async () => {
79
+ const M = async () => {
65
80
  var t;
66
- await ((t = _.value) == null ? void 0 : t.validate((r) => {
67
- var u, d;
68
- r && (o.geoLongitude = (u = o.geoLongitude) == null ? void 0 : u.toString(), o.geoLatitude = (d = o.geoLatitude) == null ? void 0 : d.toString(), o.orgId ? b.update(o).then((n) => {
69
- n.status === 200 && (w({
81
+ await ((t = P.value) == null ? void 0 : t.validate((r) => {
82
+ var u, n;
83
+ r && (o.geoLongitude = (u = o.geoLongitude) == null ? void 0 : u.toString(), o.geoLatitude = (n = o.geoLatitude) == null ? void 0 : n.toString(), o.orgId ? y.update(o).then((d) => {
84
+ d.status === 200 && ($({
70
85
  message: m("common.submitSuccess"),
71
86
  type: "success"
72
- }), c.value = "second");
73
- }) : b.create(o).then((n) => {
74
- n.status === 200 && (w({
87
+ }), v.closeTagView(c.fullPath, _, !1));
88
+ }) : y.create(o).then((d) => {
89
+ d.status === 200 && ($({
75
90
  message: m("common.submitSuccess"),
76
91
  type: "success"
77
- }), p.query.entityKey = n.data.orgId, c.value = "second");
92
+ }), v.closeTagView(c.fullPath, _, !1));
78
93
  }));
79
94
  }));
80
95
  };
81
96
  return (t, r) => {
82
- const u = i("el-input"), d = i("el-form-item"), n = i("el-col"), V = i("el-button"), T = i("AMap"), N = i("el-row"), U = i("el-form"), O = i("el-tab-pane"), I = i("el-tabs"), S = i("el-card");
83
- return f(), A("div", J, [
84
- e(S, { shadow: "never" }, {
97
+ const u = i("el-input"), n = i("el-form-item"), d = 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" }, {
85
100
  default: l(() => [
86
- e(I, {
87
- modelValue: c.value,
88
- "onUpdate:modelValue": r[8] || (r[8] = (s) => c.value = s),
89
- onTabClick: $
101
+ e(B, {
102
+ modelValue: g.value,
103
+ "onUpdate:modelValue": r[8] || (r[8] = (s) => g.value = s),
104
+ onTabClick: R
90
105
  }, {
91
106
  default: l(() => [
92
- e(O, {
107
+ e(L, {
93
108
  label: "公司信息",
94
109
  name: "first"
95
110
  }, {
96
111
  default: l(() => [
97
- e(U, {
112
+ e(j, {
98
113
  ref_key: "sysOrgFormRef",
99
- ref: _,
114
+ ref: P,
100
115
  model: a(o),
101
116
  "label-width": "120px",
102
- rules: v
117
+ rules: T
103
118
  }, {
104
119
  default: l(() => [
105
- e(N, null, {
120
+ e(S, null, {
106
121
  default: l(() => [
107
- e(n, { span: 24 }, {
122
+ e(d, { span: 24 }, {
108
123
  default: l(() => [
109
- e(d, {
124
+ e(n, {
110
125
  label: t.$t("sysOrg.orgName"),
111
126
  prop: "orgName"
112
127
  }, {
@@ -125,9 +140,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
125
140
  ]),
126
141
  _: 1
127
142
  }),
128
- e(n, { span: 12 }, {
143
+ e(d, { span: 12 }, {
129
144
  default: l(() => [
130
- e(d, {
145
+ e(n, {
131
146
  label: t.$t("sysOrg.contactPerson"),
132
147
  prop: "contactPerson"
133
148
  }, {
@@ -146,9 +161,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
146
161
  ]),
147
162
  _: 1
148
163
  }),
149
- e(n, { span: 12 }, {
164
+ e(d, { span: 12 }, {
150
165
  default: l(() => [
151
- e(d, {
166
+ e(n, {
152
167
  label: t.$t("sysOrg.contactPersonPosi"),
153
168
  prop: "contactPersonPosi"
154
169
  }, {
@@ -167,9 +182,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
167
182
  ]),
168
183
  _: 1
169
184
  }),
170
- e(n, { span: 12 }, {
185
+ e(d, { span: 12 }, {
171
186
  default: l(() => [
172
- e(d, {
187
+ e(n, {
173
188
  label: t.$t("sysOrg.contactPersonTel"),
174
189
  prop: "contactPersonTel"
175
190
  }, {
@@ -188,9 +203,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
188
203
  ]),
189
204
  _: 1
190
205
  }),
191
- e(n, { span: 12 }, {
206
+ e(d, { span: 12 }, {
192
207
  default: l(() => [
193
- e(d, {
208
+ e(n, {
194
209
  label: t.$t("sysOrg.contactPersonMobile"),
195
210
  prop: "contactPersonMobile"
196
211
  }, {
@@ -209,9 +224,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
209
224
  ]),
210
225
  _: 1
211
226
  }),
212
- e(n, { span: 24 }, {
227
+ e(d, { span: 24 }, {
213
228
  default: l(() => [
214
- e(d, {
229
+ e(n, {
215
230
  label: t.$t("sysOrg.address"),
216
231
  prop: "address"
217
232
  }, {
@@ -225,9 +240,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
225
240
  clearable: ""
226
241
  }, {
227
242
  append: l(() => [
228
- e(V, {
229
- icon: a(F),
230
- onClick: M
243
+ e(h, {
244
+ icon: a(E),
245
+ onClick: k
231
246
  }, null, 8, ["icon"])
232
247
  ]),
233
248
  _: 1
@@ -238,26 +253,28 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
238
253
  ]),
239
254
  _: 1
240
255
  }),
241
- e(n, { span: 24 }, {
256
+ e(d, { span: 24 }, {
242
257
  default: l(() => [
243
- e(d, null, {
258
+ e(n, null, {
244
259
  default: l(() => [
245
- e(T, {
246
- "security-js-code": a(y).amapConfig.securityJsCode,
247
- "api-key": a(y).amapConfig.apiKey,
248
- address: P.value,
249
- onGetLatLng: k,
250
- onGetAddress: C
251
- }, null, 8, ["security-js-code", "api-key", "address"])
260
+ e(U, {
261
+ "security-js-code": a(b).amapConfig.securityJsCode,
262
+ "api-key": a(b).amapConfig.apiKey,
263
+ address: V.value,
264
+ lat: a(o).geoLatitude,
265
+ lng: a(o).geoLongitude,
266
+ onGetLatLng: C,
267
+ onGetAddress: N
268
+ }, null, 8, ["security-js-code", "api-key", "address", "lat", "lng"])
252
269
  ]),
253
270
  _: 1
254
271
  })
255
272
  ]),
256
273
  _: 1
257
274
  }),
258
- e(n, { span: 12 }, {
275
+ e(d, { span: 12 }, {
259
276
  default: l(() => [
260
- e(d, {
277
+ e(n, {
261
278
  label: t.$t("sysOrg.geoLongitude"),
262
279
  prop: "geoLongitude"
263
280
  }, {
@@ -274,9 +291,9 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
274
291
  ]),
275
292
  _: 1
276
293
  }),
277
- e(n, { span: 12 }, {
294
+ e(d, { span: 12 }, {
278
295
  default: l(() => [
279
- e(d, {
296
+ e(n, {
280
297
  label: t.$t("sysOrg.geoLatitude"),
281
298
  prop: "geoLatitude"
282
299
  }, {
@@ -296,14 +313,14 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
296
313
  ]),
297
314
  _: 1
298
315
  }),
299
- e(d, null, {
316
+ e(n, null, {
300
317
  default: l(() => [
301
- e(V, {
318
+ e(h, {
302
319
  type: "primary",
303
- onClick: R
320
+ onClick: M
304
321
  }, {
305
322
  default: l(() => [
306
- B(j(t.$t("common.save")), 1)
323
+ A(F(t.$t("common.save")), 1)
307
324
  ]),
308
325
  _: 1
309
326
  })
@@ -316,16 +333,16 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
316
333
  ]),
317
334
  _: 1
318
335
  }),
319
- a(p).query.entityKey ? (f(), L(O, {
336
+ a(c).query.entityKey ? (f(), q(L, {
320
337
  key: 0,
321
338
  label: "发票信息",
322
339
  name: "second"
323
340
  }, {
324
341
  default: l(() => [
325
- c.value === "second" ? (f(), L(D, { key: 0 })) : q("", !0)
342
+ g.value === "second" ? (f(), q(H, { key: 0 })) : w("", !0)
326
343
  ]),
327
344
  _: 1
328
- })) : q("", !0)
345
+ })) : w("", !0)
329
346
  ]),
330
347
  _: 1
331
348
  }, 8, ["modelValue"])
@@ -337,5 +354,5 @@ const J = { class: "app-container" }, oe = /* @__PURE__ */ K({
337
354
  }
338
355
  });
339
356
  export {
340
- oe as default
357
+ re as default
341
358
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DjrTJAzO.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-Daxe3FpV.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-SzJApeB-.mjs";
2
2
  export {
3
3
  f as default
4
4
  };