xyvcard-itsmsys 0.0.3 → 0.0.4

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 (70) hide show
  1. package/dist/common-B2PCBCJ2.mjs +13 -0
  2. package/dist/edit-BhRXuYku.mjs +342 -0
  3. package/dist/edit-CIm8Y0Be.mjs +4 -0
  4. package/dist/edit-CWVYUzgf.mjs +369 -0
  5. package/dist/edit-CkaU_6vk.mjs +342 -0
  6. package/dist/edit-D82hX9if.mjs +4 -0
  7. package/dist/edit-DPM0jGQT.mjs +4 -0
  8. package/dist/edit-DZJU5ZPt.mjs +4 -0
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs +437 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs +439 -0
  11. package/dist/{invoiceEdit-Chsj8_aC.mjs → edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs} +58 -63
  12. package/dist/edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs +439 -0
  13. package/dist/index-B_cot8iN.mjs +439 -0
  14. package/dist/index-BkHGzL0R.mjs +358 -0
  15. package/dist/index-C6KvLUoL.mjs +4 -0
  16. package/dist/index-CEUyLrKg.mjs +404 -0
  17. package/dist/index-ChTssr8-.mjs +123 -0
  18. package/dist/{index-B02UvpyC.mjs → index-ClU157bA.mjs} +103 -113
  19. package/dist/{index-Cskg0LGf.mjs → index-CogdeN09.mjs} +101 -111
  20. package/dist/{index-CUjT3FVb.mjs → index-i7X9N_rj.mjs} +107 -117
  21. package/dist/index.mjs +2765 -126
  22. package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +180 -0
  23. package/dist/info-70H0sycC.mjs +187 -0
  24. package/dist/info-BWgVN2mJ.mjs +176 -0
  25. package/dist/info-CE-ZnFj5.mjs +179 -0
  26. package/dist/info-Kf11Ye-N.mjs +187 -0
  27. package/dist/info-MYJGcyMX.mjs +179 -0
  28. package/dist/info-Z5LuCRmr.mjs +187 -0
  29. package/dist/style.css +1 -1
  30. package/dts/src/api/dict.d.ts +4 -1
  31. package/dts/src/api/index.d.ts +4 -1
  32. package/dts/src/api/itsm-sys-org/index.d.ts +1 -0
  33. package/dts/src/api/itsm-sys-org/types.d.ts +2 -2
  34. package/dts/src/api/itsm-sys-user-ext/types.d.ts +18 -3
  35. package/dts/src/constant.d.ts +7 -0
  36. package/dts/src/lang/itsmsys/zh-cn.d.ts +27 -11
  37. package/dts/src/router/index.d.ts +6 -4
  38. package/dts/src/utils/common.d.ts +1 -0
  39. package/dts/src/utils/momentPlugin.d.ts +5 -0
  40. package/dts/src/views/itsmsys/{itsm-sys-gov/invoiceEdit.vue.d.ts → itsm-sys-org-invoice/edit.vue.d.ts} +3 -12
  41. package/dts/src/views/itsmsys/itsm-sys-user-ops/index.vue.d.ts +2 -0
  42. package/dts/src/views/itsmsys/itsm-sys-user-ops/info.vue.d.ts +2 -0
  43. package/dts/src/views/itsmsys/{itsm-sys-org/invoiceEdit.vue.d.ts → itsm-sys-user-out/edit.vue.d.ts} +6 -15
  44. package/dts/src/views/itsmsys/itsm-sys-user-out/index.vue.d.ts +2 -0
  45. package/dts/src/views/itsmsys/itsm-sys-user-out/info.vue.d.ts +2 -0
  46. package/package.json +3 -3
  47. package/dist/edit-BeMy_aOl.mjs +0 -548
  48. package/dist/edit-BhXrnHr7.mjs +0 -520
  49. package/dist/edit-BsLAy2-H.mjs +0 -276
  50. package/dist/edit-D7n1rZY2.mjs +0 -240
  51. package/dist/edit-l4-w6Psd.mjs +0 -520
  52. package/dist/index-Bw3EuEs9.mjs +0 -345
  53. package/dist/index-COPul57Z.mjs +0 -84
  54. package/dist/index-CRlIL96y.mjs +0 -334
  55. package/dist/info-7Rre3Mm0.mjs +0 -198
  56. package/dist/info-CYKiOMB6.mjs +0 -198
  57. package/dist/info-Dub2j7gN.mjs +0 -198
  58. package/dist/info-O3dKVGmT.mjs +0 -10
  59. package/dist/invoiceEdit-C5dQG8ZJ.mjs +0 -253
  60. package/dist/invoiceEdit-DuSCNiDz.mjs +0 -253
  61. package/dts/src/api/itsm-sys-gov/index.d.ts +0 -15
  62. package/dts/src/api/itsm-sys-gov/types.d.ts +0 -87
  63. package/dts/src/api/itsm-sys-gov-invoice/index.d.ts +0 -13
  64. package/dts/src/api/itsm-sys-gov-invoice/types.d.ts +0 -48
  65. package/dts/src/views/itsmsys/itsm-sys-out/invoiceEdit.vue.d.ts +0 -31
  66. /package/dts/src/views/{itsmsys-user/itsm-sys-user-man → itsmsys/itsm-sys-org-invoice}/index.vue.d.ts +0 -0
  67. /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-man/edit.vue.d.ts +0 -0
  68. /package/dts/src/views/{itsmsys-user/itsm-sys-user-ops → itsmsys/itsm-sys-user-man}/index.vue.d.ts +0 -0
  69. /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-man/info.vue.d.ts +0 -0
  70. /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-ops/edit.vue.d.ts +0 -0
