调整批零余额提现状态筛选
parent
1530f779c6
commit
7defa06bae
|
|
@ -43,7 +43,11 @@ class DealerWalletToBankLogController extends AdminController
|
||||||
0=>'primary',
|
0=>'primary',
|
||||||
1=>'success',
|
1=>'success',
|
||||||
2=>'danger',
|
2=>'danger',
|
||||||
]);
|
])->filter(Grid\Column\Filter\In::make([
|
||||||
|
DealerWalletToBankLogModel::STATUS_PENDING=>'待处理',
|
||||||
|
DealerWalletToBankLogModel::STATUS_AGREE=>'同意',
|
||||||
|
DealerWalletToBankLogModel::STATUS_REFUSE=>'拒绝',
|
||||||
|
]));
|
||||||
$grid->column('remarks');
|
$grid->column('remarks');
|
||||||
$grid->column('created_at')->sortable();
|
$grid->column('created_at')->sortable();
|
||||||
// $grid->column('updated_at')
|
// $grid->column('updated_at')
|
||||||
|
|
@ -58,11 +62,11 @@ class DealerWalletToBankLogController extends AdminController
|
||||||
|
|
||||||
$grid->filter(function (Grid\Filter $filter) {
|
$grid->filter(function (Grid\Filter $filter) {
|
||||||
$filter->panel();
|
$filter->panel();
|
||||||
$filter->equal('status')->select([
|
// $filter->equal('status')->select([
|
||||||
DealerWalletToBankLogModel::STATUS_PENDING=>'待处理',
|
// DealerWalletToBankLogModel::STATUS_PENDING=>'待处理',
|
||||||
DealerWalletToBankLogModel::STATUS_AGREE=>'已同意',
|
// DealerWalletToBankLogModel::STATUS_AGREE=>'已同意',
|
||||||
DealerWalletToBankLogModel::STATUS_REFUSE=>'已拒绝',
|
// DealerWalletToBankLogModel::STATUS_REFUSE=>'已拒绝',
|
||||||
])->width(3);
|
// ])->width(3);
|
||||||
$filter->equal('user.phone')->width(3);
|
$filter->equal('user.phone')->width(3);
|
||||||
$filter->between('created_at')->dateTime()->width(7);
|
$filter->between('created_at')->dateTime()->width(7);
|
||||||
});
|
});
|
||||||
|
|
@ -100,45 +104,45 @@ class DealerWalletToBankLogController extends AdminController
|
||||||
$show->divider('收款信息-银行');
|
$show->divider('收款信息-银行');
|
||||||
$show->field('bank_user_name', '银行-收款人')->as(function () {
|
$show->field('bank_user_name', '银行-收款人')->as(function () {
|
||||||
$payInfo = $this->getPayInfo();
|
$payInfo = $this->getPayInfo();
|
||||||
return $payInfo['bank']['user_name']??'';
|
return $payInfo['bank']['user_name'] ?? '';
|
||||||
});
|
});
|
||||||
$show->field('bank_bank_name', '银行-名称')->as(function () {
|
$show->field('bank_bank_name', '银行-名称')->as(function () {
|
||||||
$payInfo = $this->getPayInfo();
|
$payInfo = $this->getPayInfo();
|
||||||
return $payInfo['bank']['bank_name']??'';
|
return $payInfo['bank']['bank_name'] ?? '';
|
||||||
});
|
});
|
||||||
$show->field('bank_bank_number', '银行-卡号')->as(function () {
|
$show->field('bank_bank_number', '银行-卡号')->as(function () {
|
||||||
$payInfo = $this->getPayInfo();
|
$payInfo = $this->getPayInfo();
|
||||||
return $payInfo['bank']['bank_number']??'';
|
return $payInfo['bank']['bank_number'] ?? '';
|
||||||
});
|
});
|
||||||
$show->field('bank_bank_description', '银行-开户行')->as(function () {
|
$show->field('bank_bank_description', '银行-开户行')->as(function () {
|
||||||
$payInfo = $this->getPayInfo();
|
$payInfo = $this->getPayInfo();
|
||||||
return $payInfo['bank']['bank_description']??'';
|
return $payInfo['bank']['bank_description'] ?? '';
|
||||||
});
|
});
|
||||||
$show->divider('收款信息-支付宝');
|
$show->divider('收款信息-支付宝');
|
||||||
$show->field('alipay_user_name', '支付宝-真实名称')->as(function () {
|
$show->field('alipay_user_name', '支付宝-真实名称')->as(function () {
|
||||||
$payInfo = $this->getPayInfo();
|
$payInfo = $this->getPayInfo();
|
||||||
return $payInfo['alipay']['user_name']??'';
|
return $payInfo['alipay']['user_name'] ?? '';
|
||||||
});
|
});
|
||||||
$show->field('alipay_ali_name', '支付宝-账户')->as(function () {
|
$show->field('alipay_ali_name', '支付宝-账户')->as(function () {
|
||||||
$payInfo = $this->getPayInfo();
|
$payInfo = $this->getPayInfo();
|
||||||
return $payInfo['alipay']['ali_name']??'';
|
return $payInfo['alipay']['ali_name'] ?? '';
|
||||||
});
|
});
|
||||||
$show->field('alipay_image', '支付宝-收款码')->as(function () {
|
$show->field('alipay_image', '支付宝-收款码')->as(function () {
|
||||||
$payInfo = $this->getPayInfo();
|
$payInfo = $this->getPayInfo();
|
||||||
return $payInfo['alipay']['image']??'';
|
return $payInfo['alipay']['image'] ?? '';
|
||||||
})->image();
|
})->image();
|
||||||
$show->divider('收款信息-微信');
|
$show->divider('收款信息-微信');
|
||||||
$show->field('wechat_user_name', '微信-真实名称')->as(function () {
|
$show->field('wechat_user_name', '微信-真实名称')->as(function () {
|
||||||
$payInfo = $this->getPayInfo();
|
$payInfo = $this->getPayInfo();
|
||||||
return $payInfo['wechat']['user_name']??'';
|
return $payInfo['wechat']['user_name'] ?? '';
|
||||||
});
|
});
|
||||||
$show->field('wechat_wechat_name', '微信-ID')->as(function () {
|
$show->field('wechat_wechat_name', '微信-ID')->as(function () {
|
||||||
$payInfo = $this->getPayInfo();
|
$payInfo = $this->getPayInfo();
|
||||||
return $payInfo['wechat']['wechat_name']??'';
|
return $payInfo['wechat']['wechat_name'] ?? '';
|
||||||
});
|
});
|
||||||
$show->field('wechat_image', '微信-收款码')->as(function () {
|
$show->field('wechat_image', '微信-收款码')->as(function () {
|
||||||
$payInfo = $this->getPayInfo();
|
$payInfo = $this->getPayInfo();
|
||||||
return $payInfo['wechat']['image']??'';
|
return $payInfo['wechat']['image'] ?? '';
|
||||||
})->image();
|
})->image();
|
||||||
$show->field('created_at');
|
$show->field('created_at');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue