代支付记录
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user