Commit 389dbb6a by huaying

Merge branch 'bugfix/积分订单导出订单时间限制'

parents 8a484afa fa67060d
......@@ -871,11 +871,11 @@ export default {
return;
}
const data = this.natureMonth(this.beginTime, 3);
this.endTime = this.endTime.split(' ')[0];
const endTimes = this.endTime.split(' ')[0];
// console.log(this.endTime.split(' '), 'iiii');
// console.log(data, typeof data, '选择时间', this.endTime, typeof this.endTime);
// console.log(new Date(data).getTime(), new Date(this.endTime).getTime());
if (new Date(data).getTime() - 1 * 24 * 1000 < new Date(this.endTime).getTime()) {
if (new Date(data).getTime() - 1 * 24 * 1000 < new Date(endTimes).getTime()) {
this.$message.error('导出订单不支持导出超过3个月时长的数据,请重新选择时间');
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment