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