WaitReceive.php 730 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 2017/3/2
  6. * Time: 下午4:55
  7. */
  8. namespace app\frontend\modules\order\services\status;
  9. use app\common\models\DispatchType;
  10. use app\common\models\Order;
  11. class WaitReceive extends Status
  12. {
  13. protected $name = '收货';
  14. protected $api = 'order.operation.receive';
  15. protected $value;
  16. protected $order;
  17. public function __construct(Order $order)
  18. {
  19. $this->order = $order;
  20. $this->value = static::COMPLETE;
  21. }
  22. public function getStatusName()
  23. {
  24. if($this->order->is_all_send_goods == 1){
  25. return "部分发货";
  26. }else{
  27. return "待{$this->name}";
  28. }
  29. }
  30. }