key批次管理一键复制
This commit is contained in:
parent
4b79bd8db3
commit
bf356f3c17
|
@ -245,7 +245,13 @@ export default class acclist extends React.Component {
|
|||
return obj
|
||||
})
|
||||
let pr = {}
|
||||
pr.range = item.range
|
||||
let productRange = []
|
||||
item.product.forEach(item=>{
|
||||
productRange.push(item.product_name);
|
||||
});
|
||||
productRange = productRange.toString()
|
||||
console.log(255,productRange);
|
||||
pr.range = productRange
|
||||
pr.restrict = item.restrict
|
||||
pr.title = item.title
|
||||
pr.begin_time = item.begin_time
|
||||
|
@ -1034,7 +1040,6 @@ export default class acclist extends React.Component {
|
|||
let success = req.count - req.errorCount
|
||||
this.setState({ success_count: success })
|
||||
this.setState({ exceldata: req.validationFailed })
|
||||
|
||||
this.setState({ success_visible: true })
|
||||
},
|
||||
(err) => {
|
||||
|
@ -1576,6 +1581,7 @@ export default class acclist extends React.Component {
|
|||
width={'520px'}
|
||||
alignment={'left'}
|
||||
/>
|
||||
|
||||
</FormItem>
|
||||
<FormItem labelname='发放总量' prop='issued' id='issued'>
|
||||
<Ipt
|
||||
|
|
|
@ -180,6 +180,7 @@ export default class acclist extends React.Component {
|
|||
constructor(props) {
|
||||
super(props)
|
||||
this.state = {
|
||||
planStatus:'',//计划状态
|
||||
dataCount: 0,
|
||||
page: 1,
|
||||
limit: 10,
|
||||
|
@ -305,6 +306,7 @@ export default class acclist extends React.Component {
|
|||
res,
|
||||
(req, msg) => {
|
||||
this.setState({ distdata: req.data })
|
||||
this.setState({ planStatus: req.plan.status })//计划状态
|
||||
this.setState({ dataCount: req.total })
|
||||
sessionStorage.setItem('key_plan_status', req.plan.status)
|
||||
},
|
||||
|
@ -388,13 +390,14 @@ export default class acclist extends React.Component {
|
|||
},
|
||||
{
|
||||
path: '/home/exchangecode-add',
|
||||
name: '复制key'
|
||||
name: '复制key:'+row.batch_name
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
sessionStorage.setItem('keybatch_id', row.id)
|
||||
sessionStorage.setItem('copyOpearo', 1)
|
||||
sessionStorage.setItem('key_reseller_id', row.reseller_id)
|
||||
sessionStorage.setItem('breakchangenav', JSON.stringify(activerou))
|
||||
}
|
||||
//page
|
||||
|
@ -861,11 +864,19 @@ export default class acclist extends React.Component {
|
|||
}
|
||||
if (com == 'edit') {
|
||||
let str = ''
|
||||
/*计划已完结6,未通过2,已作废8 不可复制
|
||||
key创建中1,未通过2 不可复制
|
||||
*/
|
||||
if (rowData.status == 6 || rowData.status == 7) {
|
||||
str = (
|
||||
<span>
|
||||
<a className='grid-link disabled'>编辑</a>
|
||||
|
||||
{
|
||||
[1,2,8].includes(rowData.status)||[2,6,8,7].includes(this.state.planStatus)?(<a className='grid-link disabled'>复制</a>):(
|
||||
<a className='grid-link' onClick={(e) => {this.onCopyRow(e, rowData)}}>复制</a>
|
||||
)
|
||||
}
|
||||
|
||||
<span className='grid-link disabled'>撤销审批</span>
|
||||
|
||||
<Dropdown
|
||||
|
@ -887,6 +898,11 @@ export default class acclist extends React.Component {
|
|||
str = (
|
||||
<span>
|
||||
<a className='grid-link disabled'>编辑</a>
|
||||
{
|
||||
[1,2,8].includes(rowData.status)||[2,6,8,7].includes(this.state.planStatus)?(<a className='grid-link disabled'>复制</a>):(
|
||||
<a className='grid-link' onClick={(e) => {this.onCopyRow(e, rowData)}}>复制</a>
|
||||
)
|
||||
}
|
||||
<span
|
||||
className='grid-link'
|
||||
onClick={(e) => this.onReCall(e, rowData)}>
|
||||
|
@ -934,6 +950,11 @@ export default class acclist extends React.Component {
|
|||
}}>
|
||||
编辑
|
||||
</a>
|
||||
{
|
||||
[1,2,8].includes(rowData.status)||[2,6,8,7].includes(this.state.planStatus)?(<a className='grid-link disabled'>复制</a>):(
|
||||
<a className='grid-link' onClick={(e) => {this.onCopyRow(e, rowData)}}>复制</a>
|
||||
)
|
||||
}
|
||||
<span className='grid-link disabled'>撤销审批</span>
|
||||
|
||||
<Dropdown
|
||||
|
|
Loading…
Reference in New Issue