From 87ba41c2ae047be473d530caafe8c7010cf5e2da Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Wed, 15 Jun 2022 17:19:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E3=80=90key=E6=89=B9?= =?UTF-8?q?=E6=AC=A1=E3=80=91=E5=85=91=E6=8D=A2=E7=A0=81=E6=89=B9=E6=AC=A1?= =?UTF-8?q?=E4=B8=AD=E6=96=B0=E5=A2=9E=E7=9A=84=E5=95=86=E5=93=81=EF=BC=8C?= =?UTF-8?q?=E5=9C=A8key=E6=89=B9=E6=AC=A1=E7=BC=96=E8=BE=91=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=AF=A5=E5=85=91=E6=8D=A2=E7=A0=81=E6=89=B9=E6=AC=A1?= =?UTF-8?q?=E7=9A=84=E5=85=91=E6=8D=A2=E7=A0=81=E8=8C=83=E5=9B=B4=E4=B8=AD?= =?UTF-8?q?=EF=BC=8C=E8=A6=81=E5=B1=95=E7=A4=BA=E5=87=BA=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/key/edit.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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