Files
biz-mobile-cloud-zax/src/sheep/api/order.ts
T
2026-04-13 14:19:32 +08:00

98 lines
2.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import request from "@/sheep/utils/request"
export default {
// 食堂订单
caneenPage: (params: any) =>
request({
url: `/hard/hard-order/app/caneen-page-join`,
method: "GET",
params,
}),
supPage: (params: any) =>
request({
url: `/hard/hard-order/app/sup-page-join`,
method: "GET",
params,
}),
// 共富商城订单
farmerSpuPage: (params: any) =>
request({
url: `/hard/hard-order/app/farmer-page-join`,
method: "GET",
params,
}),
detail: (params: any) =>
request({
url: `/hard/hard-order/app/detail`,
method: "GET",
params,
}),
shopCarList: (params: any) =>
request({
url: `/hard/hard-car/app/order-id`,
method: "GET",
params,
}),
getShopCar: (params: any) =>
request({
url: `/hard/hard-car/app/mch-detail`,
method: "GET",
params,
}),
updateShopCar: (data: any) =>
request({
url: `/hard/hard-car/app/save-or-upload`,
method: "POST",
data,
}),
/**
* 预约时间列表
*/
apptList: () =>
request({
url: "/hard/hard-appt/app/list",
method: "GET",
}),
/**
* 外卖预约配送可选时段(与下单校验同源,见 take-out-scheduled-delivery 业务说明 §6.3)
* GET /app/hard-order/app/take-out/delivery-time-slots
*/
takeOutDeliveryTimeSlots: (params: {
merchantId: string | number
/** yyyy-MM-dd,起始配送日;不传默认今天 */
expectDate?: string
/** 连续天数,默认 1,最大 14 */
days?: number
slotMinutes?: number
leadMinutes?: number
}) =>
request({
url: "/hard/hard-order/app/take-out/delivery-time-slots",
method: "GET",
params,
}),
/**
* 用户确认设备二维码扫一扫订单
* @param orderId 订单id
* @param walletTypeId 钱包类型ID
*/
doneHardQrCodeScanOrder: (data: any) =>
request({
url: "/hard/hard-api/ad/done-hard-qr-code-order",
method: "POST",
data,
}),
/**
* 创建共富商城预约订单
* @body body.carParentId 购物车id
* @body body.walletTypeId 钱包类型id
* @body body.pickUpId 自提点id
*/
appCreateFarmerReserveOrder: (data: any) =>
request({
url: "/hard/hard-order/app/create-farmer-order",
method: "POST",
data,
}),
}