新增补缴必填项提示

This commit is contained in:
黎永顺 2023-01-04 15:46:32 +08:00
parent 4f89a7ef4f
commit fc8f5a4625
1 changed files with 8 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class SupplementarySlide extends Component {
handleSaveSupplementSalary = () => {
const { billMonth, paymentOrganization, onCancel } = this.props;
const { baseInfo } = this.state;
const { supplementType, projects, projectsAll, billMonthList, includes } = baseInfo;
const { supplementType, projects, projectsAll, billMonthList, includes, historyMonth } = baseInfo;
if (!projects || !billMonthList || !includes) {
Modal.warning({
title: "信息确认",
@ -124,6 +124,13 @@ class SupplementarySlide extends Component {
});
return;
}
if (supplementType === "2" && !historyMonth) {
Modal.warning({
title: "信息确认",
content: "必要信息不完整,红色*为必填项!"
});
return;
}
const payload = {
supplementType,
projects: projectsAll.split(",").concat(projects.split(",")),