xyvcard-order 0.0.7 → 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.
- package/dist/{canceled-DkLaSCTM.mjs → canceled-CTHGNWuB.mjs} +1 -1
- package/dist/{canceled.vue_vue_type_script_setup_true_lang-5-Cw4llp.mjs → canceled.vue_vue_type_script_setup_true_lang-lNPLjFzs.mjs} +2 -3
- package/dist/{change-D_G7h-Nt.mjs → change-3TnGoLNv.mjs} +1 -1
- package/dist/{change.vue_vue_type_script_setup_true_lang-BTxjkvV_.mjs → change.vue_vue_type_script_setup_true_lang-DLfb9HIp.mjs} +30 -26
- package/dist/{completed-D1_MyTO_.mjs → completed-BnD0Wh1K.mjs} +1 -1
- package/dist/{completed.vue_vue_type_script_setup_true_lang-Djv14D1X.mjs → completed.vue_vue_type_script_setup_true_lang-ysjYRoxQ.mjs} +2 -3
- package/dist/{deliver-DqqGFB3x.mjs → deliver-DZDmtbHY.mjs} +1 -1
- package/dist/{deliver.vue_vue_type_script_setup_true_lang-D4gqA0w8.mjs → deliver.vue_vue_type_script_setup_true_lang-DZ6WdO5i.mjs} +1 -1
- package/dist/{edit-MJXLcLm4.mjs → edit-BgR1glUx.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bell5IpG.mjs → edit.vue_vue_type_script_setup_true_lang-DJFJg9lJ.mjs} +1 -1
- package/dist/{index-ZL41UIHr.mjs → index-BTfCAYQ-.mjs} +76 -78
- package/dist/{index-DDG2eFhK.mjs → index-CaKojOfx.mjs} +228 -241
- package/dist/{index-DyFAVz8t.mjs → index-CfEKTjAd.mjs} +1 -1
- package/dist/{index-Dy-lHz4D.mjs → index-S4jzuvn6.mjs} +148 -144
- package/dist/index.mjs +2 -2
- package/dist/{info-CxZXerj5.mjs → info-3uYTUNzE.mjs} +1 -1
- package/dist/{info-Cl9HaMCm.mjs → info-DiPfhbtx.mjs} +85 -84
- package/dist/{info.vue_vue_type_script_setup_true_lang-BdZStl8T.mjs → info.vue_vue_type_script_setup_true_lang-nH2_wV_f.mjs} +1 -1
- package/dist/{review-Bc-YCZ1X.mjs → review-DY1KQI3U.mjs} +1 -1
- package/dist/{review.vue_vue_type_script_setup_true_lang-mTTMzpC7.mjs → review.vue_vue_type_script_setup_true_lang-HjQowjbK.mjs} +74 -72
- package/dist/style.css +1 -1
- package/dist/{unpay-3tbx6NWV.mjs → unpay-Bc8ekFnl.mjs} +1 -1
- package/dist/{unpay.vue_vue_type_script_setup_true_lang-BGQNtrO2.mjs → unpay.vue_vue_type_script_setup_true_lang-CsHqHywv.mjs} +197 -210
- package/dist/{unpost-DOQ_sNYN.mjs → unpost-DE4VcTu2.mjs} +1 -1
- package/dist/{unpost.vue_vue_type_script_setup_true_lang-BveDiwdZ.mjs → unpost.vue_vue_type_script_setup_true_lang-Xtrcqwsb.mjs} +39 -40
- package/dist/{unreceive-WZteM54K.mjs → unreceive-CUiJvXq1.mjs} +1 -1
- package/dist/{unreceive.vue_vue_type_script_setup_true_lang-C6APvOTf.mjs → unreceive.vue_vue_type_script_setup_true_lang-CgWgDNgs.mjs} +2 -3
- package/dist/{viewLogist-lN1KX2qM.mjs → viewLogist-Cxu-IV-d.mjs} +1 -1
- package/dist/{viewLogist.vue_vue_type_script_setup_true_lang-CNb6Tjcw.mjs → viewLogist.vue_vue_type_script_setup_true_lang-jqRN__Ne.mjs} +19 -21
- package/package.json +1 -1
@@ -1,11 +1,11 @@
|
|
1
|
-
import { defineComponent as K, mergeModels as
|
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";
|
2
2
|
import { ElMessage as H } from "element-plus";
|
3
3
|
import { useI18n as J } from "vue-i18n";
|
4
4
|
import { o as h } from "./index-DAb5kkOk.mjs";
|
5
|
-
import { D as T, C as
|
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__ */
|
8
|
+
props: /* @__PURE__ */ w({
|
9
9
|
entityKey: {
|
10
10
|
type: Object,
|
11
11
|
default: () => {
|
@@ -15,15 +15,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
15
15
|
modelValue: { type: Boolean },
|
16
16
|
modelModifiers: {}
|
17
17
|
}),
|
18
|
-
emits: /* @__PURE__ */
|
18
|
+
emits: /* @__PURE__ */ w(["refresh"], ["update:modelValue"]),
|
19
19
|
setup(_, { emit: E }) {
|
20
|
-
const { t: a } = J(), c =
|
20
|
+
const { t: a } = J(), c = O();
|
21
21
|
let o = U({
|
22
22
|
requestId: Math.random() * 10 + "",
|
23
23
|
updateMask: "refundAmount,refuseRefundReson,auditOpinion,userName,userMobile,userAddress"
|
24
24
|
});
|
25
|
-
const M = (
|
26
|
-
|
25
|
+
const M = (n, r, s) => {
|
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
27
|
}, k = U({
|
28
28
|
refundAmount: [
|
29
29
|
{
|
@@ -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,
|
71
|
-
|
72
|
-
Object.assign(o,
|
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);
|
73
73
|
});
|
74
|
-
const
|
75
|
-
var
|
76
|
-
await ((
|
77
|
-
|
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) => {
|
78
78
|
s.status === 200 && (H({
|
79
79
|
message: a("common.submitSuccess"),
|
80
80
|
type: "success"
|
@@ -82,37 +82,37 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
82
82
|
});
|
83
83
|
}));
|
84
84
|
};
|
85
|
-
function
|
85
|
+
function N() {
|
86
86
|
f.value && (f.value = !1);
|
87
87
|
}
|
88
|
-
return (
|
89
|
-
const s = t("jmash-select"), i = t("el-form-item"), m = t("el-col"), p = t("el-input"),
|
90
|
-
return R(), b(
|
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, {
|
91
91
|
modelValue: f.value,
|
92
|
-
"onUpdate:modelValue":
|
93
|
-
onClose:
|
92
|
+
"onUpdate:modelValue": r[8] || (r[8] = (d) => f.value = d),
|
93
|
+
onClose: N
|
94
94
|
}, {
|
95
95
|
footer: u(() => [
|
96
96
|
G("div", L, [
|
97
|
-
|
97
|
+
l(q, { onClick: N }, {
|
98
98
|
default: u(() => [
|
99
|
-
$(A(
|
99
|
+
$(A(n.$t("common.cancel")), 1)
|
100
100
|
]),
|
101
101
|
_: 1
|
102
102
|
}),
|
103
|
-
|
103
|
+
l(q, {
|
104
104
|
type: "primary",
|
105
|
-
onClick:
|
105
|
+
onClick: D
|
106
106
|
}, {
|
107
107
|
default: u(() => [
|
108
|
-
$(A(
|
108
|
+
$(A(n.$t("common.confirm")), 1)
|
109
109
|
]),
|
110
110
|
_: 1
|
111
111
|
})
|
112
112
|
])
|
113
113
|
]),
|
114
114
|
default: u(() => [
|
115
|
-
|
115
|
+
l(z, {
|
116
116
|
ref_key: "refundsReviewFormRef",
|
117
117
|
ref: c,
|
118
118
|
model: e(o),
|
@@ -120,18 +120,18 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
120
120
|
rules: k
|
121
121
|
}, {
|
122
122
|
default: u(() => [
|
123
|
-
|
123
|
+
l(P, null, {
|
124
124
|
default: u(() => [
|
125
|
-
|
125
|
+
l(m, { span: 12 }, {
|
126
126
|
default: u(() => [
|
127
|
-
|
128
|
-
label:
|
127
|
+
l(i, {
|
128
|
+
label: n.$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":
|
134
|
+
"onUpdate:modelValue": r[0] || (r[0] = (d) => e(o).refundType = d),
|
135
135
|
data: e(T).refundTypeEnum.values,
|
136
136
|
style: { width: "100% !important" },
|
137
137
|
disabled: ""
|
@@ -142,19 +142,21 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
142
142
|
]),
|
143
143
|
_: 1
|
144
144
|
}),
|
145
|
-
|
145
|
+
l(m, { span: 12 }, {
|
146
146
|
default: u(() => [
|
147
|
-
|
148
|
-
label:
|
147
|
+
l(i, {
|
148
|
+
label: n.$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":
|
155
|
-
|
156
|
-
|
157
|
-
|
154
|
+
"onUpdate:modelValue": r[1] || (r[1] = (d) => e(o).refundAmount = d),
|
155
|
+
precision: 2,
|
156
|
+
controls: !1,
|
157
|
+
min: 0,
|
158
|
+
placeholder: n.$t("orderRefunds.refundAmountRequired"),
|
159
|
+
class: "w-full"
|
158
160
|
}, null, 8, ["modelValue", "placeholder"])
|
159
161
|
]),
|
160
162
|
_: 1
|
@@ -162,16 +164,16 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
162
164
|
]),
|
163
165
|
_: 1
|
164
166
|
}),
|
165
|
-
|
167
|
+
l(m, { span: 24 }, {
|
166
168
|
default: u(() => [
|
167
|
-
|
168
|
-
label:
|
169
|
+
l(i, {
|
170
|
+
label: n.$t("orderRefunds.refundReson"),
|
169
171
|
prop: "refundReson"
|
170
172
|
}, {
|
171
173
|
default: u(() => [
|
172
|
-
|
174
|
+
l(p, {
|
173
175
|
modelValue: e(o).refundReson,
|
174
|
-
"onUpdate:modelValue":
|
176
|
+
"onUpdate:modelValue": r[2] || (r[2] = (d) => e(o).refundReson = d),
|
175
177
|
type: "textarea",
|
176
178
|
autosize: { minRows: 2 },
|
177
179
|
disabled: ""
|
@@ -182,16 +184,16 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
182
184
|
]),
|
183
185
|
_: 1
|
184
186
|
}),
|
185
|
-
|
187
|
+
l(m, { span: 24 }, {
|
186
188
|
default: u(() => [
|
187
|
-
|
188
|
-
label:
|
189
|
+
l(i, {
|
190
|
+
label: n.$t("orderRefunds.auditOpinion"),
|
189
191
|
prop: "auditOpinion"
|
190
192
|
}, {
|
191
193
|
default: u(() => [
|
192
|
-
|
194
|
+
l(B, {
|
193
195
|
modelValue: e(o).auditOpinion,
|
194
|
-
"onUpdate:modelValue":
|
196
|
+
"onUpdate:modelValue": r[3] || (r[3] = (d) => e(o).auditOpinion = d),
|
195
197
|
data: e(T).auditOpinion.values
|
196
198
|
}, null, 8, ["modelValue", "data"])
|
197
199
|
]),
|
@@ -205,15 +207,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
205
207
|
span: 24
|
206
208
|
}, {
|
207
209
|
default: u(() => [
|
208
|
-
|
209
|
-
label:
|
210
|
+
l(i, {
|
211
|
+
label: n.$t("orderRefunds.refuseRefundReson"),
|
210
212
|
prop: "refuseRefundReson"
|
211
213
|
}, {
|
212
214
|
default: u(() => [
|
213
|
-
|
215
|
+
l(p, {
|
214
216
|
modelValue: e(o).refuseRefundReson,
|
215
|
-
"onUpdate:modelValue":
|
216
|
-
placeholder:
|
217
|
+
"onUpdate:modelValue": r[4] || (r[4] = (d) => e(o).refuseRefundReson = d),
|
218
|
+
placeholder: n.$t("orderRefunds.refuseRefundResonRequired"),
|
217
219
|
type: "textarea",
|
218
220
|
autosize: { minRows: 2 },
|
219
221
|
maxlength: "50",
|
@@ -225,20 +227,20 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
225
227
|
]),
|
226
228
|
_: 1
|
227
229
|
})) : V("", !0),
|
228
|
-
e(o).refundType === e(
|
230
|
+
e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (R(), b(m, {
|
229
231
|
key: 1,
|
230
232
|
span: 12
|
231
233
|
}, {
|
232
234
|
default: u(() => [
|
233
|
-
|
234
|
-
label:
|
235
|
+
l(i, {
|
236
|
+
label: n.$t("orderRefunds.userName"),
|
235
237
|
prop: "userName"
|
236
238
|
}, {
|
237
239
|
default: u(() => [
|
238
|
-
|
240
|
+
l(p, {
|
239
241
|
modelValue: e(o).userName,
|
240
|
-
"onUpdate:modelValue":
|
241
|
-
placeholder:
|
242
|
+
"onUpdate:modelValue": r[5] || (r[5] = (d) => e(o).userName = d),
|
243
|
+
placeholder: n.$t("orderRefunds.userNameRequired"),
|
242
244
|
clearable: ""
|
243
245
|
}, null, 8, ["modelValue", "placeholder"])
|
244
246
|
]),
|
@@ -247,20 +249,20 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
247
249
|
]),
|
248
250
|
_: 1
|
249
251
|
})) : V("", !0),
|
250
|
-
e(o).refundType === e(
|
252
|
+
e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (R(), b(m, {
|
251
253
|
key: 2,
|
252
254
|
span: 12
|
253
255
|
}, {
|
254
256
|
default: u(() => [
|
255
|
-
|
256
|
-
label:
|
257
|
+
l(i, {
|
258
|
+
label: n.$t("orderRefunds.mobilePhone"),
|
257
259
|
prop: "userMobile"
|
258
260
|
}, {
|
259
261
|
default: u(() => [
|
260
|
-
|
262
|
+
l(p, {
|
261
263
|
modelValue: e(o).userMobile,
|
262
|
-
"onUpdate:modelValue":
|
263
|
-
placeholder:
|
264
|
+
"onUpdate:modelValue": r[6] || (r[6] = (d) => e(o).userMobile = d),
|
265
|
+
placeholder: n.$t("orderRefunds.mobilePhoneRequired"),
|
264
266
|
clearable: ""
|
265
267
|
}, null, 8, ["modelValue", "placeholder"])
|
266
268
|
]),
|
@@ -269,19 +271,19 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ K({
|
|
269
271
|
]),
|
270
272
|
_: 1
|
271
273
|
})) : V("", !0),
|
272
|
-
e(o).refundType === e(
|
274
|
+
e(o).refundType === e(y).RETURN_REFUND && e(o).auditOpinion === !0 ? (R(), b(m, {
|
273
275
|
key: 3,
|
274
276
|
span: 24
|
275
277
|
}, {
|
276
278
|
default: u(() => [
|
277
|
-
|
278
|
-
label:
|
279
|
+
l(i, {
|
280
|
+
label: n.$t("orderRefunds.address"),
|
279
281
|
prop: "userAddress"
|
280
282
|
}, {
|
281
283
|
default: u(() => [
|
282
|
-
|
284
|
+
l(p, {
|
283
285
|
modelValue: e(o).userAddress,
|
284
|
-
"onUpdate:modelValue":
|
286
|
+
"onUpdate:modelValue": r[7] || (r[7] = (d) => e(o).userAddress = d),
|
285
287
|
type: "textarea",
|
286
288
|
autosize: { minRows: 2 }
|
287
289
|
}, null, 8, ["modelValue"])
|
package/dist/style.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.right{float:right}.
|
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}
|