diff --git a/src/pages/exchangecode/combiningAdd/index.jsx b/src/pages/exchangecode/combiningAdd/index.jsx index 7722fa1a..2325ac4c 100644 --- a/src/pages/exchangecode/combiningAdd/index.jsx +++ b/src/pages/exchangecode/combiningAdd/index.jsx @@ -279,7 +279,7 @@ export default class combiningAdd extends React.Component { /* 编辑 */ if (this.state.isState === 2) { - data.disabled = true + data.disabled = this.codeStatus !== -1 ? true : false data.stock = item.stock data.quantity = item.total_stock const exclude = ["total_stock", "use_stock"] @@ -994,7 +994,7 @@ export default class combiningAdd extends React.Component {
{this.state.codeInfo.restrict}
- {this.state.isState === 2 ? ( + {this.state.isState === 2 && this.codeStatus !== -1 ? ( <>
{this.state.codeInfo.issued}
@@ -1181,12 +1181,13 @@ export default class combiningAdd extends React.Component { multiple value={this.state.rank} placeholder="选择一项" + disabled={this.state.isState == 2 && this.codeStatus !== -1} width={410} onChange={(e) => { this.onRankChange(e) }} /> - {this.state.isState !== 2 ? ( + {this.state.isState !== 2 || this.codeStatus === -1 ? (