xyvcard-itsmsys 0.0.12 → 0.0.14

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