xyvcard-itsmsys 0.0.28 → 0.0.30

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 (45) hide show
  1. package/dist/{edit-4Z-ZnpFy.mjs → edit-B1i8XNRF.mjs} +1 -1
  2. package/dist/{edit-diNsokNw.mjs → edit-BILeHqZT.mjs} +103 -127
  3. package/dist/{edit-8-gDtIOz.mjs → edit-CED4F5LL.mjs} +1 -1
  4. package/dist/{edit-oJm1rfX1.mjs → edit-CI9mLD_y.mjs} +113 -160
  5. package/dist/edit-D18qVxoi.mjs +358 -0
  6. package/dist/{edit-BlkaYTGl.mjs → edit-DI-4trDa.mjs} +1 -1
  7. package/dist/{edit-CEYAvHd3.mjs → edit-naw1P8er.mjs} +1 -1
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-DeduEUOD.mjs → edit.vue_vue_type_script_setup_true_lang-87pfh3M4.mjs} +1 -1
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-T6aiep4s.mjs → edit.vue_vue_type_script_setup_true_lang-Bc3dWWdN.mjs} +1 -1
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-CFG4x85k.mjs → edit.vue_vue_type_script_setup_true_lang-BoP6yLvE.mjs} +1 -1
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-g81nThyI.mjs → edit.vue_vue_type_script_setup_true_lang-gkpJ1OUX.mjs} +1 -1
  12. package/dist/{import-upload-BxVBkr7-.mjs → import-upload-DBeWzZRf.mjs} +1 -1
  13. package/dist/{import-upload-CtJh5u39.mjs → import-upload-DugIieo-.mjs} +1 -1
  14. package/dist/index-CJ1HwoCS.mjs +408 -0
  15. package/dist/{index-Trc70jRt.mjs → index-CZsjKiko.mjs} +1 -1
  16. package/dist/index-CtHeuP9t.mjs +493 -0
  17. package/dist/index-D8WoLr31.mjs +370 -0
  18. package/dist/index-DQgR9E4_.mjs +501 -0
  19. package/dist/{index-dIcRC4jE.mjs → index-Dq_v93ll.mjs} +34 -40
  20. package/dist/index-DvpkMffb.mjs +65 -0
  21. package/dist/{index-XMaINj6l.mjs → index-Ri2eKYUn.mjs} +194 -173
  22. package/dist/index-w6ttl8_K.mjs +346 -0
  23. package/dist/index.mjs +7 -6
  24. package/dist/index.vue_vue_type_script_setup_true_lang-CAhFK2Ep.mjs +211 -0
  25. package/dist/info-B6H0N71L.mjs +209 -0
  26. package/dist/{info-n4JaFgZW.mjs → info-B93KFKOZ.mjs} +1 -1
  27. package/dist/{info-Ju_uuO8i.mjs → info-DIHOGYCr.mjs} +1 -1
  28. package/dist/info-DMRRKI6S.mjs +209 -0
  29. package/dist/info-DNm0CfcO.mjs +209 -0
  30. package/dist/{info-DzQiIFfX.mjs → info-DtPhVX7l.mjs} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dts/constant.d.ts +0 -4
  33. package/dts/lang/itsmsys/zh-cn.d.ts +1 -0
  34. package/package.json +1 -1
  35. package/dist/edit-QJ7ZmxX_.mjs +0 -382
  36. package/dist/index-3An-8Hfg.mjs +0 -343
  37. package/dist/index-BsrMxEM8.mjs +0 -404
  38. package/dist/index-C2od41K0.mjs +0 -472
  39. package/dist/index-CR3fzc4o.mjs +0 -319
  40. package/dist/index-Cgq1M4Qb.mjs +0 -480
  41. package/dist/index-RF4VErgF.mjs +0 -20
  42. package/dist/index.vue_vue_type_script_setup_true_lang-B2_RWC8z.mjs +0 -199
  43. package/dist/info-0SKOqQd1.mjs +0 -223
  44. package/dist/info-BVo8clC4.mjs +0 -223
  45. package/dist/info-CSazWjOe.mjs +0 -223
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DeduEUOD.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-gkpJ1OUX.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,28 +1,26 @@
1
- import { defineComponent as K, ref as p, reactive as w, resolveComponent as i, createElementBlock as A, openBlock as f, createVNode as e, withCtx as l, createBlock as q, createCommentVNode as v, unref as r, createTextVNode as E, toDisplayString as F } from "vue";
2
- import { ElMessage as $ } from "element-plus";
3
- import { s as D } from "./index-RF4VErgF.mjs";
4
- import { useI18n as J } from "vue-i18n";
5
- import { useRoute as z, useRouter as H } from "vue-router";
6
- import { C as b } from "./index-dIcRC4jE.mjs";
7
- import { sysOrgApi as y } from "./index.mjs";
8
- import { _ as Q } from "./index.vue_vue_type_script_setup_true_lang-B2_RWC8z.mjs";
9
- import { validatePhoneOrLandline as W, routerUtil as R } from "jmash-core";
10
- const X = { class: "app-container" }, ne = /* @__PURE__ */ K({
1
+ import { defineComponent as B, ref as O, reactive as h, resolveComponent as i, createElementBlock as E, openBlock as p, createVNode as e, withCtx as o, createBlock as q, createCommentVNode as w, unref as r, createTextVNode as L, toDisplayString as $, createElementVNode as F } from "vue";
2
+ import { ElMessage as R } from "element-plus";
3
+ import { useI18n as K } from "vue-i18n";
4
+ import { useRoute as j, useRouter as A } from "vue-router";
5
+ import { C as D } from "./index-Dq_v93ll.mjs";
6
+ import { sysOrgApi as f } from "./index.mjs";
7
+ import { _ as z } from "./index.vue_vue_type_script_setup_true_lang-CAhFK2Ep.mjs";
8
+ import { validatePhoneOrLandline as G, routerUtil as v } from "jmash-core";
9
+ const H = { class: "app-container" }, le = /* @__PURE__ */ B({
11
10
  __name: "edit",
12
- setup(Y) {
13
- const { t: m } = J(), c = z(), _ = H(), P = p(), g = p("first");
14
- let o = w({
11
+ setup(J) {
12
+ const { t: m } = K(), c = j(), b = A(), y = O(), g = O("first");
13
+ let l = h({
15
14
  requestId: Math.random() * 10 + "",
16
15
  updateMask: "orgName,address,contactPerson,contactPersonPosi,contactPersonTel,contactPersonMobile,geoLongitude,geoLatitude",
17
- orgType: b.orgType.cloud
16
+ orgType: D.orgType.cloud
18
17
  });
19
- const V = p("");
20
- function T(t) {
18
+ function k(t) {
21
19
  g.value = t.props.name;
22
20
  }
23
- const h = (t, a, n) => {
24
- a && (W(a) || n(new Error(m("sysOrg.contactPersonMobileRequireds")))), n();
25
- }, C = w({
21
+ const P = (t, a, n) => {
22
+ a && (G(a) || n(new Error(m("sysOrg.contactPersonMobileRequireds")))), n();
23
+ }, N = h({
26
24
  orgName: [
27
25
  {
28
26
  required: !0,
@@ -40,95 +38,89 @@ const X = { class: "app-container" }, ne = /* @__PURE__ */ K({
40
38
  geoLongitude: [
41
39
  {
42
40
  required: !0,
43
- message: m("sysGov.geoLongitudeRequired"),
41
+ message: m("sysOrg.geoLongitudeRequired"),
44
42
  trigger: "change"
45
43
  }
46
44
  ],
47
45
  geoLatitude: [
48
46
  {
49
47
  required: !0,
50
- message: m("sysGov.geoLatitudeRequired"),
48
+ message: m("sysOrg.geoLatitudeRequired"),
51
49
  trigger: "change"
52
50
  }
53
51
  ],
54
52
  contactPersonMobile: [
55
53
  {
56
- validator: h,
54
+ validator: P,
57
55
  trigger: "blur"
58
56
  }
59
57
  ],
60
58
  contactPersonTel: [
61
59
  {
62
- validator: h,
60
+ validator: P,
63
61
  trigger: "blur"
64
62
  }
65
63
  ]
66
64
  });
67
- function k() {
68
- V.value = o.address;
65
+ function T() {
66
+ window.open("https://lbs.qq.com/getPoint/", "_blank");
69
67
  }
70
- function N(t) {
71
- o.geoLatitude = t[0], o.geoLongitude = t[1];
72
- }
73
- function M(t) {
74
- o.address = t;
75
- }
76
- c.query.entityKey && y.findById({ orgId: c.query.entityKey }).then(({ data: t }) => {
77
- Object.assign(o, t);
68
+ c.query.entityKey && f.findById({ orgId: c.query.entityKey }).then(({ data: t }) => {
69
+ Object.assign(l, t);
78
70
  });
79
- const U = async () => {
71
+ const M = async () => {
80
72
  var t;
81
- await ((t = P.value) == null ? void 0 : t.validate((a) => {
73
+ await ((t = y.value) == null ? void 0 : t.validate((a) => {
82
74
  var n, d;
83
- a && (o.geoLongitude = (n = o.geoLongitude) == null ? void 0 : n.toString(), o.geoLatitude = (d = o.geoLatitude) == null ? void 0 : d.toString(), o.orgId ? y.update(o).then((u) => {
84
- u.status === 200 && ($({
75
+ a && (l.geoLongitude = (n = l.geoLongitude) == null ? void 0 : n.toString(), l.geoLatitude = (d = l.geoLatitude) == null ? void 0 : d.toString(), l.orgId ? f.update(l).then((u) => {
76
+ u.status === 200 && (R({
85
77
  message: m("common.submitSuccess"),
86
78
  type: "success"
87
- }), R.closeTagView(c.fullPath, _, !1));
88
- }) : y.create(o).then((u) => {
89
- u.status === 200 && ($({
79
+ }), v.closeTagView(c.fullPath, b, !1));
80
+ }) : f.create(l).then((u) => {
81
+ u.status === 200 && (R({
90
82
  message: m("common.submitSuccess"),
91
83
  type: "success"
92
- }), R.closeTagView(c.fullPath, _, !1));
84
+ }), v.closeTagView(c.fullPath, b, !1));
93
85
  }));
94
86
  }));
95
87
  };
96
88
  return (t, a) => {
97
- const n = 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
- default: l(() => [
101
- e(G, {
89
+ const n = i("el-input"), d = i("el-form-item"), u = i("el-col"), V = i("el-button"), C = i("el-row"), U = i("el-form"), _ = i("el-tab-pane"), I = i("el-tabs"), S = i("el-card");
90
+ return p(), E("div", H, [
91
+ e(S, { shadow: "never" }, {
92
+ default: o(() => [
93
+ e(I, {
102
94
  modelValue: g.value,
103
95
  "onUpdate:modelValue": a[8] || (a[8] = (s) => g.value = s),
104
- onTabClick: T
96
+ onTabClick: k
105
97
  }, {
106
- default: l(() => [
107
- e(O, {
98
+ default: o(() => [
99
+ e(_, {
108
100
  label: "公司信息",
109
101
  name: "first"
110
102
  }, {
111
- default: l(() => [
112
- e(B, {
103
+ default: o(() => [
104
+ e(U, {
113
105
  ref_key: "sysOrgFormRef",
114
- ref: P,
115
- model: r(o),
106
+ ref: y,
107
+ model: r(l),
116
108
  "label-width": "120px",
117
- rules: C
109
+ rules: N
118
110
  }, {
119
- default: l(() => [
120
- e(j, null, {
121
- default: l(() => [
111
+ default: o(() => [
112
+ e(C, null, {
113
+ default: o(() => [
122
114
  e(u, { span: 24 }, {
123
- default: l(() => [
115
+ default: o(() => [
124
116
  e(d, {
125
117
  label: t.$t("sysOrg.orgName"),
126
118
  prop: "orgName"
127
119
  }, {
128
- default: l(() => [
120
+ default: o(() => [
129
121
  e(n, {
130
- modelValue: r(o).orgName,
131
- "onUpdate:modelValue": a[0] || (a[0] = (s) => r(o).orgName = s),
122
+ modelValue: r(l).orgName,
123
+ "onUpdate:modelValue": a[0] || (a[0] = (s) => r(l).orgName = s),
132
124
  placeholder: t.$t("sysOrg.orgNameRequired"),
133
125
  maxlength: "50",
134
126
  "show-word-limit": "",
@@ -141,15 +133,15 @@ const X = { class: "app-container" }, ne = /* @__PURE__ */ K({
141
133
  _: 1
142
134
  }),
143
135
  e(u, { span: 12 }, {
144
- default: l(() => [
136
+ default: o(() => [
145
137
  e(d, {
146
138
  label: t.$t("sysOrg.contactPerson"),
147
139
  prop: "contactPerson"
148
140
  }, {
149
- default: l(() => [
141
+ default: o(() => [
150
142
  e(n, {
151
- modelValue: r(o).contactPerson,
152
- "onUpdate:modelValue": a[1] || (a[1] = (s) => r(o).contactPerson = s),
143
+ modelValue: r(l).contactPerson,
144
+ "onUpdate:modelValue": a[1] || (a[1] = (s) => r(l).contactPerson = s),
153
145
  placeholder: t.$t("sysOrg.contactPersonRequired"),
154
146
  maxlength: "20",
155
147
  "show-word-limit": "",
@@ -162,15 +154,15 @@ const X = { class: "app-container" }, ne = /* @__PURE__ */ K({
162
154
  _: 1
163
155
  }),
164
156
  e(u, { span: 12 }, {
165
- default: l(() => [
157
+ default: o(() => [
166
158
  e(d, {
167
159
  label: t.$t("sysOrg.contactPersonPosi"),
168
160
  prop: "contactPersonPosi"
169
161
  }, {
170
- default: l(() => [
162
+ default: o(() => [
171
163
  e(n, {
172
- modelValue: r(o).contactPersonPosi,
173
- "onUpdate:modelValue": a[2] || (a[2] = (s) => r(o).contactPersonPosi = s),
164
+ modelValue: r(l).contactPersonPosi,
165
+ "onUpdate:modelValue": a[2] || (a[2] = (s) => r(l).contactPersonPosi = s),
174
166
  placeholder: t.$t("sysOrg.contactPersonPosiRequired"),
175
167
  maxlength: "30",
176
168
  "show-word-limit": "",
@@ -183,15 +175,15 @@ const X = { class: "app-container" }, ne = /* @__PURE__ */ K({
183
175
  _: 1
184
176
  }),
185
177
  e(u, { span: 12 }, {
186
- default: l(() => [
178
+ default: o(() => [
187
179
  e(d, {
188
180
  label: t.$t("sysOrg.contactPersonTel"),
189
181
  prop: "contactPersonTel"
190
182
  }, {
191
- default: l(() => [
183
+ default: o(() => [
192
184
  e(n, {
193
- modelValue: r(o).contactPersonTel,
194
- "onUpdate:modelValue": a[3] || (a[3] = (s) => r(o).contactPersonTel = s),
185
+ modelValue: r(l).contactPersonTel,
186
+ "onUpdate:modelValue": a[3] || (a[3] = (s) => r(l).contactPersonTel = s),
195
187
  placeholder: t.$t("sysOrg.contactPersonTelRequired"),
196
188
  maxlength: "12",
197
189
  "show-word-limit": "",
@@ -204,15 +196,15 @@ const X = { class: "app-container" }, ne = /* @__PURE__ */ K({
204
196
  _: 1
205
197
  }),
206
198
  e(u, { span: 12 }, {
207
- default: l(() => [
199
+ default: o(() => [
208
200
  e(d, {
209
201
  label: t.$t("sysOrg.contactPersonMobile"),
210
202
  prop: "contactPersonMobile"
211
203
  }, {
212
- default: l(() => [
204
+ default: o(() => [
213
205
  e(n, {
214
- modelValue: r(o).contactPersonMobile,
215
- "onUpdate:modelValue": a[4] || (a[4] = (s) => r(o).contactPersonMobile = s),
206
+ modelValue: r(l).contactPersonMobile,
207
+ "onUpdate:modelValue": a[4] || (a[4] = (s) => r(l).contactPersonMobile = s),
216
208
  placeholder: t.$t("sysOrg.contactPersonMobileRequired"),
217
209
  maxlength: "11",
218
210
  "show-word-limit": "",
@@ -225,25 +217,27 @@ const X = { class: "app-container" }, ne = /* @__PURE__ */ K({
225
217
  _: 1
226
218
  }),
227
219
  e(u, { span: 24 }, {
228
- default: l(() => [
220
+ default: o(() => [
229
221
  e(d, {
230
222
  label: t.$t("sysOrg.address"),
231
223
  prop: "address"
232
224
  }, {
233
- default: l(() => [
225
+ default: o(() => [
234
226
  e(n, {
235
- modelValue: r(o).address,
236
- "onUpdate:modelValue": a[5] || (a[5] = (s) => r(o).address = s),
227
+ modelValue: r(l).address,
228
+ "onUpdate:modelValue": a[5] || (a[5] = (s) => r(l).address = s),
237
229
  placeholder: t.$t("sysOrg.addressRequired"),
238
230
  maxlength: "120",
239
231
  "show-word-limit": "",
240
232
  clearable: ""
241
233
  }, {
242
- append: l(() => [
243
- e(L, {
244
- icon: r(D),
245
- onClick: k
246
- }, null, 8, ["icon"])
234
+ append: o(() => [
235
+ e(V, { onClick: T }, {
236
+ default: o(() => [
237
+ L($(r(m)("sysOrg.geoPick")), 1)
238
+ ]),
239
+ _: 1
240
+ })
247
241
  ]),
248
242
  _: 1
249
243
  }, 8, ["modelValue", "placeholder"])
@@ -253,38 +247,20 @@ const X = { class: "app-container" }, ne = /* @__PURE__ */ K({
253
247
  ]),
254
248
  _: 1
255
249
  }),
256
- e(u, { span: 24 }, {
257
- default: l(() => [
258
- e(d, null, {
259
- default: l(() => [
260
- e(S, {
261
- "security-js-code": r(b).amapConfig.securityJsCode,
262
- "api-key": r(b).amapConfig.apiKey,
263
- address: V.value,
264
- lat: r(o).geoLatitude,
265
- lng: r(o).geoLongitude,
266
- onGetLatLng: N,
267
- onGetAddress: M
268
- }, null, 8, ["security-js-code", "api-key", "address", "lat", "lng"])
269
- ]),
270
- _: 1
271
- })
272
- ]),
273
- _: 1
274
- }),
275
250
  e(u, { span: 12 }, {
276
- default: l(() => [
251
+ default: o(() => [
277
252
  e(d, {
278
253
  label: t.$t("sysOrg.geoLongitude"),
279
254
  prop: "geoLongitude"
280
255
  }, {
281
- default: l(() => [
256
+ default: o(() => [
282
257
  e(n, {
283
- modelValue: r(o).geoLongitude,
284
- "onUpdate:modelValue": a[6] || (a[6] = (s) => r(o).geoLongitude = s),
258
+ modelValue: r(l).geoLongitude,
259
+ "onUpdate:modelValue": a[6] || (a[6] = (s) => r(l).geoLongitude = s),
285
260
  clearable: "",
286
- disabled: !0
287
- }, null, 8, ["modelValue"])
261
+ placeholder: t.$t("sysOrg.geoLongitudeRequired")
262
+ }, null, 8, ["modelValue", "placeholder"]),
263
+ a[9] || (a[9] = F("div", { class: "red-color" }, " 注:在经纬度的表示中,第一个数值通常是纬度,第二个数值是经度。 ", -1))
288
264
  ]),
289
265
  _: 1
290
266
  }, 8, ["label"])
@@ -292,18 +268,18 @@ const X = { class: "app-container" }, ne = /* @__PURE__ */ K({
292
268
  _: 1
293
269
  }),
294
270
  e(u, { span: 12 }, {
295
- default: l(() => [
271
+ default: o(() => [
296
272
  e(d, {
297
273
  label: t.$t("sysOrg.geoLatitude"),
298
274
  prop: "geoLatitude"
299
275
  }, {
300
- default: l(() => [
276
+ default: o(() => [
301
277
  e(n, {
302
- modelValue: r(o).geoLatitude,
303
- "onUpdate:modelValue": a[7] || (a[7] = (s) => r(o).geoLatitude = s),
278
+ modelValue: r(l).geoLatitude,
279
+ "onUpdate:modelValue": a[7] || (a[7] = (s) => r(l).geoLatitude = s),
304
280
  clearable: "",
305
- disabled: !0
306
- }, null, 8, ["modelValue"])
281
+ placeholder: t.$t("sysOrg.geoLatitudeRequired")
282
+ }, null, 8, ["modelValue", "placeholder"])
307
283
  ]),
308
284
  _: 1
309
285
  }, 8, ["label"])
@@ -314,13 +290,13 @@ const X = { class: "app-container" }, ne = /* @__PURE__ */ K({
314
290
  _: 1
315
291
  }),
316
292
  e(d, null, {
317
- default: l(() => [
318
- e(L, {
293
+ default: o(() => [
294
+ e(V, {
319
295
  type: "primary",
320
- onClick: U
296
+ onClick: M
321
297
  }, {
322
- default: l(() => [
323
- E(F(t.$t("common.save")), 1)
298
+ default: o(() => [
299
+ L($(t.$t("common.save")), 1)
324
300
  ]),
325
301
  _: 1
326
302
  })
@@ -333,16 +309,16 @@ const X = { class: "app-container" }, ne = /* @__PURE__ */ K({
333
309
  ]),
334
310
  _: 1
335
311
  }),
336
- r(c).query.entityKey ? (f(), q(O, {
312
+ r(c).query.entityKey ? (p(), q(_, {
337
313
  key: 0,
338
314
  label: "发票信息",
339
315
  name: "second"
340
316
  }, {
341
- default: l(() => [
342
- g.value === "second" ? (f(), q(Q, { key: 0 })) : v("", !0)
317
+ default: o(() => [
318
+ g.value === "second" ? (p(), q(z, { key: 0 })) : w("", !0)
343
319
  ]),
344
320
  _: 1
345
- })) : v("", !0)
321
+ })) : w("", !0)
346
322
  ]),
347
323
  _: 1
348
324
  }, 8, ["modelValue"])
@@ -354,5 +330,5 @@ const X = { class: "app-container" }, ne = /* @__PURE__ */ K({
354
330
  }
355
331
  });
356
332
  export {
357
- ne as default
333
+ le as default
358
334
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-g81nThyI.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-Bc3dWWdN.mjs";
2
2
  export {
3
3
  f as default
4
4
  };