xyvcard-order 0.0.16 → 0.0.18

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.
@@ -0,0 +1,676 @@
1
+ import { defineComponent as se, ref as Y, getCurrentInstance as ie, reactive as z, resolveComponent as v, resolveDirective as me, createElementBlock as h, openBlock as u, createElementVNode as i, createVNode as l, createBlock as m, createCommentVNode as f, withCtx as a, withKeys as k, unref as r, createTextVNode as s, toDisplayString as n, withDirectives as M, Fragment as pe, renderList as fe, isRef as B } from "vue";
2
+ import { ElMessageBox as ye, ElMessage as j } from "element-plus";
3
+ import { useRoute as ve, useRouter as ce } from "vue-router";
4
+ import { useI18n as Se } from "vue-i18n";
5
+ import { useTableHooks as Ie } from "jmash-core";
6
+ import { o as K } from "./index-BZHtbIZR.mjs";
7
+ import { D as p, C as S } from "./index-CIvF2jlB.mjs";
8
+ import { _ as be } from "./deliver.vue_vue_type_script_setup_true_lang-KNWXpWfJ.mjs";
9
+ const Ce = { class: "app-container" }, we = { class: "search-container" }, ge = { class: "item-spuName" }, he = { class: "item-salesPrice" }, ke = { class: "item-specInfo" }, Ve = { class: "item-quantity" }, $e = { class: "orderPrice" }, _e = ["onClick"], Ee = ["onClick"], Te = ["onClick"], qe = /* @__PURE__ */ se({
10
+ __name: "orderList",
11
+ props: {
12
+ orderStatus: {
13
+ type: String,
14
+ default: () => ""
15
+ }
16
+ },
17
+ setup(O) {
18
+ const { t: C } = Se(), R = ve(), F = ce(), w = O;
19
+ p.shopBizDict.useValues();
20
+ const V = Y([]), { proxy: H } = ie(), d = Y({
21
+ curPage: 1,
22
+ pageSize: 10,
23
+ orderStatus: w.orderStatus ? w.orderStatus : void 0,
24
+ appraisesStatus: R.query.appraisesStatus ? R.query.appraisesStatus : void 0
25
+ }), {
26
+ tableHooks: y,
27
+ multipleTableRef: G,
28
+ queryFormRef: J,
29
+ listLoading: X,
30
+ tableData: Z,
31
+ total: T
32
+ } = Ie(C, K, d);
33
+ let $ = Y([
34
+ {
35
+ label: "orderInfo.shopName",
36
+ prop: "shopId",
37
+ minWidth: "200",
38
+ slotName: "shopId",
39
+ columnType: "slot",
40
+ isColumn: !0
41
+ },
42
+ {
43
+ label: "orderInfo.orderItemList",
44
+ prop: "orderItemList",
45
+ minWidth: "300",
46
+ slotName: "orderItemList",
47
+ columnType: "slot",
48
+ isColumn: !0
49
+ },
50
+ {
51
+ label: "orderInfo.orderCodeAndCreateTime",
52
+ prop: "orderCodeAndCreateTime",
53
+ width: "200",
54
+ slotName: "orderCodeAndCreateTime",
55
+ columnType: "slot",
56
+ isColumn: !0
57
+ },
58
+ {
59
+ label: "orderInfo.status",
60
+ prop: "status",
61
+ width: "160",
62
+ slotName: "status",
63
+ columnType: "slot",
64
+ isColumn: !0
65
+ },
66
+ {
67
+ label: "orderInfo.salesPrice",
68
+ prop: "salesPrice",
69
+ width: "150",
70
+ slotName: "salesPrice",
71
+ columnType: "slot",
72
+ isColumn: !0
73
+ },
74
+ {
75
+ label: "orderInfo.paymentWay",
76
+ prop: "paymentWay",
77
+ width: "90",
78
+ slotName: "paymentWay",
79
+ columnType: "slot",
80
+ isColumn: !0
81
+ },
82
+ {
83
+ label: "orderInfo.deliveryWay",
84
+ prop: "deliveryWay",
85
+ width: "90",
86
+ slotName: "deliveryWay",
87
+ columnType: "slot",
88
+ isColumn: !0
89
+ },
90
+ {
91
+ label: "common.operate",
92
+ width: "100",
93
+ slotName: "operation",
94
+ columnType: "slot",
95
+ fixed: "right",
96
+ isColumn: !0
97
+ }
98
+ ]);
99
+ const _ = Y({
100
+ title: C("orderInfo.deliver"),
101
+ visible: !1
102
+ });
103
+ let L = z({}), q = z({});
104
+ function W(o) {
105
+ d.value.startCreateTime = o[0], d.value.endCreateTime = o[1];
106
+ }
107
+ function A() {
108
+ V.value = [], d.value.startCreateTime = "", d.value.endCreateTime = "", y.resetQuery();
109
+ }
110
+ function x(o) {
111
+ F.push({
112
+ path: "/raworder/order-info/info",
113
+ query: { orderId: o.orderId }
114
+ });
115
+ }
116
+ const ee = async (o) => {
117
+ ye.confirm(C("orderInfo.confirmCancel"), C("common.cancel"), {
118
+ confirmButtonText: C("common.confirm"),
119
+ cancelButtonText: C("common.cancel"),
120
+ type: "warning"
121
+ }).then(() => {
122
+ K.cancel({
123
+ orderId: o.orderId
124
+ }).then((t) => {
125
+ t.status === 200 && (j({
126
+ message: C("orderInfo.cancelSuccess"),
127
+ type: "success"
128
+ }), y.handleQuery());
129
+ }).catch((t) => {
130
+ console.error("Error canceling order:", t), j({
131
+ message: C("orderInfo.cancelFailed"),
132
+ type: "error"
133
+ });
134
+ });
135
+ }).catch(() => {
136
+ });
137
+ };
138
+ function te(o) {
139
+ var t;
140
+ q.itemId = (t = o.orderItemList) == null ? void 0 : t.results[0].itemId, L.orderId = o.orderId, _.value.visible = !0;
141
+ }
142
+ function ae(o) {
143
+ o && y.getList();
144
+ }
145
+ return y.getList(), (o, t) => {
146
+ const P = v("jmash-select"), I = v("el-form-item"), c = v("el-col"), U = v("el-input"), N = v("el-row"), Q = v("el-date-picker"), E = v("el-button"), re = v("el-form"), oe = v("jmash-column-select"), b = v("el-tag"), le = v("jmash-table"), ne = v("jmash-pagination"), de = v("el-card"), D = me("hasPerm");
147
+ return u(), h("div", Ce, [
148
+ i("div", we, [
149
+ l(re, {
150
+ ref_key: "queryFormRef",
151
+ ref: J,
152
+ model: d.value,
153
+ inline: !0
154
+ }, {
155
+ default: a(() => [
156
+ l(N, null, {
157
+ default: a(() => [
158
+ l(c, { span: 6 }, {
159
+ default: a(() => [
160
+ l(I, {
161
+ label: o.$t("orderInfo.shopName"),
162
+ prop: "shopId"
163
+ }, {
164
+ default: a(() => [
165
+ l(P, {
166
+ modelValue: d.value.shopId,
167
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => d.value.shopId = e),
168
+ data: r(p).shopBizDict.values,
169
+ placeholder: o.$t("orderInfo.shopNameRequired"),
170
+ clearable: "",
171
+ onKeyup: t[1] || (t[1] = k((e) => r(y).handleQuery(), ["enter"]))
172
+ }, null, 8, ["modelValue", "data", "placeholder"])
173
+ ]),
174
+ _: 1
175
+ }, 8, ["label"])
176
+ ]),
177
+ _: 1
178
+ }),
179
+ l(c, { span: 6 }, {
180
+ default: a(() => [
181
+ l(I, {
182
+ label: o.$t("orderInfo.orderCode"),
183
+ prop: "likeOrderCode"
184
+ }, {
185
+ default: a(() => [
186
+ l(U, {
187
+ modelValue: d.value.likeOrderCode,
188
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => d.value.likeOrderCode = e),
189
+ placeholder: o.$t("orderInfo.orderCodeRequired"),
190
+ clearable: "",
191
+ onKeyup: t[3] || (t[3] = k((e) => r(y).handleQuery(), ["enter"])),
192
+ class: "!w-[203px]"
193
+ }, null, 8, ["modelValue", "placeholder"])
194
+ ]),
195
+ _: 1
196
+ }, 8, ["label"])
197
+ ]),
198
+ _: 1
199
+ }),
200
+ l(c, { span: 6 }, {
201
+ default: a(() => [
202
+ l(I, {
203
+ label: o.$t("orderInfo.spuName"),
204
+ prop: "likeSpuName"
205
+ }, {
206
+ default: a(() => [
207
+ l(U, {
208
+ modelValue: d.value.likeSpuName,
209
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => d.value.likeSpuName = e),
210
+ placeholder: o.$t("orderInfo.spuNameRequired"),
211
+ clearable: "",
212
+ onKeyup: t[5] || (t[5] = k((e) => r(y).handleQuery(), ["enter"])),
213
+ class: "!w-[203px]"
214
+ }, null, 8, ["modelValue", "placeholder"])
215
+ ]),
216
+ _: 1
217
+ }, 8, ["label"])
218
+ ]),
219
+ _: 1
220
+ }),
221
+ l(c, { span: 6 }, {
222
+ default: a(() => [
223
+ l(I, {
224
+ label: o.$t("orderInfo.likeMobile"),
225
+ prop: "likeMobile"
226
+ }, {
227
+ default: a(() => [
228
+ l(U, {
229
+ modelValue: d.value.likeMobile,
230
+ "onUpdate:modelValue": t[6] || (t[6] = (e) => d.value.likeMobile = e),
231
+ placeholder: o.$t("orderInfo.likeMobileRequired"),
232
+ clearable: "",
233
+ onKeyup: t[7] || (t[7] = k((e) => r(y).handleQuery(), ["enter"])),
234
+ class: "!w-[203px]"
235
+ }, null, 8, ["modelValue", "placeholder"])
236
+ ]),
237
+ _: 1
238
+ }, 8, ["label"])
239
+ ]),
240
+ _: 1
241
+ })
242
+ ]),
243
+ _: 1
244
+ }),
245
+ l(N, null, {
246
+ default: a(() => [
247
+ l(c, { span: 6 }, {
248
+ default: a(() => [
249
+ l(I, {
250
+ label: o.$t("orderInfo.paymentStatus"),
251
+ prop: "paymentStatus"
252
+ }, {
253
+ default: a(() => [
254
+ l(P, {
255
+ modelValue: d.value.paymentStatus,
256
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => d.value.paymentStatus = e),
257
+ data: r(p).paymentStatusEnum.values,
258
+ placeholder: o.$t("orderInfo.paymentStatusRequired"),
259
+ clearable: "",
260
+ onKeyup: t[9] || (t[9] = k((e) => r(y).handleQuery(), ["enter"]))
261
+ }, null, 8, ["modelValue", "data", "placeholder"])
262
+ ]),
263
+ _: 1
264
+ }, 8, ["label"])
265
+ ]),
266
+ _: 1
267
+ }),
268
+ w.orderStatus ? f("", !0) : (u(), m(c, {
269
+ key: 0,
270
+ span: 6
271
+ }, {
272
+ default: a(() => [
273
+ l(I, {
274
+ label: o.$t("orderInfo.orderStatus"),
275
+ prop: "orderStatus"
276
+ }, {
277
+ default: a(() => [
278
+ l(P, {
279
+ modelValue: d.value.orderStatus,
280
+ "onUpdate:modelValue": t[10] || (t[10] = (e) => d.value.orderStatus = e),
281
+ data: r(p).orderStatusEnum.values,
282
+ placeholder: o.$t("orderInfo.orderStatusRequired"),
283
+ clearable: "",
284
+ onKeyup: t[11] || (t[11] = k((e) => r(y).handleQuery(), ["enter"]))
285
+ }, null, 8, ["modelValue", "data", "placeholder"])
286
+ ]),
287
+ _: 1
288
+ }, 8, ["label"])
289
+ ]),
290
+ _: 1
291
+ })),
292
+ !w.orderStatus || w.orderStatus === r(S).COMPLETE ? (u(), m(c, {
293
+ key: 1,
294
+ span: 6
295
+ }, {
296
+ default: a(() => [
297
+ l(I, {
298
+ label: o.$t("orderInfo.appraisesStatus"),
299
+ prop: "appraisesStatus"
300
+ }, {
301
+ default: a(() => [
302
+ l(P, {
303
+ modelValue: d.value.appraisesStatus,
304
+ "onUpdate:modelValue": t[12] || (t[12] = (e) => d.value.appraisesStatus = e),
305
+ placeholder: o.$t("orderInfo.appraisesStatusRequired"),
306
+ data: r(p).appraisesStatus.values,
307
+ clearable: ""
308
+ }, null, 8, ["modelValue", "placeholder", "data"])
309
+ ]),
310
+ _: 1
311
+ }, 8, ["label"])
312
+ ]),
313
+ _: 1
314
+ })) : f("", !0),
315
+ w.orderStatus ? (u(), m(c, {
316
+ key: 2,
317
+ span: 6
318
+ }, {
319
+ default: a(() => [
320
+ l(I, {
321
+ label: o.$t("orderInfo.orderTime"),
322
+ prop: "startCreateTime"
323
+ }, {
324
+ default: a(() => [
325
+ l(Q, {
326
+ modelValue: V.value,
327
+ "onUpdate:modelValue": t[13] || (t[13] = (e) => V.value = e),
328
+ type: "daterange",
329
+ "start-placeholder": o.$t("orderInfo.startCreateTime"),
330
+ "end-placeholder": o.$t("orderInfo.endCreateTime"),
331
+ format: "YYYY-MM-DD",
332
+ "value-format": "YYYY-MM-DD",
333
+ onChange: W
334
+ }, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
335
+ ]),
336
+ _: 1
337
+ }, 8, ["label"])
338
+ ]),
339
+ _: 1
340
+ })) : f("", !0),
341
+ w.orderStatus ? (u(), m(c, {
342
+ key: 3,
343
+ span: w.orderStatus === r(S).COMPLETE ? 6 : 12
344
+ }, {
345
+ default: a(() => [
346
+ l(I, { class: "search-btn" }, {
347
+ default: a(() => [
348
+ l(E, {
349
+ type: "primary",
350
+ onClick: t[14] || (t[14] = (e) => r(y).handleQuery())
351
+ }, {
352
+ default: a(() => [
353
+ s(n(o.$t("common.search")), 1)
354
+ ]),
355
+ _: 1
356
+ }),
357
+ l(E, { onClick: A }, {
358
+ default: a(() => [
359
+ s(n(o.$t("common.reset")), 1)
360
+ ]),
361
+ _: 1
362
+ })
363
+ ]),
364
+ _: 1
365
+ })
366
+ ]),
367
+ _: 1
368
+ }, 8, ["span"])) : f("", !0)
369
+ ]),
370
+ _: 1
371
+ }),
372
+ w.orderStatus ? f("", !0) : (u(), m(N, { key: 0 }, {
373
+ default: a(() => [
374
+ l(c, { span: 6 }, {
375
+ default: a(() => [
376
+ l(I, {
377
+ label: o.$t("orderInfo.orderTime"),
378
+ prop: "startCreateTime"
379
+ }, {
380
+ default: a(() => [
381
+ l(Q, {
382
+ modelValue: V.value,
383
+ "onUpdate:modelValue": t[15] || (t[15] = (e) => V.value = e),
384
+ type: "daterange",
385
+ "start-placeholder": o.$t("orderInfo.startCreateTime"),
386
+ "end-placeholder": o.$t("orderInfo.endCreateTime"),
387
+ format: "YYYY-MM-DD",
388
+ "value-format": "YYYY-MM-DD",
389
+ onChange: W
390
+ }, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
391
+ ]),
392
+ _: 1
393
+ }, 8, ["label"])
394
+ ]),
395
+ _: 1
396
+ }),
397
+ l(c, { span: 18 }, {
398
+ default: a(() => [
399
+ l(I, { class: "search-btn" }, {
400
+ default: a(() => [
401
+ l(E, {
402
+ type: "primary",
403
+ onClick: t[16] || (t[16] = (e) => r(y).handleQuery())
404
+ }, {
405
+ default: a(() => [
406
+ s(n(o.$t("common.search")), 1)
407
+ ]),
408
+ _: 1
409
+ }),
410
+ l(E, { onClick: A }, {
411
+ default: a(() => [
412
+ s(n(o.$t("common.reset")), 1)
413
+ ]),
414
+ _: 1
415
+ })
416
+ ]),
417
+ _: 1
418
+ })
419
+ ]),
420
+ _: 1
421
+ })
422
+ ]),
423
+ _: 1
424
+ }))
425
+ ]),
426
+ _: 1
427
+ }, 8, ["model"])
428
+ ]),
429
+ l(de, {
430
+ shadow: "never",
431
+ class: "table-container"
432
+ }, {
433
+ header: a(() => [
434
+ l(N, null, {
435
+ default: a(() => [
436
+ l(c, {
437
+ span: 24,
438
+ class: "container-float"
439
+ }, {
440
+ default: a(() => [
441
+ M((u(), m(E, {
442
+ plain: "",
443
+ type: "primary",
444
+ onClick: t[17] || (t[17] = (e) => r(y).handleExport(r(C)("orderInfo.name")))
445
+ }, {
446
+ default: a(() => [
447
+ s(n(o.$t("common.export")), 1)
448
+ ]),
449
+ _: 1
450
+ })), [
451
+ [D, ["order:order_info:export"]]
452
+ ]),
453
+ l(oe, {
454
+ modelValue: r($),
455
+ "onUpdate:modelValue": t[18] || (t[18] = (e) => B($) ? $.value = e : $ = e),
456
+ "label-name": "order/order-info"
457
+ }, null, 8, ["modelValue"])
458
+ ]),
459
+ _: 1
460
+ })
461
+ ]),
462
+ _: 1
463
+ })
464
+ ]),
465
+ footer: a(() => [
466
+ r(T) > 0 ? (u(), m(ne, {
467
+ key: 0,
468
+ total: r(T),
469
+ "onUpdate:total": t[19] || (t[19] = (e) => B(T) ? T.value = e : null),
470
+ "current-page": d.value.curPage,
471
+ "onUpdate:currentPage": t[20] || (t[20] = (e) => d.value.curPage = e),
472
+ "page-size": d.value.pageSize,
473
+ "onUpdate:pageSize": t[21] || (t[21] = (e) => d.value.pageSize = e),
474
+ onPagination: t[22] || (t[22] = (e) => r(y).getList())
475
+ }, null, 8, ["total", "current-page", "page-size"])) : f("", !0)
476
+ ]),
477
+ default: a(() => [
478
+ l(le, {
479
+ ref_key: "multipleTableRef",
480
+ ref: G,
481
+ "row-key": "orderId",
482
+ "list-loading": r(X),
483
+ data: r(Z),
484
+ "table-label": r($),
485
+ isSelection: !1
486
+ }, {
487
+ shopId: a((e) => [
488
+ i("span", null, n(r(p).shopBizDict.getValue(e.data.row.shopId)), 1)
489
+ ]),
490
+ orderItemList: a((e) => [
491
+ (u(!0), h(pe, null, fe(e.data.row.orderItemList.results, (g, ue) => (u(), h("div", {
492
+ key: ue,
493
+ class: "order-item"
494
+ }, [
495
+ i("div", ge, " 商品名称: " + n(g.spuName), 1),
496
+ i("div", he, "¥" + n(g.salesPrice), 1),
497
+ i("div", ke, " 规格: " + n(g.specInfo), 1),
498
+ i("div", Ve, "数量:" + n(g.quantity), 1)
499
+ ]))), 128))
500
+ ]),
501
+ orderCodeAndCreateTime: a((e) => [
502
+ i("div", null, n(r(H).$moment.formatDate(
503
+ e.data.row.createTime,
504
+ "YYYY-MM-DD HH:mm:ss"
505
+ )), 1),
506
+ i("div", null, n(e.data.row.orderCode), 1)
507
+ ]),
508
+ status: a((e) => [
509
+ i("div", null, [
510
+ s(n(o.$t("orderInfo.orderStatus")) + ": ", 1),
511
+ e.data.row.orderStatus === r(S).UNPAY ? (u(), m(b, {
512
+ key: 0,
513
+ type: "danger"
514
+ }, {
515
+ default: a(() => [
516
+ s(n(r(p).orderStatusEnum.getEnumValue(e.data.row.orderStatus)), 1)
517
+ ]),
518
+ _: 2
519
+ }, 1024)) : f("", !0),
520
+ e.data.row.orderStatus === r(S).UNPOST ? (u(), m(b, {
521
+ key: 1,
522
+ type: "warning"
523
+ }, {
524
+ default: a(() => [
525
+ s(n(r(p).orderStatusEnum.getEnumValue(e.data.row.orderStatus)), 1)
526
+ ]),
527
+ _: 2
528
+ }, 1024)) : f("", !0),
529
+ e.data.row.orderStatus === r(S).UNRECEIVE ? (u(), m(b, {
530
+ key: 2,
531
+ type: "primary"
532
+ }, {
533
+ default: a(() => [
534
+ s(n(r(p).orderStatusEnum.getEnumValue(e.data.row.orderStatus)), 1)
535
+ ]),
536
+ _: 2
537
+ }, 1024)) : f("", !0),
538
+ e.data.row.orderStatus === r(S).COMPLETE ? (u(), m(b, {
539
+ key: 3,
540
+ type: "success"
541
+ }, {
542
+ default: a(() => [
543
+ s(n(r(p).orderStatusEnum.getEnumValue(e.data.row.orderStatus)), 1)
544
+ ]),
545
+ _: 2
546
+ }, 1024)) : f("", !0),
547
+ e.data.row.orderStatus === r(S).CANCEL ? (u(), m(b, {
548
+ key: 4,
549
+ type: "info"
550
+ }, {
551
+ default: a(() => [
552
+ s(n(r(p).orderStatusEnum.getEnumValue(e.data.row.orderStatus)), 1)
553
+ ]),
554
+ _: 2
555
+ }, 1024)) : f("", !0)
556
+ ]),
557
+ i("span", null, [
558
+ s(n(o.$t("orderInfo.paymentStatus")) + ": ", 1),
559
+ e.data.row.paymentStatus === r(S).UNPAID ? (u(), m(b, {
560
+ key: 0,
561
+ type: "danger"
562
+ }, {
563
+ default: a(() => [
564
+ s(n(r(p).paymentStatusEnum.getEnumValue(
565
+ e.data.row.paymentStatus
566
+ )), 1)
567
+ ]),
568
+ _: 2
569
+ }, 1024)) : e.data.row.paymentStatus === r(S).PART_PAID ? (u(), m(b, {
570
+ key: 1,
571
+ type: "info"
572
+ }, {
573
+ default: a(() => [
574
+ s(n(r(p).paymentStatusEnum.getEnumValue(
575
+ e.data.row.paymentStatus
576
+ )), 1)
577
+ ]),
578
+ _: 2
579
+ }, 1024)) : e.data.row.paymentStatus === r(S).PAID ? (u(), m(b, {
580
+ key: 2,
581
+ type: "success"
582
+ }, {
583
+ default: a(() => [
584
+ s(n(r(p).paymentStatusEnum.getEnumValue(
585
+ e.data.row.paymentStatus
586
+ )), 1)
587
+ ]),
588
+ _: 2
589
+ }, 1024)) : f("", !0)
590
+ ]),
591
+ i("div", null, [
592
+ s(n(o.$t("orderInfo.appraisesStatus")) + ": ", 1),
593
+ e.data.row.appraisesStatus ? f("", !0) : (u(), m(b, {
594
+ key: 0,
595
+ type: "info"
596
+ }, {
597
+ default: a(() => [
598
+ s(n(r(p).appraisesStatus.getValue(e.data.row.appraisesStatus)), 1)
599
+ ]),
600
+ _: 2
601
+ }, 1024)),
602
+ e.data.row.appraisesStatus ? (u(), m(b, {
603
+ key: 1,
604
+ type: "success"
605
+ }, {
606
+ default: a(() => [
607
+ s(n(r(p).appraisesStatus.getValue(e.data.row.appraisesStatus)), 1)
608
+ ]),
609
+ _: 2
610
+ }, 1024)) : f("", !0)
611
+ ])
612
+ ]),
613
+ salesPrice: a((e) => [
614
+ i("div", null, [
615
+ i("div", null, n(o.$t("orderInfo.salesPrice")) + ": ¥" + n(e.data.row.salesPrice), 1),
616
+ i("div", null, n(o.$t("orderInfo.freightPrice")) + ": ¥" + n(e.data.row.freightPrice), 1),
617
+ i("div", null, n(o.$t("orderInfo.paymentCouponPrice")) + ": ¥" + n(e.data.row.paymentCouponPrice), 1),
618
+ i("div", $e, n(o.$t("orderInfo.orderPrice")) + ": ¥" + n(e.data.row.orderPrice), 1)
619
+ ])
620
+ ]),
621
+ paymentWay: a((e) => [
622
+ i("span", null, n(r(p).paymentWayEnum.getEnumValue(e.data.row.paymentWay)), 1)
623
+ ]),
624
+ deliveryWay: a((e) => [
625
+ i("span", null, n(r(p).deliveryWayEnum.getEnumValue(e.data.row.deliveryWay)), 1)
626
+ ]),
627
+ operation: a((e) => [
628
+ M((u(), h("span", {
629
+ class: "el-button-color",
630
+ onClick: (g) => x(e.data.row)
631
+ }, [
632
+ s(n(o.$t("common.view")), 1)
633
+ ], 8, _e)), [
634
+ [D, ["order:order_info:view"]]
635
+ ]),
636
+ e.data.row.orderStatus === r(S).UNPOST ? M((u(), h("span", {
637
+ key: 0,
638
+ class: "el-button-color dropdown-left",
639
+ onClick: (g) => te(e.data.row)
640
+ }, [
641
+ s(n(o.$t("orderInfo.deliver")), 1)
642
+ ], 8, Ee)), [
643
+ [D, ["order:order_info:delivery"]]
644
+ ]) : f("", !0),
645
+ e.data.row.orderStatus === r(S).UNPAY ? M((u(), h("span", {
646
+ key: 1,
647
+ class: "el-button-color dropdown-left",
648
+ onClick: (g) => ee(e.data.row)
649
+ }, [
650
+ s(n(o.$t("orderInfo.cancel")), 1)
651
+ ], 8, Te)), [
652
+ [D, ["order:order_info:cancel"]]
653
+ ]) : f("", !0)
654
+ ]),
655
+ _: 1
656
+ }, 8, ["list-loading", "data", "table-label"])
657
+ ]),
658
+ _: 1
659
+ }),
660
+ _.value.visible ? (u(), m(be, {
661
+ key: 0,
662
+ modelValue: _.value.visible,
663
+ "onUpdate:modelValue": t[23] || (t[23] = (e) => _.value.visible = e),
664
+ title: _.value.title,
665
+ "entity-key": r(L),
666
+ "entity-model": r(q),
667
+ onRefresh: ae,
668
+ width: "500px"
669
+ }, null, 8, ["modelValue", "title", "entity-key", "entity-model"])) : f("", !0)
670
+ ]);
671
+ };
672
+ }
673
+ });
674
+ export {
675
+ qe as _
676
+ };
@@ -12,6 +12,8 @@ export interface OrderInfoReq extends EntityReq {
12
12
  hasPaymentStatus?: boolean;
13
13
  startCreateTime?: string;
14
14
  endCreateTime?: string;
15
+ appraisesStatus?: string;
16
+ hasAppraisesStatus?: boolean;
15
17
  }
16
18
  export interface OrderInfoModel extends EntityModel {
17
19
  orderId?: string;
@@ -44,6 +44,7 @@ declare const _default: {
44
44
  status: string;
45
45
  customInfo: string;
46
46
  appraisesStatus: string;
47
+ appraisesStatusRequired: string;
47
48
  salesPrice: string;
48
49
  salesPriceRequired: string;
49
50
  freightPrice: string;