fix(app): 修复预售订单导出逻辑

- 在导出预售订单时,增加了对$type$ 的非空判断
- 确保当$type$ 为空时,不会错误地执行无价格导出逻辑
This commit is contained in:
mkm 2025-01-04 19:15:20 +08:00
parent c5968370b6
commit dfdb3256dc

View File

@ -737,7 +737,7 @@ class BeforehandOrderLogic extends BaseLogic
$find = WarehouseOrder::where('id', $order['outbound_id'])->find();
$order['order_id'] = $find['code'];
$order['pay_price'] = $find['total_price'];
if ($params['type'] == 3) {
if (!empty($params['type']) &&$params['type'] == 3) {
$file_path = $order_info->exportWithoutPrice($data, $order, $other_data);
} else {
$file_path = $order_info->export($data, $order, $other_data);