diff --git a/src/components/UseCouponAddEdit/index.jsx b/src/components/UseCouponAddEdit/index.jsx index 4cf669aa..e441d529 100644 --- a/src/components/UseCouponAddEdit/index.jsx +++ b/src/components/UseCouponAddEdit/index.jsx @@ -702,8 +702,17 @@ const UseCouponAddEdit = forwardRef((props, ref) => { // 复制id if (state.KeyPcType === "2") { param.copy_code_batch_id = editData.id; - } + param.product.legal = param.product.legal.map((item) => { + delete item.code_batch_id; + delete item.goods_id; + return item; + }); + param.product.reduce = param.product.reduce.map((item) => { + delete item.goods_id; + return item; + }); + } addCoupon(param).then((res) => { handelResponse( res,