xyvcard-order 0.0.14 → 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-c_zzsilY.mjs → deliver-DgeAQGWF.mjs} +1 -1
- package/dist/{deliver.vue_vue_type_script_setup_true_lang-DAoCkmOi.mjs → deliver.vue_vue_type_script_setup_true_lang-C3td_yoA.mjs} +1 -1
- package/dist/{edit-mVQUFq0q.mjs → edit-Deg6r27i.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-AHBcvcRn.mjs → edit.vue_vue_type_script_setup_true_lang-UITF3LcS.mjs} +1 -1
- package/dist/{index-BlR9fPfK.mjs → index-BU69SZYW.mjs} +1 -1
- package/dist/{index-IiHp9Y40.mjs → index-DG1nqqf-.mjs} +74 -83
- package/dist/{index-CxzT_Hk2.mjs → index-DPz3N69v.mjs} +1 -1
- package/dist/index.mjs +2 -3
- package/dist/{info-BgzKwnii.mjs → info-B0qHcNt0.mjs} +3 -3
- package/dist/{info-BpYW4SHu.mjs → info-CnZwG4mF.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-BioQaXDt.mjs → info.vue_vue_type_script_setup_true_lang-DKGqSw6X.mjs} +1 -1
- package/dist/{orderList-CNj8AcQQ.mjs → orderList-BW_UVwjI.mjs} +1 -1
- package/dist/{orderList.vue_vue_type_script_setup_true_lang-C0EyjiIS.mjs → orderList.vue_vue_type_script_setup_true_lang-Dee_j5c-.mjs} +198 -212
- package/dts/src/api/order-appraises/types.d.ts +0 -2
- package/dts/src/api/order-info/index.d.ts +1 -2
- package/dts/src/api/order-info/types.d.ts +0 -15
- package/dts/src/api/order-logistics/types.d.ts +0 -2
- 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/views/order/order-info/viewLogist.vue.d.ts +1 -1
- package/package.json +3 -3
- package/dist/change-DGamLhRi.mjs +0 -4
- package/dist/change.vue_vue_type_script_setup_true_lang-C8lf4PIw.mjs +0 -170
@@ -1,7 +1,5 @@
|
|
1
|
-
import type { AxiosPromise } from "axios";
|
2
1
|
import type { EntityApi, EntityReq, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityModel } from "jmash-core";
|
3
2
|
export interface GoodsAppraisesApi extends EntityApi {
|
4
|
-
reply(data: GoodsAppraisesRepliesReq): AxiosPromise<GoodsAppraisesModel>;
|
5
3
|
}
|
6
4
|
export interface GoodsAppraisesReq extends EntityReq {
|
7
5
|
shopId?: string;
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import type { AxiosPromise } from "axios";
|
2
|
-
import type { OrderInfoApi, OrderInfoReq, OrderInfoModel, OrderInfoPage, OrderInfoList, OrderInfoKey, OrderInfoExportReq, OrderPostReq,
|
2
|
+
import type { OrderInfoApi, OrderInfoReq, OrderInfoModel, OrderInfoPage, OrderInfoList, OrderInfoKey, OrderInfoExportReq, OrderPostReq, OrderChangeAddressReq } from "./types";
|
3
3
|
declare class OrderInfoApiImpl implements OrderInfoApi {
|
4
4
|
getKey(model: OrderInfoModel): OrderInfoKey;
|
5
5
|
findPage(query?: OrderInfoReq): AxiosPromise<OrderInfoPage>;
|
6
6
|
findList(query?: OrderInfoReq): AxiosPromise<OrderInfoList>;
|
7
7
|
findById(query: OrderInfoKey): AxiosPromise<OrderInfoModel>;
|
8
8
|
orderPost(data: OrderPostReq): AxiosPromise<boolean>;
|
9
|
-
orderPrice(data: OrderChangePriceReq): AxiosPromise<boolean>;
|
10
9
|
cancel(data: OrderInfoKey): AxiosPromise<boolean>;
|
11
10
|
updateAddress(data: OrderChangeAddressReq): AxiosPromise<boolean>;
|
12
11
|
exportExcel(queryParams: OrderInfoExportReq): AxiosPromise;
|
@@ -1,10 +1,5 @@
|
|
1
1
|
import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityExportReq } from "jmash-core";
|
2
|
-
import type { AxiosPromise } from "axios";
|
3
2
|
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>;
|
8
3
|
}
|
9
4
|
export interface OrderInfoReq extends EntityReq {
|
10
5
|
shopId?: string;
|
@@ -81,16 +76,6 @@ export interface OrderPostReq {
|
|
81
76
|
logisticsCode?: string;
|
82
77
|
logisticsNo?: string;
|
83
78
|
}
|
84
|
-
export interface OrderChangePriceReq {
|
85
|
-
requestId?: string;
|
86
|
-
items: Array<OrderItemChangeReq>;
|
87
|
-
}
|
88
|
-
export interface OrderItemChangeReq {
|
89
|
-
spuName?: string;
|
90
|
-
orderItemId?: string;
|
91
|
-
salesPrice?: number;
|
92
|
-
freightPrice?: number;
|
93
|
-
}
|
94
79
|
export interface OrderChangeAddressReq {
|
95
80
|
orderId?: string;
|
96
81
|
userName?: string;
|
@@ -1,7 +1,5 @@
|
|
1
|
-
import type { AxiosPromise } from "axios";
|
2
1
|
import type { EntityApi, EntityKey, EntityList, EntityModel } from "jmash-core";
|
3
2
|
export interface OrderLogisticsApi extends EntityApi {
|
4
|
-
findLogistics(query?: LogisticsQueryReq): AxiosPromise<LogisticsInfoList>;
|
5
3
|
}
|
6
4
|
export interface OrderLogisticsModel extends EntityModel {
|
7
5
|
logisticsId?: string;
|
@@ -1,7 +1,5 @@
|
|
1
|
-
import type { AxiosPromise } from "axios";
|
2
1
|
import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityUpdateReq } from "jmash-core";
|
3
2
|
export interface OrderRefundsApi extends EntityApi {
|
4
|
-
refund(data: OrderRefundReq): AxiosPromise<boolean>;
|
5
3
|
}
|
6
4
|
export interface OrderRefundsReq extends EntityReq {
|
7
5
|
shopId?: string;
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
21
21
|
}>> & Readonly<{
|
22
22
|
onClose?: ((...args: any[]) => any) | undefined;
|
23
23
|
}>, {
|
24
|
-
orderItemId: string;
|
25
24
|
orderId: string;
|
25
|
+
orderItemId: string;
|
26
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
27
27
|
export default _default;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "xyvcard-order",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.16",
|
4
4
|
"private": false,
|
5
5
|
"module": "dist/index.mjs",
|
6
6
|
"types": "dts/src/index.d.ts",
|
@@ -11,9 +11,9 @@
|
|
11
11
|
"peerDependencies": {
|
12
12
|
"axios": "^1.7.7",
|
13
13
|
"element-plus": "^2.8.7",
|
14
|
-
"jmash-core": "^0.0.
|
14
|
+
"jmash-core": "^0.0.137",
|
15
15
|
"jmash-dict": "^0.0.47",
|
16
|
-
"jmash-rbac": "^0.0.
|
16
|
+
"jmash-rbac": "^0.0.48",
|
17
17
|
"pinia": "^2.2.4",
|
18
18
|
"vue": "^3.5.11",
|
19
19
|
"vue-i18n": "^9.14.1",
|
package/dist/change-DGamLhRi.mjs
DELETED
@@ -1,170 +0,0 @@
|
|
1
|
-
import { defineComponent as $, mergeModels as b, ref as k, reactive as u, useModel as R, resolveComponent as a, createBlock as B, openBlock as F, withCtx as o, createVNode as l, createElementVNode as V, toDisplayString as d, createTextVNode as I } from "vue";
|
2
|
-
import { ElMessage as U } from "element-plus";
|
3
|
-
import { useI18n as D } from "vue-i18n";
|
4
|
-
import { o as E } from "./index-IiHp9Y40.mjs";
|
5
|
-
const S = { class: "dialog-footer" }, G = /* @__PURE__ */ $({
|
6
|
-
__name: "change",
|
7
|
-
props: /* @__PURE__ */ b({
|
8
|
-
entityModel: {
|
9
|
-
type: Object,
|
10
|
-
default: () => {
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}, {
|
14
|
-
modelValue: { type: Boolean },
|
15
|
-
modelModifiers: {}
|
16
|
-
}),
|
17
|
-
emits: /* @__PURE__ */ b(["refresh"], ["update:modelValue"]),
|
18
|
-
setup(f, { emit: C }) {
|
19
|
-
const { t: m } = D(), p = k();
|
20
|
-
let g = u({
|
21
|
-
requestId: Math.random() * 10 + "",
|
22
|
-
items: []
|
23
|
-
});
|
24
|
-
const v = u({
|
25
|
-
salesPrice: [
|
26
|
-
{
|
27
|
-
required: !0,
|
28
|
-
message: m("orderInfo.salesPriceRequired"),
|
29
|
-
trigger: "blur"
|
30
|
-
}
|
31
|
-
],
|
32
|
-
freightPrice: [
|
33
|
-
{
|
34
|
-
required: !0,
|
35
|
-
message: m("orderInfo.freightPriceRequired"),
|
36
|
-
trigger: "blur"
|
37
|
-
}
|
38
|
-
]
|
39
|
-
}), s = R(f, "modelValue"), y = C, e = u({ ...f.entityModel });
|
40
|
-
e.salesPrice = Number(e.salesPrice), e.freightPrice = Number(e.freightPrice);
|
41
|
-
const M = async () => {
|
42
|
-
var r;
|
43
|
-
await ((r = p.value) == null ? void 0 : r.validate((t) => {
|
44
|
-
t && (g.items = [
|
45
|
-
{
|
46
|
-
orderItemId: e.itemId,
|
47
|
-
salesPrice: e.salesPrice,
|
48
|
-
freightPrice: e.freightPrice
|
49
|
-
}
|
50
|
-
], E.orderPrice(g).then((i) => {
|
51
|
-
i.status === 200 && (U({
|
52
|
-
message: m("common.submitSuccess"),
|
53
|
-
type: "success"
|
54
|
-
}), s.value && (s.value = !1), y("refresh", i.status === 200));
|
55
|
-
}));
|
56
|
-
}));
|
57
|
-
};
|
58
|
-
function _() {
|
59
|
-
s.value && (s.value = !1);
|
60
|
-
}
|
61
|
-
return (r, t) => {
|
62
|
-
const i = a("el-form-item"), c = a("el-col"), P = a("el-input-number"), N = a("el-row"), q = a("el-form"), h = a("el-button"), w = a("el-dialog");
|
63
|
-
return F(), B(w, {
|
64
|
-
modelValue: s.value,
|
65
|
-
"onUpdate:modelValue": t[2] || (t[2] = (n) => s.value = n),
|
66
|
-
onClose: _
|
67
|
-
}, {
|
68
|
-
footer: o(() => [
|
69
|
-
V("div", S, [
|
70
|
-
l(h, { onClick: _ }, {
|
71
|
-
default: o(() => [
|
72
|
-
I(d(r.$t("common.cancel")), 1)
|
73
|
-
]),
|
74
|
-
_: 1
|
75
|
-
}),
|
76
|
-
l(h, {
|
77
|
-
type: "primary",
|
78
|
-
onClick: M
|
79
|
-
}, {
|
80
|
-
default: o(() => [
|
81
|
-
I(d(r.$t("common.confirm")), 1)
|
82
|
-
]),
|
83
|
-
_: 1
|
84
|
-
})
|
85
|
-
])
|
86
|
-
]),
|
87
|
-
default: o(() => [
|
88
|
-
l(q, {
|
89
|
-
ref_key: "priceChangeForm",
|
90
|
-
ref: p,
|
91
|
-
model: e,
|
92
|
-
"label-width": "120px",
|
93
|
-
rules: v
|
94
|
-
}, {
|
95
|
-
default: o(() => [
|
96
|
-
l(N, null, {
|
97
|
-
default: o(() => [
|
98
|
-
l(c, { span: 24 }, {
|
99
|
-
default: o(() => [
|
100
|
-
l(i, {
|
101
|
-
label: r.$t("orderInfo.spuName"),
|
102
|
-
prop: "spuName"
|
103
|
-
}, {
|
104
|
-
default: o(() => [
|
105
|
-
V("span", null, d(e.spuName), 1)
|
106
|
-
]),
|
107
|
-
_: 1
|
108
|
-
}, 8, ["label"])
|
109
|
-
]),
|
110
|
-
_: 1
|
111
|
-
}),
|
112
|
-
l(c, { span: 24 }, {
|
113
|
-
default: o(() => [
|
114
|
-
l(i, {
|
115
|
-
label: r.$t("orderInfo.sellPrice"),
|
116
|
-
prop: "salesPrice"
|
117
|
-
}, {
|
118
|
-
default: o(() => [
|
119
|
-
l(P, {
|
120
|
-
modelValue: e.salesPrice,
|
121
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.salesPrice = n),
|
122
|
-
precision: 2,
|
123
|
-
controls: !1,
|
124
|
-
min: 0,
|
125
|
-
placeholder: r.$t("orderInfo.sellPriceRequired"),
|
126
|
-
class: "w-full"
|
127
|
-
}, null, 8, ["modelValue", "placeholder"])
|
128
|
-
]),
|
129
|
-
_: 1
|
130
|
-
}, 8, ["label"])
|
131
|
-
]),
|
132
|
-
_: 1
|
133
|
-
}),
|
134
|
-
l(c, { span: 24 }, {
|
135
|
-
default: o(() => [
|
136
|
-
l(i, {
|
137
|
-
label: r.$t("orderInfo.freightPrice"),
|
138
|
-
prop: "freightPrice"
|
139
|
-
}, {
|
140
|
-
default: o(() => [
|
141
|
-
l(P, {
|
142
|
-
modelValue: e.freightPrice,
|
143
|
-
"onUpdate:modelValue": t[1] || (t[1] = (n) => e.freightPrice = n),
|
144
|
-
precision: 2,
|
145
|
-
controls: !1,
|
146
|
-
min: 0,
|
147
|
-
placeholder: r.$t("orderInfo.freightPriceRequired"),
|
148
|
-
class: "w-full"
|
149
|
-
}, null, 8, ["modelValue", "placeholder"])
|
150
|
-
]),
|
151
|
-
_: 1
|
152
|
-
}, 8, ["label"])
|
153
|
-
]),
|
154
|
-
_: 1
|
155
|
-
})
|
156
|
-
]),
|
157
|
-
_: 1
|
158
|
-
})
|
159
|
-
]),
|
160
|
-
_: 1
|
161
|
-
}, 8, ["model", "rules"])
|
162
|
-
]),
|
163
|
-
_: 1
|
164
|
-
}, 8, ["modelValue"]);
|
165
|
-
};
|
166
|
-
}
|
167
|
-
});
|
168
|
-
export {
|
169
|
-
G as _
|
170
|
-
};
|