🦀️ fix: 修复组合商品管理模块bug
This commit is contained in:
parent
8789083edb
commit
ac2fad21c6
|
@ -279,7 +279,7 @@ export default class combiningAdd extends React.Component {
|
||||||
|
|
||||||
/* 编辑 */
|
/* 编辑 */
|
||||||
if (this.state.isState === 2) {
|
if (this.state.isState === 2) {
|
||||||
data.disabled = true
|
data.disabled = this.codeStatus !== -1 ? true : false
|
||||||
data.stock = item.stock
|
data.stock = item.stock
|
||||||
data.quantity = item.total_stock
|
data.quantity = item.total_stock
|
||||||
const exclude = ["total_stock", "use_stock"]
|
const exclude = ["total_stock", "use_stock"]
|
||||||
|
@ -994,7 +994,7 @@ export default class combiningAdd extends React.Component {
|
||||||
<div className="line">{this.state.codeInfo.restrict}</div>
|
<div className="line">{this.state.codeInfo.restrict}</div>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|
||||||
{this.state.isState === 2 ? (
|
{this.state.isState === 2 && this.codeStatus !== -1 ? (
|
||||||
<>
|
<>
|
||||||
<FormItem labelname="发放总量" prop="issued" id="issued">
|
<FormItem labelname="发放总量" prop="issued" id="issued">
|
||||||
<div className="line">{this.state.codeInfo.issued}</div>
|
<div className="line">{this.state.codeInfo.issued}</div>
|
||||||
|
@ -1181,12 +1181,13 @@ export default class combiningAdd extends React.Component {
|
||||||
multiple
|
multiple
|
||||||
value={this.state.rank}
|
value={this.state.rank}
|
||||||
placeholder="选择一项"
|
placeholder="选择一项"
|
||||||
|
disabled={this.state.isState == 2 && this.codeStatus !== -1}
|
||||||
width={410}
|
width={410}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
this.onRankChange(e)
|
this.onRankChange(e)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{this.state.isState !== 2 ? (
|
{this.state.isState !== 2 || this.codeStatus === -1 ? (
|
||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="primary"
|
||||||
style={{ marginLeft: "20px" }}
|
style={{ marginLeft: "20px" }}
|
||||||
|
|
Loading…
Reference in New Issue