修改铺货订单复制

This commit is contained in:
lewis 2025-01-15 17:57:38 +08:00
parent ed9ffc8d8c
commit ddfe35d2c9

View File

@ -1058,7 +1058,7 @@ class BeforehandOrderLogic extends BaseLogic
throw new BusinessException('只能复制铺货订单'); throw new BusinessException('只能复制铺货订单');
} }
$orderCartInfo = BeforehandOrderCartInfo::where('bhoid', $params['id'])->select()->toArray(); $orderCartInfo = BeforehandOrderCartInfo::where('bhoid', $params['id'])->select()->toArray();
unset($order['id'], $order['create_time'], $order['update_time']); unset($order['id'], $order['create_time'], $order['update_time'], $order['is_warehousing'], $order['warehousing_id'], $order['is_outbound'], $order['outbound_id']);
$newOrder = new BeforehandOrder(); $newOrder = new BeforehandOrder();
$newOrder->setAttrs($order->toArray()); $newOrder->setAttrs($order->toArray());
$newOrder->admin_id = $params['admin_id']; $newOrder->admin_id = $params['admin_id'];