xyvcard-order 0.0.12 → 0.0.14
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/{change-3TnGoLNv.mjs → change-DGamLhRi.mjs} +1 -1
- package/dist/change.vue_vue_type_script_setup_true_lang-C8lf4PIw.mjs +170 -0
- package/dist/{deliver-CgSCkEMe.mjs → deliver-c_zzsilY.mjs} +1 -1
- package/dist/{deliver.vue_vue_type_script_setup_true_lang-DPhLC_oU.mjs → deliver.vue_vue_type_script_setup_true_lang-DAoCkmOi.mjs} +35 -35
- package/dist/{edit-BgR1glUx.mjs → edit-mVQUFq0q.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DJFJg9lJ.mjs → edit.vue_vue_type_script_setup_true_lang-AHBcvcRn.mjs} +31 -31
- package/dist/{index-BLTeDGPq.mjs → index-BlR9fPfK.mjs} +127 -131
- package/dist/index-CxzT_Hk2.mjs +62 -0
- package/dist/index-D3YsBDBM.mjs +373 -0
- package/dist/index-IiHp9Y40.mjs +1475 -0
- package/dist/index.mjs +263 -258
- package/dist/info-BgzKwnii.mjs +328 -0
- package/dist/{info-3uYTUNzE.mjs → info-BpYW4SHu.mjs} +1 -1
- package/dist/info.vue_vue_type_script_setup_true_lang-BioQaXDt.mjs +177 -0
- package/dist/orderList-CNj8AcQQ.mjs +4 -0
- package/dist/orderList.vue_vue_type_script_setup_true_lang-C0EyjiIS.mjs +609 -0
- package/dist/{reply-9iq8g6ah.mjs → reply-BWKE7lzJ.mjs} +1 -1
- package/dist/{reply.vue_vue_type_script_setup_true_lang-BJSf7a8S.mjs → reply.vue_vue_type_script_setup_true_lang-AnsyNIM8.mjs} +15 -13
- package/dist/{review-DY1KQI3U.mjs → review-DH5466Un.mjs} +1 -1
- package/dist/{review.vue_vue_type_script_setup_true_lang-HjQowjbK.mjs → review.vue_vue_type_script_setup_true_lang-C5Fb8wnP.mjs} +81 -77
- package/dist/style.css +1 -1
- package/dist/{viewLogist-Cxu-IV-d.mjs → viewLogist-CHiDaaZx.mjs} +1 -1
- package/dist/viewLogist.vue_vue_type_script_setup_true_lang-CkSqEuA1.mjs +93 -0
- package/dts/src/api/dict.d.ts +0 -6
- package/dts/src/api/order-appraises/types.d.ts +3 -3
- package/dts/src/api/order-info/types.d.ts +8 -1
- package/dts/src/api/order-logistics/types.d.ts +2 -0
- package/dts/src/api/order-refunds/types.d.ts +3 -0
- package/dts/src/lang/order/zh-cn.d.ts +6 -1
- package/dts/src/router/orderRouter.d.ts +0 -1
- package/dts/src/views/order/order-info/change.vue.d.ts +1 -10
- package/dts/src/{components/EnumRadio/index.vue.d.ts → views/order/order-info/orderList.vue.d.ts} +7 -11
- package/dts/src/views/order/order-info/viewLogist.vue.d.ts +1 -1
- package/package.json +6 -9
- package/dist/canceled-CTHGNWuB.mjs +0 -4
- package/dist/canceled.vue_vue_type_script_setup_true_lang-lNPLjFzs.mjs +0 -507
- package/dist/change.vue_vue_type_script_setup_true_lang-DLfb9HIp.mjs +0 -190
- package/dist/completed-BnD0Wh1K.mjs +0 -4
- package/dist/completed.vue_vue_type_script_setup_true_lang-ysjYRoxQ.mjs +0 -507
- package/dist/index-CfEKTjAd.mjs +0 -1361
- package/dist/index-DaOMDld4.mjs +0 -668
- package/dist/index-S4jzuvn6.mjs +0 -375
- package/dist/info-DXX50Xfh.mjs +0 -328
- package/dist/info.vue_vue_type_script_setup_true_lang-nH2_wV_f.mjs +0 -178
- package/dist/unpay-Bc8ekFnl.mjs +0 -4
- package/dist/unpay.vue_vue_type_script_setup_true_lang-CsHqHywv.mjs +0 -557
- package/dist/unpost-Bj10_WvZ.mjs +0 -4
- package/dist/unpost.vue_vue_type_script_setup_true_lang-uEM6F7n_.mjs +0 -538
- package/dist/unreceive-CUiJvXq1.mjs +0 -4
- package/dist/unreceive.vue_vue_type_script_setup_true_lang-CgWgDNgs.mjs +0 -507
- package/dist/viewLogist.vue_vue_type_script_setup_true_lang-jqRN__Ne.mjs +0 -91
- 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,8 +1,8 @@
|
|
1
|
-
import { defineComponent as E, mergeModels as V, ref as F, reactive as
|
2
|
-
import { ElMessage as
|
3
|
-
import { useI18n as
|
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
|
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
|
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 } =
|
62
|
-
let p =
|
61
|
+
const { t } = D(), y = F();
|
62
|
+
let p = h({
|
63
63
|
requestId: Math.random() * 10 + ""
|
64
64
|
});
|
65
|
-
const b =
|
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 && (
|
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
|
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
|
-
|
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
|
-
|
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
|
-
|
135
|
+
maxlength: "50",
|
136
|
+
"show-word-limit": "",
|
137
|
+
autosize: { minRows: 3 }
|
136
138
|
}, null, 8, ["modelValue", "placeholder"])
|
137
139
|
]),
|
138
140
|
_: 1
|
@@ -1,11 +1,12 @@
|
|
1
|
-
import { defineComponent as K, mergeModels as
|
1
|
+
import { defineComponent as K, mergeModels as q, ref as h, reactive as O, useModel as S, resolveComponent as t, createBlock as R, openBlock as b, withCtx as u, createVNode as r, unref as e, createCommentVNode as V, createElementVNode as G, createTextVNode as U, toDisplayString as $ } from "vue";
|
2
2
|
import { ElMessage as H } from "element-plus";
|
3
3
|
import { useI18n as J } from "vue-i18n";
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
|
4
|
+
import { validatePhoneNumber as L } from "jmash-core";
|
5
|
+
import { o as A } from "./index-DAb5kkOk.mjs";
|
6
|
+
import { D as T, C as y } from "./index-CIvF2jlB.mjs";
|
7
|
+
const Q = { class: "dialog-footer" }, oe = /* @__PURE__ */ K({
|
7
8
|
__name: "review",
|
8
|
-
props: /* @__PURE__ */
|
9
|
+
props: /* @__PURE__ */ q({
|
9
10
|
entityKey: {
|
10
11
|
type: Object,
|
11
12
|
default: () => {
|
@@ -15,16 +16,16 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
15
16
|
modelValue: { type: Boolean },
|
16
17
|
modelModifiers: {}
|
17
18
|
}),
|
18
|
-
emits: /* @__PURE__ */
|
19
|
+
emits: /* @__PURE__ */ q(["refresh"], ["update:modelValue"]),
|
19
20
|
setup(_, { emit: E }) {
|
20
|
-
const { t: a } = J(), c =
|
21
|
-
let o =
|
21
|
+
const { t: a } = J(), c = h();
|
22
|
+
let o = O({
|
22
23
|
requestId: Math.random() * 10 + "",
|
23
24
|
updateMask: "refundAmount,refuseRefundReson,auditOpinion,userName,userMobile,userAddress"
|
24
25
|
});
|
25
|
-
const M = (
|
26
|
-
|
27
|
-
}, k =
|
26
|
+
const M = (d, l, s) => {
|
27
|
+
l ? L(l) ? s() : s(new Error(a("orderRefunds.correctPhone"))) : s(new Error(a("orderRefunds.mobilePhoneRequired")));
|
28
|
+
}, k = O({
|
28
29
|
refundAmount: [
|
29
30
|
{
|
30
31
|
required: !0,
|
@@ -67,14 +68,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
67
68
|
trigger: "blur"
|
68
69
|
}
|
69
70
|
]
|
70
|
-
}), f = S(_, "modelValue"), C = E, g = _, j = Object.keys(g.entityKey), v =
|
71
|
-
v.value &&
|
72
|
-
Object.assign(o,
|
71
|
+
}), f = S(_, "modelValue"), C = E, g = _, j = Object.keys(g.entityKey), v = h(j.length >= 1);
|
72
|
+
v.value && A.findById(g.entityKey).then(({ data: d }) => {
|
73
|
+
Object.assign(o, d);
|
73
74
|
});
|
74
75
|
const D = async () => {
|
75
|
-
var
|
76
|
-
await ((
|
77
|
-
|
76
|
+
var d;
|
77
|
+
await ((d = c.value) == null ? void 0 : d.validate((l) => {
|
78
|
+
l && v.value && A.update(o).then((s) => {
|
78
79
|
s.status === 200 && (H({
|
79
80
|
message: a("common.submitSuccess"),
|
80
81
|
type: "success"
|
@@ -82,37 +83,37 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
82
83
|
});
|
83
84
|
}));
|
84
85
|
};
|
85
|
-
function
|
86
|
+
function w() {
|
86
87
|
f.value && (f.value = !1);
|
87
88
|
}
|
88
|
-
return (
|
89
|
-
const s = t("jmash-select"), i = t("el-form-item"), m = t("el-col"), F = t("el-input-number"), p = t("el-input"),
|
90
|
-
return
|
89
|
+
return (d, l) => {
|
90
|
+
const s = t("jmash-select"), i = t("el-form-item"), m = t("el-col"), F = t("el-input-number"), p = t("el-input"), P = t("jmash-enum-radio"), B = t("el-row"), z = t("el-form"), N = t("el-button"), I = t("el-dialog");
|
91
|
+
return b(), R(I, {
|
91
92
|
modelValue: f.value,
|
92
|
-
"onUpdate:modelValue":
|
93
|
-
onClose:
|
93
|
+
"onUpdate:modelValue": l[8] || (l[8] = (n) => f.value = n),
|
94
|
+
onClose: w
|
94
95
|
}, {
|
95
96
|
footer: u(() => [
|
96
|
-
G("div",
|
97
|
-
|
97
|
+
G("div", Q, [
|
98
|
+
r(N, { onClick: w }, {
|
98
99
|
default: u(() => [
|
99
|
-
$(
|
100
|
+
U($(d.$t("common.cancel")), 1)
|
100
101
|
]),
|
101
102
|
_: 1
|
102
103
|
}),
|
103
|
-
|
104
|
+
r(N, {
|
104
105
|
type: "primary",
|
105
106
|
onClick: D
|
106
107
|
}, {
|
107
108
|
default: u(() => [
|
108
|
-
$(
|
109
|
+
U($(d.$t("common.confirm")), 1)
|
109
110
|
]),
|
110
111
|
_: 1
|
111
112
|
})
|
112
113
|
])
|
113
114
|
]),
|
114
115
|
default: u(() => [
|
115
|
-
|
116
|
+
r(z, {
|
116
117
|
ref_key: "refundsReviewFormRef",
|
117
118
|
ref: c,
|
118
119
|
model: e(o),
|
@@ -120,18 +121,18 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
120
121
|
rules: k
|
121
122
|
}, {
|
122
123
|
default: u(() => [
|
123
|
-
|
124
|
+
r(B, null, {
|
124
125
|
default: u(() => [
|
125
|
-
|
126
|
+
r(m, { span: 12 }, {
|
126
127
|
default: u(() => [
|
127
|
-
|
128
|
-
label:
|
128
|
+
r(i, {
|
129
|
+
label: d.$t("orderRefunds.refundType"),
|
129
130
|
prop: "refundType"
|
130
131
|
}, {
|
131
132
|
default: u(() => [
|
132
|
-
|
133
|
+
r(s, {
|
133
134
|
modelValue: e(o).refundType,
|
134
|
-
"onUpdate:modelValue":
|
135
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => e(o).refundType = n),
|
135
136
|
data: e(T).refundTypeEnum.values,
|
136
137
|
style: { width: "100% !important" },
|
137
138
|
disabled: ""
|
@@ -142,20 +143,20 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
142
143
|
]),
|
143
144
|
_: 1
|
144
145
|
}),
|
145
|
-
|
146
|
+
r(m, { span: 12 }, {
|
146
147
|
default: u(() => [
|
147
|
-
|
148
|
-
label:
|
148
|
+
r(i, {
|
149
|
+
label: d.$t("orderRefunds.refundAmount"),
|
149
150
|
prop: "refundAmount"
|
150
151
|
}, {
|
151
152
|
default: u(() => [
|
152
|
-
|
153
|
+
r(F, {
|
153
154
|
modelValue: e(o).refundAmount,
|
154
|
-
"onUpdate:modelValue":
|
155
|
+
"onUpdate:modelValue": l[1] || (l[1] = (n) => e(o).refundAmount = n),
|
155
156
|
precision: 2,
|
156
157
|
controls: !1,
|
157
158
|
min: 0,
|
158
|
-
placeholder:
|
159
|
+
placeholder: d.$t("orderRefunds.refundAmountRequired"),
|
159
160
|
class: "w-full"
|
160
161
|
}, null, 8, ["modelValue", "placeholder"])
|
161
162
|
]),
|
@@ -164,16 +165,16 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
164
165
|
]),
|
165
166
|
_: 1
|
166
167
|
}),
|
167
|
-
|
168
|
+
r(m, { span: 24 }, {
|
168
169
|
default: u(() => [
|
169
|
-
|
170
|
-
label:
|
170
|
+
r(i, {
|
171
|
+
label: d.$t("orderRefunds.refundReson"),
|
171
172
|
prop: "refundReson"
|
172
173
|
}, {
|
173
174
|
default: u(() => [
|
174
|
-
|
175
|
+
r(p, {
|
175
176
|
modelValue: e(o).refundReson,
|
176
|
-
"onUpdate:modelValue":
|
177
|
+
"onUpdate:modelValue": l[2] || (l[2] = (n) => e(o).refundReson = n),
|
177
178
|
type: "textarea",
|
178
179
|
autosize: { minRows: 2 },
|
179
180
|
disabled: ""
|
@@ -184,16 +185,16 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
184
185
|
]),
|
185
186
|
_: 1
|
186
187
|
}),
|
187
|
-
|
188
|
+
r(m, { span: 24 }, {
|
188
189
|
default: u(() => [
|
189
|
-
|
190
|
-
label:
|
190
|
+
r(i, {
|
191
|
+
label: d.$t("orderRefunds.auditOpinion"),
|
191
192
|
prop: "auditOpinion"
|
192
193
|
}, {
|
193
194
|
default: u(() => [
|
194
|
-
|
195
|
+
r(P, {
|
195
196
|
modelValue: e(o).auditOpinion,
|
196
|
-
"onUpdate:modelValue":
|
197
|
+
"onUpdate:modelValue": l[3] || (l[3] = (n) => e(o).auditOpinion = n),
|
197
198
|
data: e(T).auditOpinion.values
|
198
199
|
}, null, 8, ["modelValue", "data"])
|
199
200
|
]),
|
@@ -202,20 +203,20 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
202
203
|
]),
|
203
204
|
_: 1
|
204
205
|
}),
|
205
|
-
e(o).auditOpinion === !1 ? (
|
206
|
+
e(o).auditOpinion === !1 ? (b(), R(m, {
|
206
207
|
key: 0,
|
207
208
|
span: 24
|
208
209
|
}, {
|
209
210
|
default: u(() => [
|
210
|
-
|
211
|
-
label:
|
211
|
+
r(i, {
|
212
|
+
label: d.$t("orderRefunds.refuseRefundReson"),
|
212
213
|
prop: "refuseRefundReson"
|
213
214
|
}, {
|
214
215
|
default: u(() => [
|
215
|
-
|
216
|
+
r(p, {
|
216
217
|
modelValue: e(o).refuseRefundReson,
|
217
|
-
"onUpdate:modelValue":
|
218
|
-
placeholder:
|
218
|
+
"onUpdate:modelValue": l[4] || (l[4] = (n) => e(o).refuseRefundReson = n),
|
219
|
+
placeholder: d.$t("orderRefunds.refuseRefundResonRequired"),
|
219
220
|
type: "textarea",
|
220
221
|
autosize: { minRows: 2 },
|
221
222
|
maxlength: "50",
|
@@ -227,20 +228,20 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
227
228
|
]),
|
228
229
|
_: 1
|
229
230
|
})) : V("", !0),
|
230
|
-
e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (
|
231
|
+
e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (b(), R(m, {
|
231
232
|
key: 1,
|
232
233
|
span: 12
|
233
234
|
}, {
|
234
235
|
default: u(() => [
|
235
|
-
|
236
|
-
label:
|
236
|
+
r(i, {
|
237
|
+
label: d.$t("orderRefunds.userName"),
|
237
238
|
prop: "userName"
|
238
239
|
}, {
|
239
240
|
default: u(() => [
|
240
|
-
|
241
|
+
r(p, {
|
241
242
|
modelValue: e(o).userName,
|
242
|
-
"onUpdate:modelValue":
|
243
|
-
placeholder:
|
243
|
+
"onUpdate:modelValue": l[5] || (l[5] = (n) => e(o).userName = n),
|
244
|
+
placeholder: d.$t("orderRefunds.userNameRequired"),
|
244
245
|
clearable: ""
|
245
246
|
}, null, 8, ["modelValue", "placeholder"])
|
246
247
|
]),
|
@@ -249,20 +250,20 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
249
250
|
]),
|
250
251
|
_: 1
|
251
252
|
})) : V("", !0),
|
252
|
-
e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (
|
253
|
+
e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (b(), R(m, {
|
253
254
|
key: 2,
|
254
255
|
span: 12
|
255
256
|
}, {
|
256
257
|
default: u(() => [
|
257
|
-
|
258
|
-
label:
|
258
|
+
r(i, {
|
259
|
+
label: d.$t("orderRefunds.mobilePhone"),
|
259
260
|
prop: "userMobile"
|
260
261
|
}, {
|
261
262
|
default: u(() => [
|
262
|
-
|
263
|
+
r(p, {
|
263
264
|
modelValue: e(o).userMobile,
|
264
|
-
"onUpdate:modelValue":
|
265
|
-
placeholder:
|
265
|
+
"onUpdate:modelValue": l[6] || (l[6] = (n) => e(o).userMobile = n),
|
266
|
+
placeholder: d.$t("orderRefunds.mobilePhoneRequired"),
|
266
267
|
clearable: ""
|
267
268
|
}, null, 8, ["modelValue", "placeholder"])
|
268
269
|
]),
|
@@ -271,22 +272,25 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
271
272
|
]),
|
272
273
|
_: 1
|
273
274
|
})) : V("", !0),
|
274
|
-
e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (
|
275
|
+
e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (b(), R(m, {
|
275
276
|
key: 3,
|
276
277
|
span: 24
|
277
278
|
}, {
|
278
279
|
default: u(() => [
|
279
|
-
|
280
|
-
label:
|
280
|
+
r(i, {
|
281
|
+
label: d.$t("orderRefunds.address"),
|
281
282
|
prop: "userAddress"
|
282
283
|
}, {
|
283
284
|
default: u(() => [
|
284
|
-
|
285
|
+
r(p, {
|
285
286
|
modelValue: e(o).userAddress,
|
286
|
-
"onUpdate:modelValue":
|
287
|
+
"onUpdate:modelValue": l[7] || (l[7] = (n) => e(o).userAddress = n),
|
288
|
+
placeholder: d.$t("orderRefunds.addressRequired"),
|
287
289
|
type: "textarea",
|
288
|
-
autosize: { minRows: 2 }
|
289
|
-
|
290
|
+
autosize: { minRows: 2 },
|
291
|
+
maxlength: "50",
|
292
|
+
"show-word-limit": ""
|
293
|
+
}, null, 8, ["modelValue", "placeholder"])
|
290
294
|
]),
|
291
295
|
_: 1
|
292
296
|
}, 8, ["label"])
|
@@ -306,5 +310,5 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
306
310
|
}
|
307
311
|
});
|
308
312
|
export {
|
309
|
-
|
313
|
+
oe as _
|
310
314
|
};
|
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}
|
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}
|
@@ -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
|
+
};
|
package/dts/src/api/dict.d.ts
CHANGED
@@ -1,10 +1,4 @@
|
|
1
1
|
import { BizDict, type Entry } from "jmash-core";
|
2
|
-
export declare class CustomBizDict {
|
3
|
-
values: import("vue").Reactive<Entry[]>;
|
4
|
-
query: any;
|
5
|
-
constructor(results: any, query: any);
|
6
|
-
getValue(key: string): string;
|
7
|
-
}
|
8
2
|
export declare class ShopBizDict extends BizDict {
|
9
3
|
useValues(): Promise<Entry[]>;
|
10
4
|
}
|
@@ -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;
|
@@ -8,8 +10,6 @@ export interface GoodsAppraisesReq extends EntityReq {
|
|
8
10
|
}
|
9
11
|
export interface GoodsAppraisesModel extends EntityModel {
|
10
12
|
appraisesId?: string;
|
11
|
-
orderId?: string;
|
12
|
-
createTime?: string;
|
13
13
|
shopId?: string;
|
14
14
|
nickName?: string;
|
15
15
|
goodsScore?: number;
|
@@ -35,7 +35,7 @@ export interface OrderItemModel extends EntityModel {
|
|
35
35
|
spuName?: string;
|
36
36
|
picUrl?: string;
|
37
37
|
salesPrice?: number;
|
38
|
-
quantity?:
|
38
|
+
quantity?: number;
|
39
39
|
specInfo?: string;
|
40
40
|
}
|
41
41
|
export interface GoodsAppraisesList extends EntityList {
|
@@ -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;
|
@@ -33,6 +38,7 @@ export interface OrderInfoModel extends EntityModel {
|
|
33
38
|
address?: string;
|
34
39
|
mobilePhone?: string;
|
35
40
|
mobilePhoneIns?: string;
|
41
|
+
mobileEncrypt?: boolean;
|
36
42
|
}
|
37
43
|
export interface OrderItemList extends EntityList {
|
38
44
|
results: Array<OrderItemModel>;
|
@@ -42,7 +48,7 @@ export interface OrderItemModel extends EntityModel {
|
|
42
48
|
itemId?: string;
|
43
49
|
spuName?: string;
|
44
50
|
salesPrice?: number;
|
45
|
-
quantity?:
|
51
|
+
quantity?: number;
|
46
52
|
specInfo?: string;
|
47
53
|
picUrl?: string;
|
48
54
|
freightPrice?: number;
|
@@ -76,6 +82,7 @@ export interface OrderPostReq {
|
|
76
82
|
logisticsNo?: string;
|
77
83
|
}
|
78
84
|
export interface OrderChangePriceReq {
|
85
|
+
requestId?: string;
|
79
86
|
items: Array<OrderItemChangeReq>;
|
80
87
|
}
|
81
88
|
export interface OrderItemChangeReq {
|
@@ -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;
|
@@ -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
|
-
|
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;
|
@@ -1,4 +1,3 @@
|
|
1
1
|
import type { RouteRecordRaw } from "vue-router";
|
2
2
|
export declare const orderInfo: () => Promise<typeof import("@/views/order/order-info/info.vue")>;
|
3
|
-
export declare const refundsInfo: () => Promise<typeof import("@/views/order/order-refunds/info.vue")>;
|
4
3
|
export declare const orderRouter: RouteRecordRaw[];
|