xyvcard-order 0.0.1

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 (100) hide show
  1. package/README.md +51 -0
  2. package/dist/canceled-CUME6Usz.mjs +4 -0
  3. package/dist/canceled.vue_vue_type_script_setup_true_lang-EX4zYQSu.mjs +509 -0
  4. package/dist/change-CK1I7hL9.mjs +4 -0
  5. package/dist/change.vue_vue_type_script_setup_true_lang-DMUKqQVp.mjs +186 -0
  6. package/dist/completed-Cf86bOvD.mjs +4 -0
  7. package/dist/completed.vue_vue_type_script_setup_true_lang-DqIyhNKh.mjs +509 -0
  8. package/dist/constant-CWTD7ap0.mjs +24 -0
  9. package/dist/deliver-BQIcivCV.mjs +4 -0
  10. package/dist/deliver.vue_vue_type_script_setup_true_lang-_2HCD1vV.mjs +221 -0
  11. package/dist/edit-BtY-5_aq.mjs +4 -0
  12. package/dist/edit-CXp819Cl.mjs +4 -0
  13. package/dist/edit-CagPAsCc.mjs +4 -0
  14. package/dist/edit-DSlSQclm.mjs +4 -0
  15. package/dist/edit-DZTWE770.mjs +4 -0
  16. package/dist/edit-kb9Vbd0O.mjs +553 -0
  17. package/dist/edit.vue_vue_type_script_setup_true_lang-BHG0mS0L.mjs +382 -0
  18. package/dist/edit.vue_vue_type_script_setup_true_lang-BzhS3SvZ.mjs +488 -0
  19. package/dist/edit.vue_vue_type_script_setup_true_lang-Cgbqi1i7.mjs +516 -0
  20. package/dist/edit.vue_vue_type_script_setup_true_lang-DHkYd975.mjs +178 -0
  21. package/dist/edit.vue_vue_type_script_setup_true_lang-be-TDMci.mjs +684 -0
  22. package/dist/index-67kgHrd-.mjs +370 -0
  23. package/dist/index-BYkU3LYC.mjs +343 -0
  24. package/dist/index-CUO59YzZ.mjs +1275 -0
  25. package/dist/index-D-PNIrrr.mjs +55 -0
  26. package/dist/index-DMD0_mKi.mjs +673 -0
  27. package/dist/index-Dbp38ozL.mjs +350 -0
  28. package/dist/index-L15OdEOS.mjs +370 -0
  29. package/dist/index-Nw_g6g3T.mjs +80 -0
  30. package/dist/index-ZpOHqjUk.mjs +344 -0
  31. package/dist/index-w8CmEAxD.mjs +90 -0
  32. package/dist/index-xagR65a1.mjs +59 -0
  33. package/dist/index-zsqXCqfG.mjs +385 -0
  34. package/dist/index.mjs +2825 -0
  35. package/dist/info-6G1vmk51.mjs +369 -0
  36. package/dist/info-BWqDP7Q1.mjs +106 -0
  37. package/dist/style.css +1 -0
  38. package/dist/unpay-CqebDQ24.mjs +4 -0
  39. package/dist/unpay.vue_vue_type_script_setup_true_lang-Cq-l3JEe.mjs +3981 -0
  40. package/dist/unpost-vRTZyaW0.mjs +4 -0
  41. package/dist/unpost.vue_vue_type_script_setup_true_lang-CAd6DqNm.mjs +540 -0
  42. package/dist/unreceive-DUyGNC5h.mjs +4 -0
  43. package/dist/unreceive.vue_vue_type_script_setup_true_lang-DK1USH8c.mjs +509 -0
  44. package/dist/viewLogist-DdG4dbmo.mjs +4 -0
  45. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-POKrzvX7.mjs +77 -0
  46. package/dts/src/App.vue.d.ts +2 -0
  47. package/dts/src/api/dict.d.ts +10 -0
  48. package/dts/src/api/index.d.ts +14 -0
  49. package/dts/src/api/order/order-bill/index.d.ts +20 -0
  50. package/dts/src/api/order/order-bill/types.d.ts +75 -0
  51. package/dts/src/api/order/order-info/index.d.ts +15 -0
  52. package/dts/src/api/order/order-info/types.d.ts +97 -0
  53. package/dts/src/api/order/order-item/index.d.ts +20 -0
  54. package/dts/src/api/order/order-item/types.d.ts +95 -0
  55. package/dts/src/api/order/order-logistics/index.d.ts +12 -0
  56. package/dts/src/api/order/order-logistics/types.d.ts +85 -0
  57. package/dts/src/api/order/order-pay-record/index.d.ts +20 -0
  58. package/dts/src/api/order/order-pay-record/types.d.ts +77 -0
  59. package/dts/src/api/order/order-refund-record/index.d.ts +20 -0
  60. package/dts/src/api/order/order-refund-record/types.d.ts +80 -0
  61. package/dts/src/api/order/order-refunds/index.d.ts +12 -0
  62. package/dts/src/api/order/order-refunds/types.d.ts +47 -0
  63. package/dts/src/api/shop/shop-info/index.d.ts +8 -0
  64. package/dts/src/api/shop/shop-info/types.d.ts +16 -0
  65. package/dts/src/components/EnumRadio/index.vue.d.ts +18 -0
  66. package/dts/src/constant.d.ts +28 -0
  67. package/dts/src/index.d.ts +6 -0
  68. package/dts/src/lang/index.d.ts +1 -0
  69. package/dts/src/lang/order/en.d.ts +2 -0
  70. package/dts/src/lang/order/zh-cn.d.ts +189 -0
  71. package/dts/src/main.d.ts +4 -0
  72. package/dts/src/permission.d.ts +1 -0
  73. package/dts/src/router/orderRouter.d.ts +4 -0
  74. package/dts/src/utils/commons.d.ts +10 -0
  75. package/dts/src/utils/momentPlugin.d.ts +5 -0
  76. package/dts/src/views/order/order-bill/edit.vue.d.ts +22 -0
  77. package/dts/src/views/order/order-bill/index.vue.d.ts +2 -0
  78. package/dts/src/views/order/order-info/canceled.vue.d.ts +2 -0
  79. package/dts/src/views/order/order-info/change.vue.d.ts +31 -0
  80. package/dts/src/views/order/order-info/completed.vue.d.ts +2 -0
  81. package/dts/src/views/order/order-info/deliver.vue.d.ts +31 -0
  82. package/dts/src/views/order/order-info/edit.vue.d.ts +22 -0
  83. package/dts/src/views/order/order-info/index.vue.d.ts +2 -0
  84. package/dts/src/views/order/order-info/info.vue.d.ts +2 -0
  85. package/dts/src/views/order/order-info/unpay.vue.d.ts +2 -0
  86. package/dts/src/views/order/order-info/unpost.vue.d.ts +2 -0
  87. package/dts/src/views/order/order-info/unreceive.vue.d.ts +2 -0
  88. package/dts/src/views/order/order-info/viewLogist.vue.d.ts +27 -0
  89. package/dts/src/views/order/order-item/edit.vue.d.ts +22 -0
  90. package/dts/src/views/order/order-item/index.vue.d.ts +2 -0
  91. package/dts/src/views/order/order-logistics/edit.vue.d.ts +22 -0
  92. package/dts/src/views/order/order-logistics/index.vue.d.ts +2 -0
  93. package/dts/src/views/order/order-pay-record/edit.vue.d.ts +22 -0
  94. package/dts/src/views/order/order-pay-record/index.vue.d.ts +2 -0
  95. package/dts/src/views/order/order-refund-record/edit.vue.d.ts +22 -0
  96. package/dts/src/views/order/order-refund-record/index.vue.d.ts +2 -0
  97. package/dts/src/views/order/order-refunds/edit.vue.d.ts +22 -0
  98. package/dts/src/views/order/order-refunds/index.vue.d.ts +2 -0
  99. package/dts/src/views/order/order-refunds/info.vue.d.ts +2 -0
  100. package/package.json +57 -0
@@ -0,0 +1,488 @@
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
+ };