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/dist/index-ax4ZoEdg.mjs
DELETED
@@ -1,373 +0,0 @@
|
|
1
|
-
import { defineComponent as ee, getCurrentInstance as ae, ref as c, reactive as le, resolveComponent as n, resolveDirective as oe, createElementBlock as V, openBlock as f, createElementVNode as i, createVNode as o, createBlock as R, createCommentVNode as S, withCtx as t, withKeys as te, unref as m, createTextVNode as _, toDisplayString as r, withDirectives as re, Fragment as se, renderList as ne, isRef as ie } from "vue";
|
2
|
-
import { useI18n as de } from "vue-i18n";
|
3
|
-
import { fileApi as C } from "jmash-core";
|
4
|
-
import { _ as pe, g as ue } from "./reply.vue_vue_type_script_setup_true_lang-AnsyNIM8.mjs";
|
5
|
-
import { D } from "./index-CIvF2jlB.mjs";
|
6
|
-
const me = { class: "app-container" }, ce = { class: "search-container" }, fe = { class: "wordsStyle" }, ve = { class: "wordsStyle" }, ge = { key: 0 }, _e = { class: "wordsStyle" }, ye = ["onClick"], Ae = /* @__PURE__ */ ee({
|
7
|
-
__name: "index",
|
8
|
-
setup(we) {
|
9
|
-
const { t: H } = de(), { proxy: M } = ae();
|
10
|
-
D.shopBizDict.useValues();
|
11
|
-
const A = c([]), d = c({
|
12
|
-
curPage: 1,
|
13
|
-
pageSize: 10
|
14
|
-
}), U = c(!1), y = c([]), v = c(0);
|
15
|
-
let w = c([
|
16
|
-
{
|
17
|
-
label: "goodsAppraises.shopName",
|
18
|
-
prop: "shopId",
|
19
|
-
width: "200",
|
20
|
-
slotName: "shopId",
|
21
|
-
columnType: "slot",
|
22
|
-
isColumn: !0
|
23
|
-
},
|
24
|
-
{
|
25
|
-
label: "goodsAppraises.orderItemList",
|
26
|
-
prop: "orderItemList",
|
27
|
-
minWidth: "320",
|
28
|
-
slotName: "orderItemList",
|
29
|
-
columnType: "slot",
|
30
|
-
isColumn: !0
|
31
|
-
},
|
32
|
-
{
|
33
|
-
label: "goodsAppraises.nickName",
|
34
|
-
prop: "nickName",
|
35
|
-
width: "90",
|
36
|
-
isColumn: !0
|
37
|
-
},
|
38
|
-
{
|
39
|
-
label: "goodsAppraises.appraises",
|
40
|
-
prop: "appraises",
|
41
|
-
width: "220",
|
42
|
-
slotName: "appraises",
|
43
|
-
columnType: "slot",
|
44
|
-
isColumn: !0
|
45
|
-
},
|
46
|
-
{
|
47
|
-
label: "goodsAppraises.sellerReply",
|
48
|
-
prop: "sellerReply",
|
49
|
-
width: "160",
|
50
|
-
slotName: "sellerReply",
|
51
|
-
columnType: "slot",
|
52
|
-
isColumn: !0
|
53
|
-
}
|
54
|
-
]);
|
55
|
-
const h = c({
|
56
|
-
title: H("goodsAppraises.sellerReply"),
|
57
|
-
visible: !1
|
58
|
-
});
|
59
|
-
let N = le({});
|
60
|
-
function K(a) {
|
61
|
-
N.appraisesId = a.appraisesId, h.value.visible = !0;
|
62
|
-
}
|
63
|
-
function F(a) {
|
64
|
-
d.value.appraiseStartTime = a[0], d.value.appraiseEndTime = a[1];
|
65
|
-
}
|
66
|
-
function P(a) {
|
67
|
-
return a.split(",").map((l) => C.imageUrl(l, 30, 0));
|
68
|
-
}
|
69
|
-
async function I() {
|
70
|
-
U.value = !0;
|
71
|
-
try {
|
72
|
-
const { data: a } = await ue.findPage(d.value);
|
73
|
-
a && a.results ? (y.value = a.results, y.value.map((l) => {
|
74
|
-
var b, g;
|
75
|
-
if ((g = (b = l.orderInfo) == null ? void 0 : b.orderItemList) != null && g.results) {
|
76
|
-
const p = l.orderInfo.orderItemList.results.filter(
|
77
|
-
($) => l.spuId === $.spuId
|
78
|
-
);
|
79
|
-
if (p.length > 0)
|
80
|
-
return {
|
81
|
-
...l,
|
82
|
-
orderInfo: {
|
83
|
-
...l.orderInfo,
|
84
|
-
orderItemList: {
|
85
|
-
...l.orderInfo.orderItemList,
|
86
|
-
results: p
|
87
|
-
}
|
88
|
-
}
|
89
|
-
};
|
90
|
-
}
|
91
|
-
return l;
|
92
|
-
}), v.value = a.totalSize || 0) : (y.value = [], v.value = 0);
|
93
|
-
} catch (a) {
|
94
|
-
console.error("Error fetch data", a), y.value = [], v.value = 0;
|
95
|
-
} finally {
|
96
|
-
U.value = !1;
|
97
|
-
}
|
98
|
-
}
|
99
|
-
function Q() {
|
100
|
-
d.value = {
|
101
|
-
curPage: 1,
|
102
|
-
pageSize: 10,
|
103
|
-
appraiseStartTime: "",
|
104
|
-
appraiseEndTime: ""
|
105
|
-
}, A.value = [], I();
|
106
|
-
}
|
107
|
-
function T() {
|
108
|
-
d.value.curPage = 1, I();
|
109
|
-
}
|
110
|
-
function W(a) {
|
111
|
-
a && I();
|
112
|
-
}
|
113
|
-
return I(), (a, l) => {
|
114
|
-
const b = n("jmash-select"), g = n("el-form-item"), p = n("el-col"), $ = n("el-date-picker"), Y = n("el-button"), k = n("el-row"), G = n("el-form"), J = n("jmash-column-select"), z = n("el-image"), L = n("el-rate"), O = n("jmash-table"), X = n("jmash-pagination"), Z = n("el-card"), x = oe("hasPerm");
|
115
|
-
return f(), V("div", me, [
|
116
|
-
i("div", ce, [
|
117
|
-
o(G, {
|
118
|
-
ref: "queryFormRef",
|
119
|
-
model: d.value,
|
120
|
-
inline: !0
|
121
|
-
}, {
|
122
|
-
default: t(() => [
|
123
|
-
o(k, null, {
|
124
|
-
default: t(() => [
|
125
|
-
o(p, { span: 6 }, {
|
126
|
-
default: t(() => [
|
127
|
-
o(g, {
|
128
|
-
label: a.$t("goodsAppraises.shopName"),
|
129
|
-
prop: "shopId"
|
130
|
-
}, {
|
131
|
-
default: t(() => [
|
132
|
-
o(b, {
|
133
|
-
modelValue: d.value.shopId,
|
134
|
-
"onUpdate:modelValue": l[0] || (l[0] = (e) => d.value.shopId = e),
|
135
|
-
data: m(D).shopBizDict.values,
|
136
|
-
placeholder: a.$t("goodsAppraises.shopNameRequired"),
|
137
|
-
clearable: "",
|
138
|
-
onKeyup: l[1] || (l[1] = te((e) => T(), ["enter"]))
|
139
|
-
}, null, 8, ["modelValue", "data", "placeholder"])
|
140
|
-
]),
|
141
|
-
_: 1
|
142
|
-
}, 8, ["label"])
|
143
|
-
]),
|
144
|
-
_: 1
|
145
|
-
}),
|
146
|
-
o(p, { span: 6 }, {
|
147
|
-
default: t(() => [
|
148
|
-
o(g, {
|
149
|
-
label: a.$t("goodsAppraises.appraiseRange"),
|
150
|
-
prop: "appraiseRange"
|
151
|
-
}, {
|
152
|
-
default: t(() => [
|
153
|
-
o($, {
|
154
|
-
modelValue: A.value,
|
155
|
-
"onUpdate:modelValue": l[2] || (l[2] = (e) => A.value = e),
|
156
|
-
type: "datetimerange",
|
157
|
-
"start-placeholder": a.$t("goodsAppraises.appraiseStartTime"),
|
158
|
-
"end-placeholder": a.$t("goodsAppraises.appraiseStartTime"),
|
159
|
-
format: "YYYY-MM-DD HH:mm:ss",
|
160
|
-
"value-format": "YYYY-MM-DD HH:mm:ss",
|
161
|
-
onChange: F
|
162
|
-
}, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
|
163
|
-
]),
|
164
|
-
_: 1
|
165
|
-
}, 8, ["label"])
|
166
|
-
]),
|
167
|
-
_: 1
|
168
|
-
}),
|
169
|
-
o(p, { span: 12 }, {
|
170
|
-
default: t(() => [
|
171
|
-
o(g, { class: "search-btn" }, {
|
172
|
-
default: t(() => [
|
173
|
-
o(Y, {
|
174
|
-
type: "primary",
|
175
|
-
onClick: l[3] || (l[3] = (e) => T())
|
176
|
-
}, {
|
177
|
-
default: t(() => [
|
178
|
-
_(r(a.$t("common.search")), 1)
|
179
|
-
]),
|
180
|
-
_: 1
|
181
|
-
}),
|
182
|
-
o(Y, { onClick: Q }, {
|
183
|
-
default: t(() => [
|
184
|
-
_(r(a.$t("common.reset")), 1)
|
185
|
-
]),
|
186
|
-
_: 1
|
187
|
-
})
|
188
|
-
]),
|
189
|
-
_: 1
|
190
|
-
})
|
191
|
-
]),
|
192
|
-
_: 1
|
193
|
-
})
|
194
|
-
]),
|
195
|
-
_: 1
|
196
|
-
})
|
197
|
-
]),
|
198
|
-
_: 1
|
199
|
-
}, 8, ["model"])
|
200
|
-
]),
|
201
|
-
o(Z, {
|
202
|
-
shadow: "never",
|
203
|
-
class: "table-container"
|
204
|
-
}, {
|
205
|
-
header: t(() => [
|
206
|
-
o(k, null, {
|
207
|
-
default: t(() => [
|
208
|
-
o(p, { span: 17 }),
|
209
|
-
o(p, {
|
210
|
-
span: 7,
|
211
|
-
class: "container-float"
|
212
|
-
}, {
|
213
|
-
default: t(() => [
|
214
|
-
o(J, {
|
215
|
-
modelValue: m(w),
|
216
|
-
"onUpdate:modelValue": l[4] || (l[4] = (e) => ie(w) ? w.value = e : w = e),
|
217
|
-
"label-name": "order/good-appraises"
|
218
|
-
}, null, 8, ["modelValue"])
|
219
|
-
]),
|
220
|
-
_: 1
|
221
|
-
})
|
222
|
-
]),
|
223
|
-
_: 1
|
224
|
-
})
|
225
|
-
]),
|
226
|
-
footer: t(() => [
|
227
|
-
v.value > 0 ? (f(), R(X, {
|
228
|
-
key: 0,
|
229
|
-
total: v.value,
|
230
|
-
"onUpdate:total": l[5] || (l[5] = (e) => v.value = e),
|
231
|
-
"current-page": d.value.curPage,
|
232
|
-
"onUpdate:currentPage": l[6] || (l[6] = (e) => d.value.curPage = e),
|
233
|
-
"page-size": d.value.pageSize,
|
234
|
-
"onUpdate:pageSize": l[7] || (l[7] = (e) => d.value.pageSize = e),
|
235
|
-
onPagination: l[8] || (l[8] = (e) => I())
|
236
|
-
}, null, 8, ["total", "current-page", "page-size"])) : S("", !0)
|
237
|
-
]),
|
238
|
-
default: t(() => [
|
239
|
-
o(O, {
|
240
|
-
ref: "multipleTableRef",
|
241
|
-
"row-key": "appraisesId",
|
242
|
-
"list-loading": U.value,
|
243
|
-
data: y.value,
|
244
|
-
"table-label": m(w),
|
245
|
-
isSelection: !1
|
246
|
-
}, {
|
247
|
-
shopId: t((e) => [
|
248
|
-
i("span", null, r(m(D).shopBizDict.getValue(e.data.row.shopId)), 1)
|
249
|
-
]),
|
250
|
-
orderItemList: t((e) => [
|
251
|
-
o(k, { gutter: 10 }, {
|
252
|
-
default: t(() => [
|
253
|
-
o(p, { span: 4 }, {
|
254
|
-
default: t(() => {
|
255
|
-
var s, u;
|
256
|
-
return [
|
257
|
-
o(z, {
|
258
|
-
src: m(C).imageUrl(
|
259
|
-
(s = e.data.row.orderInfo) == null ? void 0 : s.orderItemList.results[0].picUrl,
|
260
|
-
80,
|
261
|
-
0
|
262
|
-
),
|
263
|
-
"preview-src-list": [
|
264
|
-
m(C).imageUrl(
|
265
|
-
(u = e.data.row.orderInfo) == null ? void 0 : u.orderItemList.results[0].picUrl
|
266
|
-
)
|
267
|
-
],
|
268
|
-
"preview-teleported": "",
|
269
|
-
"hide-on-click-modal": "",
|
270
|
-
fit: "contain"
|
271
|
-
}, null, 8, ["src", "preview-src-list"])
|
272
|
-
];
|
273
|
-
}),
|
274
|
-
_: 2
|
275
|
-
}, 1024),
|
276
|
-
o(p, { span: 20 }, {
|
277
|
-
default: t(() => {
|
278
|
-
var s, u, j, q, B, E;
|
279
|
-
return [
|
280
|
-
i("div", null, r(a.$t("goodsAppraises.orderCode")) + ":" + r((s = e.data.row.orderInfo) == null ? void 0 : s.orderCode), 1),
|
281
|
-
i("div", fe, r(a.$t("goodsAppraises.spuName")) + ":" + r((u = e.data.row.orderInfo) == null ? void 0 : u.orderItemList.results[0].spuName), 1),
|
282
|
-
i("div", null, r(a.$t("goodsAppraises.specInfo")) + ":" + r((j = e.data.row.orderInfo) == null ? void 0 : j.orderItemList.results[0].specInfo), 1),
|
283
|
-
i("div", null, r(a.$t("goodsAppraises.purchasePrice")) + ":" + r(((q = e.data.row.orderInfo) == null ? void 0 : q.orderItemList.results[0].quantity) * ((B = e.data.row.orderInfo) == null ? void 0 : B.orderItemList.results[0].salesPrice)), 1),
|
284
|
-
i("div", null, r(a.$t("goodsAppraises.quantity")) + ":" + r((E = e.data.row.orderInfo) == null ? void 0 : E.orderItemList.results[0].quantity), 1)
|
285
|
-
];
|
286
|
-
}),
|
287
|
-
_: 2
|
288
|
-
}, 1024)
|
289
|
-
]),
|
290
|
-
_: 2
|
291
|
-
}, 1024)
|
292
|
-
]),
|
293
|
-
appraises: t((e) => [
|
294
|
-
i("div", null, [
|
295
|
-
_(r(a.$t("goodsAppraises.goodsScore")) + ": ", 1),
|
296
|
-
o(L, {
|
297
|
-
modelValue: e.data.row.goodsScore,
|
298
|
-
"onUpdate:modelValue": (s) => e.data.row.goodsScore = s,
|
299
|
-
max: 5,
|
300
|
-
disabled: ""
|
301
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
302
|
-
]),
|
303
|
-
i("div", null, [
|
304
|
-
_(r(a.$t("goodsAppraises.serviceScore")) + ": ", 1),
|
305
|
-
o(L, {
|
306
|
-
modelValue: e.data.row.serviceScore,
|
307
|
-
"onUpdate:modelValue": (s) => e.data.row.serviceScore = s,
|
308
|
-
max: 5,
|
309
|
-
disabled: ""
|
310
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
311
|
-
]),
|
312
|
-
i("div", null, [
|
313
|
-
_(r(a.$t("goodsAppraises.logisticsScore")) + ": ", 1),
|
314
|
-
o(L, {
|
315
|
-
modelValue: e.data.row.logisticsScore,
|
316
|
-
"onUpdate:modelValue": (s) => e.data.row.logisticsScore = s,
|
317
|
-
max: 5,
|
318
|
-
disabled: ""
|
319
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
320
|
-
]),
|
321
|
-
i("div", ve, r(a.$t("goodsAppraises.content")) + ":" + r(e.data.row.content), 1),
|
322
|
-
e.data.row.picUrls !== "" ? (f(), V("div", ge, [
|
323
|
-
(f(!0), V(se, null, ne(P(e.data.row.picUrls), (s, u) => (f(), R(z, {
|
324
|
-
key: u,
|
325
|
-
src: s,
|
326
|
-
"preview-src-list": P(e.data.row.picUrls),
|
327
|
-
"preview-teleported": "",
|
328
|
-
"hide-on-click-modal": "",
|
329
|
-
fit: "contain",
|
330
|
-
style: { "margin-right": "5px" }
|
331
|
-
}, null, 8, ["src", "preview-src-list"]))), 128))
|
332
|
-
])) : S("", !0)
|
333
|
-
]),
|
334
|
-
sellerReply: t((e) => {
|
335
|
-
var s;
|
336
|
-
return [
|
337
|
-
i("div", _e, r(e.data.row.sellerReply), 1),
|
338
|
-
i("div", null, r(m(M).$moment.formatDate(
|
339
|
-
e.data.row.replyTime,
|
340
|
-
"YYYY-MM-DD HH:mm:ss"
|
341
|
-
)), 1),
|
342
|
-
(s = e.data.row.orderInfo) != null && s.appraisesStatus && !e.data.row.sellerReply ? re((f(), V("span", {
|
343
|
-
key: 0,
|
344
|
-
class: "el-button-color",
|
345
|
-
onClick: (u) => K(e.data.row)
|
346
|
-
}, [
|
347
|
-
_(r(a.$t("goodsAppraises.sellerReply")), 1)
|
348
|
-
], 8, ye)), [
|
349
|
-
[x, ["order:order_appraises:update"]]
|
350
|
-
]) : S("", !0)
|
351
|
-
];
|
352
|
-
}),
|
353
|
-
_: 1
|
354
|
-
}, 8, ["list-loading", "data", "table-label"])
|
355
|
-
]),
|
356
|
-
_: 1
|
357
|
-
}),
|
358
|
-
h.value.visible ? (f(), R(pe, {
|
359
|
-
key: 0,
|
360
|
-
modelValue: h.value.visible,
|
361
|
-
"onUpdate:modelValue": l[9] || (l[9] = (e) => h.value.visible = e),
|
362
|
-
title: h.value.title,
|
363
|
-
"entity-key": m(N),
|
364
|
-
onRefresh: W,
|
365
|
-
width: "600px"
|
366
|
-
}, null, 8, ["modelValue", "title", "entity-key"])) : S("", !0)
|
367
|
-
]);
|
368
|
-
};
|
369
|
-
}
|
370
|
-
});
|
371
|
-
export {
|
372
|
-
Ae as default
|
373
|
-
};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { type PropType } from "vue";
|
2
|
-
import type { OrderItemModel } from "@/api/order-info/types";
|
3
|
-
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
4
|
-
modelValue: PropType<boolean>;
|
5
|
-
entityModel: {
|
6
|
-
type: PropType<OrderItemModel>;
|
7
|
-
default: () => void;
|
8
|
-
};
|
9
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
10
|
-
refresh: (...args: any[]) => void;
|
11
|
-
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
12
|
-
modelValue: PropType<boolean>;
|
13
|
-
entityModel: {
|
14
|
-
type: PropType<OrderItemModel>;
|
15
|
-
default: () => void;
|
16
|
-
};
|
17
|
-
}>> & Readonly<{
|
18
|
-
onRefresh?: ((...args: any[]) => any) | undefined;
|
19
|
-
}>, {
|
20
|
-
entityModel: OrderItemModel;
|
21
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
22
|
-
export default _default;
|