@@ -0,0 +1,439 @@
1
+ import { defineComponent as H, mergeModels as M, ref as V, useModel as G, reactive as S, resolveComponent as i, openBlock as b, createBlock as c, withCtx as l, createElementVNode as j, createVNode as e, createTextVNode as h, toDisplayString as O, unref as r, createCommentVNode as L } from "vue";
2
+ import { ElMessage as I } from "element-plus";
3
+ import { useI18n as X } from "vue-i18n";
4
+ import { sysUserExtApi as w } from "./index.mjs";
5
+ import { g as Q } from "./common-B2PCBCJ2.mjs";
6
+ import { D as f } from "./index-ChTssr8-.mjs";
7
+ const W = { class: "dialog-footer" }, oe = /* @__PURE__ */ H({
8
+ __name: "edit",
9
+ props: /* @__PURE__ */ M({
10
+ entityKey: {
11
+ type: Object,
12
+ default: () => {
13
+ }
14
+ }
15
+ }, {
16
+ modelValue: { type: Boolean },
17
+ modelModifiers: {}
18
+ }),
19
+ emits: /* @__PURE__ */ M(["refresh"], ["update:modelValue"]),
20
+ setup(q, { emit: k }) {
21
+ const { t: n } = X(), R = V(), m = G(q, "modelValue"), $ = k, y = V(!1);
22
+ f.sysOrgBizDict.useValues();
23
+ let o = S({
24
+ requestId: Math.random() * 10 + "",
25
+ updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty"
26
+ });
27
+ const E = (s, a, d) => {
28
+ a === void 0 && d(new Error(n("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(a) || d(new Error(n("sysUserOps.mobilePhoneRequireds"))), d();
29
+ }, T = S({
30
+ realName: [
31
+ {
32
+ required: !0,
33
+ message: n("sysUserOps.realNameRequired"),
34
+ trigger: "blur"
35
+ }
36
+ ],
37
+ gender: [
38
+ {
39
+ required: !0,
40
+ message: n("sysUserOps.genderRequired"),
41
+ trigger: "change"
42
+ }
43
+ ],
44
+ mobilePhone: [
45
+ {
46
+ required: !0,
47
+ trigger: "blur",
48
+ validator: E
49
+ }
50
+ ],
51
+ email: [
52
+ {
53
+ pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
54
+ message: n("sysUserOps.emailRequireds"),
55
+ trigger: "blur"
56
+ }
57
+ ],
58
+ idNo: [
59
+ {
60
+ pattern: /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2]\d|3[0-1])\d{3}(\d|X)$/,
61
+ message: n("sysUserOps.idNoLengthRequired"),
62
+ trigger: "blur"
63
+ }
64
+ ],
65
+ jobStatus: [
66
+ {
67
+ required: !0,
68
+ message: n("sysUserOps.jobStatusRequired"),
69
+ trigger: "change"
70
+ }
71
+ ],
72
+ engineeType: [
73
+ {
74
+ required: !0,
75
+ message: n("sysUserOps.engineeTypeRequired"),
76
+ trigger: "change"
77
+ }
78
+ ],
79
+ engineeJobMode: [
80
+ {
81
+ required: !0,
82
+ message: n("sysUserOps.engineeJobModeRequired"),
83
+ trigger: "change"
84
+ }
85
+ ],
86
+ orgId: [
87
+ {
88
+ required: !0,
89
+ message: n("sysUserOps.orgIdRequired"),
90
+ trigger: "change"
91
+ }
92
+ ],
93
+ userPassword: [
94
+ {
95
+ required: !0,
96
+ message: n("sysUserOps.userPasswordRequired"),
97
+ trigger: "blur"
98
+ }
99
+ ]
100
+ }), _ = q, C = Object.keys(_.entityKey), v = V(C.length >= 1);
101
+ v.value && w.findById(_.entityKey).then(({ data: s }) => {
102
+ Object.assign(o, s);
103
+ });
104
+ const D = async () => {
105
+ var s;
106
+ await ((s = R.value) == null ? void 0 : s.validate((a) => {
107
+ a && (v.value ? w.update(o).then((d) => {
108
+ console.log(d), d.status === 200 && (I({
109
+ message: n("common.submitSuccess"),
110
+ type: "success"
111
+ }), m.value && (m.value = !1), $("refresh", d.status === 200));
112
+ }) : w.create(o).then((d) => {
113
+ console.log(d), d.status === 200 && (I({
114
+ message: n("common.submitSuccess"),
115
+ type: "success"
116
+ }), m.value && (m.value = !1), $("refresh", d.status === 200));
117
+ }));
118
+ }));
119
+ };
120
+ function J() {
121
+ o.userPassword = Q();
122
+ }
123
+ function N() {
124
+ m.value && (m.value = !1);
125
+ }
126
+ return (s, a) => {
127
+ const d = i("jmash-select"), u = i("el-form-item"), p = i("el-col"), g = i("el-input"), z = i("jmash-enum-select"), U = i("el-button"), B = i("View"), P = i("el-icon"), A = i("Hide"), K = i("el-row"), F = i("el-form"), Z = i("el-dialog");
128
+ return b(), c(Z, {
129
+ modelValue: m.value,
130
+ "onUpdate:modelValue": a[12] || (a[12] = (t) => m.value = t),
131
+ onClose: N
132
+ }, {
133
+ footer: l(() => [
134
+ j("div", W, [
135
+ e(U, { onClick: N }, {
136
+ default: l(() => [
137
+ h(O(s.$t("common.cancel")), 1)
138
+ ]),
139
+ _: 1
140
+ }),
141
+ e(U, {
142
+ type: "primary",
143
+ onClick: D
144
+ }, {
145
+ default: l(() => [
146
+ h(O(s.$t("common.confirm")), 1)
147
+ ]),
148
+ _: 1
149
+ })
150
+ ])
151
+ ]),
152
+ default: l(() => [
153
+ e(F, {
154
+ ref_key: "sysUserExtFormRef",
155
+ ref: R,
156
+ model: r(o),
157
+ "label-width": "100px",
158
+ rules: T
159
+ }, {
160
+ default: l(() => [
161
+ e(K, null, {
162
+ default: l(() => [
163
+ e(p, { span: 12 }, {
164
+ default: l(() => [
165
+ e(u, {
166
+ label: s.$t("sysUserOps.orgId"),
167
+ prop: "orgId"
168
+ }, {
169
+ default: l(() => [
170
+ e(d, {
171
+ modelValue: r(o).orgId,
172
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => r(o).orgId = t),
173
+ placeholder: s.$t("sysUserOps.orgIdRequired"),
174
+ data: r(f).sysOrgBizDict.values,
175
+ clearable: "",
176
+ class: "w-full"
177
+ }, null, 8, ["modelValue", "placeholder", "data"])
178
+ ]),
179
+ _: 1
180
+ }, 8, ["label"])
181
+ ]),
182
+ _: 1
183
+ }),
184
+ e(p, { span: 12 }, {
185
+ default: l(() => [
186
+ e(u, {
187
+ label: s.$t("sysUserOps.realName"),
188
+ prop: "realName"
189
+ }, {
190
+ default: l(() => [
191
+ e(g, {
192
+ modelValue: r(o).realName,
193
+ "onUpdate:modelValue": a[1] || (a[1] = (t) => r(o).realName = t),
194
+ placeholder: s.$t("sysUserOps.realNameRequired"),
195
+ maxlength: "8",
196
+ "show-word-limit": "",
197
+ clearable: ""
198
+ }, null, 8, ["modelValue", "placeholder"])
199
+ ]),
200
+ _: 1
201
+ }, 8, ["label"])
202
+ ]),
203
+ _: 1
204
+ }),
205
+ e(p, { span: 12 }, {
206
+ default: l(() => [
207
+ e(u, {
208
+ label: s.$t("sysUserOps.gender"),
209
+ prop: "gender"
210
+ }, {
211
+ default: l(() => [
212
+ e(z, {
213
+ modelValue: r(o).gender,
214
+ "onUpdate:modelValue": a[2] || (a[2] = (t) => r(o).gender = t),
215
+ clearable: "",
216
+ placeholder: s.$t("sysUserOps.genderRequired"),
217
+ "enum-type": "jmash.protobuf.Gender",
218
+ class: "w-full"
219
+ }, null, 8, ["modelValue", "placeholder"])
220
+ ]),
221
+ _: 1
222
+ }, 8, ["label"])
223
+ ]),
224
+ _: 1
225
+ }),
226
+ e(p, { span: 12 }, {
227
+ default: l(() => [
228
+ e(u, {
229
+ label: s.$t("sysUserOps.mobilePhone"),
230
+ prop: "mobilePhone"
231
+ }, {
232
+ default: l(() => [
233
+ e(g, {
234
+ modelValue: r(o).mobilePhone,
235
+ "onUpdate:modelValue": a[3] || (a[3] = (t) => r(o).mobilePhone = t),
236
+ placeholder: s.$t("sysUserOps.mobilePhoneRequired"),
237
+ maxlength: "11",
238
+ "show-word-limit": "",
239
+ clearable: ""
240
+ }, null, 8, ["modelValue", "placeholder"])
241
+ ]),
242
+ _: 1
243
+ }, 8, ["label"])
244
+ ]),
245
+ _: 1
246
+ }),
247
+ e(p, { span: 12 }, {
248
+ default: l(() => [
249
+ e(u, {
250
+ label: s.$t("sysUserOps.email"),
251
+ prop: "email"
252
+ }, {
253
+ default: l(() => [
254
+ e(g, {
255
+ modelValue: r(o).email,
256
+ "onUpdate:modelValue": a[4] || (a[4] = (t) => r(o).email = t),
257
+ placeholder: s.$t("sysUserOps.emailRequired"),
258
+ maxlength: "30",
259
+ "show-word-limit": "",
260
+ clearable: ""
261
+ }, null, 8, ["modelValue", "placeholder"])
262
+ ]),
263
+ _: 1
264
+ }, 8, ["label"])
265
+ ]),
266
+ _: 1
267
+ }),
268
+ e(p, { span: 12 }, {
269
+ default: l(() => [
270
+ e(u, {
271
+ label: s.$t("sysUserOps.idNo"),
272
+ prop: "idNo"
273
+ }, {
274
+ default: l(() => [
275
+ e(g, {
276
+ modelValue: r(o).idNo,
277
+ "onUpdate:modelValue": a[5] || (a[5] = (t) => r(o).idNo = t),
278
+ placeholder: s.$t("sysUserOps.idNoRequired"),
279
+ maxlength: "18",
280
+ "show-word-limit": "",
281
+ clearable: ""
282
+ }, null, 8, ["modelValue", "placeholder"])
283
+ ]),
284
+ _: 1
285
+ }, 8, ["label"])
286
+ ]),
287
+ _: 1
288
+ }),
289
+ e(p, { span: 12 }, {
290
+ default: l(() => [
291
+ e(u, {
292
+ label: s.$t("sysUserOps.engineeType"),
293
+ prop: "engineeType"
294
+ }, {
295
+ default: l(() => [
296
+ e(d, {
297
+ modelValue: r(o).engineeType,
298
+ "onUpdate:modelValue": a[6] || (a[6] = (t) => r(o).engineeType = t),
299
+ placeholder: s.$t("sysUserOps.engineeTypeRequired"),
300
+ data: r(f).engineeTypeDictEnum.values,
301
+ clearable: "",
302
+ class: "w-full"
303
+ }, null, 8, ["modelValue", "placeholder", "data"])
304
+ ]),
305
+ _: 1
306
+ }, 8, ["label"])
307
+ ]),
308
+ _: 1
309
+ }),
310
+ e(p, { span: 12 }, {
311
+ default: l(() => [
312
+ e(u, {
313
+ label: s.$t("sysUserOps.engineeJobMode"),
314
+ prop: "engineeJobMode"
315
+ }, {
316
+ default: l(() => [
317
+ e(d, {
318
+ modelValue: r(o).engineeJobMode,
319
+ "onUpdate:modelValue": a[7] || (a[7] = (t) => r(o).engineeJobMode = t),
320
+ placeholder: s.$t("sysUserOps.engineeJobModeRequired"),
321
+ data: r(f).engineeJobModeDictEnum.values,
322
+ clearable: "",
323
+ class: "w-full"
324
+ }, null, 8, ["modelValue", "placeholder", "data"])
325
+ ]),
326
+ _: 1
327
+ }, 8, ["label"])
328
+ ]),
329
+ _: 1
330
+ }),
331
+ e(p, { span: 12 }, {
332
+ default: l(() => [
333
+ e(u, {
334
+ label: s.$t("sysUserOps.jobStatus"),
335
+ prop: "jobStatus"
336
+ }, {
337
+ default: l(() => [
338
+ e(d, {
339
+ modelValue: r(o).jobStatus,
340
+ "onUpdate:modelValue": a[8] || (a[8] = (t) => r(o).jobStatus = t),
341
+ placeholder: s.$t("sysUserOps.jobStatusRequired"),
342
+ data: r(f).jobStatusDictEnum.values,
343
+ clearable: "",
344
+ class: "w-full"
345
+ }, null, 8, ["modelValue", "placeholder", "data"])
346
+ ]),
347
+ _: 1
348
+ }, 8, ["label"])
349
+ ]),
350
+ _: 1
351
+ }),
352
+ r(o).userId ? L("", !0) : (b(), c(p, {
353
+ key: 0,
354
+ span: 12
355
+ }, {
356
+ default: l(() => [
357
+ e(u, {
358
+ label: s.$t("sysUserOps.userPassword"),
359
+ prop: "userPassword"
360
+ }, {
361
+ default: l(() => [
362
+ e(g, {
363
+ modelValue: r(o).userPassword,
364
+ "onUpdate:modelValue": a[10] || (a[10] = (t) => r(o).userPassword = t),
365
+ clearable: "",
366
+ type: y.value ? "text" : "password",
367
+ placeholder: s.$t("sysUserOps.userPasswordRequired")
368
+ }, {
369
+ append: l(() => [
370
+ e(U, { onClick: J }, {
371
+ default: l(() => [
372
+ h(O(s.$t("sysUserOps.randomPwd")), 1)
373
+ ]),
374
+ _: 1
375
+ })
376
+ ]),
377
+ suffix: l(() => [
378
+ j("span", {
379
+ onClick: a[9] || (a[9] = (t) => y.value = !y.value)
380
+ }, [
381
+ y.value ? (b(), c(P, { key: 0 }, {
382
+ default: l(() => [
383
+ e(B)
384
+ ]),
385
+ _: 1
386
+ })) : (b(), c(P, { key: 1 }, {
387
+ default: l(() => [
388
+ e(A)
389
+ ]),
390
+ _: 1
391
+ }))
392
+ ])
393
+ ]),
394
+ _: 1
395
+ }, 8, ["modelValue", "type", "placeholder"])
396
+ ]),
397
+ _: 1
398
+ }, 8, ["label"])
399
+ ]),
400
+ _: 1
401
+ })),
402
+ e(p, { span: 24 }, {
403
+ default: l(() => [
404
+ e(u, {
405
+ label: s.$t("sysUserOps.engineeSpecialty"),
406
+ prop: "engineeSpecialty"
407
+ }, {
408
+ default: l(() => [
409
+ e(g, {
410
+ modelValue: r(o).engineeSpecialty,
411
+ "onUpdate:modelValue": a[11] || (a[11] = (t) => r(o).engineeSpecialty = t),
412
+ placeholder: s.$t("sysUserOps.engineeSpecialtyRequired"),
413
+ type: "textarea",
414
+ autosize: { minRows: 2 },
415
+ maxlength: "200",
416
+ "show-word-limit": "",
417
+ clearable: ""
418
+ }, null, 8, ["modelValue", "placeholder"])
419
+ ]),
420
+ _: 1
421
+ }, 8, ["label"])
422
+ ]),
423
+ _: 1
424
+ })
425
+ ]),
426
+ _: 1
427
+ })
428
+ ]),
429
+ _: 1
430
+ }, 8, ["model", "rules"])
431
+ ]),
432
+ _: 1
433
+ }, 8, ["modelValue"]);
434
+ };
435
+ }
436
+ });
437
+ export {
438
+ oe as _
439
+ };
@@ -1,19 +1,13 @@
1
- import { defineComponent as j, mergeModels as k, ref as V, useModel as D, reactive as O, resolveComponent as m, openBlock as E, createBlock as K, withCtx as o, createElementVNode as B, createVNode as e, createTextVNode as h, toDisplayString as T, unref as r } from "vue";
2
- import { ElMessage as q } from "element-plus";
1
+ import { defineComponent as D, mergeModels as _, ref as I, useModel as B, reactive as O, resolveComponent as u, openBlock as K, createBlock as E, withCtx as o, createElementVNode as F, createVNode as e, createTextVNode as h, toDisplayString as q, unref as r } from "vue";
2
+ import { ElMessage as T } from "element-plus";
3
3
  import { useI18n as S } from "vue-i18n";
