fix: 优惠券增加不勾选不展示

This commit is contained in:
zhangds 2022-10-19 11:28:00 +08:00
parent b4eaba643f
commit a11f09a30d
1 changed files with 4 additions and 5 deletions

View File

@ -379,19 +379,18 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
}); });
let scope_data = goods_arr.concat(lj_arr); let scope_data = goods_arr.concat(lj_arr);
console.log("scope_data =>", scope_data);
scope_data = _.map(scope_data, (o) => { scope_data = _.map(scope_data, (o) => {
if (o.type === 2) { if (o.type === 2) {
if (o.only.is_delete) { if (o.only.is_delete) {
o.checked = true;
} else {
o.checked = false; o.checked = false;
} else {
o.checked = true;
} }
} else { } else {
if (o.is_delete) { if (o.is_delete) {
o.checked = true;
} else {
o.checked = false; o.checked = false;
} else {
o.checked = true;
} }
} }
return o; return o;