webadmin端订单修改

This commit is contained in:
2026-07-17 08:45:33 +08:00
parent ed44e88e93
commit c643b0b979
6 changed files with 448 additions and 130 deletions
@@ -178,11 +178,7 @@ export class FulfillmentService {
});
if (!order) throw new NotFoundException('订单不存在');
const isHqQueue =
order.deliveryType === 'CROSS_CITY' ||
(order.deliveryType === 'LOCAL' && !order.fulfillmentWarehouseId);
if (!isHqQueue) throw new BadRequestException('该订单由仓配履约,请使用仓配发货');
// HQ 可对任意待发货单填快递单号(含仓配单手动填单)
if (!['PENDING_SHIP', 'OUT_WAREHOUSE'].includes(order.status)) {
throw new BadRequestException('当前订单状态不可发货');
}