fix: 优惠券增加不勾选不展示
This commit is contained in:
parent
b4eaba643f
commit
a11f09a30d
|
@ -379,19 +379,18 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
|
|||
});
|
||||
|
||||
let scope_data = goods_arr.concat(lj_arr);
|
||||
console.log("scope_data =>", scope_data);
|
||||
scope_data = _.map(scope_data, (o) => {
|
||||
if (o.type === 2) {
|
||||
if (o.only.is_delete) {
|
||||
o.checked = true;
|
||||
} else {
|
||||
o.checked = false;
|
||||
} else {
|
||||
o.checked = true;
|
||||
}
|
||||
} else {
|
||||
if (o.is_delete) {
|
||||
o.checked = true;
|
||||
} else {
|
||||
o.checked = false;
|
||||
} else {
|
||||
o.checked = true;
|
||||
}
|
||||
}
|
||||
return o;
|
||||
|
|
Loading…
Reference in New Issue