{getLabel(826, "确定")}
+ ]}
+ >
+ {getSearchs(cusBeneForm, conditions, 1, false)}
+
+ );
+ }
+}
+
+export default CustomBenefitsDialog;
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js
index 6e8645a3..1f47fc37 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js
@@ -1,14 +1,15 @@
import React from "react";
import { inject, observer } from "mobx-react";
import { toJS } from "mobx";
-import { Button, Dropdown, Menu, message, Modal } from "antd";
+import { Button, Dropdown, Menu, Modal } from "antd";
import { WeaLocaleProvider, WeaNewScroll, WeaSelect, WeaSlideModal, WeaTab, WeaTools, WeaTop } from "ecCom";
import { getSearchs, renderNoright } from "../../../util";
import SlideModalTitle from "../../../components/slideModalTitle";
import TipLabel from "../../../components/TipLabel";
import DefaultSlideForm from "./defaultSlideForm";
-import CustomNewModal from "./customNewModal";
-import { paymentScopeEnum, welfareTypeEnum } from "./enum";
+// import CustomNewModal from "./customNewModal";
+// import { paymentScopeEnum, welfareTypeEnum } from "./enum";
+import CustomBenefitsDialog from "./customBenefitsDialog";
import CustomPaginationTable from "../../../components/customPaginationTable";
import TwoColContent from "../../../components/twoColContent";
import CopySchemaModal from "./copySchemaModal";
@@ -32,7 +33,8 @@ export default class Programme extends React.Component {
copyId: "",
customNewVisible: false,
customEdit: false,
- showSearchAd: false
+ showSearchAd: false,
+ cusBeneDialog: { visible: false, id: "" }
};
this.pageInfo = { current: 1, pageSize: 10 };
@@ -162,26 +164,27 @@ export default class Programme extends React.Component {
};
onCustomEdit = (record) => {
- const {
- programmeStore: { getCustomForm, setCustomNewVisible, setCustomRequest },
- taxAgentStore: { showOperateBtn }
- } = this.props;
- if (!showOperateBtn) {
- message.warning(getLabel(543156, "请设置编辑权限!"));
- return;
- }
- getCustomForm();
- setCustomNewVisible(true);
- this.setState({
- customEdit: true
- });
- setCustomRequest({
- insuranceName: record["insuranceName"],
- id: record.id,
- isUse: record.isUse,
- paymentScope: record["paymentScope"].split(",").map(item => paymentScopeEnum[item]).join(","),
- welfareType: welfareTypeEnum[record.welfareType]
- });
+ this.setState({ cusBeneDialog: { visible: true, id: record.id } });
+ // const {
+ // programmeStore: { getCustomForm, setCustomNewVisible, setCustomRequest },
+ // taxAgentStore: { showOperateBtn }
+ // } = this.props;
+ // if (!showOperateBtn) {
+ // message.warning(getLabel(543156, "请设置编辑权限!"));
+ // return;
+ // }
+ // getCustomForm();
+ // setCustomNewVisible(true);
+ // this.setState({
+ // customEdit: true
+ // });
+ // setCustomRequest({
+ // insuranceName: record["insuranceName"],
+ // id: record.id,
+ // isUse: record.isUse,
+ // paymentScope: record["paymentScope"].split(",").map(item => paymentScopeEnum[item]).join(","),
+ // welfareType: welfareTypeEnum[record.welfareType]
+ // });
};
// 页面跳转
@@ -192,7 +195,7 @@ export default class Programme extends React.Component {
}
render() {
- const { showSearchAd } = this.state;
+ const { showSearchAd, cusBeneDialog } = this.state;
const { programmeStore, taxAgentStore: { showOperateBtn } } = this.props;
const { loading, hasRight, form, getTableDatas } = programmeStore;
const {
@@ -260,17 +263,18 @@ export default class Programme extends React.Component {
};
const handleCustomNewClick = () => {
- const {
- programmeStore: {
- getCustomForm,
- setCustomNewVisible,
- setCustomRequest
- }
- } = this.props;
- getCustomForm();
- setCustomRequest({});
- setCustomNewVisible(true);
- this.setState({ customEdit: false });
+ // const {
+ // programmeStore: {
+ // getCustomForm,
+ // setCustomNewVisible,
+ // setCustomRequest
+ // }
+ // } = this.props;
+ // getCustomForm();
+ // setCustomRequest({});
+ // setCustomNewVisible(true);
+ // this.setState({ customEdit: false });
+ this.setState({ cusBeneDialog: { ...this.state.cusBeneDialog, visible: true } });
};
const handleOnSave = () => {
@@ -486,18 +490,22 @@ export default class Programme extends React.Component {
]
}
/>}
-
- {customNewVisible &&
-