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,12 +1,11 @@
1
- import { _ as U } from "./index.vue_vue_type_script_setup_true_lang-RpiqLerK.mjs";
2
- import { defineComponent as B, mergeModels as b, ref as I, reactive as N, useModel as F, resolveComponent as i, openBlock as f, createBlock as y, withCtx as o, createElementVNode as K, createVNode as t, createTextVNode as T, toDisplayString as k, unref as e, createCommentVNode as D } from "vue";
3
- import { ElMessage as A } from "element-plus";
4
- import { useI18n as X } from "vue-i18n";
5
- import { D as Y, C as _ } from "./index-suIgymdy.mjs";
6
- import { o as z } from "./index-DyFAVz8t.mjs";
7
- const G = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
1
+ import { defineComponent as P, mergeModels as v, ref as b, reactive as T, useModel as U, resolveComponent as d, openBlock as f, createBlock as y, withCtx as o, createElementVNode as B, createVNode as t, createTextVNode as N, toDisplayString as h, unref as e, createCommentVNode as E } from "vue";
2
+ import { ElMessage as F } from "element-plus";
3
+ import { useI18n as K } from "vue-i18n";
4
+ import { D as Y, C as _ } from "./index-CHzhYqx8.mjs";
5
+ import { o as A } from "./index-CfEKTjAd.mjs";
6
+ const G = { class: "dialog-footer" }, W = /* @__PURE__ */ P({
8
7
  __name: "deliver",
9
- props: /* @__PURE__ */ b({
8
+ props: /* @__PURE__ */ v({
10
9
  entityKey: {
11
10
  type: Object,
12
11
  default: () => {
@@ -21,99 +20,99 @@ const G = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
21
20
  modelValue: { type: Boolean },
22
21
  modelModifiers: {}
23
22
  }),
24
- emits: /* @__PURE__ */ b(["refresh"], ["update:modelValue"]),
25
- setup(g, { emit: h }) {
26
- const { t: m } = X(), v = I();
27
- let l = N({
23
+ emits: /* @__PURE__ */ v(["refresh"], ["update:modelValue"]),
24
+ setup(g, { emit: k }) {
25
+ const { t: i } = K(), I = b();
26
+ let l = T({
28
27
  postType: ""
29
28
  });
30
- const q = N({
29
+ const D = T({
31
30
  postType: [
32
31
  {
33
32
  required: !0,
34
- message: m("orderInfo.postTypeRequired"),
33
+ message: i("orderInfo.postTypeRequired"),
35
34
  trigger: "change"
36
35
  }
37
36
  ],
38
- logisticCode: [
37
+ logisticsCode: [
39
38
  {
40
39
  required: !0,
41
- message: m("orderInfo.logisticCodeRequired"),
40
+ message: i("orderInfo.logisticCodesRequired"),
42
41
  trigger: "change"
43
42
  }
44
43
  ],
45
44
  logisticsNo: [
46
45
  {
47
46
  required: !0,
48
- message: m("orderInfo.logisticsNoRequired"),
47
+ message: i("orderInfo.logisticsNoRequired"),
49
48
  trigger: "blur"
50
49
  }
51
50
  ]
52
- }), n = F(g, "modelValue"), u = g, M = h, $ = Object.keys(u.entityKey), w = I($.length >= 1), E = async () => {
53
- var r;
54
- await ((r = v.value) == null ? void 0 : r.validate((s) => {
55
- s && w.value && z.orderPost({
51
+ }), n = U(g, "modelValue"), u = g, q = k, M = Object.keys(u.entityKey), R = b(M.length >= 1), S = async () => {
52
+ var s;
53
+ await ((s = I.value) == null ? void 0 : s.validate((r) => {
54
+ r && R.value && A.orderPost({
56
55
  orderId: u.entityKey.orderId,
57
56
  orderItemId: u.entityModel.itemId,
58
57
  ...l
59
- }).then((a) => {
60
- console.log(a), a.status === 200 && (A({
61
- message: m("common.submitSuccess"),
58
+ }).then((m) => {
59
+ m.status === 200 && (F({
60
+ message: i("common.submitSuccess"),
62
61
  type: "success"
63
- }), n.value && (n.value = !1), M("refresh", a.status === 200));
62
+ }), n.value && (n.value = !1), q("refresh", m.status === 200));
64
63
  });
65
64
  }));
66
65
  };
67
66
  function V() {
68
67
  n.value && (n.value = !1);
69
68
  }
70
- return (r, s) => {
71
- const a = U, c = i("el-form-item"), p = i("el-col"), R = i("jmash-dict-select"), j = i("el-input"), O = i("el-row"), P = i("el-form"), C = i("el-button"), S = i("el-dialog");
72
- return f(), y(S, {
69
+ return (s, r) => {
70
+ const m = d("jmash-enum-radio"), p = d("el-form-item"), c = d("el-col"), j = d("jmash-dict-select"), O = d("el-input"), $ = d("el-row"), w = d("el-form"), C = d("el-button"), L = d("el-dialog");
71
+ return f(), y(L, {
73
72
  modelValue: n.value,
74
- "onUpdate:modelValue": s[3] || (s[3] = (d) => n.value = d),
73
+ "onUpdate:modelValue": r[3] || (r[3] = (a) => n.value = a),
75
74
  onClose: V
76
75
  }, {
77
76
  footer: o(() => [
78
- K("div", G, [
77
+ B("div", G, [
79
78
  t(C, { onClick: V }, {
80
79
  default: o(() => [
81
- T(k(r.$t("common.cancel")), 1)
80
+ N(h(s.$t("common.cancel")), 1)
82
81
  ]),
83
82
  _: 1
84
83
  }),
85
84
  t(C, {
86
85
  type: "primary",
87
- onClick: E
86
+ onClick: S
88
87
  }, {
89
88
  default: o(() => [
90
- T(k(r.$t("common.confirm")), 1)
89
+ N(h(s.$t("common.confirm")), 1)
91
90
  ]),
92
91
  _: 1
93
92
  })
94
93
  ])
95
94
  ]),
96
95
  default: o(() => [
97
- t(P, {
96
+ t(w, {
98
97
  ref_key: "deliveryForm",
99
- ref: v,
98
+ ref: I,
100
99
  model: e(l),
101
100
  "label-width": "120px",
102
- rules: q
101
+ rules: D
103
102
  }, {
104
103
  default: o(() => [
105
- t(O, null, {
104
+ t($, null, {
106
105
  default: o(() => [
107
- t(p, { span: 24 }, {
106
+ t(c, { span: 24 }, {
108
107
  default: o(() => [
109
- t(c, {
110
- label: r.$t("orderInfo.postType"),
108
+ t(p, {
109
+ label: s.$t("orderInfo.postType"),
111
110
  prop: "postType"
112
111
  }, {
113
112
  default: o(() => [
114
- t(a, {
113
+ t(m, {
115
114
  modelValue: e(l).postType,
116
- "onUpdate:modelValue": s[0] || (s[0] = (d) => e(l).postType = d),
115
+ "onUpdate:modelValue": r[0] || (r[0] = (a) => e(l).postType = a),
117
116
  data: e(Y).postTypeEnum.values
118
117
  }, null, 8, ["modelValue", "data"])
119
118
  ]),
@@ -122,20 +121,20 @@ const G = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
122
121
  ]),
123
122
  _: 1
124
123
  }),
125
- e(l).postType === e(_).logisticsDelivery ? (f(), y(p, {
124
+ e(l).postType === e(_).LOGISTICS_DELIVERY ? (f(), y(c, {
126
125
  key: 0,
127
126
  span: 24
128
127
  }, {
129
128
  default: o(() => [
130
- t(c, {
131
- label: r.$t("orderInfo.logisticCode"),
132
- prop: "logisticCode"
129
+ t(p, {
130
+ label: s.$t("orderInfo.logisticsCode"),
131
+ prop: "logisticsCode"
133
132
  }, {
134
133
  default: o(() => [
135
- t(R, {
136
- modelValue: e(l).logisticCode,
137
- "onUpdate:modelValue": s[1] || (s[1] = (d) => e(l).logisticCode = d),
138
- placeholder: r.$t("orderInfo.logisticCodeRequired"),
134
+ t(j, {
135
+ modelValue: e(l).logisticsCode,
136
+ "onUpdate:modelValue": r[1] || (r[1] = (a) => e(l).logisticsCode = a),
137
+ placeholder: s.$t("orderInfo.logisticCodesRequired"),
139
138
  clearable: "",
140
139
  "type-code": e(_).EXPRESS_COMPANY_CODE
141
140
  }, null, 8, ["modelValue", "placeholder", "type-code"])
@@ -144,21 +143,21 @@ const G = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
144
143
  }, 8, ["label"])
145
144
  ]),
146
145
  _: 1
147
- })) : D("", !0),
148
- e(l).postType === e(_).logisticsDelivery ? (f(), y(p, {
146
+ })) : E("", !0),
147
+ e(l).postType === e(_).LOGISTICS_DELIVERY ? (f(), y(c, {
149
148
  key: 1,
150
149
  span: 24
151
150
  }, {
152
151
  default: o(() => [
153
- t(c, {
154
- label: r.$t("orderInfo.logisticsNo"),
152
+ t(p, {
153
+ label: s.$t("orderInfo.logisticsNo"),
155
154
  prop: "logisticsNo"
156
155
  }, {
157
156
  default: o(() => [
158
- t(j, {
157
+ t(O, {
159
158
  modelValue: e(l).logisticsNo,
160
- "onUpdate:modelValue": s[2] || (s[2] = (d) => e(l).logisticsNo = d),
161
- placeholder: r.$t("orderInfo.logisticsNoRequired"),
159
+ "onUpdate:modelValue": r[2] || (r[2] = (a) => e(l).logisticsNo = a),
160
+ placeholder: s.$t("orderInfo.logisticsNoRequired"),
162
161
  clearable: "",
163
162
  class: "!w-[203px]"
164
163
  }, null, 8, ["modelValue", "placeholder"])
@@ -167,7 +166,7 @@ const G = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
167
166
  }, 8, ["label"])
168
167
  ]),
169
168
  _: 1
170
- })) : D("", !0)
169
+ })) : E("", !0)
171
170
  ]),
172
171
  _: 1
173
172
  })
@@ -181,5 +180,5 @@ const G = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
181
180
  }
182
181
  });
183
182
  export {
184
- x as _
183
+ W as _
185
184
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-YwJOnNI_.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DJFJg9lJ.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as K, mergeModels as V, reactive as h, ref as I, useModel as M, resolveComponent as n, openBlock as j, createBlock as F, withCtx as r, createElementVNode as O, createVNode as l, createTextVNode as v, toDisplayString as w, unref as s } from "vue";
2
2
  import { ElMessage as A } from "element-plus";
3
3
  import { useI18n as D } from "vue-i18n";
4
- import { o as N } from "./index-DyFAVz8t.mjs";
4
+ import { o as N } from "./index-CfEKTjAd.mjs";
5
5
  const S = { class: "dialog-footer" }, J = /* @__PURE__ */ K({
6
6
  __name: "edit",
7
7
  props: /* @__PURE__ */ V({
@@ -53,32 +53,32 @@ const S = { class: "dialog-footer" }, J = /* @__PURE__ */ K({
53
53
  ...a,
54
54
  orderId: i.entityKey.orderId
55
55
  }).then((t) => {
56
- console.log(t), t.status === 200 && (A({
56
+ t.status === 200 && (A({
57
57
  message: u("common.submitSuccess"),
58
58
  type: "success"
59
59
  }), m.value && (m.value = !1), P("refresh", t.status === 200));
60
60
  });
61
61
  }));
62
62
  };
63
- function g() {
63
+ function y() {
64
64
  m.value && (m.value = !1);
65
65
  }
66
66
  return (e, o) => {
67
- const t = n("el-input"), f = n("el-form-item"), p = n("el-col"), U = n("el-row"), B = n("el-form"), y = n("el-button"), E = n("el-dialog");
67
+ const t = n("el-input"), f = n("el-form-item"), p = n("el-col"), U = n("el-row"), B = n("el-form"), g = n("el-button"), E = n("el-dialog");
68
68
  return j(), F(E, {
69
69
  modelValue: m.value,
70
70
  "onUpdate:modelValue": o[3] || (o[3] = (d) => m.value = d),
71
- onClose: g
71
+ onClose: y
72
72
  }, {
73
73
  footer: r(() => [
74
74
  O("div", S, [
75
- l(y, { onClick: g }, {
75
+ l(g, { onClick: y }, {
76
76
  default: r(() => [
77
77
  v(w(e.$t("common.cancel")), 1)
78
78
  ]),
79
79
  _: 1
80
80
  }),
81
- l(y, {
81
+ l(g, {
82
82
  type: "primary",
83
83
  onClick: k
84
84
  }, {