修改兑换码一键复制

This commit is contained in:
wangsongsole 2022-08-05 11:26:12 +08:00
parent 86830177f8
commit 93c7e9d0d1
1 changed files with 5 additions and 12 deletions

View File

@ -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