产品-规则设置系统算税开关关闭后禁用

This commit is contained in:
黎永顺 2023-07-18 17:27:51 +08:00
parent ce93eff734
commit da3fd957ab
1 changed files with 2 additions and 1 deletions

View File

@ -225,7 +225,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: {
@ -331,6 +331,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 }}>