xyvcard-itsmsys 0.0.18 → 0.0.19

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 (48) hide show
  1. package/README.md +51 -51
  2. package/dist/{edit-C1zg8B0y.mjs → edit-BrHOGUbU.mjs} +1 -1
  3. package/dist/{edit-Cs3KIwaz.mjs → edit-CNEVornb.mjs} +100 -100
  4. package/dist/{edit-CxRGbAP_.mjs → edit-COKceKzl.mjs} +87 -87
  5. package/dist/{edit-DLN1WFrt.mjs → edit-Czi-Vkbf.mjs} +1 -1
  6. package/dist/{edit-CNFS8ehW.mjs → edit-DYqAdRsK.mjs} +99 -99
  7. package/dist/{edit-DlEW6lB8.mjs → edit-DybO5r3p.mjs} +1 -1
  8. package/dist/{edit-Dmxyf_Gp.mjs → edit-_QJnKCdq.mjs} +1 -1
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-jsZCbrsm.mjs → edit.vue_vue_type_script_setup_true_lang-BOvUiQbv.mjs} +136 -136
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-MQ4ZtR6S.mjs → edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs} +172 -173
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-eMXMvSnV.mjs → edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs} +53 -53
  12. package/dist/{edit.vue_vue_type_script_setup_true_lang-BKQkhngP.mjs → edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs} +108 -108
  13. package/dist/{import-upload-BM5kcXdg.mjs → import-upload-BvY7RZa-.mjs} +2 -2
  14. package/dist/{import-upload-BvBtwEbI.mjs → import-upload-DBk1lPqR.mjs} +5 -5
  15. package/dist/{index-CdQGs3Vu.mjs → index-BHcHN6PY.mjs} +3 -3
  16. package/dist/{index-Bxg8G8aA.mjs → index-Cow_4AlE.mjs} +3 -3
  17. package/dist/{index-D2e-NU3E.mjs → index-CuBZptA_.mjs} +1 -1
  18. package/dist/{index-nhzVBt2y.mjs → index-D__UxnZG.mjs} +13 -15
  19. package/dist/{index-Dsf1qOUx.mjs → index-IpHv0Vzi.mjs} +1 -1
  20. package/dist/{index-BzqZLipq.mjs → index-cpyRUYdS.mjs} +57 -55
  21. package/dist/{index-EhejgmO6.mjs → index-dIcRC4jE.mjs} +7 -13
  22. package/dist/{index-D2BUGsak.mjs → index-p50UkFiJ.mjs} +3 -3
  23. package/dist/index.mjs +1021 -936
  24. package/dist/{index.vue_vue_type_script_setup_true_lang-DhcyCvVN.mjs → index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs} +2 -2
  25. package/dist/{info-rnc-sgQt.mjs → info-BUKhtcuu.mjs} +2 -2
  26. package/dist/{info-DBObKyIh.mjs → info-Bn5mhJtq.mjs} +2 -2
  27. package/dist/{info-BZ7IZet8.mjs → info-Dx5fzSIP.mjs} +2 -2
  28. package/dist/{info-B2d8xPwW.mjs → info-EodyqiPm.mjs} +2 -2
  29. package/dist/{info-CoizfoOq.mjs → info-G1z1-aeX.mjs} +2 -2
  30. package/dist/{info-CCfX-q4c.mjs → info-bYWisCey.mjs} +2 -2
  31. package/dist/style.css +1 -1
  32. package/dts/api/itsm-sys-org/index.d.ts +5 -0
  33. package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -3
  34. package/dts/api/itsm-sys-user-ext/types.d.ts +8 -0
  35. package/dts/constant.d.ts +0 -4
  36. package/dts/index.d.ts +0 -1
  37. package/dts/lang/itsmsys/en.d.ts +130 -49
  38. package/dts/lang/itsmsys/zh-cn.d.ts +0 -3
  39. package/dts/views/itsmsys/itsm-sys-org-invoice/edit.vue.d.ts +8 -2
  40. package/dts/views/itsmsys/itsm-sys-user-man/edit.vue.d.ts +8 -2
  41. package/dts/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +8 -2
  42. package/dts/views/itsmsys/itsm-sys-user-out/edit.vue.d.ts +8 -2
  43. package/package.json +18 -20
  44. package/dist/import-upload-CjeTCQBx.mjs +0 -161
  45. package/dts/components/TMaps/index.vue.d.ts +0 -20
  46. package/dts/utils/TMap.d.ts +0 -1
  47. package/dts/utils/common.d.ts +0 -1
  48. package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +0 -31
@@ -1,12 +1,12 @@
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";
1
+ import { defineComponent as B, mergeModels as _, ref as k, useModel as K, reactive as O, resolveComponent as n, openBlock as E, createBlock as F, withCtx as o, createElementVNode as S, createVNode as e, createTextVNode as R, toDisplayString as h, unref as r } from "vue";
2
2
  import { ElMessage as q } from "element-plus";
3
- import { useI18n as L } from "vue-i18n";
4
- import { useRoute as z } from "vue-router";
3
+ import { useI18n as A } from "vue-i18n";
4
+ import { useRoute as L } from "vue-router";
5
5
  import { s as b } from "./index-B6vJj_z6.mjs";
6
- import { D as G, C as T } from "./index-EhejgmO6.mjs";
7
- const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
6
+ import { D as z } from "./index-dIcRC4jE.mjs";
7
+ const G = { class: "dialog-footer" }, Y = /* @__PURE__ */ B({
8
8
  __name: "edit",
9
- props: /* @__PURE__ */ R({
9
+ props: /* @__PURE__ */ _({
10
10
  entityKey: {
11
11
  type: Object,
12
12
  default: () => {
@@ -16,78 +16,78 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
16
16
  modelValue: { type: Boolean },
17
17
  modelModifiers: {}
18
18
  }),
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({
19
+ emits: /* @__PURE__ */ _(["refresh"], ["update:modelValue"]),
20
+ setup(g, { emit: T }) {
21
+ const { t: s } = A(), w = L(), f = k(), u = K(g, "modelValue"), v = T;
22
+ let t = O({
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 $ = k({
27
+ const $ = O({
28
28
  invoiceType: [
29
29
  {
30
30
  required: !0,
31
- message: i("sysOrgInvoice.invoiceTypeRequired"),
31
+ message: s("sysOrgInvoice.invoiceTypeRequired"),
32
32
  trigger: "blur"
33
33
  }
34
34
  ],
35
35
  invoiceTitle: [
36
36
  {
37
37
  required: !0,
38
- message: i("sysOrgInvoice.invoiceTitleRequired"),
38
+ message: s("sysOrgInvoice.invoiceTitleRequired"),
39
39
  trigger: "blur"
40
40
  }
41
41
  ],
42
42
  taxNumber: [
43
43
  {
44
44
  required: !0,
45
- message: i("sysOrgInvoice.taxNumberRequired"),
45
+ message: s("sysOrgInvoice.taxNumberRequired"),
46
46
  trigger: "blur"
47
47
  }
48
48
  ],
49
49
  bankName: [
50
50
  {
51
51
  required: !0,
52
- message: i("sysOrgInvoice.bankNameRequired"),
52
+ message: s("sysOrgInvoice.bankNameRequired"),
53
53
  trigger: "blur"
54
54
  }
55
55
  ],
56
56
  backNumber: [
57
57
  {
58
58
  required: !0,
59
- message: i("sysOrgInvoice.backNumberRequired"),
59
+ message: s("sysOrgInvoice.backNumberRequired"),
60
60
  trigger: "blur"
61
61
  },
62
62
  {
63
63
  min: 16,
64
64
  max: 20,
65
- message: i("sysOrgInvoice.backNumberLengthRequired"),
65
+ message: s("sysOrgInvoice.backNumberLengthRequired"),
66
66
  trigger: "blur"
67
67
  }
68
68
  ],
69
69
  taxRate: [
70
70
  {
71
71
  required: !0,
72
- message: i("sysOrgInvoice.taxRateRequired"),
72
+ message: s("sysOrgInvoice.taxRateRequired"),
73
73
  trigger: "blur"
74
74
  }
75
75
  ]
76
- }), y = g, C = Object.keys(y.entityKey), N = _(C.length >= 1);
76
+ }), y = g, x = Object.keys(y.entityKey), N = k(x.length >= 1);
77
77
  N.value && b.findById(y.entityKey).then(({ data: l }) => {
78
- Object.assign(a, l);
78
+ Object.assign(t, l);
79
79
  });
80
80
  const U = async () => {
81
81
  var l;
82
- await ((l = f.value) == null ? void 0 : l.validate((t) => {
83
- t && (N.value ? b.update(a).then((m) => {
82
+ await ((l = f.value) == null ? void 0 : l.validate((a) => {
83
+ a && (N.value ? b.update(t).then((m) => {
84
84
  m.status === 200 && (q({
85
- message: i("common.submitSuccess"),
85
+ message: s("common.submitSuccess"),
86
86
  type: "success"
87
87
  }), u.value && (u.value = !1), v("refresh", m.status === 200));
88
- }) : b.create(a).then((m) => {
88
+ }) : b.create(t).then((m) => {
89
89
  m.status === 200 && (q({
90
- message: i("common.submitSuccess"),
90
+ message: s("common.submitSuccess"),
91
91
  type: "success"
92
92
  }), u.value && (u.value = !1), v("refresh", m.status === 200));
93
93
  }));
@@ -96,18 +96,18 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
96
96
  function V() {
97
97
  u.value && (u.value = !1);
98
98
  }
99
- return (l, t) => {
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, {
99
+ return (l, a) => {
100
+ const m = n("jmash-select"), d = n("el-form-item"), c = n("el-col"), p = n("el-input"), C = n("el-input-number"), M = n("el-row"), j = n("el-form"), I = n("el-button"), D = n("el-dialog");
101
+ return E(), F(D, {
102
102
  modelValue: u.value,
103
- "onUpdate:modelValue": t[6] || (t[6] = (n) => u.value = n),
103
+ "onUpdate:modelValue": a[6] || (a[6] = (i) => u.value = i),
104
104
  onClose: V
105
105
  }, {
106
106
  footer: o(() => [
107
- A("div", H, [
107
+ S("div", G, [
108
108
  e(I, { onClick: V }, {
109
109
  default: o(() => [
110
- O(h(l.$t("common.cancel")), 1)
110
+ R(h(l.$t("common.cancel")), 1)
111
111
  ]),
112
112
  _: 1
113
113
  }),
@@ -116,22 +116,22 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
116
116
  onClick: U
117
117
  }, {
118
118
  default: o(() => [
119
- O(h(l.$t("common.confirm")), 1)
119
+ R(h(l.$t("common.confirm")), 1)
120
120
  ]),
121
121
  _: 1
122
122
  })
123
123
  ])
124
124
  ]),
125
125
  default: o(() => [
126
- e(D, {
126
+ e(j, {
127
127
  ref_key: "sysOrgInvoiceFormRef",
128
128
  ref: f,
129
- model: r(a),
129
+ model: r(t),
130
130
  "label-width": "120px",
131
131
  rules: $
132
132
  }, {
133
133
  default: o(() => [
134
- e(j, null, {
134
+ e(M, null, {
135
135
  default: o(() => [
136
136
  e(c, { span: 12 }, {
137
137
  default: o(() => [
@@ -141,10 +141,10 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
141
141
  }, {
142
142
  default: o(() => [
143
143
  e(m, {
144
- modelValue: r(a).invoiceType,
145
- "onUpdate:modelValue": t[0] || (t[0] = (n) => r(a).invoiceType = n),
144
+ modelValue: r(t).invoiceType,
145
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => r(t).invoiceType = i),
146
146
  placeholder: l.$t("sysOrgInvoice.invoiceTypeRequired"),
147
- data: r(G).invoiceTypeDictEnum.values,
147
+ data: r(z).invoiceTypeDictEnum.values,
148
148
  class: "w-full",
149
149
  clearable: ""
150
150
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -162,8 +162,8 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
162
162
  }, {
163
163
  default: o(() => [
164
164
  e(p, {
165
- modelValue: r(a).invoiceTitle,
166
- "onUpdate:modelValue": t[1] || (t[1] = (n) => r(a).invoiceTitle = n),
165
+ modelValue: r(t).invoiceTitle,
166
+ "onUpdate:modelValue": a[1] || (a[1] = (i) => r(t).invoiceTitle = i),
167
167
  placeholder: l.$t("sysOrgInvoice.invoiceTitleRequired"),
168
168
  maxlength: "50",
169
169
  "show-word-limit": "",
@@ -183,8 +183,8 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
183
183
  }, {
184
184
  default: o(() => [
185
185
  e(p, {
186
- modelValue: r(a).taxNumber,
187
- "onUpdate:modelValue": t[2] || (t[2] = (n) => r(a).taxNumber = n),
186
+ modelValue: r(t).taxNumber,
187
+ "onUpdate:modelValue": a[2] || (a[2] = (i) => r(t).taxNumber = i),
188
188
  placeholder: l.$t("sysOrgInvoice.taxNumberRequired"),
189
189
  maxlength: "50",
190
190
  "show-word-limit": "",
@@ -204,8 +204,8 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
204
204
  }, {
205
205
  default: o(() => [
206
206
  e(p, {
207
- modelValue: r(a).bankName,
208
- "onUpdate:modelValue": t[3] || (t[3] = (n) => r(a).bankName = n),
207
+ modelValue: r(t).bankName,
208
+ "onUpdate:modelValue": a[3] || (a[3] = (i) => r(t).bankName = i),
209
209
  placeholder: l.$t("sysOrgInvoice.bankNameRequired"),
210
210
  maxlength: "50",
211
211
  "show-word-limit": "",
@@ -225,8 +225,8 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
225
225
  }, {
226
226
  default: o(() => [
227
227
  e(p, {
228
- modelValue: r(a).backNumber,
229
- "onUpdate:modelValue": t[4] || (t[4] = (n) => r(a).backNumber = n),
228
+ modelValue: r(t).backNumber,
229
+ "onUpdate:modelValue": a[4] || (a[4] = (i) => r(t).backNumber = i),
230
230
  placeholder: l.$t("sysOrgInvoice.backNumberRequired"),
231
231
  maxlength: "20",
232
232
  "show-word-limit": "",
@@ -245,16 +245,16 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
245
245
  prop: "taxRate"
246
246
  }, {
247
247
  default: o(() => [
248
- e(M, {
249
- modelValue: r(a).taxRate,
250
- "onUpdate:modelValue": t[5] || (t[5] = (n) => r(a).taxRate = n),
248
+ e(C, {
249
+ modelValue: r(t).taxRate,
250
+ "onUpdate:modelValue": a[5] || (a[5] = (i) => r(t).taxRate = i),
251
251
  placeholder: l.$t("sysOrgInvoice.taxRateRequired"),
252
252
  precision: 2,
253
- min: r(T).taxRate.min,
254
- max: r(T).taxRate.max,
253
+ min: 0,
254
+ max: 0.99,
255
255
  step: 0.01,
256
256
  class: "w-full"
257
- }, null, 8, ["modelValue", "placeholder", "min", "max"])
257
+ }, null, 8, ["modelValue", "placeholder"])
258
258
  ]),
259
259
  _: 1
260
260
  }, 8, ["label"])
@@ -274,5 +274,5 @@ const H = { class: "dialog-footer" }, Z = /* @__PURE__ */ K({
274
274
  }
275
275
  });
276
276
  export {
277
- Z as _
277
+ Y as _
278
278
  };