fix: 修复计划如果是创建中可以修改映射商品
This commit is contained in:
parent
57fc9746be
commit
af6944e53a
|
@ -948,8 +948,9 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
|
||||||
(req, msg) => {
|
(req, msg) => {
|
||||||
// 设置所有的商品数据
|
// 设置所有的商品数据
|
||||||
sessionStorage.setItem("productsList", JSON.stringify(req.data));
|
sessionStorage.setItem("productsList", JSON.stringify(req.data));
|
||||||
// 如果是复制删除 code_batch_id
|
// 如果是复制删除 code_batch_id 如果是计划中的创建中数据
|
||||||
if (state.isState === "1") {
|
let plan_status = sessionStorage.getItem("plan_status");
|
||||||
|
if (state.isState === "1" || plan_status === "0") {
|
||||||
delete rowData.code_batch_id;
|
delete rowData.code_batch_id;
|
||||||
}
|
}
|
||||||
setState({
|
setState({
|
||||||
|
|
|
@ -143,8 +143,6 @@ export default class add extends React.Component {
|
||||||
this.refs["step2-" + i].submit();
|
this.refs["step2-" + i].submit();
|
||||||
}
|
}
|
||||||
}, 500);
|
}, 500);
|
||||||
} else {
|
|
||||||
this.addNewkey();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
(err) => {
|
(err) => {
|
||||||
|
@ -338,6 +336,7 @@ export default class add extends React.Component {
|
||||||
}
|
}
|
||||||
addNewkey() {
|
addNewkey() {
|
||||||
let step = "step2-" + this.state.keys.length;
|
let step = "step2-" + this.state.keys.length;
|
||||||
|
console.log("step =>", step);
|
||||||
this.state.keys.push(step);
|
this.state.keys.push(step);
|
||||||
this.setState({ keys: this.state.keys });
|
this.setState({ keys: this.state.keys });
|
||||||
this.setState({ isload: true });
|
this.setState({ isload: true });
|
||||||
|
|
|
@ -2009,20 +2009,6 @@ export default class acclist extends React.Component {
|
||||||
} else {
|
} else {
|
||||||
return <div className="isImport">-</div>;
|
return <div className="isImport">-</div>;
|
||||||
}
|
}
|
||||||
// if(rowData.type == "repeat")
|
|
||||||
// {
|
|
||||||
// return <Button className="isImport" onClick={(e)=>{
|
|
||||||
|
|
||||||
// this.allowImport(rowData)
|
|
||||||
// }}>是</Button>
|
|
||||||
// }
|
|
||||||
// if(rowData.type == "success")
|
|
||||||
// {
|
|
||||||
// return <Button className="isImport">否</Button>
|
|
||||||
// }
|
|
||||||
// else{
|
|
||||||
// return <div className="isImport">-</div>
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue