salary-management-front/pc4mobx/hrmSalary/index.js

110 lines
4.6 KiB
JavaScript
Raw Normal View History

2022-02-25 09:24:56 +08:00
import React from 'react';
import Route from 'react-router/lib/Route';
import { WeaLocaleProvider } from 'ecCom'
import MySalary from './pages/mySalary';
2022-02-25 09:24:56 +08:00
import Programme from './pages/socialSecurityBenefits/programme';
import Archives from './pages/socialSecurityBenefits/archives';
import StandingBook from './pages/socialSecurityBenefits/standingBook';
2022-03-10 10:58:26 +08:00
import SalaryItem from './pages/salaryItem';
2022-02-25 09:24:56 +08:00
import SalaryFile from './pages/salaryFile';
2022-03-04 15:23:07 +08:00
import CumDeduct from './pages/dataAcquisition/cumDeduct';
2022-03-10 10:58:26 +08:00
import OtherDeduct from './pages/dataAcquisition/otherDeduct';
import CumSituation from './pages/dataAcquisition/cumSituation';
import Attendance from './pages/dataAcquisition/attendance';
import Ledger from './pages/ledger';
import Calculate from './pages/calculate';
import Payroll from './pages/payroll';
2022-03-17 20:08:59 +08:00
import PayrollGrant from './pages/payroll/payrollGrant';
2022-04-16 13:13:41 +08:00
import PayrollDetail from './pages/payroll/payrollDetail'
2022-03-10 10:58:26 +08:00
import Declare from './pages/declare';
2022-03-01 09:42:00 +08:00
import TaxRate from './pages/taxRate';
import TaxAgent from './pages/taxAgent';
2022-03-16 16:21:28 +08:00
import CalculateDetail from './pages/calculateDetail'
2022-03-17 12:30:37 +08:00
import PlaceOnFileDetail from './pages/calculateDetail/placeOnFileDetail';
2022-03-17 16:08:04 +08:00
import CompareDetail from './pages/calculateDetail/compareDetail'
2022-03-18 10:38:43 +08:00
import GenerateDeclarationDetail from './pages/declare/generateDeclarationDetail'
2022-02-25 09:24:56 +08:00
import BaseForm from './components';
2022-04-18 09:31:06 +08:00
import TemplatePreview from './pages/payroll/templatePreview'
2022-02-25 09:24:56 +08:00
2022-04-16 13:13:41 +08:00
2022-02-25 09:24:56 +08:00
import stores from './stores';
import './style/index';
2022-03-17 12:30:37 +08:00
2022-02-25 09:24:56 +08:00
// 读取系统多语言配置
let getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'hrmSalary');
// 不需要读取系统多语言
getLocaleLabel = function (nextState, replace, callback) {
callback();
};
const Home = props => props.children;
const SocialSecurityBenefits = props => props.children;
const DataAcquisition = props => props.children;
// mySalaryBenefits 我的薪资福利
// socialSecurityBenefits 社保福利
// programme 社保福利方案
// archives 社保福利档案
// standingBook 社保福利台账
2022-03-10 10:58:26 +08:00
// salaryItem 薪资项目管理
2022-02-25 09:24:56 +08:00
// salaryFile 薪资档案
// dataAcquisition 数据采集
2022-03-04 15:23:07 +08:00
// CumDeduct 累计专项附加扣除
2022-03-10 10:58:26 +08:00
// otherDeduct 其他免税扣除
// cumSituation 往期累计情况
// attendance 考勤引用
// ledger 薪资账套
// calculate 薪资核算
2022-03-17 12:30:37 +08:00
// calculateDetail 核算详情
// placeOnFileDetail 核算归档详情
2022-03-17 16:08:04 +08:00
// compareDetail 线下线上对比
2022-03-10 10:58:26 +08:00
// payroll 工资单发放
// declare 个税申请表
2022-03-18 10:38:43 +08:00
// generateDeclarationDetail 个税单详情
2022-03-10 10:58:26 +08:00
// taxRate 个税税率表
// taxAgent 个税扣缴义务人
2022-02-25 09:24:56 +08:00
2022-03-17 12:30:37 +08:00
2022-02-25 09:24:56 +08:00
const Routes = (
<Route key='hrmSalary' path='hrmSalary' onEnter={getLocaleLabel} component={Home}>
<Route key='mySalary' path='mySalary' component={MySalary} />
2022-02-25 09:24:56 +08:00
<Route key='socialSecurityBenefits' path='socialSecurityBenefits' component={SocialSecurityBenefits}>
<Route key='programme' path='programme' component={Programme} />
<Route key='archives' path='archives' component={Archives} />
<Route key='standingBook' path='standingBook' component={StandingBook} />
</Route>
2022-03-10 10:58:26 +08:00
<Route key='salaryItem' path='salaryItem' component={SalaryItem} />
2022-02-25 09:24:56 +08:00
<Route key='salaryFile' path='salaryFile' component={SalaryFile} />
<Route key='dataAcquisition' path='dataAcquisition' component={DataAcquisition}>
2022-03-04 15:23:07 +08:00
<Route key='cumDeduct' path='cumDeduct' component={CumDeduct} />
2022-03-10 10:58:26 +08:00
<Route key='otherDeduct' path='otherDeduct' component={OtherDeduct} />
<Route key='cumSituation' path='cumSituation' component={CumSituation} />
<Route key='attendance' path='attendance' component={Attendance} />
2022-02-25 09:24:56 +08:00
</Route>
2022-03-10 10:58:26 +08:00
<Route key='ledger' path='ledger' component={Ledger} />
<Route key='calculate' path='calculate' component={Calculate} />
2022-03-16 16:21:28 +08:00
<Route key='calculateDetail' path='calculateDetail' component={CalculateDetail} />
2022-03-17 12:30:37 +08:00
<Route key='placeOnFileDetail' path='placeOnFileDetail' component={PlaceOnFileDetail} />
2022-03-17 16:08:04 +08:00
<Route key='compareDetail' path='compareDetail' component={CompareDetail} />
2022-03-10 10:58:26 +08:00
<Route key='payroll' path='payroll' component={Payroll} />
2022-03-17 20:08:59 +08:00
<Route key='payrollGrant' path='payrollGrant' component={PayrollGrant} />
2022-04-16 13:13:41 +08:00
<Route key="payrollDetail" path="payrollDetail" component={PayrollDetail} />
2022-04-18 09:31:06 +08:00
<Route key="templatePreview" path="templatePreview" component={TemplatePreview} />
2022-03-10 10:58:26 +08:00
<Route key='declare' path='declare' component={Declare} />
2022-03-18 10:38:43 +08:00
<Route key='generateDeclarationDetail' path='generateDeclarationDetail' component={GenerateDeclarationDetail} />
2022-03-01 09:42:00 +08:00
<Route key='taxRate' path='taxRate' component={TaxRate} />
<Route key='taxAgent' path='taxAgent' component={TaxAgent} />
2022-02-25 09:24:56 +08:00
</Route>
);
module.exports = {
Route: Routes,
store: stores,
};