Update edit.js
This commit is contained in:
parent
2619747610
commit
7456b446c9
|
@ -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})
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue