xyvcard-itsmsys 0.0.12 → 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 (46) hide show
  1. package/dist/{edit-aqBMKpoJ.mjs → edit-B7N9QLYv.mjs} +97 -82
  2. package/dist/{edit-C-Ddf0UV.mjs → edit-CBnnqc6q.mjs} +103 -87
  3. package/dist/{edit-BSgQ7aTw.mjs → edit-CuD0yKla.mjs} +1 -1
  4. package/dist/{edit-BSllWdRO.mjs → edit-D2lhB7lU.mjs} +1 -1
  5. package/dist/{edit-CNw8JPUb.mjs → edit-DQ04LbhC.mjs} +89 -74
  6. package/dist/{edit-Cd4dWFsH.mjs → edit-IRLCMnWT.mjs} +1 -1
  7. package/dist/{edit-q5TFAMBm.mjs → edit-g4L03h6h.mjs} +1 -1
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-BJcLgzvH.mjs → edit.vue_vue_type_script_setup_true_lang-CEzM2X-C.mjs} +50 -50
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-BA39WCu3.mjs → edit.vue_vue_type_script_setup_true_lang-DD9BucLK.mjs} +50 -50
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-D1lAHFeM.mjs → edit.vue_vue_type_script_setup_true_lang-Daxe3FpV.mjs} +44 -37
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-BV_YHrlE.mjs → edit.vue_vue_type_script_setup_true_lang-SzJApeB-.mjs} +74 -74
  12. package/dist/import-upload-Bsl-7w0B.mjs +161 -0
  13. package/dist/import-upload-COLdGpcs.mjs +161 -0
  14. package/dist/{index-Dno_3GpX.mjs → index-B4M6ZC7N.mjs} +91 -40
  15. package/dist/{index-BY5Djw_C.mjs → index-BBPQd1dS.mjs} +138 -127
  16. package/dist/{index-BaixQptZ.mjs → index-BxX1lrD5.mjs} +63 -61
  17. package/dist/{index-LOMCvxtf.mjs → index-CzVhcXfx.mjs} +57 -55
  18. package/dist/index-DNpEXtyQ.mjs +423 -0
  19. package/dist/{index-DrBtW9Aj.mjs → index-Dh_kNwqv.mjs} +144 -157
  20. package/dist/{index-Cz9Xj4Mn.mjs → index-Dih4mOx4.mjs} +1 -1
  21. package/dist/index-n4FekcLF.mjs +504 -0
  22. package/dist/index.mjs +118 -114
  23. package/dist/{index.vue_vue_type_script_setup_true_lang-C67sXgs5.mjs → index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs} +2 -2
  24. package/dist/info-BHylKqOX.mjs +186 -0
  25. package/dist/info-BZOWTNSd.mjs +209 -0
  26. package/dist/{info-BUDmirQy.mjs → info-CDtqpKVD.mjs} +80 -58
  27. package/dist/{info-D0Pwnmsu.mjs → info-XDDe5ve6.mjs} +1 -1
  28. package/dist/{info-C3knY6l_.mjs → info-bwhmPzeG.mjs} +1 -1
  29. package/dist/info-dBqoxL-p.mjs +209 -0
  30. package/dist/style.css +1 -1
  31. package/dts/api/dict.d.ts +7 -1
  32. package/dts/api/index.d.ts +3 -1
  33. package/dts/api/itsm-sys-org/types.d.ts +1 -0
  34. package/dts/api/itsm-sys-user-ext/types.d.ts +4 -0
  35. package/dts/constant.d.ts +8 -0
  36. package/dts/lang/itsmsys/zh-cn.d.ts +4 -0
  37. package/package.json +1 -1
  38. package/dist/import-upload-BIT504-g.mjs +0 -4
  39. package/dist/import-upload-pZG8yku3.mjs +0 -4
  40. package/dist/import-upload.vue_vue_type_script_setup_true_lang-pjSs3v9e.mjs +0 -162
  41. package/dist/import-upload.vue_vue_type_script_setup_true_lang-tjMLoB_W.mjs +0 -162
  42. package/dist/index-CoMhbtrg.mjs +0 -449
  43. package/dist/index-DPz8be3T.mjs +0 -351
  44. package/dist/info-BivxW-qV.mjs +0 -187
  45. package/dist/info-Bn-BseIm.mjs +0 -187
  46. package/dist/info-C-ga_8K9.mjs +0 -176
