完善发货流程

This commit is contained in:
Dev
2026-09-30 15:16:09 +08:00
parent bc17810445
commit 0758c7e618
3 changed files with 19 additions and 2 deletions
@@ -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;