From af6944e53a973caee06892d08c91c1f7430fddbf Mon Sep 17 00:00:00 2001 From: zhangds Date: Tue, 18 Oct 2022 15:30:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=A6=82=E6=9E=9C=E6=98=AF=E5=88=9B=E5=BB=BA=E4=B8=AD=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E4=BF=AE=E6=94=B9=E6=98=A0=E5=B0=84=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UseCouponAddEdit/index.jsx | 5 +++-- src/pages/plan/add/plan-copy.js | 3 +-- src/pages/plan/add/step2.js | 14 -------------- 3 files changed, 4 insertions(+), 18 deletions(-) diff --git a/src/components/UseCouponAddEdit/index.jsx b/src/components/UseCouponAddEdit/index.jsx index 22121bc3..6f940372 100644 --- a/src/components/UseCouponAddEdit/index.jsx +++ b/src/components/UseCouponAddEdit/index.jsx @@ -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({ diff --git a/src/pages/plan/add/plan-copy.js b/src/pages/plan/add/plan-copy.js index cd4da5c1..be1125b2 100644 --- a/src/pages/plan/add/plan-copy.js +++ b/src/pages/plan/add/plan-copy.js @@ -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 }); diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index 612c44a7..8b67dd0c 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -2009,20 +2009,6 @@ export default class acclist extends React.Component { } else { return
-
; } - // if(rowData.type == "repeat") - // { - // return - // } - // if(rowData.type == "success") - // { - // return - // } - // else{ - // return
-
- // } } }} />