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,27 +1,26 @@
1
- import { defineComponent as A, ref as f, reactive as h, resolveComponent as i, openBlock as g, createElementBlock as D, createVNode as e, withCtx as l, unref as a, createTextVNode as j, toDisplayString as F, createBlock as G, createCommentVNode as q } from "vue";
1
+ import { defineComponent as A, ref as g, reactive as G, onMounted as F, resolveComponent as i, openBlock as f, createElementBlock as O, createVNode as e, withCtx as l, unref as a, createTextVNode as z, toDisplayString as E, createBlock as L, createCommentVNode as q } from "vue";
2
2
  import { ElMessage as w } from "element-plus";
3
- import { s as z } from "./index-B2xwBTw-.mjs";
4
- import { useI18n as E } from "vue-i18n";
5
- import { useRoute as O } from "vue-router";
6
- import { D as L, C as y } from "./index-cBbN-uY2.mjs";
3
+ import { s as J } from "./index-B2xwBTw-.mjs";
4
+ import { useI18n as H } from "vue-i18n";
5
+ import { useRoute as Q, useRouter as W } from "vue-router";
6
+ import { routerUtil as $ } from "jmash-core";
7
+ import { C as y, D as R } from "./index-B4M6ZC7N.mjs";
7
8
  import { sysOrgApi as b } from "./index.mjs";
