xyvcard-mice 0.0.14 → 0.0.16

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/{FileSaver.min-CmjlTwVt.mjs → FileSaver.min-B0mC4jcv.mjs} +5 -5
  2. package/dist/{approveService-DFp2ijJy.mjs → approveService-BJId9JOV.mjs} +1 -1
  3. package/dist/{approveService.vue_vue_type_script_setup_true_lang-KzRMsttm.mjs → approveService.vue_vue_type_script_setup_true_lang-Cdx4VHIS.mjs} +3 -4
  4. package/dist/edit-BnVusod0.mjs +327 -0
  5. package/dist/{edit-CbbevYGx.mjs → edit-DdrIsASR.mjs} +1 -1
  6. package/dist/{edit-b9PRQzRS.mjs → edit-Dnp-Sc36.mjs} +1 -1
  7. package/dist/{edit-CR2mMu01.mjs → edit-IziPRUsD.mjs} +139 -151
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-D0Nqa2bP.mjs → edit.vue_vue_type_script_setup_true_lang-BJEb3YhG.mjs} +32 -33
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-DotTc09A.mjs → edit.vue_vue_type_script_setup_true_lang-CIJRz4rO.mjs} +3 -4
  10. package/dist/{followUp-nN7A0lxv.mjs → followUp-ke0IBx0l.mjs} +1 -1
  11. package/dist/{followUp.vue_vue_type_script_setup_true_lang-DjFGJDzS.mjs → followUp.vue_vue_type_script_setup_true_lang-BUNBd1KN.mjs} +15 -16
  12. package/dist/{import-upload-C9ABKqe1.mjs → import-upload-BcuMPiH1.mjs} +1 -1
  13. package/dist/{import-upload.vue_vue_type_script_setup_true_lang-CY9PFlyT.mjs → import-upload.vue_vue_type_script_setup_true_lang-CQgQ-lXH.mjs} +12 -13
  14. package/dist/{index-DLALqCKt.mjs → index-BZLjThKI.mjs} +4 -4
  15. package/dist/{index-BIDeaVdl.mjs → index-BpbkYj3n.mjs} +4 -5
  16. package/dist/{index-DtXdMppy.mjs → index-BtgWdM-B.mjs} +6 -6
  17. package/dist/index-CSM-4nG1.mjs +546 -0
  18. package/dist/{index-k_G14nVB.mjs → index-Du0i9fV5.mjs} +21 -22
  19. package/dist/{index-BvFfmgmS.mjs → index-FuvRTW2R.mjs} +67 -68
  20. package/dist/{index-DyDc8SDs.mjs → index-JdFJ1RdX.mjs} +104 -135
  21. package/dist/index-Uwhxl4-G.mjs +5338 -0
  22. package/dist/{index-DvaSsqbX.mjs → index-vain-Hg7.mjs} +21 -22
  23. package/dist/index.mjs +19 -3253
  24. package/dist/{info-BnvercB1.mjs → info-mgF75aJL.mjs} +3 -4
  25. package/dist/{messageService-DcjfGPWd.mjs → messageService-BZQ7wCjA.mjs} +1 -1
  26. package/dist/{messageService.vue_vue_type_script_setup_true_lang-DKYd-Ltd.mjs → messageService.vue_vue_type_script_setup_true_lang-BBYDpz70.mjs} +6 -6
  27. package/dist/{participate-DFimK-_Z.mjs → participate-CiX18JGu.mjs} +1 -1
  28. package/dist/participate.vue_vue_type_script_setup_true_lang-Dn0ivlcc.mjs +176 -0
  29. package/dist/{person-DbLDv0kO.mjs → person-Dahlk2_O.mjs} +1 -1
  30. package/dist/{person.vue_vue_type_script_setup_true_lang-DgPSCjsa.mjs → person.vue_vue_type_script_setup_true_lang-klU880_8.mjs} +13 -14
  31. package/dist/{sceneImg-Cx88SzR1.mjs → sceneImg-DFHoa8E8.mjs} +4 -4
  32. package/dist/style.css +1 -1
  33. package/dts/api/mice/guest/index.d.ts +2 -1
  34. package/dts/api/mice/guest/types.d.ts +4 -1
  35. package/dts/api/mice/index.d.ts +1 -0
  36. package/dts/api/mice/ticket/index.d.ts +2 -1
  37. package/dts/api/mice/ticket/types.d.ts +4 -1
  38. package/dts/constant.d.ts +1 -0
  39. package/dts/index.d.ts +19 -0
  40. package/package.json +2 -2
  41. package/dist/edit-BnwxPDG-.mjs +0 -410
  42. package/dist/index-AjM-q7jB.mjs +0 -109
  43. package/dist/index-BwP561cB.mjs +0 -606
  44. package/dist/index-CF-muhMY.mjs +0 -39
  45. package/dist/index-ChiDnr1z.mjs +0 -219
  46. package/dist/index-DW53j6oI.mjs +0 -1399
  47. package/dist/index-DncaFXpq.mjs +0 -91
  48. package/dist/participate.vue_vue_type_script_setup_true_lang-BEt7KrWi.mjs +0 -222
