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