完善发货流程
This commit is contained in:
@@ -175,7 +175,12 @@ class Demand extends Api
|
||||
} elseif ($item->status == 4 && $item->accept_status == 1) {
|
||||
$button = ['name' => '前去验收', 'theme' => 'danger'];
|
||||
} elseif ($item->status == 5 && $item->accept_status == 2) {
|
||||
$button = ['name' => '确认收货', 'theme' => 'danger'];
|
||||
//开发者发货后客户才能确认收货
|
||||
if ($item->hasDelivery) {
|
||||
$button = ['name' => '确认收货', 'theme' => 'danger'];
|
||||
} else {
|
||||
$button = ['name' => '待发货', 'theme' => 'light'];
|
||||
}
|
||||
}
|
||||
}
|
||||
return $button;
|
||||
|
||||
Reference in New Issue
Block a user