xyvcard-order 0.0.9 → 0.0.10
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.
package/dist/index.mjs
CHANGED
@@ -2582,7 +2582,7 @@ const Ti = {
|
|
2582
2582
|
}
|
2583
2583
|
};
|
2584
2584
|
}
|
2585
|
-
}, bi = () => import("./info-
|
2585
|
+
}, bi = () => import("./info-Rh1e8h1X.mjs"), xi = [
|
2586
2586
|
{
|
2587
2587
|
path: "/raworder",
|
2588
2588
|
component: Sr,
|
@@ -2738,7 +2738,7 @@ function Ni(e) {
|
|
2738
2738
|
let r = e.global.getLocaleMessage("en");
|
2739
2739
|
r = Dt(r, Ri), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", r);
|
2740
2740
|
}
|
2741
|
-
const Wi = /* @__PURE__ */ Object.assign({ "./views/order/order-appraises/index.vue": () => import("./index-S4jzuvn6.mjs"), "./views/order/order-appraises/reply.vue": () => import("./reply-9iq8g6ah.mjs"), "./views/order/order-info/canceled.vue": () => import("./canceled-CTHGNWuB.mjs"), "./views/order/order-info/change.vue": () => import("./change-3TnGoLNv.mjs"), "./views/order/order-info/completed.vue": () => import("./completed-BnD0Wh1K.mjs"), "./views/order/order-info/deliver.vue": () => import("./deliver-DZDmtbHY.mjs"), "./views/order/order-info/edit.vue": () => import("./edit-BgR1glUx.mjs"), "./views/order/order-info/index.vue": () => import("./index-De4cg2k7.mjs"), "./views/order/order-info/info.vue": () => import("./info-
|
2741
|
+
const Wi = /* @__PURE__ */ Object.assign({ "./views/order/order-appraises/index.vue": () => import("./index-S4jzuvn6.mjs"), "./views/order/order-appraises/reply.vue": () => import("./reply-9iq8g6ah.mjs"), "./views/order/order-info/canceled.vue": () => import("./canceled-CTHGNWuB.mjs"), "./views/order/order-info/change.vue": () => import("./change-3TnGoLNv.mjs"), "./views/order/order-info/completed.vue": () => import("./completed-BnD0Wh1K.mjs"), "./views/order/order-info/deliver.vue": () => import("./deliver-DZDmtbHY.mjs"), "./views/order/order-info/edit.vue": () => import("./edit-BgR1glUx.mjs"), "./views/order/order-info/index.vue": () => import("./index-De4cg2k7.mjs"), "./views/order/order-info/info.vue": () => import("./info-Rh1e8h1X.mjs"), "./views/order/order-info/unpay.vue": () => import("./unpay-Bc8ekFnl.mjs"), "./views/order/order-info/unpost.vue": () => import("./unpost-DE4VcTu2.mjs"), "./views/order/order-info/unreceive.vue": () => import("./unreceive-CUiJvXq1.mjs"), "./views/order/order-info/viewLogist.vue": () => import("./viewLogist-Cxu-IV-d.mjs"), "./views/order/order-refunds/index.vue": () => import("./index-BTfCAYQ-.mjs"), "./views/order/order-refunds/info.vue": () => import("./info-3uYTUNzE.mjs"), "./views/order/order-refunds/review.vue": () => import("./review-DY1KQI3U.mjs") }), Ci = {
|
2742
2742
|
install(e) {
|
2743
2743
|
Mr(Wi, 7), Ni(Yr), e.use(Ti), Dr(xi);
|
2744
2744
|
}
|
@@ -1,16 +1,16 @@
|
|
1
|
-
import { defineComponent as X, getCurrentInstance as Z, ref as u, reactive as
|
1
|
+
import { defineComponent as X, getCurrentInstance as Z, ref as u, reactive as R, onMounted as x, computed as ee, resolveComponent as f, resolveDirective as te, openBlock as m, createElementBlock as I, createVNode as o, withCtx as i, createTextVNode as b, toDisplayString as l, createElementVNode as a, unref as n, createCommentVNode as p, withDirectives as S, createBlock as D } from "vue";
|
2
2
|
import { useRouter as le, useRoute as oe } from "vue-router";
|
3
3
|
import { fileApi as $, routerUtil as re } from "jmash-core";
|
4
|
-
import { D as s, C as
|
4
|
+
import { D as s, C as P } from "./index-CHzhYqx8.mjs";
|
5
5
|
import { o as ne } from "./index-CfEKTjAd.mjs";
|
6
6
|
import { _ as ae } from "./edit.vue_vue_type_script_setup_true_lang-DJFJg9lJ.mjs";
|
7
7
|
import { _ as ie } from "./deliver.vue_vue_type_script_setup_true_lang-DZ6WdO5i.mjs";
|
8
8
|
import { _ as de } from "./viewLogist.vue_vue_type_script_setup_true_lang-jqRN__Ne.mjs";
|
9
9
|
import { useI18n as se } from "vue-i18n";
|
10
|
-
const ue = { class: "app-container" }, me = { class: "shopName" }, pe = { key: 0 }, fe = ["onClick"], ce = ["onClick"], ve = ["onClick"],
|
10
|
+
const ue = { class: "app-container" }, me = { class: "shopName" }, pe = { key: 0 }, fe = ["onClick"], ce = ["onClick"], ve = ["onClick"], Ee = /* @__PURE__ */ X({
|
11
11
|
__name: "info",
|
12
12
|
setup(Ie) {
|
13
|
-
const { t: N } = se(),
|
13
|
+
const { t: N } = se(), q = le(), U = oe(), { proxy: Y } = Z(), g = u([!1]), M = u(), y = u(), k = u(!1), w = u(""), T = u("");
|
14
14
|
s.shopBizDict.useValues(), s.phoneModelDict.useValues();
|
15
15
|
const c = u({
|
16
16
|
title: N("orderInfo.update"),
|
@@ -19,53 +19,53 @@ const ue = { class: "app-container" }, me = { class: "shopName" }, pe = { key: 0
|
|
19
19
|
title: N("orderInfo.deliver"),
|
20
20
|
visible: !1
|
21
21
|
});
|
22
|
-
let h =
|
22
|
+
let h = R({}), B = R({});
|
23
23
|
function A(e) {
|
24
24
|
h.orderId = e.orderId, c.value.visible = !0;
|
25
25
|
}
|
26
26
|
function j(e) {
|
27
|
-
|
27
|
+
B.itemId = e.itemId, h.orderId = e.orderId, v.value.visible = !0;
|
28
28
|
}
|
29
29
|
function z(e) {
|
30
30
|
g.value[e] = !g.value[e];
|
31
31
|
}
|
32
32
|
function H() {
|
33
|
-
re.closeTagView(U.fullPath,
|
33
|
+
re.closeTagView(U.fullPath, q, !1);
|
34
34
|
}
|
35
35
|
function W(e) {
|
36
|
-
e &&
|
36
|
+
e && L();
|
37
37
|
}
|
38
|
-
function
|
38
|
+
function L() {
|
39
39
|
ne.findById({ orderId: U.query.orderId }).then(({ data: e }) => {
|
40
|
-
y.value = [e],
|
40
|
+
y.value = [e], M.value = e.shopId;
|
41
41
|
});
|
42
42
|
}
|
43
43
|
x(() => {
|
44
|
-
|
44
|
+
L();
|
45
45
|
});
|
46
46
|
const K = ee(
|
47
47
|
() => (y.value || []).flatMap(
|
48
48
|
(e) => {
|
49
49
|
var d;
|
50
|
-
return (((d = e == null ? void 0 : e.orderItemList) == null ? void 0 : d.results) || []).map((
|
50
|
+
return (((d = e == null ? void 0 : e.orderItemList) == null ? void 0 : d.results) || []).map((C) => ({
|
51
51
|
orderStatus: e.orderStatus,
|
52
|
-
...
|
52
|
+
...C
|
53
53
|
}));
|
54
54
|
}
|
55
55
|
)
|
56
56
|
);
|
57
57
|
function Q(e) {
|
58
|
-
|
58
|
+
w.value = e.orderId, T.value = e.itemId, k.value = !0;
|
59
59
|
}
|
60
60
|
function F() {
|
61
|
-
|
61
|
+
k.value = !1;
|
62
62
|
}
|
63
63
|
return (e, d) => {
|
64
|
-
const
|
64
|
+
const C = f("el-button"), r = f("el-table-column"), V = f("el-table"), O = f("el-image"), G = f("jmash-mobileIns-component"), J = f("el-card"), E = te("hasPerm");
|
65
65
|
return m(), I("div", ue, [
|
66
66
|
o(J, { shadow: "never" }, {
|
67
67
|
header: i(() => [
|
68
|
-
o(
|
68
|
+
o(C, {
|
69
69
|
type: "primary",
|
70
70
|
onClick: H
|
71
71
|
}, {
|
@@ -77,7 +77,7 @@ const ue = { class: "app-container" }, me = { class: "shopName" }, pe = { key: 0
|
|
77
77
|
]),
|
78
78
|
default: i(() => [
|
79
79
|
d[3] || (d[3] = a("div", { class: "title-content" }, "基本信息", -1)),
|
80
|
-
a("div", me, l(e.$t("orderInfo.shopName")) + ":" + l(n(s).shopBizDict.getValue(
|
80
|
+
a("div", me, l(e.$t("orderInfo.shopName")) + ":" + l(n(s).shopBizDict.getValue(M.value)), 1),
|
81
81
|
o(V, {
|
82
82
|
data: y.value,
|
83
83
|
border: ""
|
@@ -143,7 +143,7 @@ const ue = { class: "app-container" }, me = { class: "shopName" }, pe = { key: 0
|
|
143
143
|
width: "120"
|
144
144
|
}, {
|
145
145
|
default: i(({ row: t }) => [
|
146
|
-
o(
|
146
|
+
o(O, {
|
147
147
|
src: n($).imageUrl(t.picUrl, 80, 80),
|
148
148
|
"preview-src-list": [n($).imageUrl(t.picUrl)],
|
149
149
|
"preview-teleported": "",
|
@@ -199,7 +199,7 @@ const ue = { class: "app-container" }, me = { class: "shopName" }, pe = { key: 0
|
|
199
199
|
default: i(({ row: t }) => [
|
200
200
|
a("div", null, l(n(s).phoneModelDict.getValue(t.customInfo.split(",")[0])), 1),
|
201
201
|
t.customInfo ? (m(), I("div", pe, [
|
202
|
-
o(
|
202
|
+
o(O, {
|
203
203
|
src: n($).imageUrl(t.customInfo.split(",")[1], 50, 50),
|
204
204
|
"preview-src-list": [
|
205
205
|
n($).imageUrl(t.customInfo.split(",")[1])
|
@@ -218,23 +218,23 @@ const ue = { class: "app-container" }, me = { class: "shopName" }, pe = { key: 0
|
|
218
218
|
width: "200"
|
219
219
|
}, {
|
220
220
|
default: i(({ row: t }) => [
|
221
|
-
t.orderStatus === n(
|
221
|
+
t.orderStatus === n(P).UNPOST ? S((m(), I("span", {
|
222
222
|
key: 0,
|
223
223
|
class: "el-button-color",
|
224
224
|
onClick: (_) => j(t)
|
225
225
|
}, [
|
226
226
|
b(l(e.$t("orderInfo.deliver")), 1)
|
227
227
|
], 8, fe)), [
|
228
|
-
[
|
228
|
+
[E, ["order:order_info:delivery"]]
|
229
229
|
]) : p("", !0),
|
230
|
-
t.orderStatus === n(
|
230
|
+
t.orderStatus === n(P).UNRECEIVE || t.orderStatus === n(P).COMPLETE ? S((m(), I("span", {
|
231
231
|
key: 1,
|
232
232
|
class: "el-button-color",
|
233
233
|
onClick: (_) => Q(t)
|
234
234
|
}, [
|
235
235
|
b(l(e.$t("orderInfo.viewLogist")), 1)
|
236
236
|
], 8, ce)), [
|
237
|
-
[
|
237
|
+
[E, ["order:order_logistics:list"]]
|
238
238
|
]) : p("", !0)
|
239
239
|
]),
|
240
240
|
_: 1
|
@@ -276,14 +276,14 @@ const ue = { class: "app-container" }, me = { class: "shopName" }, pe = { key: 0
|
|
276
276
|
width: "200"
|
277
277
|
}, {
|
278
278
|
default: i(({ row: t }) => [
|
279
|
-
t.orderStatus === n(
|
279
|
+
t.orderStatus === n(P).UNPOST ? S((m(), I("span", {
|
280
280
|
key: 0,
|
281
281
|
class: "el-button-color",
|
282
282
|
onClick: (_) => A(t)
|
283
283
|
}, [
|
284
284
|
b(l(e.$t("orderInfo.update")), 1)
|
285
285
|
], 8, ve)), [
|
286
|
-
[
|
286
|
+
[E, ["order:order_info:update"]]
|
287
287
|
]) : p("", !0)
|
288
288
|
]),
|
289
289
|
_: 1
|
@@ -309,14 +309,14 @@ const ue = { class: "app-container" }, me = { class: "shopName" }, pe = { key: 0
|
|
309
309
|
"onUpdate:modelValue": d[2] || (d[2] = (t) => v.value.visible = t),
|
310
310
|
title: v.value.title,
|
311
311
|
"entity-key": n(h),
|
312
|
-
"entity-model": n(
|
312
|
+
"entity-model": n(B),
|
313
313
|
onRefresh: W,
|
314
314
|
width: "500px"
|
315
315
|
}, null, 8, ["modelValue", "title", "entity-key", "entity-model"])) : p("", !0),
|
316
|
-
|
316
|
+
k.value ? (m(), D(de, {
|
317
317
|
key: 2,
|
318
|
-
orderId:
|
319
|
-
orderItemId:
|
318
|
+
orderId: w.value,
|
319
|
+
orderItemId: T.value,
|
320
320
|
onClose: F
|
321
321
|
}, null, 8, ["orderId", "orderItemId"])) : p("", !0)
|
322
322
|
]);
|
@@ -324,5 +324,5 @@ const ue = { class: "app-container" }, me = { class: "shopName" }, pe = { key: 0
|
|
324
324
|
}
|
325
325
|
});
|
326
326
|
export {
|
327
|
-
|
327
|
+
Ee as default
|
328
328
|
};
|