xyvcard-order 0.0.5 → 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-CL3mlOnd.mjs → index-BGDa_EK1.mjs} +158 -126
- package/dist/{index-Dvf0V5EP.mjs → index-BnhfSp6U.mjs} +8 -0
- package/dist/index.mjs +136 -132
- 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/{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/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 +4 -0
- package/package.json +2 -2
@@ -1,27 +1,28 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import { _ as
|
7
|
-
import {
|
8
|
-
|
1
|
+
import { defineComponent as oe, getCurrentInstance as te, ref as R, reactive as re, resolveComponent as i, resolveDirective as ne, openBlock as p, createElementBlock as D, createElementVNode as s, createVNode as t, withCtx as r, unref as n, withKeys as $, createTextVNode as C, toDisplayString as a, withDirectives as I, createBlock as _, isRef as M, createCommentVNode as N } from "vue";
|
2
|
+
import { ElMessageBox as ae, ElMessage as j } from "element-plus";
|
3
|
+
import { useTableHooks as de } from "jmash-core";
|
4
|
+
import { useI18n as ue } from "vue-i18n";
|
5
|
+
import { o as q } from "./index-BnhfSp6U.mjs";
|
6
|
+
import { _ as se } from "./review.vue_vue_type_script_setup_true_lang-BER9b6r2.mjs";
|
7
|
+
import { _ as ie } from "./info.vue_vue_type_script_setup_true_lang-CHaAOFGr.mjs";
|
8
|
+
import { D as w } from "./index-suIgymdy.mjs";
|
9
|
+
const me = { class: "app-container" }, fe = { class: "search-container" }, pe = { class: "orderPrice" }, ce = ["onClick"], ve = ["onClick"], ye = ["onClick"], be = ["onClick"], Te = /* @__PURE__ */ oe({
|
9
10
|
__name: "index",
|
10
|
-
setup(
|
11
|
-
const { t:
|
12
|
-
|
13
|
-
const k =
|
11
|
+
setup(Re) {
|
12
|
+
const { t: m } = ue(), { proxy: z } = te();
|
13
|
+
w.shopBizDict.useValues();
|
14
|
+
const k = R([]), d = R({
|
14
15
|
curPage: 1,
|
15
16
|
pageSize: 10
|
16
17
|
}), {
|
17
18
|
tableHooks: u,
|
18
|
-
multipleTableRef:
|
19
|
-
queryFormRef:
|
20
|
-
listLoading:
|
21
|
-
tableData:
|
22
|
-
total:
|
23
|
-
} =
|
24
|
-
let v =
|
19
|
+
multipleTableRef: B,
|
20
|
+
queryFormRef: Q,
|
21
|
+
listLoading: A,
|
22
|
+
tableData: K,
|
23
|
+
total: h
|
24
|
+
} = de(m, q, d);
|
25
|
+
let v = R([
|
25
26
|
{
|
26
27
|
label: "orderInfo.shopName",
|
27
28
|
prop: "shopId",
|
@@ -80,64 +81,91 @@ const ue = { class: "app-container" }, se = { class: "search-container" }, ie =
|
|
80
81
|
},
|
81
82
|
{
|
82
83
|
label: "common.operate",
|
83
|
-
width: "
|
84
|
+
width: "250",
|
84
85
|
slotName: "operation",
|
85
86
|
columnType: "slot",
|
86
87
|
fixed: "right",
|
87
88
|
isColumn: !0
|
88
89
|
}
|
89
90
|
]);
|
90
|
-
const
|
91
|
-
title:
|
91
|
+
const y = R({
|
92
|
+
title: m("orderRefunds.refundOperation"),
|
92
93
|
visible: !1
|
93
|
-
}), b =
|
94
|
-
title:
|
94
|
+
}), b = R({
|
95
|
+
title: m("orderRefunds.info"),
|
95
96
|
visible: !1
|
96
97
|
});
|
97
|
-
let
|
98
|
-
function
|
99
|
-
|
98
|
+
let g = re({});
|
99
|
+
function L(o) {
|
100
|
+
g.refundId = o.refundId, y.value.visible = !0;
|
100
101
|
}
|
101
|
-
|
102
|
-
|
102
|
+
const H = async (o) => {
|
103
|
+
ae.confirm(
|
104
|
+
m("orderRefunds.refundConfirm"),
|
105
|
+
m("orderRefunds.refund"),
|
106
|
+
{
|
107
|
+
confirmButtonText: m("common.confirm"),
|
108
|
+
cancelButtonText: m("common.cancel"),
|
109
|
+
type: "warning"
|
110
|
+
}
|
111
|
+
).then(() => {
|
112
|
+
q.refund({
|
113
|
+
refundId: o.refundId,
|
114
|
+
requestId: Math.random() * 10 + ""
|
115
|
+
}).then((l) => {
|
116
|
+
l.status === 200 && (j({
|
117
|
+
message: m("orderRefunds.refundSuccess"),
|
118
|
+
type: "success"
|
119
|
+
}), u.handleQuery());
|
120
|
+
}).catch((l) => {
|
121
|
+
console.error("Error canceling order:", l), j({
|
122
|
+
message: m("orderRefunds.refundFailed"),
|
123
|
+
type: "error"
|
124
|
+
});
|
125
|
+
});
|
126
|
+
}).catch(() => {
|
127
|
+
});
|
128
|
+
};
|
129
|
+
function O(o) {
|
130
|
+
g.refundId = o.refundId, b.value.visible = !0;
|
103
131
|
}
|
104
|
-
function
|
105
|
-
d.value.startCreateTime =
|
132
|
+
function F(o) {
|
133
|
+
d.value.startCreateTime = o[0], d.value.endCreateTime = o[1];
|
106
134
|
}
|
107
|
-
function
|
135
|
+
function W() {
|
108
136
|
k.value = [], d.value.startCreateTime = "", d.value.endCreateTime = "", u.resetQuery();
|
109
137
|
}
|
110
|
-
function
|
111
|
-
u.selectionRows.value =
|
138
|
+
function G(o) {
|
139
|
+
u.selectionRows.value = o;
|
112
140
|
}
|
113
|
-
function
|
114
|
-
|
141
|
+
function Y(o) {
|
142
|
+
o && u.getList();
|
115
143
|
}
|
116
|
-
return u.getList(), (
|
117
|
-
const
|
118
|
-
return p(), D("div",
|
119
|
-
|
120
|
-
|
144
|
+
return u.getList(), (o, l) => {
|
145
|
+
const E = i("jmash-select"), c = i("el-form-item"), f = i("el-col"), U = i("el-input"), V = i("el-row"), J = i("el-date-picker"), T = i("el-button"), X = i("el-form"), Z = i("jmash-column-select"), x = i("jmash-table"), ee = i("jmash-pagination"), le = i("el-card"), P = ne("hasPerm");
|
146
|
+
return p(), D("div", me, [
|
147
|
+
s("div", fe, [
|
148
|
+
t(X, {
|
121
149
|
ref_key: "queryFormRef",
|
122
|
-
ref:
|
150
|
+
ref: Q,
|
123
151
|
model: d.value,
|
124
152
|
inline: !0
|
125
153
|
}, {
|
126
154
|
default: r(() => [
|
127
|
-
|
155
|
+
t(V, null, {
|
128
156
|
default: r(() => [
|
129
|
-
|
157
|
+
t(f, { span: 6 }, {
|
130
158
|
default: r(() => [
|
131
|
-
|
132
|
-
label:
|
159
|
+
t(c, {
|
160
|
+
label: o.$t("orderRefunds.shopName"),
|
133
161
|
prop: "shopId"
|
134
162
|
}, {
|
135
163
|
default: r(() => [
|
136
|
-
|
164
|
+
t(E, {
|
137
165
|
modelValue: d.value.shopId,
|
138
166
|
"onUpdate:modelValue": l[0] || (l[0] = (e) => d.value.shopId = e),
|
139
|
-
data: n(
|
140
|
-
placeholder:
|
167
|
+
data: n(w).shopBizDict.values,
|
168
|
+
placeholder: o.$t("orderRefunds.shopNameRequired"),
|
141
169
|
clearable: "",
|
142
170
|
onKeyup: l[1] || (l[1] = $((e) => n(u).handleQuery(), ["enter"]))
|
143
171
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
@@ -147,17 +175,17 @@ const ue = { class: "app-container" }, se = { class: "search-container" }, ie =
|
|
147
175
|
]),
|
148
176
|
_: 1
|
149
177
|
}),
|
150
|
-
|
178
|
+
t(f, { span: 6 }, {
|
151
179
|
default: r(() => [
|
152
|
-
|
153
|
-
label:
|
180
|
+
t(c, {
|
181
|
+
label: o.$t("orderRefunds.refundCode"),
|
154
182
|
prop: "likeOrderCode"
|
155
183
|
}, {
|
156
184
|
default: r(() => [
|
157
|
-
|
185
|
+
t(U, {
|
158
186
|
modelValue: d.value.likeOrderCode,
|
159
187
|
"onUpdate:modelValue": l[2] || (l[2] = (e) => d.value.likeOrderCode = e),
|
160
|
-
placeholder:
|
188
|
+
placeholder: o.$t("orderRefunds.refundCodeRequired"),
|
161
189
|
clearable: "",
|
162
190
|
onKeyup: l[3] || (l[3] = $((e) => n(u).handleQuery(), ["enter"])),
|
163
191
|
class: "!w-[203px]"
|
@@ -168,17 +196,17 @@ const ue = { class: "app-container" }, se = { class: "search-container" }, ie =
|
|
168
196
|
]),
|
169
197
|
_: 1
|
170
198
|
}),
|
171
|
-
|
199
|
+
t(f, { span: 6 }, {
|
172
200
|
default: r(() => [
|
173
|
-
|
174
|
-
label:
|
201
|
+
t(c, {
|
202
|
+
label: o.$t("orderRefunds.spuName"),
|
175
203
|
prop: "likeSpuName"
|
176
204
|
}, {
|
177
205
|
default: r(() => [
|
178
|
-
|
206
|
+
t(U, {
|
179
207
|
modelValue: d.value.likeSpuName,
|
180
208
|
"onUpdate:modelValue": l[4] || (l[4] = (e) => d.value.likeSpuName = e),
|
181
|
-
placeholder:
|
209
|
+
placeholder: o.$t("orderRefunds.spuNameRequired"),
|
182
210
|
clearable: "",
|
183
211
|
onKeyup: l[5] || (l[5] = $((e) => n(u).handleQuery(), ["enter"])),
|
184
212
|
class: "!w-[203px]"
|
@@ -189,18 +217,18 @@ const ue = { class: "app-container" }, se = { class: "search-container" }, ie =
|
|
189
217
|
]),
|
190
218
|
_: 1
|
191
219
|
}),
|
192
|
-
|
220
|
+
t(f, { span: 6 }, {
|
193
221
|
default: r(() => [
|
194
|
-
|
195
|
-
label:
|
222
|
+
t(c, {
|
223
|
+
label: o.$t("orderRefunds.refundStatus"),
|
196
224
|
prop: "refundStatus"
|
197
225
|
}, {
|
198
226
|
default: r(() => [
|
199
|
-
|
227
|
+
t(E, {
|
200
228
|
modelValue: d.value.refundStatus,
|
201
229
|
"onUpdate:modelValue": l[6] || (l[6] = (e) => d.value.refundStatus = e),
|
202
|
-
data: n(
|
203
|
-
placeholder:
|
230
|
+
data: n(w).refundApplyEnum.values,
|
231
|
+
placeholder: o.$t("orderRefunds.refundStatusRequired"),
|
204
232
|
clearable: "",
|
205
233
|
onKeyup: l[7] || (l[7] = $((e) => n(u).handleQuery(), ["enter"]))
|
206
234
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
@@ -213,25 +241,25 @@ const ue = { class: "app-container" }, se = { class: "search-container" }, ie =
|
|
213
241
|
]),
|
214
242
|
_: 1
|
215
243
|
}),
|
216
|
-
|
244
|
+
t(V, null, {
|
217
245
|
default: r(() => [
|
218
|
-
|
246
|
+
t(f, { span: 6 }, {
|
219
247
|
default: r(() => [
|
220
|
-
|
221
|
-
label:
|
248
|
+
t(c, {
|
249
|
+
label: o.$t("orderRefunds.refundsTime"),
|
222
250
|
prop: "startCreateTime"
|
223
251
|
}, {
|
224
252
|
default: r(() => [
|
225
|
-
|
253
|
+
t(J, {
|
226
254
|
modelValue: k.value,
|
227
255
|
"onUpdate:modelValue": l[8] || (l[8] = (e) => k.value = e),
|
228
256
|
class: "dropdown-left",
|
229
257
|
type: "daterange",
|
230
|
-
"start-placeholder":
|
231
|
-
"end-placeholder":
|
258
|
+
"start-placeholder": o.$t("orderRefunds.startCreateTime"),
|
259
|
+
"end-placeholder": o.$t("orderRefunds.endCreateTime"),
|
232
260
|
format: "YYYY-MM-DD",
|
233
261
|
"value-format": "YYYY-MM-DD",
|
234
|
-
onChange:
|
262
|
+
onChange: F
|
235
263
|
}, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
|
236
264
|
]),
|
237
265
|
_: 1
|
@@ -239,22 +267,22 @@ const ue = { class: "app-container" }, se = { class: "search-container" }, ie =
|
|
239
267
|
]),
|
240
268
|
_: 1
|
241
269
|
}),
|
242
|
-
|
270
|
+
t(f, { span: 18 }, {
|
243
271
|
default: r(() => [
|
244
|
-
|
272
|
+
t(c, { class: "search-btn" }, {
|
245
273
|
default: r(() => [
|
246
|
-
|
274
|
+
t(T, {
|
247
275
|
type: "primary",
|
248
276
|
onClick: l[9] || (l[9] = (e) => n(u).handleQuery())
|
249
277
|
}, {
|
250
278
|
default: r(() => [
|
251
|
-
|
279
|
+
C(a(o.$t("common.search")), 1)
|
252
280
|
]),
|
253
281
|
_: 1
|
254
282
|
}),
|
255
|
-
|
283
|
+
t(T, { onClick: W }, {
|
256
284
|
default: r(() => [
|
257
|
-
|
285
|
+
C(a(o.$t("common.reset")), 1)
|
258
286
|
]),
|
259
287
|
_: 1
|
260
288
|
})
|
@@ -270,23 +298,23 @@ const ue = { class: "app-container" }, se = { class: "search-container" }, ie =
|
|
270
298
|
]),
|
271
299
|
_: 1
|
272
300
|
}, 8, ["model"]),
|
273
|
-
l[18] || (l[18] =
|
301
|
+
l[18] || (l[18] = s("div", { class: "clear" }, null, -1))
|
274
302
|
]),
|
275
|
-
|
303
|
+
t(le, {
|
276
304
|
shadow: "never",
|
277
305
|
class: "table-container"
|
278
306
|
}, {
|
279
307
|
header: r(() => [
|
280
|
-
|
308
|
+
t(V, null, {
|
281
309
|
default: r(() => [
|
282
|
-
|
310
|
+
t(f, { span: 17 }, {
|
283
311
|
default: r(() => [
|
284
|
-
|
312
|
+
I((p(), _(T, {
|
285
313
|
type: "primary",
|
286
314
|
onClick: l[10] || (l[10] = (e) => n(u).deleteRecords())
|
287
315
|
}, {
|
288
316
|
default: r(() => [
|
289
|
-
|
317
|
+
C(a(o.$t("common.batchDelete")), 1)
|
290
318
|
]),
|
291
319
|
_: 1
|
292
320
|
})), [
|
@@ -295,14 +323,14 @@ const ue = { class: "app-container" }, se = { class: "search-container" }, ie =
|
|
295
323
|
]),
|
296
324
|
_: 1
|
297
325
|
}),
|
298
|
-
|
326
|
+
t(f, {
|
299
327
|
span: 7,
|
300
328
|
class: "container-float"
|
301
329
|
}, {
|
302
330
|
default: r(() => [
|
303
|
-
|
331
|
+
t(Z, {
|
304
332
|
modelValue: n(v),
|
305
|
-
"onUpdate:modelValue": l[11] || (l[11] = (e) =>
|
333
|
+
"onUpdate:modelValue": l[11] || (l[11] = (e) => M(v) ? v.value = e : v = e),
|
306
334
|
"label-name": "order/order-refunds"
|
307
335
|
}, null, 8, ["modelValue"])
|
308
336
|
]),
|
@@ -313,10 +341,10 @@ const ue = { class: "app-container" }, se = { class: "search-container" }, ie =
|
|
313
341
|
})
|
314
342
|
]),
|
315
343
|
footer: r(() => [
|
316
|
-
n(
|
344
|
+
n(h) > 0 ? (p(), _(ee, {
|
317
345
|
key: 0,
|
318
|
-
total: n(
|
319
|
-
"onUpdate:total": l[12] || (l[12] = (e) =>
|
346
|
+
total: n(h),
|
347
|
+
"onUpdate:total": l[12] || (l[12] = (e) => M(h) ? h.value = e : null),
|
320
348
|
"current-page": d.value.curPage,
|
321
349
|
"onUpdate:currentPage": l[13] || (l[13] = (e) => d.value.curPage = e),
|
322
350
|
"page-size": d.value.pageSize,
|
@@ -325,77 +353,81 @@ const ue = { class: "app-container" }, se = { class: "search-container" }, ie =
|
|
325
353
|
}, null, 8, ["total", "current-page", "page-size"])) : N("", !0)
|
326
354
|
]),
|
327
355
|
default: r(() => [
|
328
|
-
|
356
|
+
t(x, {
|
329
357
|
ref_key: "multipleTableRef",
|
330
|
-
ref:
|
358
|
+
ref: B,
|
331
359
|
"row-key": "refundId",
|
332
|
-
"list-loading": n(
|
333
|
-
data: n(
|
360
|
+
"list-loading": n(A),
|
361
|
+
data: n(K),
|
334
362
|
"table-label": n(v),
|
335
|
-
onSelectionChange:
|
363
|
+
onSelectionChange: G
|
336
364
|
}, {
|
337
365
|
createTime: r((e) => [
|
338
|
-
|
366
|
+
s("span", null, a(n(z).$moment.formatDate(
|
339
367
|
e.data.row.createTime,
|
340
368
|
"YYYY-MM-DD HH:mm:ss"
|
341
369
|
)), 1)
|
342
370
|
]),
|
343
371
|
order: r((e) => [
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
372
|
+
s("div", null, [
|
373
|
+
s("div", null, a(o.$t("orderRefunds.orderCode")) + ":" + a(e.data.row.orderCode), 1),
|
374
|
+
s("div", null, a(o.$t("orderRefunds.orderPrice")) + ":¥" + a(e.data.row.orderPrice), 1),
|
375
|
+
s("div", null, a(o.$t("orderRefunds.freightPrice")) + ":+¥" + a(e.data.row.freightPrice), 1),
|
376
|
+
s("div", null, a(o.$t("orderRefunds.paymentCouponPrice")) + ":-¥" + a(e.data.row.paymentCouponPrice), 1),
|
377
|
+
s("div", pe, a(o.$t("orderRefunds.paidPrice")) + ": " + a(e.data.row.orderPrice + e.data.row.freightPrice - e.data.row.paymentCouponPrice), 1),
|
378
|
+
s("div", null, a(o.$t("orderRefunds.paymentWay")) + ": " + a(n(w).paymentWayEnum.getEnumValue(e.data.row.paymentWay)), 1)
|
351
379
|
])
|
352
380
|
]),
|
353
381
|
refundStatus: r((e) => [
|
354
|
-
|
382
|
+
s("span", null, a(n(w).refundApplyEnum.getEnumValue(e.data.row.status)), 1)
|
355
383
|
]),
|
356
384
|
operation: r((e) => [
|
357
|
-
|
385
|
+
I((p(), D("span", {
|
358
386
|
class: "el-button-color dropdown-left",
|
359
|
-
onClick: (
|
387
|
+
onClick: (S) => n(u).deleteRecord(e.data.row)
|
360
388
|
}, [
|
361
|
-
|
362
|
-
], 8,
|
389
|
+
C(a(o.$t("common.delete")), 1)
|
390
|
+
], 8, ce)), [
|
363
391
|
[P, ["order:order_refunds:delete"]]
|
364
392
|
]),
|
365
|
-
|
393
|
+
I((p(), D("span", {
|
366
394
|
class: "el-button-color dropdown-left",
|
367
|
-
onClick: (
|
395
|
+
onClick: (S) => O(e.data.row)
|
368
396
|
}, [
|
369
|
-
|
370
|
-
], 8,
|
397
|
+
C(a(o.$t("common.view")), 1)
|
398
|
+
], 8, ve)), [
|
371
399
|
[P, ["order:order_refunds:view"]]
|
372
400
|
]),
|
373
|
-
|
401
|
+
s("span", {
|
402
|
+
class: "el-button-color dropdown-left",
|
403
|
+
onClick: (S) => L(e.data.row)
|
404
|
+
}, a(o.$t("orderRefunds.refundReview")), 9, ye),
|
405
|
+
s("span", {
|
374
406
|
class: "el-button-color dropdown-left",
|
375
|
-
onClick: (
|
376
|
-
}, a(
|
407
|
+
onClick: (S) => H(e.data.row)
|
408
|
+
}, a(o.$t("orderRefunds.refund")), 9, be)
|
377
409
|
]),
|
378
410
|
_: 1
|
379
411
|
}, 8, ["list-loading", "data", "table-label"])
|
380
412
|
]),
|
381
413
|
_: 1
|
382
414
|
}),
|
383
|
-
|
415
|
+
y.value.visible ? (p(), _(se, {
|
384
416
|
key: 0,
|
385
|
-
modelValue:
|
386
|
-
"onUpdate:modelValue": l[16] || (l[16] = (e) =>
|
387
|
-
title:
|
388
|
-
"entity-key": n(
|
389
|
-
onRefresh:
|
417
|
+
modelValue: y.value.visible,
|
418
|
+
"onUpdate:modelValue": l[16] || (l[16] = (e) => y.value.visible = e),
|
419
|
+
title: y.value.title,
|
420
|
+
"entity-key": n(g),
|
421
|
+
onRefresh: Y,
|
390
422
|
width: "800px"
|
391
423
|
}, null, 8, ["modelValue", "title", "entity-key"])) : N("", !0),
|
392
|
-
b.value.visible ? (p(),
|
424
|
+
b.value.visible ? (p(), _(ie, {
|
393
425
|
key: 1,
|
394
426
|
modelValue: b.value.visible,
|
395
427
|
"onUpdate:modelValue": l[17] || (l[17] = (e) => b.value.visible = e),
|
396
428
|
title: b.value.title,
|
397
|
-
"entity-key": n(
|
398
|
-
onRefresh:
|
429
|
+
"entity-key": n(g),
|
430
|
+
onRefresh: Y,
|
399
431
|
width: "600px"
|
400
432
|
}, null, 8, ["modelValue", "title", "entity-key"])) : N("", !0)
|
401
433
|
]);
|
@@ -403,5 +435,5 @@ const ue = { class: "app-container" }, se = { class: "search-container" }, ie =
|
|
403
435
|
}
|
404
436
|
});
|
405
437
|
export {
|
406
|
-
|
438
|
+
Te as default
|
407
439
|
};
|