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,385 @@
1
+ import { defineComponent as W, ref as w, reactive as R, resolveComponent as i, resolveDirective as X, openBlock as m, createElementBlock as g, createElementVNode as U, createVNode as a, withCtx as l, withKeys as Y, unref as r, createTextVNode as s, toDisplayString as d, withDirectives as I, createBlock as c, isRef as S, createCommentVNode as $ } from "vue";
2
+ import { useTableHooks as Z } from "jmash-core";
3
+ import { useI18n as ee } from "vue-i18n";
4
+ import { o as te, _ as oe } from "./edit.vue_vue_type_script_setup_true_lang-be-TDMci.mjs";
5
+ const le = { class: "app-container" }, re = { class: "search-container" }, ne = ["onClick"], ae = ["onClick"], pe = /* @__PURE__ */ W({
6
+ __name: "index",
7
+ setup(ie) {
8
+ const { t: b } = ee(), u = w({}), {
9
+ tableHooks: n,
10
+ multipleTableRef: j,
11
+ queryFormRef: D,
12
+ listLoading: E,
13
+ tableData: N,
14
+ total: C
15
+ } = Z(b, te, u);
16
+ let y = w([
17
+ {
18
+ label: "orderItem.itemId",
19
+ prop: "itemId",
20
+ width: "150",
21
+ sortable: "custom",
22
+ isColumn: !0
23
+ },
24
+ {
25
+ label: "orderItem.orderId",
26
+ prop: "orderId",
27
+ width: "150",
28
+ sortable: "custom",
29
+ isColumn: !0
30
+ },
31
+ {
32
+ label: "orderItem.spuId",
33
+ prop: "spuId",
34
+ width: "150",
35
+ sortable: "custom",
36
+ isColumn: !0
37
+ },
38
+ {
39
+ label: "orderItem.skuId",
40
+ prop: "skuId",
41
+ width: "150",
42
+ sortable: "custom",
43
+ isColumn: !0
44
+ },
45
+ {
46
+ label: "orderItem.spuName",
47
+ prop: "spuName",
48
+ width: "150",
49
+ sortable: "custom",
50
+ isColumn: !0
51
+ },
52
+ {
53
+ label: "orderItem.picUrl",
54
+ prop: "picUrl",
55
+ width: "150",
56
+ sortable: "custom",
57
+ isColumn: !0
58
+ },
59
+ {
60
+ label: "orderItem.specInfo",
61
+ prop: "specInfo",
62
+ width: "150",
63
+ sortable: "custom",
64
+ isColumn: !0
65
+ },
66
+ {
67
+ label: "orderItem.customInfo",
68
+ prop: "customInfo",
69
+ width: "150",
70
+ sortable: "custom",
71
+ isColumn: !0
72
+ },
73
+ {
74
+ label: "orderItem.quantity",
75
+ prop: "quantity",
76
+ width: "150",
77
+ sortable: "custom",
78
+ isColumn: !0
79
+ },
80
+ {
81
+ label: "orderItem.salesPrice",
82
+ prop: "salesPrice",
83
+ width: "150",
84
+ sortable: "custom",
85
+ isColumn: !0
86
+ },
87
+ {
88
+ label: "orderItem.freightPrice",
89
+ prop: "freightPrice",
90
+ width: "150",
91
+ sortable: "custom",
92
+ isColumn: !0
93
+ },
94
+ {
95
+ label: "orderItem.paymentCouponPrice",
96
+ prop: "paymentCouponPrice",
97
+ width: "150",
98
+ sortable: "custom",
99
+ isColumn: !0
100
+ },
101
+ {
102
+ label: "orderItem.paymentPrice",
103
+ prop: "paymentPrice",
104
+ width: "150",
105
+ sortable: "custom",
106
+ isColumn: !0
107
+ },
108
+ {
109
+ label: "orderItem.remark",
110
+ prop: "remark",
111
+ width: "150",
112
+ sortable: "custom",
113
+ isColumn: !0
114
+ },
115
+ {
116
+ label: "orderItem.status",
117
+ prop: "status",
118
+ width: "150",
119
+ sortable: "custom",
120
+ isColumn: !0
121
+ },
122
+ {
123
+ label: "orderItem.isRefund",
124
+ prop: "isRefund",
125
+ width: "150",
126
+ sortable: "custom",
127
+ isColumn: !0
128
+ },
129
+ {
130
+ label: "common.operate",
131
+ width: "200",
132
+ slotName: "operation",
133
+ columnType: "slot",
134
+ fixed: "right",
135
+ isColumn: !0
136
+ }
137
+ ]);
138
+ const p = w({
139
+ title: b("common.edit"),
140
+ visible: !1
141
+ }), _ = w(!1);
142
+ let k = R({});
143
+ function T() {
144
+ k = R({}), p.value.title = b("common.add"), p.value.visible = !0;
145
+ }
146
+ function q(t) {
147
+ k.itemId = t.itemId, p.value.title = b("common.edit"), p.value.visible = !0;
148
+ }
149
+ function z(t) {
150
+ n.selectionRows.value = t;
151
+ }
152
+ function L(t) {
153
+ n.handleSort(t.prop, t.order);
154
+ }
155
+ function B(t) {
156
+ t && n.getList();
157
+ }
158
+ function K() {
159
+ _.value = !1;
160
+ }
161
+ function Q(t) {
162
+ t.updateMask = "", n.importExcel(t).then((e) => {
163
+ _.value = !1;
164
+ });
165
+ }
166
+ return n.getList(), (t, e) => {
167
+ const x = i("el-input"), P = i("el-form-item"), h = i("el-col"), V = i("el-row"), f = i("el-button"), A = i("el-form"), F = i("jmash-column-select"), H = i("jmash-table"), M = i("jmash-pagination"), G = i("el-card"), J = i("jmash-import-upload"), v = X("hasPerm");
168
+ return m(), g("div", le, [
169
+ U("div", re, [
170
+ a(A, {
171
+ ref_key: "queryFormRef",
172
+ ref: D,
173
+ model: u.value,
174
+ inline: !0
175
+ }, {
176
+ default: l(() => [
177
+ a(V, null, {
178
+ default: l(() => [
179
+ a(h, { span: 6 }, {
180
+ default: l(() => [
181
+ a(P, {
182
+ label: t.$t("orderItem.itemId"),
183
+ prop: "itemId"
184
+ }, {
185
+ default: l(() => [
186
+ a(x, {
187
+ modelValue: u.value.itemId,
188
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => u.value.itemId = o),
189
+ placeholder: t.$t("orderItem.itemId"),
190
+ onKeyup: e[1] || (e[1] = Y((o) => r(n).handleQuery(), ["enter"])),
191
+ class: "!w-[203px]"
192
+ }, null, 8, ["modelValue", "placeholder"])
193
+ ]),
194
+ _: 1
195
+ }, 8, ["label"])
196
+ ]),
197
+ _: 1
198
+ })
199
+ ]),
200
+ _: 1
201
+ }),
202
+ a(P, { class: "search-btn" }, {
203
+ default: l(() => [
204
+ a(f, {
205
+ type: "primary",
206
+ onClick: e[2] || (e[2] = (o) => r(n).handleQuery())
207
+ }, {
208
+ default: l(() => [
209
+ s(d(t.$t("common.search")), 1)
210
+ ]),
211
+ _: 1
212
+ }),
213
+ a(f, {
214
+ onClick: e[3] || (e[3] = (o) => r(n).resetQuery())
215
+ }, {
216
+ default: l(() => [
217
+ s(d(t.$t("common.reset")), 1)
218
+ ]),
219
+ _: 1
220
+ })
221
+ ]),
222
+ _: 1
223
+ })
224
+ ]),
225
+ _: 1
226
+ }, 8, ["model"]),
227
+ e[15] || (e[15] = U("div", { class: "clear" }, null, -1))
228
+ ]),
229
+ a(G, {
230
+ shadow: "never",
231
+ class: "table-container"
232
+ }, {
233
+ header: l(() => [
234
+ a(V, null, {
235
+ default: l(() => [
236
+ a(h, { span: 17 }, {
237
+ default: l(() => [
238
+ I((m(), c(f, {
239
+ type: "primary",
240
+ onClick: T
241
+ }, {
242
+ default: l(() => [
243
+ s(d(t.$t("common.add")), 1)
244
+ ]),
245
+ _: 1
246
+ })), [
247
+ [v, ["order:order_item:add"]]
248
+ ]),
249
+ I((m(), c(f, {
250
+ type: "primary",
251
+ onClick: e[4] || (e[4] = (o) => r(n).deleteRecords())
252
+ }, {
253
+ default: l(() => [
254
+ s(d(t.$t("common.batchDelete")), 1)
255
+ ]),
256
+ _: 1
257
+ })), [
258
+ [v, ["order:order_item:delete"]]
259
+ ])
260
+ ]),
261
+ _: 1
262
+ }),
263
+ a(h, {
264
+ span: 7,
265
+ class: "container-float"
266
+ }, {
267
+ default: l(() => [
268
+ I((m(), c(f, {
269
+ plain: "",
270
+ type: "primary",
271
+ onClick: e[5] || (e[5] = (o) => _.value = !0)
272
+ }, {
273
+ default: l(() => [
274
+ s(d(t.$t("common.import")), 1)
275
+ ]),
276
+ _: 1
277
+ })), [
278
+ [v, ["order:order_item:import"]]
279
+ ]),
280
+ I((m(), c(f, {
281
+ plain: "",
282
+ type: "primary",
283
+ onClick: e[6] || (e[6] = (o) => r(n).handleExport(r(b)("order.orderItem.name")))
284
+ }, {
285
+ default: l(() => [
286
+ s(d(t.$t("common.export")), 1)
287
+ ]),
288
+ _: 1
289
+ })), [
290
+ [v, ["order:order_item:export"]]
291
+ ]),
292
+ I((m(), c(f, {
293
+ plain: "",
294
+ type: "primary",
295
+ onClick: e[7] || (e[7] = (o) => r(n).handleExportPdf(r(b)("order.orderItem.name")))
296
+ }, {
297
+ default: l(() => [
298
+ s(d(t.$t("common.print")), 1)
299
+ ]),
300
+ _: 1
301
+ })), [
302
+ [v, ["order:order_item:print"]]
303
+ ]),
304
+ a(F, {
305
+ modelValue: r(y),
306
+ "onUpdate:modelValue": e[8] || (e[8] = (o) => S(y) ? y.value = o : y = o),
307
+ "label-name": "order/order-item"
308
+ }, null, 8, ["modelValue"])
309
+ ]),
310
+ _: 1
311
+ })
312
+ ]),
313
+ _: 1
314
+ })
315
+ ]),
316
+ footer: l(() => [
317
+ r(C) > 0 ? (m(), c(M, {
318
+ key: 0,
319
+ total: r(C),
320
+ "onUpdate:total": e[9] || (e[9] = (o) => S(C) ? C.value = o : null),
321
+ "current-page": u.value.curPage,
322
+ "onUpdate:currentPage": e[10] || (e[10] = (o) => u.value.curPage = o),
323
+ "page-size": u.value.pageSize,
324
+ "onUpdate:pageSize": e[11] || (e[11] = (o) => u.value.pageSize = o),
325
+ onPagination: e[12] || (e[12] = (o) => r(n).getList())
326
+ }, null, 8, ["total", "current-page", "page-size"])) : $("", !0)
327
+ ]),
328
+ default: l(() => [
329
+ a(H, {
330
+ ref_key: "multipleTableRef",
331
+ ref: j,
332
+ "row-key": "itemId",
333
+ "list-loading": r(E),
334
+ data: r(N),
335
+ "table-label": r(y),
336
+ onSelectionChange: z,
337
+ onSortChange: L
338
+ }, {
339
+ operation: l((o) => [
340
+ I((m(), g("span", {
341
+ class: "el-button-color",
342
+ onClick: (O) => q(o.data.row)
343
+ }, [
344
+ s(d(t.$t("common.edit")), 1)
345
+ ], 8, ne)), [
346
+ [v, ["order:order_item:update"]]
347
+ ]),
348
+ I((m(), g("span", {
349
+ class: "el-button-color dropdown-left",
350
+ onClick: (O) => r(n).deleteRecord(o.data.row)
351
+ }, [
352
+ s(d(t.$t("common.delete")), 1)
353
+ ], 8, ae)), [
354
+ [v, ["order:order_item:delete"]]
355
+ ])
356
+ ]),
357
+ _: 1
358
+ }, 8, ["list-loading", "data", "table-label"])
359
+ ]),
360
+ _: 1
361
+ }),
362
+ p.value.visible ? (m(), c(oe, {
363
+ key: 0,
364
+ modelValue: p.value.visible,
365
+ "onUpdate:modelValue": e[13] || (e[13] = (o) => p.value.visible = o),
366
+ title: p.value.title,
367
+ "entity-key": r(k),
368
+ onRefresh: B,
369
+ width: "900px"
370
+ }, null, 8, ["modelValue", "title", "entity-key"])) : $("", !0),
371
+ _.value ? (m(), c(J, {
372
+ key: 1,
373
+ "upload-visible": _.value,
374
+ "template-title": t.$t("sysUser.templateDownload"),
375
+ onTemplateDown: e[14] || (e[14] = (o) => r(n).downloadTemplate(r(b)("order.orderItem.name"))),
376
+ onImportEvents: Q,
377
+ onUploadClosed: K
378
+ }, null, 8, ["upload-visible", "template-title"])) : $("", !0)
379
+ ]);
380
+ };
381
+ }
382
+ });
383
+ export {
384
+ pe as default
385
+ };