diff --git a/app/Admin/Forms/AfterSaleVerify.php b/app/Admin/Forms/AfterSaleVerify.php index 75ded9a4..259fcd43 100644 --- a/app/Admin/Forms/AfterSaleVerify.php +++ b/app/Admin/Forms/AfterSaleVerify.php @@ -44,6 +44,7 @@ class AfterSaleVerify extends Form implements LazyRenderable if ($input['state'] == 3) {//审核通过 $amount = Arr::get($input, 'amount', 0); $afterSale->load(['order', 'order.afterSales']); + //已完成的售后单 $finishedAfterSale = $afterSale->order->afterSales->filter(function ($items) { if ($items->state == AfterSale::STATE_FINISH && in_array($items->type, [AfterSale::TYPE_REFUND_AND_RETURN, AfterSale::TYPE_REFUND, Aftersale::TYPE_CHANGE])) { return true; diff --git a/app/Models/DealerEarning.php b/app/Models/DealerEarning.php index 616076ca..e6eaed96 100644 --- a/app/Models/DealerEarning.php +++ b/app/Models/DealerEarning.php @@ -124,7 +124,7 @@ class DealerEarning extends Model public function getStatusNameAttribute() { if ($this->settle_at) { - return $this->status::text(); + return $this->status->text(); } else { return '待结算'; }