xyvcard-order 0.0.5 → 0.0.7

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 (47) hide show
  1. package/dist/{canceled-CAEulpM1.mjs → canceled-DkLaSCTM.mjs} +1 -1
  2. package/dist/{canceled.vue_vue_type_script_setup_true_lang-_j0h5aSP.mjs → canceled.vue_vue_type_script_setup_true_lang-5-Cw4llp.mjs} +86 -86
  3. package/dist/{change-CH-CF_q-.mjs → change-D_G7h-Nt.mjs} +1 -1
  4. package/dist/{change.vue_vue_type_script_setup_true_lang-Bb1DH4GC.mjs → change.vue_vue_type_script_setup_true_lang-BTxjkvV_.mjs} +23 -23
  5. package/dist/{completed-B70yQ6oI.mjs → completed-D1_MyTO_.mjs} +1 -1
  6. package/dist/{unreceive.vue_vue_type_script_setup_true_lang-IoS_bKwk.mjs → completed.vue_vue_type_script_setup_true_lang-Djv14D1X.mjs} +74 -74
  7. package/dist/{deliver-Bp2Ckw4g.mjs → deliver-DqqGFB3x.mjs} +1 -1
  8. package/dist/{deliver.vue_vue_type_script_setup_true_lang-DjvQSQPG.mjs → deliver.vue_vue_type_script_setup_true_lang-D4gqA0w8.mjs} +58 -59
  9. package/dist/{edit-DyFqRxsE.mjs → edit-MJXLcLm4.mjs} +1 -1
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-YwJOnNI_.mjs → edit.vue_vue_type_script_setup_true_lang-Bell5IpG.mjs} +6 -6
  11. package/dist/index-CHzhYqx8.mjs +114 -0
  12. package/dist/{index-Dvf0V5EP.mjs → index-DAb5kkOk.mjs} +11 -23
  13. package/dist/{index-B3HKfAop.mjs → index-DDG2eFhK.mjs} +94 -94
  14. package/dist/{index-DHJFncJ6.mjs → index-Dy-lHz4D.mjs} +99 -106
  15. package/dist/{index-CL3mlOnd.mjs → index-ZL41UIHr.mjs} +162 -148
  16. package/dist/index.mjs +147 -248
  17. package/dist/info-Cl9HaMCm.mjs +327 -0
  18. package/dist/{info-DtOaZ-hg.mjs → info-CxZXerj5.mjs} +1 -1
  19. package/dist/info.vue_vue_type_script_setup_true_lang-BdZStl8T.mjs +178 -0
  20. package/dist/{review-DjGDxyqZ.mjs → review-Bc-YCZ1X.mjs} +1 -1
  21. package/dist/{review.vue_vue_type_script_setup_true_lang-CKGCdXD5.mjs → review.vue_vue_type_script_setup_true_lang-mTTMzpC7.mjs} +56 -57
  22. package/dist/style.css +1 -1
  23. package/dist/{unpay-WAsbEXlr.mjs → unpay-3tbx6NWV.mjs} +1 -1
  24. package/dist/{unpay.vue_vue_type_script_setup_true_lang-Dj_Sq17m.mjs → unpay.vue_vue_type_script_setup_true_lang-BGQNtrO2.mjs} +72 -72
  25. package/dist/{unpost-BocJwYcE.mjs → unpost-DOQ_sNYN.mjs} +1 -1
  26. package/dist/{unpost.vue_vue_type_script_setup_true_lang-BzlBIdWF.mjs → unpost.vue_vue_type_script_setup_true_lang-BveDiwdZ.mjs} +84 -84
  27. package/dist/{unreceive-BLcvdJxY.mjs → unreceive-WZteM54K.mjs} +1 -1
  28. package/dist/{completed.vue_vue_type_script_setup_true_lang-D25evb6V.mjs → unreceive.vue_vue_type_script_setup_true_lang-C6APvOTf.mjs} +76 -76
  29. package/dist/{viewLogist-D9-zqepw.mjs → viewLogist-lN1KX2qM.mjs} +1 -1
  30. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-CNb6Tjcw.mjs +93 -0
  31. package/dts/src/api/dict.d.ts +3 -0
  32. package/dts/src/api/index.d.ts +2 -1
  33. package/dts/src/api/order-appraises/types.d.ts +1 -0
  34. package/dts/src/api/order-info/types.d.ts +2 -1
  35. package/dts/src/api/order-logistics/index.d.ts +1 -5
  36. package/dts/src/api/order-logistics/types.d.ts +3 -62
  37. package/dts/src/api/order-refunds/index.d.ts +2 -3
  38. package/dts/src/api/order-refunds/types.d.ts +5 -0
  39. package/dts/src/constant.d.ts +12 -10
  40. package/dts/src/lang/order/zh-cn.d.ts +6 -2
  41. package/dts/src/main.d.ts +0 -1
  42. package/package.json +5 -4
  43. package/dist/index-suIgymdy.mjs +0 -93
  44. package/dist/index.vue_vue_type_script_setup_true_lang-RpiqLerK.mjs +0 -41
  45. package/dist/info-Ba-BgJkw.mjs +0 -368
  46. package/dist/info.vue_vue_type_script_setup_true_lang-DLnh7W1x.mjs +0 -188
  47. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-D8KlJgG0.mjs +0 -127
@@ -1,368 +0,0 @@
1
- import { defineComponent as te, getCurrentInstance as le, ref as c, reactive as A, onMounted as re, resolveComponent as b, resolveDirective as oe, openBlock as r, createElementBlock as n, createVNode as a, withCtx as s, createTextVNode as g, toDisplayString as l, createElementVNode as i, unref as m, Fragment as p, renderList as v, withDirectives as P, createCommentVNode as I, vShow as z, createBlock as D } from "vue";
2
- import { useRouter as ne, useRoute as ae } from "vue-router";
3
- import { fileApi as H, routerUtil as ie } from "jmash-core";
4
- import { D as y, C as E } from "./index-suIgymdy.mjs";
5
- import { o as se } from "./index-DyFAVz8t.mjs";
6
- import { _ as de } from "./edit.vue_vue_type_script_setup_true_lang-YwJOnNI_.mjs";
7
- import { _ as ue } from "./deliver.vue_vue_type_script_setup_true_lang-DjvQSQPG.mjs";
8
- import { _ as fe } from "./viewLogist.vue_vue_type_script_setup_true_lang-D8KlJgG0.mjs";
9
- import { useI18n as me } from "vue-i18n";
10
- const pe = { class: "app-container" }, ve = { class: "shopName" }, ce = ["onClick"], Ie = ["onClick"], ye = { key: 0 }, be = { key: 1 }, he = {
11
- key: 2,
12
- class: "distance-left"
13
- }, $e = ["onClick"], Se = /* @__PURE__ */ te({
14
- __name: "info",
15
- setup(ke) {
16
- const { t: S } = me(), F = ne(), N = ae(), { proxy: K } = le(), h = c([!1]), U = c(), $ = c(), V = c(!1), B = c(""), M = c("");
17
- y.shopBizDict.useValues();
18
- const k = c({
19
- title: S("orderInfo.update"),
20
- visible: !1
21
- }), _ = c({
22
- title: S("orderInfo.deliver"),
23
- visible: !1
24
- });
25
- let C = A({}), W = A({});
26
- function O(t) {
27
- C.orderId = t.orderId, k.value.visible = !0;
28
- }
29
- function Q(t, f) {
30
- W.itemId = f.itemId, C.orderId = t.orderId, _.value.visible = !0;
31
- }
32
- function q(t) {
33
- h.value[t] = !h.value[t];
34
- }
35
- function j() {
36
- ie.closeTagView(N.fullPath, F, !1);
37
- }
38
- function R(t) {
39
- t && T();
40
- }
41
- function T() {
42
- se.findById({ orderId: N.query.orderId }).then(({ data: t }) => {
43
- $.value = [t], console.log($), U.value = t.shopId;
44
- });
45
- }
46
- re(() => {
47
- T();
48
- });
49
- function G(t, f) {
50
- B.value = t.orderId, M.value = f.itemId, V.value = !0;
51
- }
52
- function J() {
53
- V.value = !1;
54
- }
55
- return (t, f) => {
56
- const X = b("el-button"), u = b("el-table-column"), w = b("el-table"), Z = b("el-image"), Y = b("svg-icon"), x = b("el-card"), L = oe("hasPerm");
57
- return r(), n("div", pe, [
58
- a(x, { shadow: "never" }, {
59
- header: s(() => [
60
- a(X, {
61
- type: "primary",
62
- onClick: j
63
- }, {
64
- default: s(() => [
65
- g(l(t.$t("common.back")), 1)
66
- ]),
67
- _: 1
68
- })
69
- ]),
70
- default: s(() => [
71
- f[4] || (f[4] = i("div", { class: "title-content" }, "基本信息", -1)),
72
- i("div", ve, l(t.$t("orderInfo.shopName")) + ":" + l(m(y).shopBizDict.getValue(U.value)), 1),
73
- a(w, {
74
- data: $.value,
75
- border: ""
76
- }, {
77
- default: s(() => [
78
- a(u, {
79
- label: t.$t("orderInfo.orderItemList")
80
- }, {
81
- default: s(({ row: e }) => [
82
- i("div", null, l(t.$t("orderInfo.orderCode")) + ": " + l(e.orderCode), 1),
83
- i("div", null, l(t.$t("orderInfo.createTime")) + ": " + l(m(K).$moment.formatDate(e.createTime, "YYYY-MM-DD HH:mm:ss")), 1)
84
- ]),
85
- _: 1
86
- }, 8, ["label"]),
87
- a(u, {
88
- label: t.$t("orderInfo.salesPrice")
89
- }, {
90
- default: s(({ row: e }) => [
91
- i("div", null, l(t.$t("orderInfo.salesPrice")) + ": ¥" + l(e.salesPrice), 1),
92
- i("div", null, l(t.$t("orderInfo.freightPrice")) + ": +¥" + l(e.freightPrice), 1),
93
- i("div", null, l(t.$t("orderInfo.paymentCouponPrice")) + ": -¥" + l(e.paymentCouponPrice), 1),
94
- i("div", null, l(t.$t("orderInfo.orderPrice")) + ": ¥" + l(e.orderPrice), 1)
95
- ]),
96
- _: 1
97
- }, 8, ["label"]),
98
- a(u, {
99
- label: t.$t("orderInfo.status")
100
- }, {
101
- default: s(({ row: e }) => [
102
- i("div", null, l(t.$t("orderInfo.orderStatus")) + ": " + l(m(y).orderStatusEnum.getEnumValue(e.orderStatus)), 1),
103
- i("div", null, l(t.$t("orderInfo.paymentStatus")) + ": " + l(m(y).paymentStatusEnum.getEnumValue(e.paymentStatus)), 1),
104
- i("div", null, l(t.$t("orderInfo.appraisesStatus")) + ": " + l(m(y).appraisesStatus.getValue(e.appraisesStatus)), 1),
105
- i("div", null, l(t.$t("orderInfo.deliveryWay")) + ": " + l(m(y).deliveryWayEnum.getEnumValue(e.deliveryWay)), 1),
106
- i("div", null, l(t.$t("orderInfo.paymentWay")) + ": " + l(m(y).paymentWayEnum.getEnumValue(e.paymentWay)), 1)
107
- ]),
108
- _: 1
109
- }, 8, ["label"]),
110
- a(u, {
111
- label: t.$t("orderInfo.userMessage")
112
- }, {
113
- default: s(({ row: e }) => [
114
- g(l(e.userMessage), 1)
115
- ]),
116
- _: 1
117
- }, 8, ["label"])
118
- ]),
119
- _: 1
120
- }, 8, ["data"]),
121
- f[5] || (f[5] = i("div", { class: "title-content" }, "商品详情", -1)),
122
- a(w, {
123
- data: $.value,
124
- border: "",
125
- style: { width: "100%" }
126
- }, {
127
- default: s(() => [
128
- a(u, {
129
- label: t.$t("orderInfo.spuName"),
130
- width: "200"
131
- }, {
132
- default: s(({ row: e }) => [
133
- (r(!0), n(p, null, v(e.orderItemList.results, (o, d) => (r(), n("span", { key: d }, [
134
- i("div", null, l(o.spuName), 1)
135
- ]))), 128))
136
- ]),
137
- _: 1
138
- }, 8, ["label"]),
139
- a(u, {
140
- label: t.$t("orderInfo.picUrl"),
141
- width: "100"
142
- }, {
143
- default: s(({ row: e }) => [
144
- (r(!0), n(p, null, v(e.orderItemList.results, (o, d) => (r(), n("span", { key: d }, [
145
- a(Z, {
146
- src: m(H).imageUrl(o.picUrl, 80, 80),
147
- "preview-src-list": [m(H).imageUrl(o == null ? void 0 : o.picUrl)],
148
- "preview-teleported": "",
149
- "hide-on-click-modal": "",
150
- fit: "contain"
151
- }, null, 8, ["src", "preview-src-list"])
152
- ]))), 128))
153
- ]),
154
- _: 1
155
- }, 8, ["label"]),
156
- a(u, {
157
- label: t.$t("orderInfo.specInfo"),
158
- width: "150"
159
- }, {
160
- default: s(({ row: e }) => [
161
- (r(!0), n(p, null, v(e.orderItemList.results, (o, d) => (r(), n("span", { key: d }, [
162
- i("div", null, l(o.specInfo), 1)
163
- ]))), 128))
164
- ]),
165
- _: 1
166
- }, 8, ["label"]),
167
- a(u, {
168
- label: t.$t("orderInfo.goodsPrice"),
169
- width: "100"
170
- }, {
171
- default: s(({ row: e }) => [
172
- (r(!0), n(p, null, v(e.orderItemList.results, (o, d) => (r(), n("span", { key: d }, [
173
- i("div", null, l(o.salesPrice), 1)
174
- ]))), 128))
175
- ]),
176
- _: 1
177
- }, 8, ["label"]),
178
- a(u, {
179
- label: t.$t("orderInfo.quantity"),
180
- width: "100"
181
- }, {
182
- default: s(({ row: e }) => [
183
- (r(!0), n(p, null, v(e.orderItemList.results, (o, d) => (r(), n("span", { key: d }, [
184
- i("div", null, l(o.quantity), 1)
185
- ]))), 128))
186
- ]),
187
- _: 1
188
- }, 8, ["label"]),
189
- a(u, {
190
- label: t.$t("orderInfo.salesPriceAndQuantity"),
191
- width: "100"
192
- }, {
193
- default: s(({ row: e }) => [
194
- (r(!0), n(p, null, v(e.orderItemList.results, (o, d) => (r(), n("span", { key: d }, [
195
- i("div", null, l(o.quantity * o.salesPrice), 1)
196
- ]))), 128))
197
- ]),
198
- _: 1
199
- }, 8, ["label"]),
200
- a(u, {
201
- label: t.$t("orderInfo.freightPrice"),
202
- width: "100"
203
- }, {
204
- default: s(({ row: e }) => [
205
- (r(!0), n(p, null, v(e.orderItemList.results, (o, d) => (r(), n("span", { key: d }, [
206
- i("div", null, l(o.freightPrice), 1)
207
- ]))), 128))
208
- ]),
209
- _: 1
210
- }, 8, ["label"]),
211
- a(u, {
212
- label: t.$t("orderInfo.paymentCouponPrice"),
213
- width: "130"
214
- }, {
215
- default: s(({ row: e }) => [
216
- (r(!0), n(p, null, v(e.orderItemList.results, (o, d) => (r(), n("span", { key: d }, [
217
- i("div", null, l(o.paymentCouponPrice), 1)
218
- ]))), 128))
219
- ]),
220
- _: 1
221
- }, 8, ["label"]),
222
- a(u, {
223
- label: t.$t("orderInfo.paymentPrice"),
224
- width: "100"
225
- }, {
226
- default: s(({ row: e }) => [
227
- (r(!0), n(p, null, v(e.orderItemList.results, (o, d) => (r(), n("span", { key: d }, [
228
- i("div", null, l(o.paymentPrice), 1)
229
- ]))), 128))
230
- ]),
231
- _: 1
232
- }, 8, ["label"]),
233
- a(u, {
234
- label: t.$t("orderInfo.customInfo"),
235
- width: "100"
236
- }, {
237
- default: s(({ row: e }) => [
238
- (r(!0), n(p, null, v(e.orderItemList.results, (o, d) => (r(), n("span", { key: d }, [
239
- i("div", null, l(o.customInfo), 1)
240
- ]))), 128))
241
- ]),
242
- _: 1
243
- }, 8, ["label"]),
244
- a(u, {
245
- label: t.$t("common.operate"),
246
- fixed: "right",
247
- width: "120"
248
- }, {
249
- default: s(({ row: e }) => [
250
- (r(!0), n(p, null, v(e.orderItemList.results, (o, d) => (r(), n("span", { key: d }, [
251
- e.orderStatus === m(E).unpost ? P((r(), n("div", {
252
- key: 0,
253
- class: "el-button-color dropdown-left",
254
- onClick: (ee) => Q(e, o)
255
- }, [
256
- g(l(t.$t("orderInfo.deliver")), 1)
257
- ], 8, ce)), [
258
- [L, ["order:order_info:delivery"]]
259
- ]) : I("", !0),
260
- e.orderStatus === m(E).unreceive ? P((r(), n("div", {
261
- key: 1,
262
- class: "el-button-color dropdown-left",
263
- onClick: (ee) => G(e, o)
264
- }, [
265
- g(l(t.$t("orderInfo.viewLogist")), 1)
266
- ], 8, Ie)), [
267
- [L, ["order:order_logistics:list"]]
268
- ]) : I("", !0)
269
- ]))), 128))
270
- ]),
271
- _: 1
272
- }, 8, ["label"])
273
- ]),
274
- _: 1
275
- }, 8, ["data"]),
276
- f[6] || (f[6] = i("div", { class: "title-content" }, "收货及用户信息", -1)),
277
- a(w, {
278
- data: $.value,
279
- border: ""
280
- }, {
281
- default: s(() => [
282
- a(u, {
283
- prop: "userName",
284
- label: t.$t("orderInfo.userName"),
285
- width: "150"
286
- }, null, 8, ["label"]),
287
- a(u, {
288
- prop: "address",
289
- label: t.$t("orderInfo.address")
290
- }, null, 8, ["label"]),
291
- a(u, {
292
- label: t.$t("orderInfo.mobilePhone"),
293
- width: "150"
294
- }, {
295
- default: s(({ row: e }) => [
296
- h.value[0] ? (r(), n("span", be, l(e.mobilePhone), 1)) : (r(), n("span", ye, l(e.mobilePhoneIns), 1)),
297
- e.mobilePhoneIns ? (r(), n("span", he, [
298
- P(a(Y, {
299
- "icon-class": "close-eye",
300
- onClick: f[0] || (f[0] = (o) => q(0))
301
- }, null, 512), [
302
- [z, !h.value[0]]
303
- ]),
304
- P(a(Y, {
305
- "icon-class": "eye-open",
306
- onClick: f[1] || (f[1] = (o) => q(0))
307
- }, null, 512), [
308
- [z, h.value[0]]
309
- ])
310
- ])) : I("", !0)
311
- ]),
312
- _: 1
313
- }, 8, ["label"]),
314
- a(u, {
315
- label: t.$t("common.operate"),
316
- width: "100"
317
- }, {
318
- default: s(({ row: e }) => [
319
- e.orderStatus === m(E).unpost ? P((r(), n("span", {
320
- key: 0,
321
- class: "el-button-color dropdown-left",
322
- onClick: (o) => O(e)
323
- }, [
324
- g(l(t.$t("orderInfo.update")), 1)
325
- ], 8, $e)), [
326
- [L, ["order:order_info:update"]]
327
- ]) : I("", !0)
328
- ]),
329
- _: 1
330
- }, 8, ["label"])
331
- ]),
332
- _: 1
333
- }, 8, ["data"])
334
- ]),
335
- _: 1
336
- }),
337
- k.value.visible ? (r(), D(de, {
338
- key: 0,
339
- modelValue: k.value.visible,
340
- "onUpdate:modelValue": f[2] || (f[2] = (e) => k.value.visible = e),
341
- title: k.value.title,
342
- "entity-key": m(C),
343
- onRefresh: R,
344
- width: "600px"
345
- }, null, 8, ["modelValue", "title", "entity-key"])) : I("", !0),
346
- _.value.visible ? (r(), D(ue, {
347
- key: 1,
348
- modelValue: _.value.visible,
349
- "onUpdate:modelValue": f[3] || (f[3] = (e) => _.value.visible = e),
350
- title: _.value.title,
351
- "entity-key": m(C),
352
- "entity-model": m(W),
353
- onRefresh: R,
354
- width: "500px"
355
- }, null, 8, ["modelValue", "title", "entity-key", "entity-model"])) : I("", !0),
356
- V.value ? (r(), D(fe, {
357
- key: 2,
358
- orderId: B.value,
359
- orderItemId: M.value,
360
- onClose: J
361
- }, null, 8, ["orderId", "orderItemId"])) : I("", !0)
362
- ]);
363
- };
364
- }
365
- });
366
- export {
367
- Se as default
368
- };
@@ -1,188 +0,0 @@
1
- import { defineComponent as E, ref as v, onBeforeMount as V, resolveComponent as _, openBlock as f, createBlock as A, withCtx as t, createElementVNode as u, createVNode as o, createElementBlock as m, Fragment as w, renderList as K, toDisplayString as n, createTextVNode as a, withDirectives as h, vShow as k, createCommentVNode as L } from "vue";
2
- import { D as O } from "./index-suIgymdy.mjs";
3
- import { o as S } from "./index-Dvf0V5EP.mjs";
4
- import { o as j } from "./index-DyFAVz8t.mjs";
5
- const q = { key: 0 }, z = { key: 1 }, F = {
6
- key: 2,
7
- class: "distance-left"
8
- }, J = /* @__PURE__ */ E({
9
- __name: "info",
10
- props: {
11
- entityKey: {
12
- type: Object,
13
- default: () => {
14
- }
15
- }
16
- },
17
- setup(D) {
18
- const y = v(), r = v(), I = v(""), c = v([!1]);
19
- O.shopBizDict.useValues();
20
- const b = D;
21
- function P(l) {
22
- c.value[l] = !c.value[l];
23
- }
24
- V(() => {
25
- S.findById({ refundId: b.entityKey.refundId }).then(({ data: l }) => {
26
- console.log(l), y.value = l, I.value = l.orderId, B();
27
- });
28
- });
29
- function B() {
30
- I.value && j.findById({ orderId: I.value }).then(({ data: l }) => {
31
- r.value = l, console.log(r);
32
- });
33
- }
34
- function C() {
35
- }
36
- return (l, d) => {
37
- const s = _("el-descriptions-item"), R = _("el-descriptions"), $ = _("svg-icon"), N = _("el-dialog");
38
- return f(), A(N, { onClose: C }, {
39
- default: t(() => [
40
- d[2] || (d[2] = u("div", { class: "title-content" }, "退款信息", -1)),
41
- o(R, { column: 4 }, {
42
- default: t(() => {
43
- var e, p;
44
- return [
45
- (f(!0), m(w, null, K((p = (e = r.value) == null ? void 0 : e.orderItemList) == null ? void 0 : p.results, (i, g) => (f(), m("span", { key: g }, [
46
- o(s, null, {
47
- default: t(() => [
48
- u("span", null, n(i.spuName), 1)
49
- ]),
50
- _: 2
51
- }, 1024),
52
- o(s, null, {
53
- default: t(() => [
54
- u("span", null, n(i.specInfo), 1)
55
- ]),
56
- _: 2
57
- }, 1024),
58
- o(s, null, {
59
- default: t(() => [
60
- u("span", null, n(i.salesPrice), 1)
61
- ]),
62
- _: 2
63
- }, 1024),
64
- o(s, null, {
65
- default: t(() => [
66
- u("span", null, "数量:" + n(i.quantity), 1)
67
- ]),
68
- _: 2
69
- }, 1024)
70
- ]))), 128))
71
- ];
72
- }),
73
- _: 1
74
- }),
75
- o(R, { column: 4 }, {
76
- default: t(() => [
77
- o(s, null, {
78
- default: t(() => {
79
- var e;
80
- return [
81
- a(n(l.$t("orderRefunds.orderPrice")) + ": ", 1),
82
- u("span", null, n((e = r.value) == null ? void 0 : e.orderPrice), 1)
83
- ];
84
- }),
85
- _: 1
86
- }),
87
- o(s, null, {
88
- default: t(() => {
89
- var e;
90
- return [
91
- a(n(l.$t("orderRefunds.paidPrice")) + ": ", 1),
92
- u("span", null, n((e = r.value) == null ? void 0 : e.paidPrice), 1)
93
- ];
94
- }),
95
- _: 1
96
- }),
97
- o(s, null, {
98
- default: t(() => {
99
- var e;
100
- return [
101
- a(n(l.$t("orderRefunds.freightPrice")) + ": ", 1),
102
- u("span", null, n((e = r.value) == null ? void 0 : e.freightPrice), 1)
103
- ];
104
- }),
105
- _: 1
106
- }),
107
- o(s, null, {
108
- default: t(() => {
109
- var e;
110
- return [
111
- a(n(l.$t("orderRefunds.refundAmount")) + ": ", 1),
112
- u("span", null, n((e = y.value) == null ? void 0 : e.refundAmount), 1)
113
- ];
114
- }),
115
- _: 1
116
- }),
117
- o(s, { span: 4 }, {
118
- default: t(() => {
119
- var e;
120
- return [
121
- a(n(l.$t("orderRefunds.refundReson")) + ": ", 1),
122
- u("span", null, n((e = y.value) == null ? void 0 : e.refundReson), 1)
123
- ];
124
- }),
125
- _: 1
126
- })
127
- ]),
128
- _: 1
129
- }),
130
- d[3] || (d[3] = u("div", { class: "title-content" }, "退货信息", -1)),
131
- o(R, { column: 2 }, {
132
- default: t(() => [
133
- o(s, null, {
134
- default: t(() => {
135
- var e;
136
- return [
137
- a(n(l.$t("orderRefunds.userName")) + ": ", 1),
138
- u("span", null, n((e = r.value) == null ? void 0 : e.userName), 1)
139
- ];
140
- }),
141
- _: 1
142
- }),
143
- o(s, null, {
144
- default: t(() => {
145
- var e, p, i;
146
- return [
147
- a(n(l.$t("orderRefunds.mobilePhone")) + ": ", 1),
148
- c.value[0] ? (f(), m("span", z, n((p = r.value) == null ? void 0 : p.mobilePhone), 1)) : (f(), m("span", q, n((e = r.value) == null ? void 0 : e.mobilePhoneIns), 1)),
149
- (i = r.value) != null && i.mobilePhoneIns ? (f(), m("span", F, [
150
- h(o($, {
151
- "icon-class": "close-eye",
152
- onClick: d[0] || (d[0] = (g) => P(0))
153
- }, null, 512), [
154
- [k, !c.value[0]]
155
- ]),
156
- h(o($, {
157
- "icon-class": "eye-open",
158
- onClick: d[1] || (d[1] = (g) => P(0))
159
- }, null, 512), [
160
- [k, c.value[0]]
161
- ])
162
- ])) : L("", !0)
163
- ];
164
- }),
165
- _: 1
166
- }),
167
- o(s, null, {
168
- default: t(() => {
169
- var e;
170
- return [
171
- a(n(l.$t("orderRefunds.address")) + ": ", 1),
172
- u("span", null, n((e = r.value) == null ? void 0 : e.address), 1)
173
- ];
174
- }),
175
- _: 1
176
- })
177
- ]),
178
- _: 1
179
- })
180
- ]),
181
- _: 1
182
- });
183
- };
184
- }
185
- });
186
- export {
187
- J as _
188
- };
@@ -1,127 +0,0 @@
1
- import { defineComponent as y, ref as B, onMounted as C, watch as S, resolveComponent as i, openBlock as d, createBlock as f, withCtx as r, createVNode as c, createTextVNode as I, createElementBlock as b, Fragment as A, renderList as D, toDisplayString as E } from "vue";
2
- import { useUserStore as o, clearEmpty as n, request as s } from "jmash-core";
3
- class N {
4
- getKey(e) {
5
- return {
6
- logisticsId: e.logisticsId
7
- };
8
- }
9
- // 查询翻页信息订单物流
10
- findPage(e) {
11
- const t = o().user.tenant;
12
- return n(e), s({
13
- url: "/v1/order/order_logistics/page/" + t,
14
- method: "get",
15
- params: e
16
- });
17
- }
18
- // 查询列表信息订单物流
19
- findList(e) {
20
- const t = o().user.tenant;
21
- return n(e), s({
22
- url: "/v1/order/order_logistics/list/" + t,
23
- method: "get",
24
- params: e
25
- });
26
- }
27
- // 查询订单物流
28
- findById(e) {
29
- const t = o().user.tenant;
30
- return n(e), s({
31
- url: "/v1/order/order_logistics/id/" + t + "/" + e.logisticsId,
32
- method: "get"
33
- });
34
- }
35
- // 查询物流信息
36
- findLogistics(e) {
37
- const t = o().user.tenant;
38
- return n(e), s({
39
- url: "/v1/order/order_logistics/info/" + t,
40
- method: "get",
41
- params: e
42
- });
43
- }
44
- // 修改实体订单物流
45
- update(e) {
46
- return e.tenant = o().user.tenant, n(e), s({
47
- url: "/v1/order/order_logistics",
48
- method: "patch",
49
- data: e
50
- });
51
- }
52
- }
53
- const V = new N(), M = /* @__PURE__ */ y({
54
- __name: "viewLogist",
55
- props: {
56
- orderId: {
57
- type: String,
58
- default: () => ""
59
- },
60
- orderItemId: {
61
- type: String,
62
- default: () => ""
63
- }
64
- },
65
- emits: ["close"],
66
- setup(a, { emit: e }) {
67
- const t = a, m = B(), h = e;
68
- function v() {
69
- h("close");
70
- }
71
- function u() {
72
- V.findLogistics({
73
- orderId: t.orderId,
74
- orderItemId: t.orderItemId
75
- }).then(({ data: l }) => {
76
- console.log(l.list), m.value = l.list;
77
- });
78
- }
79
- return C(() => {
80
- u();
81
- }), S([() => t.orderId, () => t.orderItemId], u, {
82
- immediate: !0
83
- }), (l, p) => {
84
- const L = i("el-button"), w = i("el-timeline-item"), k = i("el-timeline"), _ = i("el-card");
85
- return d(), f(_, { shadow: "never" }, {
86
- header: r(() => [
87
- c(L, { onClick: v }, {
88
- default: r(() => p[0] || (p[0] = [
89
- I("关闭")
90
- ])),
91
- _: 1
92
- })
93
- ]),
94
- default: r(() => [
95
- c(_, {
96
- shadow: "never",
97
- class: "table-container"
98
- }, {
99
- default: r(() => [
100
- c(k, null, {
101
- default: r(() => [
102
- (d(!0), b(A, null, D(m.value, (g, x) => (d(), f(w, {
103
- key: x,
104
- timestamp: g.time,
105
- type: "primary",
106
- hollow: ""
107
- }, {
108
- default: r(() => [
109
- I(E(g.context), 1)
110
- ]),
111
- _: 2
112
- }, 1032, ["timestamp"]))), 128))
113
- ]),
114
- _: 1
115
- })
116
- ]),
117
- _: 1
118
- })
119
- ]),
120
- _: 1
121
- });
122
- };
123
- }
124
- });
125
- export {
126
- M as _
127
- };