xyvcard-order 0.0.1 → 0.0.3

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 (68) hide show
  1. package/dist/{canceled-CUME6Usz.mjs → canceled-CAEulpM1.mjs} +1 -1
  2. package/dist/{canceled.vue_vue_type_script_setup_true_lang-EX4zYQSu.mjs → canceled.vue_vue_type_script_setup_true_lang-_j0h5aSP.mjs} +63 -64
  3. package/dist/{change-CK1I7hL9.mjs → change-CH-CF_q-.mjs} +1 -1
  4. package/dist/{change.vue_vue_type_script_setup_true_lang-DMUKqQVp.mjs → change.vue_vue_type_script_setup_true_lang-Bb1DH4GC.mjs} +1 -1
  5. package/dist/{completed-Cf86bOvD.mjs → completed-B70yQ6oI.mjs} +1 -1
  6. package/dist/{completed.vue_vue_type_script_setup_true_lang-DqIyhNKh.mjs → completed.vue_vue_type_script_setup_true_lang-D25evb6V.mjs} +72 -73
  7. package/dist/{deliver-BQIcivCV.mjs → deliver-Bp2Ckw4g.mjs} +1 -1
  8. package/dist/deliver.vue_vue_type_script_setup_true_lang-DjvQSQPG.mjs +185 -0
  9. package/dist/{edit-CXp819Cl.mjs → edit-DyFqRxsE.mjs} +1 -1
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-DHkYd975.mjs → edit.vue_vue_type_script_setup_true_lang-YwJOnNI_.mjs} +1 -1
  11. package/dist/{index-DMD0_mKi.mjs → index-BwyO6Vdb.mjs} +82 -83
  12. package/dist/index-CL3mlOnd.mjs +407 -0
  13. package/dist/{index-xagR65a1.mjs → index-Dvf0V5EP.mjs} +11 -3
  14. package/dist/{index-CUO59YzZ.mjs → index-DyFAVz8t.mjs} +525 -439
  15. package/dist/index-suIgymdy.mjs +93 -0
  16. package/dist/index.mjs +594 -592
  17. package/dist/index.vue_vue_type_script_setup_true_lang-RpiqLerK.mjs +41 -0
  18. package/dist/{info-6G1vmk51.mjs → info-Ba-BgJkw.mjs} +76 -77
  19. package/dist/info-DtOaZ-hg.mjs +4 -0
  20. package/dist/info.vue_vue_type_script_setup_true_lang-DLnh7W1x.mjs +188 -0
  21. package/dist/review-DjGDxyqZ.mjs +4 -0
  22. package/dist/review.vue_vue_type_script_setup_true_lang-CKGCdXD5.mjs +309 -0
  23. package/dist/style.css +1 -1
  24. package/dist/{unpay-CqebDQ24.mjs → unpay-nfOgE6CJ.mjs} +1 -1
  25. package/dist/{unpay.vue_vue_type_script_setup_true_lang-Cq-l3JEe.mjs → unpay.vue_vue_type_script_setup_true_lang-Dcs-uaDJ.mjs} +1335 -1349
  26. package/dist/{unpost-vRTZyaW0.mjs → unpost-BocJwYcE.mjs} +1 -1
  27. package/dist/{unpost.vue_vue_type_script_setup_true_lang-CAd6DqNm.mjs → unpost.vue_vue_type_script_setup_true_lang-BzlBIdWF.mjs} +147 -148
  28. package/dist/{unreceive-DUyGNC5h.mjs → unreceive-BLcvdJxY.mjs} +1 -1
  29. package/dist/{unreceive.vue_vue_type_script_setup_true_lang-DK1USH8c.mjs → unreceive.vue_vue_type_script_setup_true_lang-IoS_bKwk.mjs} +72 -73
  30. package/dist/{viewLogist-DdG4dbmo.mjs → viewLogist-D9-zqepw.mjs} +1 -1
  31. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-D8KlJgG0.mjs +127 -0
  32. package/dts/src/api/index.d.ts +3 -1
  33. package/dts/src/api/order-info/index.d.ts +15 -0
  34. package/dts/src/api/order-info/types.d.ts +97 -0
  35. package/dts/src/api/order-logistics/index.d.ts +12 -0
  36. package/dts/src/api/order-logistics/types.d.ts +85 -0
  37. package/dts/src/api/order-refunds/index.d.ts +13 -0
  38. package/dts/src/api/order-refunds/types.d.ts +68 -0
  39. package/dts/src/constant.d.ts +14 -1
  40. package/dts/src/lang/order/zh-cn.d.ts +14 -2
  41. package/dts/src/views/order/order-info/change.vue.d.ts +1 -1
  42. package/dts/src/views/order/order-info/deliver.vue.d.ts +1 -1
  43. package/dts/src/views/order/order-info/edit.vue.d.ts +1 -1
  44. package/dts/src/views/order/order-refunds/info.vue.d.ts +14 -1
  45. package/dts/src/views/order/order-refunds/review.vue.d.ts +22 -0
  46. package/package.json +5 -4
  47. package/dist/constant-CWTD7ap0.mjs +0 -24
  48. package/dist/deliver.vue_vue_type_script_setup_true_lang-_2HCD1vV.mjs +0 -221
  49. package/dist/edit-BtY-5_aq.mjs +0 -4
  50. package/dist/edit-CagPAsCc.mjs +0 -4
  51. package/dist/edit-DSlSQclm.mjs +0 -4
  52. package/dist/edit-DZTWE770.mjs +0 -4
  53. package/dist/edit-kb9Vbd0O.mjs +0 -553
  54. package/dist/edit.vue_vue_type_script_setup_true_lang-BHG0mS0L.mjs +0 -382
  55. package/dist/edit.vue_vue_type_script_setup_true_lang-BzhS3SvZ.mjs +0 -488
  56. package/dist/edit.vue_vue_type_script_setup_true_lang-Cgbqi1i7.mjs +0 -516
  57. package/dist/edit.vue_vue_type_script_setup_true_lang-be-TDMci.mjs +0 -684
  58. package/dist/index-67kgHrd-.mjs +0 -370
  59. package/dist/index-BYkU3LYC.mjs +0 -343
  60. package/dist/index-D-PNIrrr.mjs +0 -55
  61. package/dist/index-Dbp38ozL.mjs +0 -350
  62. package/dist/index-L15OdEOS.mjs +0 -370
  63. package/dist/index-Nw_g6g3T.mjs +0 -80
  64. package/dist/index-ZpOHqjUk.mjs +0 -344
  65. package/dist/index-w8CmEAxD.mjs +0 -90
  66. package/dist/index-zsqXCqfG.mjs +0 -385
  67. package/dist/info-BWqDP7Q1.mjs +0 -106
  68. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-POKrzvX7.mjs +0 -77
