From 7456b446c96ecdfa6a9333ad25b0bfd11d108ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Thu, 27 Jan 2022 15:18:30 +0800 Subject: [PATCH] Update edit.js --- src/pages/plan/key/edit.js | 40 +++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/pages/plan/key/edit.js b/src/pages/plan/key/edit.js index 8fcc7e4e..1edb8c9f 100644 --- a/src/pages/plan/key/edit.js +++ b/src/pages/plan/key/edit.js @@ -134,26 +134,26 @@ export default class acclist extends React.Component{ { getApprovalsInfo(approval_id).then((res)=>{ handelResponse(res,(req,msg)=>{ - for(let i = 0;i < req.code_batch.length;i++) - { - let code_batch = req.code_batch[i]; - let range = [] - for(let j = 0;j < code_batch.product.length;j++) - { - let product = code_batch.product[j]; - range.push(product.product_name) - } - req.code_batch[i].disabled = false - req.code_batch[i].checked = false - code_batch.range = range.toString(); - temp.push(req.code_batch[i]) - } - - if(req.payment_direction) - { - let index = this.state.payment_direction.indexOf(req.payment_direction) - this.setState({paytype: index+1}) - } + for(let i = 0;i < req.code_batch.length;i++) + { + let code_batch = req.code_batch[i]; + let range = [] + for(let j = 0;j < code_batch.product.length;j++) + { + let product = code_batch.product[j]; + range.push(product.product_name) + } + req.code_batch[i].disabled = false + req.code_batch[i].checked = false + code_batch.range = range.toString(); + temp.push(req.code_batch[i]) + } + + if(req.payment_direction) + { + let index = this.state.payment_direction.indexOf(req.payment_direction) + this.setState({paytype: index+1}) + } }) }) }