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