8
- import { _ as J } from "./index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs";
9
- const H = { class: "app-container" }, le = /* @__PURE__ */ A({
9
+ import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs";
10
+ const Y = { class: "app-container" }, de = /* @__PURE__ */ A({
10
11
  __name: "edit",
11
- setup(Q) {
12
- const { t: m } = E(), p = O();
13
- L.parentIdBizDict.useValues();
14
- const _ = f(), c = f("first");
15
- let o = h({
12
+ setup(Z) {
13
+ const { t: m } = H(), c = Q(), _ = W(), v = g(), p = g("first");
14
+ let o = G({
16
15
  requestId: Math.random() * 10 + "",
17
16
  updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,parentId,geoLongitude,geoLatitude",
18
17
  orgType: y.orgType.hall
19
18
  });
20
- const v = f("");
21
- function $(t) {
22
- c.value = t.props.name, o.requestId = Math.random() * 10 + "", o.orgId = p.query.entityKey;
19
+ const P = g("");
20
+ function I(t) {
21
+ p.value = t.props.name;
23
22
  }
24
- const I = h({
23
+ const T = G({
25
24
  orgName: [
26
25
  {
27
26
  required: !0,
@@ -36,6 +35,20 @@ const H = { class: "app-container" }, le = /* @__PURE__ */ A({
36
35
  trigger: "blur"
37
36
  }
38
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
+ ],
39
52
  contactPersonMobile: [
40
53
  {
41
54
  pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
@@ -52,70 +65,73 @@ const H = { class: "app-container" }, le = /* @__PURE__ */ A({
52
65
  ]
53
66
  });
54
67
  function k() {
55
- v.value = o.address;
68
+ P.value = o.address;
56
69
  }
57
- function M(t) {
70
+ function C(t) {
58
71
  o.geoLatitude = t[0], o.geoLongitude = t[1];
59
72
  }
60
- function R(t) {
73
+ function M(t) {
61
74
  o.address = t;
62
75
  }
63
- p.query.entityKey && b.findById({ orgId: p.query.entityKey }).then(({ data: t }) => {
76
+ c.query.entityKey && b.findById({ orgId: c.query.entityKey }).then(({ data: t }) => {
64
77
  Object.assign(o, t), o.parentId === "00000000-0000-0000-0000-000000000000" && (o.parentId = "");
65
78
  });
66
- const C = async () => {
79
+ const N = async () => {
67
80
  var t;
68
- await ((t = _.value) == null ? void 0 : t.validate((n) => {
69
- var u, d;
70
- n && (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((r) => {
71
- r.status === 200 && (w({
81
+ await ((t = v.value) == null ? void 0 : t.validate((s) => {
82
+ var u, r;
83
+ s && (o.geoLongitude = (u = o.geoLongitude) == null ? void 0 : u.toString(), o.geoLatitude = (r = o.geoLatitude) == null ? void 0 : r.toString(), o.orgId ? b.update(o).then((d) => {
84
+ d.status === 200 && (w({
72
85
  message: m("common.submitSuccess"),
73
86
  type: "success"
74
- }), c.value = "second");
75
- }) : b.create(o).then((r) => {
76
- r.status === 200 && (w({
87
+ }), $.closeTagView(c.fullPath, _, !1));
88
+ }) : b.create(o).then((d) => {
89
+ d.status === 200 && (w({
77
90
  message: m("common.submitSuccess"),
78
91
  type: "success"
79
- }), p.query.entityKey = r.data.orgId, c.value = "second");
92
+ }), $.closeTagView(c.fullPath, _, !1));
80
93
  }));
81
94
  }));
82
95
  };
83
- return (t, n) => {
84
- const u = i("el-input"), d = i("el-form-item"), r = i("el-col"), T = i("el-tree-select"), P = i("el-button"), N = i("AMap"), U = i("el-row"), S = i("el-form"), V = i("el-tab-pane"), B = i("el-tabs"), K = i("el-card");
85
- return g(), D("div", H, [
96
+ return F(() => {
97
+ const t = c.query.entityKey;
98
+ R.parentIdBizDict.useValues(t);
99
+ }), (t, s) => {
100
+ const u = i("el-input"), r = i("el-form-item"), d = i("el-col"), U = i("el-tree-select"), V = i("el-button"), S = i("jmash-amap"), B = i("el-row"), j = i("el-form"), h = i("el-tab-pane"), D = i("el-tabs"), K = i("el-card");
101
+ return f(), O("div", Y, [
86
102
  e(K, { shadow: "never" }, {
87
103
  default: l(() => [
88
- e(B, {
89
- modelValue: c.value,
90
- "onUpdate:modelValue": n[9] || (n[9] = (s) => c.value = s),
91
- onTabClick: $
104
+ e(D, {
105
+ modelValue: p.value,
106
+ "onUpdate:modelValue": s[9] || (s[9] = (n) => p.value = n),
107
+ onTabClick: I
92
108
  }, {
93
109
  default: l(() => [
94
- e(V, {
110
+ e(h, {
95
111
  label: "厅局信息",
96
112
  name: "first"
97
113
  }, {
98
114
  default: l(() => [
99
- e(S, {
115
+ e(j, {
100
116
  ref_key: "sysGovFormRef",
101
- ref: _,
117
+ ref: v,
102
118
  model: a(o),
103
119
  "label-width": "120px",
104
- rules: I
120
+ rules: T
105
121
  }, {
106
122
  default: l(() => [
107
- e(U, null, {
123
+ e(B, null, {
108
124
  default: l(() => [
109
- e(r, { span: 12 }, {
125
+ e(d, { span: 12 }, {
110
126
  default: l(() => [
111
- e(d, {
127
+ e(r, {
112
128
  label: t.$t("sysGov.orgName"),
113
129
  prop: "orgName"
114
130
  }, {
115
131
  default: l(() => [
116
132
  e(u, {
117
133
  modelValue: a(o).orgName,
118
- "onUpdate:modelValue": n[0] || (n[0] = (s) => a(o).orgName = s),
134
+ "onUpdate:modelValue": s[0] || (s[0] = (n) => a(o).orgName = n),
119
135
  placeholder: t.$t("sysGov.orgNameRequired"),
120
136
  maxlength: "50",
121
137
  "show-word-limit": "",
@@ -127,17 +143,17 @@ const H = { class: "app-container" }, le = /* @__PURE__ */ A({
127
143
  ]),
128
144
  _: 1
129
145
  }),
130
- e(r, { span: 12 }, {
146
+ e(d, { span: 12 }, {
131
147
  default: l(() => [
132
- e(d, {
148
+ e(r, {
133
149
  label: t.$t("sysGov.parentId"),
134
150
  prop: "parentId"
135
151
  }, {
136
152
  default: l(() => [
137
- e(T, {
153
+ e(U, {
138
154
  modelValue: a(o).parentId,
139
- "onUpdate:modelValue": n[1] || (n[1] = (s) => a(o).parentId = s),
140
- data: a(L).parentIdBizDict.values,
155
+ "onUpdate:modelValue": s[1] || (s[1] = (n) => a(o).parentId = n),
156
+ data: a(R).parentIdBizDict.values,
141
157
  filterable: "",
142
158
  clearable: "",
143
159
  "check-strictly": "",
@@ -152,16 +168,16 @@ const H = { class: "app-container" }, le = /* @__PURE__ */ A({
152
168
  ]),
153
169
  _: 1
154
170
  }),
155
- e(r, { span: 12 }, {
171
+ e(d, { span: 12 }, {
156
172
  default: l(() => [
157
- e(d, {
173
+ e(r, {
158
174
  label: t.$t("sysGov.contactPerson"),
159
175
  prop: "contactPerson"
160
176
  }, {
161
177
  default: l(() => [
162
178
  e(u, {
163
179
  modelValue: a(o).contactPerson,
164
- "onUpdate:modelValue": n[2] || (n[2] = (s) => a(o).contactPerson = s),
180
+ "onUpdate:modelValue": s[2] || (s[2] = (n) => a(o).contactPerson = n),
165
181
  placeholder: t.$t("sysGov.contactPersonRequired"),
166
182
  maxlength: "20",
167
183
  "show-word-limit": "",
@@ -173,16 +189,16 @@ const H = { class: "app-container" }, le = /* @__PURE__ */ A({
173
189
  ]),
174
190
  _: 1
175
191
  }),
176
- e(r, { span: 12 }, {
192
+ e(d, { span: 12 }, {
177
193
  default: l(() => [
178
- e(d, {
194
+ e(r, {
179
195
  label: t.$t("sysGov.contactPersonPosi"),
180
196
  prop: "contactPersonPosi"
181
197
  }, {
182
198
  default: l(() => [
183
199
  e(u, {
184
200
  modelValue: a(o).contactPersonPosi,
185
- "onUpdate:modelValue": n[3] || (n[3] = (s) => a(o).contactPersonPosi = s),
201
+ "onUpdate:modelValue": s[3] || (s[3] = (n) => a(o).contactPersonPosi = n),
186
202
  placeholder: t.$t("sysGov.contactPersonPosiRequired"),
187
203
  maxlength: "30",
188
204
  "show-word-limit": "",
@@ -194,16 +210,16 @@ const H = { class: "app-container" }, le = /* @__PURE__ */ A({
194
210
  ]),
195
211
  _: 1
196
212
  }),
197
- e(r, { span: 12 }, {
213
+ e(d, { span: 12 }, {
198
214
  default: l(() => [
199
- e(d, {
215
+ e(r, {
200
216
  label: t.$t("sysGov.contactPersonTel"),
201
217
  prop: "contactPersonTel"
202
218
  }, {
203
219
  default: l(() => [
204
220
  e(u, {
205
221
  modelValue: a(o).contactPersonTel,
206
- "onUpdate:modelValue": n[4] || (n[4] = (s) => a(o).contactPersonTel = s),
222
+ "onUpdate:modelValue": s[4] || (s[4] = (n) => a(o).contactPersonTel = n),
207
223
  placeholder: t.$t("sysGov.contactPersonTelRequired"),
208
224
  maxlength: "12",
209
225
  "show-word-limit": "",
@@ -215,16 +231,16 @@ const H = { class: "app-container" }, le = /* @__PURE__ */ A({
215
231
  ]),
216
232
  _: 1
217
233
  }),
218
- e(r, { span: 12 }, {
234
+ e(d, { span: 12 }, {
219
235
  default: l(() => [
220
- e(d, {
236
+ e(r, {
221
237
  label: t.$t("sysGov.contactPersonMobile"),
222
238
  prop: "contactPersonMobile"
223
239
  }, {
224
240
  default: l(() => [
225
241
  e(u, {
226
242
  modelValue: a(o).contactPersonMobile,
227
- "onUpdate:modelValue": n[5] || (n[5] = (s) => a(o).contactPersonMobile = s),
243
+ "onUpdate:modelValue": s[5] || (s[5] = (n) => a(o).contactPersonMobile = n),
228
244
  placeholder: t.$t("sysGov.contactPersonMobileRequired"),
229
245
  maxlength: "11",
230
246
  "show-word-limit": "",
@@ -236,24 +252,24 @@ const H = { class: "app-container" }, le = /* @__PURE__ */ A({
236
252
  ]),
237
253
  _: 1
238
254
  }),
239
- e(r, { span: 24 }, {
255
+ e(d, { span: 24 }, {
240
256
  default: l(() => [
241
- e(d, {
257
+ e(r, {
242
258
  label: t.$t("sysGov.address"),
243
259
  prop: "address"
244
260
  }, {
245
261
  default: l(() => [
246
262
  e(u, {
247
263
  modelValue: a(o).address,
248
- "onUpdate:modelValue": n[6] || (n[6] = (s) => a(o).address = s),
264
+ "onUpdate:modelValue": s[6] || (s[6] = (n) => a(o).address = n),
249
265
  placeholder: t.$t("sysGov.addressRequired"),
250
266
  maxlength: "120",
251
267
  "show-word-limit": "",
252
268
  clearable: ""
253
269
  }, {
254
270
  append: l(() => [
255
- e(P, {
256
- icon: a(z),
271
+ e(V, {
272
+ icon: a(J),
257
273
  onClick: k
258
274
  }, null, 8, ["icon"])
259
275
  ]),
@@ -265,33 +281,35 @@ const H = { class: "app-container" }, le = /* @__PURE__ */ A({
265
281
  ]),
266
282
  _: 1
267
283
  }),
268
- e(r, { span: 24 }, {
284
+ e(d, { span: 24 }, {
269
285
  default: l(() => [
270
- e(d, null, {
286
+ e(r, null, {
271
287
  default: l(() => [
272
- e(N, {
288
+ e(S, {
273
289
  "security-js-code": a(y).amapConfig.securityJsCode,
274
290
  "api-key": a(y).amapConfig.apiKey,
275
- address: v.value,
276
- onGetLatLng: M,
277
- onGetAddress: R
278
- }, null, 8, ["security-js-code", "api-key", "address"])
291
+ address: P.value,
292
+ lat: a(o).geoLatitude,
293
+ lng: a(o).geoLongitude,
294
+ onGetLatLng: C,
295
+ onGetAddress: M
296
+ }, null, 8, ["security-js-code", "api-key", "address", "lat", "lng"])
279
297
  ]),
280
298
  _: 1
281
299
  })
282
300
  ]),
283
301
  _: 1
284
302
  }),
285
- e(r, { span: 12 }, {
303
+ e(d, { span: 12 }, {
286
304
  default: l(() => [
287
- e(d, {
305
+ e(r, {
288
306
  label: t.$t("sysGov.geoLongitude"),
289
307
  prop: "geoLongitude"
290
308
  }, {
291
309
  default: l(() => [
292
310
  e(u, {
293
311
  modelValue: a(o).geoLongitude,
294
- "onUpdate:modelValue": n[7] || (n[7] = (s) => a(o).geoLongitude = s),
312
+ "onUpdate:modelValue": s[7] || (s[7] = (n) => a(o).geoLongitude = n),
295
313
  clearable: "",
296
314
  disabled: !0
297
315
  }, null, 8, ["modelValue"])
@@ -301,16 +319,16 @@ const H = { class: "app-container" }, le = /* @__PURE__ */ A({
301
319
  ]),
302
320
  _: 1
303
321
  }),
304
- e(r, { span: 12 }, {
322
+ e(d, { span: 12 }, {
305
323
  default: l(() => [
306
- e(d, {
324
+ e(r, {
307
325
  label: t.$t("sysGov.geoLatitude"),
308
326
  prop: "geoLatitude"
309
327
  }, {
310
328
  default: l(() => [
311
329
  e(u, {
312
330
  modelValue: a(o).geoLatitude,
313
- "onUpdate:modelValue": n[8] || (n[8] = (s) => a(o).geoLatitude = s),
331
+ "onUpdate:modelValue": s[8] || (s[8] = (n) => a(o).geoLatitude = n),
314
332
  clearable: "",
315
333
  disabled: !0
316
334
  }, null, 8, ["modelValue"])
@@ -323,14 +341,14 @@ const H = { class: "app-container" }, le = /* @__PURE__ */ A({
323
341
  ]),
324
342
  _: 1
325
343
  }),
326
- e(d, null, {
344
+ e(r, null, {
327
345
  default: l(() => [
328
- e(P, {
346
+ e(V, {
329
347
  type: "primary",
330
- onClick: C
348
+ onClick: N
331
349
  }, {
332
350
  default: l(() => [
333
- j(F(t.$t("common.save")), 1)
351
+ z(E(t.$t("common.save")), 1)
334
352
  ]),
335
353
  _: 1
336
354
  })
@@ -343,13 +361,13 @@ const H = { class: "app-container" }, le = /* @__PURE__ */ A({
343
361
  ]),
344
362
  _: 1
345
363
  }),
346
- a(p).query.entityKey ? (g(), G(V, {
364
+ a(c).query.entityKey ? (f(), L(h, {
347
365
  key: 0,
348
366
  label: "发票信息",
349
367
  name: "second"
350
368
  }, {
351
369
  default: l(() => [
352
- c.value === "second" ? (g(), G(J, { key: 0 })) : q("", !0)
370
+ p.value === "second" ? (f(), L(X, { key: 0 })) : q("", !0)
353
371
  ]),
354
372
  _: 1
355
373
  })) : q("", !0)
@@ -364,5 +382,5 @@ const H = { class: "app-container" }, le = /* @__PURE__ */ A({
364
382
  }
365
383
  });
366
384
  export {
367
- le as default
385
+ de as default
368
386
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DD9BucLK.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-DOiO9REN.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-CEzM2X-C.mjs";
2
2
  export {
3
3
  f as default
4
4
  };