fix: 修复优惠券勾选无法提交
This commit is contained in:
parent
78553e8748
commit
31783fe647
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue