xyvcard-order 0.0.12 → 0.0.14

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