|
@@ -59,7 +59,7 @@ class TransferList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
$this->columns = [
|
|
$this->columns = [
|
|
|
'ID' => null, // 这种传输方式主要是用于索引,因为过滤后的字段可能没有这种ID,但是一些功能的操作还需要用这种ID去关联,例如前台会员列表中的勾选批量状态管理,这里需要的就是USER_ID
|
|
'ID' => null, // 这种传输方式主要是用于索引,因为过滤后的字段可能没有这种ID,但是一些功能的操作还需要用这种ID去关联,例如前台会员列表中的勾选批量状态管理,这里需要的就是USER_ID
|
|
|
'TRANSFER_SN' => [
|
|
'TRANSFER_SN' => [
|
|
|
- 'header' => 'Transfer record serial number', // 转账记录流水号
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListTransferSn'), // 转账记录流水号
|
|
|
'headerOther' => [
|
|
'headerOther' => [
|
|
|
'width' => '250',
|
|
'width' => '250',
|
|
|
],
|
|
],
|
|
@@ -70,23 +70,23 @@ class TransferList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
'LAST_OUT_USER_NAME' => [
|
|
'LAST_OUT_USER_NAME' => [
|
|
|
- 'header' => 'Transfer out Member No', // 转出会员编号
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListLastOutUserName'), // 转出会员编号
|
|
|
'headerOther' => ['width' => '150'],
|
|
'headerOther' => ['width' => '150'],
|
|
|
],
|
|
],
|
|
|
'LAST_OUT_REAL_NAME' => [
|
|
'LAST_OUT_REAL_NAME' => [
|
|
|
- 'header' => 'Name of transfer out member', // 转出会员姓名
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListLastOutRealName'), // 转出会员姓名
|
|
|
'headerOther' => [
|
|
'headerOther' => [
|
|
|
'width' => '120',
|
|
'width' => '120',
|
|
|
],
|
|
],
|
|
|
],
|
|
],
|
|
|
'LAST_OUT_DEC_LV_NAME' => [
|
|
'LAST_OUT_DEC_LV_NAME' => [
|
|
|
- 'header' => '转出主体会员级别',
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListLastOutDecLvName'), // 转出主体会员级别
|
|
|
'headerOther' => [
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
'width' => '150',
|
|
|
],
|
|
],
|
|
|
],
|
|
],
|
|
|
'OUT_WALLET' => [
|
|
'OUT_WALLET' => [
|
|
|
- 'header' => '转出账户',
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListOutWallet'), //转出账户
|
|
|
'value' => function ($row) {
|
|
'value' => function ($row) {
|
|
|
return Transfer::WALLET_NAME[$row['OUT_WALLET']];
|
|
return Transfer::WALLET_NAME[$row['OUT_WALLET']];
|
|
|
},
|
|
},
|
|
@@ -95,23 +95,23 @@ class TransferList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
],
|
|
],
|
|
|
],
|
|
],
|
|
|
'LAST_IN_USER_NAME' => [
|
|
'LAST_IN_USER_NAME' => [
|
|
|
- 'header' => '转入会员编号',
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListLastInUserName'), // 转入会员编号
|
|
|
'headerOther' => ['width' => '150'],
|
|
'headerOther' => ['width' => '150'],
|
|
|
],
|
|
],
|
|
|
'LAST_IN_REAL_NAME' => [
|
|
'LAST_IN_REAL_NAME' => [
|
|
|
- 'header' => '转入会员姓名',
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListLastInRealName'), // 转入会员姓名
|
|
|
'headerOther' => [
|
|
'headerOther' => [
|
|
|
'width' => '120',
|
|
'width' => '120',
|
|
|
],
|
|
],
|
|
|
],
|
|
],
|
|
|
'LAST_IN_DEC_LV_NAME' => [
|
|
'LAST_IN_DEC_LV_NAME' => [
|
|
|
- 'header' => '转入主体级别',
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListLastInDecLvName'),//转入主体级别
|
|
|
'headerOther' => [
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
'width' => '150',
|
|
|
],
|
|
],
|
|
|
],
|
|
],
|
|
|
'IN_WALLET' => [
|
|
'IN_WALLET' => [
|
|
|
- 'header' => '转入账户',
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListInWallet'),//转入账户
|
|
|
'value' => function ($row) {
|
|
'value' => function ($row) {
|
|
|
return Transfer::WALLET_NAME[$row['IN_WALLET']];
|
|
return Transfer::WALLET_NAME[$row['IN_WALLET']];
|
|
|
},
|
|
},
|
|
@@ -120,7 +120,7 @@ class TransferList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
],
|
|
],
|
|
|
],
|
|
],
|
|
|
'ORI_AMOUNT' => [
|
|
'ORI_AMOUNT' => [
|
|
|
- 'header' => '转账金额',
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListOriAmount'),//转账金额
|
|
|
'value' => function ($row) {
|
|
'value' => function ($row) {
|
|
|
return Tool::formatPrice($row['ORI_AMOUNT']);
|
|
return Tool::formatPrice($row['ORI_AMOUNT']);
|
|
|
},
|
|
},
|
|
@@ -129,7 +129,7 @@ class TransferList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
],
|
|
],
|
|
|
],
|
|
],
|
|
|
'FEE' => [
|
|
'FEE' => [
|
|
|
- 'header' => '手续费',
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListFee'),//手续费
|
|
|
'value' => function ($row) {
|
|
'value' => function ($row) {
|
|
|
return Tool::formatPrice($row['FEE']);
|
|
return Tool::formatPrice($row['FEE']);
|
|
|
},
|
|
},
|
|
@@ -138,7 +138,7 @@ class TransferList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
],
|
|
],
|
|
|
],
|
|
],
|
|
|
'AMOUNT' => [
|
|
'AMOUNT' => [
|
|
|
- 'header' => '实际转入金额',
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListAmount'),//实际转入金额
|
|
|
'value' => function ($row) {
|
|
'value' => function ($row) {
|
|
|
return Tool::formatPrice($row['AMOUNT']);
|
|
return Tool::formatPrice($row['AMOUNT']);
|
|
|
},
|
|
},
|
|
@@ -152,7 +152,7 @@ class TransferList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
'CREATED_AT' => [
|
|
'CREATED_AT' => [
|
|
|
- 'header' => '转账时间',
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListCreatedAt'),//转账时间
|
|
|
'value' => function ($row) {
|
|
'value' => function ($row) {
|
|
|
return (new DateTime([
|
|
return (new DateTime([
|
|
|
'value' => $row['CREATED_AT'],
|
|
'value' => $row['CREATED_AT'],
|
|
@@ -161,13 +161,13 @@ class TransferList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
'headerOther' => ['width' => '190'],
|
|
'headerOther' => ['width' => '190'],
|
|
|
],
|
|
],
|
|
|
'PERIOD_NUM' => [
|
|
'PERIOD_NUM' => [
|
|
|
- 'header' => '转账期数',
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceTranserListPeriodNum'),//转账期数
|
|
|
'headerOther' => [
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
'width' => '150',
|
|
|
],
|
|
],
|
|
|
],
|
|
],
|
|
|
'REMARK' => [
|
|
'REMARK' => [
|
|
|
- 'header' => '备注',
|
|
|
|
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListRemark'), // 备注
|
|
|
'headerOther' => [
|
|
'headerOther' => [
|
|
|
'width' => '200',
|
|
'width' => '200',
|
|
|
],
|
|
],
|
|
@@ -184,21 +184,21 @@ class TransferList extends \common\libs\dataList\DataList implements DataListInt
|
|
|
public function getFilterTypes() {
|
|
public function getFilterTypes() {
|
|
|
if (!$this->filterTypes) {
|
|
if (!$this->filterTypes) {
|
|
|
$this->filterTypes = [
|
|
$this->filterTypes = [
|
|
|
- 'TRANSFER_SN' => ['isUserTable' => false, 'name' => '转账记录流水号'],
|
|
|
|
|
- 'LAST_OUT_USER_NAME' => ['isUserTable' => false, 'name' => '转出会员编号'],
|
|
|
|
|
- 'LAST_OUT_REAL_NAME' => ['isUserTable' => false, 'name' => '转出会员姓名'],
|
|
|
|
|
- 'LAST_OUT_DEC_LV_NAME' => ['isUserTable' => false, 'name' => '转出主体会员级别', 'other' => 'decLevel'],
|
|
|
|
|
- 'OUT_WALLET' => ['isUserTable' => false, 'name' => '转出账户', 'other' => 'select', 'selectData' => [['id' => 'bonus', 'name' => '会员账户'], ['id' => 'cash', 'name' => '现金钱包']]],
|
|
|
|
|
- 'LAST_IN_USER_NAME' => ['isUserTable' => false, 'name' => '转入会员编号'],
|
|
|
|
|
- 'LAST_IN_REAL_NAME' => ['isUserTable' => false, 'name' => '转入会员姓名'],
|
|
|
|
|
- 'LAST_IN_DEC_LV_NAME' => ['isUserTable' => false, 'name' => '转入主体级别', 'other' => 'decLevel'],
|
|
|
|
|
- 'IN_WALLET' => ['isUserTable' => false, 'name' => '转入账户', 'other' => 'select', 'selectData' => [['id' => 'bonus', 'name' => '会员账户'], ['id' => 'cash', 'name' => '现金钱包']]],
|
|
|
|
|
- 'ORI_AMOUNT' => ['isUserTable' => false, 'name' => '转账金额'],
|
|
|
|
|
- 'FEE' => ['isUserTable' => false, 'name' => '手续费'],
|
|
|
|
|
- 'AMOUNT' => ['isUserTable' => false, 'name' => '实际转入金额'],
|
|
|
|
|
- 'CREATED_AT' => ['isUserTable' => false, 'name' => '转账时间', 'other' => 'date'],
|
|
|
|
|
- 'PERIOD_NUM' => ['isUserTable' => false, 'name' => '转账期数'],
|
|
|
|
|
- 'REMARK' => ['isUserTable' => false, 'name' => '备注'],
|
|
|
|
|
|
|
+ 'TRANSFER_SN' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListTransferSn')],
|
|
|
|
|
+ 'LAST_OUT_USER_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListLastOutUserName')],
|
|
|
|
|
+ 'LAST_OUT_REAL_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListLastOutRealName')],
|
|
|
|
|
+ 'LAST_OUT_DEC_LV_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListLastOutDecLvName'), 'other' => 'decLevel'],
|
|
|
|
|
+ 'OUT_WALLET' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListOutWallet'), 'other' => 'select', 'selectData' => [['id' => 'bonus', 'name' => '会员账户'], ['id' => 'cash', 'name' => '现金钱包']]],
|
|
|
|
|
+ 'LAST_IN_USER_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListLastInUserName')],
|
|
|
|
|
+ 'LAST_IN_REAL_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListLastInRealName')],
|
|
|
|
|
+ 'LAST_IN_DEC_LV_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListLastInDecLvName'), 'other' => 'decLevel'],
|
|
|
|
|
+ 'IN_WALLET' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListInWallet'), 'other' => 'select', 'selectData' => [['id' => 'bonus', 'name' => '会员账户'], ['id' => 'cash', 'name' => '现金钱包']]],
|
|
|
|
|
+ 'ORI_AMOUNT' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListOriAmount')],
|
|
|
|
|
+ 'FEE' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListFee')],
|
|
|
|
|
+ 'AMOUNT' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListAmount')],
|
|
|
|
|
+ 'CREATED_AT' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListCreatedAt'), 'other' => 'date'],
|
|
|
|
|
+ 'PERIOD_NUM' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceTranserListPeriodNum')],
|
|
|
|
|
+ 'REMARK' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListRemark')],
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
return $this->filterTypes;
|
|
return $this->filterTypes;
|