@@ -1,9 +1,9 @@
1
- import { c as s } from "./index-DW53j6oI.mjs";
1
+ import { f as c } from "./index-Uwhxl4-G.mjs";
2
2
  var E = { exports: {} };
3
3
  (function(h, j) {
4
4
  (function(p, i) {
5
5
  i();
6
- })(s, function() {
6
+ })(c, function() {
7
7
  function p(e, t) {
8
8
  return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
9
9
  }
@@ -32,7 +32,7 @@ var E = { exports: {} };
32
32
  t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
33
33
  }
34
34
  }
35
- var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof s == "object" && s.global === s ? s : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = a.saveAs || (typeof window != "object" || window !== a ? function() {
35
+ var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof c == "object" && c.global === c ? c : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = a.saveAs || (typeof window != "object" || window !== a ? function() {
36
36
  } : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {
37
37
  var n = a.URL || a.webkitURL, o = document.createElement("a");
38
38
  t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? l(o) : v(o.href) ? i(e, t, r) : l(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
@@ -55,8 +55,8 @@ var E = { exports: {} };
55
55
  if ((m || o && b || w) && typeof FileReader < "u") {
56
56
  var d = new FileReader();
57
57
  d.onloadend = function() {
58
- var c = d.result;
59
- c = m ? c : c.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = c : location = c, n = null;
58
+ var s = d.result;
59
+ s = m ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = s : location = s, n = null;
60
60
  }, d.readAsDataURL(e);
61
61
  } else {
62
62
  var y = a.URL || a.webkitURL, f = y.createObjectURL(e);
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./approveService.vue_vue_type_script_setup_true_lang-KzRMsttm.mjs";
1
+ import { _ as f } from "./approveService.vue_vue_type_script_setup_true_lang-Cdx4VHIS.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,9 +1,8 @@
1
1
  import { defineComponent as O, mergeModels as E, ref as j, useModel as F, reactive as N, resolveComponent as u, openBlock as s, createBlock as m, withCtx as l, createElementVNode as b, createVNode as r, createTextVNode as V, toDisplayString as _, unref as e, createElementBlock as I, Fragment as T, renderList as z, createCommentVNode as f } from "vue";
2
2
  import { useI18n as J } from "vue-i18n";
3
3
  import { ElMessage as L } from "element-plus";
4
- import { D as y } from "./index-ChiDnr1z.mjs";
5
- import { m as G } from "./index-CF-muhMY.mjs";
6
- const H = /* @__PURE__ */ b("span", { class: "distance-left" }, "人", -1), Q = /* @__PURE__ */ b("span", { class: "distance-left" }, "元", -1), W = { class: "dialog-footer" }, oe = /* @__PURE__ */ O({
4
+ import { D as y, m as G } from "./index-Uwhxl4-G.mjs";
5
+ const H = /* @__PURE__ */ b("span", { class: "distance-left" }, "人", -1), Q = /* @__PURE__ */ b("span", { class: "distance-left" }, "元", -1), W = { class: "dialog-footer" }, ee = /* @__PURE__ */ O({
7
6
  __name: "approveService",
8
7
  props: /* @__PURE__ */ E({
9
8
  approveServiceKey: {
@@ -279,5 +278,5 @@ const H = /* @__PURE__ */ b("span", { class: "distance-left" }, "人", -1), Q =
279
278
  }
280
279
  });
281
280
  export {
282
- oe as _
281
+ ee as _
283
282
  };
@@ -0,0 +1,327 @@
1
+ import { defineComponent as O, mergeModels as R, ref as b, getCurrentInstance as F, reactive as M, useModel as N, resolveComponent as c, openBlock as z, createBlock as G, withCtx as a, createElementVNode as T, createVNode as i, createTextVNode as P, toDisplayString as w, unref as r, pushScopeId as H, popScopeId as J } from "vue";
2
+ import { ElMessage as V } from "element-plus";
3
+ import { useI18n as L } from "vue-i18n";
4
+ import { i as q } from "./index-Uwhxl4-G.mjs";
5
+ import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
+ const k = (p) => (H("data-v-9acec5ba"), p = p(), J(), p), W = /* @__PURE__ */ k(() => /* @__PURE__ */ T("span", { class: "distance-left" }, "元", -1)), X = /* @__PURE__ */ k(() => /* @__PURE__ */ T("span", { class: "distance-left" }, "元", -1)), Z = /* @__PURE__ */ k(() => /* @__PURE__ */ T("span", { class: "distance-left" }, "张", -1)), x = /* @__PURE__ */ k(() => /* @__PURE__ */ T("span", { class: "distance-left" }, "张", -1)), ee = { class: "dialog-footer" }, te = /* @__PURE__ */ O({
7
+ __name: "edit",
8
+ props: /* @__PURE__ */ R({
9
+ ticketKey: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ },
14
+ entityKey: {
15
+ type: Object,
16
+ default: () => {
17
+ }
18
+ }
19
+ }, {
20
+ modelValue: { type: Boolean },
21
+ modelModifiers: {}
22
+ }),
23
+ emits: /* @__PURE__ */ R(["refresh"], ["update:modelValue"]),
24
+ setup(p, { emit: I }) {
25
+ const { t: s } = L(), h = b(), { proxy: f } = F(), g = b([]);
26
+ let t = M({
27
+ requestId: Math.random() * 10 + "",
28
+ updateMask: "ticketTitle,originalPrice,ticketPrice,quantity,remaining,startTime,endTime,description"
29
+ });
30
+ const C = M({
31
+ ticketTitle: [
32
+ {
33
+ required: !0,
34
+ message: s("miceTicketType.ticketTitleRequired"),
35
+ trigger: "blur"
36
+ }
37
+ ],
38
+ originalPrice: [
39
+ {
40
+ required: !0,
41
+ message: s("miceTicketType.originalPriceRequired"),
42
+ trigger: "change"
43
+ }
44
+ ],
45
+ ticketPrice: [
46
+ {
47
+ required: !0,
48
+ message: s("miceTicketType.ticketPriceRequired"),
49
+ trigger: "change"
50
+ }
51
+ ],
52
+ quantity: [
53
+ {
54
+ required: !0,
55
+ message: s("miceTicketType.quantityRequired"),
56
+ trigger: "change"
57
+ }
58
+ ],
59
+ remaining: [
60
+ {
61
+ required: !0,
62
+ message: s("miceTicketType.remainingRequired"),
63
+ trigger: "change"
64
+ }
65
+ ],
66
+ startTime: [
67
+ {
68
+ required: !0,
69
+ message: s("miceTicketType.timeArrRequired"),
70
+ validator: (e, l, n) => {
71
+ new Date(l).getTime() <= (/* @__PURE__ */ new Date()).getTime() ? V({
72
+ message: "售票开始时间必须晚于当前时间!",
73
+ type: "error"
74
+ }) : n();
75
+ },
76
+ trigger: "change",
77
+ type: "array",
78
+ fields: {
79
+ 0: { type: "date", required: !0, message: "请选择开始日期" },
80
+ 1: { type: "date", required: !0, message: "请选择结束日期" }
81
+ }
82
+ }
83
+ ],
84
+ description: [
85
+ {
86
+ required: !0,
87
+ message: s("miceTicketType.descriptionRequired"),
88
+ trigger: "change"
89
+ }
90
+ ]
91
+ }), m = N(p, "modelValue"), _ = p, v = I, U = Object.keys(_.ticketKey), $ = b(U.length >= 1);
92
+ $.value && q.findById(_.ticketKey).then(({ data: e }) => {
93
+ Object.assign(t, e), g.value = [t.startTime, t.endTime];
94
+ });
95
+ function S(e) {
96
+ g.value = e, t.startTime = f.$moment.formatDate(e[0], "YYYY-MM-DD"), t.endTime = f.$moment.formatDate(e[1], "YYYY-MM-DD");
97
+ }
98
+ const K = async () => {
99
+ var e;
100
+ await ((e = h.value) == null ? void 0 : e.validate((l) => {
101
+ l && (t.exhibitionId = _.entityKey.exhibitionId, t.startTime = f.$moment.formatDate(t.startTime, "YYYY-MM-DD"), t.endTime = f.$moment.formatDate(t.endTime, "YYYY-MM-DD"), $.value ? q.update(t).then((n) => {
102
+ n.status === 200 && (V({
103
+ message: s("common.submitSuccess"),
104
+ type: "success"
105
+ }), m.value && (m.value = !1), v("refresh", n.status === 200));
106
+ }) : q.create(t).then((n) => {
107
+ n.status === 200 && (V({
108
+ message: s("common.submitSuccess"),
109
+ type: "success"
110
+ }), m.value && (m.value = !1), v("refresh", n.status === 200));
111
+ }));
112
+ }));
113
+ };
114
+ function Y() {
115
+ m.value && (m.value = !1);
116
+ }
117
+ return (e, l) => {
118
+ const n = c("el-input"), d = c("el-form-item"), u = c("el-col"), y = c("el-input-number"), j = c("el-date-picker"), A = c("el-row"), B = c("el-form"), D = c("el-button"), E = c("el-dialog");
119
+ return z(), G(E, {
120
+ modelValue: m.value,
121
+ "onUpdate:modelValue": l[7] || (l[7] = (o) => m.value = o),
122
+ onClose: Y
123
+ }, {
124
+ footer: a(() => [
125
+ T("div", ee, [
126
+ i(D, { onClick: Y }, {
127
+ default: a(() => [
128
+ P(w(e.$t("common.cancel")), 1)
129
+ ]),
130
+ _: 1
131
+ }),
132
+ i(D, {
133
+ type: "primary",
134
+ onClick: K
135
+ }, {
136
+ default: a(() => [
137
+ P(w(e.$t("common.confirm")), 1)
138
+ ]),
139
+ _: 1
140
+ })
141
+ ])
142
+ ]),
143
+ default: a(() => [
144
+ i(B, {
145
+ ref_key: "miceTicketTypeFormRef",
146
+ ref: h,
147
+ model: r(t),
148
+ "label-width": "120px",
149
+ rules: C
150
+ }, {
151
+ default: a(() => [
152
+ i(A, null, {
153
+ default: a(() => [
154
+ i(u, { span: 24 }, {
155
+ default: a(() => [
156
+ i(d, {
157
+ label: e.$t("miceTicketType.ticketTitle"),
158
+ prop: "ticketTitle"
159
+ }, {
160
+ default: a(() => [
161
+ i(n, {
162
+ modelValue: r(t).ticketTitle,
163
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => r(t).ticketTitle = o),
164
+ placeholder: e.$t("miceTicketType.ticketTitleRequired"),
165
+ maxlength: "60",
166
+ "show-word-limit": "",
167
+ clearable: ""
168
+ }, null, 8, ["modelValue", "placeholder"])
169
+ ]),
170
+ _: 1
171
+ }, 8, ["label"])
172
+ ]),
173
+ _: 1
174
+ }),
175
+ i(u, { span: 12 }, {
176
+ default: a(() => [
177
+ i(d, {
178
+ label: e.$t("miceTicketType.originalPrice"),
179
+ prop: "originalPrice"
180
+ }, {
181
+ default: a(() => [
182
+ i(y, {
183
+ modelValue: r(t).originalPrice,
184
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => r(t).originalPrice = o),
185
+ placeholder: e.$t("miceTicketType.originalPriceRequired"),
186
+ precision: 2,
187
+ step: 0.01,
188
+ min: 0,
189
+ clearable: "",
190
+ class: "maxVendors"
191
+ }, null, 8, ["modelValue", "placeholder"]),
192
+ W
193
+ ]),
194
+ _: 1
195
+ }, 8, ["label"])
196
+ ]),
197
+ _: 1
198
+ }),
199
+ i(u, { span: 12 }, {
200
+ default: a(() => [
201
+ i(d, {
202
+ label: e.$t("miceTicketType.ticketPrice"),
203
+ prop: "ticketPrice"
204
+ }, {
205
+ default: a(() => [
206
+ i(y, {
207
+ modelValue: r(t).ticketPrice,
208
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => r(t).ticketPrice = o),
209
+ placeholder: e.$t("miceTicketType.ticketPriceRequired"),
210
+ precision: 2,
211
+ step: 0.01,
212
+ min: 0,
213
+ clearable: "",
214
+ class: "maxVendors"
215
+ }, null, 8, ["modelValue", "placeholder"]),
216
+ X
217
+ ]),
218
+ _: 1
219
+ }, 8, ["label"])
220
+ ]),
221
+ _: 1
222
+ }),
223
+ i(u, { span: 12 }, {
224
+ default: a(() => [
225
+ i(d, {
226
+ label: e.$t("miceTicketType.quantity"),
227
+ prop: "quantity"
228
+ }, {
229
+ default: a(() => [
230
+ i(y, {
231
+ modelValue: r(t).quantity,
232
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => r(t).quantity = o),
233
+ placeholder: e.$t("miceTicketType.quantityRequired"),
234
+ step: 1,
235
+ min: 0,
236
+ clearable: "",
237
+ class: "maxVendors"
238
+ }, null, 8, ["modelValue", "placeholder"]),
239
+ Z
240
+ ]),
241
+ _: 1
242
+ }, 8, ["label"])
243
+ ]),
244
+ _: 1
245
+ }),
246
+ i(u, { span: 12 }, {
247
+ default: a(() => [
248
+ i(d, {
249
+ label: e.$t("miceTicketType.remaining"),
250
+ prop: "remaining"
251
+ }, {
252
+ default: a(() => [
253
+ i(y, {
254
+ modelValue: r(t).remaining,
255
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => r(t).remaining = o),
256
+ placeholder: e.$t("miceTicketType.remainingRequired"),
257
+ step: 1,
258
+ min: 0,
259
+ clearable: "",
260
+ class: "maxVendors"
261
+ }, null, 8, ["modelValue", "placeholder"]),
262
+ x
263
+ ]),
264
+ _: 1
265
+ }, 8, ["label"])
266
+ ]),
267
+ _: 1
268
+ }),
269
+ i(u, { span: 12 }, {
270
+ default: a(() => [
271
+ i(d, {
272
+ label: e.$t("miceTicketType.timeArr"),
273
+ prop: "startTime"
274
+ }, {
275
+ default: a(() => [
276
+ i(j, {
277
+ modelValue: g.value,
278
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => g.value = o),
279
+ type: "datetimerange",
280
+ "start-placeholder": e.$t("miceTicketType.startTimeRequired"),
281
+ "end-placeholder": e.$t("miceTicketType.endTimeRequired"),
282
+ format: "YYYY-MM-DD",
283
+ onChange: S
284
+ }, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
285
+ ]),
286
+ _: 1
287
+ }, 8, ["label"])
288
+ ]),
289
+ _: 1
290
+ }),
291
+ i(u, { span: 24 }, {
292
+ default: a(() => [
293
+ i(d, {
294
+ label: e.$t("miceTicketType.description"),
295
+ prop: "description"
296
+ }, {
297
+ default: a(() => [
298
+ i(n, {
299
+ modelValue: r(t).description,
300
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => r(t).description = o),
301
+ type: "textarea",
302
+ autosize: { minRows: 4 },
303
+ maxlength: "200",
304
+ "show-word-limit": "",
305
+ placeholder: e.$t("miceTicketType.descriptionRequired")
306
+ }, null, 8, ["modelValue", "placeholder"])
307
+ ]),
308
+ _: 1
309
+ }, 8, ["label"])
310
+ ]),
311
+ _: 1
312
+ })
313
+ ]),
314
+ _: 1
315
+ })
316
+ ]),
317
+ _: 1
318
+ }, 8, ["model", "rules"])
319
+ ]),
320
+ _: 1
321
+ }, 8, ["modelValue"]);
322
+ };
323
+ }
324
+ }), ne = /* @__PURE__ */ Q(te, [["__scopeId", "data-v-9acec5ba"]]);
325
+ export {
326
+ ne as default
327
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-D0Nqa2bP.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BJEb3YhG.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DotTc09A.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-CIJRz4rO.mjs";
2
2
  export {
3
3
  f as default
4
4
  };