+ constructor(props) {
+ super(props);
+ this.state = {
+ current: 0
+ };
+ }
+ renderTitle = () => {
+ const { tmplId } = this.props;
+ return
+
+
+
{tmplId ? getLabel(543583, "编辑工资单模板") : getLabel(543582, "新建工资单模板")}
+
+
+
+
;
+ };
+ renderSlideContent = () => {
+ const { current } = this.state;
+ let dom = null;
+ switch (current) {
+ case 0:
+ dom =
;
+ break;
+ default:
+ break;
+ }
+ return dom;
+ };
+
+ render() {
+ const { current } = this.state;
+ const tabs = [
+ { key: 0, title: getLabel(82751, "基础设置") },
+ { key: 1, title: getLabel(543579, "正常核算工资单模板") },
+ { key: 2, title: getLabel(543580, "补发工资单模版") }
+ ];
+ return (
+
+
+ {
+ _.map(tabs, item => {
+ const { key, title } = item;
+ return ;
+ })
+ }
+
+ {this.renderSlideContent()}
+ )}
+ />
);
}
}
diff --git a/pc4mobx/hrmSalary/pages/payrollRelease/index.js b/pc4mobx/hrmSalary/pages/payrollRelease/index.js
index 02cfd374..a6ae287d 100644
--- a/pc4mobx/hrmSalary/pages/payrollRelease/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollRelease/index.js
@@ -11,6 +11,7 @@ import GrantQuery from "./components/reqQuery/grantQuery";
import TemplateQuery from "./components/reqQuery/templateQuery";
import GrantTableList from "./components/grantTableList";
import PayrollTemplateTableList from "./components/payrollTemplateTableList";
+import TemplateBaseSettings from "../payroll/templateBaseSettings";
import { Button } from "antd";
import moment from "moment";
import "./index.less";
@@ -23,7 +24,7 @@ class Index extends Component {
constructor(props) {
super(props);
this.state = {
- selectedKey: "grant", isRefresh: false,
+ selectedKey: "grant", isRefresh: false, baseSetSaveLoading: false,
queryParams: {
salarySobId: "", name: "",
dateRange: [
@@ -33,6 +34,7 @@ class Index extends Component {
}
};
this.templateRef = null;
+ this.baseSetRef = null;
}
renderReqBtns = () => {
@@ -53,7 +55,9 @@ class Index extends Component {
const loading = this.templateRef ? this.templateRef.wrappedInstance.state.delLoading : false;
const delDisabled = !this.templateRef || _.isEmpty(this.templateRef.wrappedInstance.state.selectedRowKeys);
const btns = [
-