2022-04-22 14:35:51 +08:00
|
|
|
import React from "react";
|
|
|
|
|
import Route from "react-router/lib/Route";
|
|
|
|
|
import { WeaLocaleProvider } from "ecCom";
|
2024-01-25 15:09:30 +08:00
|
|
|
import HistoricalPayroll from "./pages/historicalPayroll";
|
|
|
|
|
import SalaryAdjustmentRecords from "./pages/salaryAdjustmentRecords";
|
2023-11-13 10:41:47 +08:00
|
|
|
import MySalaryMobile from "./pages/mySalaryMobile";
|
2023-11-20 17:48:44 +08:00
|
|
|
import MySalary from "./pages/mySalaryBenefits";
|
2024-02-02 16:09:03 +08:00
|
|
|
import Programme from "./pages/socialSecurityBenefits/welfarePlan";
|
2024-01-08 16:05:00 +08:00
|
|
|
// import Archivess from "./pages/socialSecurityBenefits/archives";
|
2023-10-31 15:30:21 +08:00
|
|
|
import Archives from "./pages/socialSecurityBenefits/welfareArchive"; //社保福利档案重构页面
|
2024-02-27 16:33:50 +08:00
|
|
|
import StandingBook from "./pages/socialSecurityBenefits/standingBook/standingBook"; //社保福利台账重构页面
|
2022-04-22 14:35:51 +08:00
|
|
|
import StandingBookDetail from "./pages/socialSecurityBenefits/standingBookDetail";
|
2022-09-29 15:45:23 +08:00
|
|
|
import StandingBookOfflineComparison from "./pages/socialSecurityBenefits/standingBookOfflineComparison";
|
2022-04-22 14:35:51 +08:00
|
|
|
import SalaryItem from "./pages/salaryItem";
|
2024-01-08 16:05:00 +08:00
|
|
|
import SalaryFiles from "./pages/payrollFiles/salaryFiles";
|
2022-04-22 14:35:51 +08:00
|
|
|
import CumDeduct from "./pages/dataAcquisition/cumDeduct";
|
|
|
|
|
import OtherDeduct from "./pages/dataAcquisition/otherDeduct";
|
|
|
|
|
import CumSituation from "./pages/dataAcquisition/cumSituation";
|
|
|
|
|
import Attendance from "./pages/dataAcquisition/attendance";
|
2022-11-15 15:42:09 +08:00
|
|
|
import SpecialAddDeduction from "./pages/dataAcquisition/specialAddDeduction";
|
2022-12-06 16:06:35 +08:00
|
|
|
import Ledger from "./pages/ledgerPage";
|
2023-10-09 13:17:54 +08:00
|
|
|
// import Calculate from "./pages/calculate";
|
|
|
|
|
import Calculate from "./pages/calculate/calculate"; //重构的薪资核算页面
|
2023-10-13 09:17:54 +08:00
|
|
|
// import Payroll from "./pages/payroll";
|
2023-10-18 17:12:44 +08:00
|
|
|
import Payroll from "./pages/payrollRelease"; //重构的工资单发放页面
|
2022-04-22 14:35:51 +08:00
|
|
|
import PayrollGrant from "./pages/payroll/payrollGrant";
|
2024-07-15 17:14:55 +08:00
|
|
|
import PayrollDetail from "./pages/payroll/payrollDetail/payrollDetail";
|
2023-10-12 13:57:14 +08:00
|
|
|
// import Declare from "./pages/declare";
|
|
|
|
|
import Declare from "./pages/declare/declare"; //重构的个税申报表
|
2022-04-22 14:35:51 +08:00
|
|
|
import TaxRate from "./pages/taxRate";
|
2024-10-08 14:08:16 +08:00
|
|
|
import TaxAgent from "./pages/salary/taxAgent";
|
2022-04-22 14:35:51 +08:00
|
|
|
import CalculateDetail from "./pages/calculateDetail";
|
|
|
|
|
import PlaceOnFileDetail from "./pages/calculateDetail/placeOnFileDetail";
|
|
|
|
|
import CompareDetail from "./pages/calculateDetail/compareDetail";
|
2023-09-14 10:25:22 +08:00
|
|
|
import DoCalcDetail from "./pages/calculate/doCalc";
|
2023-09-27 09:13:02 +08:00
|
|
|
import OfflineCompare from "./pages/calculate/calcOc";
|
2023-12-07 16:44:38 +08:00
|
|
|
import CalcView from "./pages/calculate/calcView";
|
2022-04-22 14:35:51 +08:00
|
|
|
import GenerateDeclarationDetail from "./pages/declare/generateDeclarationDetail";
|
|
|
|
|
import TemplatePreview from "./pages/payroll/templatePreview";
|
2023-10-18 17:12:44 +08:00
|
|
|
import PayrollTemplatePreview from "./pages/payroll/templatePreview/tmpPreview"; //重构的工资单模板预览页面
|
2022-11-15 15:42:09 +08:00
|
|
|
import MobilePayroll from "./pages/mobilePayroll";
|
|
|
|
|
import SysConfig from "./pages/sysConfig";
|
2024-02-23 17:38:42 +08:00
|
|
|
import RuleConfig from "./pages/ruleConfig/ruleConfig";
|
2022-11-15 15:42:09 +08:00
|
|
|
import Appconfig from "./pages/appConfig";
|
2024-09-06 13:30:09 +08:00
|
|
|
import RoleManagement from "./pages/roleManagement";
|
2023-01-28 10:10:00 +08:00
|
|
|
import FieldManagement from "./pages/fieldManagement";
|
2023-04-20 15:36:51 +08:00
|
|
|
import AnalysisOfSalaryStatistics from "./pages/analysisOfSalaryStatistics";
|
2023-05-25 13:27:17 +08:00
|
|
|
import EmployeeList from "./pages/employeeView";
|
2023-04-20 15:36:51 +08:00
|
|
|
import ReportView from "./pages/reportView";
|
2023-06-15 18:28:06 +08:00
|
|
|
import MySalaryView from "./pages/mySalary/mySalaryView";
|
|
|
|
|
import WatermarkPreview from "./pages/payroll/watermarkPreview";
|
2023-03-13 10:43:25 +08:00
|
|
|
import ExternalPersonManage from "./pages/externalPersonManage";
|
2023-10-13 09:51:50 +08:00
|
|
|
import AdjustSalaryManage from "./pages/adjustSalaryManage";
|
2023-10-27 16:14:59 +08:00
|
|
|
import TopologyMap from "./pages/topologyMap";
|
2024-03-26 09:14:32 +08:00
|
|
|
import SupplementaryCalc from "./pages/supplementaryCalc";
|
2024-08-08 14:36:11 +08:00
|
|
|
import VariableSalary from "./pages/variableSalary";
|
2024-11-19 09:56:29 +08:00
|
|
|
import Datapush from "./pages/datapush";
|
2024-08-15 17:43:03 +08:00
|
|
|
import Layout from "./layout";
|
2022-04-22 14:35:51 +08:00
|
|
|
import stores from "./stores";
|
|
|
|
|
import "./style/index";
|
2022-02-25 09:24:56 +08:00
|
|
|
// 读取系统多语言配置
|
2022-04-22 14:35:51 +08:00
|
|
|
let getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, "hrmSalary");
|
2022-02-25 09:24:56 +08:00
|
|
|
// 不需要读取系统多语言
|
|
|
|
|
getLocaleLabel = function (nextState, replace, callback) {
|
2022-04-22 14:35:51 +08:00
|
|
|
callback();
|
2022-02-25 09:24:56 +08:00
|
|
|
};
|
2022-04-22 14:35:51 +08:00
|
|
|
const SocialSecurityBenefits = (props) => props.children;
|
|
|
|
|
const DataAcquisition = (props) => props.children;
|
2022-02-25 09:24:56 +08:00
|
|
|
|
|
|
|
|
const Routes = (
|
2024-08-15 17:43:03 +08:00
|
|
|
<Route key="hrmSalary" path="hrmSalary" onEnter={getLocaleLabel} component={Layout}>
|
2024-01-25 15:09:30 +08:00
|
|
|
<Route key="historicalPayroll" path="historicalPayroll" component={HistoricalPayroll}/>
|
|
|
|
|
<Route key="salaryAdjustmentRecords" path="salaryAdjustmentRecords" component={SalaryAdjustmentRecords}/>
|
2023-11-13 10:41:47 +08:00
|
|
|
<Route key="mySalaryMobile" path="mySalaryMobile" component={MySalaryMobile}/>
|
2022-11-15 15:42:09 +08:00
|
|
|
<Route key="mySalary" path="mySalary" component={MySalary}/>
|
2023-06-15 18:28:06 +08:00
|
|
|
<Route key="mySalaryView" path="mySalary/:salaryInfoId" component={MySalaryView}/>
|
2024-05-16 10:03:05 +08:00
|
|
|
<Route key="socialSecurityBenefits" path="socialSecurityBenefits" component={SocialSecurityBenefits}>
|
2022-11-15 15:42:09 +08:00
|
|
|
<Route key="programme" path="programme" component={Programme}/>
|
|
|
|
|
<Route key="archives" path="archives" component={Archives}/>
|
|
|
|
|
<Route key="standingBook" path="standingBook" component={StandingBook}/>
|
2024-08-15 17:43:03 +08:00
|
|
|
<Route key="standingBookDetail" path="standingBookDetail" component={StandingBookDetail}/>
|
|
|
|
|
<Route key="sbofflineComparison" path="sbofflineComparison" component={StandingBookOfflineComparison}/>
|
2022-02-25 09:24:56 +08:00
|
|
|
</Route>
|
2022-11-15 15:42:09 +08:00
|
|
|
<Route key="salaryItem" path="salaryItem" component={SalaryItem}/>
|
2024-01-08 16:05:00 +08:00
|
|
|
<Route key="salaryFile" path="salaryFile" component={SalaryFiles}/>
|
2023-10-13 09:51:50 +08:00
|
|
|
<Route key="adjustSalaryManage" path="adjustSalaryManage" component={AdjustSalaryManage}/>
|
2024-05-16 10:03:05 +08:00
|
|
|
<Route key="dataAcquisition" path="dataAcquisition" component={DataAcquisition}>
|
2022-11-15 15:42:09 +08:00
|
|
|
<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}/>
|
2022-02-25 09:24:56 +08:00
|
|
|
</Route>
|
2022-11-15 15:42:09 +08:00
|
|
|
<Route key="ledger" path="ledger" component={Ledger}/>
|
|
|
|
|
<Route key="calculate" path="calculate" component={Calculate}/>
|
2023-08-25 16:12:05 +08:00
|
|
|
<Route key="calculateDetail" path="calculateDetail" component={CalculateDetail}/>
|
2023-09-14 10:25:22 +08:00
|
|
|
<Route key="doCalc" path="calculate/:salaryAcctRecordId" component={DoCalcDetail}/>
|
2023-12-08 09:19:43 +08:00
|
|
|
<Route key="calcOc" path="calcOc/:salaryAcctRecordId" component={OfflineCompare}/>
|
|
|
|
|
<Route key="calcView" path="calcView/:salaryAcctRecordId" component={CalcView}/>
|
2023-08-25 16:12:05 +08:00
|
|
|
<Route key="placeOnFileDetail" path="placeOnFileDetail" component={PlaceOnFileDetail}/>
|
2022-11-15 15:42:09 +08:00
|
|
|
<Route key="compareDetail" path="compareDetail" component={CompareDetail}/>
|
|
|
|
|
<Route key="payroll" path="payroll" component={Payroll}/>
|
2023-06-15 18:28:06 +08:00
|
|
|
<Route key="watermarkPreview" path="payroll/watermark/preview" component={WatermarkPreview}/>
|
2022-11-15 15:42:09 +08:00
|
|
|
<Route key="payrollGrant" path="payrollGrant" component={PayrollGrant}/>
|
|
|
|
|
<Route key="payrollDetail" path="payrollDetail" component={PayrollDetail}/>
|
2023-10-18 17:12:44 +08:00
|
|
|
<Route key="templatePreview" path="templatePreview" component={TemplatePreview}/>
|
|
|
|
|
<Route key="payrollinfo" path="payrollinfo" component={PayrollTemplatePreview}/>
|
2022-11-15 15:42:09 +08:00
|
|
|
<Route key="declare" path="declare" component={Declare}/>
|
2024-08-15 17:43:03 +08:00
|
|
|
<Route key="generateDeclarationDetail" path="generateDeclarationDetail" component={GenerateDeclarationDetail}/>
|
2022-11-15 15:42:09 +08:00
|
|
|
<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}/>
|
2024-09-06 13:30:09 +08:00
|
|
|
<Route key="roleManagement" path="roleManagement" component={RoleManagement}/>
|
2023-01-28 10:10:00 +08:00
|
|
|
<Route key="fieldManagement" path="fieldManagement" component={FieldManagement}/>
|
2023-04-11 13:41:56 +08:00
|
|
|
<Route key="analysisOfSalaryStatistics" path="analysisOfSalaryStatistics" component={AnalysisOfSalaryStatistics}/>
|
2023-05-25 13:27:17 +08:00
|
|
|
<Route key="analysisOfSalaryStatisticsId" path="analysisOfSalaryStatistics/:employeeId" component={EmployeeList}/>
|
2024-11-19 09:56:29 +08:00
|
|
|
<Route key="datapush" path="datapush" component={Datapush}/>
|
2023-04-20 15:36:51 +08:00
|
|
|
<Route key="reportView" path="reportView" component={ReportView}/>
|
2023-03-13 10:43:25 +08:00
|
|
|
<Route key="externalPersonManage" path="externalPersonManage" component={ExternalPersonManage}/>
|
2023-10-27 16:14:59 +08:00
|
|
|
<Route key="topologyView" path="topologyView/:salarySobId/:salaryItemId" component={TopologyMap}/>
|
2024-03-26 09:14:32 +08:00
|
|
|
<Route key="supplementaryCalc" path="supplementaryCalc" component={SupplementaryCalc}/>
|
2024-08-08 14:36:11 +08:00
|
|
|
<Route key="variableSalary" path="variableSalary" component={VariableSalary}/>
|
2022-02-25 09:24:56 +08:00
|
|
|
</Route>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
Route: Routes,
|
2022-11-15 15:42:09 +08:00
|
|
|
store: stores
|
2022-02-25 09:24:56 +08:00
|
|
|
};
|