xyvcard-order 0.0.1

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 (100) hide show
  1. package/README.md +51 -0
  2. package/dist/canceled-CUME6Usz.mjs +4 -0
  3. package/dist/canceled.vue_vue_type_script_setup_true_lang-EX4zYQSu.mjs +509 -0
  4. package/dist/change-CK1I7hL9.mjs +4 -0
  5. package/dist/change.vue_vue_type_script_setup_true_lang-DMUKqQVp.mjs +186 -0
  6. package/dist/completed-Cf86bOvD.mjs +4 -0
  7. package/dist/completed.vue_vue_type_script_setup_true_lang-DqIyhNKh.mjs +509 -0
  8. package/dist/constant-CWTD7ap0.mjs +24 -0
  9. package/dist/deliver-BQIcivCV.mjs +4 -0
  10. package/dist/deliver.vue_vue_type_script_setup_true_lang-_2HCD1vV.mjs +221 -0
  11. package/dist/edit-BtY-5_aq.mjs +4 -0
  12. package/dist/edit-CXp819Cl.mjs +4 -0
  13. package/dist/edit-CagPAsCc.mjs +4 -0
  14. package/dist/edit-DSlSQclm.mjs +4 -0
  15. package/dist/edit-DZTWE770.mjs +4 -0
  16. package/dist/edit-kb9Vbd0O.mjs +553 -0
  17. package/dist/edit.vue_vue_type_script_setup_true_lang-BHG0mS0L.mjs +382 -0
  18. package/dist/edit.vue_vue_type_script_setup_true_lang-BzhS3SvZ.mjs +488 -0
  19. package/dist/edit.vue_vue_type_script_setup_true_lang-Cgbqi1i7.mjs +516 -0
  20. package/dist/edit.vue_vue_type_script_setup_true_lang-DHkYd975.mjs +178 -0
  21. package/dist/edit.vue_vue_type_script_setup_true_lang-be-TDMci.mjs +684 -0
  22. package/dist/index-67kgHrd-.mjs +370 -0
  23. package/dist/index-BYkU3LYC.mjs +343 -0
  24. package/dist/index-CUO59YzZ.mjs +1275 -0
  25. package/dist/index-D-PNIrrr.mjs +55 -0
  26. package/dist/index-DMD0_mKi.mjs +673 -0
  27. package/dist/index-Dbp38ozL.mjs +350 -0
  28. package/dist/index-L15OdEOS.mjs +370 -0
  29. package/dist/index-Nw_g6g3T.mjs +80 -0
  30. package/dist/index-ZpOHqjUk.mjs +344 -0
  31. package/dist/index-w8CmEAxD.mjs +90 -0
  32. package/dist/index-xagR65a1.mjs +59 -0
  33. package/dist/index-zsqXCqfG.mjs +385 -0
  34. package/dist/index.mjs +2825 -0
  35. package/dist/info-6G1vmk51.mjs +369 -0
  36. package/dist/info-BWqDP7Q1.mjs +106 -0
  37. package/dist/style.css +1 -0
  38. package/dist/unpay-CqebDQ24.mjs +4 -0
  39. package/dist/unpay.vue_vue_type_script_setup_true_lang-Cq-l3JEe.mjs +3981 -0
  40. package/dist/unpost-vRTZyaW0.mjs +4 -0
  41. package/dist/unpost.vue_vue_type_script_setup_true_lang-CAd6DqNm.mjs +540 -0
  42. package/dist/unreceive-DUyGNC5h.mjs +4 -0
  43. package/dist/unreceive.vue_vue_type_script_setup_true_lang-DK1USH8c.mjs +509 -0
  44. package/dist/viewLogist-DdG4dbmo.mjs +4 -0
  45. package/dist/viewLogist.vue_vue_type_script_setup_true_lang-POKrzvX7.mjs +77 -0
  46. package/dts/src/App.vue.d.ts +2 -0
  47. package/dts/src/api/dict.d.ts +10 -0
  48. package/dts/src/api/index.d.ts +14 -0
  49. package/dts/src/api/order/order-bill/index.d.ts +20 -0
  50. package/dts/src/api/order/order-bill/types.d.ts +75 -0
  51. package/dts/src/api/order/order-info/index.d.ts +15 -0
  52. package/dts/src/api/order/order-info/types.d.ts +97 -0
  53. package/dts/src/api/order/order-item/index.d.ts +20 -0
  54. package/dts/src/api/order/order-item/types.d.ts +95 -0
  55. package/dts/src/api/order/order-logistics/index.d.ts +12 -0
  56. package/dts/src/api/order/order-logistics/types.d.ts +85 -0
  57. package/dts/src/api/order/order-pay-record/index.d.ts +20 -0
  58. package/dts/src/api/order/order-pay-record/types.d.ts +77 -0
  59. package/dts/src/api/order/order-refund-record/index.d.ts +20 -0
  60. package/dts/src/api/order/order-refund-record/types.d.ts +80 -0
  61. package/dts/src/api/order/order-refunds/index.d.ts +12 -0
  62. package/dts/src/api/order/order-refunds/types.d.ts +47 -0
  63. package/dts/src/api/shop/shop-info/index.d.ts +8 -0
  64. package/dts/src/api/shop/shop-info/types.d.ts +16 -0
  65. package/dts/src/components/EnumRadio/index.vue.d.ts +18 -0
  66. package/dts/src/constant.d.ts +28 -0
  67. package/dts/src/index.d.ts +6 -0
  68. package/dts/src/lang/index.d.ts +1 -0
  69. package/dts/src/lang/order/en.d.ts +2 -0
  70. package/dts/src/lang/order/zh-cn.d.ts +189 -0
  71. package/dts/src/main.d.ts +4 -0
  72. package/dts/src/permission.d.ts +1 -0
  73. package/dts/src/router/orderRouter.d.ts +4 -0
  74. package/dts/src/utils/commons.d.ts +10 -0
  75. package/dts/src/utils/momentPlugin.d.ts +5 -0
  76. package/dts/src/views/order/order-bill/edit.vue.d.ts +22 -0
  77. package/dts/src/views/order/order-bill/index.vue.d.ts +2 -0
  78. package/dts/src/views/order/order-info/canceled.vue.d.ts +2 -0
  79. package/dts/src/views/order/order-info/change.vue.d.ts +31 -0
  80. package/dts/src/views/order/order-info/completed.vue.d.ts +2 -0
  81. package/dts/src/views/order/order-info/deliver.vue.d.ts +31 -0
  82. package/dts/src/views/order/order-info/edit.vue.d.ts +22 -0
  83. package/dts/src/views/order/order-info/index.vue.d.ts +2 -0
  84. package/dts/src/views/order/order-info/info.vue.d.ts +2 -0
  85. package/dts/src/views/order/order-info/unpay.vue.d.ts +2 -0
  86. package/dts/src/views/order/order-info/unpost.vue.d.ts +2 -0
  87. package/dts/src/views/order/order-info/unreceive.vue.d.ts +2 -0
  88. package/dts/src/views/order/order-info/viewLogist.vue.d.ts +27 -0
  89. package/dts/src/views/order/order-item/edit.vue.d.ts +22 -0
  90. package/dts/src/views/order/order-item/index.vue.d.ts +2 -0
  91. package/dts/src/views/order/order-logistics/edit.vue.d.ts +22 -0
  92. package/dts/src/views/order/order-logistics/index.vue.d.ts +2 -0
  93. package/dts/src/views/order/order-pay-record/edit.vue.d.ts +22 -0
  94. package/dts/src/views/order/order-pay-record/index.vue.d.ts +2 -0
  95. package/dts/src/views/order/order-refund-record/edit.vue.d.ts +22 -0
  96. package/dts/src/views/order/order-refund-record/index.vue.d.ts +2 -0
  97. package/dts/src/views/order/order-refunds/edit.vue.d.ts +22 -0
  98. package/dts/src/views/order/order-refunds/index.vue.d.ts +2 -0
  99. package/dts/src/views/order/order-refunds/info.vue.d.ts +2 -0
  100. package/package.json +57 -0
