提交订单勾选订单号导出
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;
|
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({
|
Sweetalert.confirm({
|
||||||
type:'warning',
|
type:'warning',
|
||||||
closeBtn:true,
|
closeBtn:true,
|
||||||
|
@ -374,6 +379,7 @@ export default class orderlist extends React.Component{
|
||||||
//page
|
//page
|
||||||
pageChange(e){
|
pageChange(e){
|
||||||
this.setState({page:e});
|
this.setState({page:e});
|
||||||
|
this.setState({'selectiondata':[]})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.getOrderFn();
|
this.getOrderFn();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
@ -382,6 +388,7 @@ export default class orderlist extends React.Component{
|
||||||
//limit
|
//limit
|
||||||
countChange(e){
|
countChange(e){
|
||||||
this.setState({page:1,limit:e});
|
this.setState({page:1,limit:e});
|
||||||
|
this.setState({'selectiondata':[]})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.getOrderFn();
|
this.getOrderFn();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
|
Loading…
Reference in New Issue