xyvcard-itsmsys 0.0.11 → 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 (52) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/{edit-Dxs-2AFY.mjs → edit-B7N9QLYv.mjs} +104 -87
  3. package/dist/{edit-BSIP_9Mq.mjs → edit-CBnnqc6q.mjs} +104 -86
  4. package/dist/{edit-CiCHPkRg.mjs → edit-CuD0yKla.mjs} +1 -1
  5. package/dist/{edit-BcE5qrWo.mjs → edit-D2lhB7lU.mjs} +1 -1
  6. package/dist/{edit-BsUWSNnA.mjs → edit-DQ04LbhC.mjs} +96 -79
  7. package/dist/{edit-znznl9Td.mjs → edit-IRLCMnWT.mjs} +1 -1
  8. package/dist/{edit-CW0kqOpj.mjs → edit-g4L03h6h.mjs} +1 -1
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-CEzM2X-C.mjs +463 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-DD9BucLK.mjs +463 -0
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-DjrTJAzO.mjs → edit.vue_vue_type_script_setup_true_lang-Daxe3FpV.mjs} +98 -68
  12. package/dist/edit.vue_vue_type_script_setup_true_lang-SzJApeB-.mjs +482 -0
  13. package/dist/import-upload-Bsl-7w0B.mjs +161 -0
  14. package/dist/import-upload-COLdGpcs.mjs +161 -0
  15. package/dist/index-B4M6ZC7N.mjs +196 -0
  16. package/dist/{index-BV3Je3Rq.mjs → index-BBPQd1dS.mjs} +139 -128
  17. package/dist/{index-BIvJ7rs4.mjs → index-BxX1lrD5.mjs} +64 -62
  18. package/dist/{index-CzE5REdf.mjs → index-CzVhcXfx.mjs} +57 -55
  19. package/dist/index-DNpEXtyQ.mjs +423 -0
  20. package/dist/index-Dh_kNwqv.mjs +470 -0
  21. package/dist/{index-CNRO77Xg.mjs → index-Dih4mOx4.mjs} +1 -1
  22. package/dist/{index-4qnVgDwe.mjs → index-n4FekcLF.mjs} +210 -138
  23. package/dist/index.mjs +293 -256
  24. package/dist/{index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs → index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs} +41 -34
  25. package/dist/info-BHylKqOX.mjs +186 -0
  26. package/dist/info-BZOWTNSd.mjs +209 -0
  27. package/dist/{info-BP7wPWFZ.mjs → info-CDtqpKVD.mjs} +80 -58
  28. package/dist/{info-DRYPl2T-.mjs → info-XDDe5ve6.mjs} +58 -47
  29. package/dist/{info-DCRqBi8M.mjs → info-bwhmPzeG.mjs} +71 -60
  30. package/dist/info-dBqoxL-p.mjs +209 -0
  31. package/dist/style.css +1 -1
  32. package/dts/api/dict.d.ts +7 -7
  33. package/dts/api/index.d.ts +6 -2
  34. package/dts/api/itsm-sys-org/types.d.ts +1 -0
  35. package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -0
  36. package/dts/api/itsm-sys-user-ext/index.d.ts +3 -1
  37. package/dts/api/itsm-sys-user-ext/types.d.ts +19 -1
  38. package/dts/constant.d.ts +9 -0
  39. package/dts/index.d.ts +1 -0
  40. package/dts/lang/itsmsys/zh-cn.d.ts +17 -0
  41. package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +31 -0
  42. package/dts/views/itsmsys/itsm-sys-user-out/import-upload.vue.d.ts +31 -0
  43. package/package.json +3 -3
  44. package/dist/edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs +0 -422
  45. package/dist/edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs +0 -422
  46. package/dist/edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs +0 -404
  47. package/dist/index-BTO0NHK6.mjs +0 -397
  48. package/dist/index-Hh4b5GAI.mjs +0 -351
  49. package/dist/index-cBbN-uY2.mjs +0 -155
  50. package/dist/info-BCPme1g5.mjs +0 -187
  51. package/dist/info-CtGMbfQJ.mjs +0 -187
  52. package/dist/info-Dk3RzCIp.mjs +0 -176
