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