xyvcard-order 0.0.8 → 0.0.9
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-CaKojOfx.mjs → index-De4cg2k7.mjs} +248 -239
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
@@ -1,33 +1,33 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useRouter as
|
3
|
-
import { ElMessageBox as
|
4
|
-
import { useTableHooks as
|
5
|
-
import { useI18n as
|
6
|
-
import { o as
|
7
|
-
import { _ as
|
8
|
-
import { _ as
|
1
|
+
import { defineComponent as ve, getCurrentInstance as ce, ref as C, reactive as z, onMounted as be, watch as Ie, resolveComponent as v, resolveDirective as _e, openBlock as d, createElementBlock as k, createVNode as r, withCtx as l, createElementVNode as m, unref as o, withKeys as V, createTextVNode as s, toDisplayString as n, withDirectives as N, createBlock as i, isRef as B, createCommentVNode as p, Fragment as j, renderList as K } from "vue";
|
2
|
+
import { useRoute as Se, useRouter as we } from "vue-router";
|
3
|
+
import { ElMessageBox as ge, ElMessage as O } from "element-plus";
|
4
|
+
import { useTableHooks as ke } from "jmash-core";
|
5
|
+
import { useI18n as Ce } from "vue-i18n";
|
6
|
+
import { o as F } from "./index-CfEKTjAd.mjs";
|
7
|
+
import { _ as Ve } from "./deliver.vue_vue_type_script_setup_true_lang-DZ6WdO5i.mjs";
|
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
|
-
import { _ as
|
11
|
-
import { _ as
|
12
|
-
import { _ as
|
13
|
-
import { _ as
|
14
|
-
import { _ as
|
15
|
-
const
|
10
|
+
import { _ as $e } from "./unpay.vue_vue_type_script_setup_true_lang-CsHqHywv.mjs";
|
11
|
+
import { _ as Ee } from "./unreceive.vue_vue_type_script_setup_true_lang-CgWgDNgs.mjs";
|
12
|
+
import { _ as Te } from "./completed.vue_vue_type_script_setup_true_lang-ysjYRoxQ.mjs";
|
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-Xtrcqwsb.mjs";
|
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
|
-
setup(
|
18
|
-
const { t: c } = we(), { proxy:
|
17
|
+
setup(ze) {
|
18
|
+
const { t: c } = Ce(), A = Se(), H = we(), { proxy: G } = ce();
|
19
19
|
f.shopBizDict.useValues();
|
20
|
-
const D = C([]),
|
20
|
+
const D = C([]), b = C("5"), u = C({
|
21
21
|
curPage: 1,
|
22
22
|
pageSize: 10
|
23
|
-
}),
|
23
|
+
}), {
|
24
24
|
tableHooks: y,
|
25
|
-
multipleTableRef:
|
26
|
-
queryFormRef:
|
27
|
-
listLoading:
|
28
|
-
tableData:
|
25
|
+
multipleTableRef: J,
|
26
|
+
queryFormRef: X,
|
27
|
+
listLoading: Z,
|
28
|
+
tableData: x,
|
29
29
|
total: E
|
30
|
-
} =
|
30
|
+
} = ke(c, F, u);
|
31
31
|
let h = C([
|
32
32
|
{
|
33
33
|
label: "orderInfo.shopName",
|
@@ -97,42 +97,42 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
97
97
|
const $ = C({
|
98
98
|
title: c("orderInfo.deliver"),
|
99
99
|
visible: !1
|
100
|
-
}),
|
100
|
+
}), T = C({
|
101
101
|
title: c("orderInfo.changePrice"),
|
102
102
|
visible: !1
|
103
103
|
});
|
104
|
-
let U =
|
105
|
-
function
|
104
|
+
let U = z({}), R = z({});
|
105
|
+
function ee(a) {
|
106
106
|
var t;
|
107
|
-
R.itemId = (t =
|
107
|
+
R.itemId = (t = a.orderItemList) == null ? void 0 : t.results[0].itemId, U.orderId = a.orderId, $.value.visible = !0;
|
108
108
|
}
|
109
|
-
function
|
110
|
-
u.value.startCreateTime =
|
109
|
+
function te(a) {
|
110
|
+
u.value.startCreateTime = a[0], u.value.endCreateTime = a[1];
|
111
111
|
}
|
112
|
-
function
|
112
|
+
function ae() {
|
113
113
|
D.value = [], u.value.startCreateTime = "", u.value.endCreateTime = "", y.resetQuery();
|
114
114
|
}
|
115
|
-
function
|
115
|
+
function le(a) {
|
116
116
|
H.push({
|
117
117
|
path: "/raworder/order-info/info",
|
118
|
-
query: { orderId:
|
118
|
+
query: { orderId: a.orderId }
|
119
119
|
});
|
120
120
|
}
|
121
|
-
const
|
122
|
-
|
121
|
+
const oe = async (a) => {
|
122
|
+
ge.confirm(c("orderInfo.confirmCancel"), c("common.cancel"), {
|
123
123
|
confirmButtonText: c("common.confirm"),
|
124
124
|
cancelButtonText: c("common.cancel"),
|
125
125
|
type: "warning"
|
126
126
|
}).then(() => {
|
127
|
-
|
128
|
-
orderId:
|
127
|
+
F.cancel({
|
128
|
+
orderId: a.orderId
|
129
129
|
}).then((t) => {
|
130
|
-
t.status === 200 && (
|
130
|
+
t.status === 200 && (O({
|
131
131
|
message: c("orderInfo.cancelSuccess"),
|
132
132
|
type: "success"
|
133
133
|
}), y.handleQuery());
|
134
134
|
}).catch((t) => {
|
135
|
-
console.error("Error canceling order:", t),
|
135
|
+
console.error("Error canceling order:", t), O({
|
136
136
|
message: c("orderInfo.cancelFailed"),
|
137
137
|
type: "error"
|
138
138
|
});
|
@@ -140,54 +140,63 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
140
140
|
}).catch(() => {
|
141
141
|
});
|
142
142
|
};
|
143
|
-
function
|
144
|
-
|
143
|
+
function re(a) {
|
144
|
+
b.value = a.name, a.name === "5" && y.handleQuery();
|
145
145
|
}
|
146
|
-
|
147
|
-
|
146
|
+
be(() => {
|
147
|
+
const a = A.query.activeTab;
|
148
|
+
a && (b.value = a.toString());
|
149
|
+
}), Ie(
|
150
|
+
() => A.query.activeTab,
|
151
|
+
(a) => {
|
152
|
+
a && (b.value = a.toString());
|
153
|
+
}
|
154
|
+
);
|
155
|
+
function ne(a) {
|
156
|
+
y.selectionRows.value = a;
|
148
157
|
}
|
149
|
-
function
|
150
|
-
|
158
|
+
function W(a) {
|
159
|
+
a && y.getList();
|
151
160
|
}
|
152
|
-
return y.getList(), (
|
153
|
-
const M = v("jmash-select"), g = v("el-form-item"),
|
154
|
-
return d(), k("div",
|
155
|
-
r(
|
156
|
-
modelValue:
|
157
|
-
"onUpdate:modelValue": t[20] || (t[20] = (e) =>
|
161
|
+
return y.getList(), (a, t) => {
|
162
|
+
const M = v("jmash-select"), g = v("el-form-item"), I = v("el-col"), q = v("el-input"), L = v("el-row"), de = v("el-date-picker"), Y = v("el-button"), ue = v("el-form"), se = v("jmash-column-select"), _ = v("el-tag"), ie = v("jmash-table"), me = v("jmash-pagination"), pe = v("el-card"), Q = v("el-tab-pane"), fe = v("el-tabs"), P = _e("hasPerm");
|
163
|
+
return d(), k("div", De, [
|
164
|
+
r(fe, {
|
165
|
+
modelValue: b.value,
|
166
|
+
"onUpdate:modelValue": t[20] || (t[20] = (e) => b.value = e),
|
158
167
|
type: "border-card",
|
159
|
-
onTabClick:
|
168
|
+
onTabClick: re
|
160
169
|
}, {
|
161
|
-
default:
|
162
|
-
r(
|
170
|
+
default: l(() => [
|
171
|
+
r(Q, {
|
163
172
|
label: "全部订单",
|
164
173
|
name: "5"
|
165
174
|
}, {
|
166
|
-
default:
|
167
|
-
m("div",
|
168
|
-
r(
|
175
|
+
default: l(() => [
|
176
|
+
m("div", Ue, [
|
177
|
+
r(ue, {
|
169
178
|
ref_key: "queryFormRef",
|
170
|
-
ref:
|
179
|
+
ref: X,
|
171
180
|
model: u.value,
|
172
181
|
inline: !0
|
173
182
|
}, {
|
174
|
-
default:
|
175
|
-
r(
|
176
|
-
default:
|
177
|
-
r(
|
178
|
-
default:
|
183
|
+
default: l(() => [
|
184
|
+
r(L, null, {
|
185
|
+
default: l(() => [
|
186
|
+
r(I, { span: 6 }, {
|
187
|
+
default: l(() => [
|
179
188
|
r(g, {
|
180
|
-
label:
|
189
|
+
label: a.$t("orderInfo.shopName"),
|
181
190
|
prop: "shopId"
|
182
191
|
}, {
|
183
|
-
default:
|
192
|
+
default: l(() => [
|
184
193
|
r(M, {
|
185
194
|
modelValue: u.value.shopId,
|
186
195
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => u.value.shopId = e),
|
187
|
-
data:
|
188
|
-
placeholder:
|
196
|
+
data: o(f).shopBizDict.values,
|
197
|
+
placeholder: a.$t("orderInfo.shopNameRequired"),
|
189
198
|
clearable: "",
|
190
|
-
onKeyup: t[1] || (t[1] = V((e) =>
|
199
|
+
onKeyup: t[1] || (t[1] = V((e) => o(y).handleQuery(), ["enter"]))
|
191
200
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
192
201
|
]),
|
193
202
|
_: 1
|
@@ -195,19 +204,19 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
195
204
|
]),
|
196
205
|
_: 1
|
197
206
|
}),
|
198
|
-
r(
|
199
|
-
default:
|
207
|
+
r(I, { span: 6 }, {
|
208
|
+
default: l(() => [
|
200
209
|
r(g, {
|
201
|
-
label:
|
210
|
+
label: a.$t("orderInfo.orderCode"),
|
202
211
|
prop: "likeOrderCode"
|
203
212
|
}, {
|
204
|
-
default:
|
205
|
-
r(
|
213
|
+
default: l(() => [
|
214
|
+
r(q, {
|
206
215
|
modelValue: u.value.likeOrderCode,
|
207
216
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => u.value.likeOrderCode = e),
|
208
|
-
placeholder:
|
217
|
+
placeholder: a.$t("orderInfo.orderCodeRequired"),
|
209
218
|
clearable: "",
|
210
|
-
onKeyup: t[3] || (t[3] = V((e) =>
|
219
|
+
onKeyup: t[3] || (t[3] = V((e) => o(y).handleQuery(), ["enter"])),
|
211
220
|
class: "!w-[203px]"
|
212
221
|
}, null, 8, ["modelValue", "placeholder"])
|
213
222
|
]),
|
@@ -216,19 +225,19 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
216
225
|
]),
|
217
226
|
_: 1
|
218
227
|
}),
|
219
|
-
r(
|
220
|
-
default:
|
228
|
+
r(I, { span: 6 }, {
|
229
|
+
default: l(() => [
|
221
230
|
r(g, {
|
222
|
-
label:
|
231
|
+
label: a.$t("orderInfo.spuName"),
|
223
232
|
prop: "likeSpuName"
|
224
233
|
}, {
|
225
|
-
default:
|
226
|
-
r(
|
234
|
+
default: l(() => [
|
235
|
+
r(q, {
|
227
236
|
modelValue: u.value.likeSpuName,
|
228
237
|
"onUpdate:modelValue": t[4] || (t[4] = (e) => u.value.likeSpuName = e),
|
229
|
-
placeholder:
|
238
|
+
placeholder: a.$t("orderInfo.spuNameRequired"),
|
230
239
|
clearable: "",
|
231
|
-
onKeyup: t[5] || (t[5] = V((e) =>
|
240
|
+
onKeyup: t[5] || (t[5] = V((e) => o(y).handleQuery(), ["enter"])),
|
232
241
|
class: "!w-[203px]"
|
233
242
|
}, null, 8, ["modelValue", "placeholder"])
|
234
243
|
]),
|
@@ -237,20 +246,20 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
237
246
|
]),
|
238
247
|
_: 1
|
239
248
|
}),
|
240
|
-
r(
|
241
|
-
default:
|
249
|
+
r(I, { span: 6 }, {
|
250
|
+
default: l(() => [
|
242
251
|
r(g, {
|
243
|
-
label:
|
252
|
+
label: a.$t("orderInfo.orderStatus"),
|
244
253
|
prop: "orderStatus"
|
245
254
|
}, {
|
246
|
-
default:
|
255
|
+
default: l(() => [
|
247
256
|
r(M, {
|
248
257
|
modelValue: u.value.orderStatus,
|
249
258
|
"onUpdate:modelValue": t[6] || (t[6] = (e) => u.value.orderStatus = e),
|
250
|
-
data:
|
251
|
-
placeholder:
|
259
|
+
data: o(f).orderStatusEnum.values,
|
260
|
+
placeholder: a.$t("orderInfo.orderStatusRequired"),
|
252
261
|
clearable: "",
|
253
|
-
onKeyup: t[7] || (t[7] = V((e) =>
|
262
|
+
onKeyup: t[7] || (t[7] = V((e) => o(y).handleQuery(), ["enter"]))
|
254
263
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
255
264
|
]),
|
256
265
|
_: 1
|
@@ -261,21 +270,21 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
261
270
|
]),
|
262
271
|
_: 1
|
263
272
|
}),
|
264
|
-
r(
|
265
|
-
default:
|
266
|
-
r(
|
267
|
-
default:
|
273
|
+
r(L, null, {
|
274
|
+
default: l(() => [
|
275
|
+
r(I, { span: 6 }, {
|
276
|
+
default: l(() => [
|
268
277
|
r(g, {
|
269
|
-
label:
|
278
|
+
label: a.$t("orderInfo.likeMobile"),
|
270
279
|
prop: "likeMobile"
|
271
280
|
}, {
|
272
|
-
default:
|
273
|
-
r(
|
281
|
+
default: l(() => [
|
282
|
+
r(q, {
|
274
283
|
modelValue: u.value.likeMobile,
|
275
284
|
"onUpdate:modelValue": t[8] || (t[8] = (e) => u.value.likeMobile = e),
|
276
|
-
placeholder:
|
285
|
+
placeholder: a.$t("orderInfo.likeMobileRequired"),
|
277
286
|
clearable: "",
|
278
|
-
onKeyup: t[9] || (t[9] = V((e) =>
|
287
|
+
onKeyup: t[9] || (t[9] = V((e) => o(y).handleQuery(), ["enter"])),
|
279
288
|
class: "!w-[203px]"
|
280
289
|
}, null, 8, ["modelValue", "placeholder"])
|
281
290
|
]),
|
@@ -284,20 +293,20 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
284
293
|
]),
|
285
294
|
_: 1
|
286
295
|
}),
|
287
|
-
r(
|
288
|
-
default:
|
296
|
+
r(I, { span: 6 }, {
|
297
|
+
default: l(() => [
|
289
298
|
r(g, {
|
290
|
-
label:
|
299
|
+
label: a.$t("orderInfo.paymentStatus"),
|
291
300
|
prop: "paymentStatus"
|
292
301
|
}, {
|
293
|
-
default:
|
302
|
+
default: l(() => [
|
294
303
|
r(M, {
|
295
304
|
modelValue: u.value.paymentStatus,
|
296
305
|
"onUpdate:modelValue": t[10] || (t[10] = (e) => u.value.paymentStatus = e),
|
297
|
-
data:
|
298
|
-
placeholder:
|
306
|
+
data: o(f).paymentStatusEnum.values,
|
307
|
+
placeholder: a.$t("orderInfo.paymentStatusRequired"),
|
299
308
|
clearable: "",
|
300
|
-
onKeyup: t[11] || (t[11] = V((e) =>
|
309
|
+
onKeyup: t[11] || (t[11] = V((e) => o(y).handleQuery(), ["enter"]))
|
301
310
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
302
311
|
]),
|
303
312
|
_: 1
|
@@ -305,22 +314,22 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
305
314
|
]),
|
306
315
|
_: 1
|
307
316
|
}),
|
308
|
-
r(
|
309
|
-
default:
|
317
|
+
r(I, { span: 6 }, {
|
318
|
+
default: l(() => [
|
310
319
|
r(g, {
|
311
|
-
label:
|
320
|
+
label: a.$t("orderInfo.orderTime"),
|
312
321
|
prop: "startCreateTime"
|
313
322
|
}, {
|
314
|
-
default:
|
315
|
-
r(
|
323
|
+
default: l(() => [
|
324
|
+
r(de, {
|
316
325
|
modelValue: D.value,
|
317
326
|
"onUpdate:modelValue": t[12] || (t[12] = (e) => D.value = e),
|
318
327
|
type: "daterange",
|
319
|
-
"start-placeholder":
|
320
|
-
"end-placeholder":
|
328
|
+
"start-placeholder": a.$t("orderInfo.startCreateTime"),
|
329
|
+
"end-placeholder": a.$t("orderInfo.endCreateTime"),
|
321
330
|
format: "YYYY-MM-DD",
|
322
331
|
"value-format": "YYYY-MM-DD",
|
323
|
-
onChange:
|
332
|
+
onChange: te
|
324
333
|
}, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
|
325
334
|
]),
|
326
335
|
_: 1
|
@@ -328,22 +337,22 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
328
337
|
]),
|
329
338
|
_: 1
|
330
339
|
}),
|
331
|
-
r(
|
332
|
-
default:
|
340
|
+
r(I, { span: 6 }, {
|
341
|
+
default: l(() => [
|
333
342
|
r(g, { class: "search-btn" }, {
|
334
|
-
default:
|
335
|
-
r(
|
343
|
+
default: l(() => [
|
344
|
+
r(Y, {
|
336
345
|
type: "primary",
|
337
|
-
onClick: t[13] || (t[13] = (e) =>
|
346
|
+
onClick: t[13] || (t[13] = (e) => o(y).handleQuery())
|
338
347
|
}, {
|
339
|
-
default:
|
340
|
-
s(n(
|
348
|
+
default: l(() => [
|
349
|
+
s(n(a.$t("common.search")), 1)
|
341
350
|
]),
|
342
351
|
_: 1
|
343
352
|
}),
|
344
|
-
r(
|
345
|
-
default:
|
346
|
-
s(n(
|
353
|
+
r(Y, { onClick: ae }, {
|
354
|
+
default: l(() => [
|
355
|
+
s(n(a.$t("common.reset")), 1)
|
347
356
|
]),
|
348
357
|
_: 1
|
349
358
|
})
|
@@ -361,34 +370,34 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
361
370
|
}, 8, ["model"]),
|
362
371
|
t[23] || (t[23] = m("div", { class: "clear" }, null, -1))
|
363
372
|
]),
|
364
|
-
r(
|
373
|
+
r(pe, {
|
365
374
|
shadow: "never",
|
366
375
|
class: "table-container"
|
367
376
|
}, {
|
368
|
-
header:
|
369
|
-
r(
|
370
|
-
default:
|
371
|
-
r(
|
372
|
-
r(
|
377
|
+
header: l(() => [
|
378
|
+
r(L, null, {
|
379
|
+
default: l(() => [
|
380
|
+
r(I, { span: 17 }),
|
381
|
+
r(I, {
|
373
382
|
span: 7,
|
374
383
|
class: "container-float"
|
375
384
|
}, {
|
376
|
-
default:
|
377
|
-
N((d(), i(
|
385
|
+
default: l(() => [
|
386
|
+
N((d(), i(Y, {
|
378
387
|
plain: "",
|
379
388
|
type: "primary",
|
380
|
-
onClick: t[14] || (t[14] = (e) =>
|
389
|
+
onClick: t[14] || (t[14] = (e) => o(y).handleExport(o(c)("orderInfo.name")))
|
381
390
|
}, {
|
382
|
-
default:
|
383
|
-
s(n(
|
391
|
+
default: l(() => [
|
392
|
+
s(n(a.$t("common.export")), 1)
|
384
393
|
]),
|
385
394
|
_: 1
|
386
395
|
})), [
|
387
|
-
[
|
396
|
+
[P, ["order:order_info:export"]]
|
388
397
|
]),
|
389
|
-
r(
|
390
|
-
modelValue:
|
391
|
-
"onUpdate:modelValue": t[15] || (t[15] = (e) =>
|
398
|
+
r(se, {
|
399
|
+
modelValue: o(h),
|
400
|
+
"onUpdate:modelValue": t[15] || (t[15] = (e) => B(h) ? h.value = e : h = e),
|
392
401
|
"label-name": "order/order-info"
|
393
402
|
}, null, 8, ["modelValue"])
|
394
403
|
]),
|
@@ -398,45 +407,45 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
398
407
|
_: 1
|
399
408
|
})
|
400
409
|
]),
|
401
|
-
footer:
|
402
|
-
|
410
|
+
footer: l(() => [
|
411
|
+
o(E) > 0 ? (d(), i(me, {
|
403
412
|
key: 0,
|
404
|
-
total:
|
405
|
-
"onUpdate:total": t[16] || (t[16] = (e) =>
|
413
|
+
total: o(E),
|
414
|
+
"onUpdate:total": t[16] || (t[16] = (e) => B(E) ? E.value = e : null),
|
406
415
|
"current-page": u.value.curPage,
|
407
416
|
"onUpdate:currentPage": t[17] || (t[17] = (e) => u.value.curPage = e),
|
408
417
|
"page-size": u.value.pageSize,
|
409
418
|
"onUpdate:pageSize": t[18] || (t[18] = (e) => u.value.pageSize = e),
|
410
|
-
onPagination: t[19] || (t[19] = (e) =>
|
419
|
+
onPagination: t[19] || (t[19] = (e) => o(y).getList())
|
411
420
|
}, null, 8, ["total", "current-page", "page-size"])) : p("", !0)
|
412
421
|
]),
|
413
|
-
default:
|
414
|
-
r(
|
422
|
+
default: l(() => [
|
423
|
+
r(ie, {
|
415
424
|
ref_key: "multipleTableRef",
|
416
|
-
ref:
|
425
|
+
ref: J,
|
417
426
|
"row-key": "orderId",
|
418
|
-
"list-loading":
|
419
|
-
data:
|
420
|
-
"table-label":
|
421
|
-
onSelectionChange:
|
427
|
+
"list-loading": o(Z),
|
428
|
+
data: o(x),
|
429
|
+
"table-label": o(h),
|
430
|
+
onSelectionChange: ne
|
422
431
|
}, {
|
423
|
-
shopId:
|
424
|
-
m("span", null, n(
|
432
|
+
shopId: l((e) => [
|
433
|
+
m("span", null, n(o(f).shopBizDict.getValue(e.data.row.shopId)), 1)
|
425
434
|
]),
|
426
|
-
orderItemList:
|
427
|
-
(d(!0), k(
|
428
|
-
key:
|
435
|
+
orderItemList: l((e) => [
|
436
|
+
(d(!0), k(j, null, K(e.data.row.orderItemList.results, (S, ye) => (d(), k("div", {
|
437
|
+
key: ye,
|
429
438
|
class: "order-item"
|
430
439
|
}, [
|
431
|
-
m("div",
|
432
|
-
m("div",
|
433
|
-
m("div",
|
434
|
-
m("div",
|
440
|
+
m("div", Re, n(S.spuName), 1),
|
441
|
+
m("div", Me, "¥" + n(S.salesPrice), 1),
|
442
|
+
m("div", qe, n(S.specInfo), 1),
|
443
|
+
m("div", Le, "数量:" + n(S.quantity), 1)
|
435
444
|
]))), 128))
|
436
445
|
]),
|
437
|
-
orderCodeAndCreateTime:
|
446
|
+
orderCodeAndCreateTime: l((e) => [
|
438
447
|
m("span", null, [
|
439
|
-
s(n(
|
448
|
+
s(n(o(G).$moment.formatDate(
|
440
449
|
e.data.row.createTime,
|
441
450
|
"YYYY-MM-DD HH:mm:ss"
|
442
451
|
)) + " ", 1),
|
@@ -444,59 +453,59 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
444
453
|
s(" " + n(e.data.row.orderCode), 1)
|
445
454
|
])
|
446
455
|
]),
|
447
|
-
status:
|
456
|
+
status: l((e) => [
|
448
457
|
m("div", null, [
|
449
|
-
s(n(
|
450
|
-
e.data.row.orderStatus ===
|
458
|
+
s(n(a.$t("orderInfo.orderStatus")) + ": ", 1),
|
459
|
+
e.data.row.orderStatus === o(w).UNPAY ? (d(), i(_, {
|
451
460
|
key: 0,
|
452
461
|
type: "danger"
|
453
462
|
}, {
|
454
|
-
default:
|
455
|
-
s(n(
|
463
|
+
default: l(() => [
|
464
|
+
s(n(o(f).orderStatusEnum.getEnumValue(
|
456
465
|
e.data.row.orderStatus
|
457
466
|
)), 1)
|
458
467
|
]),
|
459
468
|
_: 2
|
460
469
|
}, 1024)) : p("", !0),
|
461
|
-
e.data.row.orderStatus ===
|
470
|
+
e.data.row.orderStatus === o(w).UNPOST ? (d(), i(_, {
|
462
471
|
key: 1,
|
463
472
|
type: "warning"
|
464
473
|
}, {
|
465
|
-
default:
|
466
|
-
s(n(
|
474
|
+
default: l(() => [
|
475
|
+
s(n(o(f).orderStatusEnum.getEnumValue(
|
467
476
|
e.data.row.orderStatus
|
468
477
|
)), 1)
|
469
478
|
]),
|
470
479
|
_: 2
|
471
480
|
}, 1024)) : p("", !0),
|
472
|
-
e.data.row.orderStatus ===
|
481
|
+
e.data.row.orderStatus === o(w).UNRECEIVE ? (d(), i(_, {
|
473
482
|
key: 2,
|
474
483
|
type: "primary"
|
475
484
|
}, {
|
476
|
-
default:
|
477
|
-
s(n(
|
485
|
+
default: l(() => [
|
486
|
+
s(n(o(f).orderStatusEnum.getEnumValue(
|
478
487
|
e.data.row.orderStatus
|
479
488
|
)), 1)
|
480
489
|
]),
|
481
490
|
_: 2
|
482
491
|
}, 1024)) : p("", !0),
|
483
|
-
e.data.row.orderStatus ===
|
492
|
+
e.data.row.orderStatus === o(w).COMPLETE ? (d(), i(_, {
|
484
493
|
key: 3,
|
485
494
|
type: "success"
|
486
495
|
}, {
|
487
|
-
default:
|
488
|
-
s(n(
|
496
|
+
default: l(() => [
|
497
|
+
s(n(o(f).orderStatusEnum.getEnumValue(
|
489
498
|
e.data.row.orderStatus
|
490
499
|
)), 1)
|
491
500
|
]),
|
492
501
|
_: 2
|
493
502
|
}, 1024)) : p("", !0),
|
494
|
-
e.data.row.orderStatus ===
|
503
|
+
e.data.row.orderStatus === o(w).CANCEL ? (d(), i(_, {
|
495
504
|
key: 4,
|
496
505
|
type: "info"
|
497
506
|
}, {
|
498
|
-
default:
|
499
|
-
s(n(
|
507
|
+
default: l(() => [
|
508
|
+
s(n(o(f).orderStatusEnum.getEnumValue(
|
500
509
|
e.data.row.orderStatus
|
501
510
|
)), 1)
|
502
511
|
]),
|
@@ -504,33 +513,33 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
504
513
|
}, 1024)) : p("", !0)
|
505
514
|
]),
|
506
515
|
m("span", null, [
|
507
|
-
s(n(
|
508
|
-
e.data.row.paymentStatus ===
|
516
|
+
s(n(a.$t("orderInfo.paymentStatus")) + ": ", 1),
|
517
|
+
e.data.row.paymentStatus === o(w).UNPAID ? (d(), i(_, {
|
509
518
|
key: 0,
|
510
519
|
type: "danger"
|
511
520
|
}, {
|
512
|
-
default:
|
513
|
-
s(n(
|
521
|
+
default: l(() => [
|
522
|
+
s(n(o(f).paymentStatusEnum.getEnumValue(
|
514
523
|
e.data.row.paymentStatus
|
515
524
|
)), 1)
|
516
525
|
]),
|
517
526
|
_: 2
|
518
|
-
}, 1024)) : e.data.row.paymentStatus ===
|
527
|
+
}, 1024)) : e.data.row.paymentStatus === o(w).PART_PAID ? (d(), i(_, {
|
519
528
|
key: 1,
|
520
529
|
type: "info"
|
521
530
|
}, {
|
522
|
-
default:
|
523
|
-
s(n(
|
531
|
+
default: l(() => [
|
532
|
+
s(n(o(f).paymentStatusEnum.getEnumValue(
|
524
533
|
e.data.row.paymentStatus
|
525
534
|
)), 1)
|
526
535
|
]),
|
527
536
|
_: 2
|
528
|
-
}, 1024)) : e.data.row.paymentStatus ===
|
537
|
+
}, 1024)) : e.data.row.paymentStatus === o(w).PAID ? (d(), i(_, {
|
529
538
|
key: 2,
|
530
539
|
type: "success"
|
531
540
|
}, {
|
532
|
-
default:
|
533
|
-
s(n(
|
541
|
+
default: l(() => [
|
542
|
+
s(n(o(f).paymentStatusEnum.getEnumValue(
|
534
543
|
e.data.row.paymentStatus
|
535
544
|
)), 1)
|
536
545
|
]),
|
@@ -538,24 +547,24 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
538
547
|
}, 1024)) : p("", !0)
|
539
548
|
]),
|
540
549
|
m("div", null, [
|
541
|
-
s(n(
|
542
|
-
e.data.row.appraisesStatus === !1 ? (d(), i(
|
550
|
+
s(n(a.$t("orderInfo.appraisesStatus")) + ": ", 1),
|
551
|
+
e.data.row.appraisesStatus === !1 ? (d(), i(_, {
|
543
552
|
key: 0,
|
544
553
|
type: "info"
|
545
554
|
}, {
|
546
|
-
default:
|
547
|
-
s(n(
|
555
|
+
default: l(() => [
|
556
|
+
s(n(o(f).appraisesStatus.getValue(
|
548
557
|
e.data.row.appraisesStatus
|
549
558
|
)), 1)
|
550
559
|
]),
|
551
560
|
_: 2
|
552
561
|
}, 1024)) : p("", !0),
|
553
|
-
e.data.row.appraisesStatus === !0 ? (d(), i(
|
562
|
+
e.data.row.appraisesStatus === !0 ? (d(), i(_, {
|
554
563
|
key: 1,
|
555
564
|
type: "success"
|
556
565
|
}, {
|
557
|
-
default:
|
558
|
-
s(n(
|
566
|
+
default: l(() => [
|
567
|
+
s(n(o(f).appraisesStatus.getValue(
|
559
568
|
e.data.row.appraisesStatus
|
560
569
|
)), 1)
|
561
570
|
]),
|
@@ -563,46 +572,46 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
563
572
|
}, 1024)) : p("", !0)
|
564
573
|
])
|
565
574
|
]),
|
566
|
-
salesPrice:
|
575
|
+
salesPrice: l((e) => [
|
567
576
|
m("div", null, [
|
568
|
-
m("div", null, n(
|
569
|
-
m("div", null, n(
|
570
|
-
m("div", null, n(
|
571
|
-
m("div",
|
577
|
+
m("div", null, n(a.$t("orderInfo.salesPrice")) + ": ¥" + n(e.data.row.salesPrice), 1),
|
578
|
+
m("div", null, n(a.$t("orderInfo.freightPrice")) + ": +¥" + n(e.data.row.freightPrice), 1),
|
579
|
+
m("div", null, n(a.$t("orderInfo.paymentCouponPrice")) + ": -¥" + n(e.data.row.paymentCouponPrice), 1),
|
580
|
+
m("div", Ye, n(a.$t("orderInfo.orderPrice")) + ": ¥" + n(e.data.row.orderPrice), 1)
|
572
581
|
])
|
573
582
|
]),
|
574
|
-
paymentWay:
|
575
|
-
m("span", null, n(
|
583
|
+
paymentWay: l((e) => [
|
584
|
+
m("span", null, n(o(f).paymentWayEnum.getEnumValue(e.data.row.paymentWay)), 1)
|
576
585
|
]),
|
577
|
-
deliveryWay:
|
578
|
-
m("span", null, n(
|
586
|
+
deliveryWay: l((e) => [
|
587
|
+
m("span", null, n(o(f).deliveryWayEnum.getEnumValue(e.data.row.deliveryWay)), 1)
|
579
588
|
]),
|
580
|
-
operation:
|
589
|
+
operation: l((e) => [
|
581
590
|
N((d(), k("span", {
|
582
591
|
class: "el-button-color",
|
583
|
-
onClick: (
|
592
|
+
onClick: (S) => le(e.data.row)
|
584
593
|
}, [
|
585
|
-
s(n(
|
586
|
-
], 8,
|
587
|
-
[
|
594
|
+
s(n(a.$t("common.view")), 1)
|
595
|
+
], 8, Ae)), [
|
596
|
+
[P, ["order:order_info:view"]]
|
588
597
|
]),
|
589
|
-
e.data.row.orderStatus ===
|
598
|
+
e.data.row.orderStatus === o(w).UNPOST ? N((d(), k("span", {
|
590
599
|
key: 0,
|
591
600
|
class: "el-button-color dropdown-left",
|
592
|
-
onClick: (
|
601
|
+
onClick: (S) => ee(e.data.row)
|
593
602
|
}, [
|
594
|
-
s(n(
|
595
|
-
], 8,
|
596
|
-
[
|
603
|
+
s(n(a.$t("orderInfo.deliver")), 1)
|
604
|
+
], 8, We)), [
|
605
|
+
[P, ["order:order_info:delivery"]]
|
597
606
|
]) : p("", !0),
|
598
|
-
e.data.row.orderStatus ===
|
607
|
+
e.data.row.orderStatus === o(w).UNPAY ? N((d(), k("span", {
|
599
608
|
key: 1,
|
600
609
|
class: "el-button-color dropdown-left",
|
601
|
-
onClick: (
|
610
|
+
onClick: (S) => oe(e.data.row)
|
602
611
|
}, [
|
603
|
-
s(n(
|
604
|
-
], 8,
|
605
|
-
[
|
612
|
+
s(n(a.$t("orderInfo.cancel")), 1)
|
613
|
+
], 8, Qe)), [
|
614
|
+
[P, ["order:order_info:cancel"]]
|
606
615
|
]) : p("", !0)
|
607
616
|
]),
|
608
617
|
_: 1
|
@@ -613,41 +622,41 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
613
622
|
]),
|
614
623
|
_: 1
|
615
624
|
}),
|
616
|
-
(d(!0), k(
|
617
|
-
key:
|
625
|
+
(d(!0), k(j, null, K(o(f).orderStatusEnum.values, (e, S) => (d(), i(Q, {
|
626
|
+
key: S,
|
618
627
|
label: e.value,
|
619
|
-
name:
|
628
|
+
name: S.toString()
|
620
629
|
}, {
|
621
|
-
default:
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
630
|
+
default: l(() => [
|
631
|
+
b.value === "0" ? (d(), i($e, { key: 0 })) : p("", !0),
|
632
|
+
b.value === "1" ? (d(), i(Ne, { key: 1 })) : p("", !0),
|
633
|
+
b.value === "2" ? (d(), i(Ee, { key: 2 })) : p("", !0),
|
634
|
+
b.value === "3" ? (d(), i(Te, { key: 3 })) : p("", !0),
|
635
|
+
b.value === "4" ? (d(), i(Pe, { key: 4 })) : p("", !0)
|
627
636
|
]),
|
628
637
|
_: 2
|
629
638
|
}, 1032, ["label", "name"]))), 128))
|
630
639
|
]),
|
631
640
|
_: 1
|
632
641
|
}, 8, ["modelValue"]),
|
633
|
-
$.value.visible ? (d(), i(
|
642
|
+
$.value.visible ? (d(), i(Ve, {
|
634
643
|
key: 0,
|
635
644
|
modelValue: $.value.visible,
|
636
645
|
"onUpdate:modelValue": t[21] || (t[21] = (e) => $.value.visible = e),
|
637
646
|
title: $.value.title,
|
638
|
-
"entity-key":
|
639
|
-
"entity-model":
|
640
|
-
onRefresh:
|
647
|
+
"entity-key": o(U),
|
648
|
+
"entity-model": o(R),
|
649
|
+
onRefresh: W,
|
641
650
|
width: "500px"
|
642
651
|
}, null, 8, ["modelValue", "title", "entity-key", "entity-model"])) : p("", !0),
|
643
|
-
|
652
|
+
T.value.visible ? (d(), i(he, {
|
644
653
|
key: 1,
|
645
|
-
modelValue:
|
646
|
-
"onUpdate:modelValue": t[22] || (t[22] = (e) =>
|
647
|
-
title:
|
648
|
-
"entity-key":
|
649
|
-
"entity-model":
|
650
|
-
onRefresh:
|
654
|
+
modelValue: T.value.visible,
|
655
|
+
"onUpdate:modelValue": t[22] || (t[22] = (e) => T.value.visible = e),
|
656
|
+
title: T.value.title,
|
657
|
+
"entity-key": o(U),
|
658
|
+
"entity-model": o(R),
|
659
|
+
onRefresh: W,
|
651
660
|
width: "500px"
|
652
661
|
}, null, 8, ["modelValue", "title", "entity-key", "entity-model"])) : p("", !0)
|
653
662
|
]);
|
@@ -655,5 +664,5 @@ const Ee = { class: "app-container" }, Pe = { class: "search-container" }, Te =
|
|
655
664
|
}
|
656
665
|
});
|
657
666
|
export {
|
658
|
-
|
667
|
+
lt as default
|
659
668
|
};
|
package/dist/index.mjs
CHANGED
@@ -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-
|
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-DiPfhbtx.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
|
}
|