功能:重建指尖管理师规划系统

This commit is contained in:
xiaowang
2026-06-04 16:39:06 +08:00
parent 73483e7b0c
commit 677890f518
413 changed files with 9602 additions and 795 deletions
+58
View File
@@ -23,6 +23,7 @@ export interface OrderItem {
export interface CreateOrderRequest {
couponId?: IdType
couponSourceType?: string
remark?: string
items: OrderItem[]
}
@@ -50,6 +51,14 @@ export interface CheckoutCouponPreview {
endTime?: string
}
export interface CheckoutIssue {
code: string
message: string
itemId?: IdType
productId?: IdType
productTitle?: string
}
export interface CheckoutPreview {
subtotalAmount: number
savedAmount: number
@@ -57,6 +66,8 @@ export interface CheckoutPreview {
bestCoupon?: CheckoutCouponPreview
availableCoupons: CheckoutCouponPreview[]
unavailableCoupons: CheckoutCouponPreview[]
bookingAvailable?: boolean
bookingIssues?: CheckoutIssue[]
vipTip?: string
summaryText?: string
}
@@ -77,6 +88,33 @@ export interface PaymentOrderVO {
remark?: string
}
export interface OrderQuoteItem {
orderItemId: IdType
quotedPrice?: number
}
export interface OrderQuoteSubmitRequest {
remark?: string
items: OrderQuoteItem[]
}
export interface OrderQuoteReplyRequest {
remark?: string
}
export interface OrderQuoteMessage {
id: IdType
orderId: IdType
actorId?: IdType
actorType?: string
actorTypeText?: string
action?: string
actionText?: string
remark?: string
items?: any[]
createTime?: string
}
export interface AfterSaleApplyRequest {
orderId: IdType
orderItemId?: IdType
@@ -295,9 +333,29 @@ export const orderApi = {
return api.post('/order/create', data)
},
createInquiryAppointment: (data: CreateOrderRequest) => {
return api.post('/order/create', data)
},
checkoutPreview: async (data: CheckoutPreviewRequest): Promise<CheckoutPreview> => {
return await api.post<CheckoutPreview>('/order/checkout-preview', data) as unknown as CheckoutPreview
},
replyQuote: async (orderId: IdType, data?: OrderQuoteReplyRequest): Promise<any> => {
return await api.post(`/order/${orderId}/quote/reply`, data || {}) as unknown as any
},
confirmUserQuote: async (orderId: IdType): Promise<any> => {
return await api.put(`/order/${orderId}/quote/confirm`) as unknown as any
},
submitShopQuote: async (orderId: IdType, data: OrderQuoteSubmitRequest): Promise<any> => {
return await api.post(`/order/${orderId}/quote/shop`, data) as unknown as any
},
confirmShopQuote: async (orderId: IdType): Promise<any> => {
return await api.put(`/order/${orderId}/quote/shop/confirm`) as unknown as any
},
// 获取订单列表
getOrderList: async (): Promise<any[]> => {