fix: 修复key批次审核驳回不能编辑的问题

This commit is contained in:
zhangds 2022-11-01 10:40:20 +08:00
parent f645700e25
commit e21637338f
1 changed files with 2 additions and 2 deletions

View File

@ -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);
};
//