产品-薪酬统计分析模块整理

This commit is contained in:
黎永顺 2023-04-28 10:00:10 +08:00
parent 835a04c72b
commit 028dcd211a
4 changed files with 17 additions and 13 deletions

View File

@ -168,11 +168,12 @@ class DimensionSlide extends Component {
render() {
const { loading, dimType, setting4RationGroupSpacing, setting4RationGroupIndividual } = this.state;
const { form, condition } = this.props;
console.log(this.props);
return (
<WeaDialog
{...this.props}
initLoadCss hasScroll
style={{ width: 900, height: 350 }}
style={{ width: 900, height: 450 }}
className="dimensionSlideWrapper"
title={
<div className="dimensionTitle">

View File

@ -240,7 +240,7 @@ class Index extends Component {
};
render() {
const { taxAgentStore: { showOperateBtn }, attendanceStore: { statisticsForm, reportForm } } = this.props;
const { taxAgentStore: { statisticsReportBtn }, attendanceStore: { statisticsForm, reportForm } } = this.props;
const { selectedKey, modalReq, slideReq, conditions, reportConditions, reportName } = this.state;
const buttons = [
<Button type="primary" onClick={() => this.handleReqBtnsClick("addReport")}>{getLabel(111, "新建报表")}</Button>,
@ -252,13 +252,13 @@ class Index extends Component {
onSearch={() => this.handleReqBtnsClick("search")}/>
];
const tabs = [
{ key: "statistics", title: getLabel(111, "统计表") },
{ key: "detail", title: getLabel(111, "员工明细") }
{ key: "statistics", title: getLabel(111, "统计表") }
// { key: "detail", title: getLabel(111, "员工明细") }
];
return (
<WeaReqTop
title={getLabel(111, "薪酬统计分析")} icon={<i className="icon-coms-fa"/>}
iconBgcolor="#F14A2D" buttons={!showOperateBtn ? buttons.slice(-1) : buttons} buttonSpace={10}
title={getLabel(111, "薪酬统计报表")} icon={<i className="icon-coms-fa"/>}
iconBgcolor="#F14A2D" buttons={!statisticsReportBtn ? buttons.slice(-1) : buttons} buttonSpace={10}
showDropIcon={false} tabDatas={tabs} className="xc_tj_fx_wrapper"
selectedKey={selectedKey}
onChange={selectedKey => this.setState({ selectedKey }, () => this.state.selectedKey === "statistics" && this.initReportFormCondition())}

View File

@ -339,7 +339,7 @@ class CustomStatisticsItemsModal extends Component {
onClick={this.handleSaveStatisticalItems}>{getLabel(111, "保存")}</Button>
</div>
}
style={{ width: 900, height: 500 }}
style={{ width: 900, height: 450 }}
className="statisticItemsWrapper"
>
<div className="statisticItemsBox">
@ -357,21 +357,20 @@ class CustomStatisticsItemsModal extends Component {
})) : []}
completeParams={{
type: 162,
fielddbtype: "browser.salaryItems",
fielddbtype: "browser.salaryItemBrowser",
f_weaver_belongto_usertype: "0"
}}
conditionDataParams={{
type: "browser.salaryItems",
fielddbtype: "browser.salaryItems",
type: "browser.salaryItemBrowser",
fielddbtype: "browser.salaryItemBrowser",
f_weaver_belongto_usertype: "0"
}}
dataParams={{
type: "browser.salaryItems",
type: "browser.salaryItemBrowser",
f_weaver_belongto_usertype: "0"
}}
destDataParams={{
type: "browser.salaryItems",
type: "browser.salaryItemBrowser",
f_weaver_belongto_usertype: "0"
}}
isMultCheckbox

View File

@ -16,6 +16,7 @@ export class TaxAgentStore {
@observable showSearchAd = false; // 高级搜索面板显示
@observable showOperateBtn = false; // 页面操作按钮显示权限
@observable showSalaryItemBtn = false; // 薪资项目管理页面操作按钮显示权限
@observable statisticsReportBtn = false; // 薪酬统计报表页面操作按钮显示权限
@observable loading = false; // 数据加载状态
@observable modalVisiable = false; // EditModal 模态框
@observable columns = [];
@ -37,6 +38,7 @@ export class TaxAgentStore {
@action setShowOperateBtn = bool => (this.showOperateBtn = bool);
@action setSalaryItemBtn = bool => (this.showSalaryItemBtn = bool);//薪资项目权限
@action setStatisticsReportBtn = bool => (this.statisticsReportBtn = bool);//薪酬统计报表权限
// 初始化操作
@action
@ -141,6 +143,8 @@ export class TaxAgentStore {
!isOpenDevolution ? true : isAdminEnable ? true : false
);
this.setSalaryItemBtn((isOpenDevolution && (isChief || isAdminEnable)));
//薪酬统计报表权限
this.setStatisticsReportBtn(!isOpenDevolution ? true : !!(isAdminEnable || isChief));
resolve({ status, data });
} else {
reject();