xyvcard-order 0.0.12 → 0.0.14
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/{change-3TnGoLNv.mjs → change-DGamLhRi.mjs} +1 -1
- package/dist/change.vue_vue_type_script_setup_true_lang-C8lf4PIw.mjs +170 -0
- package/dist/{deliver-CgSCkEMe.mjs → deliver-c_zzsilY.mjs} +1 -1
- package/dist/{deliver.vue_vue_type_script_setup_true_lang-DPhLC_oU.mjs → deliver.vue_vue_type_script_setup_true_lang-DAoCkmOi.mjs} +35 -35
- package/dist/{edit-BgR1glUx.mjs → edit-mVQUFq0q.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DJFJg9lJ.mjs → edit.vue_vue_type_script_setup_true_lang-AHBcvcRn.mjs} +31 -31
- package/dist/{index-BLTeDGPq.mjs → index-BlR9fPfK.mjs} +127 -131
- package/dist/index-CxzT_Hk2.mjs +62 -0
- package/dist/index-D3YsBDBM.mjs +373 -0
- package/dist/index-IiHp9Y40.mjs +1475 -0
- package/dist/index.mjs +263 -258
- package/dist/info-BgzKwnii.mjs +328 -0
- package/dist/{info-3uYTUNzE.mjs → info-BpYW4SHu.mjs} +1 -1
- package/dist/info.vue_vue_type_script_setup_true_lang-BioQaXDt.mjs +177 -0
- package/dist/orderList-CNj8AcQQ.mjs +4 -0
- package/dist/orderList.vue_vue_type_script_setup_true_lang-C0EyjiIS.mjs +609 -0
- package/dist/{reply-9iq8g6ah.mjs → reply-BWKE7lzJ.mjs} +1 -1
- package/dist/{reply.vue_vue_type_script_setup_true_lang-BJSf7a8S.mjs → reply.vue_vue_type_script_setup_true_lang-AnsyNIM8.mjs} +15 -13
- package/dist/{review-DY1KQI3U.mjs → review-DH5466Un.mjs} +1 -1
- package/dist/{review.vue_vue_type_script_setup_true_lang-HjQowjbK.mjs → review.vue_vue_type_script_setup_true_lang-C5Fb8wnP.mjs} +81 -77
- package/dist/style.css +1 -1
- package/dist/{viewLogist-Cxu-IV-d.mjs → viewLogist-CHiDaaZx.mjs} +1 -1
- package/dist/viewLogist.vue_vue_type_script_setup_true_lang-CkSqEuA1.mjs +93 -0
- package/dts/src/api/dict.d.ts +0 -6
- package/dts/src/api/order-appraises/types.d.ts +3 -3
- package/dts/src/api/order-info/types.d.ts +8 -1
- package/dts/src/api/order-logistics/types.d.ts +2 -0
- package/dts/src/api/order-refunds/types.d.ts +3 -0
- package/dts/src/lang/order/zh-cn.d.ts +6 -1
- package/dts/src/router/orderRouter.d.ts +0 -1
- package/dts/src/views/order/order-info/change.vue.d.ts +1 -10
- package/dts/src/{components/EnumRadio/index.vue.d.ts → views/order/order-info/orderList.vue.d.ts} +7 -11
- package/dts/src/views/order/order-info/viewLogist.vue.d.ts +1 -1
- package/package.json +6 -9
- package/dist/canceled-CTHGNWuB.mjs +0 -4
- package/dist/canceled.vue_vue_type_script_setup_true_lang-lNPLjFzs.mjs +0 -507
- package/dist/change.vue_vue_type_script_setup_true_lang-DLfb9HIp.mjs +0 -190
- package/dist/completed-BnD0Wh1K.mjs +0 -4
- package/dist/completed.vue_vue_type_script_setup_true_lang-ysjYRoxQ.mjs +0 -507
- package/dist/index-CfEKTjAd.mjs +0 -1361
- package/dist/index-DaOMDld4.mjs +0 -668
- package/dist/index-S4jzuvn6.mjs +0 -375
- package/dist/info-DXX50Xfh.mjs +0 -328
- package/dist/info.vue_vue_type_script_setup_true_lang-nH2_wV_f.mjs +0 -178
- package/dist/unpay-Bc8ekFnl.mjs +0 -4
- package/dist/unpay.vue_vue_type_script_setup_true_lang-CsHqHywv.mjs +0 -557
- package/dist/unpost-Bj10_WvZ.mjs +0 -4
- package/dist/unpost.vue_vue_type_script_setup_true_lang-uEM6F7n_.mjs +0 -538
- package/dist/unreceive-CUiJvXq1.mjs +0 -4
- package/dist/unreceive.vue_vue_type_script_setup_true_lang-CgWgDNgs.mjs +0 -507
- package/dist/viewLogist.vue_vue_type_script_setup_true_lang-jqRN__Ne.mjs +0 -91
- package/dts/src/views/order/order-info/canceled.vue.d.ts +0 -2
- package/dts/src/views/order/order-info/completed.vue.d.ts +0 -2
- package/dts/src/views/order/order-info/unpay.vue.d.ts +0 -2
- package/dts/src/views/order/order-info/unpost.vue.d.ts +0 -2
- package/dts/src/views/order/order-info/unreceive.vue.d.ts +0 -2
- package/dist/{index-CHzhYqx8.mjs → index-CIvF2jlB.mjs} +1 -1
@@ -1,33 +1,33 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useRoute as
|
3
|
-
import { ElMessageBox as
|
4
|
-
import { useTableHooks as
|
5
|
-
import { useI18n as
|
1
|
+
import { defineComponent as le, getCurrentInstance as oe, ref as h, reactive as re, onMounted as ne, watch as ae, resolveComponent as s, resolveDirective as de, createElementBlock as k, openBlock as p, createElementVNode as i, createVNode as o, createBlock as S, createCommentVNode as C, withCtx as r, withKeys as _, unref as a, createTextVNode as T, toDisplayString as d, withDirectives as ue, isRef as U } from "vue";
|
2
|
+
import { useRoute as se } from "vue-router";
|
3
|
+
import { ElMessageBox as ie, ElMessage as q } from "element-plus";
|
4
|
+
import { useTableHooks as me } from "jmash-core";
|
5
|
+
import { useI18n as fe } from "vue-i18n";
|
6
6
|
import { o as M } from "./index-DAb5kkOk.mjs";
|
7
|
-
import { _ as
|
8
|
-
import { _ as ve } from "./info.vue_vue_type_script_setup_true_lang-
|
9
|
-
import { D as
|
10
|
-
const
|
7
|
+
import { _ as pe } from "./review.vue_vue_type_script_setup_true_lang-C5Fb8wnP.mjs";
|
8
|
+
import { _ as ve } from "./info.vue_vue_type_script_setup_true_lang-BioQaXDt.mjs";
|
9
|
+
import { D as c, C as z } from "./index-CIvF2jlB.mjs";
|
10
|
+
const ce = { class: "app-container" }, ye = { class: "search-container" }, be = ["onClick"], Re = ["onClick"], he = ["onClick"], De = /* @__PURE__ */ le({
|
11
11
|
__name: "index",
|
12
|
-
setup(
|
13
|
-
const { t: m } =
|
14
|
-
|
12
|
+
setup(Ce) {
|
13
|
+
const { t: m } = fe(), I = se(), { proxy: B } = oe();
|
14
|
+
c.shopBizDict.useValues();
|
15
15
|
const $ = h([]), n = h({
|
16
16
|
curPage: 1,
|
17
17
|
pageSize: 10
|
18
18
|
}), {
|
19
|
-
tableHooks:
|
19
|
+
tableHooks: u,
|
20
20
|
multipleTableRef: Q,
|
21
21
|
queryFormRef: j,
|
22
22
|
listLoading: A,
|
23
23
|
tableData: K,
|
24
|
-
total:
|
25
|
-
} =
|
24
|
+
total: g
|
25
|
+
} = me(m, M, n);
|
26
26
|
let y = h([
|
27
27
|
{
|
28
28
|
label: "orderInfo.shopName",
|
29
29
|
prop: "shopId",
|
30
|
-
|
30
|
+
minWidth: "200",
|
31
31
|
slotName: "shopId",
|
32
32
|
columnType: "slot",
|
33
33
|
isColumn: !0
|
@@ -35,7 +35,7 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
35
35
|
{
|
36
36
|
label: "orderRefunds.createTime",
|
37
37
|
prop: "createTime",
|
38
|
-
width: "
|
38
|
+
width: "160",
|
39
39
|
slotName: "createTime",
|
40
40
|
columnType: "slot",
|
41
41
|
isColumn: !0
|
@@ -43,7 +43,7 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
43
43
|
{
|
44
44
|
label: "orderRefunds.order",
|
45
45
|
prop: "order",
|
46
|
-
|
46
|
+
minWidth: "270",
|
47
47
|
slotName: "order",
|
48
48
|
columnType: "slot",
|
49
49
|
isColumn: !0
|
@@ -51,7 +51,7 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
51
51
|
{
|
52
52
|
label: "orderRefunds.refundStatus",
|
53
53
|
prop: "status",
|
54
|
-
width: "
|
54
|
+
width: "90",
|
55
55
|
slotName: "refundStatus",
|
56
56
|
columnType: "slot",
|
57
57
|
isColumn: !0
|
@@ -59,13 +59,13 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
59
59
|
{
|
60
60
|
label: "orderRefunds.refundAmount",
|
61
61
|
prop: "refundAmount",
|
62
|
-
width: "
|
62
|
+
width: "90",
|
63
63
|
isColumn: !0
|
64
64
|
},
|
65
65
|
{
|
66
66
|
label: "orderRefunds.refundCode",
|
67
67
|
prop: "refundCode",
|
68
|
-
width: "
|
68
|
+
width: "210",
|
69
69
|
isColumn: !0
|
70
70
|
},
|
71
71
|
{
|
@@ -82,7 +82,7 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
82
82
|
},
|
83
83
|
{
|
84
84
|
label: "common.operate",
|
85
|
-
width: "
|
85
|
+
width: "130",
|
86
86
|
slotName: "operation",
|
87
87
|
columnType: "slot",
|
88
88
|
fixed: "right",
|
@@ -96,12 +96,12 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
96
96
|
title: m("orderRefunds.info"),
|
97
97
|
visible: !1
|
98
98
|
});
|
99
|
-
let
|
100
|
-
function L(
|
101
|
-
|
99
|
+
let w = re({});
|
100
|
+
function L(l) {
|
101
|
+
w.refundId = l.refundId, b.value.visible = !0;
|
102
102
|
}
|
103
|
-
const
|
104
|
-
|
103
|
+
const W = async (l) => {
|
104
|
+
ie.confirm(
|
105
105
|
m("orderRefunds.refundConfirm"),
|
106
106
|
m("orderRefunds.refund"),
|
107
107
|
{
|
@@ -111,15 +111,15 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
111
111
|
}
|
112
112
|
).then(() => {
|
113
113
|
M.refund({
|
114
|
-
refundId:
|
114
|
+
refundId: l.refundId,
|
115
115
|
requestId: Math.random() * 10 + ""
|
116
|
-
}).then((
|
117
|
-
|
116
|
+
}).then((t) => {
|
117
|
+
t.status === 200 && (q({
|
118
118
|
message: m("orderRefunds.refundSuccess"),
|
119
119
|
type: "success"
|
120
|
-
}),
|
121
|
-
}).catch((
|
122
|
-
console.error("Error canceling order:",
|
120
|
+
}), u.handleQuery());
|
121
|
+
}).catch((t) => {
|
122
|
+
console.error("Error canceling order:", t), q({
|
123
123
|
message: m("orderRefunds.refundFailed"),
|
124
124
|
type: "error"
|
125
125
|
});
|
@@ -127,40 +127,37 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
127
127
|
}).catch(() => {
|
128
128
|
});
|
129
129
|
};
|
130
|
-
function
|
131
|
-
|
132
|
-
}
|
133
|
-
function F(t) {
|
134
|
-
n.value.startCreateTime = t[0], n.value.endCreateTime = t[1];
|
130
|
+
function H(l) {
|
131
|
+
w.refundId = l.refundId, R.value.visible = !0;
|
135
132
|
}
|
136
|
-
function
|
137
|
-
|
133
|
+
function O(l) {
|
134
|
+
n.value.startCreateTime = l[0], n.value.endCreateTime = l[1];
|
138
135
|
}
|
139
|
-
function
|
140
|
-
|
136
|
+
function F() {
|
137
|
+
$.value = [], n.value.startCreateTime = "", n.value.endCreateTime = "", u.resetQuery();
|
141
138
|
}
|
142
|
-
function D(
|
143
|
-
|
139
|
+
function D(l) {
|
140
|
+
l && u.getList();
|
144
141
|
}
|
145
|
-
return
|
146
|
-
const
|
147
|
-
|
142
|
+
return ne(() => {
|
143
|
+
const l = I.query.refundStatus;
|
144
|
+
l && (n.value = {
|
148
145
|
...n.value,
|
149
|
-
refundStatus:
|
150
|
-
},
|
151
|
-
}),
|
146
|
+
refundStatus: l
|
147
|
+
}, u.handleQuery());
|
148
|
+
}), ae(
|
152
149
|
() => I.query.refundStatus,
|
153
|
-
(
|
154
|
-
|
150
|
+
(l) => {
|
151
|
+
l && (n.value = {
|
155
152
|
...n.value,
|
156
|
-
refundStatus:
|
157
|
-
}),
|
153
|
+
refundStatus: l
|
154
|
+
}), u.handleQuery();
|
158
155
|
}
|
159
|
-
),
|
160
|
-
const N = s("jmash-select"),
|
161
|
-
return p(), k("div",
|
162
|
-
i("div",
|
163
|
-
o(
|
156
|
+
), u.getList(), (l, t) => {
|
157
|
+
const N = s("jmash-select"), v = s("el-form-item"), f = s("el-col"), P = s("el-input"), V = s("el-row"), G = s("el-date-picker"), Y = s("el-button"), J = s("el-form"), X = s("jmash-column-select"), Z = s("jmash-table"), x = s("jmash-pagination"), ee = s("el-card"), te = de("hasPerm");
|
158
|
+
return p(), k("div", ce, [
|
159
|
+
i("div", ye, [
|
160
|
+
o(J, {
|
164
161
|
ref_key: "queryFormRef",
|
165
162
|
ref: j,
|
166
163
|
model: n.value,
|
@@ -171,18 +168,18 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
171
168
|
default: r(() => [
|
172
169
|
o(f, { span: 6 }, {
|
173
170
|
default: r(() => [
|
174
|
-
o(
|
175
|
-
label:
|
171
|
+
o(v, {
|
172
|
+
label: l.$t("orderRefunds.shopName"),
|
176
173
|
prop: "shopId"
|
177
174
|
}, {
|
178
175
|
default: r(() => [
|
179
176
|
o(N, {
|
180
177
|
modelValue: n.value.shopId,
|
181
|
-
"onUpdate:modelValue":
|
182
|
-
data: a(
|
183
|
-
placeholder:
|
178
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => n.value.shopId = e),
|
179
|
+
data: a(c).shopBizDict.values,
|
180
|
+
placeholder: l.$t("orderRefunds.shopNameRequired"),
|
184
181
|
clearable: "",
|
185
|
-
onKeyup:
|
182
|
+
onKeyup: t[1] || (t[1] = _((e) => a(u).handleQuery(), ["enter"]))
|
186
183
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
187
184
|
]),
|
188
185
|
_: 1
|
@@ -192,17 +189,17 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
192
189
|
}),
|
193
190
|
o(f, { span: 6 }, {
|
194
191
|
default: r(() => [
|
195
|
-
o(
|
196
|
-
label:
|
192
|
+
o(v, {
|
193
|
+
label: l.$t("orderRefunds.refundCode"),
|
197
194
|
prop: "likeOrderCode"
|
198
195
|
}, {
|
199
196
|
default: r(() => [
|
200
197
|
o(P, {
|
201
198
|
modelValue: n.value.likeOrderCode,
|
202
|
-
"onUpdate:modelValue":
|
203
|
-
placeholder:
|
199
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => n.value.likeOrderCode = e),
|
200
|
+
placeholder: l.$t("orderRefunds.refundCodeRequired"),
|
204
201
|
clearable: "",
|
205
|
-
onKeyup:
|
202
|
+
onKeyup: t[3] || (t[3] = _((e) => a(u).handleQuery(), ["enter"])),
|
206
203
|
class: "!w-[203px]"
|
207
204
|
}, null, 8, ["modelValue", "placeholder"])
|
208
205
|
]),
|
@@ -213,17 +210,17 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
213
210
|
}),
|
214
211
|
o(f, { span: 6 }, {
|
215
212
|
default: r(() => [
|
216
|
-
o(
|
217
|
-
label:
|
213
|
+
o(v, {
|
214
|
+
label: l.$t("orderRefunds.spuName"),
|
218
215
|
prop: "likeSpuName"
|
219
216
|
}, {
|
220
217
|
default: r(() => [
|
221
218
|
o(P, {
|
222
219
|
modelValue: n.value.likeSpuName,
|
223
|
-
"onUpdate:modelValue":
|
224
|
-
placeholder:
|
220
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => n.value.likeSpuName = e),
|
221
|
+
placeholder: l.$t("orderRefunds.spuNameRequired"),
|
225
222
|
clearable: "",
|
226
|
-
onKeyup:
|
223
|
+
onKeyup: t[5] || (t[5] = _((e) => a(u).handleQuery(), ["enter"])),
|
227
224
|
class: "!w-[203px]"
|
228
225
|
}, null, 8, ["modelValue", "placeholder"])
|
229
226
|
]),
|
@@ -234,18 +231,18 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
234
231
|
}),
|
235
232
|
o(f, { span: 6 }, {
|
236
233
|
default: r(() => [
|
237
|
-
o(
|
238
|
-
label:
|
234
|
+
o(v, {
|
235
|
+
label: l.$t("orderRefunds.refundStatus"),
|
239
236
|
prop: "refundStatus"
|
240
237
|
}, {
|
241
238
|
default: r(() => [
|
242
239
|
o(N, {
|
243
240
|
modelValue: n.value.refundStatus,
|
244
|
-
"onUpdate:modelValue":
|
245
|
-
data: a(
|
246
|
-
placeholder:
|
241
|
+
"onUpdate:modelValue": t[6] || (t[6] = (e) => n.value.refundStatus = e),
|
242
|
+
data: a(c).refundApplyEnum.values,
|
243
|
+
placeholder: l.$t("orderRefunds.refundStatusRequired"),
|
247
244
|
clearable: "",
|
248
|
-
onKeyup:
|
245
|
+
onKeyup: t[7] || (t[7] = _((e) => a(u).handleQuery(), ["enter"]))
|
249
246
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
250
247
|
]),
|
251
248
|
_: 1
|
@@ -260,20 +257,20 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
260
257
|
default: r(() => [
|
261
258
|
o(f, { span: 6 }, {
|
262
259
|
default: r(() => [
|
263
|
-
o(
|
264
|
-
label:
|
260
|
+
o(v, {
|
261
|
+
label: l.$t("orderRefunds.refundsTime"),
|
265
262
|
prop: "startCreateTime"
|
266
263
|
}, {
|
267
264
|
default: r(() => [
|
268
|
-
o(
|
265
|
+
o(G, {
|
269
266
|
modelValue: $.value,
|
270
|
-
"onUpdate:modelValue":
|
267
|
+
"onUpdate:modelValue": t[8] || (t[8] = (e) => $.value = e),
|
271
268
|
type: "daterange",
|
272
|
-
"start-placeholder":
|
273
|
-
"end-placeholder":
|
269
|
+
"start-placeholder": l.$t("orderRefunds.startCreateTime"),
|
270
|
+
"end-placeholder": l.$t("orderRefunds.endCreateTime"),
|
274
271
|
format: "YYYY-MM-DD",
|
275
272
|
"value-format": "YYYY-MM-DD",
|
276
|
-
onChange:
|
273
|
+
onChange: O
|
277
274
|
}, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
|
278
275
|
]),
|
279
276
|
_: 1
|
@@ -283,20 +280,20 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
283
280
|
}),
|
284
281
|
o(f, { span: 18 }, {
|
285
282
|
default: r(() => [
|
286
|
-
o(
|
283
|
+
o(v, { class: "search-btn" }, {
|
287
284
|
default: r(() => [
|
288
285
|
o(Y, {
|
289
286
|
type: "primary",
|
290
|
-
onClick:
|
287
|
+
onClick: t[9] || (t[9] = (e) => a(u).handleQuery())
|
291
288
|
}, {
|
292
289
|
default: r(() => [
|
293
|
-
|
290
|
+
T(d(l.$t("common.search")), 1)
|
294
291
|
]),
|
295
292
|
_: 1
|
296
293
|
}),
|
297
|
-
o(Y, { onClick:
|
294
|
+
o(Y, { onClick: F }, {
|
298
295
|
default: r(() => [
|
299
|
-
|
296
|
+
T(d(l.$t("common.reset")), 1)
|
300
297
|
]),
|
301
298
|
_: 1
|
302
299
|
})
|
@@ -312,24 +309,23 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
312
309
|
]),
|
313
310
|
_: 1
|
314
311
|
}, 8, ["model"]),
|
315
|
-
|
312
|
+
t[17] || (t[17] = i("div", { class: "clear" }, null, -1))
|
316
313
|
]),
|
317
|
-
o(
|
314
|
+
o(ee, {
|
318
315
|
shadow: "never",
|
319
316
|
class: "table-container"
|
320
317
|
}, {
|
321
318
|
header: r(() => [
|
322
319
|
o(V, null, {
|
323
320
|
default: r(() => [
|
324
|
-
o(f, { span: 17 }),
|
325
321
|
o(f, {
|
326
|
-
span:
|
322
|
+
span: 24,
|
327
323
|
class: "container-float"
|
328
324
|
}, {
|
329
325
|
default: r(() => [
|
330
|
-
o(
|
326
|
+
o(X, {
|
331
327
|
modelValue: a(y),
|
332
|
-
"onUpdate:modelValue":
|
328
|
+
"onUpdate:modelValue": t[10] || (t[10] = (e) => U(y) ? y.value = e : y = e),
|
333
329
|
"label-name": "order/order-refunds"
|
334
330
|
}, null, 8, ["modelValue"])
|
335
331
|
]),
|
@@ -340,95 +336,95 @@ const ye = { class: "app-container" }, be = { class: "search-container" }, Re =
|
|
340
336
|
})
|
341
337
|
]),
|
342
338
|
footer: r(() => [
|
343
|
-
a(
|
339
|
+
a(g) > 0 ? (p(), S(x, {
|
344
340
|
key: 0,
|
345
|
-
total: a(
|
346
|
-
"onUpdate:total":
|
341
|
+
total: a(g),
|
342
|
+
"onUpdate:total": t[11] || (t[11] = (e) => U(g) ? g.value = e : null),
|
347
343
|
"current-page": n.value.curPage,
|
348
|
-
"onUpdate:currentPage":
|
344
|
+
"onUpdate:currentPage": t[12] || (t[12] = (e) => n.value.curPage = e),
|
349
345
|
"page-size": n.value.pageSize,
|
350
|
-
"onUpdate:pageSize":
|
351
|
-
onPagination:
|
346
|
+
"onUpdate:pageSize": t[13] || (t[13] = (e) => n.value.pageSize = e),
|
347
|
+
onPagination: t[14] || (t[14] = (e) => a(u).getList())
|
352
348
|
}, null, 8, ["total", "current-page", "page-size"])) : C("", !0)
|
353
349
|
]),
|
354
350
|
default: r(() => [
|
355
|
-
o(
|
351
|
+
o(Z, {
|
356
352
|
ref_key: "multipleTableRef",
|
357
353
|
ref: Q,
|
358
354
|
"row-key": "refundId",
|
359
355
|
"list-loading": a(A),
|
360
356
|
data: a(K),
|
361
357
|
"table-label": a(y),
|
362
|
-
|
358
|
+
isSelection: !1
|
363
359
|
}, {
|
364
360
|
shopId: r((e) => [
|
365
|
-
i("span", null,
|
361
|
+
i("span", null, d(a(c).shopBizDict.getValue(e.data.row.shopId)), 1)
|
366
362
|
]),
|
367
363
|
createTime: r((e) => [
|
368
|
-
i("span", null,
|
364
|
+
i("span", null, d(a(B).$moment.formatDate(
|
369
365
|
e.data.row.createTime,
|
370
366
|
"YYYY-MM-DD HH:mm:ss"
|
371
367
|
)), 1)
|
372
368
|
]),
|
373
369
|
order: r((e) => [
|
374
370
|
i("div", null, [
|
375
|
-
i("div", null,
|
376
|
-
i("div", null,
|
377
|
-
i("div", null,
|
378
|
-
i("div", null,
|
379
|
-
i("div", null,
|
371
|
+
i("div", null, d(l.$t("orderRefunds.orderCode")) + ":" + d(e.data.row.orderCode), 1),
|
372
|
+
i("div", null, d(l.$t("orderRefunds.orderPrice")) + ":¥" + d(e.data.row.orderPrice), 1),
|
373
|
+
i("div", null, d(l.$t("orderRefunds.freightPrice")) + ":¥" + d(e.data.row.freightPrice), 1),
|
374
|
+
i("div", null, d(l.$t("orderRefunds.paymentCouponPrice")) + ":¥" + d(e.data.row.paymentCouponPrice), 1),
|
375
|
+
i("div", null, d(l.$t("orderRefunds.paymentWay")) + ": " + d(a(c).paymentWayEnum.getEnumValue(e.data.row.paymentWay)), 1)
|
380
376
|
])
|
381
377
|
]),
|
382
378
|
refundStatus: r((e) => [
|
383
|
-
i("span", null,
|
379
|
+
i("span", null, d(a(c).refundApplyEnum.getEnumValue(e.data.row.status)), 1)
|
384
380
|
]),
|
385
381
|
operation: r((e) => [
|
386
|
-
|
382
|
+
ue((p(), k("span", {
|
387
383
|
class: "el-button-color",
|
388
|
-
onClick: (E) =>
|
384
|
+
onClick: (E) => H(e.data.row)
|
389
385
|
}, [
|
390
|
-
|
391
|
-
], 8,
|
392
|
-
[
|
386
|
+
T(d(l.$t("common.view")), 1)
|
387
|
+
], 8, be)), [
|
388
|
+
[te, ["order:order_refunds:view"]]
|
393
389
|
]),
|
394
390
|
e.data.row.status === a(z).APPLY ? (p(), k("span", {
|
395
391
|
key: 0,
|
396
392
|
class: "el-button-color dropdown-left",
|
397
393
|
onClick: (E) => L(e.data.row)
|
398
|
-
},
|
394
|
+
}, d(l.$t("orderRefunds.refundReview")), 9, Re)) : C("", !0),
|
399
395
|
e.data.row.status === a(z).PASS ? (p(), k("span", {
|
400
396
|
key: 1,
|
401
397
|
class: "el-button-color dropdown-left",
|
402
|
-
onClick: (E) =>
|
403
|
-
},
|
398
|
+
onClick: (E) => W(e.data.row)
|
399
|
+
}, d(l.$t("orderRefunds.refund")), 9, he)) : C("", !0)
|
404
400
|
]),
|
405
401
|
_: 1
|
406
402
|
}, 8, ["list-loading", "data", "table-label"])
|
407
403
|
]),
|
408
404
|
_: 1
|
409
405
|
}),
|
410
|
-
b.value.visible ? (p(),
|
406
|
+
b.value.visible ? (p(), S(pe, {
|
411
407
|
key: 0,
|
412
408
|
modelValue: b.value.visible,
|
413
|
-
"onUpdate:modelValue":
|
409
|
+
"onUpdate:modelValue": t[15] || (t[15] = (e) => b.value.visible = e),
|
414
410
|
title: b.value.title,
|
415
|
-
"entity-key": a(
|
411
|
+
"entity-key": a(w),
|
416
412
|
onRefresh: D,
|
417
413
|
width: "800px"
|
418
414
|
}, null, 8, ["modelValue", "title", "entity-key"])) : C("", !0),
|
419
|
-
R.value.visible ? (p(),
|
415
|
+
R.value.visible ? (p(), S(ve, {
|
420
416
|
key: 1,
|
421
417
|
modelValue: R.value.visible,
|
422
|
-
"onUpdate:modelValue":
|
418
|
+
"onUpdate:modelValue": t[16] || (t[16] = (e) => R.value.visible = e),
|
423
419
|
title: R.value.title,
|
424
|
-
"entity-key": a(
|
420
|
+
"entity-key": a(w),
|
425
421
|
onRefresh: D,
|
426
|
-
width: "
|
422
|
+
width: "900px"
|
427
423
|
}, null, 8, ["modelValue", "title", "entity-key"])) : C("", !0)
|
428
424
|
]);
|
429
425
|
};
|
430
426
|
}
|
431
427
|
});
|
432
428
|
export {
|
433
|
-
|
429
|
+
De as default
|
434
430
|
};
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { defineComponent as N, ref as k, onMounted as E, resolveComponent as p, createElementBlock as _, openBlock as t, createVNode as d, withCtx as r, createBlock as l, createCommentVNode as i, Fragment as y, renderList as V, unref as T } from "vue";
|
2
|
+
import { useRoute as U } from "vue-router";
|
3
|
+
import "element-plus";
|
4
|
+
import { C as a, D as B } from "./index-CIvF2jlB.mjs";
|
5
|
+
import { _ as f } from "./orderList.vue_vue_type_script_setup_true_lang-C0EyjiIS.mjs";
|
6
|
+
const L = { class: "app-container" }, D = /* @__PURE__ */ N({
|
7
|
+
__name: "index",
|
8
|
+
setup(M) {
|
9
|
+
const e = k(5), u = U(), v = {
|
10
|
+
0: a.UNPAY,
|
11
|
+
1: a.UNPOST,
|
12
|
+
2: a.UNRECEIVE,
|
13
|
+
3: a.COMPLETE,
|
14
|
+
4: a.CANCEL
|
15
|
+
};
|
16
|
+
function b(m) {
|
17
|
+
e.value = m.paneName;
|
18
|
+
}
|
19
|
+
return E(() => {
|
20
|
+
u.query.activeTab && (e.value = Number(u.query.activeTab));
|
21
|
+
}), (m, s) => {
|
22
|
+
const c = p("el-tab-pane"), C = p("el-tabs");
|
23
|
+
return t(), _("div", L, [
|
24
|
+
d(C, {
|
25
|
+
modelValue: e.value,
|
26
|
+
"onUpdate:modelValue": s[0] || (s[0] = (o) => e.value = o),
|
27
|
+
type: "border-card",
|
28
|
+
onTabClick: b
|
29
|
+
}, {
|
30
|
+
default: r(() => [
|
31
|
+
d(c, {
|
32
|
+
label: "全部订单",
|
33
|
+
name: 5
|
34
|
+
}, {
|
35
|
+
default: r(() => [
|
36
|
+
e.value === 5 ? (t(), l(f, { key: 0 })) : i("", !0)
|
37
|
+
]),
|
38
|
+
_: 1
|
39
|
+
}),
|
40
|
+
(t(!0), _(y, null, V(T(B).orderStatusEnum.values, (o, n) => (t(), l(c, {
|
41
|
+
key: n,
|
42
|
+
label: o.value,
|
43
|
+
name: n
|
44
|
+
}, {
|
45
|
+
default: r(() => [
|
46
|
+
e.value === n ? (t(), l(f, {
|
47
|
+
key: 0,
|
48
|
+
"order-status": v[e.value]
|
49
|
+
}, null, 8, ["order-status"])) : i("", !0)
|
50
|
+
]),
|
51
|
+
_: 2
|
52
|
+
}, 1032, ["label", "name"]))), 128))
|
53
|
+
]),
|
54
|
+
_: 1
|
55
|
+
}, 8, ["modelValue"])
|
56
|
+
]);
|
57
|
+
};
|
58
|
+
}
|
59
|
+
});
|
60
|
+
export {
|
61
|
+
D as default
|
62
|
+
};
|