代支付记录

This commit is contained in:
2025-01-04 15:29:44 +08:00
parent 2852aeec1b
commit 2948b2b6a4
5 changed files with 83 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ class ChargeCashController extends BaseAdminController
}
$query->with(['store'])->orderBy(['id' => SORT_DESC]);
$query->with(['store', 'supplier'])->orderBy(['id' => SORT_DESC]);
$this->field = [
ChargeCashPayRecord::class => [
'id',
@@ -46,7 +46,9 @@ class ChargeCashController extends BaseAdminController
'charge_cash',
'type',
'status',
'store',
'store' => function ($query) {
return empty($query->store)? $query->supplier: $query->store;
},
'created_at' => function ($le) {
return date('Y-m-d H:i:s', $le->created_at);
}