@@ -1,9 +1,9 @@
1
- import { defineComponent as G, mergeModels as v, ref as j, useModel as Z, reactive as M, resolveComponent as m, openBlock as U, createBlock as V, withCtx as s, createElementVNode as L, createVNode as e, createTextVNode as h, toDisplayString as O, unref as o, createCommentVNode as P } from "vue";
1
+ import { defineComponent as G, mergeModels as v, ref as j, useModel as Z, reactive as M, resolveComponent as m, openBlock as U, createBlock as V, withCtx as s, createElementVNode as L, createVNode as e, createTextVNode as h, toDisplayString as O, unref as r, createCommentVNode as P } from "vue";
2
2
  import { ElMessage as C } from "element-plus";
3
3
  import { useI18n as X } from "vue-i18n";
4
4
  import { sysUserExtApi as w } from "./index.mjs";
5
5
  import { generateRandomKey as H } from "jmash-core";
6
- import { D as f, C as y } from "./index-Dno_3GpX.mjs";
6
+ import { D as f, C as y } from "./index-B4M6ZC7N.mjs";
7
7
  const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
8
8
  __name: "edit",
9
9
  props: /* @__PURE__ */ v({
@@ -20,7 +20,7 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
20
20
  setup(q, { emit: S }) {
21
21
  const { t: i } = X(), R = j(), p = Z(q, "modelValue"), $ = S;
22
22
  f.sysOutBizDict.useValues();
23
- let r = M({
23
+ let a = M({
24
24
  requestId: Math.random() * 10 + "",
25
25
  updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty,engineeCertificate",
26
26
  userType: y.userType.outsourceOps,
@@ -28,8 +28,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
28
28
  engineeType: y.engineeType.ease_test,
29
29
  engineeJobMode: y.engineeJobMode.resident
30
30
  });
31
- const T = (l, a, n) => {
32
- a === void 0 && n(new Error(i("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(a) || n(new Error(i("sysUserOps.mobilePhoneRequireds"))), n();
31
+ const T = (l, o, n) => {
32
+ o === void 0 && n(new Error(i("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(o) || n(new Error(i("sysUserOps.mobilePhoneRequireds"))), n();
33
33
  }, E = M({
34
34
  realName: [
35
35
  {
@@ -96,17 +96,17 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
96
96
  ]
97
97
  }), N = q, I = Object.keys(N.entityKey), b = j(I.length >= 1);
98
98
  b.value && w.findById(N.entityKey).then(({ data: l }) => {
99
- Object.assign(r, l);
99
+ Object.assign(a, l), a.gender === "unknown" && (a.gender = "");
100
100
  });
101
- const D = async () => {
101
+ const k = async () => {
102
102
  var l;
103
- await ((l = R.value) == null ? void 0 : l.validate((a) => {
104
- a && (b.value ? w.update(r).then((n) => {
103
+ await ((l = R.value) == null ? void 0 : l.validate((o) => {
104
+ o && (b.value ? w.update(a).then((n) => {
105
105
  console.log(n), n.status === 200 && (C({
106
106
  message: i("common.submitSuccess"),
107
107
  type: "success"
108
108
  }), p.value && (p.value = !1), $("refresh", n.status === 200));
109
- }) : w.create(r).then((n) => {
109
+ }) : w.create(a).then((n) => {
110
110
  console.log(n), n.status === 200 && (C({
111
111
  message: i("common.submitSuccess"),
112
112
  type: "success"
@@ -114,17 +114,17 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
114
114
  }));
115
115
  }));
116
116
  };
117
- function J() {
118
- r.userPassword = H();
117
+ function D() {
118
+ a.userPassword = H();
119
119
  }
120
120
  function _() {
121
121
  p.value && (p.value = !1);
122
122
  }
123
- return (l, a) => {
124
- const n = m("jmash-select"), d = m("el-form-item"), u = m("el-col"), g = m("el-input"), k = m("jmash-enum-select"), z = m("jmash-dict-select"), B = m("jmash-enum-radio"), c = m("el-button"), A = m("el-row"), K = m("el-form"), F = m("el-dialog");
123
+ return (l, o) => {
124
+ const n = m("jmash-select"), d = m("el-form-item"), u = m("el-col"), g = m("el-input"), J = m("jmash-enum-select"), z = m("jmash-dict-select"), B = m("jmash-enum-radio"), c = m("el-button"), A = m("el-row"), K = m("el-form"), F = m("el-dialog");
125
125
  return U(), V(F, {
126
126
  modelValue: p.value,
127
- "onUpdate:modelValue": a[13] || (a[13] = (t) => p.value = t),
127
+ "onUpdate:modelValue": o[13] || (o[13] = (t) => p.value = t),
128
128
  onClose: _
129
129
  }, {
130
130
  footer: s(() => [
@@ -137,7 +137,7 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
137
137
  }),
138
138
  e(c, {
139
139
  type: "primary",
140
- onClick: D
140
+ onClick: k
141
141
  }, {
142
142
  default: s(() => [
143
143
  h(O(l.$t("common.confirm")), 1)
@@ -150,7 +150,7 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
150
150
  e(K, {
151
151
  ref_key: "sysUserExtFormRef",
152
152
  ref: R,
153
- model: o(r),
153
+ model: r(a),
154
154
  "label-width": "100px",
155
155
  rules: E
156
156
  }, {
@@ -165,10 +165,10 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
165
165
  }, {
166
166
  default: s(() => [
167
167
  e(n, {
168
- modelValue: o(r).orgId,
169
- "onUpdate:modelValue": a[0] || (a[0] = (t) => o(r).orgId = t),
168
+ modelValue: r(a).orgId,
169
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => r(a).orgId = t),
170
170
  placeholder: l.$t("sysUserOps.orgIdRequired"),
171
- data: o(f).sysOutBizDict.values,
171
+ data: r(f).sysOutBizDict.values,
172
172
  clearable: "",
173
173
  class: "w-full"
174
174
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -189,8 +189,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
189
189
  }, {
190
190
  default: s(() => [
191
191
  e(g, {
192
- modelValue: o(r).loginName,
193
- "onUpdate:modelValue": a[1] || (a[1] = (t) => o(r).loginName = t),
192
+ modelValue: r(a).loginName,
193
+ "onUpdate:modelValue": o[1] || (o[1] = (t) => r(a).loginName = t),
194
194
  clearable: "",
195
195
  placeholder: l.$t("sysUserOps.loginNameRequired"),
196
196
  maxlength: "30",
@@ -210,8 +210,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
210
210
  }, {
211
211
  default: s(() => [
212
212
  e(g, {
213
- modelValue: o(r).realName,
214
- "onUpdate:modelValue": a[2] || (a[2] = (t) => o(r).realName = t),
213
+ modelValue: r(a).realName,
214
+ "onUpdate:modelValue": o[2] || (o[2] = (t) => r(a).realName = t),
215
215
  placeholder: l.$t("sysUserOps.realNameRequired"),
216
216
  maxlength: "8",
217
217
  "show-word-limit": "",
@@ -230,9 +230,9 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
230
230
  prop: "gender"
231
231
  }, {
232
232
  default: s(() => [
233
- e(k, {
234
- modelValue: o(r).gender,
235
- "onUpdate:modelValue": a[3] || (a[3] = (t) => o(r).gender = t),
233
+ e(J, {
234
+ modelValue: r(a).gender,
235
+ "onUpdate:modelValue": o[3] || (o[3] = (t) => r(a).gender = t),
236
236
  clearable: "",
237
237
  placeholder: l.$t("sysUserOps.genderRequired"),
238
238
  "enum-type": "jmash.protobuf.Gender",
@@ -252,8 +252,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
252
252
  }, {
253
253
  default: s(() => [
254
254
  e(g, {
255
- modelValue: o(r).mobilePhone,
256
- "onUpdate:modelValue": a[4] || (a[4] = (t) => o(r).mobilePhone = t),
255
+ modelValue: r(a).mobilePhone,
256
+ "onUpdate:modelValue": o[4] || (o[4] = (t) => r(a).mobilePhone = t),
257
257
  placeholder: l.$t("sysUserOps.mobilePhoneRequired"),
258
258
  maxlength: "11",
259
259
  "show-word-limit": "",
@@ -273,8 +273,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
273
273
  }, {
274
274
  default: s(() => [
275
275
  e(g, {
276
- modelValue: o(r).email,
277
- "onUpdate:modelValue": a[5] || (a[5] = (t) => o(r).email = t),
276
+ modelValue: r(a).email,
277
+ "onUpdate:modelValue": o[5] || (o[5] = (t) => r(a).email = t),
278
278
  placeholder: l.$t("sysUserOps.emailRequired"),
279
279
  maxlength: "30",
280
280
  "show-word-limit": "",
@@ -294,8 +294,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
294
294
  }, {
295
295
  default: s(() => [
296
296
  e(g, {
297
- modelValue: o(r).idNo,
298
- "onUpdate:modelValue": a[6] || (a[6] = (t) => o(r).idNo = t),
297
+ modelValue: r(a).idNo,
298
+ "onUpdate:modelValue": o[6] || (o[6] = (t) => r(a).idNo = t),
299
299
  placeholder: l.$t("sysUserOps.idNoRequired"),
300
300
  maxlength: "18",
301
301
  "show-word-limit": "",
@@ -315,10 +315,10 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
315
315
  }, {
316
316
  default: s(() => [
317
317
  e(n, {
318
- modelValue: o(r).engineeType,
319
- "onUpdate:modelValue": a[7] || (a[7] = (t) => o(r).engineeType = t),
318
+ modelValue: r(a).engineeType,
319
+ "onUpdate:modelValue": o[7] || (o[7] = (t) => r(a).engineeType = t),
320
320
  placeholder: l.$t("sysUserOps.engineeTypeRequired"),
321
- data: o(f).engineeTypeDictEnum.values,
321
+ data: r(f).engineeTypeDictEnum.values,
322
322
  clearable: "",
323
323
  class: "w-full"
324
324
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -336,10 +336,10 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
336
336
  }, {
337
337
  default: s(() => [
338
338
  e(z, {
339
- modelValue: o(r).engineeCertificate,
340
- "onUpdate:modelValue": a[8] || (a[8] = (t) => o(r).engineeCertificate = t),
339
+ modelValue: r(a).engineeCertificate,
340
+ "onUpdate:modelValue": o[8] || (o[8] = (t) => r(a).engineeCertificate = t),
341
341
  placeholder: l.$t("sysUserOps.engineeCertificateRequired"),
342
- "type-code": o(y).DICT_ENGINEE_GRADE,
342
+ "type-code": r(y).DICT_ENGINEE_GRADE,
343
343
  clearable: "",
344
344
  filterable: "",
345
345
  class: "w-full"
@@ -358,10 +358,10 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
358
358
  }, {
359
359
  default: s(() => [
360
360
  e(n, {
361
- modelValue: o(r).engineeJobMode,
362
- "onUpdate:modelValue": a[9] || (a[9] = (t) => o(r).engineeJobMode = t),
361
+ modelValue: r(a).engineeJobMode,
362
+ "onUpdate:modelValue": o[9] || (o[9] = (t) => r(a).engineeJobMode = t),
363
363
  placeholder: l.$t("sysUserOps.engineeJobModeRequired"),
364
- data: o(f).engineeJobModeDictEnum.values,
364
+ data: r(f).engineeJobModeDictEnum.values,
365
365
  clearable: "",
366
366
  class: "w-full"
367
367
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -379,9 +379,9 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
379
379
  }, {
380
380
  default: s(() => [
381
381
  e(B, {
382
- modelValue: o(r).jobStatus,
383
- "onUpdate:modelValue": a[10] || (a[10] = (t) => o(r).jobStatus = t),
384
- data: o(f).jobStatusDictEnum.values
382
+ modelValue: r(a).jobStatus,
383
+ "onUpdate:modelValue": o[10] || (o[10] = (t) => r(a).jobStatus = t),
384
+ data: r(f).jobStatusDictEnum.values
385
385
  }, null, 8, ["modelValue", "data"])
386
386
  ]),
387
387
  _: 1
@@ -400,15 +400,15 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
400
400
  }, {
401
401
  default: s(() => [
402
402
  e(g, {
403
- modelValue: o(r).userPassword,
404
- "onUpdate:modelValue": a[11] || (a[11] = (t) => o(r).userPassword = t),
403
+ modelValue: r(a).userPassword,
404
+ "onUpdate:modelValue": o[11] || (o[11] = (t) => r(a).userPassword = t),
405
405
  clearable: "",
406
406
  type: "password",
407
407
  "show-password": "",
408
408
  placeholder: l.$t("sysUserOps.userPasswordRequired")
409
409
  }, {
410
410
  append: s(() => [
411
- e(c, { onClick: J }, {
411
+ e(c, { onClick: D }, {
412
412
  default: s(() => [
413
413
  h(O(l.$t("sysUserOps.randomPwd")), 1)
414
414
  ]),
@@ -431,8 +431,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
431
431
  }, {
432
432
  default: s(() => [
433
433
  e(g, {
434
- modelValue: o(r).engineeSpecialty,
435
- "onUpdate:modelValue": a[12] || (a[12] = (t) => o(r).engineeSpecialty = t),
434
+ modelValue: r(a).engineeSpecialty,
435
+ "onUpdate:modelValue": o[12] || (o[12] = (t) => r(a).engineeSpecialty = t),
436
436
  placeholder: l.$t("sysUserOps.engineeSpecialtyRequired"),
437
437
  type: "textarea",
438
438
  autosize: { minRows: 2 },
@@ -1,12 +1,12 @@
1
- import { defineComponent as B, mergeModels as k, ref as I, useModel as K, reactive as O, resolveComponent as i, openBlock as E, createBlock as F, withCtx as o, createElementVNode as S, createVNode as e, createTextVNode as h, toDisplayString as R, unref as r } from "vue";
1
+ import { defineComponent as K, mergeModels as R, ref as _, useModel as E, reactive as k, resolveComponent as s, openBlock as F, createBlock as S, withCtx as o, createElementVNode as A, createVNode as e, createTextVNode as O, toDisplayString as h, unref as r } from "vue";
2
2
  import { ElMessage as q } from "element-plus";
3
- import { useI18n as A } from "vue-i18n";
4
- import { useRoute as L } from "vue-router";
3
+ import { useI18n as L } from "vue-i18n";
4
+ import { useRoute as z } from "vue-router";
5
5
  import { s as b } from "./index-B6vJj_z6.mjs";
6
- import { D as z } from "./index-Dno_3GpX.mjs";
7
- const G = { class: "dialog-footer" }, Y = /* @__PURE__ */ B({
6
+ import { D as G, C as T } from "./index-B4M6ZC7N.mjs";
7
+ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
8
8
  __name: "edit",
9
- props: /* @__PURE__ */ k({
9
+ props: /* @__PURE__ */ R({
10
10
  entityKey: {
11
11
  type: Object,
12
12
  default: () => {
@@ -16,71 +16,78 @@ const G = { class: "dialog-footer" }, Y = /* @__PURE__ */ B({
16
16
  modelValue: { type: Boolean },
17
17
  modelModifiers: {}
18
18
  }),
19
- emits: /* @__PURE__ */ k(["refresh"], ["update:modelValue"]),
20
- setup(f, { emit: T }) {
21
- const { t: s } = A(), w = L(), g = I(), u = K(f, "modelValue"), v = T;
22
- let a = O({
19
+ emits: /* @__PURE__ */ R(["refresh"], ["update:modelValue"]),
20
+ setup(g, { emit: x }) {
21
+ const { t: i } = L(), w = z(), f = _(), u = E(g, "modelValue"), v = x;
22
+ let a = k({
23
23
  requestId: Math.random() * 10 + "",
24
24
  updateMask: "invoiceType,invoiceTitle,taxNumber,bankName,backNumber,taxRate",
25
25
  orgId: w.query.entityKey
26
26
  });
27
- const $ = O({
27
+ const $ = k({
28
28
  invoiceType: [
29
29
  {
30
30
  required: !0,
31
- message: s("sysOrgInvoice.invoiceTypeRequired"),
31
+ message: i("sysOrgInvoice.invoiceTypeRequired"),
32
32
  trigger: "blur"
33
33
  }
34
34
  ],
35
35
  invoiceTitle: [
36
36
  {
37
37
  required: !0,
38
- message: s("sysOrgInvoice.invoiceTitleRequired"),
38
+ message: i("sysOrgInvoice.invoiceTitleRequired"),
39
39
  trigger: "blur"
40
40
  }
41
41
  ],
42
42
  taxNumber: [
43
43
  {
44
44
  required: !0,
45
- message: s("sysOrgInvoice.taxNumberRequired"),
45
+ message: i("sysOrgInvoice.taxNumberRequired"),
46
46
  trigger: "blur"
47
47
  }
48
48
  ],
49
49
  bankName: [
50
50
  {
51
51
  required: !0,
52
- message: s("sysOrgInvoice.bankNameRequired"),
52
+ message: i("sysOrgInvoice.bankNameRequired"),
53
53
  trigger: "blur"
54
54
  }
55
55
  ],
56
56
  backNumber: [
57
57
  {
58
58
  required: !0,
59
- message: s("sysOrgInvoice.backNumberRequired"),
59
+ message: i("sysOrgInvoice.backNumberRequired"),
60
60
  trigger: "blur"
61
61
  },
62
62
  {
63
63
  min: 16,
64
64
  max: 20,
65
- message: s("sysOrgInvoice.backNumberLengthRequired"),
65
+ message: i("sysOrgInvoice.backNumberLengthRequired"),
66
+ trigger: "blur"
67
+ }
68
+ ],
69
+ taxRate: [
70
+ {
71
+ required: !0,
72
+ message: i("sysOrgInvoice.taxRateRequired"),
66
73
  trigger: "blur"
67
74
  }
68
75
  ]
69
- }), y = f, x = Object.keys(y.entityKey), N = I(x.length >= 1);
76
+ }), y = g, C = Object.keys(y.entityKey), N = _(C.length >= 1);
70
77
  N.value && b.findById(y.entityKey).then(({ data: l }) => {
71
78
  Object.assign(a, l);
72
79
  });
73
80
  const U = async () => {
74
81
  var l;
75
- await ((l = g.value) == null ? void 0 : l.validate((t) => {
82
+ await ((l = f.value) == null ? void 0 : l.validate((t) => {
76
83
  t && (N.value ? b.update(a).then((m) => {
77
84
  m.status === 200 && (q({
78
- message: s("common.submitSuccess"),
85
+ message: i("common.submitSuccess"),
79
86
  type: "success"
80
87
  }), u.value && (u.value = !1), v("refresh", m.status === 200));
81
88
  }) : b.create(a).then((m) => {
82
89
  m.status === 200 && (q({
83
- message: s("common.submitSuccess"),
90
+ message: i("common.submitSuccess"),
84
91
  type: "success"
85
92
  }), u.value && (u.value = !1), v("refresh", m.status === 200));
86
93
  }));
@@ -90,41 +97,41 @@ const G = { class: "dialog-footer" }, Y = /* @__PURE__ */ B({
90
97
  u.value && (u.value = !1);
91
98
  }
92
99
  return (l, t) => {
93
- const m = i("jmash-select"), d = i("el-form-item"), c = i("el-col"), p = i("el-input"), C = i("el-input-number"), M = i("el-row"), j = i("el-form"), _ = i("el-button"), D = i("el-dialog");
94
- return E(), F(D, {
100
+ const m = s("jmash-select"), d = s("el-form-item"), c = s("el-col"), p = s("el-input"), M = s("el-input-number"), j = s("el-row"), D = s("el-form"), I = s("el-button"), B = s("el-dialog");
101
+ return F(), S(B, {
95
102
  modelValue: u.value,
96
103
  "onUpdate:modelValue": t[6] || (t[6] = (n) => u.value = n),
97
104
  onClose: V
98
105
  }, {
99
106
  footer: o(() => [
100
- S("div", G, [
101
- e(_, { onClick: V }, {
107
+ A("div", H, [
108
+ e(I, { onClick: V }, {
102
109
  default: o(() => [
103
- h(R(l.$t("common.cancel")), 1)
110
+ O(h(l.$t("common.cancel")), 1)
104
111
  ]),
105
112
  _: 1
106
113
  }),
107
- e(_, {
114
+ e(I, {
108
115
  type: "primary",
109
116
  onClick: U
110
117
  }, {
111
118
  default: o(() => [
112
- h(R(l.$t("common.confirm")), 1)
119
+ O(h(l.$t("common.confirm")), 1)
113
120
  ]),
114
121
  _: 1
115
122
  })
116
123
  ])
117
124
  ]),
118
125
  default: o(() => [
119
- e(j, {
126
+ e(D, {
120
127
  ref_key: "sysOrgInvoiceFormRef",
121
- ref: g,
128
+ ref: f,
122
129
  model: r(a),
123
130
  "label-width": "120px",
124
131
  rules: $
125
132
  }, {
126
133
  default: o(() => [
127
- e(M, null, {
134
+ e(j, null, {
128
135
  default: o(() => [
129
136
  e(c, { span: 12 }, {
130
137
  default: o(() => [
@@ -137,7 +144,7 @@ const G = { class: "dialog-footer" }, Y = /* @__PURE__ */ B({
137
144
  modelValue: r(a).invoiceType,
138
145
  "onUpdate:modelValue": t[0] || (t[0] = (n) => r(a).invoiceType = n),
139
146
  placeholder: l.$t("sysOrgInvoice.invoiceTypeRequired"),
140
- data: r(z).invoiceTypeDictEnum.values,
147
+ data: r(G).invoiceTypeDictEnum.values,
141
148
  class: "w-full",
142
149
  clearable: ""
143
150
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -238,16 +245,16 @@ const G = { class: "dialog-footer" }, Y = /* @__PURE__ */ B({
238
245
  prop: "taxRate"
239
246
  }, {
240
247
  default: o(() => [
241
- e(C, {
248
+ e(M, {
242
249
  modelValue: r(a).taxRate,
243
250
  "onUpdate:modelValue": t[5] || (t[5] = (n) => r(a).taxRate = n),
244
251
  placeholder: l.$t("sysOrgInvoice.taxRateRequired"),
245
252
  precision: 2,
246
- min: 0,
247
- max: 1,
253
+ min: r(T).taxRate.min,
254
+ max: r(T).taxRate.max,
248
255
  step: 0.01,
249
256
  class: "w-full"
250
- }, null, 8, ["modelValue", "placeholder"])
257
+ }, null, 8, ["modelValue", "placeholder", "min", "max"])
251
258
  ]),
252
259
  _: 1
253
260
  }, 8, ["label"])
@@ -267,5 +274,5 @@ const G = { class: "dialog-footer" }, Y = /* @__PURE__ */ B({
267
274
  }
268
275
  });
269
276
  export {
270
- Y as _
277
+ Z as _
271
278
  };