- {salaryTemplateShowSet.theme.replace("${companyName}", "上海泛微").replace("${salaryMonth}", moment(new Date()).format("YYYY-MM"))}
+ {salaryTemplateShowSet.theme.replace("${companyName}", "").replace("${salaryMonth}", moment(new Date()).format("YYYY-MM"))}
diff --git a/pc4mobx/hrmSalary/pages/salaryFile/index.js b/pc4mobx/hrmSalary/pages/salaryFile/index.js
index 0a57dc82..1465078a 100644
--- a/pc4mobx/hrmSalary/pages/salaryFile/index.js
+++ b/pc4mobx/hrmSalary/pages/salaryFile/index.js
@@ -568,7 +568,7 @@ export default class SalaryFile extends React.Component {
>
} // 左侧图标
+ icon={
} // 左侧图标
iconBgcolor="#F14A2D" // 左侧图标背景色
showDropIcon={true} // 是否显示下拉按钮
dropMenuDatas={rightMenu} // 下拉菜单(和页面的右键菜单相同)
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/index.js b/pc4mobx/hrmSalary/pages/salaryItem/index.js
index df47eb0e..33003d42 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/index.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/index.js
@@ -292,7 +292,7 @@ export default class SalaryItem extends React.Component {
>
} // 左侧图标
+ icon={
} // 左侧图标
iconBgcolor="#F14A2D" // 左侧图标背景色
showDropIcon={true} // 是否显示下拉按钮
dropMenuDatas={rightMenu} // 下拉菜单(和页面的右键菜单相同)
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js
index eca8f1f1..ec8f6898 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js
@@ -226,7 +226,7 @@ export default class Archives extends React.Component {
>
} // 左侧图标
+ icon={
} // 左侧图标
iconBgcolor="#F14A2D" // 左侧图标背景色
showDropIcon={true} // 是否显示下拉按钮
dropMenuDatas={rightMenu} // 下拉菜单(和页面的右键菜单相同)
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/copySchemaModal.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/copySchemaModal.js
index e3b2cf29..f0d8a2aa 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/copySchemaModal.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/copySchemaModal.js
@@ -1,31 +1,47 @@
import React from "react";
-import { Col, Modal, Row } from "antd";
-import { WeaInput } from "ecCom";
+import { WeaDialog, WeaError, WeaFormItem, WeaInput } from "ecCom";
export default class CopySchemaModal extends React.Component {
constructor(props) {
super(props);
this.state = {
- value: ""
+ value: this.props.value || ""
};
}
render() {
return (
-
this.props.onCancel()}
- visible={this.props.visible}>
-
-
- {`${this.props.title}名称`}
-
-
- {
- this.setState({ value: v });
- this.props.onChange(v);
- }}/>
-
-
-
+
this.props.onCancel()}
+ visible={this.props.visible}>
+
+
+
+ {
+ if(v === '') this.refs.weaError.showError();
+ this.setState({ value: v });
+ this.props.onChange(v);
+ }}/>
+
+
+
+
);
}
}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js
index 764b1659..607e1274 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js
@@ -1,10 +1,8 @@
import React from "react";
import { inject, observer } from "mobx-react";
import { toJS } from "mobx";
-import { Button, DatePicker, Dropdown, Menu, message, Modal, Switch } from "antd";
-
+import { Button, Dropdown, Menu, message, Modal, Switch } from "antd";
import { WeaRightMenu, WeaSelect, WeaSlideModal, WeaTop } from "ecCom";
-
import { WeaTableNew } from "comsMobx";
import "./index.less";
import { renderNoright } from "../../../util"; // 渲染form数据的方法:因为多个页面都会使用,所以抽的公共方法在util中
@@ -20,8 +18,6 @@ import CopySchemaModal from "./copySchemaModal";
const WeaMobxTable = WeaTableNew.WeaTable;
-const { MonthPicker } = DatePicker;
-
@inject("programmeStore", "taxAgentStore", "salaryFileStore")
@observer
export default class Programme extends React.Component {
@@ -436,8 +432,12 @@ export default class Programme extends React.Component {
const handleCopyModalSave = () => {
const { programmeStore: { copyScheme } } = this.props;
const { copyId, copyModalValue } = this.state;
- copyScheme({ id: copyId, schemeName: copyModalValue });
- this.setState({ copyModalVisible: false });
+ if(_.isEmpty(this.refs.copyRef.state.value)){
+ this.refs.copyRef.refs.weaError.showError();
+ }else{
+ copyScheme({ id: copyId, schemeName: copyModalValue });
+ this.setState({ copyModalVisible: false });
+ }
};
const handleSlideClose = () => {
@@ -454,7 +454,7 @@ export default class Programme extends React.Component {
{/* 收藏功能: 配置之后显示 收藏、帮助、显示页面地址 这3个功能 */}
} // 左侧图标
+ icon={
} // 左侧图标
iconBgcolor="#F14A2D" // 左侧图标背景色
showDropIcon={true} // 是否显示下拉按钮
dropMenuDatas={rightMenu} // 下拉菜单(和页面的右键菜单相同)
@@ -573,6 +573,7 @@ export default class Programme extends React.Component {
{this.state.copyModalVisible &&
it.viewcondition === selectedKey)[0].title}
visible={this.state.copyModalVisible}
value={this.state.copyModalValue}
@@ -581,13 +582,13 @@ export default class Programme extends React.Component {
this.setState({ copyModalVisible: false });
}}
footer={
-
+ ]
}
/>}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js
index 7bb05678..bbb547ad 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js
@@ -437,7 +437,7 @@ export default class StandingBook extends React.Component {
>
} // 左侧图标
+ icon={} // 左侧图标
iconBgcolor="#F14A2D" // 左侧图标背景色
buttons={showOperateBtn ? rightBtns : []}
// showDropIcon={true} // 是否显示下拉按钮
diff --git a/pc4mobx/hrmSalary/pages/taxAgent/slideTaxagentUser.js b/pc4mobx/hrmSalary/pages/taxAgent/slideTaxagentUser.js
index 6281d96b..a076a2ea 100644
--- a/pc4mobx/hrmSalary/pages/taxAgent/slideTaxagentUser.js
+++ b/pc4mobx/hrmSalary/pages/taxAgent/slideTaxagentUser.js
@@ -147,7 +147,7 @@ export default class SlideTaxagentUser extends React.Component {
float: "left"
}}>
{
- hideIconInTax && !showSalaryItemBtn &&
+ (hideIconInTax || showSalaryItemBtn) &&