@@ -1,12 +1,12 @@
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
- import { useI18n as S } from "vue-i18n";
4
- import { useRoute as A } from "vue-router";
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
+ import { ElMessage as q } from "element-plus";
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 L } from "./index-cBbN-uY2.mjs";
7
- const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
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__ */ _({
9
+ props: /* @__PURE__ */ R({
10
10
  entityKey: {
11
11
  type: Object,
12
12
  default: () => {
@@ -16,117 +16,124 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
16
16
  modelValue: { type: Boolean },
17
17
  modelModifiers: {}
18
18
  }),
19
- emits: /* @__PURE__ */ _(["refresh"], ["update:modelValue"]),
20
- setup(f, { emit: w }) {
21
- const { t: s } = S(), R = A(), g = I(), n = B(f, "modelValue"), v = w;
22
- let t = 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
- updateMask: "invoiceType,invoiceTitle,taxNumber,bankName,backNumber",
25
- orgId: R.query.entityKey
24
+ updateMask: "invoiceType,invoiceTitle,taxNumber,bankName,backNumber,taxRate",
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
- Object.assign(t, l);
78
+ Object.assign(a, l);
72
79
  });
73
- const C = async () => {
80
+ const U = async () => {
74
81
  var l;
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({
78
- message: s("common.submitSuccess"),
82
+ await ((l = f.value) == null ? void 0 : l.validate((t) => {
83
+ t && (N.value ? b.update(a).then((m) => {
84
+ m.status === 200 && (q({
85
+ message: i("common.submitSuccess"),
79
86
  type: "success"
80
- }), n.value && (n.value = !1), v("refresh", m.status === 200));
81
- }) : b.create(t).then((m) => {
82
- m.status === 200 && (T({
83
- message: s("common.submitSuccess"),
87
+ }), u.value && (u.value = !1), v("refresh", m.status === 200));
88
+ }) : b.create(a).then((m) => {
89
+ m.status === 200 && (q({
90
+ message: i("common.submitSuccess"),
84
91
  type: "success"
85
- }), n.value && (n.value = !1), v("refresh", m.status === 200));
92
+ }), u.value && (u.value = !1), v("refresh", m.status === 200));
86
93
  }));
87
94
  }));
88
95
  };
89
- function k() {
90
- n.value && (n.value = !1);
96
+ function V() {
97
+ u.value && (u.value = !1);
91
98
  }
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
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, {
102
+ modelValue: u.value,
103
+ "onUpdate:modelValue": t[6] || (t[6] = (n) => u.value = n),
104
+ onClose: V
98
105
  }, {
99
106
  footer: o(() => [
100
- F("div", z, [
101
- e(V, { onClick: k }, {
107
+ A("div", H, [
108
+ e(I, { onClick: V }, {
102
109
  default: o(() => [
103
- h(q(l.$t("common.cancel")), 1)
110
+ O(h(l.$t("common.cancel")), 1)
104
111
  ]),
105
112
  _: 1
106
113
  }),
107
- e(V, {
114
+ e(I, {
108
115
  type: "primary",
109
- onClick: C
116
+ onClick: U
110
117
  }, {
111
118
  default: o(() => [
112
- h(q(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(U, {
126
+ e(D, {
120
127
  ref_key: "sysOrgInvoiceFormRef",
121
- ref: g,
122
- model: r(t),
123
- "label-width": "100px",
128
+ ref: f,
129
+ model: r(a),
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
- e(c, { span: 24 }, {
136
+ e(c, { span: 12 }, {
130
137
  default: o(() => [
131
138
  e(d, {
132
139
  label: l.$t("sysOrgInvoice.invoiceType"),
@@ -134,10 +141,10 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
134
141
  }, {
135
142
  default: o(() => [
136
143
  e(m, {
137
- modelValue: r(t).invoiceType,
138
- "onUpdate:modelValue": a[0] || (a[0] = (i) => r(t).invoiceType = i),
144
+ modelValue: r(a).invoiceType,
145
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => r(a).invoiceType = n),
139
146
  placeholder: l.$t("sysOrgInvoice.invoiceTypeRequired"),
140
- data: r(L).invoiceTypeDictEnum.values,
147
+ data: r(G).invoiceTypeDictEnum.values,
141
148
  class: "w-full",
142
149
  clearable: ""
143
150
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -147,7 +154,7 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
147
154
  ]),
148
155
  _: 1
149
156
  }),
150
- e(c, { span: 24 }, {
157
+ e(c, { span: 12 }, {
151
158
  default: o(() => [
152
159
  e(d, {
153
160
  label: l.$t("sysOrgInvoice.invoiceTitle"),
@@ -155,8 +162,8 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
155
162
  }, {
156
163
  default: o(() => [
157
164
  e(p, {
158
- modelValue: r(t).invoiceTitle,
159
- "onUpdate:modelValue": a[1] || (a[1] = (i) => r(t).invoiceTitle = i),
165
+ modelValue: r(a).invoiceTitle,
166
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => r(a).invoiceTitle = n),
160
167
  placeholder: l.$t("sysOrgInvoice.invoiceTitleRequired"),
161
168
  maxlength: "50",
162
169
  "show-word-limit": "",
@@ -168,7 +175,7 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
168
175
  ]),
169
176
  _: 1
170
177
  }),
171
- e(c, { span: 24 }, {
178
+ e(c, { span: 12 }, {
172
179
  default: o(() => [
173
180
  e(d, {
174
181
  label: l.$t("sysOrgInvoice.taxNumber"),
@@ -176,8 +183,8 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
176
183
  }, {
177
184
  default: o(() => [
178
185
  e(p, {
179
- modelValue: r(t).taxNumber,
180
- "onUpdate:modelValue": a[2] || (a[2] = (i) => r(t).taxNumber = i),
186
+ modelValue: r(a).taxNumber,
187
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => r(a).taxNumber = n),
181
188
  placeholder: l.$t("sysOrgInvoice.taxNumberRequired"),
182
189
  maxlength: "50",
183
190
  "show-word-limit": "",
@@ -189,7 +196,7 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
189
196
  ]),
190
197
  _: 1
191
198
  }),
192
- e(c, { span: 24 }, {
199
+ e(c, { span: 12 }, {
193
200
  default: o(() => [
194
201
  e(d, {
195
202
  label: l.$t("sysOrgInvoice.bankName"),
@@ -197,8 +204,8 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
197
204
  }, {
198
205
  default: o(() => [
199
206
  e(p, {
200
- modelValue: r(t).bankName,
201
- "onUpdate:modelValue": a[3] || (a[3] = (i) => r(t).bankName = i),
207
+ modelValue: r(a).bankName,
208
+ "onUpdate:modelValue": t[3] || (t[3] = (n) => r(a).bankName = n),
202
209
  placeholder: l.$t("sysOrgInvoice.bankNameRequired"),
203
210
  maxlength: "50",
204
211
  "show-word-limit": "",
@@ -210,7 +217,7 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
210
217
  ]),
211
218
  _: 1
212
219
  }),
213
- e(c, { span: 24 }, {
220
+ e(c, { span: 12 }, {
214
221
  default: o(() => [
215
222
  e(d, {
216
223
  label: l.$t("sysOrgInvoice.backNumber"),
@@ -218,8 +225,8 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
218
225
  }, {
219
226
  default: o(() => [
220
227
  e(p, {
221
- modelValue: r(t).backNumber,
222
- "onUpdate:modelValue": a[4] || (a[4] = (i) => r(t).backNumber = i),
228
+ modelValue: r(a).backNumber,
229
+ "onUpdate:modelValue": t[4] || (t[4] = (n) => r(a).backNumber = n),
223
230
  placeholder: l.$t("sysOrgInvoice.backNumberRequired"),
224
231
  maxlength: "20",
225
232
  "show-word-limit": "",
@@ -230,6 +237,29 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
230
237
  }, 8, ["label"])
231
238
  ]),
232
239
  _: 1
240
+ }),
241
+ e(c, { span: 12 }, {
242
+ default: o(() => [
243
+ e(d, {
244
+ label: l.$t("sysOrgInvoice.taxRate"),
245
+ prop: "taxRate"
246
+ }, {
247
+ default: o(() => [
248
+ e(M, {
249
+ modelValue: r(a).taxRate,
250
+ "onUpdate:modelValue": t[5] || (t[5] = (n) => r(a).taxRate = n),
251
+ placeholder: l.$t("sysOrgInvoice.taxRateRequired"),
252
+ precision: 2,
253
+ min: r(T).taxRate.min,
254
+ max: r(T).taxRate.max,
255
+ step: 0.01,
256
+ class: "w-full"
257
+ }, null, 8, ["modelValue", "placeholder", "min", "max"])
258
+ ]),
259
+ _: 1
260
+ }, 8, ["label"])
261
+ ]),
262
+ _: 1
233
263
  })
234
264
  ]),
235
265
  _: 1
@@ -244,5 +274,5 @@ const z = { class: "dialog-footer" }, X = /* @__PURE__ */ D({
244
274
  }
245
275
  });
246
276
  export {
247
- X as _
277
+ Z as _
248
278
  };