Merge branch 'feature/2.8.3.2307.02-规则设置系统算税开关关闭后禁用' into develop

This commit is contained in:
黎永顺 2023-07-21 11:40:53 +08:00
commit 9b80413e01
1 changed files with 2 additions and 1 deletions

View File

@ -252,7 +252,7 @@ export default class Index extends Component {
const { saveParams } = this.state;
Modal.confirm({
title: getLabel(131329, "信息确认"),
content: getLabel(111, "确认要保存吗?"),
content: (key === "operateTaxDeclaration" && val === "0") ? getLabel(111, "关闭之后,将无法开启,确认要保存吗?") : getLabel(111, "确认要保存吗?"),
onOk: () => {
this.setState({
saveParams: {
@ -365,6 +365,7 @@ export default class Index extends Component {
<WeaSearchGroup title={getLabel(111, "算税规则")} showGroup center>
<WeaFormItem label={getLabel(111, "系统算税")} labelCol={{ span: 8 }} wrapperCol={{ span: 16 }}>
<WeaCheckbox display="switch" value={operateTaxDeclaration}
disabled={!operateTaxDeclaration || operateTaxDeclaration === "0"}
onChange={val => this.handleChange("operateTaxDeclaration", val)}/>
</WeaFormItem>
<WeaFormItem label={getLabel(111, "撤回申报表")} labelCol={{ span: 8 }} wrapperCol={{ span: 16 }}>