142 lines
5.2 KiB
JavaScript
142 lines
5.2 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 SalaryItem from "./pages/salaryItem";
|
|
import SalaryFile from "./pages/salaryFile";
|
|
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 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 CalculateDetail from "./pages/calculateDetail";
|
|
import PlaceOnFileDetail from "./pages/calculateDetail/placeOnFileDetail";
|
|
import CompareDetail from "./pages/calculateDetail/compareDetail";
|
|
import GenerateDeclarationDetail from "./pages/declare/generateDeclarationDetail";
|
|
import BaseForm from "./components";
|
|
import TemplatePreview from "./pages/payroll/templatePreview";
|
|
import MobilePayroll from './pages/mobilePayroll'
|
|
import WeaDraggableTable from './components/testWeatable'
|
|
|
|
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 社保福利台账
|
|
// salaryItem 薪资项目管理
|
|
// salaryFile 薪资档案
|
|
// dataAcquisition 数据采集
|
|
// CumDeduct 累计专项附加扣除
|
|
// otherDeduct 其他免税扣除
|
|
// cumSituation 往期累计情况
|
|
// attendance 考勤引用
|
|
// ledger 薪资账套
|
|
// calculate 薪资核算
|
|
// calculateDetail 核算详情
|
|
// placeOnFileDetail 核算归档详情
|
|
// compareDetail 线下线上对比
|
|
// payroll 工资单发放
|
|
// declare 个税申报表
|
|
// generateDeclarationDetail 个税单详情
|
|
// taxRate 个税税率表
|
|
// taxAgent 个税扣缴义务人
|
|
// mobilepayroll 移动端工资单
|
|
|
|
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>
|
|
<Route key="salaryItem" path="salaryItem" component={SalaryItem} />
|
|
<Route key="salaryFile" path="salaryFile" component={SalaryFile} />
|
|
<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>
|
|
<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>
|
|
);
|
|
|
|
module.exports = {
|
|
Route: Routes,
|
|
store: stores,
|
|
};
|