@@ -1,488 +0,0 @@
1
- import { defineComponent as O, mergeModels as $, ref as T, reactive as C, useModel as N, resolveComponent as h, openBlock as x, createBlock as A, withCtx as a, createElementVNode as R, createVNode as l, createTextVNode as S, toDisplayString as U, unref as u } from "vue";
2
- import { ElMessage as k } from "element-plus";
3
- import { useI18n as L } from "vue-i18n";
4
- import { useUserStore as m, clearEmpty as b, request as p } from "jmash-core";
5
- import { q } from "./index-CUO59YzZ.mjs";
6
- class z {
7
- getKey(e) {
8
- return {
9
- billId: e.billId
10
- };
11
- }
12
- // 查询翻页信息订单账单
13
- findPage(e) {
14
- const r = m().user.tenant;
15
- return b(e), p({
16
- url: "/v1/order/order_bill/page/" + r,
17
- method: "get",
18
- params: e
19
- });
20
- }
21
- // 查询列表信息订单账单
22
- findList(e) {
23
- const r = m().user.tenant;
24
- return b(e), p({
25
- url: "/v1/order/order_bill/list/" + r,
26
- method: "get",
27
- params: e
28
- });
29
- }
30
- // 查询订单账单
31
- findById(e) {
32
- const r = m().user.tenant;
33
- return b(e), p({
34
- url: "/v1/order/order_bill/id/" + r + "/" + e.billId,
35
- method: "get"
36
- });
37
- }
38
- // 创建实体订单账单
39
- create(e) {
40
- return e.tenant = m().user.tenant, b(e), p({
41
- url: "/v1/order/order_bill",
42
- method: "post",
43
- data: e
44
- });
45
- }
46
- // 修改实体订单账单
47
- update(e) {
48
- return e.tenant = m().user.tenant, b(e), p({
49
- url: "/v1/order/order_bill",
50
- method: "patch",
51
- data: e
52
- });
53
- }
54
- // 上移下移
55
- move(e, r) {
56
- let n = { ...e };
57
- return n.tenant = m().user.tenant, n.up = r, b(n), p({
58
- url: "/v1/order/order_bill/move",
59
- method: "put",
60
- data: n
61
- });
62
- }
63
- // 启用/禁用
64
- enable(e, r) {
65
- let n = { ...e };
66
- return n.tenant = m().user.tenant, n.enable = r, b(n), p({
67
- url: "/v1/order/order_bill/enable",
68
- method: "put",
69
- data: n
70
- });
71
- }
72
- // 删除订单账单
73
- delete(e) {
74
- return e.tenant = m().user.tenant, b(e), p({
75
- url: "/v1/order/order_bill/id",
76
- method: "delete",
77
- params: e
78
- });
79
- }
80
- // 批量删除订单账单
81
- batchDelete(e) {
82
- const r = e.map((o) => o.billId), n = {
83
- tenant: m().user.tenant,
84
- billId: r
85
- };
86
- return b(n), p({
87
- url: "/v1/order/order_bill/batch",
88
- method: "put",
89
- data: n
90
- });
91
- }
92
- // 下载导入模板订单账单
93
- downloadTemplate() {
94
- const e = m().user.tenant;
95
- return p({
96
- url: "/v1/order/order_bill/" + e + "/template.xlsx",
97
- method: "get",
98
- responseType: "blob",
99
- params: {
100
- tenant: m().user.tenant
101
- }
102
- });
103
- }
104
- // 导入订单账单
105
- importExcel(e) {
106
- return e.tenant = m().user.tenant, b(e), p({
107
- url: "/v1/order/order_bill/import",
108
- method: "patch",
109
- data: e
110
- });
111
- }
112
- // 导出订单账单Excel文件
113
- exportExcel(e) {
114
- const r = m().user.tenant;
115
- b(e);
116
- const n = q.stringify(e, {
117
- arrayFormat: "brackets",
118
- allowDots: !0
119
- });
120
- return p({
121
- url: "/v1/order/order_bill/" + r + "/order_bills.xlsx?" + n,
122
- method: "get",
123
- responseType: "blob"
124
- });
125
- }
126
- // 打印订单账单PDF文件
127
- exportPdf(e) {
128
- const r = m().user.tenant;
129
- b(e);
130
- const n = q.stringify(e, {
131
- arrayFormat: "brackets",
132
- allowDots: !0
133
- });
134
- return p({
135
- url: "/v1/order/order_bill/" + r + "/order_bills.pdf?" + n,
136
- method: "get",
137
- responseType: "blob"
138
- });
139
- }
140
- }
141
- const B = new z(), G = { class: "dialog-footer" }, Y = /* @__PURE__ */ O({
142
- __name: "edit",
143
- props: /* @__PURE__ */ $({
144
- entityKey: {
145
- type: Object,
146
- default: () => {
147
- }
148
- }
149
- }, {
150
- modelValue: { type: Boolean },
151
- modelModifiers: {}
152
- }),
153
- emits: /* @__PURE__ */ $(["refresh"], ["update:modelValue"]),
154
- setup(y, { emit: e }) {
155
- const { t: r } = L(), n = T();
156
- let o = C({
157
- requestId: Math.random() * 10 + "",
158
- updateMask: ""
159
- });
160
- const M = C({
161
- billId: [
162
- {
163
- required: !0,
164
- message: r("orderBill.billId"),
165
- trigger: "change"
166
- }
167
- ],
168
- orderId: [
169
- {
170
- required: !0,
171
- message: r("orderBill.orderId"),
172
- trigger: "change"
173
- }
174
- ],
175
- billCode: [
176
- {
177
- required: !0,
178
- message: r("orderBill.billCode"),
179
- trigger: "change"
180
- }
181
- ],
182
- billType: [
183
- {
184
- required: !0,
185
- message: r("orderBill.billType"),
186
- trigger: "change"
187
- }
188
- ],
189
- billPrice: [
190
- {
191
- required: !0,
192
- message: r("orderBill.billPrice"),
193
- trigger: "change"
194
- }
195
- ],
196
- couponPrice: [
197
- {
198
- required: !0,
199
- message: r("orderBill.couponPrice"),
200
- trigger: "change"
201
- }
202
- ],
203
- paymentPrice: [
204
- {
205
- required: !0,
206
- message: r("orderBill.paymentPrice"),
207
- trigger: "change"
208
- }
209
- ],
210
- billStatus: [
211
- {
212
- required: !0,
213
- message: r("orderBill.billStatus"),
214
- trigger: "change"
215
- }
216
- ],
217
- paymentTime: [
218
- {
219
- required: !0,
220
- message: r("orderBill.paymentTime"),
221
- trigger: "change"
222
- }
223
- ]
224
- }), g = N(y, "modelValue"), V = y, _ = e, j = Object.keys(V.entityKey), v = T(j.length >= 1);
225
- v.value && B.findById(V.entityKey).then(({ data: t }) => {
226
- Object.assign(o, t);
227
- });
228
- const D = async () => {
229
- var t;
230
- await ((t = n.value) == null ? void 0 : t.validate((d) => {
231
- d && (v.value ? B.update(o).then((s) => {
232
- console.log(s), s.status === 200 && (k({
233
- message: r("common.submitSuccess"),
234
- type: "success"
235
- }), g.value && (g.value = !1), _("refresh", s.status === 200));
236
- }) : B.create(o).then((s) => {
237
- console.log(s), s.status === 200 && (k({
238
- message: r("common.submitSuccess"),
239
- type: "success"
240
- }), g.value && (g.value = !1), _("refresh", s.status === 200));
241
- }));
242
- }));
243
- };
244
- function w() {
245
- g.value && (g.value = !1);
246
- }
247
- return (t, d) => {
248
- const s = h("el-input"), c = h("el-form-item"), f = h("el-col"), I = h("enum-select"), E = h("el-row"), F = h("el-form"), P = h("el-button"), K = h("el-dialog");
249
- return x(), A(K, {
250
- modelValue: g.value,
251
- "onUpdate:modelValue": d[9] || (d[9] = (i) => g.value = i),
252
- onClose: w
253
- }, {
254
- footer: a(() => [
255
- R("div", G, [
256
- l(P, { onClick: w }, {
257
- default: a(() => [
258
- S(U(t.$t("common.cancel")), 1)
259
- ]),
260
- _: 1
261
- }),
262
- l(P, {
263
- type: "primary",
264
- onClick: D
265
- }, {
266
- default: a(() => [
267
- S(U(t.$t("common.confirm")), 1)
268
- ]),
269
- _: 1
270
- })
271
- ])
272
- ]),
273
- default: a(() => [
274
- l(F, {
275
- ref_key: "orderBillFormRef",
276
- ref: n,
277
- model: u(o),
278
- "label-width": "120px",
279
- rules: M
280
- }, {
281
- default: a(() => [
282
- l(E, null, {
283
- default: a(() => [
284
- l(f, { span: 12 }, {
285
- default: a(() => [
286
- l(c, {
287
- label: t.$t("orderBill.billId"),
288
- prop: "billId"
289
- }, {
290
- default: a(() => [
291
- l(s, {
292
- modelValue: u(o).billId,
293
- "onUpdate:modelValue": d[0] || (d[0] = (i) => u(o).billId = i),
294
- placeholder: t.$t("orderBill.billId"),
295
- maxlength: "8",
296
- "show-word-limit": "",
297
- clearable: ""
298
- }, null, 8, ["modelValue", "placeholder"])
299
- ]),
300
- _: 1
301
- }, 8, ["label"])
302
- ]),
303
- _: 1
304
- }),
305
- l(f, { span: 12 }, {
306
- default: a(() => [
307
- l(c, {
308
- label: t.$t("orderBill.orderId"),
309
- prop: "orderId"
310
- }, {
311
- default: a(() => [
312
- l(s, {
313
- modelValue: u(o).orderId,
314
- "onUpdate:modelValue": d[1] || (d[1] = (i) => u(o).orderId = i),
315
- placeholder: t.$t("orderBill.orderId"),
316
- maxlength: "8",
317
- "show-word-limit": "",
318
- clearable: ""
319
- }, null, 8, ["modelValue", "placeholder"])
320
- ]),
321
- _: 1
322
- }, 8, ["label"])
323
- ]),
324
- _: 1
325
- }),
326
- l(f, { span: 12 }, {
327
- default: a(() => [
328
- l(c, {
329
- label: t.$t("orderBill.billCode"),
330
- prop: "billCode"
331
- }, {
332
- default: a(() => [
333
- l(s, {
334
- modelValue: u(o).billCode,
335
- "onUpdate:modelValue": d[2] || (d[2] = (i) => u(o).billCode = i),
336
- placeholder: t.$t("orderBill.billCode"),
337
- maxlength: "127",
338
- "show-word-limit": "",
339
- clearable: ""
340
- }, null, 8, ["modelValue", "placeholder"])
341
- ]),
342
- _: 1
343
- }, 8, ["label"])
344
- ]),
345
- _: 1
346
- }),
347
- l(f, { span: 12 }, {
348
- default: a(() => [
349
- l(c, {
350
- label: t.$t("orderBill.billType"),
351
- prop: "billType"
352
- }, {
353
- default: a(() => [
354
- l(I, {
355
- modelValue: u(o).billType,
356
- "onUpdate:modelValue": d[3] || (d[3] = (i) => u(o).billType = i),
357
- placeholder: t.$t("orderBill.billType"),
358
- "enum-type": "jmash.rbac.protobuf.UserStatus",
359
- clearable: "",
360
- style: { width: "203px" }
361
- }, null, 8, ["modelValue", "placeholder"])
362
- ]),
363
- _: 1
364
- }, 8, ["label"])
365
- ]),
366
- _: 1
367
- }),
368
- l(f, { span: 12 }, {
369
- default: a(() => [
370
- l(c, {
371
- label: t.$t("orderBill.billPrice"),
372
- prop: "billPrice"
373
- }, {
374
- default: a(() => [
375
- l(s, {
376
- modelValue: u(o).billPrice,
377
- "onUpdate:modelValue": d[4] || (d[4] = (i) => u(o).billPrice = i),
378
- placeholder: t.$t("orderBill.billPrice"),
379
- maxlength: "6",
380
- "show-word-limit": "",
381
- clearable: ""
382
- }, null, 8, ["modelValue", "placeholder"])
383
- ]),
384
- _: 1
385
- }, 8, ["label"])
386
- ]),
387
- _: 1
388
- }),
389
- l(f, { span: 12 }, {
390
- default: a(() => [
391
- l(c, {
392
- label: t.$t("orderBill.couponPrice"),
393
- prop: "couponPrice"
394
- }, {
395
- default: a(() => [
396
- l(s, {
397
- modelValue: u(o).couponPrice,
398
- "onUpdate:modelValue": d[5] || (d[5] = (i) => u(o).couponPrice = i),
399
- placeholder: t.$t("orderBill.couponPrice"),
400
- maxlength: "6",
401
- "show-word-limit": "",
402
- clearable: ""
403
- }, null, 8, ["modelValue", "placeholder"])
404
- ]),
405
- _: 1
406
- }, 8, ["label"])
407
- ]),
408
- _: 1
409
- }),
410
- l(f, { span: 12 }, {
411
- default: a(() => [
412
- l(c, {
413
- label: t.$t("orderBill.paymentPrice"),
414
- prop: "paymentPrice"
415
- }, {
416
- default: a(() => [
417
- l(s, {
418
- modelValue: u(o).paymentPrice,
419
- "onUpdate:modelValue": d[6] || (d[6] = (i) => u(o).paymentPrice = i),
420
- placeholder: t.$t("orderBill.paymentPrice"),
421
- maxlength: "6",
422
- "show-word-limit": "",
423
- clearable: ""
424
- }, null, 8, ["modelValue", "placeholder"])
425
- ]),
426
- _: 1
427
- }, 8, ["label"])
428
- ]),
429
- _: 1
430
- }),
431
- l(f, { span: 12 }, {
432
- default: a(() => [
433
- l(c, {
434
- label: t.$t("orderBill.billStatus"),
435
- prop: "billStatus"
436
- }, {
437
- default: a(() => [
438
- l(I, {
439
- modelValue: u(o).billStatus,
440
- "onUpdate:modelValue": d[7] || (d[7] = (i) => u(o).billStatus = i),
441
- placeholder: t.$t("orderBill.billStatus"),
442
- "enum-type": "jmash.rbac.protobuf.UserStatus",
443
- clearable: "",
444
- style: { width: "203px" }
445
- }, null, 8, ["modelValue", "placeholder"])
446
- ]),
447
- _: 1
448
- }, 8, ["label"])
449
- ]),
450
- _: 1
451
- }),
452
- l(f, { span: 12 }, {
453
- default: a(() => [
454
- l(c, {
455
- label: t.$t("orderBill.paymentTime"),
456
- prop: "paymentTime"
457
- }, {
458
- default: a(() => [
459
- l(s, {
460
- modelValue: u(o).paymentTime,
461
- "onUpdate:modelValue": d[8] || (d[8] = (i) => u(o).paymentTime = i),
462
- placeholder: t.$t("orderBill.paymentTime"),
463
- maxlength: "9",
464
- "show-word-limit": "",
465
- clearable: ""
466
- }, null, 8, ["modelValue", "placeholder"])
467
- ]),
468
- _: 1
469
- }, 8, ["label"])
470
- ]),
471
- _: 1
472
- })
473
- ]),
474
- _: 1
475
- })
476
- ]),
477
- _: 1
478
- }, 8, ["model", "rules"])
479
- ]),
480
- _: 1
481
- }, 8, ["modelValue"]);
482
- };
483
- }
484
- });
485
- export {
486
- Y as _,
487
- B as o
488
- };