xyvcard-order 0.0.1 → 0.0.3
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-CUME6Usz.mjs → canceled-CAEulpM1.mjs} +1 -1
- package/dist/{canceled.vue_vue_type_script_setup_true_lang-EX4zYQSu.mjs → canceled.vue_vue_type_script_setup_true_lang-_j0h5aSP.mjs} +63 -64
- package/dist/{change-CK1I7hL9.mjs → change-CH-CF_q-.mjs} +1 -1
- package/dist/{change.vue_vue_type_script_setup_true_lang-DMUKqQVp.mjs → change.vue_vue_type_script_setup_true_lang-Bb1DH4GC.mjs} +1 -1
- package/dist/{completed-Cf86bOvD.mjs → completed-B70yQ6oI.mjs} +1 -1
- package/dist/{completed.vue_vue_type_script_setup_true_lang-DqIyhNKh.mjs → completed.vue_vue_type_script_setup_true_lang-D25evb6V.mjs} +72 -73
- package/dist/{deliver-BQIcivCV.mjs → deliver-Bp2Ckw4g.mjs} +1 -1
- package/dist/deliver.vue_vue_type_script_setup_true_lang-DjvQSQPG.mjs +185 -0
- package/dist/{edit-CXp819Cl.mjs → edit-DyFqRxsE.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DHkYd975.mjs → edit.vue_vue_type_script_setup_true_lang-YwJOnNI_.mjs} +1 -1
- package/dist/{index-DMD0_mKi.mjs → index-BwyO6Vdb.mjs} +82 -83
- package/dist/index-CL3mlOnd.mjs +407 -0
- package/dist/{index-xagR65a1.mjs → index-Dvf0V5EP.mjs} +11 -3
- package/dist/{index-CUO59YzZ.mjs → index-DyFAVz8t.mjs} +525 -439
- package/dist/index-suIgymdy.mjs +93 -0
- package/dist/index.mjs +594 -592
- package/dist/index.vue_vue_type_script_setup_true_lang-RpiqLerK.mjs +41 -0
- package/dist/{info-6G1vmk51.mjs → info-Ba-BgJkw.mjs} +76 -77
- package/dist/info-DtOaZ-hg.mjs +4 -0
- package/dist/info.vue_vue_type_script_setup_true_lang-DLnh7W1x.mjs +188 -0
- package/dist/review-DjGDxyqZ.mjs +4 -0
- package/dist/review.vue_vue_type_script_setup_true_lang-CKGCdXD5.mjs +309 -0
- package/dist/style.css +1 -1
- package/dist/{unpay-CqebDQ24.mjs → unpay-nfOgE6CJ.mjs} +1 -1
- package/dist/{unpay.vue_vue_type_script_setup_true_lang-Cq-l3JEe.mjs → unpay.vue_vue_type_script_setup_true_lang-Dcs-uaDJ.mjs} +1335 -1349
- package/dist/{unpost-vRTZyaW0.mjs → unpost-BocJwYcE.mjs} +1 -1
- package/dist/{unpost.vue_vue_type_script_setup_true_lang-CAd6DqNm.mjs → unpost.vue_vue_type_script_setup_true_lang-BzlBIdWF.mjs} +147 -148
- package/dist/{unreceive-DUyGNC5h.mjs → unreceive-BLcvdJxY.mjs} +1 -1
- package/dist/{unreceive.vue_vue_type_script_setup_true_lang-DK1USH8c.mjs → unreceive.vue_vue_type_script_setup_true_lang-IoS_bKwk.mjs} +72 -73
- package/dist/{viewLogist-DdG4dbmo.mjs → viewLogist-D9-zqepw.mjs} +1 -1
- package/dist/viewLogist.vue_vue_type_script_setup_true_lang-D8KlJgG0.mjs +127 -0
- package/dts/src/api/index.d.ts +3 -1
- package/dts/src/api/order-info/index.d.ts +15 -0
- package/dts/src/api/order-info/types.d.ts +97 -0
- package/dts/src/api/order-logistics/index.d.ts +12 -0
- package/dts/src/api/order-logistics/types.d.ts +85 -0
- package/dts/src/api/order-refunds/index.d.ts +13 -0
- package/dts/src/api/order-refunds/types.d.ts +68 -0
- package/dts/src/constant.d.ts +14 -1
- package/dts/src/lang/order/zh-cn.d.ts +14 -2
- package/dts/src/views/order/order-info/change.vue.d.ts +1 -1
- package/dts/src/views/order/order-info/deliver.vue.d.ts +1 -1
- package/dts/src/views/order/order-info/edit.vue.d.ts +1 -1
- package/dts/src/views/order/order-refunds/info.vue.d.ts +14 -1
- package/dts/src/views/order/order-refunds/review.vue.d.ts +22 -0
- package/package.json +5 -4
- package/dist/constant-CWTD7ap0.mjs +0 -24
- package/dist/deliver.vue_vue_type_script_setup_true_lang-_2HCD1vV.mjs +0 -221
- package/dist/edit-BtY-5_aq.mjs +0 -4
- package/dist/edit-CagPAsCc.mjs +0 -4
- package/dist/edit-DSlSQclm.mjs +0 -4
- package/dist/edit-DZTWE770.mjs +0 -4
- package/dist/edit-kb9Vbd0O.mjs +0 -553
- package/dist/edit.vue_vue_type_script_setup_true_lang-BHG0mS0L.mjs +0 -382
- package/dist/edit.vue_vue_type_script_setup_true_lang-BzhS3SvZ.mjs +0 -488
- package/dist/edit.vue_vue_type_script_setup_true_lang-Cgbqi1i7.mjs +0 -516
- package/dist/edit.vue_vue_type_script_setup_true_lang-be-TDMci.mjs +0 -684
- package/dist/index-67kgHrd-.mjs +0 -370
- package/dist/index-BYkU3LYC.mjs +0 -343
- package/dist/index-D-PNIrrr.mjs +0 -55
- package/dist/index-Dbp38ozL.mjs +0 -350
- package/dist/index-L15OdEOS.mjs +0 -370
- package/dist/index-Nw_g6g3T.mjs +0 -80
- package/dist/index-ZpOHqjUk.mjs +0 -344
- package/dist/index-w8CmEAxD.mjs +0 -90
- package/dist/index-zsqXCqfG.mjs +0 -385
- package/dist/info-BWqDP7Q1.mjs +0 -106
- package/dist/viewLogist.vue_vue_type_script_setup_true_lang-POKrzvX7.mjs +0 -77
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { AxiosPromise } from "axios";
|
2
|
+
import type { OrderLogisticsApi, OrderLogisticsReq, OrderLogisticsModel, OrderLogisticsPage, OrderLogisticsList, OrderLogisticsKey, OrderLogisticsUpdateReq, LogisticsQueryReq, LogisticsInfoList } from "./types";
|
3
|
+
declare class OrderLogisticsApiImpl implements OrderLogisticsApi {
|
4
|
+
getKey(model: OrderLogisticsModel): OrderLogisticsKey;
|
5
|
+
findPage(query?: OrderLogisticsReq): AxiosPromise<OrderLogisticsPage>;
|
6
|
+
findList(query?: OrderLogisticsReq): AxiosPromise<OrderLogisticsList>;
|
7
|
+
findById(query: OrderLogisticsKey): AxiosPromise<OrderLogisticsModel>;
|
8
|
+
findLogistics(query?: LogisticsQueryReq): AxiosPromise<LogisticsInfoList>;
|
9
|
+
update(data: OrderLogisticsUpdateReq): AxiosPromise<OrderLogisticsModel>;
|
10
|
+
}
|
11
|
+
declare const orderLogisticsApi: OrderLogisticsApiImpl;
|
12
|
+
export { orderLogisticsApi };
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq } from "jmash-core";
|
2
|
+
export interface OrderLogisticsApi extends EntityApi {
|
3
|
+
}
|
4
|
+
export interface OrderLogisticsReq extends EntityReq {
|
5
|
+
logisticsId?: string;
|
6
|
+
}
|
7
|
+
export interface OrderLogisticsModel extends EntityModel {
|
8
|
+
logisticsId?: string;
|
9
|
+
orderId?: string;
|
10
|
+
orderItemId?: string;
|
11
|
+
logisticsMchCode?: string;
|
12
|
+
logisticsMchName?: string;
|
13
|
+
logisticsNo?: string;
|
14
|
+
deliveryTime?: string;
|
15
|
+
status?: string;
|
16
|
+
isCheck?: boolean;
|
17
|
+
receiverTime?: string;
|
18
|
+
message?: string;
|
19
|
+
createTime?: string;
|
20
|
+
createBy?: string;
|
21
|
+
updateBy?: string;
|
22
|
+
updateTime?: string;
|
23
|
+
}
|
24
|
+
export interface OrderLogisticsList extends EntityList {
|
25
|
+
results: Array<OrderLogisticsModel>;
|
26
|
+
}
|
27
|
+
export interface OrderLogisticsPage extends EntityPage {
|
28
|
+
results: Array<OrderLogisticsModel>;
|
29
|
+
subTotalDto: OrderLogisticsModelTotal;
|
30
|
+
totalDto: OrderLogisticsModelTotal;
|
31
|
+
}
|
32
|
+
export interface OrderLogisticsModelTotal extends EntityTotal {
|
33
|
+
totalSize: number;
|
34
|
+
}
|
35
|
+
export interface OrderLogisticsKey extends EntityKey {
|
36
|
+
tenant?: string;
|
37
|
+
logisticsId?: string;
|
38
|
+
}
|
39
|
+
export interface OrderLogisticsKeyList extends EntityKeyList {
|
40
|
+
tenant?: string;
|
41
|
+
logisticsId?: Array<string>;
|
42
|
+
}
|
43
|
+
export interface OrderLogisticsCreateReq extends EntityCreateReq {
|
44
|
+
logisticsId?: string;
|
45
|
+
orderId?: string;
|
46
|
+
orderItemId?: string;
|
47
|
+
logisticsMchCode?: string;
|
48
|
+
logisticsMchName?: string;
|
49
|
+
logisticsNo?: string;
|
50
|
+
deliveryTime?: string;
|
51
|
+
status?: string;
|
52
|
+
isCheck?: boolean;
|
53
|
+
receiverTime?: string;
|
54
|
+
message?: string;
|
55
|
+
}
|
56
|
+
export interface OrderLogisticsUpdateReq extends EntityUpdateReq {
|
57
|
+
logisticsId?: string;
|
58
|
+
orderId?: string;
|
59
|
+
orderItemId?: string;
|
60
|
+
logisticsMchCode?: string;
|
61
|
+
logisticsMchName?: string;
|
62
|
+
logisticsNo?: string;
|
63
|
+
deliveryTime?: string;
|
64
|
+
status?: string;
|
65
|
+
isCheck?: boolean;
|
66
|
+
receiverTime?: string;
|
67
|
+
message?: string;
|
68
|
+
}
|
69
|
+
export type OrderLogisticsFormReq = OrderLogisticsCreateReq | OrderLogisticsUpdateReq;
|
70
|
+
export interface LogisticsQueryReq {
|
71
|
+
orderId?: string;
|
72
|
+
orderItemId?: string;
|
73
|
+
}
|
74
|
+
export interface LogisticsInfoList {
|
75
|
+
list: Array<LogisticsInfoModel>;
|
76
|
+
}
|
77
|
+
export interface LogisticsInfoModel {
|
78
|
+
time?: string;
|
79
|
+
context?: string;
|
80
|
+
ftime?: string;
|
81
|
+
areaCode?: string;
|
82
|
+
areaName?: string;
|
83
|
+
status?: string;
|
84
|
+
statusCode?: string;
|
85
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { AxiosPromise } from "axios";
|
2
|
+
import type { OrderRefundsApi, OrderRefundsReq, OrderRefundsModel, OrderRefundsPage, OrderRefundsList, OrderRefundsKey, OrderInfoRefundModel, OrderRefundsUpdateReq } from "./types";
|
3
|
+
declare class OrderRefundsApiImpl implements OrderRefundsApi {
|
4
|
+
getKey(model: OrderInfoRefundModel): OrderRefundsKey;
|
5
|
+
findPage(query?: OrderRefundsReq): AxiosPromise<OrderRefundsPage>;
|
6
|
+
findList(query?: OrderRefundsReq): AxiosPromise<OrderRefundsList>;
|
7
|
+
findById(query: OrderRefundsKey): AxiosPromise<OrderInfoRefundModel>;
|
8
|
+
delete(query: OrderRefundsKey): AxiosPromise<OrderInfoRefundModel>;
|
9
|
+
batchDelete(keys: OrderRefundsKey[]): AxiosPromise<number>;
|
10
|
+
update(data: OrderRefundsUpdateReq): AxiosPromise<OrderRefundsModel>;
|
11
|
+
}
|
12
|
+
declare const orderRefundsApi: OrderRefundsApiImpl;
|
13
|
+
export { orderRefundsApi };
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityUpdateReq } from "jmash-core";
|
2
|
+
export interface OrderRefundsApi extends EntityApi {
|
3
|
+
}
|
4
|
+
export interface OrderRefundsReq extends EntityReq {
|
5
|
+
shopId?: string;
|
6
|
+
likeOrderCode?: string;
|
7
|
+
likeSpuName?: string;
|
8
|
+
startCreateTime?: string;
|
9
|
+
endCreateTime?: string;
|
10
|
+
refundStatus?: string;
|
11
|
+
hasRefundStatus?: boolean;
|
12
|
+
}
|
13
|
+
export interface OrderInfoRefundModel extends EntityModel {
|
14
|
+
refundId?: string;
|
15
|
+
orderId?: string;
|
16
|
+
shopId?: string;
|
17
|
+
createTime?: string;
|
18
|
+
orderCode?: string;
|
19
|
+
orderPrice?: number;
|
20
|
+
freightPrice?: number;
|
21
|
+
paymentCouponPrice?: number;
|
22
|
+
paymentWay?: string;
|
23
|
+
status?: string;
|
24
|
+
refundAmount?: number;
|
25
|
+
refundCode?: string;
|
26
|
+
refundReson?: string;
|
27
|
+
refuseRefundReson?: string;
|
28
|
+
}
|
29
|
+
export interface OrderRefundsList extends EntityList {
|
30
|
+
results: Array<OrderInfoRefundModel>;
|
31
|
+
}
|
32
|
+
export interface OrderRefundsPage extends EntityPage {
|
33
|
+
results: Array<OrderInfoRefundModel>;
|
34
|
+
subTotalDto: OrderRefundsModelTotal;
|
35
|
+
totalDto: OrderRefundsModelTotal;
|
36
|
+
}
|
37
|
+
export interface OrderRefundsModelTotal extends EntityTotal {
|
38
|
+
totalSize: number;
|
39
|
+
}
|
40
|
+
export interface OrderRefundsKey extends EntityKey {
|
41
|
+
tenant?: string;
|
42
|
+
refundId?: string;
|
43
|
+
}
|
44
|
+
export interface OrderRefundsKeyList extends EntityKeyList {
|
45
|
+
tenant?: string;
|
46
|
+
refundId?: Array<string>;
|
47
|
+
}
|
48
|
+
export interface OrderRefundsUpdateReq extends EntityUpdateReq {
|
49
|
+
refundId?: string;
|
50
|
+
refundType?: string;
|
51
|
+
refundAmount?: number;
|
52
|
+
refundReson?: string;
|
53
|
+
userName?: string;
|
54
|
+
userMobile?: string;
|
55
|
+
userAddress?: string;
|
56
|
+
refuseRefundReson?: string;
|
57
|
+
auditOpinion?: boolean;
|
58
|
+
}
|
59
|
+
export interface OrderRefundsModel extends EntityModel {
|
60
|
+
refundType?: string;
|
61
|
+
refundAmount?: number;
|
62
|
+
refundReson?: string;
|
63
|
+
userName?: string;
|
64
|
+
userMobile?: string;
|
65
|
+
userAddress?: string;
|
66
|
+
refuseRefundReson?: string;
|
67
|
+
auditOpinion?: boolean;
|
68
|
+
}
|
package/dts/src/constant.d.ts
CHANGED
@@ -15,6 +15,7 @@ export declare class Constant {
|
|
15
15
|
static readonly ENUM_PAYMENT_WAY = "xyvcard.order.protobuf.PaymentWay";
|
16
16
|
static readonly ENUM_DELIVERY_WAY = "xyvcard.order.protobuf.DeliveryWay";
|
17
17
|
static readonly ENUM_POST_TYPE = "xyvcard.order.protobuf.PostType";
|
18
|
+
static readonly logisticsDelivery = "logistics_delivery";
|
18
19
|
static readonly EXPRESS_COMPANY_CODE = "ExpressCompanyCode";
|
19
20
|
static readonly unpay = "unpay";
|
20
21
|
static readonly unpost = "unpost";
|
@@ -23,6 +24,18 @@ export declare class Constant {
|
|
23
24
|
static readonly complete = "complete";
|
24
25
|
static readonly unpaid = "unpaid";
|
25
26
|
static readonly paid = "paid";
|
26
|
-
static readonly
|
27
|
+
static readonly partPaid = "part_paid";
|
27
28
|
static readonly REFUND_APPLY_STATUS = "xyvcard.order.protobuf.RefundApplyStatus";
|
29
|
+
static readonly ENUM_REFUND_TYPE = "xyvcard.order.protobuf.RefundType";
|
30
|
+
static readonly returnRefund = "RETURN_REFUND";
|
31
|
+
static readonly AUDIT_OPINION: globalThis.Ref<{
|
32
|
+
key: boolean;
|
33
|
+
value: string;
|
34
|
+
}[], {
|
35
|
+
key: boolean;
|
36
|
+
value: string;
|
37
|
+
}[] | {
|
38
|
+
key: boolean;
|
39
|
+
value: string;
|
40
|
+
}[]>;
|
28
41
|
}
|
@@ -149,13 +149,25 @@ declare const _default: {
|
|
149
149
|
orderPrice: string;
|
150
150
|
freightPrice: string;
|
151
151
|
paymentCouponPrice: string;
|
152
|
-
|
152
|
+
paidPrice: string;
|
153
153
|
paymentWay: string;
|
154
|
-
|
154
|
+
refundType: string;
|
155
155
|
refundAmount: string;
|
156
|
+
refundAmountRequired: string;
|
156
157
|
refundReson: string;
|
158
|
+
auditOpinion: string;
|
159
|
+
auditOpinionRequired: string;
|
157
160
|
refuseRefundReson: string;
|
161
|
+
refuseRefundResonRequired: string;
|
162
|
+
info: string;
|
163
|
+
refundReview: string;
|
164
|
+
refundOperation: string;
|
158
165
|
userName: string;
|
166
|
+
userNameRequired: string;
|
167
|
+
mobilePhone: string;
|
168
|
+
mobilePhoneRequired: string;
|
169
|
+
correctPhone: string;
|
170
|
+
address: string;
|
159
171
|
};
|
160
172
|
orderRefundRecord: {
|
161
173
|
name: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type PropType } from "vue";
|
2
|
-
import type { OrderInfoKey, OrderItemModel } from "@/api/order
|
2
|
+
import type { OrderInfoKey, OrderItemModel } from "@/api/order-info/types";
|
3
3
|
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
4
4
|
modelValue: PropType<boolean>;
|
5
5
|
entityKey: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type PropType } from "vue";
|
2
|
-
import type { OrderInfoKey, OrderItemModel } from "@/api/order
|
2
|
+
import type { OrderInfoKey, OrderItemModel } from "@/api/order-info/types";
|
3
3
|
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
4
4
|
modelValue: PropType<boolean>;
|
5
5
|
entityKey: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type PropType } from "vue";
|
2
|
-
import type { OrderInfoKey } from "@/api/order
|
2
|
+
import type { OrderInfoKey } from "@/api/order-info/types";
|
3
3
|
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
4
4
|
modelValue: PropType<boolean>;
|
5
5
|
entityKey: {
|
@@ -1,2 +1,15 @@
|
|
1
|
-
|
1
|
+
import type { OrderRefundsKey } from "@/api/order-refunds/types";
|
2
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
3
|
+
entityKey: {
|
4
|
+
type: globalThis.PropType<OrderRefundsKey>;
|
5
|
+
default: () => void;
|
6
|
+
};
|
7
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
8
|
+
entityKey: {
|
9
|
+
type: globalThis.PropType<OrderRefundsKey>;
|
10
|
+
default: () => void;
|
11
|
+
};
|
12
|
+
}>> & Readonly<{}>, {
|
13
|
+
entityKey: OrderRefundsKey;
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
2
15
|
export default _default;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { type PropType } from "vue";
|
2
|
+
import type { OrderRefundsKey } from "@/api/order-refunds/types";
|
3
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
4
|
+
modelValue: PropType<boolean>;
|
5
|
+
entityKey: {
|
6
|
+
type: PropType<OrderRefundsKey>;
|
7
|
+
default: () => void;
|
8
|
+
};
|
9
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
10
|
+
refresh: (...args: any[]) => void;
|
11
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
12
|
+
modelValue: PropType<boolean>;
|
13
|
+
entityKey: {
|
14
|
+
type: PropType<OrderRefundsKey>;
|
15
|
+
default: () => void;
|
16
|
+
};
|
17
|
+
}>> & Readonly<{
|
18
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
19
|
+
}>, {
|
20
|
+
entityKey: OrderRefundsKey;
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
22
|
+
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.3",
|
4
4
|
"private": false,
|
5
5
|
"module": "dist/index.mjs",
|
6
6
|
"types": "dts/src/index.d.ts",
|
@@ -17,7 +17,8 @@
|
|
17
17
|
"axios": "^1.6.7",
|
18
18
|
"jmash-core": "^0.0.99",
|
19
19
|
"jmash-dict": "^0.0.44",
|
20
|
-
"jmash-rbac": "^0.0.35"
|
20
|
+
"jmash-rbac": "^0.0.35",
|
21
|
+
"xyvcard-shop": "^0.0.12"
|
21
22
|
},
|
22
23
|
"devDependencies": {
|
23
24
|
"@rushstack/eslint-patch": "^1.3.3",
|
@@ -27,8 +28,8 @@
|
|
27
28
|
"@vue/eslint-config-prettier": "^8.0.0",
|
28
29
|
"@vue/eslint-config-typescript": "^12.0.0",
|
29
30
|
"@vue/tsconfig": "^0.5.1",
|
30
|
-
"eslint": "^
|
31
|
-
"eslint-plugin-vue": "^9.
|
31
|
+
"eslint": "^9.11.0",
|
32
|
+
"eslint-plugin-vue": "^9.28.0",
|
32
33
|
"npm-run-all2": "^6.1.1",
|
33
34
|
"prettier": "^3.0.3",
|
34
35
|
"sass": "^1.72.0",
|
@@ -1,24 +0,0 @@
|
|
1
|
-
var p = Object.defineProperty;
|
2
|
-
var t = (c, a, i) => a in c ? p(c, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : c[a] = i;
|
3
|
-
var r = (c, a, i) => t(c, typeof a != "symbol" ? a + "" : a, i);
|
4
|
-
import { ref as d } from "vue";
|
5
|
-
class e {
|
6
|
-
}
|
7
|
-
// 模块
|
8
|
-
r(e, "MODULE_ORDER", "order"), // 评价状态
|
9
|
-
r(e, "APPRAISES_STATUS", d([
|
10
|
-
{ key: !0, value: "已评价" },
|
11
|
-
{ key: !1, value: "未评价" }
|
12
|
-
])), // 订单状态
|
13
|
-
r(e, "ENUM_ORDER_STATUS", "xyvcard.order.protobuf.OrderStatus"), // 支付状态
|
14
|
-
r(e, "ENUM_PAYMENT_STATUS", "xyvcard.order.protobuf.PaymentStatus"), // 支付方式
|
15
|
-
r(e, "ENUM_PAYMENT_WAY", "xyvcard.order.protobuf.PaymentWay"), // 配送方式
|
16
|
-
r(e, "ENUM_DELIVERY_WAY", "xyvcard.order.protobuf.DeliveryWay"), // 发货类型
|
17
|
-
r(e, "ENUM_POST_TYPE", "xyvcard.order.protobuf.PostType"), // 物流公司
|
18
|
-
r(e, "EXPRESS_COMPANY_CODE", "ExpressCompanyCode"), // 订单状态常量
|
19
|
-
r(e, "unpay", "unpay"), r(e, "unpost", "unpost"), r(e, "unreceive", "unreceive"), r(e, "cancel", "cancel"), r(e, "complete", "complete"), // 支付状态常量
|
20
|
-
r(e, "unpaid", "unpaid"), r(e, "paid", "paid"), r(e, "part_paid", "part_paid"), // 退款状态
|
21
|
-
r(e, "REFUND_APPLY_STATUS", "xyvcard.order.protobuf.RefundApplyStatus");
|
22
|
-
export {
|
23
|
-
e as C
|
24
|
-
};
|
@@ -1,221 +0,0 @@
|
|
1
|
-
import { defineComponent as $, mergeModels as C, useModel as E, resolveComponent as s, openBlock as u, createBlock as _, withCtx as e, createElementBlock as F, Fragment as P, renderList as K, unref as o, createTextVNode as I, toDisplayString as k, ref as M, reactive as q, createElementVNode as A, createVNode as l, createCommentVNode as D } from "vue";
|
2
|
-
import { ElMessage as x } from "element-plus";
|
3
|
-
import { useI18n as L } from "vue-i18n";
|
4
|
-
import { D as X } from "./index-Nw_g6g3T.mjs";
|
5
|
-
import { o as Y } from "./index-w8CmEAxD.mjs";
|
6
|
-
import { C as z } from "./constant-CWTD7ap0.mjs";
|
7
|
-
const G = /* @__PURE__ */ $({
|
8
|
-
__name: "index",
|
9
|
-
props: /* @__PURE__ */ C({
|
10
|
-
data: {
|
11
|
-
type: Object,
|
12
|
-
default: function() {
|
13
|
-
}
|
14
|
-
}
|
15
|
-
}, {
|
16
|
-
modelValue: { type: [String, Boolean] },
|
17
|
-
modelModifiers: {}
|
18
|
-
}),
|
19
|
-
emits: ["update:modelValue"],
|
20
|
-
setup(m) {
|
21
|
-
const y = E(m, "modelValue"), g = m.data;
|
22
|
-
return (t, v) => {
|
23
|
-
const d = s("el-radio"), c = s("el-radio-group");
|
24
|
-
return u(), _(c, {
|
25
|
-
modelValue: y.value,
|
26
|
-
"onUpdate:modelValue": v[0] || (v[0] = (n) => y.value = n)
|
27
|
-
}, {
|
28
|
-
default: e(() => [
|
29
|
-
(u(!0), F(P, null, K(o(g), (n) => (u(), _(d, {
|
30
|
-
key: n.key,
|
31
|
-
value: n.key
|
32
|
-
}, {
|
33
|
-
default: e(() => [
|
34
|
-
I(k(n.value), 1)
|
35
|
-
]),
|
36
|
-
_: 2
|
37
|
-
}, 1032, ["value"]))), 128))
|
38
|
-
]),
|
39
|
-
_: 1
|
40
|
-
}, 8, ["modelValue"]);
|
41
|
-
};
|
42
|
-
}
|
43
|
-
}), H = { class: "dialog-footer" }, te = /* @__PURE__ */ $({
|
44
|
-
__name: "deliver",
|
45
|
-
props: /* @__PURE__ */ C({
|
46
|
-
entityKey: {
|
47
|
-
type: Object,
|
48
|
-
default: () => {
|
49
|
-
}
|
50
|
-
},
|
51
|
-
entityModel: {
|
52
|
-
type: Object,
|
53
|
-
default: () => {
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}, {
|
57
|
-
modelValue: { type: Boolean },
|
58
|
-
modelModifiers: {}
|
59
|
-
}),
|
60
|
-
emits: /* @__PURE__ */ C(["refresh"], ["update:modelValue"]),
|
61
|
-
setup(m, { emit: y }) {
|
62
|
-
const { t: p } = L(), g = M();
|
63
|
-
let t = q({
|
64
|
-
postType: ""
|
65
|
-
});
|
66
|
-
const v = q({
|
67
|
-
postType: [
|
68
|
-
{
|
69
|
-
required: !0,
|
70
|
-
message: p("orderInfo.postTypeRequired"),
|
71
|
-
trigger: "change"
|
72
|
-
}
|
73
|
-
],
|
74
|
-
logisticCode: [
|
75
|
-
{
|
76
|
-
required: !0,
|
77
|
-
message: p("orderInfo.logisticCodeRequired"),
|
78
|
-
trigger: "blur"
|
79
|
-
}
|
80
|
-
],
|
81
|
-
logisticsNo: [
|
82
|
-
{
|
83
|
-
required: !0,
|
84
|
-
message: p("orderInfo.logisticsNoRequired"),
|
85
|
-
trigger: "blur"
|
86
|
-
}
|
87
|
-
]
|
88
|
-
}), d = E(m, "modelValue"), c = m, n = y, h = Object.keys(c.entityKey), j = M(h.length >= 1), w = async () => {
|
89
|
-
var r;
|
90
|
-
await ((r = g.value) == null ? void 0 : r.validate((a) => {
|
91
|
-
a && j.value && Y.orderPost({
|
92
|
-
orderId: c.entityKey.orderId,
|
93
|
-
orderItemId: c.entityModel.itemId,
|
94
|
-
...t
|
95
|
-
}).then((f) => {
|
96
|
-
console.log(f), f.status === 200 && (x({
|
97
|
-
message: p("common.submitSuccess"),
|
98
|
-
type: "success"
|
99
|
-
}), d.value && (d.value = !1), n("refresh", f.status === 200));
|
100
|
-
});
|
101
|
-
}));
|
102
|
-
};
|
103
|
-
function N() {
|
104
|
-
d.value && (d.value = !1);
|
105
|
-
}
|
106
|
-
return (r, a) => {
|
107
|
-
const f = G, V = s("el-form-item"), b = s("el-col"), O = s("jmash-dict-select"), R = s("el-input"), B = s("el-row"), S = s("el-form"), T = s("el-button"), U = s("el-dialog");
|
108
|
-
return u(), _(U, {
|
109
|
-
modelValue: d.value,
|
110
|
-
"onUpdate:modelValue": a[3] || (a[3] = (i) => d.value = i),
|
111
|
-
onClose: N
|
112
|
-
}, {
|
113
|
-
footer: e(() => [
|
114
|
-
A("div", H, [
|
115
|
-
l(T, { onClick: N }, {
|
116
|
-
default: e(() => [
|
117
|
-
I(k(r.$t("common.cancel")), 1)
|
118
|
-
]),
|
119
|
-
_: 1
|
120
|
-
}),
|
121
|
-
l(T, {
|
122
|
-
type: "primary",
|
123
|
-
onClick: w
|
124
|
-
}, {
|
125
|
-
default: e(() => [
|
126
|
-
I(k(r.$t("common.confirm")), 1)
|
127
|
-
]),
|
128
|
-
_: 1
|
129
|
-
})
|
130
|
-
])
|
131
|
-
]),
|
132
|
-
default: e(() => [
|
133
|
-
l(S, {
|
134
|
-
ref_key: "deliveryForm",
|
135
|
-
ref: g,
|
136
|
-
model: o(t),
|
137
|
-
"label-width": "120px",
|
138
|
-
rules: v
|
139
|
-
}, {
|
140
|
-
default: e(() => [
|
141
|
-
l(B, null, {
|
142
|
-
default: e(() => [
|
143
|
-
l(b, { span: 24 }, {
|
144
|
-
default: e(() => [
|
145
|
-
l(V, {
|
146
|
-
label: r.$t("orderInfo.postType"),
|
147
|
-
prop: "postType"
|
148
|
-
}, {
|
149
|
-
default: e(() => [
|
150
|
-
l(f, {
|
151
|
-
modelValue: o(t).postType,
|
152
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) => o(t).postType = i),
|
153
|
-
data: o(X).postTypeEnum.values
|
154
|
-
}, null, 8, ["modelValue", "data"])
|
155
|
-
]),
|
156
|
-
_: 1
|
157
|
-
}, 8, ["label"])
|
158
|
-
]),
|
159
|
-
_: 1
|
160
|
-
}),
|
161
|
-
o(t).postType === "logistics_delivery" ? (u(), _(b, {
|
162
|
-
key: 0,
|
163
|
-
span: 24
|
164
|
-
}, {
|
165
|
-
default: e(() => [
|
166
|
-
l(V, {
|
167
|
-
label: r.$t("orderInfo.logisticCode"),
|
168
|
-
prop: "logisticCode"
|
169
|
-
}, {
|
170
|
-
default: e(() => [
|
171
|
-
l(O, {
|
172
|
-
modelValue: o(t).logisticCode,
|
173
|
-
"onUpdate:modelValue": a[1] || (a[1] = (i) => o(t).logisticCode = i),
|
174
|
-
placeholder: r.$t("orderInfo.logisticCodeRequired"),
|
175
|
-
clearable: "",
|
176
|
-
"type-code": o(z).EXPRESS_COMPANY_CODE
|
177
|
-
}, null, 8, ["modelValue", "placeholder", "type-code"])
|
178
|
-
]),
|
179
|
-
_: 1
|
180
|
-
}, 8, ["label"])
|
181
|
-
]),
|
182
|
-
_: 1
|
183
|
-
})) : D("", !0),
|
184
|
-
o(t).postType === "logistics_delivery" ? (u(), _(b, {
|
185
|
-
key: 1,
|
186
|
-
span: 24
|
187
|
-
}, {
|
188
|
-
default: e(() => [
|
189
|
-
l(V, {
|
190
|
-
label: r.$t("orderInfo.logisticsNo"),
|
191
|
-
prop: "logisticsNo"
|
192
|
-
}, {
|
193
|
-
default: e(() => [
|
194
|
-
l(R, {
|
195
|
-
modelValue: o(t).logisticsNo,
|
196
|
-
"onUpdate:modelValue": a[2] || (a[2] = (i) => o(t).logisticsNo = i),
|
197
|
-
placeholder: r.$t("orderInfo.logisticsNoRequired"),
|
198
|
-
clearable: "",
|
199
|
-
class: "!w-[203px]"
|
200
|
-
}, null, 8, ["modelValue", "placeholder"])
|
201
|
-
]),
|
202
|
-
_: 1
|
203
|
-
}, 8, ["label"])
|
204
|
-
]),
|
205
|
-
_: 1
|
206
|
-
})) : D("", !0)
|
207
|
-
]),
|
208
|
-
_: 1
|
209
|
-
})
|
210
|
-
]),
|
211
|
-
_: 1
|
212
|
-
}, 8, ["model", "rules"])
|
213
|
-
]),
|
214
|
-
_: 1
|
215
|
-
}, 8, ["modelValue"]);
|
216
|
-
};
|
217
|
-
}
|
218
|
-
});
|
219
|
-
export {
|
220
|
-
te as _
|
221
|
-
};
|
package/dist/edit-BtY-5_aq.mjs
DELETED
package/dist/edit-CagPAsCc.mjs
DELETED
package/dist/edit-DSlSQclm.mjs
DELETED
package/dist/edit-DZTWE770.mjs
DELETED