xyvcard-itsmsys 0.0.10 → 0.0.11

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 (39) hide show
  1. package/dist/{edit-RSO388mB.mjs → edit-BSIP_9Mq.mjs} +112 -114
  2. package/dist/{edit-DG_Iw1-J.mjs → edit-BcE5qrWo.mjs} +1 -1
  3. package/dist/{edit-BNe0hNw4.mjs → edit-BsUWSNnA.mjs} +108 -110
  4. package/dist/{edit-DdUUCXSa.mjs → edit-CW0kqOpj.mjs} +1 -1
  5. package/dist/{edit-BqPZHwxi.mjs → edit-CiCHPkRg.mjs} +1 -1
  6. package/dist/{edit-CyM6IuLb.mjs → edit-Dxs-2AFY.mjs} +118 -120
  7. package/dist/{edit-CwV1OVfe.mjs → edit-znznl9Td.mjs} +1 -1
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-DsN204D0.mjs → edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs} +125 -143
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-BQeZknmJ.mjs → edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs} +128 -146
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-DGAgGwVY.mjs → edit.vue_vue_type_script_setup_true_lang-DjrTJAzO.mjs} +1 -1
  11. package/dist/edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs +404 -0
  12. package/dist/{index-CMBtB1kH.mjs → index-4qnVgDwe.mjs} +4 -4
  13. package/dist/index-B2xwBTw-.mjs +20 -0
  14. package/dist/{index-CI8Z4rNf.mjs → index-BIvJ7rs4.mjs} +1 -1
  15. package/dist/{index-w2SWNZRB.mjs → index-BTO0NHK6.mjs} +2 -2
  16. package/dist/{index-NugT80P7.mjs → index-BV3Je3Rq.mjs} +1 -1
  17. package/dist/{index-DirPUdCN.mjs → index-CNRO77Xg.mjs} +1 -1
  18. package/dist/{index-DxILUznW.mjs → index-CzE5REdf.mjs} +1 -1
  19. package/dist/{index-CNGaGeE7.mjs → index-Hh4b5GAI.mjs} +2 -2
  20. package/dist/{index-CQ5Bo5a2.mjs → index-cBbN-uY2.mjs} +50 -30
  21. package/dist/index.mjs +481 -483
  22. package/dist/{index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs → index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs} +2 -2
  23. package/dist/{info-Dilg-bji.mjs → info-BCPme1g5.mjs} +1 -1
  24. package/dist/{info-BFZTqoY3.mjs → info-BP7wPWFZ.mjs} +1 -1
  25. package/dist/{info-DReeRuaA.mjs → info-CtGMbfQJ.mjs} +1 -1
  26. package/dist/{info-CXx2899k.mjs → info-DCRqBi8M.mjs} +3 -3
  27. package/dist/{info-DvYUiSRY.mjs → info-DRYPl2T-.mjs} +3 -3
  28. package/dist/{info-C0OHjgoS.mjs → info-Dk3RzCIp.mjs} +11 -11
  29. package/dist/style.css +1 -1
  30. package/dts/api/itsm-sys-org/types.d.ts +0 -2
  31. package/dts/api/itsm-sys-org-invoice/types.d.ts +0 -1
  32. package/dts/api/itsm-sys-user-ext/types.d.ts +0 -1
  33. package/dts/constant.d.ts +13 -0
  34. package/dts/index.d.ts +0 -1
  35. package/dts/lang/itsmsys/zh-cn.d.ts +9 -11
  36. package/package.json +3 -3
  37. package/dist/common-B2PCBCJ2.mjs +0 -13
  38. package/dist/edit.vue_vue_type_script_setup_true_lang-CX_5__mh.mjs +0 -438
  39. package/dist/index-BRupqW34.mjs +0 -96
@@ -1,30 +1,27 @@
1
- import { _ as K } from "./index-BRupqW34.mjs";
2
- import { defineComponent as S, ref as f, reactive as V, resolveComponent as i, openBlock as b, createElementBlock as E, createVNode as e, withCtx as l, unref as r, createTextVNode as A, toDisplayString as F, createBlock as G, createCommentVNode as q } from "vue";
3
- import { ElMessage as h } from "element-plus";
4
- import { useI18n as z } from "vue-i18n";
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";
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
5
  import { useRoute as O } from "vue-router";
