xyvcard-itsmsys 0.0.10 → 0.0.12

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