diff --git a/src/pages/exchangecode/copyCode/index.jsx b/src/pages/exchangecode/copyCode/index.jsx index 9c0f77c0..4667d864 100644 --- a/src/pages/exchangecode/copyCode/index.jsx +++ b/src/pages/exchangecode/copyCode/index.jsx @@ -188,15 +188,12 @@ export default class acclist extends React.Component { obj.id = item1.entity.product_id obj.weight = item1.weight if (copy_code_id === item.id) { - obj.usage = 0 - } else { - obj.usage = item1?.entity.usage + delete obj.id } obj.type = item1.type } else if (item1.type === 2) { obj.type = item1.type obj.product_id = item1.entity.goods_id - obj.product_type_text = '立减金' obj.only = item1.entity.channel_activity_id obj.id = item1.entity.goods_id obj.upstream = @@ -207,20 +204,18 @@ export default class acclist extends React.Component { obj.official_price = item1.entity.reduce_amount obj.channel_activity_id = item1.entity.channel_activity_id obj.product_name = item1.entity.batch_goods_name - obj.quantity = item1.entity.stock + obj.quantity = item1.entity?.stock item1.entity.weight = item1.weight - obj.stock = item1.entity.stock + item1.entity.code_batch_id = item1.code_batch_id if (copy_code_id === item.id) { - obj.usage = 0 - } else { - obj.usage = item1?.entity.usage + delete item1.entity.id + delete item1.entity.goods_id } obj.effectDate = item1.entity.time_limit.effect_time.start_time + ' 至 ' + item1.entity.time_limit.effect_time.end_time //有效时间 - delete item1.entity.id obj.origin = item1.entity } @@ -567,8 +562,6 @@ export default class acclist extends React.Component { delete item.products }) /* 处理数据 区分立减金和商品 完成 2022-05-30 13:40*/ - debugger - let data = {} data.batch_name = this.state.model.batch_name data.copy_code_batch_id = this.state.model?.copy_code_batch_id