Commit 9bbdfc40 by huaying

fix: 导出订单

parent d0765b2c
...@@ -522,8 +522,8 @@ export default { ...@@ -522,8 +522,8 @@ export default {
} }
this.params = { this.params = {
orderStatus: this.orderStatus, orderStatus: this.orderStatus,
// changeType: this.changeType, changeType: this.changeType,
changeType: -1, // changeType: -1,
searchParams: this.searchValue, searchParams: this.searchValue,
searchType: this.searchType, searchType: this.searchType,
beginTime: this.beginTime, beginTime: this.beginTime,
...@@ -539,7 +539,9 @@ export default { ...@@ -539,7 +539,9 @@ export default {
// 计算自然月 // 计算自然月
natureMonth (curDate, step) { natureMonth (curDate, step) {
if (!curDate || !step) return curDate; if (!curDate || !step) return curDate;
if (typeof curDate === 'string') { curDate = new Date(curDate.replace(/[\/|\.]/g, '-')); } // new Date(str) 对str格式的,ios只支持yyyy-MM-dd if (typeof curDate === 'string') {
curDate = new Date(curDate.replace(/[\/|\.]/g, '-'));
} // new Date(str) 对str格式的,ios只支持yyyy-MM-dd
const targetDateLastDay = new Date( const targetDateLastDay = new Date(
curDate.getFullYear(), curDate.getFullYear(),
......
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