6
- import { D as w, C as j } from "./index-CQ5Bo5a2.mjs";
7
- import { sysOrgApi as y } from "./index.mjs";
8
- import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs";
9
- const J = { class: "app-container" }, le = /* @__PURE__ */ S({
6
+ import { D as L, C as y } from "./index-cBbN-uY2.mjs";
7
+ 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({
10
10
  __name: "edit",
11
11
  setup(Q) {
12
- const { t: m } = z(), g = O();
13
- w.parentIdBizDict.useValues();
14
- const v = f(), c = f("first"), p = f("");
15
- p.value = g.query.entityKey;
16
- function L(t) {
17
- c.value = t.paneName;
18
- }
19
- let o = V({
12
+ const { t: m } = E(), p = O();
13
+ L.parentIdBizDict.useValues();
14
+ const _ = f(), c = f("first");
15
+ let o = h({
20
16
  requestId: Math.random() * 10 + "",
21
17
  updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,parentId,geoLongitude,geoLatitude",
22
- orgType: j.orgType.hall,
23
- status: !0
18
+ orgType: y.orgType.hall
24
19
  });
25
- const _ = (t, a, s) => {
26
- a === void 0 && s(new Error(m("sysGov.mobileRequired"))), /^(((\d{3,4}-)?[0-9]{7,8})|(1(3|4|5|6|7|8|9)\d{9}))$/.test(a) || s(new Error(m("sysGov.mobileRequireds"))), s();
27
- }, $ = V({
20
+ const v = f("");
21
+ function $(t) {
22
+ c.value = t.props.name, o.requestId = Math.random() * 10 + "", o.orgId = p.query.entityKey;
23
+ }
24
+ const I = h({
28
25
  orgName: [
29
26
  {
30
27
  required: !0,
@@ -39,97 +36,86 @@ const J = { class: "app-container" }, le = /* @__PURE__ */ S({
39
36
  trigger: "blur"
40
37
  }
41
38
  ],
42
- contactPerson: [
43
- {
44
- required: !0,
45
- message: m("sysGov.contactPersonRequired"),
46
- trigger: "blur"
47
- }
48
- ],
49
- contactPersonPosi: [
50
- {
51
- required: !0,
52
- message: m("sysGov.contactPersonPosiRequired"),
53
- trigger: "blur"
54
- }
55
- ],
56
39
  contactPersonMobile: [
57
40
  {
58
- required: !0,
59
- trigger: "blur",
60
- validator: _
41
+ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
42
+ message: m("sysGov.contactPersonMobileRequireds"),
43
+ trigger: "blur"
61
44
  }
62
45
  ],
63
46
  contactPersonTel: [
64
47
  {
65
- required: !0,
66
- trigger: "blur",
67
- validator: _
48
+ pattern: /^((\d{3,4}-)?[0-9]{7,8})/,
49
+ message: m("sysGov.contactPersonTelRequireds"),
50
+ trigger: "blur"
68
51
  }
69
52
  ]
70
53
  });
71
- function I(t) {
54
+ function k() {
55
+ v.value = o.address;
56
+ }
57
+ function M(t) {
72
58
  o.geoLatitude = t[0], o.geoLongitude = t[1];
73
59
  }
74
60
  function R(t) {
75
61
  o.address = t;
76
62
  }
77
- g.query.entityKey && y.findById({ orgId: g.query.entityKey }).then(({ data: t }) => {
63
+ p.query.entityKey && b.findById({ orgId: p.query.entityKey }).then(({ data: t }) => {
78
64
  Object.assign(o, t), o.parentId === "00000000-0000-0000-0000-000000000000" && (o.parentId = "");
79
65
  });
80
- const M = async () => {
66
+ const C = async () => {
81
67
  var t;
82
- await ((t = v.value) == null ? void 0 : t.validate((a) => {
83
- var s, d;
84
- a && (o.geoLongitude = (s = o.geoLongitude) == null ? void 0 : s.toString(), o.geoLatitude = (d = o.geoLatitude) == null ? void 0 : d.toString(), o.orgId = p.value, o.requestId = Math.random() * 10 + "", o.orgId ? y.update(o).then((u) => {
85
- u.status === 200 && (h({
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({
86
72
  message: m("common.submitSuccess"),
87
73
  type: "success"
88
74
  }), c.value = "second");
89
- }) : y.create(o).then((u) => {
90
- u.status === 200 && (h({
75
+ }) : b.create(o).then((r) => {
76
+ r.status === 200 && (w({
91
77
  message: m("common.submitSuccess"),
92
78
  type: "success"
93
- }), p.value = u.data.orgId, g.query.entityKey = p.value, c.value = "second");
79
+ }), p.query.entityKey = r.data.orgId, c.value = "second");
94
80
  }));
95
81
  }));
96
82
  };
97
- return (t, a) => {
98
- const s = i("el-input"), d = i("el-form-item"), u = i("el-col"), N = i("el-tree-select"), T = K, U = i("el-row"), k = i("el-button"), C = i("el-form"), P = i("el-tab-pane"), B = i("el-tabs"), D = i("el-card");
99
- return b(), E("div", J, [
100
- e(D, { shadow: "never" }, {
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, [
86
+ e(K, { shadow: "never" }, {
101
87
  default: l(() => [
102
88
  e(B, {
103
89
  modelValue: c.value,
104
- "onUpdate:modelValue": a[9] || (a[9] = (n) => c.value = n),
105
- onTabClick: L
90
+ "onUpdate:modelValue": n[9] || (n[9] = (s) => c.value = s),
91
+ onTabClick: $
106
92
  }, {
107
93
  default: l(() => [
108
- e(P, {
94
+ e(V, {
109
95
  label: "厅局信息",
110
96
  name: "first"
111
97
  }, {
112
98
  default: l(() => [
113
- e(C, {
99
+ e(S, {
114
100
  ref_key: "sysGovFormRef",
115
- ref: v,
116
- model: r(o),
101
+ ref: _,
102
+ model: a(o),
117
103
  "label-width": "120px",
118
- rules: $
104
+ rules: I
119
105
  }, {
120
106
  default: l(() => [
121
107
  e(U, null, {
122
108
  default: l(() => [
123
- e(u, { span: 12 }, {
109
+ e(r, { span: 12 }, {
124
110
  default: l(() => [
125
111
  e(d, {
126
112
  label: t.$t("sysGov.orgName"),
127
113
  prop: "orgName"
128
114
  }, {
129
115
  default: l(() => [
130
- e(s, {
131
- modelValue: r(o).orgName,
132
- "onUpdate:modelValue": a[0] || (a[0] = (n) => r(o).orgName = n),
116
+ e(u, {
117
+ modelValue: a(o).orgName,
118
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => a(o).orgName = s),
133
119
  placeholder: t.$t("sysGov.orgNameRequired"),
134
120
  maxlength: "50",
135
121
  "show-word-limit": "",
@@ -141,17 +127,17 @@ const J = { class: "app-container" }, le = /* @__PURE__ */ S({
141
127
  ]),
142
128
  _: 1
143
129
  }),
144
- e(u, { span: 12 }, {
130
+ e(r, { span: 12 }, {
145
131
  default: l(() => [
146
132
  e(d, {
147
133
  label: t.$t("sysGov.parentId"),
148
134
  prop: "parentId"
149
135
  }, {
150
136
  default: l(() => [
151
- e(N, {
152
- modelValue: r(o).parentId,
153
- "onUpdate:modelValue": a[1] || (a[1] = (n) => r(o).parentId = n),
154
- data: r(w).parentIdBizDict.values,
137
+ e(T, {
138
+ modelValue: a(o).parentId,
139
+ "onUpdate:modelValue": n[1] || (n[1] = (s) => a(o).parentId = s),
140
+ data: a(L).parentIdBizDict.values,
155
141
  filterable: "",
156
142
  clearable: "",
157
143
  "check-strictly": "",
@@ -166,16 +152,16 @@ const J = { class: "app-container" }, le = /* @__PURE__ */ S({
166
152
  ]),
167
153
  _: 1
168
154
  }),
169
- e(u, { span: 12 }, {
155
+ e(r, { span: 12 }, {
170
156
  default: l(() => [
171
157
  e(d, {
172
158
  label: t.$t("sysGov.contactPerson"),
173
159
  prop: "contactPerson"
174
160
  }, {
175
161
  default: l(() => [
176
- e(s, {
177
- modelValue: r(o).contactPerson,
178
- "onUpdate:modelValue": a[2] || (a[2] = (n) => r(o).contactPerson = n),
162
+ e(u, {
163
+ modelValue: a(o).contactPerson,
164
+ "onUpdate:modelValue": n[2] || (n[2] = (s) => a(o).contactPerson = s),
179
165
  placeholder: t.$t("sysGov.contactPersonRequired"),
180
166
  maxlength: "20",
181
167
  "show-word-limit": "",
@@ -187,16 +173,16 @@ const J = { class: "app-container" }, le = /* @__PURE__ */ S({
187
173
  ]),
188
174
  _: 1
189
175
  }),
190
- e(u, { span: 12 }, {
176
+ e(r, { span: 12 }, {
191
177
  default: l(() => [
192
178
  e(d, {
193
179
  label: t.$t("sysGov.contactPersonPosi"),
194
180
  prop: "contactPersonPosi"
195
181
  }, {
196
182
  default: l(() => [
197
- e(s, {
198
- modelValue: r(o).contactPersonPosi,
199
- "onUpdate:modelValue": a[3] || (a[3] = (n) => r(o).contactPersonPosi = n),
183
+ e(u, {
184
+ modelValue: a(o).contactPersonPosi,
185
+ "onUpdate:modelValue": n[3] || (n[3] = (s) => a(o).contactPersonPosi = s),
200
186
  placeholder: t.$t("sysGov.contactPersonPosiRequired"),
201
187
  maxlength: "30",
202
188
  "show-word-limit": "",
@@ -208,18 +194,18 @@ const J = { class: "app-container" }, le = /* @__PURE__ */ S({
208
194
  ]),
209
195
  _: 1
210
196
  }),
211
- e(u, { span: 12 }, {
197
+ e(r, { span: 12 }, {
212
198
  default: l(() => [
213
199
  e(d, {
214
200
  label: t.$t("sysGov.contactPersonTel"),
215
201
  prop: "contactPersonTel"
216
202
  }, {
217
203
  default: l(() => [
218
- e(s, {
219
- modelValue: r(o).contactPersonTel,
220
- "onUpdate:modelValue": a[4] || (a[4] = (n) => r(o).contactPersonTel = n),
221
- placeholder: t.$t("sysGov.contactPersonTels"),
222
- maxlength: "15",
204
+ e(u, {
205
+ modelValue: a(o).contactPersonTel,
206
+ "onUpdate:modelValue": n[4] || (n[4] = (s) => a(o).contactPersonTel = s),
207
+ placeholder: t.$t("sysGov.contactPersonTelRequired"),
208
+ maxlength: "12",
223
209
  "show-word-limit": "",
224
210
  clearable: ""
225
211
  }, null, 8, ["modelValue", "placeholder"])
@@ -229,16 +215,16 @@ const J = { class: "app-container" }, le = /* @__PURE__ */ S({
229
215
  ]),
230
216
  _: 1
231
217
  }),
232
- e(u, { span: 12 }, {
218
+ e(r, { span: 12 }, {
233
219
  default: l(() => [
234
220
  e(d, {
235
221
  label: t.$t("sysGov.contactPersonMobile"),
236
222
  prop: "contactPersonMobile"
237
223
  }, {
238
224
  default: l(() => [
239
- e(s, {
240
- modelValue: r(o).contactPersonMobile,
241
- "onUpdate:modelValue": a[5] || (a[5] = (n) => r(o).contactPersonMobile = n),
225
+ e(u, {
226
+ modelValue: a(o).contactPersonMobile,
227
+ "onUpdate:modelValue": n[5] || (n[5] = (s) => a(o).contactPersonMobile = s),
242
228
  placeholder: t.$t("sysGov.contactPersonMobileRequired"),
243
229
  maxlength: "11",
244
230
  "show-word-limit": "",
@@ -250,53 +236,64 @@ const J = { class: "app-container" }, le = /* @__PURE__ */ S({
250
236
  ]),
251
237
  _: 1
252
238
  }),
253
- e(u, { span: 24 }, {
239
+ e(r, { span: 24 }, {
254
240
  default: l(() => [
255
241
  e(d, {
256
242
  label: t.$t("sysGov.address"),
257
243
  prop: "address"
258
244
  }, {
259
245
  default: l(() => [
260
- e(s, {
261
- modelValue: r(o).address,
262
- "onUpdate:modelValue": a[6] || (a[6] = (n) => r(o).address = n),
246
+ e(u, {
247
+ modelValue: a(o).address,
248
+ "onUpdate:modelValue": n[6] || (n[6] = (s) => a(o).address = s),
263
249
  placeholder: t.$t("sysGov.addressRequired"),
264
250
  maxlength: "120",
265
251
  "show-word-limit": "",
266
252
  clearable: ""
267
- }, null, 8, ["modelValue", "placeholder"])
253
+ }, {
254
+ append: l(() => [
255
+ e(P, {
256
+ icon: a(z),
257
+ onClick: k
258
+ }, null, 8, ["icon"])
259
+ ]),
260
+ _: 1
261
+ }, 8, ["modelValue", "placeholder"])
268
262
  ]),
269
263
  _: 1
270
264
  }, 8, ["label"])
271
265
  ]),
272
266
  _: 1
273
267
  }),
274
- e(u, { span: 24 }, {
268
+ e(r, { span: 24 }, {
275
269
  default: l(() => [
276
270
  e(d, null, {
277
271
  default: l(() => [
278
- e(T, {
279
- address: r(o).address,
280
- onGetLatLng: I,
272
+ e(N, {
273
+ "security-js-code": a(y).amapConfig.securityJsCode,
274
+ "api-key": a(y).amapConfig.apiKey,
275
+ address: v.value,
276
+ onGetLatLng: M,
281
277
  onGetAddress: R
282
- }, null, 8, ["address"])
278
+ }, null, 8, ["security-js-code", "api-key", "address"])
283
279
  ]),
284
280
  _: 1
285
281
  })
286
282
  ]),
287
283
  _: 1
288
284
  }),
289
- e(u, { span: 12 }, {
285
+ e(r, { span: 12 }, {
290
286
  default: l(() => [
291
287
  e(d, {
292
288
  label: t.$t("sysGov.geoLongitude"),
293
289
  prop: "geoLongitude"
294
290
  }, {
295
291
  default: l(() => [
296
- e(s, {
297
- modelValue: r(o).geoLongitude,
298
- "onUpdate:modelValue": a[7] || (a[7] = (n) => r(o).geoLongitude = n),
299
- clearable: ""
292
+ e(u, {
293
+ modelValue: a(o).geoLongitude,
294
+ "onUpdate:modelValue": n[7] || (n[7] = (s) => a(o).geoLongitude = s),
295
+ clearable: "",
296
+ disabled: !0
300
297
  }, null, 8, ["modelValue"])
301
298
  ]),
302
299
  _: 1
@@ -304,17 +301,18 @@ const J = { class: "app-container" }, le = /* @__PURE__ */ S({
304
301
  ]),
305
302
  _: 1
306
303
  }),
307
- e(u, { span: 12 }, {
304
+ e(r, { span: 12 }, {
308
305
  default: l(() => [
309
306
  e(d, {
310
307
  label: t.$t("sysGov.geoLatitude"),
311
308
  prop: "geoLatitude"
312
309
  }, {
313
310
  default: l(() => [
314
- e(s, {
315
- modelValue: r(o).geoLatitude,
316
- "onUpdate:modelValue": a[8] || (a[8] = (n) => r(o).geoLatitude = n),
317
- clearable: ""
311
+ e(u, {
312
+ modelValue: a(o).geoLatitude,
313
+ "onUpdate:modelValue": n[8] || (n[8] = (s) => a(o).geoLatitude = s),
314
+ clearable: "",
315
+ disabled: !0
318
316
  }, null, 8, ["modelValue"])
319
317
  ]),
320
318
  _: 1
@@ -327,12 +325,12 @@ const J = { class: "app-container" }, le = /* @__PURE__ */ S({
327
325
  }),
328
326
  e(d, null, {
329
327
  default: l(() => [
330
- e(k, {
328
+ e(P, {
331
329
  type: "primary",
332
- onClick: M
330
+ onClick: C
333
331
  }, {
334
332
  default: l(() => [
335
- A(F(t.$t("common.save")), 1)
333
+ j(F(t.$t("common.save")), 1)
336
334
  ]),
337
335
  _: 1
338
336
  })
@@ -345,13 +343,13 @@ const J = { class: "app-container" }, le = /* @__PURE__ */ S({
345
343
  ]),
346
344
  _: 1
347
345
  }),
348
- p.value ? (b(), G(P, {
346
+ a(p).query.entityKey ? (g(), G(V, {
349
347
  key: 0,
350
348
  label: "发票信息",
351
349
  name: "second"
352
350
  }, {
353
351
  default: l(() => [
354
- c.value === "second" ? (b(), G(H, { key: 0 })) : q("", !0)
352
+ c.value === "second" ? (g(), G(J, { key: 0 })) : q("", !0)
355
353
  ]),
356
354
  _: 1
357
355
  })) : q("", !0)
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DGAgGwVY.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs";
2
2
  export {
3
3
  f as default
4
4
  };