|
|
@@ -71,35 +71,35 @@ class BalanceAuditList extends \common\libs\dataList\DataList implements DataLis
|
|
|
'ID' => null, // 这种传输方式主要是用于索引,因为过滤后的字段可能没有这种ID,但是一些功能的操作还需要用这种ID去关联,例如前台会员列表中的勾选批量状态管理,这里需要的就是USER_ID
|
|
|
'AUDIT_STATUS' => null,
|
|
|
'USER_NAME' => [
|
|
|
- 'header' => 'Member Code', // 会员编号
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListUserName'), // 会员编号
|
|
|
'headerOther' => ['width' => '150'],
|
|
|
],
|
|
|
'REAL_NAME' => [
|
|
|
- 'header' => 'Member name', //会员姓名
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListRealName'), //会员姓名
|
|
|
'headerOther' => [
|
|
|
'width' => '120',
|
|
|
],
|
|
|
],
|
|
|
'LAST_DEC_LV_NAME' => [
|
|
|
- 'header' => 'Member level', // 会员级别
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListMemberLevel'), // 会员级别
|
|
|
'headerOther' => [
|
|
|
'width' => '110',
|
|
|
],
|
|
|
],
|
|
|
'LAST_DEC_ROLE_NAME' => [
|
|
|
- 'header' => 'Stockist level', // 报单中心级别
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListStockistLevel'), // 报单中心级别
|
|
|
'headerOther' => [
|
|
|
'width' => '170',
|
|
|
],
|
|
|
],
|
|
|
'LAST_EMP_LV_NAME' => [
|
|
|
- 'header' => 'Rank',//聘级
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListEmpLevel'),//聘级
|
|
|
'headerOther' => [
|
|
|
'width' => '130',
|
|
|
],
|
|
|
],
|
|
|
'TYPE_NAME' => [
|
|
|
- 'header' => 'Account type', // 账户类型
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListTypeName'), // 账户类型
|
|
|
'headerOther' => [
|
|
|
'width' => '140',
|
|
|
],
|
|
|
@@ -110,7 +110,7 @@ class BalanceAuditList extends \common\libs\dataList\DataList implements DataLis
|
|
|
},
|
|
|
],
|
|
|
'DEAL_TYPE_NAME' => [
|
|
|
- 'header' => 'Transaction type', // 交易类型
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListDealType'), // 交易类型
|
|
|
'headerOther' => [
|
|
|
'width' => '200',
|
|
|
],
|
|
|
@@ -121,7 +121,7 @@ class BalanceAuditList extends \common\libs\dataList\DataList implements DataLis
|
|
|
},
|
|
|
],
|
|
|
'AMOUNT' => [
|
|
|
- 'header' => 'Adjustment amount', // 调整金额
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListAmount'), // 调整金额
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
@@ -135,13 +135,13 @@ class BalanceAuditList extends \common\libs\dataList\DataList implements DataLis
|
|
|
},
|
|
|
],
|
|
|
'CREATE_REMARK' => [
|
|
|
- 'header' => 'Remark', // 备注
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListRemark'), // 备注
|
|
|
'headerOther' => [
|
|
|
'width' => '180',
|
|
|
],
|
|
|
],
|
|
|
'REMARK_IS_SHOW' => [
|
|
|
- 'header' => 'Whether The Front Desk Displays Comments', // 前台是否显示备注
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListRemarkIsShow'), // 前台是否显示备注
|
|
|
'value' => function ($row) {
|
|
|
return (new YesNo([
|
|
|
'value' => $row['REMARK_IS_SHOW'],
|
|
|
@@ -152,7 +152,7 @@ class BalanceAuditList extends \common\libs\dataList\DataList implements DataLis
|
|
|
],
|
|
|
],
|
|
|
'AUDIT_STATUS_NAME' => [
|
|
|
- 'header' => 'Audit status', // 审核状态
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListAuditStatusName'), // 审核状态
|
|
|
'headerOther' => [
|
|
|
'width' => '100',
|
|
|
],
|
|
|
@@ -163,13 +163,13 @@ class BalanceAuditList extends \common\libs\dataList\DataList implements DataLis
|
|
|
},
|
|
|
],
|
|
|
'CREATE_ADMIN_NAME' => [
|
|
|
- 'header' => 'applicant', // 申请人
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListApplicant'), // 申请人
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
],
|
|
|
'CREATED_AT' => [
|
|
|
- 'header' => 'Application time', // 申请时间
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListCreatedAt'), // 申请时间
|
|
|
'value' => function ($row) {
|
|
|
return (new DateTime([
|
|
|
'value' => $row['CREATED_AT'],
|
|
|
@@ -178,13 +178,13 @@ class BalanceAuditList extends \common\libs\dataList\DataList implements DataLis
|
|
|
'headerOther' => ['width' => '190'],
|
|
|
],
|
|
|
'AUDIT_ADMIN_NAME' => [
|
|
|
- 'header' => 'Reviewed by', // 审核人
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListAuditName'), // 审核人
|
|
|
'headerOther' => [
|
|
|
'width' => '150',
|
|
|
],
|
|
|
],
|
|
|
'AUDITED_AT' => [
|
|
|
- 'header' => 'Audit time', // 审核时间
|
|
|
+ 'header' => Yii::t('ctx', 'modelListFinanceBalanceAuditListAuditTime'), // 审核时间
|
|
|
'value' => function ($row) {
|
|
|
return (new DateTime([
|
|
|
'value' => $row['AUDITED_AT'],
|
|
|
@@ -204,20 +204,20 @@ class BalanceAuditList extends \common\libs\dataList\DataList implements DataLis
|
|
|
public function getFilterTypes() {
|
|
|
if (!$this->filterTypes) {
|
|
|
$this->filterTypes = [
|
|
|
- 'USER_NAME' => ['isUserTable' => false, 'name' => 'Member code'], //会员编号
|
|
|
- 'REAL_NAME' => ['isUserTable' => false, 'name' => 'Member name'], //会员姓名
|
|
|
- 'LAST_DEC_LV_NAME' => ['isUserTable' => false, 'name' => 'Member level', 'other' => 'decLevel'], // 会员级别
|
|
|
- 'LAST_DEC_ROLE_NAME' => ['isUserTable' => false, 'name' => 'Stockist level', 'other' => 'decRole'], // 报单中心级别
|
|
|
- 'LAST_EMP_LV_NAME' => ['isUserTable' => false, 'name' => 'rank', 'other' => 'empLevel'], // 聘级
|
|
|
- 'TYPE_NAME' => ['isUserTable' => false, 'name' => 'Account type', 'other' => 'select', 'selectData' => Tool::formatFilter(BalanceAudit::TYPE, 'name', 'label')], // 账户类型
|
|
|
- 'DEAL_TYPE_NAME' => ['isUserTable' => false, 'name' => 'Transaction type', 'other' => 'select', 'selectData' => Tool::formatFilter(DealType::getAllTypesForShow(), 'ID', 'TYPE_NAME')], // 交易类型
|
|
|
- 'AMOUNT' => ['isUserTable' => false, 'name' => 'Adjustment amount'], // 调整金额
|
|
|
- 'CREATE_REMARK' => ['isUserTable' => false, 'name' => 'Remark'], // 备注
|
|
|
- 'REMARK_IS_SHOW' => ['isUserTable' => false, 'name' => 'Whether the front desk displays comments', 'other' => 'yesOrNo'], // 前台是否显示备注
|
|
|
- 'CREATE_ADMIN_NAME' => ['isUserTable' => false, 'name' => 'applicant'], // 申请人
|
|
|
- 'CREATED_AT' => ['isUserTable' => false, 'name' => 'Application time', 'other' => 'date'], // 申请时间
|
|
|
- 'AUDIT_ADMIN_NAME' => ['isUserTable' => false, 'name' => 'Reviewed by'], // 审核人
|
|
|
- 'AUDITED_AT' => ['isUserTable' => false, 'name' => 'Audit time', 'other' => 'date'], // 审核时间
|
|
|
+ 'USER_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListUserName')], //会员编号
|
|
|
+ 'REAL_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'memberName')], //会员姓名
|
|
|
+ 'LAST_DEC_LV_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListMemberLevel'), 'other' => 'decLevel'], // 会员级别
|
|
|
+ 'LAST_DEC_ROLE_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListStockistLevel'), 'other' => 'decRole'], // 报单中心级别
|
|
|
+ 'LAST_EMP_LV_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListEmpLevel'), 'other' => 'empLevel'], // 聘级
|
|
|
+ 'TYPE_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListTypeName'), 'other' => 'select', 'selectData' => Tool::formatFilter(BalanceAudit::TYPE, 'name', 'label')], // 账户类型
|
|
|
+ 'DEAL_TYPE_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListDealType'), 'other' => 'select', 'selectData' => Tool::formatFilter(DealType::getAllTypesForShow(), 'ID', 'TYPE_NAME')], // 交易类型
|
|
|
+ 'AMOUNT' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListAmount')], // 调整金额
|
|
|
+ 'CREATE_REMARK' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListRemark')], // 备注
|
|
|
+ 'REMARK_IS_SHOW' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListRemarkIsShow'), 'other' => 'yesOrNo'], // 前台是否显示备注
|
|
|
+ 'CREATE_ADMIN_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListApplicant')], // 申请人
|
|
|
+ 'CREATED_AT' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListCreatedAt'), 'other' => 'date'], // 申请时间
|
|
|
+ 'AUDIT_ADMIN_NAME' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListAuditName')], // 审核人
|
|
|
+ 'AUDITED_AT' => ['isUserTable' => false, 'name' => Yii::t('ctx', 'modelListFinanceBalanceAuditListAuditTime'), 'other' => 'date'], // 审核时间
|
|
|
];
|
|
|
}
|
|
|
return $this->filterTypes;
|