|
@@ -51,6 +51,7 @@ const Order = React.createClass({
|
|
|
page:pageNo,
|
|
|
loading: true
|
|
|
});
|
|
|
+ let orderN = Number(this.state.orderType);
|
|
|
let time = new Date(),
|
|
|
year = time.getFullYear(),
|
|
|
month = time.getMonth()+1,
|
|
@@ -66,7 +67,7 @@ const Order = React.createClass({
|
|
|
pageSize:this.state.pagination.pageSize,
|
|
|
saleName: this.state.signName,//客户名称
|
|
|
departmentId:this.state.departmenttList,
|
|
|
- type:this.state.orderType>='0'?Number(this.state.orderType)+1:'',
|
|
|
+ type:orderN>=0?orderN+1:'',
|
|
|
month: mon1||Number((year+''+month)),
|
|
|
month1: mon2||Number((month+1>12?year+1:year)+''+(month+1>12?'01':month+1)),
|
|
|
},
|
|
@@ -191,6 +192,7 @@ const Order = React.createClass({
|
|
|
},
|
|
|
//导出exec
|
|
|
exec(){
|
|
|
+ let orderN = Number(this.state.orderType);
|
|
|
let time = new Date(),
|
|
|
year = time.getFullYear(),
|
|
|
month = time.getMonth()+1,
|
|
@@ -199,7 +201,7 @@ const Order = React.createClass({
|
|
|
let data = {
|
|
|
departmentId:this.state.departmentId,
|
|
|
saleName: this.state.signName,
|
|
|
- type:this.state.orderType>='0'?Number(this.state.orderType)+1:'',
|
|
|
+ type:orderN>=0?orderN+1:'',
|
|
|
month: mon1||Number((year+''+month)),
|
|
|
month1: mon2||Number((month+1>12?year+1:year)+''+(month+1>12?'01':month+1)),
|
|
|
}
|