xyvcard-order 0.0.9 → 0.0.11
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/{deliver-DZDmtbHY.mjs → deliver-CgSCkEMe.mjs} +1 -1
- package/dist/{deliver.vue_vue_type_script_setup_true_lang-DZ6WdO5i.mjs → deliver.vue_vue_type_script_setup_true_lang-DPhLC_oU.mjs} +7 -7
- package/dist/{index-BTfCAYQ-.mjs → index-CDXocrFr.mjs} +61 -54
- package/dist/{index-De4cg2k7.mjs → index-DaOMDld4.mjs} +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{info-DiPfhbtx.mjs → info-DXX50Xfh.mjs} +32 -32
- package/dist/{unpost-DE4VcTu2.mjs → unpost-Bj10_WvZ.mjs} +1 -1
- package/dist/{unpost.vue_vue_type_script_setup_true_lang-Xtrcqwsb.mjs → unpost.vue_vue_type_script_setup_true_lang-uEM6F7n_.mjs} +1 -1
- package/package.json +1 -1
@@ -1,11 +1,11 @@
|
|
1
|
-
import { defineComponent as P, mergeModels as
|
1
|
+
import { defineComponent as P, mergeModels as C, ref as b, reactive as T, useModel as U, resolveComponent as d, openBlock as f, createBlock as y, withCtx as o, createElementVNode as B, createVNode as t, createTextVNode as N, toDisplayString as h, unref as e, createCommentVNode as E } from "vue";
|
2
2
|
import { ElMessage as F } from "element-plus";
|
3
3
|
import { useI18n as K } from "vue-i18n";
|
4
4
|
import { D as Y, C as _ } from "./index-CHzhYqx8.mjs";
|
5
5
|
import { o as A } from "./index-CfEKTjAd.mjs";
|
6
6
|
const G = { class: "dialog-footer" }, W = /* @__PURE__ */ P({
|
7
7
|
__name: "deliver",
|
8
|
-
props: /* @__PURE__ */
|
8
|
+
props: /* @__PURE__ */ C({
|
9
9
|
entityKey: {
|
10
10
|
type: Object,
|
11
11
|
default: () => {
|
@@ -20,11 +20,11 @@ const G = { class: "dialog-footer" }, W = /* @__PURE__ */ P({
|
|
20
20
|
modelValue: { type: Boolean },
|
21
21
|
modelModifiers: {}
|
22
22
|
}),
|
23
|
-
emits: /* @__PURE__ */
|
23
|
+
emits: /* @__PURE__ */ C(["refresh"], ["update:modelValue"]),
|
24
24
|
setup(g, { emit: k }) {
|
25
25
|
const { t: i } = K(), I = b();
|
26
26
|
let l = T({
|
27
|
-
postType: ""
|
27
|
+
postType: "logistics_delivery"
|
28
28
|
});
|
29
29
|
const D = T({
|
30
30
|
postType: [
|
@@ -67,7 +67,7 @@ const G = { class: "dialog-footer" }, W = /* @__PURE__ */ P({
|
|
67
67
|
n.value && (n.value = !1);
|
68
68
|
}
|
69
69
|
return (s, r) => {
|
70
|
-
const m = d("jmash-enum-radio"), p = d("el-form-item"), c = d("el-col"), j = d("jmash-dict-select"), O = d("el-input"), $ = d("el-row"), w = d("el-form"),
|
70
|
+
const m = d("jmash-enum-radio"), p = d("el-form-item"), c = d("el-col"), j = d("jmash-dict-select"), O = d("el-input"), $ = d("el-row"), w = d("el-form"), v = d("el-button"), L = d("el-dialog");
|
71
71
|
return f(), y(L, {
|
72
72
|
modelValue: n.value,
|
73
73
|
"onUpdate:modelValue": r[3] || (r[3] = (a) => n.value = a),
|
@@ -75,13 +75,13 @@ const G = { class: "dialog-footer" }, W = /* @__PURE__ */ P({
|
|
75
75
|
}, {
|
76
76
|
footer: o(() => [
|
77
77
|
B("div", G, [
|
78
|
-
t(
|
78
|
+
t(v, { onClick: V }, {
|
79
79
|
default: o(() => [
|
80
80
|
N(h(s.$t("common.cancel")), 1)
|
81
81
|
]),
|
82
82
|
_: 1
|
83
83
|
}),
|
84
|
-
t(
|
84
|
+
t(v, {
|
85
85
|
type: "primary",
|
86
86
|
onClick: S
|
87
87
|
}, {
|
@@ -1,15 +1,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import { _ as
|
8
|
-
import {
|
9
|
-
|
1
|
+
import { defineComponent as oe, getCurrentInstance as re, ref as h, reactive as ne, onMounted as ae, resolveComponent as u, resolveDirective as de, openBlock as f, createElementBlock as k, createElementVNode as i, createVNode as o, withCtx as r, unref as n, withKeys as V, createTextVNode as T, toDisplayString as d, isRef as E, createBlock as S, createCommentVNode as C, withDirectives as ue } from "vue";
|
2
|
+
import { useRoute as se } from "vue-router";
|
3
|
+
import { ElMessageBox as ie, ElMessage as U } from "element-plus";
|
4
|
+
import { useTableHooks as me } from "jmash-core";
|
5
|
+
import { useI18n as pe } from "vue-i18n";
|
6
|
+
import { o as M } from "./index-DAb5kkOk.mjs";
|
7
|
+
import { _ as fe } from "./review.vue_vue_type_script_setup_true_lang-HjQowjbK.mjs";
|
8
|
+
import { _ as ce } from "./info.vue_vue_type_script_setup_true_lang-nH2_wV_f.mjs";
|
9
|
+
import { D as v, C as q } from "./index-CHzhYqx8.mjs";
|
10
|
+
const ve = { class: "app-container" }, ye = { class: "search-container" }, be = ["onClick"], Re = ["onClick"], he = ["onClick"], De = /* @__PURE__ */ oe({
|
10
11
|
__name: "index",
|
11
|
-
setup(
|
12
|
-
const { t: m } = se(), { proxy:
|
12
|
+
setup(Ce) {
|
13
|
+
const { t: m } = pe(), z = se(), { proxy: B } = re();
|
13
14
|
v.shopBizDict.useValues();
|
14
15
|
const _ = h([]), a = h({
|
15
16
|
curPage: 1,
|
@@ -17,11 +18,11 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
17
18
|
}), {
|
18
19
|
tableHooks: s,
|
19
20
|
multipleTableRef: j,
|
20
|
-
queryFormRef:
|
21
|
-
listLoading:
|
22
|
-
tableData:
|
21
|
+
queryFormRef: A,
|
22
|
+
listLoading: Q,
|
23
|
+
tableData: K,
|
23
24
|
total: w
|
24
|
-
} =
|
25
|
+
} = me(m, M, a);
|
25
26
|
let y = h([
|
26
27
|
{
|
27
28
|
label: "orderInfo.shopName",
|
@@ -95,12 +96,12 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
95
96
|
title: m("orderRefunds.info"),
|
96
97
|
visible: !1
|
97
98
|
});
|
98
|
-
let g =
|
99
|
-
function
|
99
|
+
let g = ne({});
|
100
|
+
function L(t) {
|
100
101
|
g.refundId = t.refundId, b.value.visible = !0;
|
101
102
|
}
|
102
|
-
const
|
103
|
-
|
103
|
+
const H = async (t) => {
|
104
|
+
ie.confirm(
|
104
105
|
m("orderRefunds.refundConfirm"),
|
105
106
|
m("orderRefunds.refund"),
|
106
107
|
{
|
@@ -109,7 +110,7 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
109
110
|
type: "warning"
|
110
111
|
}
|
111
112
|
).then(() => {
|
112
|
-
|
113
|
+
M.refund({
|
113
114
|
refundId: t.refundId,
|
114
115
|
requestId: Math.random() * 10 + ""
|
115
116
|
}).then((l) => {
|
@@ -126,28 +127,34 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
126
127
|
}).catch(() => {
|
127
128
|
});
|
128
129
|
};
|
129
|
-
function
|
130
|
+
function O(t) {
|
130
131
|
g.refundId = t.refundId, R.value.visible = !0;
|
131
132
|
}
|
132
|
-
function
|
133
|
+
function F(t) {
|
133
134
|
a.value.startCreateTime = t[0], a.value.endCreateTime = t[1];
|
134
135
|
}
|
135
|
-
function
|
136
|
+
function W() {
|
136
137
|
_.value = [], a.value.startCreateTime = "", a.value.endCreateTime = "", s.resetQuery();
|
137
138
|
}
|
138
|
-
function
|
139
|
+
function G(t) {
|
139
140
|
s.selectionRows.value = t;
|
140
141
|
}
|
141
142
|
function I(t) {
|
142
143
|
t && s.getList();
|
143
144
|
}
|
144
|
-
return
|
145
|
-
const
|
146
|
-
|
147
|
-
|
148
|
-
|
145
|
+
return ae(() => {
|
146
|
+
const t = z.query.refundStatus;
|
147
|
+
t && (a.value = {
|
148
|
+
...a.value,
|
149
|
+
refundStatus: t
|
150
|
+
});
|
151
|
+
}), s.getList(), (t, l) => {
|
152
|
+
const D = u("jmash-select"), c = u("el-form-item"), p = u("el-col"), N = u("el-input"), $ = u("el-row"), J = u("el-date-picker"), P = u("el-button"), X = u("el-form"), Z = u("jmash-column-select"), x = u("jmash-table"), ee = u("jmash-pagination"), le = u("el-card"), te = de("hasPerm");
|
153
|
+
return f(), k("div", ve, [
|
154
|
+
i("div", ye, [
|
155
|
+
o(X, {
|
149
156
|
ref_key: "queryFormRef",
|
150
|
-
ref:
|
157
|
+
ref: A,
|
151
158
|
model: a.value,
|
152
159
|
inline: !0
|
153
160
|
}, {
|
@@ -250,7 +257,7 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
250
257
|
prop: "startCreateTime"
|
251
258
|
}, {
|
252
259
|
default: r(() => [
|
253
|
-
o(
|
260
|
+
o(J, {
|
254
261
|
modelValue: _.value,
|
255
262
|
"onUpdate:modelValue": l[8] || (l[8] = (e) => _.value = e),
|
256
263
|
type: "daterange",
|
@@ -258,7 +265,7 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
258
265
|
"end-placeholder": t.$t("orderRefunds.endCreateTime"),
|
259
266
|
format: "YYYY-MM-DD",
|
260
267
|
"value-format": "YYYY-MM-DD",
|
261
|
-
onChange:
|
268
|
+
onChange: F
|
262
269
|
}, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
|
263
270
|
]),
|
264
271
|
_: 1
|
@@ -279,7 +286,7 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
279
286
|
]),
|
280
287
|
_: 1
|
281
288
|
}),
|
282
|
-
o(P, { onClick:
|
289
|
+
o(P, { onClick: W }, {
|
283
290
|
default: r(() => [
|
284
291
|
T(d(t.$t("common.reset")), 1)
|
285
292
|
]),
|
@@ -299,7 +306,7 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
299
306
|
}, 8, ["model"]),
|
300
307
|
l[17] || (l[17] = i("div", { class: "clear" }, null, -1))
|
301
308
|
]),
|
302
|
-
o(
|
309
|
+
o(le, {
|
303
310
|
shadow: "never",
|
304
311
|
class: "table-container"
|
305
312
|
}, {
|
@@ -312,7 +319,7 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
312
319
|
class: "container-float"
|
313
320
|
}, {
|
314
321
|
default: r(() => [
|
315
|
-
o(
|
322
|
+
o(Z, {
|
316
323
|
modelValue: n(y),
|
317
324
|
"onUpdate:modelValue": l[10] || (l[10] = (e) => E(y) ? y.value = e : y = e),
|
318
325
|
"label-name": "order/order-refunds"
|
@@ -325,7 +332,7 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
325
332
|
})
|
326
333
|
]),
|
327
334
|
footer: r(() => [
|
328
|
-
n(w) > 0 ? (f(), S(
|
335
|
+
n(w) > 0 ? (f(), S(ee, {
|
329
336
|
key: 0,
|
330
337
|
total: n(w),
|
331
338
|
"onUpdate:total": l[11] || (l[11] = (e) => E(w) ? w.value = e : null),
|
@@ -337,20 +344,20 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
337
344
|
}, null, 8, ["total", "current-page", "page-size"])) : C("", !0)
|
338
345
|
]),
|
339
346
|
default: r(() => [
|
340
|
-
o(
|
347
|
+
o(x, {
|
341
348
|
ref_key: "multipleTableRef",
|
342
349
|
ref: j,
|
343
350
|
"row-key": "refundId",
|
344
|
-
"list-loading": n(
|
345
|
-
data: n(
|
351
|
+
"list-loading": n(Q),
|
352
|
+
data: n(K),
|
346
353
|
"table-label": n(y),
|
347
|
-
onSelectionChange:
|
354
|
+
onSelectionChange: G
|
348
355
|
}, {
|
349
356
|
shopId: r((e) => [
|
350
357
|
i("span", null, d(n(v).shopBizDict.getValue(e.data.row.shopId)), 1)
|
351
358
|
]),
|
352
359
|
createTime: r((e) => [
|
353
|
-
i("span", null, d(n(
|
360
|
+
i("span", null, d(n(B).$moment.formatDate(
|
354
361
|
e.data.row.createTime,
|
355
362
|
"YYYY-MM-DD HH:mm:ss"
|
356
363
|
)), 1)
|
@@ -368,31 +375,31 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
368
375
|
i("span", null, d(n(v).refundApplyEnum.getEnumValue(e.data.row.status)), 1)
|
369
376
|
]),
|
370
377
|
operation: r((e) => [
|
371
|
-
|
378
|
+
ue((f(), k("span", {
|
372
379
|
class: "el-button-color",
|
373
|
-
onClick: (Y) =>
|
380
|
+
onClick: (Y) => O(e.data.row)
|
374
381
|
}, [
|
375
382
|
T(d(t.$t("common.view")), 1)
|
376
|
-
], 8,
|
377
|
-
[
|
383
|
+
], 8, be)), [
|
384
|
+
[te, ["order:order_refunds:view"]]
|
378
385
|
]),
|
379
|
-
e.data.row.status === n(
|
386
|
+
e.data.row.status === n(q).APPLY ? (f(), k("span", {
|
380
387
|
key: 0,
|
381
388
|
class: "el-button-color dropdown-left",
|
382
|
-
onClick: (Y) =>
|
383
|
-
}, d(t.$t("orderRefunds.refundReview")), 9,
|
384
|
-
e.data.row.status === n(
|
389
|
+
onClick: (Y) => L(e.data.row)
|
390
|
+
}, d(t.$t("orderRefunds.refundReview")), 9, Re)) : C("", !0),
|
391
|
+
e.data.row.status === n(q).PASS ? (f(), k("span", {
|
385
392
|
key: 1,
|
386
393
|
class: "el-button-color dropdown-left",
|
387
|
-
onClick: (Y) =>
|
388
|
-
}, d(t.$t("orderRefunds.refund")), 9,
|
394
|
+
onClick: (Y) => H(e.data.row)
|
395
|
+
}, d(t.$t("orderRefunds.refund")), 9, he)) : C("", !0)
|
389
396
|
]),
|
390
397
|
_: 1
|
391
398
|
}, 8, ["list-loading", "data", "table-label"])
|
392
399
|
]),
|
393
400
|
_: 1
|
394
401
|
}),
|
395
|
-
b.value.visible ? (f(), S(
|
402
|
+
b.value.visible ? (f(), S(fe, {
|
396
403
|
key: 0,
|
397
404
|
modelValue: b.value.visible,
|
398
405
|
"onUpdate:modelValue": l[15] || (l[15] = (e) => b.value.visible = e),
|
@@ -401,7 +408,7 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
401
408
|
onRefresh: I,
|
402
409
|
width: "800px"
|
403
410
|
}, null, 8, ["modelValue", "title", "entity-key"])) : C("", !0),
|
404
|
-
R.value.visible ? (f(), S(
|
411
|
+
R.value.visible ? (f(), S(ce, {
|
405
412
|
key: 1,
|
406
413
|
modelValue: R.value.visible,
|
407
414
|
"onUpdate:modelValue": l[16] || (l[16] = (e) => R.value.visible = e),
|
@@ -415,5 +422,5 @@ const pe = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
415
422
|
}
|
416
423
|
});
|
417
424
|
export {
|
418
|
-
|
425
|
+
De as default
|
419
426
|
};
|
@@ -4,14 +4,14 @@ import { ElMessageBox as ge, ElMessage as O } from "element-plus";
|
|
4
4
|
import { useTableHooks as ke } from "jmash-core";
|
5
5
|
import { useI18n as Ce } from "vue-i18n";
|
6
6
|
import { o as F } from "./index-CfEKTjAd.mjs";
|
7
|
-
import { _ as Ve } from "./deliver.vue_vue_type_script_setup_true_lang-
|
7
|
+
import { _ as Ve } from "./deliver.vue_vue_type_script_setup_true_lang-DPhLC_oU.mjs";
|
8
8
|
import { _ as he } from "./change.vue_vue_type_script_setup_true_lang-DLfb9HIp.mjs";
|
9
9
|
import { D as f, C as w } from "./index-CHzhYqx8.mjs";
|
10
10
|
import { _ as $e } from "./unpay.vue_vue_type_script_setup_true_lang-CsHqHywv.mjs";
|
11
11
|
import { _ as Ee } from "./unreceive.vue_vue_type_script_setup_true_lang-CgWgDNgs.mjs";
|
12
12
|
import { _ as Te } from "./completed.vue_vue_type_script_setup_true_lang-ysjYRoxQ.mjs";
|
13
13
|
import { _ as Pe } from "./canceled.vue_vue_type_script_setup_true_lang-lNPLjFzs.mjs";
|
14
|
-
import { _ as Ne } from "./unpost.vue_vue_type_script_setup_true_lang-
|
14
|
+
import { _ as Ne } from "./unpost.vue_vue_type_script_setup_true_lang-uEM6F7n_.mjs";
|
15
15
|
const De = { class: "app-container" }, Ue = { class: "search-container" }, Re = { class: "item-spuName" }, Me = { class: "item-salesPrice" }, qe = { class: "item-specInfo" }, Le = { class: "item-quantity" }, Ye = { class: "orderPrice" }, Ae = ["onClick"], We = ["onClick"], Qe = ["onClick"], lt = /* @__PURE__ */ ve({
|
16
16
|
__name: "index",
|
17
17
|
setup(ze) {
|
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-DXX50Xfh.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-
|
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-CgSCkEMe.mjs"), "./views/order/order-info/edit.vue": () => import("./edit-BgR1glUx.mjs"), "./views/order/order-info/index.vue": () => import("./index-DaOMDld4.mjs"), "./views/order/order-info/info.vue": () => import("./info-DXX50Xfh.mjs"), "./views/order/order-info/unpay.vue": () => import("./unpay-Bc8ekFnl.mjs"), "./views/order/order-info/unpost.vue": () => import("./unpost-Bj10_WvZ.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-CDXocrFr.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
|
-
import { _ as ie } from "./deliver.vue_vue_type_script_setup_true_lang-
|
7
|
+
import { _ as ie } from "./deliver.vue_vue_type_script_setup_true_lang-DPhLC_oU.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
|
};
|
@@ -3,7 +3,7 @@ import { useRouter as se } from "vue-router";
|
|
3
3
|
import { useTableHooks as ie } from "jmash-core";
|
4
4
|
import { useI18n as me } from "vue-i18n";
|
5
5
|
import { o as pe } from "./index-CfEKTjAd.mjs";
|
6
|
-
import { _ as fe } from "./deliver.vue_vue_type_script_setup_true_lang-
|
6
|
+
import { _ as fe } from "./deliver.vue_vue_type_script_setup_true_lang-DPhLC_oU.mjs";
|
7
7
|
import { D as m, C as w } from "./index-CHzhYqx8.mjs";
|
8
8
|
const ye = { class: "app-container" }, ve = { class: "search-container" }, Ie = { class: "item-spuName" }, be = { class: "item-salesPrice" }, we = { class: "item-specInfo" }, Se = { class: "item-quantity" }, ce = { class: "orderPrice" }, Ce = ["onClick"], ge = ["onClick"], Ne = /* @__PURE__ */ oe({
|
9
9
|
__name: "unpost",
|