From ac2fad21c6341f2992d7e3f1f8297b63f52046de Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Tue, 27 Feb 2024 10:07:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=80=EF=B8=8F=20fix:=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=BB=84=E5=90=88=E5=95=86=E5=93=81=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=A8=A1=E5=9D=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/combiningAdd/index.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 ? (