feature/2.17.1.2411.01-薪酬报表薪资明细显示模式

This commit is contained in:
lys 2024-12-04 17:39:23 +08:00
parent 5d817c9594
commit 5c8f045373
3 changed files with 11 additions and 8 deletions

View File

@ -308,7 +308,7 @@ class SalaryDetails extends Component {
onSuccess={this.getPageListTemplatelist}/>
{/*薪资明细自定义列模板管理*/}
<SalaryTempMangerDialog {...tempManageDialog} onDelete={this.handleDelTemp} isQuery={tempManageQuery}
onClick={this.handelAddTemp} onCancel={() => this.setState({
onSuccess={this.getPageListTemplatelist} onCancel={() => this.setState({
tempManageDialog: { ...tempManageDialog, completeURL: "", visible: false }
})}/>
</div>

View File

@ -45,15 +45,15 @@ class SalaryDetailTempDialog extends Component {
...item, items: _.map(item.items, o => {
if (getKey(o) === "sharedType") {
return {
...o, label: getLabel(o.lanId, o.label), value: id ? String(template["sharedType"]) : "0",
...o, label: getLabel(o.lanId, o.label), value: id ? String(template["sharedType"]) : "1",
options: [
{ key: "0", showname: getLabel(111, "公共") },
{ key: "1", showname: getLabel(111, "私有") }
{ key: "1", showname: getLabel(111, "私有") },
{ key: "0", showname: getLabel(111, "共享") }
]
};
} else if (getKey(o) === "limitIds") {
return {
...o, label: getLabel(o.lanId, o.label), hide: !id || (id && template["sharedType"] === 0),
...o, label: getLabel(o.lanId, o.label), hide: !id || (id && template["sharedType"] === 1),
value: id ? template["limitIds"].join(",") : "",
options: _.map(data, o => ({ key: o.id, showname: o.content }))
};
@ -98,8 +98,8 @@ class SalaryDetailTempDialog extends Component {
...item, items: _.map(item.items, o => {
if (key === "sharedType" && getKey(o) === "limitIds") {
return {
...o, hide: value !== "1", viewAttr: value === "1" ? 3 : 1,
rules: value === "1" ? "required|string" : ""
...o, hide: value !== "0", viewAttr: value === "0" ? 3 : 1,
rules: value === "0" ? "required|string" : ""
};
}
return { ...o };

View File

@ -80,7 +80,10 @@ class SalaryTempMangerDialog extends Component {
}, () => callback && callback())}
onSuccess={() => this.setState({
tempAdminDialog: { visible: false, dataParams: { page: "salary_details_report" } }
}, () => this.tempManageRef.getData())}/>
}, () => {
this.props.onSuccess();
this.tempManageRef.getData();
})}/>
</CustomTransferDialog>);
}
}