fix:修复兑换码权益商品编辑时 未通过数据库存展示不正常bug

This commit is contained in:
wangsongsole 2022-10-27 15:36:49 +08:00
parent 7e56f4268f
commit 5ec14fcfce
1 changed files with 3 additions and 0 deletions

View File

@ -260,6 +260,9 @@ export default class exchangeAdd extends React.Component {
item1.type = 1 item1.type = 1
item1.only = item1.product_id item1.only = item1.product_id
item1.upstream = "直连天下" item1.upstream = "直连天下"
item1.stock = item1.stock || item1.quantity
item1.quantity = item1.quantity
item1.usage = item1.usage || 0
if (item1?.goods_id) { if (item1?.goods_id) {
item1.id = item1.goods_id item1.id = item1.goods_id
} }