xyvcard-order 0.0.11 → 0.0.13

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 (44) hide show
  1. package/dist/{change-3TnGoLNv.mjs → change-ZEjolHT6.mjs} +1 -1
  2. package/dist/{change.vue_vue_type_script_setup_true_lang-DLfb9HIp.mjs → change.vue_vue_type_script_setup_true_lang-BBPAc1hq.mjs} +3 -3
  3. package/dist/{deliver-CgSCkEMe.mjs → deliver-TfrCwaGj.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-B1aMmSt1.mjs} +9 -9
  5. package/dist/{edit-BgR1glUx.mjs → edit-BdUVrlcn.mjs} +1 -1
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-DJFJg9lJ.mjs → edit.vue_vue_type_script_setup_true_lang-vOwPW97O.mjs} +16 -17
  7. package/dist/index-1R3wKfde.mjs +1493 -0
  8. package/dist/index-B_-apQkW.mjs +62 -0
  9. package/dist/{index-CDXocrFr.mjs → index-ByufLV6K.mjs} +137 -130
  10. package/dist/{index-S4jzuvn6.mjs → index-PLezrWfs.mjs} +146 -151
  11. package/dist/index.mjs +263 -258
  12. package/dist/{info-3uYTUNzE.mjs → info-DYltAD_A.mjs} +1 -1
  13. package/dist/{info-DXX50Xfh.mjs → info-DbWhDIS0.mjs} +64 -64
  14. package/dist/info.vue_vue_type_script_setup_true_lang-Dbup8oTm.mjs +177 -0
  15. package/dist/orderList-RTzDSXuR.mjs +4 -0
  16. package/dist/orderList.vue_vue_type_script_setup_true_lang-wHXiNleT.mjs +612 -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-z7cdFET5.mjs} +1 -1
  20. package/dist/{review.vue_vue_type_script_setup_true_lang-HjQowjbK.mjs → review.vue_vue_type_script_setup_true_lang-DKc6FoP1.mjs} +53 -50
  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/order-appraises/types.d.ts +2 -0
  25. package/dts/src/api/order-info/types.d.ts +5 -0
  26. package/dts/src/api/order-logistics/types.d.ts +3 -0
  27. package/dts/src/api/order-refunds/types.d.ts +3 -0
  28. package/dts/src/lang/order/zh-cn.d.ts +6 -1
  29. package/dts/src/views/order/order-info/orderList.vue.d.ts +14 -0
  30. package/package.json +6 -9
  31. package/dist/canceled-CTHGNWuB.mjs +0 -4
  32. package/dist/canceled.vue_vue_type_script_setup_true_lang-lNPLjFzs.mjs +0 -507
  33. package/dist/completed-BnD0Wh1K.mjs +0 -4
  34. package/dist/completed.vue_vue_type_script_setup_true_lang-ysjYRoxQ.mjs +0 -507
  35. package/dist/index-CfEKTjAd.mjs +0 -1361
  36. package/dist/index-DaOMDld4.mjs +0 -668
  37. package/dist/info.vue_vue_type_script_setup_true_lang-nH2_wV_f.mjs +0 -178
  38. package/dist/unpay-Bc8ekFnl.mjs +0 -4
  39. package/dist/unpay.vue_vue_type_script_setup_true_lang-CsHqHywv.mjs +0 -557
  40. package/dist/unpost-Bj10_WvZ.mjs +0 -4
  41. package/dist/unpost.vue_vue_type_script_setup_true_lang-uEM6F7n_.mjs +0 -538
  42. package/dist/unreceive-CUiJvXq1.mjs +0 -4
  43. package/dist/unreceive.vue_vue_type_script_setup_true_lang-CgWgDNgs.mjs +0 -507
  44. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-jqRN__Ne.mjs +0 -91
@@ -1,8 +1,8 @@
1
- import { defineComponent as E, mergeModels as V, ref as F, reactive as I, useModel as N, resolveComponent as s, openBlock as S, createBlock as U, withCtx as o, createElementVNode as q, createVNode as n, createTextVNode as h, toDisplayString as A, unref as _ } from "vue";
2
- import { ElMessage as D } from "element-plus";
3
- import { useI18n as j } from "vue-i18n";
1
+ import { defineComponent as E, mergeModels as V, ref as F, reactive as h, useModel as N, resolveComponent as s, createBlock as S, openBlock as U, withCtx as o, createVNode as n, unref as _, createElementVNode as q, createTextVNode as I, toDisplayString as A } from "vue";
2
+ import { ElMessage as x } from "element-plus";
3
+ import { useI18n as D } from "vue-i18n";
4
4
  import { useUserStore as i, clearEmpty as m, request as u } from "jmash-core";
5
- class x {
5
+ class j {
6
6
  getKey(e) {
7
7
  return {
8
8
  appraisesId: e.appraisesId
@@ -44,7 +44,7 @@ class x {
44
44
  });
45
45
  }
46
46
  }
47
- const z = new x(), G = { class: "dialog-footer" }, H = /* @__PURE__ */ E({
47
+ const z = new j(), G = { class: "dialog-footer" }, H = /* @__PURE__ */ E({
48
48
  __name: "reply",
49
49
  props: /* @__PURE__ */ V({
50
50
  entityKey: {
@@ -58,11 +58,11 @@ const z = new x(), G = { class: "dialog-footer" }, H = /* @__PURE__ */ E({
58
58
  }),
59
59
  emits: /* @__PURE__ */ V(["refresh"], ["update:modelValue"]),
60
60
  setup(c, { emit: e }) {
61
- const { t } = j(), y = F();
62
- let p = I({
61
+ const { t } = D(), y = F();
62
+ let p = h({
63
63
  requestId: Math.random() * 10 + ""
64
64
  });
65
- const b = I({
65
+ const b = h({
66
66
  replyContent: [
67
67
  {
68
68
  required: !0,
@@ -74,7 +74,7 @@ const z = new x(), G = { class: "dialog-footer" }, H = /* @__PURE__ */ E({
74
74
  var r;
75
75
  await ((r = y.value) == null ? void 0 : r.validate((a) => {
76
76
  a && g.entityKey.appraisesId && z.reply({ appraisesId: g.entityKey.appraisesId, ...p }).then((d) => {
77
- d.status === 200 && (D({
77
+ d.status === 200 && (x({
78
78
  message: t("common.submitSuccess"),
79
79
  type: "success"
80
80
  }), l.value && (l.value = !1), w("refresh", d.status === 200));
@@ -86,7 +86,7 @@ const z = new x(), G = { class: "dialog-footer" }, H = /* @__PURE__ */ E({
86
86
  }
87
87
  return (r, a) => {
88
88
  const d = s("el-input"), M = s("el-form-item"), R = s("el-col"), B = s("el-row"), K = s("el-form"), C = s("el-button"), $ = s("el-dialog");
89
- return S(), U($, {
89
+ return U(), S($, {
90
90
  modelValue: l.value,
91
91
  "onUpdate:modelValue": a[1] || (a[1] = (f) => l.value = f),
92
92
  onClose: v
@@ -95,7 +95,7 @@ const z = new x(), G = { class: "dialog-footer" }, H = /* @__PURE__ */ E({
95
95
  q("div", G, [
96
96
  n(C, { onClick: v }, {
97
97
  default: o(() => [
98
- h(A(r.$t("common.cancel")), 1)
98
+ I(A(r.$t("common.cancel")), 1)
99
99
  ]),
100
100
  _: 1
101
101
  }),
@@ -104,7 +104,7 @@ const z = new x(), G = { class: "dialog-footer" }, H = /* @__PURE__ */ E({
104
104
  onClick: k
105
105
  }, {
106
106
  default: o(() => [
107
- h(A(r.$t("common.confirm")), 1)
107
+ I(A(r.$t("common.confirm")), 1)
108
108
  ]),
109
109
  _: 1
110
110
  })
@@ -132,7 +132,9 @@ const z = new x(), G = { class: "dialog-footer" }, H = /* @__PURE__ */ E({
132
132
  "onUpdate:modelValue": a[0] || (a[0] = (f) => _(p).replyContent = f),
133
133
  placeholder: r.$t("goodsAppraises.replyContentRequired"),
134
134
  type: "textarea",
135
- autosize: { minRows: 4 }
135
+ maxlength: "50",
136
+ "show-word-limit": "",
137
+ autosize: { minRows: 3 }
136
138
  }, null, 8, ["modelValue", "placeholder"])
137
139
  ]),
138
140
  _: 1
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./review.vue_vue_type_script_setup_true_lang-HjQowjbK.mjs";
1
+ import { _ as f } from "./review.vue_vue_type_script_setup_true_lang-DKc6FoP1.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as K, mergeModels as w, ref as O, reactive as U, useModel as S, resolveComponent as t, openBlock as R, createBlock as b, withCtx as u, createElementVNode as G, createVNode as l, createTextVNode as $, toDisplayString as A, unref as e, createCommentVNode as V } from "vue";
1
+ import { defineComponent as K, mergeModels as N, ref as h, reactive as $, useModel as S, resolveComponent as t, createBlock as R, openBlock as b, withCtx as u, createVNode as l, unref as e, createCommentVNode as V, createElementVNode as G, createTextVNode as O, toDisplayString as U } from "vue";
2
2
  import { ElMessage as H } from "element-plus";
3
3
  import { useI18n as J } from "vue-i18n";
4
- import { o as h } from "./index-DAb5kkOk.mjs";
4
+ import { o as A } from "./index-DAb5kkOk.mjs";
5
5
  import { D as T, C as y } from "./index-CHzhYqx8.mjs";
6
6
  const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
7
7
  __name: "review",
8
- props: /* @__PURE__ */ w({
8
+ props: /* @__PURE__ */ N({
9
9
  entityKey: {
10
10
  type: Object,
11
11
  default: () => {
@@ -15,16 +15,16 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
15
15
  modelValue: { type: Boolean },
16
16
  modelModifiers: {}
17
17
  }),
18
- emits: /* @__PURE__ */ w(["refresh"], ["update:modelValue"]),
18
+ emits: /* @__PURE__ */ N(["refresh"], ["update:modelValue"]),
19
19
  setup(_, { emit: E }) {
20
- const { t: a } = J(), c = O();
21
- let o = U({
20
+ const { t: a } = J(), c = h();
21
+ let o = $({
22
22
  requestId: Math.random() * 10 + "",
23
23
  updateMask: "refundAmount,refuseRefundReson,auditOpinion,userName,userMobile,userAddress"
24
24
  });
25
- const M = (n, r, s) => {
25
+ const M = (d, r, s) => {
26
26
  r ? /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(r) ? s() : s(new Error(a("orderRefunds.correctPhone"))) : s(new Error(a("orderRefunds.mobilePhoneRequired")));
27
- }, k = U({
27
+ }, k = $({
28
28
  refundAmount: [
29
29
  {
30
30
  required: !0,
@@ -67,14 +67,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
67
67
  trigger: "blur"
68
68
  }
69
69
  ]
70
- }), f = S(_, "modelValue"), C = E, g = _, j = Object.keys(g.entityKey), v = O(j.length >= 1);
71
- v.value && h.findById(g.entityKey).then(({ data: n }) => {
72
- Object.assign(o, n);
70
+ }), f = S(_, "modelValue"), C = E, g = _, j = Object.keys(g.entityKey), w = h(j.length >= 1);
71
+ w.value && A.findById(g.entityKey).then(({ data: d }) => {
72
+ Object.assign(o, d);
73
73
  });
74
74
  const D = async () => {
75
- var n;
76
- await ((n = c.value) == null ? void 0 : n.validate((r) => {
77
- r && v.value && h.update(o).then((s) => {
75
+ var d;
76
+ await ((d = c.value) == null ? void 0 : d.validate((r) => {
77
+ r && w.value && A.update(o).then((s) => {
78
78
  s.status === 200 && (H({
79
79
  message: a("common.submitSuccess"),
80
80
  type: "success"
@@ -82,30 +82,30 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
82
82
  });
83
83
  }));
84
84
  };
85
- function N() {
85
+ function q() {
86
86
  f.value && (f.value = !1);
87
87
  }
88
- return (n, r) => {
89
- const s = t("jmash-select"), i = t("el-form-item"), m = t("el-col"), F = t("el-input-number"), p = t("el-input"), B = t("jmash-enum-radio"), P = t("el-row"), z = t("el-form"), q = t("el-button"), I = t("el-dialog");
90
- return R(), b(I, {
88
+ return (d, r) => {
89
+ const s = t("jmash-select"), i = t("el-form-item"), m = t("el-col"), F = t("el-input-number"), p = t("el-input"), B = t("jmash-enum-radio"), P = t("el-row"), z = t("el-form"), v = t("el-button"), I = t("el-dialog");
90
+ return b(), R(I, {
91
91
  modelValue: f.value,
92
- "onUpdate:modelValue": r[8] || (r[8] = (d) => f.value = d),
93
- onClose: N
92
+ "onUpdate:modelValue": r[8] || (r[8] = (n) => f.value = n),
93
+ onClose: q
94
94
  }, {
95
95
  footer: u(() => [
96
96
  G("div", L, [
97
- l(q, { onClick: N }, {
97
+ l(v, { onClick: q }, {
98
98
  default: u(() => [
99
- $(A(n.$t("common.cancel")), 1)
99
+ O(U(d.$t("common.cancel")), 1)
100
100
  ]),
101
101
  _: 1
102
102
  }),
103
- l(q, {
103
+ l(v, {
104
104
  type: "primary",
105
105
  onClick: D
106
106
  }, {
107
107
  default: u(() => [
108
- $(A(n.$t("common.confirm")), 1)
108
+ O(U(d.$t("common.confirm")), 1)
109
109
  ]),
110
110
  _: 1
111
111
  })
@@ -125,13 +125,13 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
125
125
  l(m, { span: 12 }, {
126
126
  default: u(() => [
127
127
  l(i, {
128
- label: n.$t("orderRefunds.refundType"),
128
+ label: d.$t("orderRefunds.refundType"),
129
129
  prop: "refundType"
130
130
  }, {
131
131
  default: u(() => [
132
132
  l(s, {
133
133
  modelValue: e(o).refundType,
134
- "onUpdate:modelValue": r[0] || (r[0] = (d) => e(o).refundType = d),
134
+ "onUpdate:modelValue": r[0] || (r[0] = (n) => e(o).refundType = n),
135
135
  data: e(T).refundTypeEnum.values,
136
136
  style: { width: "100% !important" },
137
137
  disabled: ""
@@ -145,17 +145,17 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
145
145
  l(m, { span: 12 }, {
146
146
  default: u(() => [
147
147
  l(i, {
148
- label: n.$t("orderRefunds.refundAmount"),
148
+ label: d.$t("orderRefunds.refundAmount"),
149
149
  prop: "refundAmount"
150
150
  }, {
151
151
  default: u(() => [
152
152
  l(F, {
153
153
  modelValue: e(o).refundAmount,
154
- "onUpdate:modelValue": r[1] || (r[1] = (d) => e(o).refundAmount = d),
154
+ "onUpdate:modelValue": r[1] || (r[1] = (n) => e(o).refundAmount = n),
155
155
  precision: 2,
156
156
  controls: !1,
157
157
  min: 0,
158
- placeholder: n.$t("orderRefunds.refundAmountRequired"),
158
+ placeholder: d.$t("orderRefunds.refundAmountRequired"),
159
159
  class: "w-full"
160
160
  }, null, 8, ["modelValue", "placeholder"])
161
161
  ]),
@@ -167,13 +167,13 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
167
167
  l(m, { span: 24 }, {
168
168
  default: u(() => [
169
169
  l(i, {
170
- label: n.$t("orderRefunds.refundReson"),
170
+ label: d.$t("orderRefunds.refundReson"),
171
171
  prop: "refundReson"
172
172
  }, {
173
173
  default: u(() => [
174
174
  l(p, {
175
175
  modelValue: e(o).refundReson,
176
- "onUpdate:modelValue": r[2] || (r[2] = (d) => e(o).refundReson = d),
176
+ "onUpdate:modelValue": r[2] || (r[2] = (n) => e(o).refundReson = n),
177
177
  type: "textarea",
178
178
  autosize: { minRows: 2 },
179
179
  disabled: ""
@@ -187,13 +187,13 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
187
187
  l(m, { span: 24 }, {
188
188
  default: u(() => [
189
189
  l(i, {
190
- label: n.$t("orderRefunds.auditOpinion"),
190
+ label: d.$t("orderRefunds.auditOpinion"),
191
191
  prop: "auditOpinion"
192
192
  }, {
193
193
  default: u(() => [
194
194
  l(B, {
195
195
  modelValue: e(o).auditOpinion,
196
- "onUpdate:modelValue": r[3] || (r[3] = (d) => e(o).auditOpinion = d),
196
+ "onUpdate:modelValue": r[3] || (r[3] = (n) => e(o).auditOpinion = n),
197
197
  data: e(T).auditOpinion.values
198
198
  }, null, 8, ["modelValue", "data"])
199
199
  ]),
@@ -202,20 +202,20 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
202
202
  ]),
203
203
  _: 1
204
204
  }),
205
- e(o).auditOpinion === !1 ? (R(), b(m, {
205
+ e(o).auditOpinion === !1 ? (b(), R(m, {
206
206
  key: 0,
207
207
  span: 24
208
208
  }, {
209
209
  default: u(() => [
210
210
  l(i, {
211
- label: n.$t("orderRefunds.refuseRefundReson"),
211
+ label: d.$t("orderRefunds.refuseRefundReson"),
212
212
  prop: "refuseRefundReson"
213
213
  }, {
214
214
  default: u(() => [
215
215
  l(p, {
216
216
  modelValue: e(o).refuseRefundReson,
217
- "onUpdate:modelValue": r[4] || (r[4] = (d) => e(o).refuseRefundReson = d),
218
- placeholder: n.$t("orderRefunds.refuseRefundResonRequired"),
217
+ "onUpdate:modelValue": r[4] || (r[4] = (n) => e(o).refuseRefundReson = n),
218
+ placeholder: d.$t("orderRefunds.refuseRefundResonRequired"),
219
219
  type: "textarea",
220
220
  autosize: { minRows: 2 },
221
221
  maxlength: "50",
@@ -227,20 +227,20 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
227
227
  ]),
228
228
  _: 1
229
229
  })) : V("", !0),
230
- e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (R(), b(m, {
230
+ e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (b(), R(m, {
231
231
  key: 1,
232
232
  span: 12
233
233
  }, {
234
234
  default: u(() => [
235
235
  l(i, {
236
- label: n.$t("orderRefunds.userName"),
236
+ label: d.$t("orderRefunds.userName"),
237
237
  prop: "userName"
238
238
  }, {
239
239
  default: u(() => [
240
240
  l(p, {
241
241
  modelValue: e(o).userName,
242
- "onUpdate:modelValue": r[5] || (r[5] = (d) => e(o).userName = d),
243
- placeholder: n.$t("orderRefunds.userNameRequired"),
242
+ "onUpdate:modelValue": r[5] || (r[5] = (n) => e(o).userName = n),
243
+ placeholder: d.$t("orderRefunds.userNameRequired"),
244
244
  clearable: ""
245
245
  }, null, 8, ["modelValue", "placeholder"])
246
246
  ]),
@@ -249,20 +249,20 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
249
249
  ]),
250
250
  _: 1
251
251
  })) : V("", !0),
252
- e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (R(), b(m, {
252
+ e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (b(), R(m, {
253
253
  key: 2,
254
254
  span: 12
255
255
  }, {
256
256
  default: u(() => [
257
257
  l(i, {
258
- label: n.$t("orderRefunds.mobilePhone"),
258
+ label: d.$t("orderRefunds.mobilePhone"),
259
259
  prop: "userMobile"
260
260
  }, {
261
261
  default: u(() => [
262
262
  l(p, {
263
263
  modelValue: e(o).userMobile,
264
- "onUpdate:modelValue": r[6] || (r[6] = (d) => e(o).userMobile = d),
265
- placeholder: n.$t("orderRefunds.mobilePhoneRequired"),
264
+ "onUpdate:modelValue": r[6] || (r[6] = (n) => e(o).userMobile = n),
265
+ placeholder: d.$t("orderRefunds.mobilePhoneRequired"),
266
266
  clearable: ""
267
267
  }, null, 8, ["modelValue", "placeholder"])
268
268
  ]),
@@ -271,22 +271,25 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
271
271
  ]),
272
272
  _: 1
273
273
  })) : V("", !0),
274
- e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (R(), b(m, {
274
+ e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (b(), R(m, {
275
275
  key: 3,
276
276
  span: 24
277
277
  }, {
278
278
  default: u(() => [
279
279
  l(i, {
280
- label: n.$t("orderRefunds.address"),
280
+ label: d.$t("orderRefunds.address"),
281
281
  prop: "userAddress"
282
282
  }, {
283
283
  default: u(() => [
284
284
  l(p, {
285
285
  modelValue: e(o).userAddress,
286
- "onUpdate:modelValue": r[7] || (r[7] = (d) => e(o).userAddress = d),
286
+ "onUpdate:modelValue": r[7] || (r[7] = (n) => e(o).userAddress = n),
287
+ placeholder: d.$t("orderRefunds.addressRequired"),
287
288
  type: "textarea",
288
- autosize: { minRows: 2 }
289
- }, null, 8, ["modelValue"])
289
+ autosize: { minRows: 2 },
290
+ maxlength: "50",
291
+ "show-word-limit": ""
292
+ }, null, 8, ["modelValue", "placeholder"])
290
293
  ]),
291
294
  _: 1
292
295
  }, 8, ["label"])
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .right{float:right}.shopName{margin-bottom:10px}.order-item{display:grid;grid-template-areas:"spuName salesPrice" "specInfo quantity";grid-template-columns:1fr auto;gap:8px;padding:8px 0;border-bottom:1px solid #e0e0e0}.order-item:last-child{border-bottom:none}.item-spuName{grid-area:spuName;white-space:normal!important}.item-salesPrice{grid-area:salesPrice;text-align:right}.item-specInfo{grid-area:specInfo}.item-quantity{grid-area:quantity;text-align:right}.change-price-btn{margin-top:8px;text-align:right;grid-column:span 2}.mobileStyle{display:flex;align-items:center}
1
+ .right{float:right}.mobileStyle{display:flex;align-items:center}.wordsStyle{white-space:normal!important}.shopName{margin-bottom:10px}.order-item{display:grid;grid-template-areas:"spuName salesPrice" "specInfo quantity";grid-template-columns:1fr auto;gap:8px;padding:8px 0;border-bottom:1px solid #e0e0e0}.order-item:last-child{border-bottom:none}.item-spuName{grid-area:spuName;white-space:normal!important}.item-salesPrice{grid-area:salesPrice;text-align:right}.item-specInfo{grid-area:specInfo}.item-quantity{grid-area:quantity;text-align:right}.change-price-btn{margin-top:8px;text-align:right;grid-column:span 2}
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./viewLogist.vue_vue_type_script_setup_true_lang-jqRN__Ne.mjs";
1
+ import { _ as f } from "./viewLogist.vue_vue_type_script_setup_true_lang-CkSqEuA1.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,93 @@
1
+ import { defineComponent as w, ref as x, onBeforeMount as A, watch as B, computed as C, resolveComponent as i, createBlock as s, openBlock as r, withCtx as o, createVNode as p, createElementBlock as _, Fragment as S, renderList as b, createTextVNode as f, toDisplayString as D } from "vue";
2
+ import { useUserStore as E, clearEmpty as N, request as V } from "jmash-core";
3
+ class F {
4
+ getKey(e) {
5
+ return {
6
+ logisticsId: e.logisticsId
7
+ };
8
+ }
9
+ // 查询物流信息
10
+ findLogistics(e) {
11
+ const t = E().user.tenant;
12
+ return N(e), V({
13
+ url: "/v1/order/order_logistics/info/" + t,
14
+ method: "get",
15
+ params: e
16
+ });
17
+ }
18
+ }
19
+ const K = new F(), M = { key: 1 }, U = /* @__PURE__ */ w({
20
+ __name: "viewLogist",
21
+ props: {
22
+ orderId: {
23
+ type: String,
24
+ default: () => ""
25
+ },
26
+ orderItemId: {
27
+ type: String,
28
+ default: () => ""
29
+ }
30
+ },
31
+ emits: ["close"],
32
+ setup(l, { emit: e }) {
33
+ const t = l, n = x([]), g = e;
34
+ function I() {
35
+ g("close");
36
+ }
37
+ function c() {
38
+ K.findLogistics({
39
+ orderId: t.orderId,
40
+ orderItemId: t.orderItemId
41
+ }).then(({ data: a }) => {
42
+ n.value = a.list;
43
+ });
44
+ }
45
+ A(() => {
46
+ c();
47
+ }), B([() => t.orderId, () => t.orderItemId], c);
48
+ const h = C(() => Array.isArray(n.value) ? n.value.length : 0);
49
+ return (a, d) => {
50
+ const v = i("el-button"), y = i("el-timeline-item"), L = i("el-timeline"), m = i("el-card");
51
+ return r(), s(m, { shadow: "never" }, {
52
+ header: o(() => [
53
+ p(v, { onClick: I }, {
54
+ default: o(() => d[0] || (d[0] = [
55
+ f("关闭")
56
+ ])),
57
+ _: 1
58
+ })
59
+ ]),
60
+ default: o(() => [
61
+ p(m, {
62
+ shadow: "never",
63
+ class: "table-container"
64
+ }, {
65
+ default: o(() => [
66
+ h.value > 0 ? (r(), s(L, { key: 0 }, {
67
+ default: o(() => [
68
+ (r(!0), _(S, null, b(n.value, (u, k) => (r(), s(y, {
69
+ key: k,
70
+ timestamp: u.time,
71
+ type: "primary",
72
+ hollow: ""
73
+ }, {
74
+ default: o(() => [
75
+ f(D(u.context), 1)
76
+ ]),
77
+ _: 2
78
+ }, 1032, ["timestamp"]))), 128))
79
+ ]),
80
+ _: 1
81
+ })) : (r(), _("div", M, "暂无数据"))
82
+ ]),
83
+ _: 1
84
+ })
85
+ ]),
86
+ _: 1
87
+ });
88
+ };
89
+ }
90
+ });
91
+ export {
92
+ U as _
93
+ };
@@ -1,5 +1,7 @@
1
+ import type { AxiosPromise } from "axios";
1
2
  import type { EntityApi, EntityReq, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityModel } from "jmash-core";
2
3
  export interface GoodsAppraisesApi extends EntityApi {
4
+ reply(data: GoodsAppraisesRepliesReq): AxiosPromise<GoodsAppraisesModel>;
3
5
  }
4
6
  export interface GoodsAppraisesReq extends EntityReq {
5
7
  shopId?: string;
@@ -1,5 +1,10 @@
1
1
  import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityExportReq } from "jmash-core";
2
+ import type { AxiosPromise } from "axios";
2
3
  export interface OrderInfoApi extends EntityApi {
4
+ orderPost(data: OrderPostReq): AxiosPromise<boolean>;
5
+ orderPrice(data: OrderChangePriceReq): AxiosPromise<boolean>;
6
+ cancel(data: OrderInfoKey): AxiosPromise<boolean>;
7
+ updateAddress(data: OrderChangeAddressReq): AxiosPromise<boolean>;
3
8
  }
4
9
  export interface OrderInfoReq extends EntityReq {
5
10
  shopId?: string;
@@ -1,5 +1,7 @@
1
+ import type { AxiosPromise } from "axios";
1
2
  import type { EntityApi, EntityKey, EntityList, EntityModel } from "jmash-core";
2
3
  export interface OrderLogisticsApi extends EntityApi {
4
+ findLogistics(query?: LogisticsQueryReq): AxiosPromise<LogisticsInfoList>;
3
5
  }
4
6
  export interface OrderLogisticsModel extends EntityModel {
5
7
  logisticsId?: string;
@@ -14,6 +16,7 @@ export interface LogisticsQueryReq {
14
16
  }
15
17
  export interface LogisticsInfoList extends EntityList {
16
18
  list: Array<LogisticsInfoModel>;
19
+ message?: string;
17
20
  }
18
21
  export interface LogisticsInfoModel extends EntityModel {
19
22
  time?: string;
@@ -1,5 +1,7 @@
1
+ import type { AxiosPromise } from "axios";
1
2
  import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityUpdateReq } from "jmash-core";
2
3
  export interface OrderRefundsApi extends EntityApi {
4
+ refund(data: OrderRefundReq): AxiosPromise<boolean>;
3
5
  }
4
6
  export interface OrderRefundsReq extends EntityReq {
5
7
  shopId?: string;
@@ -46,6 +48,7 @@ export interface OrderRefundsKeyList extends EntityKeyList {
46
48
  refundId?: Array<string>;
47
49
  }
48
50
  export interface OrderRefundsUpdateReq extends EntityUpdateReq {
51
+ tenant?: string;
49
52
  refundId?: string;
50
53
  refundType?: string;
51
54
  refundAmount?: number;
@@ -9,7 +9,9 @@ declare const _default: {
9
9
  nickName: string;
10
10
  orderItemList: string;
11
11
  orderCode: string;
12
- PurchasePrice: string;
12
+ purchasePrice: string;
13
+ spuName: string;
14
+ specInfo: string;
13
15
  quantity: string;
14
16
  appraises: string;
15
17
  goodsScore: string;
@@ -123,6 +125,9 @@ declare const _default: {
123
125
  mobilePhoneRequired: string;
124
126
  correctPhone: string;
125
127
  address: string;
128
+ specInfo: string;
129
+ quantity: string;
130
+ salesPrice: string;
126
131
  };
127
132
  };
128
133
  export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
+ orderStatus: {
3
+ type: StringConstructor;
4
+ default: () => string;
5
+ };
6
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
7
+ orderStatus: {
8
+ type: StringConstructor;
9
+ default: () => string;
10
+ };
11
+ }>> & Readonly<{}>, {
12
+ orderStatus: string;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
14
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-order",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",
@@ -11,24 +11,21 @@
11
11
  "peerDependencies": {
12
12
  "axios": "^1.7.7",
13
13
  "element-plus": "^2.8.7",
14
- "jmash-core": "^0.0.108",
15
- "jmash-dict": "^0.0.44",
16
- "jmash-rbac": "^0.0.40",
14
+ "jmash-core": "^0.0.132",
15
+ "jmash-dict": "^0.0.47",
16
+ "jmash-rbac": "^0.0.46",
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",
22
- "xyvcard-shell": "^0.0.8"
21
+ "xyvcard-shop": "^0.0.23",
22
+ "xyvcard-shell": "^0.0.12"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@eslint/js": "^9.16.0",
26
- "@rushstack/eslint-patch": "^1.3.3",
27
26
  "@tsconfig/node20": "^20.1.2",
28
27
  "@types/node": "^20.11.10",
29
28
  "@vitejs/plugin-vue": "^5.0.3",
30
- "@vue/eslint-config-prettier": "^8.0.0",
31
- "@vue/eslint-config-typescript": "^12.0.0",
32
29
  "@vue/tsconfig": "^0.5.1",
33
30
  "eslint": "^9.16.0",
34
31
  "eslint-plugin-vue": "^9.32.0",
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./canceled.vue_vue_type_script_setup_true_lang-lNPLjFzs.mjs";
2
- export {
3
- f as default
4
- };