From 93c7e9d0d1e854e23101cb847306a4bac3e768f1 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Fri, 5 Aug 2022 11:26:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=91=E6=8D=A2=E7=A0=81?= =?UTF-8?q?=E4=B8=80=E9=94=AE=E5=A4=8D=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/copyCode/index.jsx | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) 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