xyvcard-order 0.0.13 → 0.0.16
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.
- package/dist/{deliver-TfrCwaGj.mjs → deliver-DgeAQGWF.mjs} +1 -1
- package/dist/{deliver.vue_vue_type_script_setup_true_lang-B1aMmSt1.mjs → deliver.vue_vue_type_script_setup_true_lang-C3td_yoA.mjs} +39 -39
- package/dist/{edit-BdUVrlcn.mjs → edit-Deg6r27i.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-vOwPW97O.mjs → edit.vue_vue_type_script_setup_true_lang-UITF3LcS.mjs} +29 -28
- package/dist/{index-ByufLV6K.mjs → index-BU69SZYW.mjs} +108 -111
- package/dist/{index-PLezrWfs.mjs → index-D3YsBDBM.mjs} +107 -104
- package/dist/{index-1R3wKfde.mjs → index-DG1nqqf-.mjs} +514 -541
- package/dist/{index-B_-apQkW.mjs → index-DPz3N69v.mjs} +2 -2
- package/dist/index.mjs +2 -3
- package/dist/{info-DbWhDIS0.mjs → info-B0qHcNt0.mjs} +113 -113
- package/dist/{info-DYltAD_A.mjs → info-CnZwG4mF.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-Dbup8oTm.mjs → info.vue_vue_type_script_setup_true_lang-DKGqSw6X.mjs} +2 -2
- package/dist/{orderList-RTzDSXuR.mjs → orderList-BW_UVwjI.mjs} +1 -1
- package/dist/{orderList.vue_vue_type_script_setup_true_lang-wHXiNleT.mjs → orderList.vue_vue_type_script_setup_true_lang-Dee_j5c-.mjs} +197 -214
- package/dist/{review-z7cdFET5.mjs → review-DH5466Un.mjs} +1 -1
- package/dist/{review.vue_vue_type_script_setup_true_lang-DKc6FoP1.mjs → review.vue_vue_type_script_setup_true_lang-C5Fb8wnP.mjs} +55 -54
- package/dts/src/api/dict.d.ts +0 -6
- package/dts/src/api/order-appraises/types.d.ts +1 -5
- package/dts/src/api/order-info/index.d.ts +1 -2
- package/dts/src/api/order-info/types.d.ts +2 -15
- package/dts/src/api/order-logistics/types.d.ts +0 -3
- package/dts/src/api/order-refunds/types.d.ts +0 -2
- package/dts/src/lang/order/zh-cn.d.ts +0 -1
- package/dts/src/router/orderRouter.d.ts +0 -1
- package/dts/src/views/order/order-info/change.vue.d.ts +1 -10
- package/package.json +5 -5
- package/dist/change-ZEjolHT6.mjs +0 -4
- package/dist/change.vue_vue_type_script_setup_true_lang-BBPAc1hq.mjs +0 -190
- package/dts/src/components/EnumRadio/index.vue.d.ts +0 -18
- package/dts/src/views/order/order-info/canceled.vue.d.ts +0 -2
- package/dts/src/views/order/order-info/completed.vue.d.ts +0 -2
- package/dts/src/views/order/order-info/unpay.vue.d.ts +0 -2
- package/dts/src/views/order/order-info/unpost.vue.d.ts +0 -2
- package/dts/src/views/order/order-info/unreceive.vue.d.ts +0 -2
- package/dist/{index-CHzhYqx8.mjs → index-CIvF2jlB.mjs} +1 -1
@@ -1,11 +1,11 @@
|
|
1
|
-
import { defineComponent as P, mergeModels as
|
2
|
-
import { ElMessage as
|
3
|
-
import { useI18n as
|
4
|
-
import {
|
5
|
-
import { o as
|
6
|
-
const
|
1
|
+
import { defineComponent as P, mergeModels as v, ref as b, reactive as T, useModel as U, resolveComponent as d, createBlock as _, openBlock as y, withCtx as o, createVNode as t, unref as e, createCommentVNode as E, createElementVNode as Y, createTextVNode as N, toDisplayString as h } from "vue";
|
2
|
+
import { ElMessage as B } from "element-plus";
|
3
|
+
import { useI18n as F } from "vue-i18n";
|
4
|
+
import { C as u, D as G } from "./index-CIvF2jlB.mjs";
|
5
|
+
import { o as K } from "./index-DG1nqqf-.mjs";
|
6
|
+
const A = { class: "dialog-footer" }, W = /* @__PURE__ */ P({
|
7
7
|
__name: "deliver",
|
8
|
-
props: /* @__PURE__ */
|
8
|
+
props: /* @__PURE__ */ v({
|
9
9
|
entityKey: {
|
10
10
|
type: Object,
|
11
11
|
default: () => {
|
@@ -20,13 +20,13 @@ const G = { class: "dialog-footer" }, W = /* @__PURE__ */ P({
|
|
20
20
|
modelValue: { type: Boolean },
|
21
21
|
modelModifiers: {}
|
22
22
|
}),
|
23
|
-
emits: /* @__PURE__ */
|
24
|
-
setup(g, { emit:
|
25
|
-
const { t: i } =
|
23
|
+
emits: /* @__PURE__ */ v(["refresh"], ["update:modelValue"]),
|
24
|
+
setup(g, { emit: D }) {
|
25
|
+
const { t: i } = F(), I = b();
|
26
26
|
let l = T({
|
27
|
-
postType:
|
27
|
+
postType: u.LOGISTICS_DELIVERY
|
28
28
|
});
|
29
|
-
const
|
29
|
+
const S = T({
|
30
30
|
postType: [
|
31
31
|
{
|
32
32
|
required: !0,
|
@@ -48,18 +48,18 @@ const G = { class: "dialog-footer" }, W = /* @__PURE__ */ P({
|
|
48
48
|
trigger: "blur"
|
49
49
|
}
|
50
50
|
]
|
51
|
-
}), n = U(g, "modelValue"),
|
51
|
+
}), n = U(g, "modelValue"), p = g, k = D, R = Object.keys(p.entityKey), q = b(R.length >= 1), M = async () => {
|
52
52
|
var s;
|
53
53
|
await ((s = I.value) == null ? void 0 : s.validate((r) => {
|
54
|
-
r &&
|
55
|
-
orderId:
|
56
|
-
orderItemId:
|
54
|
+
r && q.value && K.orderPost({
|
55
|
+
orderId: p.entityKey.orderId,
|
56
|
+
orderItemId: p.entityModel.itemId,
|
57
57
|
...l
|
58
58
|
}).then((m) => {
|
59
|
-
m.status === 200 && (
|
59
|
+
m.status === 200 && (B({
|
60
60
|
message: i("common.submitSuccess"),
|
61
61
|
type: "success"
|
62
|
-
}), n.value && (n.value = !1),
|
62
|
+
}), n.value && (n.value = !1), k("refresh", m.status === 200));
|
63
63
|
});
|
64
64
|
}));
|
65
65
|
};
|
@@ -67,26 +67,26 @@ const G = { class: "dialog-footer" }, W = /* @__PURE__ */ P({
|
|
67
67
|
n.value && (n.value = !1);
|
68
68
|
}
|
69
69
|
return (s, r) => {
|
70
|
-
const m = d("jmash-enum-radio"),
|
71
|
-
return y(),
|
70
|
+
const m = d("jmash-enum-radio"), c = d("el-form-item"), f = d("el-col"), O = d("jmash-dict-select"), j = d("el-input"), $ = d("el-row"), w = d("el-form"), C = d("el-button"), L = d("el-dialog");
|
71
|
+
return y(), _(L, {
|
72
72
|
modelValue: n.value,
|
73
73
|
"onUpdate:modelValue": r[3] || (r[3] = (a) => n.value = a),
|
74
74
|
onClose: V
|
75
75
|
}, {
|
76
76
|
footer: o(() => [
|
77
|
-
|
78
|
-
t(
|
77
|
+
Y("div", A, [
|
78
|
+
t(C, { onClick: V }, {
|
79
79
|
default: o(() => [
|
80
|
-
h(
|
80
|
+
N(h(s.$t("common.cancel")), 1)
|
81
81
|
]),
|
82
82
|
_: 1
|
83
83
|
}),
|
84
|
-
t(
|
84
|
+
t(C, {
|
85
85
|
type: "primary",
|
86
|
-
onClick:
|
86
|
+
onClick: M
|
87
87
|
}, {
|
88
88
|
default: o(() => [
|
89
|
-
h(
|
89
|
+
N(h(s.$t("common.confirm")), 1)
|
90
90
|
]),
|
91
91
|
_: 1
|
92
92
|
})
|
@@ -98,14 +98,14 @@ const G = { class: "dialog-footer" }, W = /* @__PURE__ */ P({
|
|
98
98
|
ref: I,
|
99
99
|
model: e(l),
|
100
100
|
"label-width": "120px",
|
101
|
-
rules:
|
101
|
+
rules: S
|
102
102
|
}, {
|
103
103
|
default: o(() => [
|
104
104
|
t($, null, {
|
105
105
|
default: o(() => [
|
106
|
-
t(
|
106
|
+
t(f, { span: 24 }, {
|
107
107
|
default: o(() => [
|
108
|
-
t(
|
108
|
+
t(c, {
|
109
109
|
label: s.$t("orderInfo.postType"),
|
110
110
|
prop: "postType"
|
111
111
|
}, {
|
@@ -113,7 +113,7 @@ const G = { class: "dialog-footer" }, W = /* @__PURE__ */ P({
|
|
113
113
|
t(m, {
|
114
114
|
modelValue: e(l).postType,
|
115
115
|
"onUpdate:modelValue": r[0] || (r[0] = (a) => e(l).postType = a),
|
116
|
-
data: e(
|
116
|
+
data: e(G).postTypeEnum.values
|
117
117
|
}, null, 8, ["modelValue", "data"])
|
118
118
|
]),
|
119
119
|
_: 1
|
@@ -121,40 +121,40 @@ const G = { class: "dialog-footer" }, W = /* @__PURE__ */ P({
|
|
121
121
|
]),
|
122
122
|
_: 1
|
123
123
|
}),
|
124
|
-
e(l).postType === e(
|
124
|
+
e(l).postType === e(u).LOGISTICS_DELIVERY ? (y(), _(f, {
|
125
125
|
key: 0,
|
126
126
|
span: 24
|
127
127
|
}, {
|
128
128
|
default: o(() => [
|
129
|
-
t(
|
129
|
+
t(c, {
|
130
130
|
label: s.$t("orderInfo.logisticsCode"),
|
131
131
|
prop: "logisticsCode"
|
132
132
|
}, {
|
133
133
|
default: o(() => [
|
134
|
-
t(
|
134
|
+
t(O, {
|
135
135
|
modelValue: e(l).logisticsCode,
|
136
136
|
"onUpdate:modelValue": r[1] || (r[1] = (a) => e(l).logisticsCode = a),
|
137
137
|
placeholder: s.$t("orderInfo.logisticCodesRequired"),
|
138
138
|
clearable: "",
|
139
|
-
"type-code": e(
|
139
|
+
"type-code": e(u).EXPRESS_COMPANY_CODE
|
140
140
|
}, null, 8, ["modelValue", "placeholder", "type-code"])
|
141
141
|
]),
|
142
142
|
_: 1
|
143
143
|
}, 8, ["label"])
|
144
144
|
]),
|
145
145
|
_: 1
|
146
|
-
})) :
|
147
|
-
e(l).postType === e(
|
146
|
+
})) : E("", !0),
|
147
|
+
e(l).postType === e(u).LOGISTICS_DELIVERY ? (y(), _(f, {
|
148
148
|
key: 1,
|
149
149
|
span: 24
|
150
150
|
}, {
|
151
151
|
default: o(() => [
|
152
|
-
t(
|
152
|
+
t(c, {
|
153
153
|
label: s.$t("orderInfo.logisticsNo"),
|
154
154
|
prop: "logisticsNo"
|
155
155
|
}, {
|
156
156
|
default: o(() => [
|
157
|
-
t(
|
157
|
+
t(j, {
|
158
158
|
modelValue: e(l).logisticsNo,
|
159
159
|
"onUpdate:modelValue": r[2] || (r[2] = (a) => e(l).logisticsNo = a),
|
160
160
|
placeholder: s.$t("orderInfo.logisticsNoRequired"),
|
@@ -166,7 +166,7 @@ const G = { class: "dialog-footer" }, W = /* @__PURE__ */ P({
|
|
166
166
|
}, 8, ["label"])
|
167
167
|
]),
|
168
168
|
_: 1
|
169
|
-
})) :
|
169
|
+
})) : E("", !0)
|
170
170
|
]),
|
171
171
|
_: 1
|
172
172
|
})
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import { defineComponent as K, mergeModels as V, reactive as h, ref as I, useModel as M, resolveComponent as
|
1
|
+
import { defineComponent as K, mergeModels as V, reactive as h, ref as I, useModel as M, resolveComponent as d, createBlock as j, openBlock as F, withCtx as r, createVNode as l, unref as s, createElementVNode as O, createTextVNode as v, toDisplayString as N } from "vue";
|
2
2
|
import { ElMessage as A } from "element-plus";
|
3
3
|
import { useI18n as D } from "vue-i18n";
|
4
|
-
import {
|
5
|
-
|
4
|
+
import { validatePhoneNumber as S } from "jmash-core";
|
5
|
+
import { o as w } from "./index-DG1nqqf-.mjs";
|
6
|
+
const z = { class: "dialog-footer" }, Q = /* @__PURE__ */ K({
|
6
7
|
__name: "edit",
|
7
8
|
props: /* @__PURE__ */ V({
|
8
9
|
entityKey: {
|
@@ -17,10 +18,10 @@ const S = { class: "dialog-footer" }, J = /* @__PURE__ */ K({
|
|
17
18
|
emits: /* @__PURE__ */ V(["refresh"], ["update:modelValue"]),
|
18
19
|
setup(c, { emit: q }) {
|
19
20
|
const { t: u } = D();
|
20
|
-
let
|
21
|
-
const
|
22
|
-
o ?
|
23
|
-
},
|
21
|
+
let n = h({});
|
22
|
+
const P = (e, o, t) => {
|
23
|
+
o ? S(o) ? t() : t(new Error(u("orderInfo.correctPhone"))) : t(new Error(u("orderInfo.mobilePhoneRequired")));
|
24
|
+
}, R = h({
|
24
25
|
userName: [
|
25
26
|
{
|
26
27
|
required: !0,
|
@@ -31,7 +32,7 @@ const S = { class: "dialog-footer" }, J = /* @__PURE__ */ K({
|
|
31
32
|
mobilePhone: [
|
32
33
|
{
|
33
34
|
required: !0,
|
34
|
-
validator:
|
35
|
+
validator: P,
|
35
36
|
trigger: "blur"
|
36
37
|
}
|
37
38
|
],
|
@@ -42,21 +43,21 @@ const S = { class: "dialog-footer" }, J = /* @__PURE__ */ K({
|
|
42
43
|
trigger: "blur"
|
43
44
|
}
|
44
45
|
]
|
45
|
-
}), b = I(),
|
46
|
-
_.value &&
|
47
|
-
Object.assign(
|
46
|
+
}), b = I(), $ = q, m = M(c, "modelValue"), i = c, C = Object.keys(i.entityKey), _ = I(C.length >= 1);
|
47
|
+
_.value && w.findById(i.entityKey).then(({ data: e }) => {
|
48
|
+
Object.assign(n, e);
|
48
49
|
});
|
49
50
|
const k = async () => {
|
50
51
|
var e;
|
51
52
|
await ((e = b.value) == null ? void 0 : e.validate((o) => {
|
52
|
-
o && _.value &&
|
53
|
-
...
|
53
|
+
o && _.value && w.updateAddress({
|
54
|
+
...n,
|
54
55
|
orderId: i.entityKey.orderId
|
55
56
|
}).then((t) => {
|
56
57
|
t.status === 200 && (A({
|
57
58
|
message: u("common.submitSuccess"),
|
58
59
|
type: "success"
|
59
|
-
}), m.value && (m.value = !1),
|
60
|
+
}), m.value && (m.value = !1), $("refresh", t.status === 200));
|
60
61
|
});
|
61
62
|
}));
|
62
63
|
};
|
@@ -64,17 +65,17 @@ const S = { class: "dialog-footer" }, J = /* @__PURE__ */ K({
|
|
64
65
|
m.value && (m.value = !1);
|
65
66
|
}
|
66
67
|
return (e, o) => {
|
67
|
-
const t =
|
68
|
+
const t = d("el-input"), f = d("el-form-item"), p = d("el-col"), U = d("el-row"), B = d("el-form"), g = d("el-button"), E = d("el-dialog");
|
68
69
|
return F(), j(E, {
|
69
70
|
modelValue: m.value,
|
70
|
-
"onUpdate:modelValue": o[3] || (o[3] = (
|
71
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => m.value = a),
|
71
72
|
onClose: y
|
72
73
|
}, {
|
73
74
|
footer: r(() => [
|
74
|
-
O("div",
|
75
|
+
O("div", z, [
|
75
76
|
l(g, { onClick: y }, {
|
76
77
|
default: r(() => [
|
77
|
-
v(
|
78
|
+
v(N(e.$t("common.cancel")), 1)
|
78
79
|
]),
|
79
80
|
_: 1
|
80
81
|
}),
|
@@ -83,7 +84,7 @@ const S = { class: "dialog-footer" }, J = /* @__PURE__ */ K({
|
|
83
84
|
onClick: k
|
84
85
|
}, {
|
85
86
|
default: r(() => [
|
86
|
-
v(
|
87
|
+
v(N(e.$t("common.confirm")), 1)
|
87
88
|
]),
|
88
89
|
_: 1
|
89
90
|
})
|
@@ -93,9 +94,9 @@ const S = { class: "dialog-footer" }, J = /* @__PURE__ */ K({
|
|
93
94
|
l(B, {
|
94
95
|
ref_key: "infoFormRef",
|
95
96
|
ref: b,
|
96
|
-
model: s(
|
97
|
+
model: s(n),
|
97
98
|
"label-width": "120px",
|
98
|
-
rules:
|
99
|
+
rules: R
|
99
100
|
}, {
|
100
101
|
default: r(() => [
|
101
102
|
l(U, null, {
|
@@ -108,8 +109,8 @@ const S = { class: "dialog-footer" }, J = /* @__PURE__ */ K({
|
|
108
109
|
}, {
|
109
110
|
default: r(() => [
|
110
111
|
l(t, {
|
111
|
-
modelValue: s(
|
112
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
112
|
+
modelValue: s(n).userName,
|
113
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => s(n).userName = a),
|
113
114
|
placeholder: e.$t("orderInfo.userNameRequired"),
|
114
115
|
clearable: ""
|
115
116
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -127,8 +128,8 @@ const S = { class: "dialog-footer" }, J = /* @__PURE__ */ K({
|
|
127
128
|
}, {
|
128
129
|
default: r(() => [
|
129
130
|
l(t, {
|
130
|
-
modelValue: s(
|
131
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
131
|
+
modelValue: s(n).mobilePhone,
|
132
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => s(n).mobilePhone = a),
|
132
133
|
placeholder: e.$t("orderInfo.mobilePhoneRequired"),
|
133
134
|
clearable: ""
|
134
135
|
}, null, 8, ["modelValue", "placeholder"])
|
@@ -146,8 +147,8 @@ const S = { class: "dialog-footer" }, J = /* @__PURE__ */ K({
|
|
146
147
|
}, {
|
147
148
|
default: r(() => [
|
148
149
|
l(t, {
|
149
|
-
modelValue: s(
|
150
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
150
|
+
modelValue: s(n).address,
|
151
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => s(n).address = a),
|
151
152
|
type: "textarea",
|
152
153
|
autosize: { minRows: 3 },
|
153
154
|
maxlength: "50",
|
@@ -173,5 +174,5 @@ const S = { class: "dialog-footer" }, J = /* @__PURE__ */ K({
|
|
173
174
|
}
|
174
175
|
});
|
175
176
|
export {
|
176
|
-
|
177
|
+
Q as _
|
177
178
|
};
|