xyvcard-order 0.0.1
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/README.md +51 -0
- package/dist/canceled-CUME6Usz.mjs +4 -0
- package/dist/canceled.vue_vue_type_script_setup_true_lang-EX4zYQSu.mjs +509 -0
- package/dist/change-CK1I7hL9.mjs +4 -0
- package/dist/change.vue_vue_type_script_setup_true_lang-DMUKqQVp.mjs +186 -0
- package/dist/completed-Cf86bOvD.mjs +4 -0
- package/dist/completed.vue_vue_type_script_setup_true_lang-DqIyhNKh.mjs +509 -0
- package/dist/constant-CWTD7ap0.mjs +24 -0
- package/dist/deliver-BQIcivCV.mjs +4 -0
- package/dist/deliver.vue_vue_type_script_setup_true_lang-_2HCD1vV.mjs +221 -0
- package/dist/edit-BtY-5_aq.mjs +4 -0
- package/dist/edit-CXp819Cl.mjs +4 -0
- package/dist/edit-CagPAsCc.mjs +4 -0
- package/dist/edit-DSlSQclm.mjs +4 -0
- package/dist/edit-DZTWE770.mjs +4 -0
- package/dist/edit-kb9Vbd0O.mjs +553 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BHG0mS0L.mjs +382 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BzhS3SvZ.mjs +488 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-Cgbqi1i7.mjs +516 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-DHkYd975.mjs +178 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-be-TDMci.mjs +684 -0
- package/dist/index-67kgHrd-.mjs +370 -0
- package/dist/index-BYkU3LYC.mjs +343 -0
- package/dist/index-CUO59YzZ.mjs +1275 -0
- package/dist/index-D-PNIrrr.mjs +55 -0
- package/dist/index-DMD0_mKi.mjs +673 -0
- package/dist/index-Dbp38ozL.mjs +350 -0
- package/dist/index-L15OdEOS.mjs +370 -0
- package/dist/index-Nw_g6g3T.mjs +80 -0
- package/dist/index-ZpOHqjUk.mjs +344 -0
- package/dist/index-w8CmEAxD.mjs +90 -0
- package/dist/index-xagR65a1.mjs +59 -0
- package/dist/index-zsqXCqfG.mjs +385 -0
- package/dist/index.mjs +2825 -0
- package/dist/info-6G1vmk51.mjs +369 -0
- package/dist/info-BWqDP7Q1.mjs +106 -0
- package/dist/style.css +1 -0
- package/dist/unpay-CqebDQ24.mjs +4 -0
- package/dist/unpay.vue_vue_type_script_setup_true_lang-Cq-l3JEe.mjs +3981 -0
- package/dist/unpost-vRTZyaW0.mjs +4 -0
- package/dist/unpost.vue_vue_type_script_setup_true_lang-CAd6DqNm.mjs +540 -0
- package/dist/unreceive-DUyGNC5h.mjs +4 -0
- package/dist/unreceive.vue_vue_type_script_setup_true_lang-DK1USH8c.mjs +509 -0
- package/dist/viewLogist-DdG4dbmo.mjs +4 -0
- package/dist/viewLogist.vue_vue_type_script_setup_true_lang-POKrzvX7.mjs +77 -0
- package/dts/src/App.vue.d.ts +2 -0
- package/dts/src/api/dict.d.ts +10 -0
- package/dts/src/api/index.d.ts +14 -0
- package/dts/src/api/order/order-bill/index.d.ts +20 -0
- package/dts/src/api/order/order-bill/types.d.ts +75 -0
- package/dts/src/api/order/order-info/index.d.ts +15 -0
- package/dts/src/api/order/order-info/types.d.ts +97 -0
- package/dts/src/api/order/order-item/index.d.ts +20 -0
- package/dts/src/api/order/order-item/types.d.ts +95 -0
- package/dts/src/api/order/order-logistics/index.d.ts +12 -0
- package/dts/src/api/order/order-logistics/types.d.ts +85 -0
- package/dts/src/api/order/order-pay-record/index.d.ts +20 -0
- package/dts/src/api/order/order-pay-record/types.d.ts +77 -0
- package/dts/src/api/order/order-refund-record/index.d.ts +20 -0
- package/dts/src/api/order/order-refund-record/types.d.ts +80 -0
- package/dts/src/api/order/order-refunds/index.d.ts +12 -0
- package/dts/src/api/order/order-refunds/types.d.ts +47 -0
- package/dts/src/api/shop/shop-info/index.d.ts +8 -0
- package/dts/src/api/shop/shop-info/types.d.ts +16 -0
- package/dts/src/components/EnumRadio/index.vue.d.ts +18 -0
- package/dts/src/constant.d.ts +28 -0
- package/dts/src/index.d.ts +6 -0
- package/dts/src/lang/index.d.ts +1 -0
- package/dts/src/lang/order/en.d.ts +2 -0
- package/dts/src/lang/order/zh-cn.d.ts +189 -0
- package/dts/src/main.d.ts +4 -0
- package/dts/src/permission.d.ts +1 -0
- package/dts/src/router/orderRouter.d.ts +4 -0
- package/dts/src/utils/commons.d.ts +10 -0
- package/dts/src/utils/momentPlugin.d.ts +5 -0
- package/dts/src/views/order/order-bill/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-bill/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/canceled.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/change.vue.d.ts +31 -0
- package/dts/src/views/order/order-info/completed.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/deliver.vue.d.ts +31 -0
- package/dts/src/views/order/order-info/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-info/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/info.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/unpay.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/unpost.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/unreceive.vue.d.ts +2 -0
- package/dts/src/views/order/order-info/viewLogist.vue.d.ts +27 -0
- package/dts/src/views/order/order-item/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-item/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-logistics/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-logistics/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-pay-record/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-pay-record/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-refund-record/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-refund-record/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-refunds/edit.vue.d.ts +22 -0
- package/dts/src/views/order/order-refunds/index.vue.d.ts +2 -0
- package/dts/src/views/order/order-refunds/info.vue.d.ts +2 -0
- package/package.json +57 -0
@@ -0,0 +1,344 @@
|
|
1
|
+
import { defineComponent as W, ref as k, reactive as V, resolveComponent as a, resolveDirective as X, openBlock as d, createElementBlock as h, createElementVNode as T, createVNode as i, withCtx as t, withKeys as Y, unref as r, createTextVNode as s, toDisplayString as u, withDirectives as y, createBlock as b, isRef as S, createCommentVNode as B } from "vue";
|
2
|
+
import { useTableHooks as Z } from "jmash-core";
|
3
|
+
import { useI18n as ee } from "vue-i18n";
|
4
|
+
import { o as le, _ as oe } from "./edit.vue_vue_type_script_setup_true_lang-BzhS3SvZ.mjs";
|
5
|
+
import "./constant-CWTD7ap0.mjs";
|
6
|
+
const te = { class: "app-container" }, re = { class: "search-container" }, ne = ["onClick"], ie = ["onClick"], be = /* @__PURE__ */ W({
|
7
|
+
__name: "index",
|
8
|
+
setup(ae) {
|
9
|
+
const { t: c } = ee(), m = k({}), {
|
10
|
+
tableHooks: n,
|
11
|
+
multipleTableRef: R,
|
12
|
+
queryFormRef: j,
|
13
|
+
listLoading: D,
|
14
|
+
tableData: E,
|
15
|
+
total: w
|
16
|
+
} = Z(c, le, m);
|
17
|
+
let _ = k([
|
18
|
+
{
|
19
|
+
label: "orderBill.billId",
|
20
|
+
prop: "billId",
|
21
|
+
width: "150",
|
22
|
+
sortable: "custom",
|
23
|
+
isColumn: !0
|
24
|
+
},
|
25
|
+
{
|
26
|
+
label: "orderBill.orderId",
|
27
|
+
prop: "orderId",
|
28
|
+
width: "150",
|
29
|
+
sortable: "custom",
|
30
|
+
isColumn: !0
|
31
|
+
},
|
32
|
+
{
|
33
|
+
label: "orderBill.billCode",
|
34
|
+
prop: "billCode",
|
35
|
+
width: "150",
|
36
|
+
sortable: "custom",
|
37
|
+
isColumn: !0
|
38
|
+
},
|
39
|
+
{
|
40
|
+
label: "orderBill.billType",
|
41
|
+
prop: "billType",
|
42
|
+
width: "150",
|
43
|
+
sortable: "custom",
|
44
|
+
isColumn: !0
|
45
|
+
},
|
46
|
+
{
|
47
|
+
label: "orderBill.billPrice",
|
48
|
+
prop: "billPrice",
|
49
|
+
width: "150",
|
50
|
+
sortable: "custom",
|
51
|
+
isColumn: !0
|
52
|
+
},
|
53
|
+
{
|
54
|
+
label: "orderBill.couponPrice",
|
55
|
+
prop: "couponPrice",
|
56
|
+
width: "150",
|
57
|
+
sortable: "custom",
|
58
|
+
isColumn: !0
|
59
|
+
},
|
60
|
+
{
|
61
|
+
label: "orderBill.paymentPrice",
|
62
|
+
prop: "paymentPrice",
|
63
|
+
width: "150",
|
64
|
+
sortable: "custom",
|
65
|
+
isColumn: !0
|
66
|
+
},
|
67
|
+
{
|
68
|
+
label: "orderBill.billStatus",
|
69
|
+
prop: "billStatus",
|
70
|
+
width: "150",
|
71
|
+
sortable: "custom",
|
72
|
+
isColumn: !0
|
73
|
+
},
|
74
|
+
{
|
75
|
+
label: "orderBill.createTime",
|
76
|
+
prop: "createTime",
|
77
|
+
width: "150",
|
78
|
+
sortable: "custom",
|
79
|
+
isColumn: !0
|
80
|
+
},
|
81
|
+
{
|
82
|
+
label: "orderBill.paymentTime",
|
83
|
+
prop: "paymentTime",
|
84
|
+
width: "150",
|
85
|
+
sortable: "custom",
|
86
|
+
isColumn: !0
|
87
|
+
},
|
88
|
+
{
|
89
|
+
label: "common.operate",
|
90
|
+
width: "200",
|
91
|
+
slotName: "operation",
|
92
|
+
columnType: "slot",
|
93
|
+
fixed: "right",
|
94
|
+
isColumn: !0
|
95
|
+
}
|
96
|
+
]);
|
97
|
+
const p = k({
|
98
|
+
title: c("common.edit"),
|
99
|
+
visible: !1
|
100
|
+
}), C = k(!1);
|
101
|
+
let g = V({});
|
102
|
+
function U() {
|
103
|
+
g = V({}), p.value.title = c("common.add"), p.value.visible = !0;
|
104
|
+
}
|
105
|
+
function z(l) {
|
106
|
+
g.billId = l.billId, p.value.title = c("common.edit"), p.value.visible = !0;
|
107
|
+
}
|
108
|
+
function L(l) {
|
109
|
+
n.selectionRows.value = l;
|
110
|
+
}
|
111
|
+
function N(l) {
|
112
|
+
n.handleSort(l.prop, l.order);
|
113
|
+
}
|
114
|
+
function q(l) {
|
115
|
+
l && n.getList();
|
116
|
+
}
|
117
|
+
function K() {
|
118
|
+
C.value = !1;
|
119
|
+
}
|
120
|
+
function Q(l) {
|
121
|
+
l.updateMask = "", n.importExcel(l).then((e) => {
|
122
|
+
C.value = !1;
|
123
|
+
});
|
124
|
+
}
|
125
|
+
return n.getList(), (l, e) => {
|
126
|
+
const x = a("el-input"), I = a("el-form-item"), $ = a("el-col"), P = a("el-row"), f = a("el-button"), A = a("el-form"), F = a("jmash-column-select"), H = a("jmash-table"), M = a("jmash-pagination"), G = a("el-card"), J = a("jmash-import-upload"), v = X("hasPerm");
|
127
|
+
return d(), h("div", te, [
|
128
|
+
T("div", re, [
|
129
|
+
i(A, {
|
130
|
+
ref_key: "queryFormRef",
|
131
|
+
ref: j,
|
132
|
+
model: m.value,
|
133
|
+
inline: !0
|
134
|
+
}, {
|
135
|
+
default: t(() => [
|
136
|
+
i(P, null, {
|
137
|
+
default: t(() => [
|
138
|
+
i($, { span: 6 }, {
|
139
|
+
default: t(() => [
|
140
|
+
i(I, {
|
141
|
+
label: l.$t("orderBill.billId"),
|
142
|
+
prop: "billId"
|
143
|
+
}, {
|
144
|
+
default: t(() => [
|
145
|
+
i(x, {
|
146
|
+
modelValue: m.value.billId,
|
147
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => m.value.billId = o),
|
148
|
+
placeholder: l.$t("orderBill.billId"),
|
149
|
+
onKeyup: e[1] || (e[1] = Y((o) => r(n).handleQuery(), ["enter"])),
|
150
|
+
class: "!w-[203px]"
|
151
|
+
}, null, 8, ["modelValue", "placeholder"])
|
152
|
+
]),
|
153
|
+
_: 1
|
154
|
+
}, 8, ["label"])
|
155
|
+
]),
|
156
|
+
_: 1
|
157
|
+
})
|
158
|
+
]),
|
159
|
+
_: 1
|
160
|
+
}),
|
161
|
+
i(I, { class: "search-btn" }, {
|
162
|
+
default: t(() => [
|
163
|
+
i(f, {
|
164
|
+
type: "primary",
|
165
|
+
onClick: e[2] || (e[2] = (o) => r(n).handleQuery())
|
166
|
+
}, {
|
167
|
+
default: t(() => [
|
168
|
+
s(u(l.$t("common.search")), 1)
|
169
|
+
]),
|
170
|
+
_: 1
|
171
|
+
}),
|
172
|
+
i(f, {
|
173
|
+
onClick: e[3] || (e[3] = (o) => r(n).resetQuery())
|
174
|
+
}, {
|
175
|
+
default: t(() => [
|
176
|
+
s(u(l.$t("common.reset")), 1)
|
177
|
+
]),
|
178
|
+
_: 1
|
179
|
+
})
|
180
|
+
]),
|
181
|
+
_: 1
|
182
|
+
})
|
183
|
+
]),
|
184
|
+
_: 1
|
185
|
+
}, 8, ["model"]),
|
186
|
+
e[15] || (e[15] = T("div", { class: "clear" }, null, -1))
|
187
|
+
]),
|
188
|
+
i(G, {
|
189
|
+
shadow: "never",
|
190
|
+
class: "table-container"
|
191
|
+
}, {
|
192
|
+
header: t(() => [
|
193
|
+
i(P, null, {
|
194
|
+
default: t(() => [
|
195
|
+
i($, { span: 17 }, {
|
196
|
+
default: t(() => [
|
197
|
+
y((d(), b(f, {
|
198
|
+
type: "primary",
|
199
|
+
onClick: U
|
200
|
+
}, {
|
201
|
+
default: t(() => [
|
202
|
+
s(u(l.$t("common.add")), 1)
|
203
|
+
]),
|
204
|
+
_: 1
|
205
|
+
})), [
|
206
|
+
[v, ["order:order_bill:add"]]
|
207
|
+
]),
|
208
|
+
y((d(), b(f, {
|
209
|
+
type: "primary",
|
210
|
+
onClick: e[4] || (e[4] = (o) => r(n).deleteRecords())
|
211
|
+
}, {
|
212
|
+
default: t(() => [
|
213
|
+
s(u(l.$t("common.batchDelete")), 1)
|
214
|
+
]),
|
215
|
+
_: 1
|
216
|
+
})), [
|
217
|
+
[v, ["order:order_bill:delete"]]
|
218
|
+
])
|
219
|
+
]),
|
220
|
+
_: 1
|
221
|
+
}),
|
222
|
+
i($, {
|
223
|
+
span: 7,
|
224
|
+
class: "container-float"
|
225
|
+
}, {
|
226
|
+
default: t(() => [
|
227
|
+
y((d(), b(f, {
|
228
|
+
plain: "",
|
229
|
+
type: "primary",
|
230
|
+
onClick: e[5] || (e[5] = (o) => C.value = !0)
|
231
|
+
}, {
|
232
|
+
default: t(() => [
|
233
|
+
s(u(l.$t("common.import")), 1)
|
234
|
+
]),
|
235
|
+
_: 1
|
236
|
+
})), [
|
237
|
+
[v, ["order:order_bill:import"]]
|
238
|
+
]),
|
239
|
+
y((d(), b(f, {
|
240
|
+
plain: "",
|
241
|
+
type: "primary",
|
242
|
+
onClick: e[6] || (e[6] = (o) => r(n).handleExport(r(c)("order.orderBill.name")))
|
243
|
+
}, {
|
244
|
+
default: t(() => [
|
245
|
+
s(u(l.$t("common.export")), 1)
|
246
|
+
]),
|
247
|
+
_: 1
|
248
|
+
})), [
|
249
|
+
[v, ["order:order_bill:export"]]
|
250
|
+
]),
|
251
|
+
y((d(), b(f, {
|
252
|
+
plain: "",
|
253
|
+
type: "primary",
|
254
|
+
onClick: e[7] || (e[7] = (o) => r(n).handleExportPdf(r(c)("order.orderBill.name")))
|
255
|
+
}, {
|
256
|
+
default: t(() => [
|
257
|
+
s(u(l.$t("common.print")), 1)
|
258
|
+
]),
|
259
|
+
_: 1
|
260
|
+
})), [
|
261
|
+
[v, ["order:order_bill:print"]]
|
262
|
+
]),
|
263
|
+
i(F, {
|
264
|
+
modelValue: r(_),
|
265
|
+
"onUpdate:modelValue": e[8] || (e[8] = (o) => S(_) ? _.value = o : _ = o),
|
266
|
+
"label-name": "order/order-bill"
|
267
|
+
}, null, 8, ["modelValue"])
|
268
|
+
]),
|
269
|
+
_: 1
|
270
|
+
})
|
271
|
+
]),
|
272
|
+
_: 1
|
273
|
+
})
|
274
|
+
]),
|
275
|
+
footer: t(() => [
|
276
|
+
r(w) > 0 ? (d(), b(M, {
|
277
|
+
key: 0,
|
278
|
+
total: r(w),
|
279
|
+
"onUpdate:total": e[9] || (e[9] = (o) => S(w) ? w.value = o : null),
|
280
|
+
"current-page": m.value.curPage,
|
281
|
+
"onUpdate:currentPage": e[10] || (e[10] = (o) => m.value.curPage = o),
|
282
|
+
"page-size": m.value.pageSize,
|
283
|
+
"onUpdate:pageSize": e[11] || (e[11] = (o) => m.value.pageSize = o),
|
284
|
+
onPagination: e[12] || (e[12] = (o) => r(n).getList())
|
285
|
+
}, null, 8, ["total", "current-page", "page-size"])) : B("", !0)
|
286
|
+
]),
|
287
|
+
default: t(() => [
|
288
|
+
i(H, {
|
289
|
+
ref_key: "multipleTableRef",
|
290
|
+
ref: R,
|
291
|
+
"row-key": "billId",
|
292
|
+
"list-loading": r(D),
|
293
|
+
data: r(E),
|
294
|
+
"table-label": r(_),
|
295
|
+
onSelectionChange: L,
|
296
|
+
onSortChange: N
|
297
|
+
}, {
|
298
|
+
operation: t((o) => [
|
299
|
+
y((d(), h("span", {
|
300
|
+
class: "el-button-color",
|
301
|
+
onClick: (O) => z(o.data.row)
|
302
|
+
}, [
|
303
|
+
s(u(l.$t("common.edit")), 1)
|
304
|
+
], 8, ne)), [
|
305
|
+
[v, ["order:order_bill:update"]]
|
306
|
+
]),
|
307
|
+
y((d(), h("span", {
|
308
|
+
class: "el-button-color dropdown-left",
|
309
|
+
onClick: (O) => r(n).deleteRecord(o.data.row)
|
310
|
+
}, [
|
311
|
+
s(u(l.$t("common.delete")), 1)
|
312
|
+
], 8, ie)), [
|
313
|
+
[v, ["order:order_bill:delete"]]
|
314
|
+
])
|
315
|
+
]),
|
316
|
+
_: 1
|
317
|
+
}, 8, ["list-loading", "data", "table-label"])
|
318
|
+
]),
|
319
|
+
_: 1
|
320
|
+
}),
|
321
|
+
p.value.visible ? (d(), b(oe, {
|
322
|
+
key: 0,
|
323
|
+
modelValue: p.value.visible,
|
324
|
+
"onUpdate:modelValue": e[13] || (e[13] = (o) => p.value.visible = o),
|
325
|
+
title: p.value.title,
|
326
|
+
"entity-key": r(g),
|
327
|
+
onRefresh: q,
|
328
|
+
width: "900px"
|
329
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : B("", !0),
|
330
|
+
C.value ? (d(), b(J, {
|
331
|
+
key: 1,
|
332
|
+
"upload-visible": C.value,
|
333
|
+
"template-title": l.$t("sysUser.templateDownload"),
|
334
|
+
onTemplateDown: e[14] || (e[14] = (o) => r(n).downloadTemplate(r(c)("order.orderBill.name"))),
|
335
|
+
onImportEvents: Q,
|
336
|
+
onUploadClosed: K
|
337
|
+
}, null, 8, ["upload-visible", "template-title"])) : B("", !0)
|
338
|
+
]);
|
339
|
+
};
|
340
|
+
}
|
341
|
+
});
|
342
|
+
export {
|
343
|
+
be as default
|
344
|
+
};
|
@@ -0,0 +1,90 @@
|
|
1
|
+
import { useUserStore as t, clearEmpty as n, request as o } from "jmash-core";
|
2
|
+
import { q as d } from "./index-CUO59YzZ.mjs";
|
3
|
+
class a {
|
4
|
+
getKey(r) {
|
5
|
+
return {
|
6
|
+
orderId: r.orderId
|
7
|
+
};
|
8
|
+
}
|
9
|
+
// 查询翻页信息订单管理
|
10
|
+
findPage(r) {
|
11
|
+
r && (r.hasOrderStatus = r.orderStatus !== void 0, r.hasPaymentStatus = r.paymentStatus !== void 0);
|
12
|
+
const e = t().user.tenant;
|
13
|
+
return n(r), o({
|
14
|
+
url: "/v1/order/order_info/page/" + e,
|
15
|
+
method: "get",
|
16
|
+
params: r
|
17
|
+
});
|
18
|
+
}
|
19
|
+
// 查询列表信息订单管理
|
20
|
+
findList(r) {
|
21
|
+
const e = t().user.tenant;
|
22
|
+
return n(r), o({
|
23
|
+
url: "/v1/order/order_info/list/" + e,
|
24
|
+
method: "get",
|
25
|
+
params: r
|
26
|
+
});
|
27
|
+
}
|
28
|
+
// 查询订单管理
|
29
|
+
findById(r) {
|
30
|
+
const e = t().user.tenant;
|
31
|
+
return n(r), o({
|
32
|
+
url: "/v1/order/order_info/id/" + e + "/" + r.orderId,
|
33
|
+
method: "get"
|
34
|
+
});
|
35
|
+
}
|
36
|
+
// 发货
|
37
|
+
orderPost(r) {
|
38
|
+
const e = t().user.tenant;
|
39
|
+
return n(r), o({
|
40
|
+
url: "/v1/order/order_info/delivery/" + e,
|
41
|
+
method: "put",
|
42
|
+
data: r
|
43
|
+
});
|
44
|
+
}
|
45
|
+
// 改价
|
46
|
+
orderPrice(r) {
|
47
|
+
const e = t().user.tenant;
|
48
|
+
return n(r), o({
|
49
|
+
url: "/v1/order/order_info/price/" + e,
|
50
|
+
method: "put",
|
51
|
+
data: r
|
52
|
+
});
|
53
|
+
}
|
54
|
+
// 取消
|
55
|
+
cancel(r) {
|
56
|
+
const e = t().user.tenant;
|
57
|
+
return n(r), o({
|
58
|
+
url: "/v1/order/order_info/cancel/" + e,
|
59
|
+
method: "put",
|
60
|
+
data: r
|
61
|
+
});
|
62
|
+
}
|
63
|
+
// 修改收货地址
|
64
|
+
updateAddress(r) {
|
65
|
+
const e = t().user.tenant;
|
66
|
+
return n(r), o({
|
67
|
+
url: "/v1/order/order_info/address/" + e,
|
68
|
+
method: "put",
|
69
|
+
data: r
|
70
|
+
});
|
71
|
+
}
|
72
|
+
// 导出订单管理Excel文件
|
73
|
+
exportExcel(r) {
|
74
|
+
const e = t().user.tenant;
|
75
|
+
n(r);
|
76
|
+
const s = d.stringify(r, {
|
77
|
+
arrayFormat: "brackets",
|
78
|
+
allowDots: !0
|
79
|
+
});
|
80
|
+
return o({
|
81
|
+
url: "/v1/order/order_info/" + e + "/order_infos.xlsx?" + s,
|
82
|
+
method: "get",
|
83
|
+
responseType: "blob"
|
84
|
+
});
|
85
|
+
}
|
86
|
+
}
|
87
|
+
const l = new a();
|
88
|
+
export {
|
89
|
+
l as o
|
90
|
+
};
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { useUserStore as t, clearEmpty as n, request as d } from "jmash-core";
|
2
|
+
class o {
|
3
|
+
getKey(e) {
|
4
|
+
return {
|
5
|
+
refundId: e.refundId
|
6
|
+
};
|
7
|
+
}
|
8
|
+
// 查询翻页信息订单退款申请
|
9
|
+
findPage(e) {
|
10
|
+
e && (e.hasRefundStatus = e.refundStatus !== void 0);
|
11
|
+
const r = t().user.tenant;
|
12
|
+
return n(e), d({
|
13
|
+
url: "/v1/order/order_refunds/page/" + r,
|
14
|
+
method: "get",
|
15
|
+
params: e
|
16
|
+
});
|
17
|
+
}
|
18
|
+
// 查询列表信息订单退款申请
|
19
|
+
findList(e) {
|
20
|
+
const r = t().user.tenant;
|
21
|
+
return n(e), d({
|
22
|
+
url: "/v1/order/order_refunds/list/" + r,
|
23
|
+
method: "get",
|
24
|
+
params: e
|
25
|
+
});
|
26
|
+
}
|
27
|
+
// 查询订单退款申请
|
28
|
+
findById(e) {
|
29
|
+
const r = t().user.tenant;
|
30
|
+
return n(e), d({
|
31
|
+
url: "/v1/order/order_refunds/id/" + r + "/" + e.refundId,
|
32
|
+
method: "get"
|
33
|
+
});
|
34
|
+
}
|
35
|
+
// 删除订单退款申请
|
36
|
+
delete(e) {
|
37
|
+
return e.tenant = t().user.tenant, n(e), d({
|
38
|
+
url: "/v1/order/order_refunds/id",
|
39
|
+
method: "delete",
|
40
|
+
params: e
|
41
|
+
});
|
42
|
+
}
|
43
|
+
// 批量删除订单退款申请
|
44
|
+
batchDelete(e) {
|
45
|
+
const r = e.map((a) => a.refundId), s = {
|
46
|
+
tenant: t().user.tenant,
|
47
|
+
refundId: r
|
48
|
+
};
|
49
|
+
return n(s), d({
|
50
|
+
url: "/v1/order/order_refunds/batch",
|
51
|
+
method: "put",
|
52
|
+
data: s
|
53
|
+
});
|
54
|
+
}
|
55
|
+
}
|
56
|
+
const i = new o();
|
57
|
+
export {
|
58
|
+
i as o
|
59
|
+
};
|