Quellcode durchsuchen

财务管理翻译

root vor 2 Jahren
Ursprung
Commit
9464dcd398

+ 5 - 5
backendApi/config/menu.php

@@ -351,11 +351,11 @@ return [
             //['name'=>'发票调整管理', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'invoice-balance-audit', 'routePath'=>'finance/invoice-balance-audit', 'show'=>1,],
             //['name'=>'发票调整管理', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'invoice-balance-audit', 'routePath'=>'finance/invoice-balance-audit', 'show'=>1,],
             //['name'=>'发票调整添加', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'invoice-balance-audit-add', 'routePath'=>'finance/invoice-balance-audit-add', 'show'=>0,],
             //['name'=>'发票调整添加', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'invoice-balance-audit-add', 'routePath'=>'finance/invoice-balance-audit-add', 'show'=>0,],
             ['name'=>'提现导出', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'withdraw-export', 'routePath'=>'finance/withdraw-export', 'show'=>0,],
             ['name'=>'提现导出', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'withdraw-export', 'routePath'=>'finance/withdraw-export', 'show'=>0,],
-            ['name'=>'交易类型管理', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'deal-type', 'routePath'=>'finance/deal-type', 'show'=>1, 'wiki' => 'dealTypeManagement'],
-            ['name'=>'交易类型添加', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'deal-type-add', 'routePath'=>'finance/deal-type-add', 'show'=>0,],
-            ['name'=>'交易类型修改', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'deal-type-edit', 'routePath'=>'finance/deal-type-edit', 'show'=>0,],
-            ['name'=>'Historical bonus balance', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'history-bonus', 'routePath'=>'finance/history-bonus', 'show'=>1, 'wiki' => 'historicalBonusBalance'],// 历史奖金余额
-            ['name'=>'历史奖金余额导出', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'history-bonus-export', 'routePath'=>'finance/history-bonus-export', 'show'=>0,],
+            // ['name'=>'交易类型管理', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'deal-type', 'routePath'=>'finance/deal-type', 'show'=>1, 'wiki' => 'dealTypeManagement'],
+            // ['name'=>'交易类型添加', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'deal-type-add', 'routePath'=>'finance/deal-type-add', 'show'=>0,],
+            // ['name'=>'交易类型修改', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'deal-type-edit', 'routePath'=>'finance/deal-type-edit', 'show'=>0,],
+            // ['name'=>'Historical bonus balance', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'history-bonus', 'routePath'=>'finance/history-bonus', 'show'=>1, 'wiki' => 'historicalBonusBalance'],// 历史奖金余额
+            // ['name'=>'历史奖金余额导出', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'history-bonus-export', 'routePath'=>'finance/history-bonus-export', 'show'=>0,],
             ['name'=>'Recharge management', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'recharge', 'routePath'=>'finance/recharge', 'show'=>1, 'wiki' => 'rechargeManagement'], // 充值管理
             ['name'=>'Recharge management', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'recharge', 'routePath'=>'finance/recharge', 'show'=>1, 'wiki' => 'rechargeManagement'], // 充值管理
             ['name'=>'充值导出', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'recharge-export', 'routePath'=>'finance/recharge-export', 'show'=>0,],
             ['name'=>'充值导出', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'recharge-export', 'routePath'=>'finance/recharge-export', 'show'=>0,],
             //['name'=>'充值管理-充值待审核', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'recharge-0', 'routePath'=>'finance/recharge-0', 'show'=>0,],
             //['name'=>'充值管理-充值待审核', 'class'=>'', 'icon'=>'', 'controller'=>'finance', 'action'=>'recharge-0', 'routePath'=>'finance/recharge-0', 'show'=>0,],

+ 1 - 1
backendApi/modules/v1/controllers/FinanceController.php

@@ -307,7 +307,7 @@ class FinanceController extends BaseController {
             'REMARK' => 'REMARK',
             'REMARK' => 'REMARK',
         ]);
         ]);
         $form = new FinanceExportForm();
         $form = new FinanceExportForm();
-        $result = $form->run($filter, 'Transfer_List'); // 转账列表
+        $result = $form->run($filter, Yii::t('ctx', 'financeControllerTransferListExport')); // 转账列表
         if (!$result) {
         if (!$result) {
             return static::notice(Form::formatErrorsForApi($form->getErrors()), 400);
             return static::notice(Form::formatErrorsForApi($form->getErrors()), 400);
         }
         }

+ 29 - 29
backendApi/modules/v1/models/lists/finance/BalanceAuditList.php

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

+ 30 - 30
backendApi/modules/v1/models/lists/finance/TransferList.php

@@ -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;

+ 20 - 20
backendApi/modules/v1/models/lists/finance/WithdrawList.php

@@ -49,7 +49,7 @@ class WithdrawList extends \common\libs\dataList\DataList implements DataListInt
             $this->columns = [
             $this->columns = [
                 'ID' => null,
                 'ID' => null,
                 'SN' => [
                 'SN' => [
-                    'header' => 'Withdrawal serial number', // 提现流水号
+                    'header' => \Yii::t('ctx', 'modelListFinanceWithdrawSn'), // 提现流水号
                     'headerOther' => [
                     'headerOther' => [
                         'width' => '250',
                         'width' => '250',
                     ],
                     ],
@@ -60,11 +60,11 @@ class WithdrawList extends \common\libs\dataList\DataList implements DataListInt
                     },
                     },
                 ],
                 ],
                 'WITHDRAW_PERIOD_NUM' => [
                 'WITHDRAW_PERIOD_NUM' => [
-                    'header' => 'Period', // 提现期数
+                    'header' => \Yii::t('ctx', 'modelListFinanceWithdrawPeriod'), // 提现期数
                     'headerOther' => ['width' => '150'],
                     'headerOther' => ['width' => '150'],
                 ],
                 ],
                 'CREATED_AT' => [
                 'CREATED_AT' => [
-                    'header' => 'Withdrawal time', // 提现时间
+                    'header' => \Yii::t('ctx', 'modelListFinanceWithdrawAt'), // 提现时间
                     'value' => function ($row) {
                     'value' => function ($row) {
                         return (new DateTime([
                         return (new DateTime([
                             'value' => $row['CREATED_AT'],
                             'value' => $row['CREATED_AT'],
@@ -74,22 +74,22 @@ class WithdrawList extends \common\libs\dataList\DataList implements DataListInt
                 ],
                 ],
                 'AUDIT_STATUS' => null,
                 'AUDIT_STATUS' => null,
                 'AUDIT_STATUS_NAME' => [
                 'AUDIT_STATUS_NAME' => [
-                    'header' => 'State', // 提现状态
+                    'header' => \Yii::t('ctx', 'modelListFinanceWithdrawState'), // 提现状态
                     'headerOther' => ['width' => '150'],
                     'headerOther' => ['width' => '150'],
                     'value' => function ($row) {
                     'value' => function ($row) {
                         return Withdraw::STATUS_NAME[$row['AUDIT_STATUS']];
                         return Withdraw::STATUS_NAME[$row['AUDIT_STATUS']];
                     },
                     },
                 ],
                 ],
                 'USER_NAME' => [
                 'USER_NAME' => [
-                    'header' => 'Member code', // 会员编号
+                    'header' => \Yii::t('ctx', 'modelListFinanceBalanceAuditListUserName'), // 会员编号
                     'headerOther' => ['width' => '150'],
                     'headerOther' => ['width' => '150'],
                 ],
                 ],
                 'USER_REAL_NAME' => [
                 'USER_REAL_NAME' => [
-                    'header' => 'Member name', // 会员姓名
+                    'header' => \Yii::t('ctx', 'modelListFinanceBalanceAuditListRealName'), // 会员姓名
                     'headerOther' => ['width' => '150'],
                     'headerOther' => ['width' => '150'],
                 ],
                 ],
                 'AMOUNT' => [
                 'AMOUNT' => [
-                    'header' => 'Withdrawal amount', // 提现金额
+                    'header' => \Yii::t('ctx', 'modelListFinanceWithdrawAmount'), // 提现金额
                     'value' => function ($row) {
                     'value' => function ($row) {
                         return Tool::formatPrice($row['AMOUNT']);
                         return Tool::formatPrice($row['AMOUNT']);
                     },
                     },
@@ -103,43 +103,43 @@ class WithdrawList extends \common\libs\dataList\DataList implements DataListInt
                     },
                     },
                 ],
                 ],
                 'FEES' => [
                 'FEES' => [
-                    'header' => 'Bank charge', // 手续费
+                    'header' => \Yii::t('ctx', 'modelListFinanceWithdrawFees'), // 手续费
                     'headerOther' => ['width' => '150'],
                     'headerOther' => ['width' => '150'],
                 ],
                 ],
                 'REAL_AMOUNT' => [
                 'REAL_AMOUNT' => [
-                    'header' => 'Actual amount', // 实际到账金额
+                    'header' => \Yii::t('ctx', 'modelListFinanceWithdrawRealAmount'), // 实际到账金额
                     'headerOther' => ['width' => '150'],
                     'headerOther' => ['width' => '150'],
                 ],
                 ],
                 'OPEN_BANK' => [
                 'OPEN_BANK' => [
-                    'header' => 'Bank info',
+                    'header' => \Yii::t('ctx', 'modelListFinanceWithdrawBank'), // 提现银行
                     'headerOther' => ['width' => '150'],
                     'headerOther' => ['width' => '150'],
                     'value' => function ($row) {
                     'value' => function ($row) {
                         return $row['OPEN_BANK'] ? OpenBank::getCnName($row['OPEN_BANK']) : '';
                         return $row['OPEN_BANK'] ? OpenBank::getCnName($row['OPEN_BANK']) : '';
                     },
                     },
                 ],
                 ],
                 'BANK_NO' => [
                 'BANK_NO' => [
-                    'header' => 'Bank account',
+                    'header' => \Yii::t('ctx', 'modelListFinanceWithdrawBankNo'),//银行地区
                     'headerOther' => ['width' => '190'],
                     'headerOther' => ['width' => '190'],
                     'value' => function ($row) {
                     'value' => function ($row) {
                         return $row['BANK_NO'].' /';
                         return $row['BANK_NO'].' /';
                     },
                     },
                 ],
                 ],
                 'MOBILE' => [
                 'MOBILE' => [
-                    'header' => 'Phone Number', // 手机号
+                    'header' => \Yii::t('ctx', 'modelListFinanceWithdrawMobile'), // 手机号
                     'headerOther' => ['width' => '150'],
                     'headerOther' => ['width' => '150'],
                 ],
                 ],
                 'UPDATE_ADMIN_NAME' => [
                 'UPDATE_ADMIN_NAME' => [
-                    'header' => 'Operations administrator', // 操作管理员
+                    'header' => \Yii::t('ctx', 'modelListFinanceWithdrawUpdateAdminName'), // 操作管理员
                     'headerOther' => ['width' => '200'],
                     'headerOther' => ['width' => '200'],
                 ],
                 ],
                 'REMARK' => [
                 'REMARK' => [
-                    'header' => 'Remark', // 备注
+                    'header' => \Yii::t('ctx', 'modelListFinanceBalanceAuditListRemark'), // 备注
                     'headerOther' => [
                     'headerOther' => [
                         'width' => '200',
                         'width' => '200',
                     ],
                     ],
                 ],
                 ],
                 'BACK_REMARK' => [
                 'BACK_REMARK' => [
-                    'header' => 'Return note', // 退回备注
+                    'header' => \Yii::t('ctx', 'modelListFinanceWithdrawBackRemark'), // 退回备注
                     'headerOther' => [
                     'headerOther' => [
                         'width' => '200',
                         'width' => '200',
                     ],
                     ],
@@ -156,11 +156,11 @@ class WithdrawList extends \common\libs\dataList\DataList implements DataListInt
     public function getFilterTypes() {
     public function getFilterTypes() {
         if (!$this->filterTypes) {
         if (!$this->filterTypes) {
             $this->filterTypes = [
             $this->filterTypes = [
-                'SN' => ['isUserTable' => false, 'name' => 'Withdrawal serial number'], // 提现流水号
-                'USER_NAME' => ['isUserTable' => false, 'name' => 'Member code'], // 会员编号
-                'WITHDRAW_PERIOD_NUM' => ['isUserTable' => false, 'name' => 'Period'], // 提现期数
-                'CREATED_AT' => ['isUserTable' => false, 'name' => 'Withdrawal time', 'other' => 'date'],  // 申请时间
-                'REAL_AMOUNT' => ['isUserTable' => false, 'name' => 'Actual Amount']
+                'SN' => ['isUserTable' => false, 'name' => \Yii::t('ctx', 'modelListFinanceWithdrawSn')], // 提现流水号
+                'USER_NAME' => ['isUserTable' => false, 'name' => \Yii::t('ctx', 'modelListFinanceBalanceAuditListUserName')], // 会员编号
+                'WITHDRAW_PERIOD_NUM' => ['isUserTable' => false, 'name' => \Yii::t('ctx', 'modelListFinanceWithdrawPeriod')], // 提现期数
+                'CREATED_AT' => ['isUserTable' => false, 'name' => \Yii::t('ctx', 'modelListFinanceWithdrawWithdrawalTime'), 'other' => 'date'],  // 申请时间
+                'REAL_AMOUNT' => ['isUserTable' => false, 'name' => \Yii::t('ctx', 'modelListFinanceWithdrawRealAmount')] // 实际到账金额
             ];
             ];
         }
         }
         return $this->filterTypes;
         return $this->filterTypes;

+ 55 - 1
common/messages/en-US/ctx.php

@@ -30,6 +30,49 @@ return [
     'commonModelsWithdrawStatusNameStatusReturned' => 'Returned',
     'commonModelsWithdrawStatusNameStatusReturned' => 'Returned',
     'backendApiControllersFinaceRechargeStatusApprove' => 'Approve',
     'backendApiControllersFinaceRechargeStatusApprove' => 'Approve',
     'backendApiControllersFinaceRechargeStatusReject' => 'Reject',
     'backendApiControllersFinaceRechargeStatusReject' => 'Reject',
+    'modelListFinanceBalanceAuditListUserName' => 'Member Code',
+    'modelListFinanceBalanceAuditListRealName'=>'Member Name',
+    'modelListFinanceBalanceAuditListMemberLevel'=> 'Member level',
+    'modelListFinanceBalanceAuditListStockistLevel'=> 'Stockist level',
+    'modelListFinanceBalanceAuditListEmpLevel'=>'Rank',
+    'modelListFinanceBalanceAuditListTypeName'=>'Account type',
+    'modelListFinanceBalanceAuditListDealType'=>'Transaction type',
+    'modelListFinanceBalanceAuditListAmount'=>'Adjustment amount',
+    'modelListFinanceBalanceAuditListRemark'=>'Remark',
+    'modelListFinanceBalanceAuditListRemarkIsShow'=>'Whether The Front Desk Displays Comments',
+    'modelListFinanceBalanceAuditListAuditStatusName'=>'Audit status',
+    'modelListFinanceBalanceAuditListApplicant'=>'applicant',
+    'modelListFinanceBalanceAuditListCreatedAt'=>'Application time',
+    'modelListFinanceBalanceAuditListAuditName'=>'Reviewed by',
+    'modelListFinanceBalanceAuditListAuditTime'=>'Audit time',
+    'modelListFinanceTranserListTransferSn'=>'Transfer record serial number',
+    'modelListFinanceTranserListLastOutUserName'=>'Transfer out Member No',
+    'modelListFinanceTranserListLastOutRealName'=>'Name of transfer out member',
+    'modelListFinanceTranserListLastOutDecLvName'=>'转出主体会员级别',
+    'modelListFinanceTranserListOutWallet'=>'转出账户',
+    'modelListFinanceTranserListLastInUserName'=>'转入会员编号',
+    'modelListFinanceTranserListLastInRealName'=> '转入会员姓名',
+    'modelListFinanceTranserListLastInDecLvName'=>'转入主体级别',
+    'modelListFinanceTranserListInWallet'=>'转入账户',
+    'modelListFinanceTranserListOriAmount'=>'转账金额',
+    'modelListFinanceTranserListFee'=>'手续费',
+    'modelListFinanceTranserListAmount'=>'实际转入金额',
+    'modelListFinanceTranserListCreatedAt'=>'转账时间',
+    'modelListFinanceTranserListPeriodNum'=>'转账期数',
+    'financeControllerTransferListExport'=>'Transfer_List',
+    'modelListFinanceWithdrawSn'=>'Withdrawal serial number',
+    'modelListFinanceWithdrawPeriod'=>'Period',
+    'modelListFinanceWithdrawAt'=>'Withdrawal time',
+    'modelListFinanceWithdrawState'=>'State',
+    'modelListFinanceWithdrawAmount'=>'Withdrawal amount',
+    'modelListFinanceWithdrawFees' => 'Bank charge',
+    'modelListFinanceWithdrawRealAmount' => 'Actual amount',
+    'modelListFinanceWithdrawBank' => 'Bank info',
+    'modelListFinanceWithdrawBankNo' => 'Bank account',
+    'modelListFinanceWithdrawMobile' => 'Phone Number',
+    'modelListFinanceWithdrawUpdateAdminName' => 'Operations administrator',
+    'modelListFinanceWithdrawBackRemark' => 'Return note',
+    'modelListFinanceWithdrawWithdrawalTime'=>'Withdrawal time',
 
 
     'memberEcoinAdjustmentListFileName'=> 'Member_Ecoin_adjustment_list',
     'memberEcoinAdjustmentListFileName'=> 'Member_Ecoin_adjustment_list',
     'applicationChangeBalanceSucceeded'=> 'Application for change of member balance succeeded',
     'applicationChangeBalanceSucceeded'=> 'Application for change of member balance succeeded',
@@ -83,7 +126,17 @@ return [
     'amountChangeCannotZero' => 'The amount of change cannot be 0',
     'amountChangeCannotZero' => 'The amount of change cannot be 0',
     'memberUnderrepresentedRegion' => 'The member is underrepresented in that region',
     'memberUnderrepresentedRegion' => 'The member is underrepresented in that region',
     'memberSurplusRegionLess' => 'The member has insufficient surplus in the region for the current period',
     'memberSurplusRegionLess' => 'The member has insufficient surplus in the region for the current period',
-
+    'withdrawFormNoSn' => "There is no paid record of withdrawals serial number {sn}",
+    'withdrawFormUserNameInconsistent'=>'The serial number of the withdrawal in Excel. { excelName } is inconsistent with information in the system { userName }',
+    'withdrawFormRealNameInconsistent' => "The serial number of the withdrawal in Excel. {sn}, member's name  { excelName }, is inconsistent with information in the system {realName}",
+    'withdrawFormPeriodsInconsistent' => "Excel withdrawal serial number {sn} withdrawal periods {withdrawPeriodNum}, is inconsistent with the information in the system【 {systemWithdrawPeriodNum} 】",
+    'withdrawFormPaidAtInconsistent' => "Payment date of the withdrawal serial number in Excel {sn} {paidAt} is inconsistent with system information {systemPaidAt}",
+    'withdrawFormAmountInconsistent' => "Withdrawal amount of the withdrawal serial number in Excel {sn} {execlAmount} is inconsistent with the information in the system { systemAmount }",
+    'withdrawFormBankRealNameInconsistent' => "Real-time account name of the withdrawal serial number in Excel {sn} {execlBankRealName}, is inconsistent with the information in the system  {systemName}  Inconsistent ",
+    'withdrawFormBankNoInconsistent' => "Real-time bank account of the withdrawal serial number in Excel { excelBankNo } { sn }  is inconsistent with information in system { systemBankNo }",
+    'withdrawFormNoExistsUser'=>'不存在该用户',
+    'withdrawChkAuditStatus' => "The current status of the withdrawal  { sn }  is 【 {statusName} 】, cannot be set to【 { newStatusName }】",
+    
     # 公用
     # 公用
     'amountUnit' => '₦',
     'amountUnit' => '₦',
     'sceneDoesNotExist' => '场景不存在',
     'sceneDoesNotExist' => '场景不存在',
@@ -106,6 +159,7 @@ return [
     'illegalRequest' => 'Illegal request',
     'illegalRequest' => 'Illegal request',
     'invalidParameter' => 'Invalid Parameter',
     'invalidParameter' => 'Invalid Parameter',
     'dataDoesNotExists' => 'The data does not exist',
     'dataDoesNotExists' => 'The data does not exist',
+    'memberName' => 'Member name',
 
 
 
 
     /**【以下内容为会员端词条,如果管理端有相同词条,移入分割线之上使用即可,翻译完全部项目之后删除以下内容】
     /**【以下内容为会员端词条,如果管理端有相同词条,移入分割线之上使用即可,翻译完全部项目之后删除以下内容】

+ 54 - 0
common/messages/zh-CN/ctx.php

@@ -30,6 +30,49 @@ return [
     'commonModelsWithdrawStatusNameStatusReturned' => '已退回',
     'commonModelsWithdrawStatusNameStatusReturned' => '已退回',
     'backendApiControllersFinaceRechargeStatusApprove' => '审核通过',
     'backendApiControllersFinaceRechargeStatusApprove' => '审核通过',
     'backendApiControllersFinaceRechargeStatusReject' => '审核拒绝',
     'backendApiControllersFinaceRechargeStatusReject' => '审核拒绝',
+    'modelListFinanceBalanceAuditListUserName' => '会员编号',
+    'modelListFinanceBalanceAuditListRealName'=>'会员姓名',
+    'modelListFinanceBalanceAuditListMemberLevel'=> '会员级别',
+    'modelListFinanceBalanceAuditListStockistLevel'=> '报单中心级别',
+    'modelListFinanceBalanceAuditListEmpLevel'=>'级别',
+    'modelListFinanceBalanceAuditListTypeName'=>'账户类型',
+    'modelListFinanceBalanceAuditListDealType'=>'交易类型',
+    'modelListFinanceBalanceAuditListAmount'=>'调整金额',
+    'modelListFinanceBalanceAuditListRemark'=>'备注',
+    'modelListFinanceBalanceAuditListRemarkIsShow'=>'前台是否显示备注',
+    'modelListFinanceBalanceAuditListAuditStatusName'=>'审核状态',
+    'modelListFinanceBalanceAuditListApplicant'=>'申请人',
+    'modelListFinanceBalanceAuditListCreatedAt'=>'申请时间',
+    'modelListFinanceBalanceAuditListAuditName'=>'审核人',
+    'modelListFinanceBalanceAuditListAuditTime'=>'审核时间',
+    'modelListFinanceTranserListTransferSn'=>'转账记录流水号',
+    'modelListFinanceTranserListLastOutUserName'=>'转出会员编号',
+    'modelListFinanceTranserListLastOutRealName'=>'转出会员姓名',
+    'modelListFinanceTranserListLastOutDecLvName'=>'转出主体会员级别',
+    'modelListFinanceTranserListOutWallet'=>'转出账户',
+    'modelListFinanceTranserListLastInUserName'=>'转入会员编号',
+    'modelListFinanceTranserListLastInRealName'=> '转入会员姓名',
+    'modelListFinanceTranserListLastInDecLvName'=>'转入主体级别',
+    'modelListFinanceTranserListInWallet'=>'转入账户',
+    'modelListFinanceTranserListOriAmount'=>'转账金额',
+    'modelListFinanceTranserListFee'=>'手续费',
+    'modelListFinanceTranserListAmount'=>'实际转入金额',
+    'modelListFinanceTranserListCreatedAt'=>'转账时间',
+    'modelListFinanceTranserListPeriodNum'=>'转账期数',
+    'financeControllerTransferListExport'=>'转账列表',
+    'modelListFinanceWithdrawSn'=>'提现流水号',
+    'modelListFinanceWithdrawPeriod'=>'提现期数',
+    'modelListFinanceWithdrawAt'=>'提现时间',
+    'modelListFinanceWithdrawState'=>'提现状态',
+    'modelListFinanceWithdrawAmount'=>'提现金额',
+    'modelListFinanceWithdrawFees' => '手续费',
+    'modelListFinanceWithdrawRealAmount' => '实际到账金额',
+    'modelListFinanceWithdrawBank' => '提现银行',
+    'modelListFinanceWithdrawBankNo' => '银行地区',
+    'modelListFinanceWithdrawMobile' => '手机号',
+    'modelListFinanceWithdrawUpdateAdminName' => '操作管理员',
+    'modelListFinanceWithdrawBackRemark' => '退回备注',
+    'modelListFinanceWithdrawWithdrawalTime'=>'申请时间',
 
 
     'memberEcoinAdjustmentListFileName'=> '会员余额调整列表',
     'memberEcoinAdjustmentListFileName'=> '会员余额调整列表',
     'applicationChangeBalanceSucceeded'=> '申请变动会员余额成功',
     'applicationChangeBalanceSucceeded'=> '申请变动会员余额成功',
@@ -83,6 +126,16 @@ return [
     'amountChangeCannotZero' => '变动数额不能为0',
     'amountChangeCannotZero' => '变动数额不能为0',
     'memberUnderrepresentedRegion' => '该会员该区域的数额不足',
     'memberUnderrepresentedRegion' => '该会员该区域的数额不足',
     'memberSurplusRegionLess' => '该会员当期该区域剩余数额不足',
     'memberSurplusRegionLess' => '该会员当期该区域剩余数额不足',
+    'withdrawFormNoSn' => "不存在提现流水号为 {sn} 的已付款记录",
+    'withdrawFormUserNameInconsistent'=>'Excel中提现流水号 { excelName } 的用户名与系统中的信息 { userName } 不一致',
+    'withdrawFormRealNameInconsistent' => "Excel中提现流水号 {sn} 的会员姓名 {excelName} 与系统中的信息【 { realName } 】不一致",
+    'withdrawFormPeriodsInconsistent' => "Excel中提现流水号 {sn} 的提现期数 {withdrawPeriodNum} 与系统中的信息【 {systemWithdrawPeriodNum} 】不一致",
+    'withdrawFormPaidAtInconsistent' => 'Excel中提现流水号 {sn} 的付款日期 {paidAt} 与系统中的信息【 {systemPaidAt} 】不一致',
+    'withdrawFormAmountInconsistent' => "Excel中提现流水号 {sn} 的提现金额 {execlAmount} 与系统中的信息【 { systemAmount } 】不一致",
+    'withdrawFormBankRealNameInconsistent' => "Excel中提现流水号 {sn} 的实时开户名{ execlBankRealName }与系统中的信息【 { systemName } 】不一致",
+    'withdrawFormBankNoInconsistent' => "Excel中提现流水号{sn}的实时银行账户{ excelBankNo }与系统中的信息【 { systemBankNo } 】不一致",
+    'withdrawFormNoExistsUser'=>'不存在该用户',
+    'withdrawChkAuditStatus' => "提现单{ sn }当前状态为【{statusName}】,无法设置为【{ newStatusName }】",
 
 
     # 公用
     # 公用
     'amountUnit' => '元',
     'amountUnit' => '元',
@@ -109,6 +162,7 @@ return [
     'illegalRequest' => '非法请求',
     'illegalRequest' => '非法请求',
     'invalidParameter' => '无效参数',
     'invalidParameter' => '无效参数',
     'dataDoesNotExists' => '数据不存在',
     'dataDoesNotExists' => '数据不存在',
+    'memberName' => '会员姓名',
 
 
 
 
     /**【以下内容为会员端词条,如果管理端有相同词条,移入分割线之上使用即可,翻译完全部项目之后删除以下内容】
     /**【以下内容为会员端词条,如果管理端有相同词条,移入分割线之上使用即可,翻译完全部项目之后删除以下内容】

+ 6 - 1
common/models/Withdraw.php

@@ -339,7 +339,12 @@ class Withdraw extends \common\components\ActiveRecord {
     public static function chkAuditStatus($sn, $nowStatus, $toStatus) {
     public static function chkAuditStatus($sn, $nowStatus, $toStatus) {
         $statusName = self::STATUS_NAME;
         $statusName = self::STATUS_NAME;
 //        $msg = '提现单' . $sn . '当前状态为【' . $statusName[$nowStatus] . '】,无法设置为【' . $statusName[$toStatus] . '】';
 //        $msg = '提现单' . $sn . '当前状态为【' . $statusName[$nowStatus] . '】,无法设置为【' . $statusName[$toStatus] . '】';
-        $msg = 'The current status of the withdrawal ' . $sn . ' is 【' . $statusName[$nowStatus] . '】, cannot be set to【'.  $statusName[$toStatus] . '】';
+        // $msg = 'The current status of the withdrawal ' . $sn . ' is 【' . $statusName[$nowStatus] . '】, cannot be set to【'.  $statusName[$toStatus] . '】';
+        $msg = Yii::t('ctx', 'withdrawChkAuditStatus', [
+            'sn' => $sn,
+            'statusName' => $statusName[$nowStatus], 
+            'newStatusName' => $statusName[$toStatus]
+        ]);
         switch ($toStatus) {
         switch ($toStatus) {
             //已审核
             //已审核
             case Withdraw::STATUS_AUDITED:
             case Withdraw::STATUS_AUDITED:

+ 34 - 10
common/models/forms/WithdrawForm.php

@@ -256,30 +256,54 @@ class WithdrawForm extends Model {
     public function isSn($attribute) {
     public function isSn($attribute) {
         $sn = $this->sn;
         $sn = $this->sn;
         if (!$oneWithdraw = Withdraw::findOneAsArray('SN=:SN AND AUDIT_STATUS=:AUDIT_STATUS', [':SN' => $sn, ':AUDIT_STATUS' => Withdraw::STATUS_PAID])) {
         if (!$oneWithdraw = Withdraw::findOneAsArray('SN=:SN AND AUDIT_STATUS=:AUDIT_STATUS', [':SN' => $sn, ':AUDIT_STATUS' => Withdraw::STATUS_PAID])) {
-            $this->addError($attribute, '不存在提现流水号为' . $sn . '的已付款记录');
+            $this->addError($attribute, Yii::t('ctx', 'withdrawFormNoSn', ['sn' => $sn]));
         }
         }
         if ($oneWithdraw) {
         if ($oneWithdraw) {
             $info = Info::baseInfo($oneWithdraw['USER_ID']);
             $info = Info::baseInfo($oneWithdraw['USER_ID']);
             if ($this->userName != $info['USER_NAME']) {
             if ($this->userName != $info['USER_NAME']) {
-                $this->addError($attribute, 'Excel中提现流水号' . $sn . '的用户名' . $this->userName . '与系统中的信息【' . $info['USER_NAME'] . '】不一致');
+                $this->addError($attribute, Yii::t('ctx', 'withdrawFormUserNameInconsistent', ['excelName' => $this->userName, 'userName' => $info['USER_NAME']]));
             }
             }
             if ($this->realName != $info['REAL_NAME']) {
             if ($this->realName != $info['REAL_NAME']) {
-                $this->addError($attribute, 'Excel中提现流水号' . $sn . '的会员姓名' . $this->realName . '与系统中的信息【' . $info['REAL_NAME'] . '】不一致');
+                $this->addError($attribute, Yii::t('ctx', 'withdrawFormRealNameInconsistent', [
+                    'sn' => $sn,
+                    'excelName' => $this->realName, 
+                    'realName' => $info['REAL_NAME']
+                ]));
             }
             }
-            if ($this->withdrawPeriodNum != $oneWithdraw['WITHDRAW_PERIOD_NUM']) {
-                $this->addError($attribute, 'Excel中提现流水号' . $sn . '的提现期数' . $this->withdrawPeriodNum . '与系统中的信息【' . $oneWithdraw['WITHDRAW_PERIOD_NUM'] . '】不一致');
+            if ($this->withdrawPeriodNum != $oneWithdraw['WITHDRAW_PERIOD_NUM']) {  
+                $this->addError($attribute, Yii::t('ctx', 'withdrawFormPeriodsInconsistent', [
+                    'sn' => $sn,
+                    'withdrawPeriodNum' => $this->withdrawPeriodNum, 
+                    'systemWithdrawPeriodNum' => $oneWithdraw['WITHDRAW_PERIOD_NUM']
+                ]));
             }
             }
             if (Date::convert(Date::utcToTime($this->paidAt)) != Date::convert($oneWithdraw['PAID_AT'])) {
             if (Date::convert(Date::utcToTime($this->paidAt)) != Date::convert($oneWithdraw['PAID_AT'])) {
-                $this->addError($attribute, 'Excel中提现流水号' . $sn . '的付款日期' . Date::convert(Date::utcToTime($this->paidAt)) . '与系统中的信息【' . Date::convert($oneWithdraw['PAID_AT']) . '】不一致');
+                $this->addError($attribute, Yii::t('ctx', 'withdrawFormPaidAtInconsistent', [
+                    'sn' => $sn,
+                    'paidAt' => Date::convert(Date::utcToTime($this->paidAt)), 
+                    'systemPaidAt' => Date::convert($oneWithdraw['PAID_AT'])
+                ]));
             }
             }
             if ($this->amount != $oneWithdraw['AMOUNT']) {
             if ($this->amount != $oneWithdraw['AMOUNT']) {
-                $this->addError($attribute, 'Excel中提现流水号' . $sn . '的提现金额' . $this->amount . '与系统中的信息【' . $oneWithdraw['AMOUNT'] . '】不一致');
+                $this->addError($attribute, Yii::t('ctx', 'withdrawFormAmountInconsistent', [
+                    'sn' => $sn,
+                    'execlAmount' =>$this->amount, 
+                    'systemAmount' => $oneWithdraw['AMOUNT']
+                ]));
             }
             }
             if ($this->bankRealName != $oneWithdraw['REAL_NAME']) {
             if ($this->bankRealName != $oneWithdraw['REAL_NAME']) {
-                $this->addError($attribute, 'Excel中提现流水号' . $sn . '的实时开户名' . $this->bankRealName . '与系统中的信息【' . $oneWithdraw['REAL_NAME'] . '】不一致');
+                $this->addError($attribute, Yii::t('ctx', 'withdrawFormBankRealNameInconsistent', [
+                    'sn' => $sn,
+                    'execlBankRealName' =>$this->bankRealName, 
+                    'systemName' => $oneWithdraw['REAL_NAME']
+                ]));
             }
             }
             if ($this->bankNo != $oneWithdraw['BANK_NO']) {
             if ($this->bankNo != $oneWithdraw['BANK_NO']) {
-                $this->addError($attribute, 'Excel中提现流水号' . $sn . '的实时银行账户' . $this->bankNo . '与系统中的信息【' . $oneWithdraw['BANK_NO'] . '】不一致');
+                $this->addError($attribute, Yii::t('ctx', 'withdrawFormBankNoInconsistent', [
+                    'sn' => $sn,
+                    'excelBankNo' =>$this->bankNo, 
+                    'systemBankNo' => $oneWithdraw['BANK_NO']
+                ]));
             }
             }
         }
         }
     }
     }
@@ -376,7 +400,7 @@ class WithdrawForm extends Model {
         $userId = \Yii::$app->user->id;
         $userId = \Yii::$app->user->id;
         $user = User::findOneAsArray('ID=:ID', [':ID' => $userId], 'ID,USER_NAME,ID_CARD');
         $user = User::findOneAsArray('ID=:ID', [':ID' => $userId], 'ID,USER_NAME,ID_CARD');
         if( !$user ) {
         if( !$user ) {
-            $this->addError('add', '不存在该用户');
+            $this->addError('add', Yii::t('ctx', 'withdrawFormNoExistsUser'));
             return -1;
             return -1;
         }
         }
 //        if( !$user['ID_CARD'] ) {
 //        if( !$user['ID_CARD'] ) {