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

176 lines
9.4 KiB
JavaScript
Raw Normal View History

2022-04-22 14:35:51 +08:00
import React from "react";
import Route from "react-router/lib/Route";
import { WeaLocaleProvider } from "ecCom";
import HistoricalPayroll from "./pages/historicalPayroll";
import SalaryAdjustmentRecords from "./pages/salaryAdjustmentRecords";
import MySalaryMobile from "./pages/mySalaryMobile";
import MySalary from "./pages/mySalaryBenefits";
import Programme from "./pages/socialSecurityBenefits/welfarePlan";
// import Archivess from "./pages/socialSecurityBenefits/archives";
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";
import StandingBookOfflineComparison from "./pages/socialSecurityBenefits/standingBookOfflineComparison";
2022-04-22 14:35:51 +08:00
import SalaryItem from "./pages/salaryItem";
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";
import SpecialAddDeduction from "./pages/dataAcquisition/specialAddDeduction";
2022-12-06 16:06:35 +08:00
import Ledger from "./pages/ledgerPage";
// import Calculate from "./pages/calculate";
import Calculate from "./pages/calculate/calculate"; //重构的薪资核算页面
// import Payroll from "./pages/payroll";
import Payroll from "./pages/payrollRelease"; //重构的工资单发放页面
2022-04-22 14:35:51 +08:00
import PayrollGrant from "./pages/payroll/payrollGrant";
import PayrollDetail from "./pages/payroll/payrollDetail";
// import Declare from "./pages/declare";
import Declare from "./pages/declare/declare"; //重构的个税申报表
2022-04-22 14:35:51 +08:00
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 DoCalcDetail from "./pages/calculate/doCalc";
import OfflineCompare from "./pages/calculate/calcOc";
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";
import PayrollTemplatePreview from "./pages/payroll/templatePreview/tmpPreview"; //重构的工资单模板预览页面
import MobilePayroll from "./pages/mobilePayroll";
import SysConfig from "./pages/sysConfig";
2024-02-23 17:38:42 +08:00
import RuleConfig from "./pages/ruleConfig/ruleConfig";
import Appconfig from "./pages/appConfig";
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";
import EmployeeList from "./pages/employeeView";
2023-04-20 15:36:51 +08:00
import ReportView from "./pages/reportView";
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";
import TopologyMap from "./pages/topologyMap";
import SupplementaryCalc from "./pages/supplementaryCalc";
2022-02-25 09:24:56 +08:00
2022-04-22 14:35:51 +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
// 读取系统多语言配置
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 Home = (props) => props.children;
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
// historicalPayroll 历史工资单查看
// salaryAdjustmentRecords 调薪记录查看
// mySalaryMobile 我的薪资福利-移动端
// mySalaryMobile 我的薪资福利-移动端
2022-09-09 10:29:12 +08:00
// mySalary 我的薪资福利
// mySalaryView 我的薪资福利-查看工资单
2022-02-25 09:24:56 +08:00
// socialSecurityBenefits 社保福利
// programme 社保福利方案
// archives 社保福利档案
// standingBook 社保福利台账
// sbofflineComparison 社保福利台账线下对比
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 考勤引用
2022-11-03 17:52:02 +08:00
// specialAddDeduction 专项附件扣除
2022-03-10 10:58:26 +08:00
// ledger 薪资账套
// calculate 薪资核算
2022-04-22 14:35:51 +08:00
// calculateDetail 核算详情
// DoCalcDetail 核算详情页面-新
// CalcView 核算查看页面-新
// OfflineCompare 薪资核算线下对比-新
2022-04-22 14:35:51 +08:00
// placeOnFileDetail 核算归档详情
// compareDetail 线下线上对比
2022-03-10 10:58:26 +08:00
// payroll 工资单发放
2022-06-02 13:51:45 +08:00
// declare 个税申报表
2022-03-18 10:38:43 +08:00
// generateDeclarationDetail 个税单详情
2022-03-10 10:58:26 +08:00
// taxRate 个税税率表
// taxAgent 个税扣缴义务人
2022-06-06 14:31:20 +08:00
// mobilepayroll 移动端工资单
// sysconfig 系統配置
// sysconfig-1 规则配置
// appconfig 应用配置
// fieldManagement 字段管理
2023-04-11 13:41:56 +08:00
// analysisOfSalaryStatistics 薪酬统计分析
2023-04-20 15:36:51 +08:00
// reportView 薪酬报表查看
2023-03-13 10:43:25 +08:00
// externalPersonManage 非系统人员管理
2023-10-13 09:51:50 +08:00
// adjustSalaryManage 档案管理
// supplementaryCalc 补算
2022-02-25 09:24:56 +08:00
const Routes = (
2024-05-16 10:03:05 +08:00
<Route key="hrmSalary" path="hrmSalary" onEnter={getLocaleLabel} component={Home}>
<Route key="historicalPayroll" path="historicalPayroll" component={HistoricalPayroll}/>
<Route key="salaryAdjustmentRecords" path="salaryAdjustmentRecords" component={SalaryAdjustmentRecords}/>
<Route key="mySalaryMobile" path="mySalaryMobile" component={MySalaryMobile}/>
<Route key="mySalary" path="mySalary" component={MySalary}/>
<Route key="mySalaryView" path="mySalary/:salaryInfoId" component={MySalaryView}/>
2024-05-16 10:03:05 +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}/>
2024-05-16 10:03:05 +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>
<Route key="salaryItem" path="salaryItem" component={SalaryItem}/>
<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}>
<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>
<Route key="ledger" path="ledger" component={Ledger}/>
<Route key="calculate" path="calculate" component={Calculate}/>
<Route key="calculateDetail" path="calculateDetail" component={CalculateDetail}/>
<Route key="doCalc" path="calculate/:salaryAcctRecordId" component={DoCalcDetail}/>
<Route key="calcOc" path="calcOc/:salaryAcctRecordId" component={OfflineCompare}/>
<Route key="calcView" path="calcView/:salaryAcctRecordId" component={CalcView}/>
<Route key="placeOnFileDetail" path="placeOnFileDetail" component={PlaceOnFileDetail}/>
<Route key="compareDetail" path="compareDetail" component={CompareDetail}/>
<Route key="payroll" path="payroll" component={Payroll}/>
<Route key="watermarkPreview" path="payroll/watermark/preview" component={WatermarkPreview}/>
<Route key="payrollGrant" path="payrollGrant" component={PayrollGrant}/>
<Route key="payrollDetail" path="payrollDetail" component={PayrollDetail}/>
<Route key="templatePreview" path="templatePreview" component={TemplatePreview}/>
<Route key="payrollinfo" path="payrollinfo" component={PayrollTemplatePreview}/>
<Route key="declare" path="declare" component={Declare}/>
2024-05-16 10:03:05 +08:00
<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}/>
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}/>
<Route key="analysisOfSalaryStatisticsId" path="analysisOfSalaryStatistics/:employeeId" component={EmployeeList}/>
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}/>
<Route key="topologyView" path="topologyView/:salarySobId/:salaryItemId" component={TopologyMap}/>
<Route key="supplementaryCalc" path="supplementaryCalc" component={SupplementaryCalc}/>
2022-02-25 09:24:56 +08:00
</Route>
);
module.exports = {
Route: Routes,
store: stores
2022-02-25 09:24:56 +08:00
};