88 lines
4.0 KiB
JavaScript
88 lines
4.0 KiB
JavaScript
import React from 'react';
|
|
import Route from 'react-router/lib/Route';
|
|
import { WeaLocaleProvider } from 'ecCom'
|
|
import MySalary from './pages/mySalary';
|
|
import Programme from './pages/socialSecurityBenefits/programme';
|
|
import Archives from './pages/socialSecurityBenefits/archives';
|
|
import StandingBook from './pages/socialSecurityBenefits/standingBook';
|
|
import SalaryItemManagement from './pages/salaryItemManagement';
|
|
import SalaryFile from './pages/salaryFile';
|
|
import CumDeduct from './pages/dataAcquisition/cumDeduct';
|
|
import OtherTaxExemptDeductions from './pages/dataAcquisition/otherTaxExemptDeductions';
|
|
import CumulativeSituationInPreviousPeriods from './pages/dataAcquisition/cumulativeSituationInPreviousPeriods';
|
|
import AttendanceReference from './pages/dataAcquisition/attendanceReference';
|
|
import SalarySet from './pages/salarySet';
|
|
import SalaryAccounting from './pages/salaryAccounting';
|
|
import PayrollPayment from './pages/payrollPayment';
|
|
import IndividualIncomeTaxApplicationForm from './pages/individualIncomeTaxApplicationForm';
|
|
import TaxRate from './pages/taxRate';
|
|
import TaxAgent from './pages/taxAgent';
|
|
|
|
|
|
import BaseForm from './components';
|
|
|
|
import stores from './stores';
|
|
import './style/index';
|
|
|
|
// 读取系统多语言配置
|
|
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 社保福利台账
|
|
// salaryItemManagement 薪资项目管理
|
|
// salaryFile 薪资档案
|
|
// dataAcquisition 数据采集
|
|
// CumDeduct 累计专项附加扣除
|
|
// otherTaxExemptDeductions 其他免税扣除
|
|
// cumulativeSituationInPreviousPeriods 往期累计情况
|
|
// attendanceReference 考勤引用
|
|
// salarySet 薪资账套
|
|
// salaryAccounting 薪资核算
|
|
// payrollPayment 工资单发放
|
|
// individualIncomeTaxApplicationForm 个税申请表
|
|
// individualIncomeTaxRateForm 个税税率表
|
|
// taxAgent 个税扣缴义务人
|
|
|
|
const Routes = (
|
|
<Route key='hrmSalary' path='hrmSalary' onEnter={getLocaleLabel} component={Home}>
|
|
<Route key='mySalary' path='mySalary' component={MySalary} />
|
|
<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>
|
|
<Route key='salaryItemManagement' path='salaryItemManagement' component={SalaryItemManagement} />
|
|
<Route key='salaryFile' path='salaryFile' component={SalaryFile} />
|
|
<Route key='dataAcquisition' path='dataAcquisition' component={DataAcquisition}>
|
|
<Route key='cumDeduct' path='cumDeduct' component={CumDeduct} />
|
|
<Route key='otherTaxExemptDeductions' path='otherTaxExemptDeductions' component={OtherTaxExemptDeductions} />
|
|
<Route key='cumulativeSituationInPreviousPeriods' path='cumulativeSituationInPreviousPeriods' component={CumulativeSituationInPreviousPeriods} />
|
|
<Route key='attendanceReference' path='attendanceReference' component={AttendanceReference} />
|
|
</Route>
|
|
<Route key='salarySet' path='salarySet' component={SalarySet} />
|
|
<Route key='salaryAccounting' path='salaryAccounting' component={SalaryAccounting} />
|
|
<Route key='payrollPayment' path='payrollPayment' component={PayrollPayment} />
|
|
<Route key='individualIncomeTaxApplicationForm' path='individualIncomeTaxApplicationForm' component={IndividualIncomeTaxApplicationForm} />
|
|
<Route key='taxRate' path='taxRate' component={TaxRate} />
|
|
<Route key='taxAgent' path='taxAgent' component={TaxAgent} />
|
|
</Route>
|
|
);
|
|
|
|
module.exports = {
|
|
Route: Routes,
|
|
store: stores,
|
|
};
|