修复 【key批次】兑换码批次中新增的商品,在key批次编辑页面该兑换码批次的兑换码范围中,要展示出来

This commit is contained in:
wangsongsole 2022-06-15 17:19:37 +08:00
parent d1f8366b67
commit 87ba41c2ae
1 changed files with 5 additions and 7 deletions

View File

@ -162,14 +162,14 @@ export default class acclist extends React.Component {
let product = code_batch.product[j]
/* 区分立减金和商品 */
if (product.type === 1) {
range.push(product.product_name)
range.push(product.entity.product_name)
} else {
range.push(product.channel)
range.push(product.entity.batch_goods_name)
}
}
req.code_batch[i].disabled = true
req.code_batch[i].checked = true
req.code_batch.range = range.toString()
req.code_batch[i].range = range.toString()
temp.push(req.code_batch[i])
}
//获取审批单信息
@ -205,16 +205,14 @@ export default class acclist extends React.Component {
if (product.type === 1) {
range.push(product.product_name)
} else {
range.push(product.channel)
range.push(product.batch_goods_name)
}
}
req.code_batch[i].disabled = false
req.code_batch[i].checked = false
code_batch.range = range.toString()
req.code_batch[i].range = range.toString()
temp.push(req.code_batch[i])
}
console.log(temp)
if (req.payment_direction) {
let index = this.state.payment_direction.indexOf(
req.payment_direction