xyvcard-order 0.0.8 → 0.0.9

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