fix: 修复优惠券复制删除 id的过程
This commit is contained in:
parent
eb7328938c
commit
07ce002932
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue