xyvcard-order 0.0.6 → 0.0.8

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/{canceled-CAEulpM1.mjs → canceled-CTHGNWuB.mjs} +1 -1
  2. package/dist/{canceled.vue_vue_type_script_setup_true_lang-_j0h5aSP.mjs → canceled.vue_vue_type_script_setup_true_lang-lNPLjFzs.mjs} +88 -89
  3. package/dist/{change-CH-CF_q-.mjs → change-3TnGoLNv.mjs} +1 -1
  4. package/dist/{change.vue_vue_type_script_setup_true_lang-Bb1DH4GC.mjs → change.vue_vue_type_script_setup_true_lang-DLfb9HIp.mjs} +51 -47
  5. package/dist/{completed-B70yQ6oI.mjs → completed-BnD0Wh1K.mjs} +1 -1
  6. package/dist/{completed.vue_vue_type_script_setup_true_lang-D25evb6V.mjs → completed.vue_vue_type_script_setup_true_lang-ysjYRoxQ.mjs} +75 -76
  7. package/dist/{deliver-Bp2Ckw4g.mjs → deliver-DZDmtbHY.mjs} +1 -1
  8. package/dist/{deliver.vue_vue_type_script_setup_true_lang-DjvQSQPG.mjs → deliver.vue_vue_type_script_setup_true_lang-DZ6WdO5i.mjs} +58 -59
  9. package/dist/{edit-DyFqRxsE.mjs → edit-BgR1glUx.mjs} +1 -1
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-YwJOnNI_.mjs → edit.vue_vue_type_script_setup_true_lang-DJFJg9lJ.mjs} +7 -7
  11. package/dist/index-BTfCAYQ-.mjs +419 -0
  12. package/dist/index-CHzhYqx8.mjs +114 -0
  13. package/dist/{index-B3HKfAop.mjs → index-CaKojOfx.mjs} +237 -250
  14. package/dist/{index-DyFAVz8t.mjs → index-CfEKTjAd.mjs} +1 -1
  15. package/dist/{index-BnhfSp6U.mjs → index-DAb5kkOk.mjs} +3 -23
  16. package/dist/{index-DHJFncJ6.mjs → index-S4jzuvn6.mjs} +154 -157
  17. package/dist/index.mjs +12 -117
  18. package/dist/{info-BmqDpsnn.mjs → info-3uYTUNzE.mjs} +1 -1
  19. package/dist/info-DiPfhbtx.mjs +328 -0
  20. package/dist/info.vue_vue_type_script_setup_true_lang-nH2_wV_f.mjs +178 -0
  21. package/dist/{review-Dr4_ycsb.mjs → review-DY1KQI3U.mjs} +1 -1
  22. package/dist/{review.vue_vue_type_script_setup_true_lang-BER9b6r2.mjs → review.vue_vue_type_script_setup_true_lang-HjQowjbK.mjs} +91 -90
  23. package/dist/style.css +1 -1
  24. package/dist/{unpay-WAsbEXlr.mjs → unpay-Bc8ekFnl.mjs} +1 -1
  25. package/dist/{unpay.vue_vue_type_script_setup_true_lang-Dj_Sq17m.mjs → unpay.vue_vue_type_script_setup_true_lang-CsHqHywv.mjs} +203 -216
  26. package/dist/{unpost-BocJwYcE.mjs → unpost-DE4VcTu2.mjs} +1 -1
  27. package/dist/{unpost.vue_vue_type_script_setup_true_lang-BzlBIdWF.mjs → unpost.vue_vue_type_script_setup_true_lang-Xtrcqwsb.mjs} +99 -100
  28. package/dist/{unreceive-BLcvdJxY.mjs → unreceive-CUiJvXq1.mjs} +1 -1
  29. package/dist/{unreceive.vue_vue_type_script_setup_true_lang-IoS_bKwk.mjs → unreceive.vue_vue_type_script_setup_true_lang-CgWgDNgs.mjs} +76 -77
  30. package/dist/{viewLogist-D9-zqepw.mjs → viewLogist-Cxu-IV-d.mjs} +1 -1
  31. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-jqRN__Ne.mjs +91 -0
  32. package/dts/src/api/dict.d.ts +3 -0
  33. package/dts/src/api/index.d.ts +2 -1
  34. package/dts/src/api/order-appraises/types.d.ts +1 -0
  35. package/dts/src/api/order-info/types.d.ts +2 -1
  36. package/dts/src/api/order-logistics/index.d.ts +1 -5
  37. package/dts/src/api/order-logistics/types.d.ts +3 -62
  38. package/dts/src/api/order-refunds/index.d.ts +0 -2
  39. package/dts/src/constant.d.ts +12 -10
  40. package/dts/src/lang/order/zh-cn.d.ts +2 -2
  41. package/dts/src/main.d.ts +0 -1
  42. package/package.json +5 -4
  43. package/dist/index-BGDa_EK1.mjs +0 -439
  44. package/dist/index-suIgymdy.mjs +0 -93
  45. package/dist/index.vue_vue_type_script_setup_true_lang-RpiqLerK.mjs +0 -41
  46. package/dist/info-Ba-BgJkw.mjs +0 -368
  47. package/dist/info.vue_vue_type_script_setup_true_lang-CHaAOFGr.mjs +0 -188
  48. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-D8KlJgG0.mjs +0 -127
@@ -1,93 +0,0 @@
1
- var U = Object.defineProperty;
2
- var d = (E, r, s) => r in E ? U(E, r, { enumerable: !0, configurable: !0, writable: !0, value: s }) : E[r] = s;
3
- var t = (E, r, s) => d(E, typeof r != "symbol" ? r + "" : r, s);
4
- import { BizDict as y, EnumDict as i, CustomBizDict as c } from "jmash-core";
5
- import { ref as p } from "vue";
6
- import { infoApi as T } from "xyvcard-shop";
7
- import { EntryDict as S } from "jmash-dict";
8
- class o extends y {
9
- // 实现 useValues 方法
10
- useValues() {
11
- return new Promise((r, s) => {
12
- T.findList().then(({ data: _ }) => {
13
- const R = _.results;
14
- this.values.length = 0, this.values.push(
15
- ...R.map(
16
- (u) => ({
17
- key: u.shopId,
18
- value: u.shopName
19
- })
20
- )
21
- ), r(this.values);
22
- }).catch(s);
23
- });
24
- }
25
- }
26
- class e {
27
- }
28
- // 模块
29
- t(e, "MODULE_ORDER", "order"), // 评价状态
30
- t(e, "APPRAISES_STATUS", p([
31
- { key: !0, value: "已评价" },
32
- { key: !1, value: "未评价" }
33
- ])), // 订单状态
34
- t(e, "ENUM_ORDER_STATUS", "xyvcard.order.protobuf.OrderStatus"), // 支付状态
35
- t(e, "ENUM_PAYMENT_STATUS", "xyvcard.order.protobuf.PaymentStatus"), // 支付方式
36
- t(e, "ENUM_PAYMENT_WAY", "xyvcard.order.protobuf.PaymentWay"), // 配送方式
37
- t(e, "ENUM_DELIVERY_WAY", "xyvcard.order.protobuf.DeliveryWay"), // 发货类型
38
- t(e, "ENUM_POST_TYPE", "xyvcard.order.protobuf.PostType"), // 发货类型常量
39
- t(e, "logisticsDelivery", "logistics_delivery"), // 物流公司
40
- t(e, "EXPRESS_COMPANY_CODE", "ExpressCompanyCode"), // 订单状态常量
41
- t(e, "unpay", "unpay"), t(e, "unpost", "unpost"), t(e, "unreceive", "unreceive"), t(e, "cancel", "cancel"), t(e, "complete", "complete"), // 支付状态常量
42
- t(e, "unpaid", "unpaid"), t(e, "paid", "paid"), t(e, "partPaid", "part_paid"), // 退款状态y
43
- t(e, "REFUND_APPLY_STATUS", "xyvcard.order.protobuf.RefundApplyStatus"), // 退款类型
44
- t(e, "ENUM_REFUND_TYPE", "xyvcard.order.protobuf.RefundType"), // 退货退款常量
45
- t(e, "returnRefund", "RETURN_REFUND"), // 审核意见
46
- t(e, "AUDIT_OPINION", p([
47
- { key: !0, value: "同意" },
48
- { key: !1, value: "不同意" }
49
- ]));
50
- class a {
51
- }
52
- // 所属店铺
53
- t(a, "shopBizDict", new o({})), // 订单状态
54
- t(a, "orderStatusEnum", new i(
55
- e.MODULE_ORDER,
56
- e.ENUM_ORDER_STATUS
57
- )), // 支付状态
58
- t(a, "paymentStatusEnum", new i(
59
- e.MODULE_ORDER,
60
- e.ENUM_PAYMENT_STATUS
61
- )), // 评价状态
62
- t(a, "appraisesStatus", new c(
63
- e.APPRAISES_STATUS,
64
- {}
65
- )), // 支付方式
66
- t(a, "paymentWayEnum", new i(
67
- e.MODULE_ORDER,
68
- e.ENUM_PAYMENT_WAY
69
- )), // 配送方式
70
- t(a, "deliveryWayEnum", new i(
71
- e.MODULE_ORDER,
72
- e.ENUM_DELIVERY_WAY
73
- )), // 发货类型
74
- t(a, "postTypeEnum", new i(
75
- e.MODULE_ORDER,
76
- e.ENUM_POST_TYPE
77
- )), // 物流公司
78
- t(a, "volunteerTypeDict", new S(
79
- e.EXPRESS_COMPANY_CODE
80
- )), // 退款状态
81
- t(a, "refundApplyEnum", new i(
82
- e.MODULE_ORDER,
83
- e.REFUND_APPLY_STATUS
84
- )), // 退款类型
85
- t(a, "refundTypeEnum", new i(
86
- e.MODULE_ORDER,
87
- e.ENUM_REFUND_TYPE
88
- )), // 审核意见
89
- t(a, "auditOpinion", new c(e.AUDIT_OPINION, {}));
90
- export {
91
- e as C,
92
- a as D
93
- };
@@ -1,41 +0,0 @@
1
- import { defineComponent as s, mergeModels as c, useModel as i, resolveComponent as n, openBlock as o, createBlock as r, withCtx as u, createElementBlock as _, Fragment as f, renderList as V, unref as g, createTextVNode as k, toDisplayString as v } from "vue";
2
- const C = /* @__PURE__ */ s({
3
- __name: "index",
4
- props: /* @__PURE__ */ c({
5
- data: {
6
- type: Object,
7
- default: function() {
8
- }
9
- }
10
- }, {
11
- modelValue: { type: [String, Boolean] },
12
- modelModifiers: {}
13
- }),
14
- emits: ["update:modelValue"],
15
- setup(t) {
16
- const l = i(t, "modelValue"), d = t.data;
17
- return (x, a) => {
18
- const m = n("el-radio"), p = n("el-radio-group");
19
- return o(), r(p, {
20
- modelValue: l.value,
21
- "onUpdate:modelValue": a[0] || (a[0] = (e) => l.value = e)
22
- }, {
23
- default: u(() => [
24
- (o(!0), _(f, null, V(g(d), (e) => (o(), r(m, {
25
- key: e.key,
26
- value: e.key
27
- }, {
28
- default: u(() => [
29
- k(v(e.value), 1)
30
- ]),
31
- _: 2
32
- }, 1032, ["value"]))), 128))
33
- ]),
34
- _: 1
35
- }, 8, ["modelValue"]);
36
- };
37
- }
38
- });
39
- export {
40
- C as _
41
- };
@@ -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-BnhfSp6U.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
- };