| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- /**
- * Created by PhpStorm.
- * Author: 芸众商城 www.yunzshop.com
- * Date: 2017/3/2
- * Time: 下午4:55
- */
- namespace app\frontend\modules\order\services\status;
- use app\common\models\DispatchType;
- use app\common\models\Order;
- class WaitReceive extends Status
- {
- protected $name = '收货';
- protected $api = 'order.operation.receive';
- protected $value;
- protected $order;
- public function __construct(Order $order)
- {
- $this->order = $order;
- $this->value = static::COMPLETE;
- }
- public function getStatusName()
- {
- if($this->order->is_all_send_goods == 1){
- return "部分发货";
- }else{
- return "待{$this->name}";
- }
- }
- }
|