xyvcard-order 0.0.6 → 0.0.8

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 (48) hide show
  1. package/dist/{canceled-CAEulpM1.mjs → canceled-CTHGNWuB.mjs} +1 -1
  2. package/dist/{canceled.vue_vue_type_script_setup_true_lang-_j0h5aSP.mjs → canceled.vue_vue_type_script_setup_true_lang-lNPLjFzs.mjs} +88 -89
  3. package/dist/{change-CH-CF_q-.mjs → change-3TnGoLNv.mjs} +1 -1
  4. package/dist/{change.vue_vue_type_script_setup_true_lang-Bb1DH4GC.mjs → change.vue_vue_type_script_setup_true_lang-DLfb9HIp.mjs} +51 -47
  5. package/dist/{completed-B70yQ6oI.mjs → completed-BnD0Wh1K.mjs} +1 -1
  6. package/dist/{completed.vue_vue_type_script_setup_true_lang-D25evb6V.mjs → completed.vue_vue_type_script_setup_true_lang-ysjYRoxQ.mjs} +75 -76
  7. package/dist/{deliver-Bp2Ckw4g.mjs → deliver-DZDmtbHY.mjs} +1 -1
  8. package/dist/{deliver.vue_vue_type_script_setup_true_lang-DjvQSQPG.mjs → deliver.vue_vue_type_script_setup_true_lang-DZ6WdO5i.mjs} +58 -59
  9. package/dist/{edit-DyFqRxsE.mjs → edit-BgR1glUx.mjs} +1 -1
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-YwJOnNI_.mjs → edit.vue_vue_type_script_setup_true_lang-DJFJg9lJ.mjs} +7 -7
  11. package/dist/index-BTfCAYQ-.mjs +419 -0
  12. package/dist/index-CHzhYqx8.mjs +114 -0
  13. package/dist/{index-B3HKfAop.mjs → index-CaKojOfx.mjs} +237 -250
  14. package/dist/{index-DyFAVz8t.mjs → index-CfEKTjAd.mjs} +1 -1
  15. package/dist/{index-BnhfSp6U.mjs → index-DAb5kkOk.mjs} +3 -23
  16. package/dist/{index-DHJFncJ6.mjs → index-S4jzuvn6.mjs} +154 -157
  17. package/dist/index.mjs +12 -117
  18. package/dist/{info-BmqDpsnn.mjs → info-3uYTUNzE.mjs} +1 -1
  19. package/dist/info-DiPfhbtx.mjs +328 -0
  20. package/dist/info.vue_vue_type_script_setup_true_lang-nH2_wV_f.mjs +178 -0
  21. package/dist/{review-Dr4_ycsb.mjs → review-DY1KQI3U.mjs} +1 -1
  22. package/dist/{review.vue_vue_type_script_setup_true_lang-BER9b6r2.mjs → review.vue_vue_type_script_setup_true_lang-HjQowjbK.mjs} +91 -90
  23. package/dist/style.css +1 -1
  24. package/dist/{unpay-WAsbEXlr.mjs → unpay-Bc8ekFnl.mjs} +1 -1
  25. package/dist/{unpay.vue_vue_type_script_setup_true_lang-Dj_Sq17m.mjs → unpay.vue_vue_type_script_setup_true_lang-CsHqHywv.mjs} +203 -216
  26. package/dist/{unpost-BocJwYcE.mjs → unpost-DE4VcTu2.mjs} +1 -1
  27. package/dist/{unpost.vue_vue_type_script_setup_true_lang-BzlBIdWF.mjs → unpost.vue_vue_type_script_setup_true_lang-Xtrcqwsb.mjs} +99 -100
  28. package/dist/{unreceive-BLcvdJxY.mjs → unreceive-CUiJvXq1.mjs} +1 -1
  29. package/dist/{unreceive.vue_vue_type_script_setup_true_lang-IoS_bKwk.mjs → unreceive.vue_vue_type_script_setup_true_lang-CgWgDNgs.mjs} +76 -77
  30. package/dist/{viewLogist-D9-zqepw.mjs → viewLogist-Cxu-IV-d.mjs} +1 -1
  31. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-jqRN__Ne.mjs +91 -0
  32. package/dts/src/api/dict.d.ts +3 -0
  33. package/dts/src/api/index.d.ts +2 -1
  34. package/dts/src/api/order-appraises/types.d.ts +1 -0
  35. package/dts/src/api/order-info/types.d.ts +2 -1
  36. package/dts/src/api/order-logistics/index.d.ts +1 -5
  37. package/dts/src/api/order-logistics/types.d.ts +3 -62
  38. package/dts/src/api/order-refunds/index.d.ts +0 -2
  39. package/dts/src/constant.d.ts +12 -10
  40. package/dts/src/lang/order/zh-cn.d.ts +2 -2
  41. package/dts/src/main.d.ts +0 -1
  42. package/package.json +5 -4
  43. package/dist/index-BGDa_EK1.mjs +0 -439
  44. package/dist/index-suIgymdy.mjs +0 -93
  45. package/dist/index.vue_vue_type_script_setup_true_lang-RpiqLerK.mjs +0 -41
  46. package/dist/info-Ba-BgJkw.mjs +0 -368
  47. package/dist/info.vue_vue_type_script_setup_true_lang-CHaAOFGr.mjs +0 -188
  48. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-D8KlJgG0.mjs +0 -127
