diff --git a/src/pages/plan/key/UseKeyAddEdit.jsx b/src/pages/plan/key/UseKeyAddEdit.jsx index 6d0a6a31..f014962b 100644 --- a/src/pages/plan/key/UseKeyAddEdit.jsx +++ b/src/pages/plan/key/UseKeyAddEdit.jsx @@ -462,6 +462,7 @@ const UseKeyAddEdit = () => { newData = newData.map((item) => { delete item.id; + delete item.status; let product = item.product; product.legal.map((item1) => { delete item1.code_batch_id; @@ -478,7 +479,6 @@ const UseKeyAddEdit = () => { }); return item; }); - console.log("newData 2 =>", newData); } else { // 注意!! -1创建中 可编辑 status 是优惠券或者兑换码的状态不是key批次状态!!!!!!!!!!!!!!! _.map(newData, (o) => { @@ -489,12 +489,12 @@ const UseKeyAddEdit = () => { return o; }); } + console.log("newData =>", newData); if (Number(data.bind_object[0]) === 1) { setState({ distdata: newData }); } else { setState({ couponData: newData }); } - console.log("newData 3 =>", newData); }; // 样式切换