@@ -0,0 +1,24 @@
1
+ var p = Object.defineProperty;
2
+ var t = (c, a, i) => a in c ? p(c, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : c[a] = i;
3
+ var r = (c, a, i) => t(c, typeof a != "symbol" ? a + "" : a, i);
4
+ import { ref as d } from "vue";
5
+ class e {
6
+ }
7
+ // 模块
8
+ r(e, "MODULE_ORDER", "order"), // 评价状态
9
+ r(e, "APPRAISES_STATUS", d([
10
+ { key: !0, value: "已评价" },
11
+ { key: !1, value: "未评价" }
12
+ ])), // 订单状态
13
+ r(e, "ENUM_ORDER_STATUS", "xyvcard.order.protobuf.OrderStatus"), // 支付状态
14
+ r(e, "ENUM_PAYMENT_STATUS", "xyvcard.order.protobuf.PaymentStatus"), // 支付方式
15
+ r(e, "ENUM_PAYMENT_WAY", "xyvcard.order.protobuf.PaymentWay"), // 配送方式
16
+ r(e, "ENUM_DELIVERY_WAY", "xyvcard.order.protobuf.DeliveryWay"), // 发货类型
17
+ r(e, "ENUM_POST_TYPE", "xyvcard.order.protobuf.PostType"), // 物流公司
18
+ r(e, "EXPRESS_COMPANY_CODE", "ExpressCompanyCode"), // 订单状态常量
19
+ r(e, "unpay", "unpay"), r(e, "unpost", "unpost"), r(e, "unreceive", "unreceive"), r(e, "cancel", "cancel"), r(e, "complete", "complete"), // 支付状态常量
20
+ r(e, "unpaid", "unpaid"), r(e, "paid", "paid"), r(e, "part_paid", "part_paid"), // 退款状态
21
+ r(e, "REFUND_APPLY_STATUS", "xyvcard.order.protobuf.RefundApplyStatus");
22
+ export {
23
+ e as C
24
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./deliver.vue_vue_type_script_setup_true_lang-_2HCD1vV.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,221 @@
1
+ import { defineComponent as $, mergeModels as C, useModel as E, resolveComponent as s, openBlock as u, createBlock as _, withCtx as e, createElementBlock as F, Fragment as P, renderList as K, unref as o, createTextVNode as I, toDisplayString as k, ref as M, reactive as q, createElementVNode as A, createVNode as l, createCommentVNode as D } from "vue";
2
+ import { ElMessage as x } from "element-plus";
3
+ import { useI18n as L } from "vue-i18n";
4
+ import { D as X } from "./index-Nw_g6g3T.mjs";
5
+ import { o as Y } from "./index-w8CmEAxD.mjs";
6
+ import { C as z } from "./constant-CWTD7ap0.mjs";
7
+ const G = /* @__PURE__ */ $({
8
+ __name: "index",
9
+ props: /* @__PURE__ */ C({
10
+ data: {
11
+ type: Object,
12
+ default: function() {
13
+ }
14
+ }
15
+ }, {
16
+ modelValue: { type: [String, Boolean] },
17
+ modelModifiers: {}
18
+ }),
19
+ emits: ["update:modelValue"],
20
+ setup(m) {
21
+ const y = E(m, "modelValue"), g = m.data;
22
+ return (t, v) => {
23
+ const d = s("el-radio"), c = s("el-radio-group");
24
+ return u(), _(c, {
25
+ modelValue: y.value,
26
+ "onUpdate:modelValue": v[0] || (v[0] = (n) => y.value = n)
27
+ }, {
28
+ default: e(() => [
29
+ (u(!0), F(P, null, K(o(g), (n) => (u(), _(d, {
30
+ key: n.key,
31
+ value: n.key
32
+ }, {
33
+ default: e(() => [
34
+ I(k(n.value), 1)
35
+ ]),
36
+ _: 2
37
+ }, 1032, ["value"]))), 128))
38
+ ]),
39
+ _: 1
40
+ }, 8, ["modelValue"]);
41
+ };
42
+ }
43
+ }), H = { class: "dialog-footer" }, te = /* @__PURE__ */ $({
44
+ __name: "deliver",
45
+ props: /* @__PURE__ */ C({
46
+ entityKey: {
47
+ type: Object,
48
+ default: () => {
49
+ }
50
+ },
51
+ entityModel: {
52
+ type: Object,
53
+ default: () => {
54
+ }
55
+ }
56
+ }, {
57
+ modelValue: { type: Boolean },
58
+ modelModifiers: {}
59
+ }),
60
+ emits: /* @__PURE__ */ C(["refresh"], ["update:modelValue"]),
61
+ setup(m, { emit: y }) {
62
+ const { t: p } = L(), g = M();
63
+ let t = q({
64
+ postType: ""
65
+ });
66
+ const v = q({
67
+ postType: [
68
+ {
69
+ required: !0,
70
+ message: p("orderInfo.postTypeRequired"),
71
+ trigger: "change"
72
+ }
73
+ ],
74
+ logisticCode: [
75
+ {
76
+ required: !0,
77
+ message: p("orderInfo.logisticCodeRequired"),
78
+ trigger: "blur"
79
+ }
80
+ ],
81
+ logisticsNo: [
82
+ {
83
+ required: !0,
84
+ message: p("orderInfo.logisticsNoRequired"),
85
+ trigger: "blur"
86
+ }
87
+ ]
88
+ }), d = E(m, "modelValue"), c = m, n = y, h = Object.keys(c.entityKey), j = M(h.length >= 1), w = async () => {
89
+ var r;
90
+ await ((r = g.value) == null ? void 0 : r.validate((a) => {
91
+ a && j.value && Y.orderPost({
92
+ orderId: c.entityKey.orderId,
93
+ orderItemId: c.entityModel.itemId,
94
+ ...t
95
+ }).then((f) => {
96
+ console.log(f), f.status === 200 && (x({
97
+ message: p("common.submitSuccess"),
98
+ type: "success"
99
+ }), d.value && (d.value = !1), n("refresh", f.status === 200));
100
+ });
101
+ }));
102
+ };
103
+ function N() {
104
+ d.value && (d.value = !1);
105
+ }
106
+ return (r, a) => {
107
+ const f = G, V = s("el-form-item"), b = s("el-col"), O = s("jmash-dict-select"), R = s("el-input"), B = s("el-row"), S = s("el-form"), T = s("el-button"), U = s("el-dialog");
108
+ return u(), _(U, {
109
+ modelValue: d.value,
110
+ "onUpdate:modelValue": a[3] || (a[3] = (i) => d.value = i),
111
+ onClose: N
112
+ }, {
113
+ footer: e(() => [
114
+ A("div", H, [
115
+ l(T, { onClick: N }, {
116
+ default: e(() => [
117
+ I(k(r.$t("common.cancel")), 1)
118
+ ]),
119
+ _: 1
120
+ }),
121
+ l(T, {
122
+ type: "primary",
123
+ onClick: w
124
+ }, {
125
+ default: e(() => [
126
+ I(k(r.$t("common.confirm")), 1)
127
+ ]),
128
+ _: 1
129
+ })
130
+ ])
131
+ ]),
132
+ default: e(() => [
133
+ l(S, {
134
+ ref_key: "deliveryForm",
135
+ ref: g,
136
+ model: o(t),
137
+ "label-width": "120px",
138
+ rules: v
139
+ }, {
140
+ default: e(() => [
141
+ l(B, null, {
142
+ default: e(() => [
143
+ l(b, { span: 24 }, {
144
+ default: e(() => [
145
+ l(V, {
146
+ label: r.$t("orderInfo.postType"),
147
+ prop: "postType"
148
+ }, {
149
+ default: e(() => [
150
+ l(f, {
151
+ modelValue: o(t).postType,
152
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => o(t).postType = i),
153
+ data: o(X).postTypeEnum.values
154
+ }, null, 8, ["modelValue", "data"])
155
+ ]),
156
+ _: 1
157
+ }, 8, ["label"])
158
+ ]),
159
+ _: 1
160
+ }),
161
+ o(t).postType === "logistics_delivery" ? (u(), _(b, {
162
+ key: 0,
163
+ span: 24
164
+ }, {
165
+ default: e(() => [
166
+ l(V, {
167
+ label: r.$t("orderInfo.logisticCode"),
168
+ prop: "logisticCode"
169
+ }, {
170
+ default: e(() => [
171
+ l(O, {
172
+ modelValue: o(t).logisticCode,
173
+ "onUpdate:modelValue": a[1] || (a[1] = (i) => o(t).logisticCode = i),
174
+ placeholder: r.$t("orderInfo.logisticCodeRequired"),
175
+ clearable: "",
176
+ "type-code": o(z).EXPRESS_COMPANY_CODE
177
+ }, null, 8, ["modelValue", "placeholder", "type-code"])
178
+ ]),
179
+ _: 1
180
+ }, 8, ["label"])
181
+ ]),
182
+ _: 1
183
+ })) : D("", !0),
184
+ o(t).postType === "logistics_delivery" ? (u(), _(b, {
185
+ key: 1,
186
+ span: 24
187
+ }, {
188
+ default: e(() => [
189
+ l(V, {
190
+ label: r.$t("orderInfo.logisticsNo"),
191
+ prop: "logisticsNo"
192
+ }, {
193
+ default: e(() => [
194
+ l(R, {
195
+ modelValue: o(t).logisticsNo,
196
+ "onUpdate:modelValue": a[2] || (a[2] = (i) => o(t).logisticsNo = i),
197
+ placeholder: r.$t("orderInfo.logisticsNoRequired"),
198
+ clearable: "",
199
+ class: "!w-[203px]"
200
+ }, null, 8, ["modelValue", "placeholder"])
201
+ ]),
202
+ _: 1
203
+ }, 8, ["label"])
204
+ ]),
205
+ _: 1
206
+ })) : D("", !0)
207
+ ]),
208
+ _: 1
209
+ })
210
+ ]),
211
+ _: 1
212
+ }, 8, ["model", "rules"])
213
+ ]),
214
+ _: 1
215
+ }, 8, ["modelValue"]);
216
+ };
217
+ }
218
+ });
219
+ export {
220
+ te as _
221
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-be-TDMci.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DHkYd975.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BzhS3SvZ.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-Cgbqi1i7.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BHG0mS0L.mjs";
2
+ export {
3
+ f as default
4
+ };