fix: 修复key批次审核驳回不能编辑的问题
This commit is contained in:
parent
f645700e25
commit
e21637338f
|
@ -462,6 +462,7 @@ const UseKeyAddEdit = () => {
|
|||
|
||||
newData = newData.map((item) => {
|
||||
delete item.id;
|
||||
delete item.status;
|
||||
let product = item.product;
|
||||
product.legal.map((item1) => {
|
||||
delete item1.code_batch_id;
|
||||
|
@ -478,7 +479,6 @@ const UseKeyAddEdit = () => {
|
|||
});
|
||||
return item;
|
||||
});
|
||||
console.log("newData 2 =>", newData);
|
||||
} else {
|
||||
// 注意!! -1创建中 可编辑 status 是优惠券或者兑换码的状态不是key批次状态!!!!!!!!!!!!!!!
|
||||
_.map(newData, (o) => {
|
||||
|
@ -489,12 +489,12 @@ const UseKeyAddEdit = () => {
|
|||
return o;
|
||||
});
|
||||
}
|
||||
console.log("newData =>", newData);
|
||||
if (Number(data.bind_object[0]) === 1) {
|
||||
setState({ distdata: newData });
|
||||
} else {
|
||||
setState({ couponData: newData });
|
||||
}
|
||||
console.log("newData 3 =>", newData);
|
||||
};
|
||||
|
||||
// 样式切换
|
||||
|
|
Loading…
Reference in New Issue