158 lines
6.0 KiB
JavaScript
158 lines
6.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 StandingBookDetail from "./pages/socialSecurityBenefits/standingBookDetail";
|
|
import StandingBookOfflineComparison from "./pages/socialSecurityBenefits/standingBookOfflineComparison";
|
|
import SalaryItem from "./pages/salaryItem";
|
|
import PayrollFiles from "./pages/payrollFiles";
|
|
import CumDeduct from "./pages/dataAcquisition/cumDeduct";
|
|
import OtherDeduct from "./pages/dataAcquisition/otherDeduct";
|
|
import CumSituation from "./pages/dataAcquisition/cumSituation";
|
|
import Attendance from "./pages/dataAcquisition/attendance";
|
|
import SpecialAddDeduction from "./pages/dataAcquisition/specialAddDeduction";
|
|
import Ledger from "./pages/ledger";
|
|
import Calculate from "./pages/calculate";
|
|
import Payroll from "./pages/payroll";
|
|
import PayrollGrant from "./pages/payroll/payrollGrant";
|
|
import PayrollDetail from "./pages/payroll/payrollDetail";
|
|
import Declare from "./pages/declare";
|
|
import TaxRate from "./pages/taxRate";
|
|
// import TaxAgent from "./pages/taxAgent";
|
|
import TaxAgent from "./pages/salary/taxAgent";
|
|
import CalculateDetail from "./pages/calculateDetail";
|
|
import PlaceOnFileDetail from "./pages/calculateDetail/placeOnFileDetail";
|
|
import CompareDetail from "./pages/calculateDetail/compareDetail";
|
|
import GenerateDeclarationDetail from "./pages/declare/generateDeclarationDetail";
|
|
import TemplatePreview from "./pages/payroll/templatePreview";
|
|
import MobilePayroll from "./pages/mobilePayroll";
|
|
import SysConfig from "./pages/sysConfig";
|
|
import RuleConfig from "./pages/ruleConfig";
|
|
import Appconfig from "./pages/appConfig";
|
|
|
|
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;
|
|
|
|
// mySalary 我的薪资福利
|
|
// socialSecurityBenefits 社保福利
|
|
// programme 社保福利方案
|
|
// archives 社保福利档案
|
|
// standingBook 社保福利台账
|
|
// sbofflineComparison 社保福利台账线下对比
|
|
// salaryItem 薪资项目管理
|
|
// salaryFile 薪资档案
|
|
// dataAcquisition 数据采集
|
|
// CumDeduct 累计专项附加扣除
|
|
// otherDeduct 其他免税扣除
|
|
// cumSituation 往期累计情况
|
|
// attendance 考勤引用
|
|
// specialAddDeduction 专项附件扣除
|
|
// ledger 薪资账套
|
|
// calculate 薪资核算
|
|
// calculateDetail 核算详情
|
|
// placeOnFileDetail 核算归档详情
|
|
// compareDetail 线下线上对比
|
|
// payroll 工资单发放
|
|
// declare 个税申报表
|
|
// generateDeclarationDetail 个税单详情
|
|
// taxRate 个税税率表
|
|
// taxAgent 个税扣缴义务人
|
|
// mobilepayroll 移动端工资单
|
|
// sysconfig 系統配置
|
|
// sysconfig-1 规则配置
|
|
// appconfig 应用配置
|
|
|
|
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
|
|
key="standingBookDetail"
|
|
path="standingBookDetail"
|
|
component={StandingBookDetail}
|
|
/>
|
|
<Route
|
|
key="sbofflineComparison"
|
|
path="sbofflineComparison"
|
|
component={StandingBookOfflineComparison}
|
|
/>
|
|
</Route>
|
|
<Route key="salaryItem" path="salaryItem" component={SalaryItem}/>
|
|
<Route key="salaryFile" path="salaryFile" component={PayrollFiles}/>
|
|
<Route
|
|
key="dataAcquisition"
|
|
path="dataAcquisition"
|
|
component={DataAcquisition}>
|
|
<Route key="cumDeduct" path="cumDeduct" component={CumDeduct}/>
|
|
<Route key="otherDeduct" path="otherDeduct" component={OtherDeduct}/>
|
|
<Route key="cumSituation" path="cumSituation" component={CumSituation}/>
|
|
<Route key="attendance" path="attendance" component={Attendance}/>
|
|
<Route key="specialAddDeduction" path="specialAddDeduction" component={SpecialAddDeduction}/>
|
|
</Route>
|
|
<Route key="ledger" path="ledger" component={Ledger}/>
|
|
<Route key="calculate" path="calculate" component={Calculate}/>
|
|
<Route
|
|
key="calculateDetail"
|
|
path="calculateDetail"
|
|
component={CalculateDetail}
|
|
/>
|
|
<Route
|
|
key="placeOnFileDetail"
|
|
path="placeOnFileDetail"
|
|
component={PlaceOnFileDetail}
|
|
/>
|
|
<Route key="compareDetail" path="compareDetail" component={CompareDetail}/>
|
|
<Route key="payroll" path="payroll" component={Payroll}/>
|
|
<Route key="payrollGrant" path="payrollGrant" component={PayrollGrant}/>
|
|
<Route key="payrollDetail" path="payrollDetail" component={PayrollDetail}/>
|
|
<Route
|
|
key="templatePreview"
|
|
path="templatePreview"
|
|
component={TemplatePreview}
|
|
/>
|
|
<Route key="declare" path="declare" component={Declare}/>
|
|
<Route
|
|
key="generateDeclarationDetail"
|
|
path="generateDeclarationDetail"
|
|
component={GenerateDeclarationDetail}
|
|
/>
|
|
<Route key="taxRate" path="taxRate" component={TaxRate}/>
|
|
<Route key="taxAgent" path="taxAgent" component={TaxAgent}/>
|
|
<Route key="mobilepayroll" path="mobilepayroll" component={MobilePayroll}/>
|
|
<Route key="sysconfig" path="sysconfig" component={SysConfig}/>
|
|
<Route key="sysconfig-1" path="sysconfig-1" component={RuleConfig}/>
|
|
<Route key="appconfig" path="appconfig" component={Appconfig}/>
|
|
</Route>
|
|
);
|
|
|
|
module.exports = {
|
|
Route: Routes,
|
|
store: stores
|
|
};
|