4
- import { s as v } from "./index-DOXuGEyW.mjs";
5
- import { D as F } from "./index-COPul57Z.mjs";
6
- import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
- const L = { class: "dialog-footer" }, z = /* @__PURE__ */ j({
8
- __name: "invoiceEdit",
9
- props: /* @__PURE__ */ k({
10
- // 公司信息ID(orgId)
11
- orgKey: {
12
- type: String,
13
- default: () => ""
14
- },
15
- // 发票信息主键ID
16
- invoiceKey: {
4
+ import { useRoute as A } from "vue-router";
5
+ import { s as b } from "./index-DOXuGEyW.mjs";
6
+ import { D as L } from "./index-ChTssr8-.mjs";
7
+ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
8
+ __name: "edit",
9
+ props: /* @__PURE__ */ _({
10
+ entityKey: {
17
11
  type: Object,
18
12
  default: () => {
19
13
  }
@@ -22,14 +16,15 @@ const L = { class: "dialog-footer" }, z = /* @__PURE__ */ j({
22
16
  modelValue: { type: Boolean },
23
17
  modelModifiers: {}
24
18
  }),
25
- emits: /* @__PURE__ */ k(["refresh"], ["update:modelValue"]),
19
+ emits: /* @__PURE__ */ _(["refresh"], ["update:modelValue"]),
26
20
  setup(f, { emit: w }) {
27
- const { t: s } = S(), g = V(), u = D(f, "modelValue"), y = w;
28
- let a = O({
21
+ const { t: s } = S(), R = A(), g = I(), n = B(f, "modelValue"), v = w;
22
+ let t = O({
29
23
  requestId: Math.random() * 10 + "",
30
- updateMask: "invoiceType,invoiceTitle,taxNumber,bankName,backNumber"
24
+ updateMask: "invoiceType,invoiceTitle,taxNumber,bankName,backNumber",
25
+ orgId: R.query.entityKey
31
26
  });
32
- const R = O({
27
+ const $ = O({
33
28
  invoiceType: [
34
29
  {
35
30
  required: !0,
@@ -71,65 +66,65 @@ const L = { class: "dialog-footer" }, z = /* @__PURE__ */ j({
71
66
  trigger: "blur"
72
67
  }
73
68
  ]
74
- }), b = f, $ = Object.keys(b.invoiceKey), N = V($.length >= 1);
75
- N.value && v.findById({ invoiceId: b.invoiceKey.invoiceId }).then(({ data: l }) => {
76
- Object.assign(a, l);
69
+ }), y = f, x = Object.keys(y.entityKey), N = I(x.length >= 1);
70
+ N.value && b.findById(y.entityKey).then(({ data: l }) => {
71
+ Object.assign(t, l);
77
72
  });
78
- const x = async () => {
73
+ const C = async () => {
79
74
  var l;
80
- await ((l = g.value) == null ? void 0 : l.validate((t) => {
81
- t && (a.orgId = b.orgKey, N.value ? v.update(a).then((n) => {
82
- console.log(n), n.status === 200 && (q({
75
+ await ((l = g.value) == null ? void 0 : l.validate((a) => {
76
+ a && (N.value ? b.update(t).then((m) => {
77
+ m.status === 200 && (T({
83
78
  message: s("common.submitSuccess"),
84
79
  type: "success"
85
- }), u.value && (u.value = !1), y("refresh", n.status === 200));
86
- }) : v.create(a).then((n) => {
87
- console.log(n), n.status === 200 && (q({
80
+ }), n.value && (n.value = !1), v("refresh", m.status === 200));
81
+ }) : b.create(t).then((m) => {
82
+ m.status === 200 && (T({
88
83
  message: s("common.submitSuccess"),
89
84
  type: "success"
90
- }), u.value && (u.value = !1), y("refresh", n.status === 200));
85
+ }), n.value && (n.value = !1), v("refresh", m.status === 200));
91
86
  }));
92
87
  }));
93
88
  };
94
- function _() {
95
- u.value && (u.value = !1);
89
+ function k() {
90
+ n.value && (n.value = !1);
96
91
  }
97
- return (l, t) => {
98
- const n = m("jmash-select"), d = m("el-form-item"), c = m("el-col"), p = m("el-input"), C = m("el-row"), M = m("el-form"), I = m("el-button"), U = m("el-dialog");
99
- return E(), K(U, {
100
- modelValue: u.value,
101
- "onUpdate:modelValue": t[5] || (t[5] = (i) => u.value = i),
102
- onClose: _
92
+ return (l, a) => {
93
+ const m = u("jmash-select"), d = u("el-form-item"), c = u("el-col"), p = u("el-input"), M = u("el-row"), U = u("el-form"), V = u("el-button"), j = u("el-dialog");
94
+ return K(), E(j, {
95
+ modelValue: n.value,
96
+ "onUpdate:modelValue": a[5] || (a[5] = (i) => n.value = i),
97
+ onClose: k
103
98
  }, {
104
99
  footer: o(() => [
105
- B("div", L, [
106
- e(I, { onClick: _ }, {
100
+ F("div", z, [
101
+ e(V, { onClick: k }, {
107
102
  default: o(() => [
108
- h(T(l.$t("common.cancel")), 1)
103
+ h(q(l.$t("common.cancel")), 1)
109
104
  ]),
110
105
  _: 1
111
106
  }),
112
- e(I, {
107
+ e(V, {
113
108
  type: "primary",
114
- onClick: x
109
+ onClick: C
115
110
  }, {
116
111
  default: o(() => [
117
- h(T(l.$t("common.confirm")), 1)
112
+ h(q(l.$t("common.confirm")), 1)
118
113
  ]),
119
114
  _: 1
120
115
  })
121
116
  ])
122
117
  ]),
123
118
  default: o(() => [
124
- e(M, {
119
+ e(U, {
125
120
  ref_key: "sysOrgInvoiceFormRef",
126
121
  ref: g,
127
- model: r(a),
122
+ model: r(t),
128
123
  "label-width": "100px",
129
- rules: R
124
+ rules: $
130
125
  }, {
131
126
  default: o(() => [
132
- e(C, null, {
127
+ e(M, null, {
133
128
  default: o(() => [
134
129
  e(c, { span: 24 }, {
135
130
  default: o(() => [
@@ -138,11 +133,11 @@ const L = { class: "dialog-footer" }, z = /* @__PURE__ */ j({
138
133
  prop: "invoiceType"
139
134
  }, {
140
135
  default: o(() => [
141
- e(n, {
142
- modelValue: r(a).invoiceType,
143
- "onUpdate:modelValue": t[0] || (t[0] = (i) => r(a).invoiceType = i),
136
+ e(m, {
137
+ modelValue: r(t).invoiceType,
138
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => r(t).invoiceType = i),
144
139
  placeholder: l.$t("sysOrgInvoice.invoiceTypeRequired"),
145
- data: r(F).invoiceTypeDictEnum.values,
140
+ data: r(L).invoiceTypeDictEnum.values,
146
141
  class: "w-full",
147
142
  clearable: ""
148
143
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -160,8 +155,8 @@ const L = { class: "dialog-footer" }, z = /* @__PURE__ */ j({
160
155
  }, {
161
156
  default: o(() => [
162
157
  e(p, {
163
- modelValue: r(a).invoiceTitle,
164
- "onUpdate:modelValue": t[1] || (t[1] = (i) => r(a).invoiceTitle = i),
158
+ modelValue: r(t).invoiceTitle,
159
+ "onUpdate:modelValue": a[1] || (a[1] = (i) => r(t).invoiceTitle = i),
165
160
  placeholder: l.$t("sysOrgInvoice.invoiceTitleRequired"),
166
161
  maxlength: "50",
167
162
  "show-word-limit": "",
@@ -181,8 +176,8 @@ const L = { class: "dialog-footer" }, z = /* @__PURE__ */ j({
181
176
  }, {
182
177
  default: o(() => [
183
178
  e(p, {
184
- modelValue: r(a).taxNumber,
185
- "onUpdate:modelValue": t[2] || (t[2] = (i) => r(a).taxNumber = i),
179
+ modelValue: r(t).taxNumber,
180
+ "onUpdate:modelValue": a[2] || (a[2] = (i) => r(t).taxNumber = i),
186
181
  placeholder: l.$t("sysOrgInvoice.taxNumberRequired"),
187
182
  maxlength: "50",
188
183
  "show-word-limit": "",
@@ -202,8 +197,8 @@ const L = { class: "dialog-footer" }, z = /* @__PURE__ */ j({
202
197
  }, {
203
198
  default: o(() => [
204
199
  e(p, {
205
- modelValue: r(a).bankName,
206
- "onUpdate:modelValue": t[3] || (t[3] = (i) => r(a).bankName = i),
200
+ modelValue: r(t).bankName,
201
+ "onUpdate:modelValue": a[3] || (a[3] = (i) => r(t).bankName = i),
207
202
  placeholder: l.$t("sysOrgInvoice.bankNameRequired"),
208
203
  maxlength: "50",
209
204
  "show-word-limit": "",
@@ -223,8 +218,8 @@ const L = { class: "dialog-footer" }, z = /* @__PURE__ */ j({
223
218
  }, {
224
219
  default: o(() => [
225
220
  e(p, {
226
- modelValue: r(a).backNumber,
227
- "onUpdate:modelValue": t[4] || (t[4] = (i) => r(a).backNumber = i),
221
+ modelValue: r(t).backNumber,
222
+ "onUpdate:modelValue": a[4] || (a[4] = (i) => r(t).backNumber = i),
228
223
  placeholder: l.$t("sysOrgInvoice.backNumberRequired"),
229
224
  maxlength: "20",
230
225
  "show-word-limit": "",
@@ -247,7 +242,7 @@ const L = { class: "dialog-footer" }, z = /* @__PURE__ */ j({
247
242
  }, 8, ["modelValue"]);
248
243
  };
249
244
  }
250
- }), X = /* @__PURE__ */ A(z, [["__scopeId", "data-v-1211e4d3"]]);
245
+ });
251
246
  export {
252
- X as default
247
+ X as _
253
248
  };