@@ -1,80 +1,21 @@
1
- import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq } from "jmash-core";
1
+ import type { EntityApi, EntityKey, EntityList, EntityModel } from "jmash-core";
2
2
  export interface OrderLogisticsApi extends EntityApi {
3
3
  }
4
- export interface OrderLogisticsReq extends EntityReq {
5
- logisticsId?: string;
6
- }
7
4
  export interface OrderLogisticsModel extends EntityModel {
8
5
  logisticsId?: string;
9
- orderId?: string;
10
- orderItemId?: string;
11
- logisticsMchCode?: string;
12
- logisticsMchName?: string;
13
- logisticsNo?: string;
14
- deliveryTime?: string;
15
- status?: string;
16
- isCheck?: boolean;
17
- receiverTime?: string;
18
- message?: string;
19
- createTime?: string;
20
- createBy?: string;
21
- updateBy?: string;
22
- updateTime?: string;
23
- }
24
- export interface OrderLogisticsList extends EntityList {
25
- results: Array<OrderLogisticsModel>;
26
- }
27
- export interface OrderLogisticsPage extends EntityPage {
28
- results: Array<OrderLogisticsModel>;
29
- subTotalDto: OrderLogisticsModelTotal;
30
- totalDto: OrderLogisticsModelTotal;
31
- }
32
- export interface OrderLogisticsModelTotal extends EntityTotal {
33
- totalSize: number;
34
6
  }
35
7
  export interface OrderLogisticsKey extends EntityKey {
36
8
  tenant?: string;
37
9
  logisticsId?: string;
38
10
  }
39
- export interface OrderLogisticsKeyList extends EntityKeyList {
40
- tenant?: string;
41
- logisticsId?: Array<string>;
42
- }
43
- export interface OrderLogisticsCreateReq extends EntityCreateReq {
44
- logisticsId?: string;
45
- orderId?: string;
46
- orderItemId?: string;
47
- logisticsMchCode?: string;
48
- logisticsMchName?: string;
49
- logisticsNo?: string;
50
- deliveryTime?: string;
51
- status?: string;
52
- isCheck?: boolean;
53
- receiverTime?: string;
54
- message?: string;
55
- }
56
- export interface OrderLogisticsUpdateReq extends EntityUpdateReq {
57
- logisticsId?: string;
58
- orderId?: string;
59
- orderItemId?: string;
60
- logisticsMchCode?: string;
61
- logisticsMchName?: string;
62
- logisticsNo?: string;
63
- deliveryTime?: string;
64
- status?: string;
65
- isCheck?: boolean;
66
- receiverTime?: string;
67
- message?: string;
68
- }
69
- export type OrderLogisticsFormReq = OrderLogisticsCreateReq | OrderLogisticsUpdateReq;
70
11
  export interface LogisticsQueryReq {
71
12
  orderId?: string;
72
13
  orderItemId?: string;
73
14
  }
