提交订单勾选订单号导出
This commit is contained in:
parent
ca060f9f77
commit
a1cb9e7175
|
@ -227,7 +227,12 @@ export default class orderlist extends React.Component{
|
|||
data.key_word=key_word;
|
||||
}
|
||||
}
|
||||
|
||||
if(this.state.selectiondata&&this.state.selectiondata.length>0){
|
||||
console.log(this.state.selectiondata);
|
||||
let orders=this.state.selectiondata;
|
||||
let orderNum=orders.map(item=>item.order_number);
|
||||
data.order_numbers=orderNum.join(',');
|
||||
}
|
||||
Sweetalert.confirm({
|
||||
type:'warning',
|
||||
closeBtn:true,
|
||||
|
@ -374,6 +379,7 @@ export default class orderlist extends React.Component{
|
|||
//page
|
||||
pageChange(e){
|
||||
this.setState({page:e});
|
||||
this.setState({'selectiondata':[]})
|
||||
setTimeout(() => {
|
||||
this.getOrderFn();
|
||||
}, 0);
|
||||
|
@ -382,6 +388,7 @@ export default class orderlist extends React.Component{
|
|||
//limit
|
||||
countChange(e){
|
||||
this.setState({page:1,limit:e});
|
||||
this.setState({'selectiondata':[]})
|
||||
setTimeout(() => {
|
||||
this.getOrderFn();
|
||||
}, 0);
|
||||
|
|
Loading…
Reference in New Issue