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,190 +0,0 @@
|
|
1
|
-
import { defineComponent as R, mergeModels as b, ref as I, reactive as V, useModel as j, watch as F, resolveComponent as s, createBlock as O, openBlock as U, withCtx as o, createVNode as l, unref as m, createElementVNode as v, toDisplayString as f, createTextVNode as C } from "vue";
|
2
|
-
import { ElMessage as E } from "element-plus";
|
3
|
-
import { useI18n as S } from "vue-i18n";
|
4
|
-
import { o as N } from "./index-1R3wKfde.mjs";
|
5
|
-
const A = { class: "dialog-footer" }, J = /* @__PURE__ */ R({
|
6
|
-
__name: "change",
|
7
|
-
props: /* @__PURE__ */ b({
|
8
|
-
entityKey: {
|
9
|
-
type: Object,
|
10
|
-
default: () => {
|
11
|
-
}
|
12
|
-
},
|
13
|
-
entityModel: {
|
14
|
-
type: Object,
|
15
|
-
default: () => {
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}, {
|
19
|
-
modelValue: { type: Boolean },
|
20
|
-
modelModifiers: {}
|
21
|
-
}),
|
22
|
-
emits: /* @__PURE__ */ b(["refresh"], ["update:modelValue"]),
|
23
|
-
setup(p, { emit: w }) {
|
24
|
-
const { t: u } = S(), g = I();
|
25
|
-
let r = V({
|
26
|
-
items: [
|
27
|
-
{
|
28
|
-
orderItemId: "",
|
29
|
-
salesPrice: 0,
|
30
|
-
freightPrice: 0
|
31
|
-
}
|
32
|
-
]
|
33
|
-
});
|
34
|
-
const M = V({
|
35
|
-
salesPrice: [
|
36
|
-
{
|
37
|
-
required: !0,
|
38
|
-
message: u("orderInfo.salesPriceRequired"),
|
39
|
-
trigger: "blur"
|
40
|
-
}
|
41
|
-
],
|
42
|
-
freightPrice: [
|
43
|
-
{
|
44
|
-
required: !0,
|
45
|
-
message: u("orderInfo.freightPriceRequired"),
|
46
|
-
trigger: "blur"
|
47
|
-
}
|
48
|
-
]
|
49
|
-
}), a = j(p, "modelValue"), k = w, n = p, $ = Object.keys(n.entityKey), _ = I($.length >= 1);
|
50
|
-
F([() => n.entityKey, () => n.entityModel], async () => {
|
51
|
-
var e;
|
52
|
-
if (_.value) {
|
53
|
-
const { data: i } = await N.findById(n.entityKey), t = (e = i.orderItemList) == null ? void 0 : e.results.find(
|
54
|
-
(d) => d.itemId === n.entityModel.itemId
|
55
|
-
);
|
56
|
-
t && (r.items[0].spuName = t.spuName, r.items[0].salesPrice = Number(t.salesPrice), r.items[0].freightPrice = Number(t.freightPrice));
|
57
|
-
}
|
58
|
-
}, {
|
59
|
-
immediate: !0,
|
60
|
-
deep: !0
|
61
|
-
});
|
62
|
-
const q = async () => {
|
63
|
-
var e;
|
64
|
-
await ((e = g.value) == null ? void 0 : e.validate((i) => {
|
65
|
-
i && _.value && N.orderPrice({
|
66
|
-
items: r.items.map((t) => ({
|
67
|
-
...t,
|
68
|
-
orderItemId: n.entityModel.itemId
|
69
|
-
}))
|
70
|
-
}).then((t) => {
|
71
|
-
t.status === 200 && (E({
|
72
|
-
message: u("common.submitSuccess"),
|
73
|
-
type: "success"
|
74
|
-
}), a.value && (a.value = !1), k("refresh", t.status === 200));
|
75
|
-
});
|
76
|
-
}));
|
77
|
-
};
|
78
|
-
function h() {
|
79
|
-
a.value && (a.value = !1);
|
80
|
-
}
|
81
|
-
return (e, i) => {
|
82
|
-
const t = s("el-form-item"), d = s("el-col"), y = s("el-input-number"), B = s("el-row"), D = s("el-form"), P = s("el-button"), K = s("el-dialog");
|
83
|
-
return U(), O(K, {
|
84
|
-
modelValue: a.value,
|
85
|
-
"onUpdate:modelValue": i[2] || (i[2] = (c) => a.value = c),
|
86
|
-
onClose: h
|
87
|
-
}, {
|
88
|
-
footer: o(() => [
|
89
|
-
v("div", A, [
|
90
|
-
l(P, { onClick: h }, {
|
91
|
-
default: o(() => [
|
92
|
-
C(f(e.$t("common.cancel")), 1)
|
93
|
-
]),
|
94
|
-
_: 1
|
95
|
-
}),
|
96
|
-
l(P, {
|
97
|
-
type: "primary",
|
98
|
-
onClick: q
|
99
|
-
}, {
|
100
|
-
default: o(() => [
|
101
|
-
C(f(e.$t("common.confirm")), 1)
|
102
|
-
]),
|
103
|
-
_: 1
|
104
|
-
})
|
105
|
-
])
|
106
|
-
]),
|
107
|
-
default: o(() => [
|
108
|
-
l(D, {
|
109
|
-
ref_key: "priceChangeForm",
|
110
|
-
ref: g,
|
111
|
-
model: m(r).items[0],
|
112
|
-
"label-width": "120px",
|
113
|
-
rules: M
|
114
|
-
}, {
|
115
|
-
default: o(() => [
|
116
|
-
l(B, null, {
|
117
|
-
default: o(() => [
|
118
|
-
l(d, { span: 24 }, {
|
119
|
-
default: o(() => [
|
120
|
-
l(t, {
|
121
|
-
label: e.$t("orderInfo.spuName"),
|
122
|
-
prop: "spuName"
|
123
|
-
}, {
|
124
|
-
default: o(() => [
|
125
|
-
v("span", null, f(m(r).items[0].spuName), 1)
|
126
|
-
]),
|
127
|
-
_: 1
|
128
|
-
}, 8, ["label"])
|
129
|
-
]),
|
130
|
-
_: 1
|
131
|
-
}),
|
132
|
-
l(d, { span: 24 }, {
|
133
|
-
default: o(() => [
|
134
|
-
l(t, {
|
135
|
-
label: e.$t("orderInfo.sellPrice"),
|
136
|
-
prop: "salesPrice"
|
137
|
-
}, {
|
138
|
-
default: o(() => [
|
139
|
-
l(y, {
|
140
|
-
modelValue: m(r).items[0].salesPrice,
|
141
|
-
"onUpdate:modelValue": i[0] || (i[0] = (c) => m(r).items[0].salesPrice = c),
|
142
|
-
precision: 2,
|
143
|
-
controls: !1,
|
144
|
-
min: 0,
|
145
|
-
placeholder: e.$t("orderInfo.sellPriceRequired"),
|
146
|
-
class: "w-full"
|
147
|
-
}, null, 8, ["modelValue", "placeholder"])
|
148
|
-
]),
|
149
|
-
_: 1
|
150
|
-
}, 8, ["label"])
|
151
|
-
]),
|
152
|
-
_: 1
|
153
|
-
}),
|
154
|
-
l(d, { span: 24 }, {
|
155
|
-
default: o(() => [
|
156
|
-
l(t, {
|
157
|
-
label: e.$t("orderInfo.freightPrice"),
|
158
|
-
prop: "freightPrice"
|
159
|
-
}, {
|
160
|
-
default: o(() => [
|
161
|
-
l(y, {
|
162
|
-
modelValue: m(r).items[0].freightPrice,
|
163
|
-
"onUpdate:modelValue": i[1] || (i[1] = (c) => m(r).items[0].freightPrice = c),
|
164
|
-
precision: 2,
|
165
|
-
controls: !1,
|
166
|
-
min: 0,
|
167
|
-
placeholder: e.$t("orderInfo.freightPriceRequired"),
|
168
|
-
class: "w-full"
|
169
|
-
}, null, 8, ["modelValue", "placeholder"])
|
170
|
-
]),
|
171
|
-
_: 1
|
172
|
-
}, 8, ["label"])
|
173
|
-
]),
|
174
|
-
_: 1
|
175
|
-
})
|
176
|
-
]),
|
177
|
-
_: 1
|
178
|
-
})
|
179
|
-
]),
|
180
|
-
_: 1
|
181
|
-
}, 8, ["model", "rules"])
|
182
|
-
]),
|
183
|
-
_: 1
|
184
|
-
}, 8, ["modelValue"]);
|
185
|
-
};
|
186
|
-
}
|
187
|
-
});
|
188
|
-
export {
|
189
|
-
J as _
|
190
|
-
};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import type { PropType } from "vue";
|
2
|
-
import type { Entry } from "jmash-core";
|
3
|
-
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
4
|
-
modelValue: PropType<string | boolean>;
|
5
|
-
data: {
|
6
|
-
type: PropType<Entry[]>;
|
7
|
-
default: () => void;
|
8
|
-
};
|
9
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
10
|
-
modelValue: PropType<string | boolean>;
|
11
|
-
data: {
|
12
|
-
type: PropType<Entry[]>;
|
13
|
-
default: () => void;
|
14
|
-
};
|
15
|
-
}>> & Readonly<{}>, {
|
16
|
-
data: Entry[];
|
17
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
18
|
-
export default _default;
|
@@ -1,2 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
2
|
-
export default _default;
|
@@ -1,2 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
2
|
-
export default _default;
|
@@ -1,2 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
2
|
-
export default _default;
|
@@ -1,2 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
2
|
-
export default _default;
|
@@ -1,2 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
2
|
-
export default _default;
|
@@ -2,9 +2,9 @@ var P = Object.defineProperty;
|
|
2
2
|
var d = (a, E, i) => E in a ? P(a, E, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[E] = i;
|
3
3
|
var t = (a, E, i) => d(a, typeof E != "symbol" ? E + "" : E, i);
|
4
4
|
import { BizDict as R, EnumDict as r, CustomBizDict as _ } from "jmash-core";
|
5
|
-
import { ref as U } from "vue";
|
6
5
|
import { phoneModelApi as l } from "xyvcard-shell";
|
7
6
|
import { infoApi as o } from "xyvcard-shop";
|
7
|
+
import { ref as U } from "vue";
|
8
8
|
import { EntryDict as T } from "jmash-dict";
|
9
9
|
class A extends R {
|
10
10
|
// 实现 useValues 方法
|