74
- export interface LogisticsInfoList {
15
+ export interface LogisticsInfoList extends EntityList {
75
16
  list: Array<LogisticsInfoModel>;
76
17
  }
77
- export interface LogisticsInfoModel {
18
+ export interface LogisticsInfoModel extends EntityModel {
78
19
  time?: string;
79
20
  context?: string;
80
21
  ftime?: string;
@@ -5,8 +5,6 @@ declare class OrderRefundsApiImpl implements OrderRefundsApi {
5
5
  findPage(query?: OrderRefundsReq): AxiosPromise<OrderRefundsPage>;
6
6
  findList(query?: OrderRefundsReq): AxiosPromise<OrderRefundsList>;
7
7
  findById(query: OrderRefundsKey): AxiosPromise<OrderInfoRefundModel>;
8
- delete(query: OrderRefundsKey): AxiosPromise<OrderInfoRefundModel>;
9
- batchDelete(keys: OrderRefundsKey[]): AxiosPromise<number>;
10
8
  update(data: OrderRefundsUpdateReq): AxiosPromise<OrderRefundsModel>;
11
9
  refund(data: OrderRefundReq): AxiosPromise<boolean>;
12
10
  }
@@ -15,19 +15,21 @@ export declare class Constant {
15
15
  static readonly ENUM_PAYMENT_WAY = "xyvcard.order.protobuf.PaymentWay";
16
16
  static readonly ENUM_DELIVERY_WAY = "xyvcard.order.protobuf.DeliveryWay";
17
17
  static readonly ENUM_POST_TYPE = "xyvcard.order.protobuf.PostType";
18
- static readonly logisticsDelivery = "logistics_delivery";
18
+ static readonly LOGISTICS_DELIVERY = "logistics_delivery";
19
19
  static readonly EXPRESS_COMPANY_CODE = "ExpressCompanyCode";
20
- static readonly unpay = "unpay";
21
- static readonly unpost = "unpost";
22
- static readonly unreceive = "unreceive";
23
- static readonly cancel = "cancel";
24
- static readonly complete = "complete";
25
- static readonly unpaid = "unpaid";
26
- static readonly paid = "paid";
27
- static readonly partPaid = "part_paid";
20
+ static readonly UNPAY = "unpay";
21
+ static readonly UNPOST = "unpost";
22
+ static readonly UNRECEIVE = "unreceive";
23
+ static readonly CANCEL = "cancel";
24
+ static readonly COMPLETE = "complete";
25
+ static readonly UNPAID = "unpaid";
26
+ static readonly PAID = "paid";
27
+ static readonly PART_PAID = "part_paid";
28
28
  static readonly REFUND_APPLY_STATUS = "xyvcard.order.protobuf.RefundApplyStatus";
29
+ static readonly PASS = "pass";
30
+ static readonly APPLY = "apply";
29
31
  static readonly ENUM_REFUND_TYPE = "xyvcard.order.protobuf.RefundType";
30
- static readonly returnRefund = "RETURN_REFUND";
32
+ static readonly RETURN_REFUND = "RETURN_REFUND";
31
33
  static readonly AUDIT_OPINION: globalThis.Ref<{
32
34
  key: boolean;
33
35
  value: string;
@@ -77,8 +77,8 @@ declare const _default: {
77
77
  viewLogist: string;
78
78
  postType: string;
79
79
  postTypeRequired: string;
80
- logisticCode: string;
81
- logisticCodeRequired: string;
80
+ logisticsCode: string;
81
+ logisticCodesRequired: string;
82
82
  logisticsNo: string;
83
83
  logisticsNoRequired: string;
84
84
  };
package/dts/src/main.d.ts CHANGED
@@ -3,4 +3,3 @@ import "element-plus/dist/index.css";
3
3
  import "jmash-core/dist/style.css";
4
4
  import "jmash-dict/dist/style.css";
5
5
  import "jmash-rbac/dist/style.css";
6
- import "xyvcard-shop/dist/style.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-order",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",
@@ -11,14 +11,15 @@
11
11
  "peerDependencies": {
12
12
  "axios": "^1.7.7",
13
13
  "element-plus": "^2.8.7",
14
- "jmash-core": "^0.0.102",
14
+ "jmash-core": "^0.0.108",
15
15
  "jmash-dict": "^0.0.44",
16
- "jmash-rbac": "^0.0.35",
16
+ "jmash-rbac": "^0.0.40",
17
17
  "pinia": "^2.2.4",
18
18
  "vue": "^3.5.11",
19
19
  "vue-i18n": "^9.14.1",
20
20
  "vue-router": "^4.4.5",
21
- "xyvcard-shop": "^0.0.17"
21
+ "xyvcard-shop": "^0.0.17",
22
+ "xyvcard-shell": "^0.0.8"
22
23
  },
23
24
  "devDependencies": {
24
25
  "@eslint/js": "^9.16.0",
@@ -1,439 +0,0 @@
1
- import { defineComponent as oe, getCurrentInstance as te, ref as R, reactive as re, resolveComponent as i, resolveDirective as ne, openBlock as p, createElementBlock as D, createElementVNode as s, createVNode as t, withCtx as r, unref as n, withKeys as $, createTextVNode as C, toDisplayString as a, withDirectives as I, createBlock as _, isRef as M, createCommentVNode as N } from "vue";
2
- import { ElMessageBox as ae, ElMessage as j } from "element-plus";
3
- import { useTableHooks as de } from "jmash-core";
4
- import { useI18n as ue } from "vue-i18n";
5
- import { o as q } from "./index-BnhfSp6U.mjs";
6
- import { _ as se } from "./review.vue_vue_type_script_setup_true_lang-BER9b6r2.mjs";
7
- import { _ as ie } from "./info.vue_vue_type_script_setup_true_lang-CHaAOFGr.mjs";
8
- import { D as w } from "./index-suIgymdy.mjs";
9
- const me = { class: "app-container" }, fe = { class: "search-container" }, pe = { class: "orderPrice" }, ce = ["onClick"], ve = ["onClick"], ye = ["onClick"], be = ["onClick"], Te = /* @__PURE__ */ oe({
10
- __name: "index",
11
- setup(Re) {
12
- const { t: m } = ue(), { proxy: z } = te();
13
- w.shopBizDict.useValues();
14
- const k = R([]), d = R({
15
- curPage: 1,
16
- pageSize: 10
17
- }), {
18
- tableHooks: u,
19
- multipleTableRef: B,
20
- queryFormRef: Q,
21
- listLoading: A,
22
- tableData: K,
23
- total: h
24
- } = de(m, q, d);
25
- let v = R([
26
- {
27
- label: "orderInfo.shopName",
28
- prop: "shopId",
29
- width: "200",
30
- slotName: "shopId",
31
- columnType: "slot",
32
- isColumn: !0
33
- },
34
- {
35
- label: "orderRefunds.createTime",
36
- prop: "createTime",
37
- width: "200",
38
- slotName: "createTime",
39
- columnType: "slot",
40
- isColumn: !0
41
- },
42
- {
43
- label: "orderRefunds.order",
44
- prop: "order",
45
- width: "250",
46
- slotName: "order",
47
- columnType: "slot",
48
- isColumn: !0
49
- },
50
- {
51
- label: "orderRefunds.refundStatus",
52
- prop: "status",
53
- width: "100",
54
- slotName: "refundStatus",
55
- columnType: "slot",
56
- isColumn: !0
57
- },
58
- {
59
- label: "orderRefunds.refundAmount",
60
- prop: "refundAmount",
61
- width: "100",
62
- isColumn: !0
63
- },
64
- {
65
- label: "orderRefunds.refundCode",
66
- prop: "refundCode",
67
- width: "250",
68
- isColumn: !0
69
- },
70
- {
71
- label: "orderRefunds.refundReson",
72
- prop: "refundReson",
73
- width: "200",
74
- isColumn: !0
75
- },
76
- {
77
- label: "orderRefunds.refuseRefundReson",
78
- prop: "refuseRefundReson",
79
- width: "200",
80
- isColumn: !0
81
- },
82
- {
83
- label: "common.operate",
84
- width: "250",
85
- slotName: "operation",
86
- columnType: "slot",
87
- fixed: "right",
88
- isColumn: !0
89
- }
90
- ]);
91
- const y = R({
92
- title: m("orderRefunds.refundOperation"),
93
- visible: !1
94
- }), b = R({
95
- title: m("orderRefunds.info"),
96
- visible: !1
97
- });
98
- let g = re({});
99
- function L(o) {
100
- g.refundId = o.refundId, y.value.visible = !0;
101
- }
102
- const H = async (o) => {
103
- ae.confirm(
104
- m("orderRefunds.refundConfirm"),
105
- m("orderRefunds.refund"),
106
- {
107
- confirmButtonText: m("common.confirm"),
108
- cancelButtonText: m("common.cancel"),
109
- type: "warning"
110
- }
111
- ).then(() => {
112
- q.refund({
113
- refundId: o.refundId,
114
- requestId: Math.random() * 10 + ""
115
- }).then((l) => {
116
- l.status === 200 && (j({
117
- message: m("orderRefunds.refundSuccess"),
118
- type: "success"
119
- }), u.handleQuery());
120
- }).catch((l) => {
121
- console.error("Error canceling order:", l), j({
122
- message: m("orderRefunds.refundFailed"),
123
- type: "error"
124
- });
125
- });
126
- }).catch(() => {
127
- });
128
- };
129
- function O(o) {
130
- g.refundId = o.refundId, b.value.visible = !0;
131
- }
132
- function F(o) {
133
- d.value.startCreateTime = o[0], d.value.endCreateTime = o[1];
134
- }
135
- function W() {
136
- k.value = [], d.value.startCreateTime = "", d.value.endCreateTime = "", u.resetQuery();
137
- }
138
- function G(o) {
139
- u.selectionRows.value = o;
140
- }
141
- function Y(o) {
142
- o && u.getList();
143
- }
144
- return u.getList(), (o, l) => {
145
- const E = i("jmash-select"), c = i("el-form-item"), f = i("el-col"), U = i("el-input"), V = i("el-row"), J = i("el-date-picker"), T = i("el-button"), X = i("el-form"), Z = i("jmash-column-select"), x = i("jmash-table"), ee = i("jmash-pagination"), le = i("el-card"), P = ne("hasPerm");
146
- return p(), D("div", me, [
147
- s("div", fe, [
148
- t(X, {
149
- ref_key: "queryFormRef",
150
- ref: Q,
151
- model: d.value,
152
- inline: !0
153
- }, {
154
- default: r(() => [
155
- t(V, null, {
156
- default: r(() => [
157
- t(f, { span: 6 }, {
158
- default: r(() => [
159
- t(c, {
160
- label: o.$t("orderRefunds.shopName"),
161
- prop: "shopId"
162
- }, {
163
- default: r(() => [
164
- t(E, {
165
- modelValue: d.value.shopId,
166
- "onUpdate:modelValue": l[0] || (l[0] = (e) => d.value.shopId = e),
167
- data: n(w).shopBizDict.values,
168
- placeholder: o.$t("orderRefunds.shopNameRequired"),
169
- clearable: "",
170
- onKeyup: l[1] || (l[1] = $((e) => n(u).handleQuery(), ["enter"]))
171
- }, null, 8, ["modelValue", "data", "placeholder"])
172
- ]),
173
- _: 1
174
- }, 8, ["label"])
175
- ]),
176
- _: 1
177
- }),
178
- t(f, { span: 6 }, {
179
- default: r(() => [
180
- t(c, {
181
- label: o.$t("orderRefunds.refundCode"),
182
- prop: "likeOrderCode"
183
- }, {
184
- default: r(() => [
185
- t(U, {
186
- modelValue: d.value.likeOrderCode,
187
- "onUpdate:modelValue": l[2] || (l[2] = (e) => d.value.likeOrderCode = e),
188
- placeholder: o.$t("orderRefunds.refundCodeRequired"),
189
- clearable: "",
190
- onKeyup: l[3] || (l[3] = $((e) => n(u).handleQuery(), ["enter"])),
191
- class: "!w-[203px]"
192
- }, null, 8, ["modelValue", "placeholder"])
193
- ]),
194
- _: 1
195
- }, 8, ["label"])
196
- ]),
197
- _: 1
198
- }),
199
- t(f, { span: 6 }, {
200
- default: r(() => [
201
- t(c, {
202
- label: o.$t("orderRefunds.spuName"),
203
- prop: "likeSpuName"
204
- }, {
205
- default: r(() => [
206
- t(U, {
207
- modelValue: d.value.likeSpuName,
208
- "onUpdate:modelValue": l[4] || (l[4] = (e) => d.value.likeSpuName = e),
209
- placeholder: o.$t("orderRefunds.spuNameRequired"),
210
- clearable: "",
211
- onKeyup: l[5] || (l[5] = $((e) => n(u).handleQuery(), ["enter"])),
212
- class: "!w-[203px]"
213
- }, null, 8, ["modelValue", "placeholder"])
214
- ]),
215
- _: 1
216
- }, 8, ["label"])
217
- ]),
218
- _: 1
219
- }),
220
- t(f, { span: 6 }, {
221
- default: r(() => [
222
- t(c, {
223
- label: o.$t("orderRefunds.refundStatus"),
224
- prop: "refundStatus"
225
- }, {
226
- default: r(() => [
227
- t(E, {
228
- modelValue: d.value.refundStatus,
229
- "onUpdate:modelValue": l[6] || (l[6] = (e) => d.value.refundStatus = e),
230
- data: n(w).refundApplyEnum.values,
231
- placeholder: o.$t("orderRefunds.refundStatusRequired"),
232
- clearable: "",
233
- onKeyup: l[7] || (l[7] = $((e) => n(u).handleQuery(), ["enter"]))
234
- }, null, 8, ["modelValue", "data", "placeholder"])
235
- ]),
236
- _: 1
237
- }, 8, ["label"])
238
- ]),
239
- _: 1
240
- })
241
- ]),
242
- _: 1
243
- }),
244
- t(V, null, {
245
- default: r(() => [
246
- t(f, { span: 6 }, {
247
- default: r(() => [
248
- t(c, {
249
- label: o.$t("orderRefunds.refundsTime"),
250
- prop: "startCreateTime"
251
- }, {
252
- default: r(() => [
253
- t(J, {
254
- modelValue: k.value,
255
- "onUpdate:modelValue": l[8] || (l[8] = (e) => k.value = e),
256
- class: "dropdown-left",
257
- type: "daterange",
258
- "start-placeholder": o.$t("orderRefunds.startCreateTime"),
259
- "end-placeholder": o.$t("orderRefunds.endCreateTime"),
260
- format: "YYYY-MM-DD",
261
- "value-format": "YYYY-MM-DD",
262
- onChange: F
263
- }, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
264
- ]),
265
- _: 1
266
- }, 8, ["label"])
267
- ]),
268
- _: 1
269
- }),
270
- t(f, { span: 18 }, {
271
- default: r(() => [
272
- t(c, { class: "search-btn" }, {
273
- default: r(() => [
274
- t(T, {
275
- type: "primary",
276
- onClick: l[9] || (l[9] = (e) => n(u).handleQuery())
277
- }, {
278
- default: r(() => [
279
- C(a(o.$t("common.search")), 1)
280
- ]),
281
- _: 1
282
- }),
283
- t(T, { onClick: W }, {
284
- default: r(() => [
285
- C(a(o.$t("common.reset")), 1)
286
- ]),
287
- _: 1
288
- })
289
- ]),
290
- _: 1
291
- })
292
- ]),
293
- _: 1
294
- })
295
- ]),
296
- _: 1
297
- })
298
- ]),
299
- _: 1
300
- }, 8, ["model"]),
301
- l[18] || (l[18] = s("div", { class: "clear" }, null, -1))
302
- ]),
303
- t(le, {
304
- shadow: "never",
305
- class: "table-container"
306
- }, {
307
- header: r(() => [
308
- t(V, null, {
309
- default: r(() => [
310
- t(f, { span: 17 }, {
311
- default: r(() => [
312
- I((p(), _(T, {
313
- type: "primary",
314
- onClick: l[10] || (l[10] = (e) => n(u).deleteRecords())
315
- }, {
316
- default: r(() => [
317
- C(a(o.$t("common.batchDelete")), 1)
318
- ]),
319
- _: 1
320
- })), [
321
- [P, ["order:order_refunds:delete"]]
322
- ])
323
- ]),
324
- _: 1
325
- }),
326
- t(f, {
327
- span: 7,
328
- class: "container-float"
329
- }, {
330
- default: r(() => [
331
- t(Z, {
332
- modelValue: n(v),
333
- "onUpdate:modelValue": l[11] || (l[11] = (e) => M(v) ? v.value = e : v = e),
334
- "label-name": "order/order-refunds"
335
- }, null, 8, ["modelValue"])
336
- ]),
337
- _: 1
338
- })
339
- ]),
340
- _: 1
341
- })
342
- ]),
343
- footer: r(() => [
344
- n(h) > 0 ? (p(), _(ee, {
345
- key: 0,
346
- total: n(h),
347
- "onUpdate:total": l[12] || (l[12] = (e) => M(h) ? h.value = e : null),
348
- "current-page": d.value.curPage,
349
- "onUpdate:currentPage": l[13] || (l[13] = (e) => d.value.curPage = e),
350
- "page-size": d.value.pageSize,
351
- "onUpdate:pageSize": l[14] || (l[14] = (e) => d.value.pageSize = e),
352
- onPagination: l[15] || (l[15] = (e) => n(u).getList())
353
- }, null, 8, ["total", "current-page", "page-size"])) : N("", !0)
354
- ]),
355
- default: r(() => [
356
- t(x, {
357
- ref_key: "multipleTableRef",
358
- ref: B,
359
- "row-key": "refundId",
360
- "list-loading": n(A),
361
- data: n(K),
362
- "table-label": n(v),
363
- onSelectionChange: G
364
- }, {
365
- createTime: r((e) => [
366
- s("span", null, a(n(z).$moment.formatDate(
367
- e.data.row.createTime,
368
- "YYYY-MM-DD HH:mm:ss"
369
- )), 1)
370
- ]),
371
- order: r((e) => [
372
- s("div", null, [
373
- s("div", null, a(o.$t("orderRefunds.orderCode")) + ":" + a(e.data.row.orderCode), 1),
374
- s("div", null, a(o.$t("orderRefunds.orderPrice")) + ":¥" + a(e.data.row.orderPrice), 1),
375
- s("div", null, a(o.$t("orderRefunds.freightPrice")) + ":+¥" + a(e.data.row.freightPrice), 1),
376
- s("div", null, a(o.$t("orderRefunds.paymentCouponPrice")) + ":-¥" + a(e.data.row.paymentCouponPrice), 1),
377
- s("div", pe, a(o.$t("orderRefunds.paidPrice")) + ": " + a(e.data.row.orderPrice + e.data.row.freightPrice - e.data.row.paymentCouponPrice), 1),
378
- s("div", null, a(o.$t("orderRefunds.paymentWay")) + ": " + a(n(w).paymentWayEnum.getEnumValue(e.data.row.paymentWay)), 1)
379
- ])
380
- ]),
381
- refundStatus: r((e) => [
382
- s("span", null, a(n(w).refundApplyEnum.getEnumValue(e.data.row.status)), 1)
383
- ]),
384
- operation: r((e) => [
385
- I((p(), D("span", {
386
- class: "el-button-color dropdown-left",
387
- onClick: (S) => n(u).deleteRecord(e.data.row)
388
- }, [
389
- C(a(o.$t("common.delete")), 1)
390
- ], 8, ce)), [
391
- [P, ["order:order_refunds:delete"]]
392
- ]),
393
- I((p(), D("span", {
394
- class: "el-button-color dropdown-left",
395
- onClick: (S) => O(e.data.row)
396
- }, [
397
- C(a(o.$t("common.view")), 1)
398
- ], 8, ve)), [
399
- [P, ["order:order_refunds:view"]]
400
- ]),
401
- s("span", {
402
- class: "el-button-color dropdown-left",
403
- onClick: (S) => L(e.data.row)
404
- }, a(o.$t("orderRefunds.refundReview")), 9, ye),
405
- s("span", {
406
- class: "el-button-color dropdown-left",
407
- onClick: (S) => H(e.data.row)
408
- }, a(o.$t("orderRefunds.refund")), 9, be)
409
- ]),
410
- _: 1
411
- }, 8, ["list-loading", "data", "table-label"])
412
- ]),
413
- _: 1
414
- }),
415
- y.value.visible ? (p(), _(se, {
416
- key: 0,
417
- modelValue: y.value.visible,
418
- "onUpdate:modelValue": l[16] || (l[16] = (e) => y.value.visible = e),
419
- title: y.value.title,
420
- "entity-key": n(g),
421
- onRefresh: Y,
422
- width: "800px"
423
- }, null, 8, ["modelValue", "title", "entity-key"])) : N("", !0),
424
- b.value.visible ? (p(), _(ie, {
425
- key: 1,
426
- modelValue: b.value.visible,
427
- "onUpdate:modelValue": l[17] || (l[17] = (e) => b.value.visible = e),
428
- title: b.value.title,
429
- "entity-key": n(g),
430
- onRefresh: Y,
431
- width: "600px"
432
- }, null, 8, ["modelValue", "title", "entity-key"])) : N("", !0)
433
- ]);
434
- };
435
- }
436
- });
437
- export {
438
- Te as default
439
- };