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