diff --git a/src/components/UseCouponAddEdit/index.jsx b/src/components/UseCouponAddEdit/index.jsx index 289e5110..ce3ab26c 100644 --- a/src/components/UseCouponAddEdit/index.jsx +++ b/src/components/UseCouponAddEdit/index.jsx @@ -637,16 +637,17 @@ const UseCouponAddEdit = forwardRef((props, ref) => { // console.log("编辑 大提交 =>", param); // return; + console.log("旧数据 =>", state.oldProduct); + console.log("编辑 大提交 =>", param); + // return; // 商品立减金-删除 param.delete_product = state.tableData - .filter( - (item) => !item.checked && (item.goods_id || item.only.goods_id) - ) + .filter((item) => !item.checked && (item.goods_id || item.only)) .map((item) => { - if (item.type === 1) { - return item.goods_id; - } else { + if (item.only) { return item.only.goods_id; + } else { + return item.goods_id; } });