新增采购订单状态

This commit is contained in:
yaooo 2023-08-30 13:47:47 +08:00
parent 026d3ddf3a
commit 408e34c9ad

View File

@ -1756,7 +1756,7 @@ class StoreOrderRepository extends BaseRepository
}
public function getOrderStatusV2($order) {
//订单状态 1 未支付 2待发货 3待收货 4待评价 5交易完成 6已退款 7待核销 8先货后款待结算
//订单状态 1 未支付 2待发货 3待收货 4待评价 5交易完成 6已退款 7待核销 8先货后款待结算 9待商家确认
$order->order_status = 0;
if ($order->paid == 0) {
$order->order_status = 1;
@ -1783,6 +1783,9 @@ class StoreOrderRepository extends BaseRepository
if ($order->paid == 1 && $order->status == 2 && $order->pay_type == 8) {
$order->order_status = 8;
}
if ($order->status == 12) {
$order->order_status = 9;
}
return $order->order_status;
}