diff --git a/src/api/mall/trade/delivery/express/index.ts b/src/api/mall/trade/delivery/express/index.ts index 95429a40..76ac93ec 100644 --- a/src/api/mall/trade/delivery/express/index.ts +++ b/src/api/mall/trade/delivery/express/index.ts @@ -19,6 +19,11 @@ export const getDeliveryExpress = async (id: number) => { return await request.get({ url: '/trade/delivery/express/get?id=' + id }) } +// 获得商品品牌精简信息列表 +export const getSimpleDeliveryExpressList = () => { + return request.get({ url: '/trade/delivery/express/list-all-simple' }) +} + // 新增快递公司 export const createDeliveryExpress = async (data: DeliveryExpressVO) => { return await request.post({ url: '/trade/delivery/express/create', data }) diff --git a/src/api/mall/trade/order/index.ts b/src/api/mall/trade/order/index.ts index 8acb9941..8dfbfab8 100644 --- a/src/api/mall/trade/order/index.ts +++ b/src/api/mall/trade/order/index.ts @@ -94,17 +94,18 @@ export const getOrder = async (id: number | null) => { return await request.get({ url: `/trade/order/get-detail?id=` + id }) } -// 新增交易订单 -export const createOrder = async (data: OrderVO) => { - return await request.post({ url: `/trade/order/create`, data }) +export interface DeliveryVO { + id: number // 订单编号 + logisticsId: number | null // 物流公司编号 + logisticsNo: string // 物流编号 } -// 修改交易订单 -export const updateOrder = async (data: OrderVO) => { - return await request.put({ url: `/trade/order/update`, data }) +// 订单发货 +export const delivery = async (data: DeliveryVO) => { + return await request.post({ url: `/trade/order/delivery`, data }) } -// 删除交易订单 -export const deleteOrder = async (id: number | null) => { - return await request.delete({ url: `/trade/order/delete?id=` + id }) +// 订单备注 +export const remark = async (data) => { + return await request.post({ url: `/trade/order/remark`, data }) } diff --git a/src/views/mall/trade/order/DeliveryOrderForm.vue b/src/views/mall/trade/order/DeliveryOrderForm.vue new file mode 100644 index 00000000..579a376c --- /dev/null +++ b/src/views/mall/trade/order/DeliveryOrderForm.vue @@ -0,0 +1,93 @@ + + diff --git a/src/views/mall/trade/order/OrderRemarksForm.vue b/src/views/mall/trade/order/OrderRemarksForm.vue new file mode 100644 index 00000000..fdcf72dc --- /dev/null +++ b/src/views/mall/trade/order/OrderRemarksForm.vue @@ -0,0 +1,66 @@ + + diff --git a/src/views/mall/trade/order/detail/index.vue b/src/views/mall/trade/order/detail/index.vue index c8e00f99..dc5e4bcc 100644 --- a/src/views/mall/trade/order/detail/index.vue +++ b/src/views/mall/trade/order/detail/index.vue @@ -47,9 +47,9 @@ 调整价格 - 备注 + 备注 - 发货 + 发货 修改地址 @@ -212,17 +212,20 @@ + +