Update edit.js

This commit is contained in:
姜棚 2022-01-27 15:18:30 +08:00
parent 2619747610
commit 7456b446c9
1 changed files with 20 additions and 20 deletions

View File

@ -134,26 +134,26 @@ export default class acclist extends React.Component{
{ {
getApprovalsInfo(approval_id).then((res)=>{ getApprovalsInfo(approval_id).then((res)=>{
handelResponse(res,(req,msg)=>{ handelResponse(res,(req,msg)=>{
for(let i = 0;i < req.code_batch.length;i++) for(let i = 0;i < req.code_batch.length;i++)
{ {
let code_batch = req.code_batch[i]; let code_batch = req.code_batch[i];
let range = [] let range = []
for(let j = 0;j < code_batch.product.length;j++) for(let j = 0;j < code_batch.product.length;j++)
{ {
let product = code_batch.product[j]; let product = code_batch.product[j];
range.push(product.product_name) range.push(product.product_name)
} }
req.code_batch[i].disabled = false req.code_batch[i].disabled = false
req.code_batch[i].checked = false req.code_batch[i].checked = false
code_batch.range = range.toString(); code_batch.range = range.toString();
temp.push(req.code_batch[i]) temp.push(req.code_batch[i])
} }
if(req.payment_direction) if(req.payment_direction)
{ {
let index = this.state.payment_direction.indexOf(req.payment_direction) let index = this.state.payment_direction.indexOf(req.payment_direction)
this.setState({paytype: index+1}) this.setState({paytype: index+1})
} }
}) })
}) })
} }