|
|
@@ -47,7 +47,7 @@ class RechargeList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
$this->columns = [
|
|
|
'ID' => null, // 这种传输方式主要是用于索引,因为过滤后的字段可能没有这种ID,但是一些功能的操作还需要用这种ID去关联,例如前台会员列表中的勾选批量状态管理,这里需要的就是USER_ID
|
|
|
'SN' => [
|
|
|
- 'header' => 'SN', // 充值申请流水号
|
|
|
+ 'header' => \Yii::t('ctx', 'modelsListsFinanceRechargeListgetColumnSn'), // 充值申请流水号
|
|
|
'headerOther' => [
|
|
|
'width' => '250',
|
|
|
],
|
|
|
@@ -58,20 +58,20 @@ class RechargeList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
},
|
|
|
],
|
|
|
'USER_NAME' => [
|
|
|
- 'header' => 'Member code', // 会员编号
|
|
|
+ 'header' => \Yii::t('ctx', 'modelListFinanceBalanceAuditListUserName'), // 会员编号
|
|
|
'headerOther' => ['width' => '150'],
|
|
|
],
|
|
|
'OPEN_BANK_NAME' => [
|
|
|
- 'header' => 'Bank', // 汇款银行
|
|
|
+ 'header' => \Yii::t('ctx', 'modelsListsFinanceRechargeListgetColumnBank'), // 汇款银行
|
|
|
'headerOther' => ['width' => '150'],
|
|
|
],
|
|
|
'BANK_NO' => [
|
|
|
- 'header' => 'Bank account', // 汇款账号
|
|
|
+ 'header' => \Yii::t('ctx', 'modelsListsFinanceRechargeListgetColumnBankNo'), // 汇款账号
|
|
|
'headerOther' => ['width' => '150'],
|
|
|
],
|
|
|
'BANK_PROVE' => null,
|
|
|
'AUDIT_STATUS' => [
|
|
|
- 'header' => 'Audit Status', // 审核状态
|
|
|
+ 'header' => \Yii::t('ctx', 'modelsListsFinanceRechargeListgetColumnAuditStatus'), // 审核状态
|
|
|
'value' => function ($row) {
|
|
|
return Recharge::STATUS_NAME[$row['AUDIT_STATUS']];
|
|
|
},
|
|
|
@@ -80,7 +80,7 @@ class RechargeList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
],
|
|
|
],
|
|
|
'AMOUNT' => [
|
|
|
- 'header' => 'Recharge amount', // 充值金额
|
|
|
+ 'header' => \Yii::t('ctx', 'modelsListsFinanceRechargeListgetColumnAmount'), // 充值金额
|
|
|
'value' => function ($row) {
|
|
|
return Tool::formatPrice($row['AMOUNT']);
|
|
|
},
|
|
|
@@ -94,7 +94,7 @@ class RechargeList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
},
|
|
|
],
|
|
|
'CREATED_AT' => [
|
|
|
- 'header' => 'Apply time', // 申请时间
|
|
|
+ 'header' => \Yii::t('ctx', 'modelsListsFinanceRechargeListgetColumnCreatedAt'), // 申请时间
|
|
|
'value' => function ($row) {
|
|
|
return (new DateTime([
|
|
|
'value' => $row['CREATED_AT'],
|
|
|
@@ -103,7 +103,7 @@ class RechargeList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
'headerOther' => ['width' => '190'],
|
|
|
],
|
|
|
'REMARK' => [
|
|
|
- 'header' => 'Remark', // 备注
|
|
|
+ 'header' => \Yii::t('ctx', 'modelsListsFinanceRechargeListgetColumnRemark'), // 备注
|
|
|
'headerOther' => [
|
|
|
'width' => '200',
|
|
|
],
|
|
|
@@ -120,13 +120,23 @@ class RechargeList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
public function getFilterTypes() {
|
|
|
if (!$this->filterTypes) {
|
|
|
$this->filterTypes = [
|
|
|
- 'SN' => ['isUserTable' => false, 'name' => 'Recharge record serial number'],// 充值记录流水号
|
|
|
- 'USER_NAME' => ['isUserTable' => false, 'name' => 'Member code'], // 会员编号
|
|
|
- 'AUDIT_STATUS' => ['isUserTable' => false, 'name' => 'Audit status', 'other' => 'select', 'selectData' => [['id' =>0, 'name' => 'To be reviewed'], ['id' => 1, 'name' => 'Voucher uploaded'], ['id' => 2, 'name' => 'Audited']]], // 审核状态 待审核 已上传凭证 已审核
|
|
|
- 'RECHARGE_STATUS' => ['isUserTable' => false, 'name' => 'Recharge State', 'other' => 'select', 'selectData' => [['id' =>0, 'name' => 'New'], ['id' => 1, 'name' => 'Processing'], ['id' => 2, 'name' => 'Success']]], // 充值状态
|
|
|
- 'BANK_NO' => ['isUserTable' => false, 'name' => 'Bank account'],// 汇款账号
|
|
|
- 'AMOUNT' => ['isUserTable' => false, 'name' => 'Recharge amount'],// 充值金额
|
|
|
- 'CREATED_AT' => ['isUserTable' => false, 'name' => 'Apply time', 'other' => 'date'],// 申请时间
|
|
|
+ 'SN' => ['isUserTable' => false, 'name' => \Yii::t('ctx', 'rechargeRecordSerialNumber')],// 充值记录流水号
|
|
|
+ 'USER_NAME' => ['isUserTable' => false, 'name' => \Yii::t('ctx', 'modelListFinanceBalanceAuditListUserName')], // 会员编号modelListFinanceBalanceAuditListUserName
|
|
|
+ 'AUDIT_STATUS' => ['isUserTable' => false, 'name' => \Yii::t('ctx', 'modelListFinanceBalanceAuditListAuditStatusName'), 'other' => 'select', 'selectData' => [
|
|
|
+ ['id' =>0, 'name' => \Yii::t('ctx', 'rechargeAuditStatusToBeReviewed')],
|
|
|
+ ['id' => 1, 'name' => \Yii::t('ctx', 'rechargeAuditStatusVoucherUploaded')],
|
|
|
+ ['id' => 2, 'name' => \Yii::t('ctx', 'rechargeAuditStatusAudited')]
|
|
|
+ ]
|
|
|
+ ], // 审核状态 待审核 已上传凭证 已审核
|
|
|
+ 'RECHARGE_STATUS' => ['isUserTable' => false, 'name' => \Yii::t('ctx', 'rechargeRechargeState'), 'other' => 'select', 'selectData' => [
|
|
|
+ ['id' =>0, 'name' => \Yii::t('ctx', 'rechargeRechargeStateNew')],
|
|
|
+ ['id' => 1, 'name' => \Yii::t('ctx', 'rechargeRechargeStateProcessing')],
|
|
|
+ ['id' => 2, 'name' => \Yii::t('ctx', 'rechargeRechargeStateSuccess')]
|
|
|
+ ]
|
|
|
+ ], // 充值状态
|
|
|
+ 'BANK_NO' => ['isUserTable' => false, 'name' => \Yii::t('ctx', 'modelsListsFinanceRechargeListgetColumnBankNo')],// 汇款账号
|
|
|
+ 'AMOUNT' => ['isUserTable' => false, 'name' => \Yii::t('ctx', 'modelsListsFinanceRechargeListgetColumnAmount')],// 充值金额
|
|
|
+ 'CREATED_AT' => ['isUserTable' => false, 'name' => \Yii::t('ctx', 'modelsListsFinanceRechargeListgetColumnCreatedAt'), 'other' => 'date'],// 申请时间
|
|
|
];
|
|
|
}
|
|
|
return $this->filterTypes;
|