custom-旭化成

This commit is contained in:
lys 2025-01-06 15:45:25 +08:00
parent 21a2e21c3f
commit 4c147d79dd
7 changed files with 112 additions and 0 deletions

View File

@ -54,6 +54,8 @@ import TopologyMap from "./pages/topologyMap";
import SupplementaryCalc from "./pages/supplementaryCalc";
import VariableSalary from "./pages/variableSalary";
import Layout from "./layout";
import CustomRoutes from "./pages/custom-pages";
import stores from "./stores";
import "./style/index";
// 读取系统多语言配置
@ -118,6 +120,7 @@ const Routes = (
<Route key="topologyView" path="topologyView/:salarySobId/:salaryItemId" component={TopologyMap}/>
<Route key="supplementaryCalc" path="supplementaryCalc" component={SupplementaryCalc}/>
<Route key="variableSalary" path="variableSalary" component={VariableSalary}/>
{CustomRoutes}
</Route>
);

View File

@ -0,0 +1,10 @@
import React from "react";
import Route from "react-router/lib/Route";
import DepartmentReport from "./xhc/departmentReport";
const CustomRoutes = [
<Route key="customPage_departmentReport_xhc" path="customPage_departmentReport_xhc"
component={DepartmentReport}/>
];
export default CustomRoutes;

View File

@ -0,0 +1,68 @@
export const xhcConditions = [
{
items: [
{
browserConditionParam: {
completeParams: {},
conditionDataParams: {},
dataParams: {},
destDataParams: {},
hasAddBtn: false,
hasAdvanceSerach: true,
idSeparator: ",",
isAutoComplete: 1,
isDetail: 0,
isMultCheckbox: false,
isSingle: false,
linkUrl: "",
pageSize: 10,
quickSearchName: "",
replaceDatas: [],
title: getLabel(111, "分部"),
type: "164",
viewAttr: 2
},
colSpan: 2,
conditionType: "BROWSER",
domkey: ["subCompany"],
fieldcol: 18,
isQuickSearch: false,
label: "所属公司",
labelcol: 6,
viewAttr: 2
},
{
browserConditionParam: {
completeParams: {},
conditionDataParams: {},
dataParams: {},
destDataParams: {},
hasAddBtn: false,
hasAdvanceSerach: true,
idSeparator: ",",
isAutoComplete: 1,
isDetail: 0,
isMultCheckbox: false,
isSingle: false,
linkUrl: "",
pageSize: 10,
quickSearchName: "",
replaceDatas: [],
title: getLabel(111, "部门"),
type: "57",
viewAttr: 2
},
colSpan: 2,
conditionType: "BROWSER",
domkey: ["department"],
fieldcol: 18,
isQuickSearch: false,
label: "所属部门",
labelcol: 6,
viewAttr: 2
}
],
title: "",
defaultshow: true
}
];

View File

@ -0,0 +1,22 @@
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import { WeaLocaleProvider, WeaSearchGroup, WeaTop } from "ecCom";
import { Button } from "antd";
import "./index.less";
const getLabel = WeaLocaleProvider.getLabel;
@inject("XHCStore")
@observer
class DepartmentReport extends Component {
render() {
return (<WeaTop
title={getLabel(111, "报表管理")} buttonSpace={10} className="xhc_report"
icon={<i className="icon-coms-fa"/>} iconBgcolor="#F14A2D"
buttons={[<Button type="primary">{getLabel(17416, "导出")}</Button>]}>
<WeaSearchGroup title="" showGroup needTigger items={[]}></WeaSearchGroup>
</WeaTop>);
}
}
export default DepartmentReport;

View File

@ -1,2 +1,5 @@
import { XHCStore } from "./xhc";
module.exports = {
XHCStore: new XHCStore() //旭化成
};

View File

@ -0,0 +1,6 @@
import { observable } from "mobx";
import { WeaForm } from "comsMobx";
export class XHCStore {
@observable form = new WeaForm();
}