fix: 修复计划如果是创建中可以修改映射商品

This commit is contained in:
zhangds 2022-10-18 15:30:06 +08:00
parent 57fc9746be
commit af6944e53a
3 changed files with 4 additions and 18 deletions

View File

@ -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({

View File

@ -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 });

View File

@ -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>
// }
} }
}} }}
/> />