rev:默认时间
This commit is contained in:
@@ -253,13 +253,25 @@ export default {
|
|||||||
const end = new Date()
|
const end = new Date()
|
||||||
const start = new Date()
|
const start = new Date()
|
||||||
const endYear = end.getFullYear()
|
const endYear = end.getFullYear()
|
||||||
const endMonth = end.getMonth() + 1
|
var endMonth = end.getMonth() + 1
|
||||||
const endDay = end.getDate()
|
if (end.getMonth() + 1 < 10) {
|
||||||
|
endMonth = '0' + endMonth.toString()
|
||||||
|
}
|
||||||
|
var endDay = end.getDate()
|
||||||
|
if (end.getDate() < 10) {
|
||||||
|
endDay = '0' + endDay.toString()
|
||||||
|
}
|
||||||
const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59'
|
const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59'
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
||||||
const startYear = start.getFullYear()
|
const startYear = start.getFullYear()
|
||||||
const startMonth = start.getMonth() + 1
|
var startMonth = start.getMonth() + 1
|
||||||
const startDay = start.getDate()
|
if (start.getMonth() + 1 < 10) {
|
||||||
|
startMonth = '0' + startMonth.toString()
|
||||||
|
}
|
||||||
|
var startDay = start.getDate()
|
||||||
|
if (start.getDate() < 10) {
|
||||||
|
startDay = '0' + startDay.toString()
|
||||||
|
}
|
||||||
const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00'
|
const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00'
|
||||||
this.$set(this.query, 'createTime', [startDate, endDate])
|
this.$set(this.query, 'createTime', [startDate, endDate])
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
|||||||
@@ -261,13 +261,25 @@ export default {
|
|||||||
const end = new Date()
|
const end = new Date()
|
||||||
const start = new Date()
|
const start = new Date()
|
||||||
const endYear = end.getFullYear()
|
const endYear = end.getFullYear()
|
||||||
const endMonth = end.getMonth() + 1
|
var endMonth = end.getMonth() + 1
|
||||||
const endDay = end.getDate()
|
if (end.getMonth() + 1 < 10) {
|
||||||
|
endMonth = '0' + endMonth.toString()
|
||||||
|
}
|
||||||
|
var endDay = end.getDate()
|
||||||
|
if (end.getDate() < 10) {
|
||||||
|
endDay = '0' + endDay.toString()
|
||||||
|
}
|
||||||
const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59'
|
const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59'
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
||||||
const startYear = start.getFullYear()
|
const startYear = start.getFullYear()
|
||||||
const startMonth = start.getMonth() + 1
|
var startMonth = start.getMonth() + 1
|
||||||
const startDay = start.getDate()
|
if (start.getMonth() + 1 < 10) {
|
||||||
|
startMonth = '0' + startMonth.toString()
|
||||||
|
}
|
||||||
|
var startDay = start.getDate()
|
||||||
|
if (start.getDate() < 10) {
|
||||||
|
startDay = '0' + startDay.toString()
|
||||||
|
}
|
||||||
const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00'
|
const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00'
|
||||||
this.$set(this.query, 'createTime', [startDate, endDate])
|
this.$set(this.query, 'createTime', [startDate, endDate])
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
|||||||
@@ -318,13 +318,25 @@ export default {
|
|||||||
const end = new Date()
|
const end = new Date()
|
||||||
const start = new Date()
|
const start = new Date()
|
||||||
const endYear = end.getFullYear()
|
const endYear = end.getFullYear()
|
||||||
const endMonth = end.getMonth() + 1
|
var endMonth = end.getMonth() + 1
|
||||||
const endDay = end.getDate()
|
if (end.getMonth() + 1 < 10) {
|
||||||
|
endMonth = '0' + endMonth.toString()
|
||||||
|
}
|
||||||
|
var endDay = end.getDate()
|
||||||
|
if (end.getDate() < 10) {
|
||||||
|
endDay = '0' + endDay.toString()
|
||||||
|
}
|
||||||
const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59'
|
const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59'
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
||||||
const startYear = start.getFullYear()
|
const startYear = start.getFullYear()
|
||||||
const startMonth = start.getMonth() + 1
|
var startMonth = start.getMonth() + 1
|
||||||
const startDay = start.getDate()
|
if (start.getMonth() + 1 < 10) {
|
||||||
|
startMonth = '0' + startMonth.toString()
|
||||||
|
}
|
||||||
|
var startDay = start.getDate()
|
||||||
|
if (start.getDate() < 10) {
|
||||||
|
startDay = '0' + startDay.toString()
|
||||||
|
}
|
||||||
const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00'
|
const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00'
|
||||||
this.$set(this.query, 'createTime', [startDate, endDate])
|
this.$set(this.query, 'createTime', [startDate, endDate])
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
|||||||
@@ -217,13 +217,25 @@ export default {
|
|||||||
const end = new Date()
|
const end = new Date()
|
||||||
const start = new Date()
|
const start = new Date()
|
||||||
const endYear = end.getFullYear()
|
const endYear = end.getFullYear()
|
||||||
const endMonth = end.getMonth() + 1
|
var endMonth = end.getMonth() + 1
|
||||||
const endDay = end.getDate()
|
if (end.getMonth() + 1 < 10) {
|
||||||
|
endMonth = '0' + endMonth.toString()
|
||||||
|
}
|
||||||
|
var endDay = end.getDate()
|
||||||
|
if (end.getDate() < 10) {
|
||||||
|
endDay = '0' + endDay.toString()
|
||||||
|
}
|
||||||
const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59'
|
const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59'
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
||||||
const startYear = start.getFullYear()
|
const startYear = start.getFullYear()
|
||||||
const startMonth = start.getMonth() + 1
|
var startMonth = start.getMonth() + 1
|
||||||
const startDay = start.getDate()
|
if (start.getMonth() + 1 < 10) {
|
||||||
|
startMonth = '0' + startMonth.toString()
|
||||||
|
}
|
||||||
|
var startDay = start.getDate()
|
||||||
|
if (start.getDate() < 10) {
|
||||||
|
startDay = '0' + startDay.toString()
|
||||||
|
}
|
||||||
const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00'
|
const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00'
|
||||||
this.$set(this.query, 'createTime', [startDate, endDate])
|
this.$set(this.query, 'createTime', [startDate, endDate])
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
|||||||
@@ -347,6 +347,8 @@ import { download } from '@/api/data'
|
|||||||
import { downloadFile } from '@/utils'
|
import { downloadFile } from '@/utils'
|
||||||
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
|
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
|
||||||
|
|
||||||
|
const start = new Date()
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Checkoutbill',
|
name: 'Checkoutbill',
|
||||||
components: { ViewDialog, AddDialog, crudOperation, rrOperation, udOperation, pagination, DivDialog, TaskDialog, MoneyDialog },
|
components: { ViewDialog, AddDialog, crudOperation, rrOperation, udOperation, pagination, DivDialog, TaskDialog, MoneyDialog },
|
||||||
@@ -412,13 +414,25 @@ export default {
|
|||||||
const end = new Date()
|
const end = new Date()
|
||||||
const start = new Date()
|
const start = new Date()
|
||||||
const endYear = end.getFullYear()
|
const endYear = end.getFullYear()
|
||||||
const endMonth = end.getMonth() + 1
|
var endMonth = end.getMonth() + 1
|
||||||
const endDay = end.getDate()
|
if (end.getMonth() + 1 < 10) {
|
||||||
|
endMonth = '0' + endMonth.toString()
|
||||||
|
}
|
||||||
|
var endDay = end.getDate()
|
||||||
|
if (end.getDate() < 10) {
|
||||||
|
endDay = '0' + endDay.toString()
|
||||||
|
}
|
||||||
const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59'
|
const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59'
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
||||||
const startYear = start.getFullYear()
|
const startYear = start.getFullYear()
|
||||||
const startMonth = start.getMonth() + 1
|
var startMonth = start.getMonth() + 1
|
||||||
const startDay = start.getDate()
|
if (start.getMonth() + 1 < 10) {
|
||||||
|
startMonth = '0' + startMonth.toString()
|
||||||
|
}
|
||||||
|
var startDay = start.getDate()
|
||||||
|
if (start.getDate() < 10) {
|
||||||
|
startDay = '0' + startDay.toString()
|
||||||
|
}
|
||||||
const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00'
|
const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00'
|
||||||
this.$set(this.query, 'createTime', [startDate, endDate])
|
this.$set(this.query, 'createTime', [startDate, endDate])
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
|||||||
@@ -223,13 +223,25 @@ export default {
|
|||||||
const end = new Date()
|
const end = new Date()
|
||||||
const start = new Date()
|
const start = new Date()
|
||||||
const endYear = end.getFullYear()
|
const endYear = end.getFullYear()
|
||||||
const endMonth = end.getMonth() + 1
|
var endMonth = end.getMonth() + 1
|
||||||
const endDay = end.getDate()
|
if (end.getMonth() + 1 < 10) {
|
||||||
|
endMonth = '0' + endMonth.toString()
|
||||||
|
}
|
||||||
|
var endDay = end.getDate()
|
||||||
|
if (end.getDate() < 10) {
|
||||||
|
endDay = '0' + endDay.toString()
|
||||||
|
}
|
||||||
const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59'
|
const endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59'
|
||||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
|
||||||
const startYear = start.getFullYear()
|
const startYear = start.getFullYear()
|
||||||
const startMonth = start.getMonth() + 1
|
var startMonth = start.getMonth() + 1
|
||||||
const startDay = start.getDate()
|
if (start.getMonth() + 1 < 10) {
|
||||||
|
startMonth = '0' + startMonth.toString()
|
||||||
|
}
|
||||||
|
var startDay = start.getDate()
|
||||||
|
if (start.getDate() < 10) {
|
||||||
|
startDay = '0' + startDay.toString()
|
||||||
|
}
|
||||||
const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00'
|
const startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00'
|
||||||
this.$set(this.query, 'createTime', [startDate, endDate])
|
this.$set(this.query, 'createTime', [startDate, endDate])
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
|||||||
Reference in New Issue
Block a user