diff --git a/src/pages/plan/key/edit.js b/src/pages/plan/key/edit.js index bc8b4355..58c11a81 100644 --- a/src/pages/plan/key/edit.js +++ b/src/pages/plan/key/edit.js @@ -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